/* The site's top nav (site-src/nav.mjs). Self-contained and scoped to .sn, so it is the same on every page.
   Light only. Ink #0C0B12 and coral #FF7A59 on pearl #F5F4F8; the sail mark from /assets/mark.svg. */
.sn { --sn-ink: #0C0B12; --sn-ink2: rgba(12, 11, 18, .64); --sn-ink3: rgba(12, 11, 18, .44); --sn-line: rgba(12, 11, 18, .08); --sn-coral: #FF7A59; --sn-ember: #B8432C;
  --sn-ease: cubic-bezier(.22, .8, .16, 1); --sn-pad: clamp(16px, 5.5vw, 96px);
  position: sticky; top: 0; z-index: 60; font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--sn-ink);
  background: rgba(245, 244, 248, .8); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 var(--sn-line);
  transition: background .4s var(--sn-ease), box-shadow .4s var(--sn-ease); -webkit-font-smoothing: antialiased; }
.sn *, .sn *::before, .sn *::after { box-sizing: border-box; }
.sn--home { position: fixed; left: 0; right: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sn--home.scrolled, .sn--home.open { background: rgba(245, 244, 248, .8); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 var(--sn-line); }
.sn-bar { position: relative; display: flex; align-items: center; gap: 30px; height: 68px; padding: 0 var(--sn-pad); }
.sn-mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -.03em; color: var(--sn-ink); text-decoration: none; flex: none; }
.sn-mark i { width: 23px; height: 22px; background: url("/assets/mark.svg") center / contain no-repeat; }
.sn-links { display: flex; align-items: center; gap: 4px; transition: opacity .35s var(--sn-ease), transform .35s var(--sn-ease); }
.sn-links > a, .sn-trig { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font: 500 14.5px/1 inherit; font-family: inherit; letter-spacing: -.01em; color: var(--sn-ink2); text-decoration: none; transition: color .2s, background .2s; }
.sn-links > a:hover, .sn-trig:hover, .sn-trig[aria-expanded="true"] { color: var(--sn-ink); background: rgba(12, 11, 18, .045); }
.sn-links > a[aria-current], .sn-trig[aria-current] { color: var(--sn-ink); }
.sn-caret { width: 12px; height: 12px; transition: transform .3s var(--sn-ease); }
.sn-trig[aria-expanded="true"] .sn-caret { transform: rotate(180deg); }
.sn-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.sn-in { height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-weight: 500; font-size: 14.5px; color: var(--sn-ink2); text-decoration: none; }
.sn-in:hover { color: var(--sn-ink); }
.sn-cta { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 19px; border-radius: 999px; background: var(--sn-ink); color: #fff;
  font-weight: 500; font-size: 15px; letter-spacing: -.01em; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(30, 18, 10, .45); transition: transform .2s var(--sn-ease), box-shadow .2s; }
.sn-cta:hover { box-shadow: 0 0 0 5px rgba(255, 122, 89, .16), 0 10px 24px -10px rgba(30, 18, 10, .45); }
.sn-cta:active { transform: scale(.97); }
.sn-burger { display: none; width: 42px; height: 42px; border-radius: 999px; border: 0; background: rgba(12, 11, 18, .05); cursor: pointer; position: relative; }
.sn-burger i { position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: var(--sn-ink); transition: transform .3s var(--sn-ease), top .3s var(--sn-ease); }
.sn-burger i:first-child { top: 17px; } .sn-burger i:last-child { top: 24px; }
.sn-burger[aria-expanded="true"] i:first-child { top: 20.5px; transform: rotate(45deg); } .sn-burger[aria-expanded="true"] i:last-child { top: 20.5px; transform: rotate(-45deg); }

/* The home page: links give way to the "your role · floor" pill once you're past the hero */
.sn--home .me { position: absolute; }
.sn--home:has(.me.on) .sn-links { opacity: 0; transform: translateY(-4px); pointer-events: none; }

/* Panels */
.sn-panel { position: absolute; left: 0; right: 0; top: 100%; padding: 0 var(--sn-pad); pointer-events: none; }
.sn-panel:not([hidden]) { pointer-events: auto; }
.sn-panel-in { max-width: 1120px; margin: 8px auto 0; background: #fff; border-radius: 24px; padding: 22px 24px 24px;
  box-shadow: 0 1px 2px rgba(12, 11, 18, .05), 0 40px 80px -36px rgba(40, 24, 12, .38), inset 0 0 0 1px rgba(12, 11, 18, .05);
  animation: snIn .32s var(--sn-ease) both; }
