/* Noms site chrome (D14): masthead, sticky section nav, Cmd-K search and the town footer.
   Shared by the homepage (front-page.php) and daily reports (single-report.php) through
   template-parts/site-header.php and site-footer.php, so the two pages cannot drift.
   Everything is scoped to .nh (the page root on both templates). Loaded before the page's own CSS. */
@font-face{font-family:"Outfit Fallback";src:local("Arial Bold"),local("Arial-BoldMT"),local("Arial");font-weight:800 900;size-adjust:96.5%}
@font-face{font-family:"DM Sans Fallback";src:local("Arial");font-weight:400;size-adjust:103.9%}
@font-face{font-family:"DM Sans Fallback";src:local("Arial Bold"),local("Arial-BoldMT");font-weight:700;size-adjust:103.9%}
@font-face{font-family:"Outfit Fallback R";src:local("Roboto Bold"),local("Roboto-Bold");font-weight:800 900;size-adjust:101.8%}
@font-face{font-family:"DM Sans Fallback R";src:local("Roboto"),local("Roboto-Regular");font-weight:400;size-adjust:104.8%}
@font-face{font-family:"DM Sans Fallback R";src:local("Roboto Bold"),local("Roboto-Bold");font-weight:700;size-adjust:104.8%}

.nh{
  /* Brand tokens: The Org/Guidelines/brand-style-sheet.md (names here are local aliases). */
  --ink:#161616; --ground:#FFFFFF; --paper:#FFFFFF; --night:#1C1814; --night-2:#2A2620;
  --yellow:#FFC400; --yellow-soft:#FFF4CC; --red:#FA5745; --teal:#2D7D8C; --teal-pale:#B9D6DC;
  --body:#161616; --muted:#4A4740; --line:#E8DEC9; --line-2:#CFC9BC; --chip-line:#8A7F6E; --on-dark:#CFC9BC; --rule-dark:#3A352D;
  --display:"Outfit","Outfit Fallback","Outfit Fallback R",system-ui,-apple-system,"Segoe UI",sans-serif;
  --sans:"DM Sans","DM Sans Fallback","DM Sans Fallback R",system-ui,-apple-system,"Segoe UI",sans-serif;
  --gut:clamp(16px,3.4vw,48px); --max:1344px; --r:16px; --nav-h:68px;
  background:var(--ground); color:var(--body); font:400 16px/1.55 var(--sans);
  -webkit-font-smoothing:antialiased; overflow-x:clip;
}
.nh *,.nh *::before,.nh *::after{box-sizing:border-box}
.nh [hidden]{display:none!important}
:where(.nh) a{color:inherit}
:where(.nh) img{display:block;max-width:100%;height:auto}
/* Keep anchor jumps and keyboard focus clear of the sticky nav (68px, 60px on phones). Scroll padding also
   covers focus scrolling, which scroll-margin on targets did not (WCAG 2.4.11). */
