/* Header v2 (19 Nov 2026): a sober full-width bar, like Faculty's. No pill, no borders or shadows around the
   links, no carets: one frosted-glass band with the logo, the links and one button. Loaded after chrome.css and
   edition.css, so it wins over both. */

/* ——— The bar: frosted glass. The page blurs behind it at full strength right to the bar's edge (no fading wash
   that eats into the logo and the links), with a light veil of the page colour and no line at the bottom ——— */
.sn-bar { pointer-events: auto; background: none; border: 0; isolation: isolate; }
.sn-bar::before {
  /* exactly the bar's height, no fade below it (Noah, 19 Nov 2026: no gradient) */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 76px; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--bg, #fff) 64%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  transition: background-color .25s ease, opacity .3s ease;
}
/* on arrival the bar is clear: the glass fades in only once the page starts to scroll */
.sn-bar:not(.has-scrolled)::before { opacity: 0; }
@media (max-width: 1080px) { .sn-bar::before { height: 68px; } }
/* While a menu is open, or the pointer is on the bar, the bar turns solid in the page colour, so the bar and the
   menu sheet below it read as one white surface with no seam */
.sn-bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 76px; z-index: -1; pointer-events: none;
  background: var(--bg, #fff); opacity: 0; transition: opacity .22s ease;
}
.sn-bar:hover::after, .sn-bar:focus-within::after, .sn-bar:has(.sn-panel.open)::after { opacity: 1; }
@media (max-width: 1080px) { .sn-bar::after { height: 68px; } }

/* full width: the bar spreads to the edges of the screen with a side margin, it does not stop at 1320 px */
.sn-inner { display: flex; align-items: center; gap: clamp(28px, 3.4vw, 56px); width: 100%; max-width: none; height: 76px; padding: 0 clamp(20px, 3.2vw, 56px); }

/* No glass anywhere in the header */
.sn-bar .sn-glass { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; }

/* ——— Logo: in proportion with the links (the word's lowercase sits a touch above the links' text) ——— */
.sn-mark { flex: none; }
/* lockup: the original SaagaSolve symbol (dot in ink) with the word sʌʌga/solve */
.sn-mark svg.logotype { height: 20px; }
/* optical alignment with the links: the word's lowercase is taller than the links' (15 px Satoshi), so with the
   baselines matched the logo reads 1.6 px high. Line up the middles of the lowercase instead (the symbol sits there) */
.sn-bar .sn-inner > .sn-mark svg.logotype { transform: translateY(1.6px); }

/* ——— Links: plain text, clear spacing, no pill and no carets ——— */
.sn-pill { flex: 1; min-width: 0; gap: 0 clamp(18px, 2.1vw, 32px); padding: 0; border-radius: 0; }
.sn-pill > a, .sn-top > a {
  padding: 10px 0 !important; border-radius: 0; background: none !important;
  font: 400 15px/1 var(--display, var(--sans)); letter-spacing: 0; color: var(--ink-soft);
}
.sn-top, .sn-top:hover { background: none; border-radius: 0; }
.sn-pill > a:hover, .sn-top > a:hover, .sn-top:hover > a, .sn-top:has(.sn-caret[aria-expanded="true"]) > a,
.sn-pill > [aria-current="true"], .sn-top > [aria-current="true"] { color: var(--ink); background: none; }
.sn-top:has(.sn-caret[aria-expanded="true"]) { background: none; }
/* hover: the label darkens and a 1 px line grows under it from the left; it stays while its menu is open */
.sn-pill > a, .sn-top > a {
  background-image: linear-gradient(currentColor, currentColor) !important; background-repeat: no-repeat !important;
  background-position: 0 calc(100% - 4px) !important; background-size: 0% 1px !important;
  transition: color .2s ease, background-size .3s cubic-bezier(.2, .7, .2, 1) !important;
}
.sn-pill > a:hover, .sn-top > a:hover, .sn-top:hover > a, .sn-top:has(.sn-caret[aria-expanded="true"]) > a, .sn-pill > a:focus-visible, .sn-top > a:focus-visible { background-size: 100% 1px !important; }
@media (prefers-reduced-motion: reduce) { .sn-pill > a, .sn-top > a { transition: color .2s ease !important; } }
/* the caret stays for keyboard users (it opens the menu) but is invisible until it gets focus */
.sn-caret { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.sn-caret:focus-visible { position: static; width: 18px; height: 18px; margin-left: 4px; clip-path: none; overflow: visible; }
.sn-top { position: relative; }
.sn-pill > .sn-mini, .sn-pill > .sn-pill-cta { display: none !important; }

/* ——— One button: the call to action, in orange, no arrow ——— */
.sn-actions { margin-left: auto; }
.sn-cta, .sn-bar .sn-cta {
  background: var(--orange) !important; color: #fff !important; box-shadow: none !important;
  border: 0; border-radius: 8px; padding: 12px 18px;
  font: 500 14px/1 var(--display, var(--sans)); letter-spacing: 0; transition: background-color .2s;
}
.sn-cta:hover { background: var(--orange-2) !important; }
.sn-cta > span[aria-hidden] { display: none; }

/* ——— The header always stays put: nothing hides or shrinks on scroll ——— */
.sn-bar.is-scrolled .sn-mark, .sn-bar.is-scrolled .sn-actions .sn-cta,
.sn-bar.ed-hide .sn-mark, .sn-bar.ed-hide .sn-pill, .sn-bar.ed-hide .sn-burger { opacity: 1; transform: none; pointer-events: auto; }

/* ——— Menus: a full-width sheet under the bar, solid, no glass ——— */
.sn-panel {
  left: 0; right: 0; top: 76px; width: auto; translate: none; border-radius: 0;
  background: var(--bg, #fff) !important; border-top: 0; border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -40px rgba(0, 0, 0, .35);
}
.sn-panel-inner { width: 100%; margin: 0; padding: 34px clamp(20px, 3.2vw, 56px) 40px; }
.sn-links a { border-radius: 6px; }
.sn-feature { border-radius: 10px; }

/* ——— Smaller screens: logo + button + menu ——— */
@media (max-width: 1240px) {
  .sn-pill { display: none; }
  .sn-burger { display: inline-flex; }
}
@media (max-width: 1080px) { .sn-inner { height: 68px; } .sn-mark svg.logotype { height: 19px; } }
.sn-burger { border-radius: 8px; padding: 11px 12px; color: var(--ink); }
.sn-burger:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
@media (max-width: 520px) { .sn-actions .sn-cta { display: none; } }

/* Mobile menu: a plain full-screen sheet */
.sn-drawer.sn-glass { inset: 0; border-radius: 0; background: var(--bg, #fff); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; }
.sn-drawer-head { border-radius: 0; background: var(--bg, #fff); }
.sn-drawer summary, .sn-drawer .sn-direct { font-family: var(--display, var(--sans)); font-weight: 400; }
.sn-drawer .sn-cta { justify-content: center; }

/* ——— Over a dark full-bleed hero (the page sets .hx-dark-top on <html> while the photo is under the bar):
   darker glass, white logo and links. Hovering or opening a menu turns the bar solid page-colour again, with ink ——— */
.hx-dark-top .sn-bar::before { background: rgba(14, 11, 8, .22); }
.hx-dark-top .sn-bar:not(:hover):not(:focus-within):not(:has(.sn-panel.open)) :is(.sn-mark, .sn-pill > a, .sn-top > a, .sn-burger) { color: #fff; }
.sn-mark, .sn-pill > a, .sn-top > a, .sn-burger { transition: color .25s ease; }