.sn-panel--res .sn-panel-in { max-width: 920px; }
@keyframes snIn { from { opacity: 0; transform: translateY(-6px) scale(.99); } }
.sn-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.sn-search { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 16px; border-radius: 14px; background: #F5F4F8; color: var(--sn-ink3); cursor: text; transition: box-shadow .2s; }
.sn-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--sn-coral); background: #fff; }
.sn-search svg { width: 16px; height: 16px; flex: none; }
.sn-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 15.5px/1 inherit; font-family: inherit; color: var(--sn-ink); }
.sn-search input::placeholder { color: var(--sn-ink3); }
.sn-search input::-webkit-search-cancel-button { display: none; }
.sn-search kbd { font: 500 11.5px/1 "Geist Mono", ui-monospace, monospace; color: var(--sn-ink3); padding: 5px 7px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--sn-line); }
.sn-all, .sn-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; color: var(--sn-ink); text-decoration: none; white-space: nowrap; }
.sn-all:hover, .sn-more:hover { color: var(--sn-ember); }
.sn-more { margin-top: 10px; font-size: 13.5px; color: var(--sn-ink2); }
.sn-arr { width: 15px; height: 15px; transition: transform .25s var(--sn-ease); }
a:hover > .sn-arr, a:hover .sn-go .sn-arr { transform: translateX(3px); }
.sn-grid { display: grid; grid-template-columns: 1fr 260px; gap: 24px; }
.sn-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.sn-h { margin: 0 0 10px; font: 500 11px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--sn-ink3); }
.sn ul { list-style: none; margin: 0; padding: 0; }
.sn-col li a { display: block; padding: 6px 0; font-size: 14.5px; line-height: 1.3; color: var(--sn-ink); text-decoration: none; transition: color .15s; }
.sn-col li a:hover { color: var(--sn-ember); }
.sn-feat { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; background: #FFF1EC; color: var(--sn-ink); text-decoration: none; transition: background .25s; }
.sn-feat:hover { background: #FFE7DE; }
.sn-feat .sn-k { font: 500 11px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--sn-ember); }
.sn-feat b { font-size: 21px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; margin-top: 4px; }
.sn-feat > span:not(.sn-k):not(.sn-go) { font-size: 14px; line-height: 1.45; color: var(--sn-ink2); }
.sn-go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14.5px; color: var(--sn-ember); }
.sn-res { display: grid; grid-template-columns: 1fr 1.1fr 280px; gap: 30px; }
.sn-rows li a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; text-decoration: none; color: var(--sn-ink); transition: background .15s; }
.sn-rows li a:hover { background: #F5F4F8; }
.sn-rows b { font-weight: 500; font-size: 14.5px; }
.sn-rows span { font-size: 13px; color: var(--sn-ink3); }
.sn-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 18px; margin: -6px 0 4px; }
.sn-results li a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; color: var(--sn-ink); text-decoration: none; }
.sn-results li a span { font-size: 12.5px; color: var(--sn-ink3); white-space: nowrap; }
.sn-results li a:hover, .sn-results li a.hl { background: #F5F4F8; }
.sn-results .sn-none { grid-column: 1 / -1; padding: 12px; color: var(--sn-ink3); font-size: 14.5px; }
.sn-panel--tools.searching .sn-grid { display: none; }

/* Mobile */
.sn-sheet { display: none; }
@media (max-width: 1080px) { .sn-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sn-grid { grid-template-columns: 1fr; } .sn-res { grid-template-columns: 1fr 1fr; } .sn-feat--guide { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .sn-bar { gap: 12px; height: 62px; }
  .sn-links, .sn-in, .sn-panel { display: none !important; }
  .sn-burger { display: inline-block; }
  .sn--home .me { display: none; }
  .sn-sheet:not([hidden]) { display: flex; flex-direction: column; gap: 4px; position: fixed; inset: 62px 0 0; overflow: auto; padding: 14px 20px 40px; background: #F5F4F8; animation: snIn .3s var(--sn-ease) both; }
  .sn-sheet details { border-bottom: 1px solid var(--sn-line); }
  .sn-sheet summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 2px; font-size: 20px; font-weight: 600; letter-spacing: -.03em; cursor: pointer; }
  .sn-sheet summary::-webkit-details-marker { display: none; }
  .sn-sheet summary .sn-caret { width: 16px; height: 16px; }
  .sn-sheet details[open] summary .sn-caret { transform: rotate(180deg); }
  .sn-sheet details > div { padding: 0 2px 18px; }
  .sn-sheet details .sn-h { margin: 14px 0 6px; }
  .sn-sheet details li a { display: block; padding: 8px 0; font-size: 16px; color: var(--sn-ink); text-decoration: none; }
  .sn-sl { padding: 18px 2px; border-bottom: 1px solid var(--sn-line); font-size: 20px; font-weight: 600; letter-spacing: -.03em; color: var(--sn-ink); text-decoration: none; }
  .sn-cta--wide { margin-top: 22px; height: 54px; font-size: 16.5px; }
  .sn-acts .sn-cta { height: 40px; padding: 0 16px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .sn *, .sn { animation: none !important; transition: none !important; } }
/* While the mobile sheet is open the bar drops its glass: backdrop-filter would trap the fixed sheet inside the bar */
.sn.sheet-open { z-index: 1000; background: #F5F4F8 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.sn-in.signed { color: var(--sn-ink); }
.sn-in.signed::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sn-coral); margin-right: 8px; }
/* The home page's apply dialog (body.locked) sits above everything: the nav steps aside while it is open */
body.locked .sn { visibility: hidden; }