html:has(.nh-nav){scroll-padding-top:84px}
.nh :focus-visible{outline:3px solid var(--ink);outline-offset:3px;border-radius:4px}
.nh :is(.nh-foot,.nh-crave) :focus-visible,.nh .nh-side[data-t="grave"]:focus-visible{outline-color:var(--yellow)}
.nh main:focus{outline:0}
.nh-i{width:1em;height:1em;flex:none}
.nh-wrap{max-width:calc(var(--max) + 2*var(--gut));margin-inline:auto;padding-inline:var(--gut)}
.nh-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.nh-skip{position:absolute;left:var(--gut);top:-60px;background:var(--ink);color:var(--ground);padding:10px 14px;border-radius:8px;z-index:60;text-decoration:none;font-weight:700}
.nh-skip:focus{top:10px}
/* kickers: uppercase label led by a colour dot (the D14 system) */
.nh-kick{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font:700 12px/1.3 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}
.nh .d{width:8px;height:8px;border-radius:50%;background:var(--ink);flex:none;display:inline-block}
.nh .d[data-t="fresh"]{background:var(--red)}
.nh .d[data-t="back"]{background:var(--yellow);box-shadow:inset 0 0 0 1.5px var(--ink)}
.nh .d[data-t="grave"]{background:transparent;box-shadow:inset 0 0 0 1.5px var(--ink)}
.nh .d[data-t="news"]{background:var(--ink)}
.nh-kick .sep{display:none}
.nh-kick .sep+*::before{content:"·" / "";opacity:.45;margin-right:8px}
.nh-kick>*{white-space:nowrap}
.nh-kick time{font-weight:400;letter-spacing:.06em}
/* ---------- masthead ---------- */
/* The header sits on white, not the cream ground (Jason, 2026-09-28). */
.nh-mast{padding-block:clamp(18px,3vw,40px) clamp(14px,2vw,22px);background:var(--paper)}
.nh-mast__row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 32px;flex-wrap:wrap}
.nh-brand{display:flex;align-items:flex-end;gap:clamp(14px,2.4vw,36px);text-decoration:none}
.nh-brand img{width:clamp(140px,21vw,300px);aspect-ratio:1080/500}
.nh-tag{margin:0 0 clamp(4px,.8vw,12px);transform:rotate(-3deg);transform-origin:left bottom;font:800 clamp(13px,1.45vw,21px)/1.12 var(--display);color:var(--ink);text-transform:uppercase;letter-spacing:-.005em}
.nh-tag span{display:block}
.nh-tag mark{background:var(--yellow);color:var(--ink);padding:1px 6px;display:inline-block;margin-top:2px}
.nh-mast__proof{display:grid;gap:8px;justify-items:end;text-align:right}
.nh-mast__join{display:grid;gap:2px;justify-items:end;text-decoration:none}
.nh-mast__join b{font:800 clamp(17px,1.5vw,22px)/1.2 var(--display);color:var(--ink);letter-spacing:-.02em}
.nh-mast__join span{font-size:14px;color:var(--muted)}
.nh-mast__join em{font:700 14px/1 var(--sans);font-style:normal;color:var(--ink);display:inline-flex;gap:6px;align-items:center;margin-top:6px;background:var(--yellow);padding:8px 12px;border-radius:999px}
.nh-mast__join:hover em{box-shadow:inset 0 0 0 2px var(--ink)}
.nh-mast__join em{display:none}
.nh-mast__join:hover b{text-decoration:underline;text-underline-offset:4px}
.nh-live{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.nh-live i{width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 0 rgba(250,87,69,.5);animation:nh-ping 2.4s ease-out 3}
.nh-live__new{font-weight:700;color:var(--ink)}
@keyframes nh-ping{to{box-shadow:0 0 0 9px rgba(250,87,69,0)}}

/* ---------- nav (sticky; logo slides in once the masthead scrolls away) ---------- */
.nh-nav{position:sticky;top:env(safe-area-inset-top,0px);z-index:40;background:var(--paper);border-block:1px solid var(--line-2)}
.nh-nav .nh-wrap{display:flex;align-items:center;gap:0;min-height:var(--nav-h)} /* the hidden mini logo must not indent the links */
.nh-nav__mini{flex:none;width:0;opacity:0;overflow:hidden;transition:width .25s ease,margin .25s ease,opacity .2s ease}
.nh-nav__mini img{width:74px;aspect-ratio:1080/500}
.nh-nav.is-stuck .nh-nav__mini{width:74px;margin-right:20px;opacity:1}
/* the mini logo takes room from the list when stuck: fade the edge so a clipped item reads as scrollable */
.nh-nav.is-stuck .nh-nav__list{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
.nh-nav__list{display:flex;gap:clamp(14px,1.9vw,28px);list-style:none;margin:0;padding:0;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}
.nh-nav__list::-webkit-scrollbar,.nh-scroll::-webkit-scrollbar{display:none}
.nh-nav__list a{display:grid;gap:1px;padding:10px 0 8px;text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent}
.nh-nav__list a b{font:700 15px/1.25 var(--sans);color:var(--ink)}
.nh-nav__list a small{font:400 11px/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.nh-nav__list a[aria-current]{border-color:var(--ink)}
.nh-nav__list a:hover b{text-decoration:underline;text-underline-offset:4px}
.nh-nav__end{display:flex;align-items:center;gap:10px;flex:none;margin-left:20px}
.nh-search{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line-2);color:var(--ink);background:var(--paper)}
.nh-search .nh-i{width:18px;height:18px}
.nh-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;background:var(--ink);color:var(--ground);font:700 14px/1 var(--sans);text-decoration:none;border:0;cursor:pointer;white-space:nowrap}
.nh-btn:hover{background:#000}
.nh-btn--ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.nh-btn--ghost:hover{background:var(--ink);color:var(--ground)}
.nh-btn--ghost-light{background:transparent;color:var(--ground);box-shadow:inset 0 0 0 1.5px var(--ground)}
.nh-btn--ghost-light:hover{background:var(--ground);color:var(--ink)}
.nh-btn--yellow{background:var(--yellow);color:var(--ink)}
.nh-btn--yellow:hover{box-shadow:inset 0 0 0 2px var(--ink)}
/* ---------- footer ---------- */
.nh-foot{background:var(--night);color:var(--ground);padding-block:clamp(40px,5vw,64px) 28px}
.nh-foot__top{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-bottom:28px;border-bottom:1px solid var(--rule-dark)}
.nh-foot__hello{display:flex;align-items:center;gap:16px}
.nh-foot__hello img{width:64px;height:64px}
.nh-foot__hello b{display:block;font:900 26px/1.1 var(--display);letter-spacing:-.03em}
.nh-foot__hello span{font-size:14px;color:var(--on-dark)}
.nh-town{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px;padding-block:28px}
.nh-town h3{margin:0 0 12px;font:700 15px/1.3 var(--sans);color:var(--ground)}
.nh-town h3 small{display:block;font:700 11px/1.4 var(--sans);letter-spacing:.1em;text-transform:uppercase;margin-top:3px}
.nh-town [data-c="red"] small{color:var(--red)}
.nh-town [data-c="yellow"] small{color:var(--yellow)}
.nh-town [data-c="teal"] small{color:var(--teal-pale)}
.nh-town [data-c="grave"] small,.nh-town [data-c="hall"] small{color:var(--on-dark)}
.nh-town ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.nh-town a{display:inline-block;padding-block:5px;text-decoration:none;color:#fff;font-size:15px}
.nh-town a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.nh-foot__base{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding-top:22px;border-top:1px solid var(--rule-dark);font-size:13px;color:var(--on-dark)}
.nh-foot__base img{width:84px;aspect-ratio:1080/500}
/* ---------- search (Cmd-K) ---------- */
.nh-search--k{width:auto;gap:8px;padding:0 12px 0 13px;border-radius:999px;display:inline-flex;align-items:center;text-decoration:none}
.nh-k{font:700 11px/1 var(--sans);padding:4px 6px;border-radius:6px;background:var(--paper);border:1px solid var(--line-2);color:var(--muted)}
.nh-cmd{position:fixed;inset:0;z-index:90;background:rgba(22,22,22,.35);backdrop-filter:blur(4px);display:grid;justify-items:center;align-content:start;padding:12vh 16px 0}
.nh-cmd__box{width:min(640px,100%);background:var(--paper);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.25),0 0 0 2px var(--ink);overflow:hidden;animation:nh-cmdin .2s ease-out}
@keyframes nh-cmdin{from{transform:scale(.97);opacity:0}}
.nh-cmd__top{display:flex;align-items:center;border-bottom:1px solid var(--line);padding-right:10px}
.nh-cmd__close{flex:none;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--line-2);background:var(--paper);color:var(--ink);font:700 14px/1 var(--sans);cursor:pointer}
.nh-cmd__empty{margin:0;padding:14px 16px 4px;font-size:14px;color:var(--muted)}
.nh-cmd input{flex:1;min-width:0;border:0;padding:20px 22px;font:500 19px var(--sans);outline:none;background:var(--paper);color:var(--ink)}
.nh-cmd input::-webkit-search-cancel-button{display:none}
.nh-cmd input:focus-visible{outline:0}
.nh-cmd__box:focus-within{box-shadow:0 24px 70px rgba(0,0,0,.25),0 0 0 3px var(--ink)}
.nh-cmd__res{list-style:none;margin:0;padding:6px;max-height:52vh;overflow:auto}
.nh-cmd__res a{display:grid;grid-template-columns:118px 1fr;gap:4px 12px;padding:12px 14px;border-radius:12px;text-decoration:none}
.nh-cmd__res a .nh-kick{grid-row:span 2;align-self:center}
.nh-cmd__res a b{font:700 15px/1.3 var(--sans);color:var(--ink)}
.nh-cmd__res a small{color:var(--muted)}
.nh-cmd__res a.is-on,.nh-cmd__res a:hover,.nh-cmd__res a:focus{background:var(--yellow-soft)}
.nh-cmd__res mark{background:var(--yellow);color:inherit;border-radius:3px}
.nh-cmd__hint{margin:0;padding:10px 16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.nh-cmd kbd{font:700 11px/1 var(--sans);padding:3px 6px;border-radius:5px;border:1px solid var(--line-2)}
.nh-cmd__res a:focus-visible{outline-offset:-3px}
@media (max-width:640px){.nh-cmd__res a{grid-template-columns:1fr}.nh-cmd__res a .nh-kick{grid-row:auto}.nh-k,.nh-cmd__hint{display:none}.nh-search--k{padding:0;width:44px;justify-content:center}.nh-cmd{padding-top:10px}}

@media (max-width:1080px){
  .nh-town{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:640px){
  .nh{--nav-h:60px}
  .nh-mast__row{gap:14px}
  .nh-mast__proof{justify-items:start;text-align:left;flex-basis:100%;gap:10px}
  .nh-mast__join{display:block;font-size:13px;line-height:1.4;color:var(--muted)}
  .nh-mast__join b{display:inline;font:700 13px/1.4 var(--sans);letter-spacing:0}
  .nh-mast__join span{font-size:13px}
  .nh-mast__join em{display:inline;background:none;padding:0;margin:0 0 0 4px;font-size:13px;text-decoration:underline;text-underline-offset:3px}
  .nh-nav__cta{display:none}
  .nh-nav__list a small{display:none}
  .nh-nav__list{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
  .nh-town{grid-template-columns:1fr 1fr}
}

@media (max-width:480px){
  .nh-live{display:none}
}

@media (prefers-reduced-motion:reduce){
  .nh *,.nh *::before,.nh *::after{animation:none!important;transition:none!important}
}

/* Oct 25: board fixes from the Oct 11-12 battle tests. Masthead line, a 13px text floor,
   kicker separators that trail (so no line starts with "·"), and the footer's six columns. */
.nh-mast__sub{margin:0;font:700 15px/1.3 var(--sans);color:var(--ink)}
.nh-kick{font-size:13px}
.nh-kick .sep+*::before{content:none}
.nh-kick>:has(+ .sep)::after{content:"·" / "";opacity:.45;margin-left:8px}
.nh-nav__list a small,.nh-town h3 small{font-size:13px}
.nh-town{grid-template-columns:repeat(5,minmax(0,1fr))}
.nh-foot__marks{display:inline-flex;align-items:center;gap:14px}
.nh-foot__base img.nh-foot__nomnom{width:56px;height:56px;aspect-ratio:1}
@media (max-width:1080px){
  .nh-town{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:640px){
  .nh-town{grid-template-columns:1fr 1fr}
  .nh-mast__sub{font-size:13px;color:var(--muted)}
  .nh-tag{font-size:14px}
}
.nh-cmd__hint,.nh-cmd kbd{font-size:13px}
/* The building names at 13px make the nav wider than the screen below 1440px: hide them there and show
   the fade that says the list scrolls (it was phone-only). */
@media (max-width:1439px){
  .nh-nav__list a small{display:none}
  .nh-nav__list{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
}
