/* The site header shared by every marketing page (markup written by scripts/marketing/gen.mjs between the site-nav markers; behaviour in nav.js).
   Uses the page's own colour tokens (--paper, --ink, --muted, --line, --brand, --card) with fallbacks, so it follows light / dark on any page. */
html { scroll-padding-top: 80px; }
.sn { --sn-h: 64px; --sn-cta: #0b1f33; --sn-cta-ink: #fff; position: sticky; top: 0; z-index: 50; margin: 0; padding: 0; background: color-mix(in srgb, var(--paper, #fff) 82%, transparent); -webkit-backdrop-filter: saturate(170%) blur(16px); backdrop-filter: saturate(170%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sn { --sn-cta: var(--brand, #6cc2f0); --sn-cta-ink: #0a141f; } }
:root[data-theme="dark"] .sn { --sn-cta: var(--brand, #6cc2f0); --sn-cta-ink: #0a141f; }
.sn.open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper, #fff); }   /* a backdrop filter would trap the fixed menu sheet inside the header */
.sn.scrolled, .sn.open { border-bottom-color: var(--line, #dce4ec); box-shadow: 0 6px 24px -18px rgba(11, 31, 51, .45); }
.sn-in { max-width: 1140px; margin: 0 auto; padding: 0 20px; height: var(--sn-h); display: flex; align-items: center; gap: 8px; }
.sn a { text-decoration: none; }
.sn-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink, #0d1b2a); font-weight: 700; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; margin-right: 18px; flex-shrink: 0; }
.sn-logo b { color: var(--brand, #135e96); font-weight: 700; }
.sn-logo img { height: 32px; width: auto; display: block; }
.sn-logo .sn-dk { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sn-logo .sn-lt { display: none; } :root:not([data-theme="light"]) .sn-logo .sn-dk { display: block; } }
:root[data-theme="dark"] .sn-logo .sn-lt { display: none; }
:root[data-theme="dark"] .sn-logo .sn-dk { display: block; }

/* desktop links */
.sn-links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sn-links > li { position: relative; }
.sn-link { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border-radius: 10px; border: 0; background: none; color: var(--muted, #536479); font-family: inherit; font-weight: 500; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer; transition: color .15s ease, background .15s ease; }
.sn-link:hover, .sn-link[aria-expanded="true"] { color: var(--ink, #0d1b2a); background: color-mix(in srgb, var(--ink, #0d1b2a) 6%, transparent); }
.sn-link[aria-current="page"], .sn-link.here { color: var(--ink, #0d1b2a); }
.sn-link[aria-current="page"]::after, .sn-link.here::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--brand, #135e96); }
.sn-link:focus-visible, .sn-btn:focus-visible, .sn-menu:focus-visible, .sn-drop a:focus-visible, .sn-sheet a:focus-visible, .sn-sheet summary:focus-visible { outline: 2px solid var(--brand, #135e96); outline-offset: 2px; }
.sn-chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
[aria-expanded="true"] > .sn-chev { transform: rotate(180deg); }

/* dropdown panels */
.sn-drop { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-4px); min-width: 280px; padding: 10px; border-radius: 18px; background: var(--card, #fff); border: 1px solid var(--line, #dce4ec); box-shadow: 0 24px 60px -24px rgba(11, 31, 51, .35), 0 2px 8px -4px rgba(11, 31, 51, .12); opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
.sn-drop.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition: opacity .16s ease, transform .16s ease; }
.sn-drop.right { left: auto; right: 0; transform: translateY(-4px); }
.sn-drop.right.show { transform: translateY(0); }
.sn-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* keeps hover alive across the gap */
.sn-drop a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink, #0d1b2a); }
.sn-drop a:hover { background: color-mix(in srgb, var(--brand, #135e96) 8%, transparent); }
.sn-drop a b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.sn-drop a span { display: block; color: var(--muted, #536479); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.sn-drop.right { min-width: 300px; }
.sn-tools { width: 720px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 6px; padding: 14px; }
.sn-tools h3 { margin: 4px 12px 6px; font-family: inherit; font-weight: 600; font-size: 11.5px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--brand, #135e96); }
.sn-tools a { padding: 8px 12px; }
.sn-tools a b { font-size: 14.5px; font-weight: 500; }
.sn-tools .sn-all { grid-column: 1 / -1; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line, #dce4ec); border-radius: 0 0 10px 10px; display: flex; justify-content: space-between; align-items: center; }
.sn-tools .sn-all b { font-weight: 600; color: var(--brand, #135e96); }

/* right side */
.sn-right { margin-left: auto; display: flex; align-items: center; gap: 6px; position: relative; }
.sn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; border: 0; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.sn-cta { background: var(--sn-cta); color: var(--sn-cta-ink); }
.sn-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.sn-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sn-menu { display: none; place-items: center; width: 42px; height: 42px; margin-right: -6px; border-radius: 12px; border: 0; background: none; color: var(--ink, #0d1b2a); cursor: pointer; }
.sn-menu:hover { background: color-mix(in srgb, var(--ink, #0d1b2a) 6%, transparent); }
.sn-menu svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sn-menu .x { display: none; }
.sn.open .sn-menu .bars { display: none; }
.sn.open .sn-menu .x { display: block; }

/* phone and tablet sheet */
.sn-sheet { display: none; }
@media (max-width: 1000px) {
  .sn-links, .sn-signin { display: none; }
  .sn-menu { display: grid; }
  .sn-in { gap: 6px; }
  .sn-sheet { position: fixed; left: 0; right: 0; top: var(--sn-h); bottom: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--paper, #fff); padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); }
  .sn.open .sn-sheet { display: block; animation: sn-in .18s ease; }
  .sn-sheet > ul { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; }
  .sn-sheet > ul > li { border-bottom: 1px solid var(--line, #dce4ec); }
  .sn-sheet a.sn-row, .sn-sheet summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; color: var(--ink, #0d1b2a); font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
  .sn-sheet summary::-webkit-details-marker { display: none; }
  .sn-sheet details[open] summary .sn-chev { transform: rotate(180deg); }
  .sn-sheet a.sn-row[aria-current="page"] { color: var(--brand, #135e96); }
  .sn-sheet .sn-sub { padding: 0 0 12px; display: grid; gap: 2px; }
  .sn-sheet .sn-sub h3 { margin: 10px 2px 4px; font-family: inherit; font-weight: 600; font-size: 11.5px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--brand, #135e96); }
  .sn-sheet .sn-sub a { display: block; padding: 9px 2px; color: var(--ink, #0d1b2a); font-size: 16px; }
  .sn-sheet .sn-sub a span { display: block; color: var(--muted, #536479); font-size: 13.5px; }
  .sn-sheet .sn-ctas { max-width: 640px; margin: 20px auto 0; display: grid; gap: 10px; }
  .sn-sheet .sn-ctas .sn-btn { height: 50px; font-size: 16px; }
  .sn-sheet .sn-ghost { background: var(--card, #fff); color: var(--ink, #0d1b2a); box-shadow: inset 0 0 0 1px var(--line, #dce4ec); }
  html.sn-lock, html.sn-lock body { overflow: hidden; }
}
@media (max-width: 420px) { .sn-in { padding: 0 16px; } .sn-logo { font-size: 19px; margin-right: 0; } .sn-logo img { height: 28px; } .sn-right .sn-cta { padding: 0 14px; height: 38px; font-size: 14.5px; } .sn-right .sn-cta svg { display: none; } }
@media (max-width: 340px) { .sn-right .sn-cta { display: none; } }
body.mbar-on .sn-right .sn-cta { display: none; }   /* the home page's bottom bar already offers it on phones */
/* "In short" box (GEO) - on every page: generated pages and the hand-written ones (filled by gen.mjs between the in-short markers) */
.tldr { border: 1px solid var(--line, #dce4ec); border-left: 4px solid var(--brand, #135e96); border-radius: 14px; background: var(--card, #fff); padding: 14px 18px 12px; margin: 0 0 24px; text-align: left; color: var(--ink, #0d1b2a); }
.tldr-h { margin: 0 0 6px; font-family: "Geist", system-ui, sans-serif; font-weight: 600; font-size: 12.5px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--brand, #135e96); }
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin: 4px 0; font-size: 16px; line-height: 1.55; }
.tldr-wrap { padding-top: 28px; }
.tldr-wrap .tldr { max-width: 860px; margin: 0 auto; }
@media print { .tldr { border: 0; padding: 0; } }
@keyframes sn-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sn, .sn-drop, .sn-btn, .sn-chev { transition: none !important; } .sn.open .sn-sheet { animation: none; } }
@media print { .sn { display: none !important; } }
