/* First Signal Wire: homepage "Log in" / "Account" header button (Nov 27 2026, Brad 6:01 PM PT). Additive. Brand tokens only, no logos. */
.tnav a.fsw-login{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:none;align-self:center;min-height:0;height:28px;padding:0 12px;margin:0 2px 0 4px;border-radius:999px;border:1px solid var(--text);background:transparent;color:var(--text);font-size:11px;font-weight:var(--w-strong);letter-spacing:.02em;line-height:1;text-decoration:none;white-space:nowrap}
.tnav a.fsw-login:hover,.tnav a.fsw-login[aria-current]{background:var(--text);color:var(--bg);text-decoration:none}
.tnav a.fsw-login:focus-visible{outline:var(--focus-w) solid var(--focus);outline-offset:2px}
@media (max-width:480px){
  .top .tnav > a.fsw-login{order:2;height:26px;padding:0 9px;margin:0;font-size:10px}
}
@media (max-width:430px){
  .top .tnav > a.fsw-login{padding:0 7px;letter-spacing:0}
}
@media (max-width:360px){
  .top .tnav > a.fsw-login{padding:0 5px}
}
/* Keep one header row on phones with the extra button: <=430px uses the site's own 16px wordmark step (already used <=375), 15px <=320;
   <=380px drops the header About link (still in the footer) so brand + Premium + Log in + theme fit down to 320px. */
@media (max-width:430px){
  .brand{gap:8px}
  .brand .wm{font-size:16px}
}
@media (max-width:320px){
  .brand .wm{font-size:15px}
}
@media (max-width:380px){
  .top .tnav > a[href$="about.html"]{display:none}
  .top .tnav > a.goprem{margin-left:auto}
}

/* Header fix v2 (Sun Nov 29 2026, Brad t363u 6:56 PM PT: "the Light button is down below now"). Additive; earlier rules untouched.
   Since the Log in pill (Nov 27) the theme toggle wrapped to its own line on phones 431-480px (it still showed the "Light" text label)
   and at ~390px. Phones <=480 now all use the icon toggle from the Nov 22 mobile header fix, with a little slack, so
   brand + About + Premium + Log in + theme stay on one row from 320 to 480px. 481-560px: compact the site nav so it no longer overflows. */
@media (min-width:431px) and (max-width:480px){
  .top .in{column-gap:6px}
  .brand{gap:8px}
  .brand .wm{font-size:16px}
  .top .tnav > a[href$="about.html"]{padding:0 4px}
  .top .theme{min-width:32px;width:32px;padding:0;justify-content:center;position:relative}
  .top .theme .t-l,.top .theme .t-d{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .top .theme::before{content:"\263E";font-size:16px;line-height:1;font-style:normal}
  [data-theme=dark] .top .theme::before{content:"\2600"}
}
@media (min-width:381px) and (max-width:430px){
  .top .in{column-gap:3px}
  .brand{gap:6px}
  .top .tnav > a[href$="about.html"]{padding:0 1px}
  .tnav a.goprem{padding:0 4px}
  .top .tnav > a.fsw-login{padding:0 5px}
  .top .theme{min-width:30px;width:30px}
}
@media (min-width:481px) and (max-width:560px){
  .top .tnav{gap:2px}
  .top .tnav > a[href$="about.html"]{padding:0 6px}
  .tnav a.fsw-login{margin:0 2px;padding:0 10px}
  .top .theme{min-width:var(--hit);padding:0 6px;justify-content:center}
}
@media (min-width:321px) and (max-width:360px){
  .top .in{column-gap:2px}
  .brand .wm{font-size:15px}
  .tnav a.goprem{padding:0 4px}
  .top .tnav > a.fsw-login{padding:0 5px}
  .top .theme{min-width:28px;width:28px}
}
