/* THE ONE PUBLIC HEADER (NAV-1, 8 Nov 2026). The owner: "also why do the home navbars and options/pages change between
   these tabs - have claude fix it". Home (the React marketing page) and every public page (/pricing, /advisors,
   /about, /contact, /join, /sms) now carry the same skip link, the same beta strip ("NOW IN PRIVATE BETA", or
   "NOW IN OPEN BETA" once sign-up opens) and the same header: the mark, How it works, Pricing, For Advisors, About,
   Contact, Log in and the dark pill ("Join the waitlist" to /join, or "Start free trial" to /account/advisor-signup.html
   once sign-up opens). scripts/check-public-header.js holds the seven to one item list.

   One stylesheet, loaded by all seven, and the only place these rules live (they moved here from public.css).
   Every selector is scoped under .pub-*, and the header restates what it needs, because Home also loads
   advisor-marketing.css, whose bare `header`, `nav` and `nav a` rules (sticky, a 32px gap, an animated underline,
   and on phones an absolutely positioned nav) would otherwise reach it.

   Narrow screens (880px and narrower) get a native <details> menu that opens IN THE PAGE FLOW, below the header row, so it
   never covers what is under it (the /sms programme included) and traps no focus. assets/public-header.js adds
   Escape-to-close with focus returned to Menu on every page that allows a script; /sms stays script-free and keeps
   the native toggle. */

/* THE OPEN SIGN-UP GATE (25 Nov 2026). Today's wording is the HTML's default; the open-sign-up wording sits beside it.
   assets/promo.js adds .os-on to <html> only when the server's open_signup switch is on (netlify/lib/promo-state.js),
   so a failed read, no JavaScript, or /sms (script-free by its own rule) keeps today's wording. Written as one HIDE
   rule per state, not ".os-only{display:none} html.os-on .os-only{display:revert}": measured here, revert hands a
   gated .pub-btn, .primary or .pub-cta the browser's own inline display, and the header's ".pub-header .pub-nav
   .pub-cta" and ".pub-header .pub-header-menu nav a" (three classes) out-weigh a one-class gate, so both pills showed
   in both states. !important is what lets the gate beat those; it only ever hides. account/index.html loads this
   file for its two advisor lines. */
html:not(.os-on) .os-only{display:none!important}
html.os-on .os-off-only{display:none!important}

.pub-skip{position:absolute;left:-9999px;top:0;z-index:60;background:var(--ink);color:#ffffff;
  font-size:13px;font-weight:700;padding:10px 16px;border-radius:0 0 10px 0;text-decoration:none}
.pub-skip:focus{left:0}

.pub-beta{padding:8px 24px;text-align:center;font-family:var(--font-body);font-size:10px;line-height:1.6;
  letter-spacing:.08em;font-weight:600;background:var(--ink);color:#ffffff}
/* THE BLACK FRIDAY COUNTDOWN IN THE STRIP (26 Nov 2026; REQUESTS.md BFC-1; the owner: "a small live timer countdown at the
   top"). The strip carries a link beside its words, hidden unless assets/bf-countdown.js sets html.bfc-on (the server
   announces the offer, the device clock agrees with the server's, and time is left); then the link replaces the words,
   and at zero the words come back. Two links, gated like the banner's call to action: sign-up (open sign-up) or /join.
   The strip keeps its height: the link is one 16px line pulled over the strip's padding, so the whole strip is the
   target and nothing below moves. Fixed-width digits, so the time does not jitter. :is(#marketing-root, body) outweighs
   Home's "a:focus-visible" (advisor-marketing.css). */
.pub-beta .bfc{display:none}
html.bfc-on .pub-beta > span{display:none}
:is(#marketing-root, body) .pub-beta .bfc{margin:-8px -24px;padding:8px 24px;height:32px;box-sizing:border-box;overflow:hidden;
  white-space:nowrap;font-size:11px;line-height:16px;color:#ffffff;text-decoration:none}
html.bfc-on .pub-beta .bfc{display:block}
.pub-beta .bfc-time{display:inline-block;font-weight:700;letter-spacing:.02em;font-variant-numeric:tabular-nums}
/* Gotham has no tabular figures, so assets/bf-countdown.js puts each digit in a cell as wide as its widest digit (0, .626em). */
.pub-beta .bfc-d{display:inline-block;width:.63em;text-align:center}
:is(#marketing-root, body) .pub-beta .bfc:hover > span{border-bottom:1px solid #ffffff}   /* not text-decoration: it skips the digit cells */
:is(#marketing-root, body) .pub-beta .bfc:focus-visible{outline:2px solid #ffffff;outline-offset:-4px}
.bfc-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.pub-header{background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.pub-header-in{max-width:var(--container);margin:0 auto;padding:16px var(--gutter);
  display:flex;align-items:center;flex-wrap:nowrap;gap:10px 22px}
.pub-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);flex-shrink:0;min-height:44px}
.pub-brand img{width:34px;height:auto;max-height:44px;display:block}
.pub-brand b{font-family:var(--font-display);font-weight:500;font-size:20px;letter-spacing:.01em;white-space:nowrap}
/* :is(#marketing-root, body) gives these id-level weight on every page: Home's advisor-marketing.css says
   "#marketing-root nav{font-size:15px;gap:28px}", which out-weighed a class rule and made Home's row 72px wider. */
:is(#marketing-root, body) .pub-header .pub-nav{display:flex;align-items:center;flex-wrap:nowrap;gap:4px 22px;margin-left:auto;
  position:static;padding:0;background:none;border:0;font-size:13px}
.pub-header .pub-nav a{font-size:13px;font-weight:600;color:var(--ink);text-decoration:none;padding:6px 0;
  white-space:nowrap;position:static}
.pub-header nav a::after{content:none}
.pub-header .pub-nav a:hover,.pub-header .pub-nav a[aria-current="page"]{text-decoration:underline;
  text-underline-offset:6px;text-decoration-color:var(--ink)}
.pub-header .pub-cta,.pub-header .pub-nav .pub-cta{display:inline-flex;align-items:center;min-height:42px;
  padding:10px 18px;border-radius:999px;background:var(--ink);color:#ffffff;border:1px solid var(--ink);text-decoration:none}
.pub-header .pub-nav .pub-cta:hover{background:#000000;border-color:#000000;color:#ffffff;text-decoration:none}
.pub-header .pub-cta[aria-current="page"]{box-shadow:0 0 0 3px var(--brand-teal);text-decoration:none}
.pub-header :is(a,summary):focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.pub-header-menu{display:none}

@media (max-width:1100px){
  :is(#marketing-root, body) .pub-header .pub-nav{gap:4px 16px}
  .pub-header .pub-nav a{font-size:12.5px}
}
/* 880, not 800 (the NAV-1 review): the one-row nav needs about 852px; below 880 the Menu disclosure takes over. */
@media (max-width:880px){
  .pub-header{position:relative}
  .pub-header-in{height:63px;min-height:63px;padding:8px calc(var(--gutter) + 60px) 8px var(--gutter);gap:16px}
  .pub-brand{min-width:0;gap:8px;margin-right:auto}
  .pub-brand img{width:30px}
  .pub-brand b{font-size:18px}
  :is(#marketing-root, body) .pub-header .pub-nav{display:none}
  .pub-header-menu{display:block}
  .pub-header-menu summary{position:absolute;top:8px;right:var(--gutter);display:flex;align-items:center;
    justify-content:center;min-width:44px;min-height:44px;padding:0 10px;cursor:pointer;list-style:none;
    font-size:var(--text-md);font-weight:600;color:var(--ink);border-radius:10px}
  .pub-header-menu summary::-webkit-details-marker{display:none}
  .pub-header-menu summary:hover{background:var(--brand-ice)}
  .pub-header .pub-header-menu nav{display:block;position:static;margin:0 var(--gutter) 16px;padding:16px;
    background:var(--card);border:1px solid var(--line);border-radius:0 0 16px 16px;box-shadow:var(--shadow);
    opacity:1;visibility:visible;transform:none;pointer-events:auto}
  .pub-header .pub-header-menu nav a{display:block;min-height:48px;padding:12px 16px;border-radius:10px;
    color:var(--ink);font-size:var(--text-md);font-weight:600;text-decoration:none;position:static}
  .pub-header .pub-header-menu nav a:hover{background:var(--brand-ice)}
  .pub-header .pub-header-menu nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:4px}
  .pub-header .pub-header-menu nav .pub-cta{display:flex;justify-content:center;margin-top:8px;color:#ffffff}
}
