/* Menus and look refresh (branch mejora-menus-estetica, 10 Nov 2026; review artifact in
   artifacts/2026-11-10-revision-menus/). Loaded last. Each block carries the code of its change in the review
   ([T1], [D2]...), so a rejected change is removed as one block. Nothing here changes content or logic.
   Tone: more sober (PRODUCT.md): one quiet highlight for "current", motion only for transitions. */

/* [T1] Display face for headings and menu: Schibsted Grotesk (OFL, self-hosted, assets/fonts/). Body text stays
   Roboto. The two Roboto !important blocks in css/01.css stay; these selectors are more specific, so they win
   without removing anything. */
@font-face{font-family:"Schibsted Grotesk";src:url(../assets/fonts/SchibstedGrotesk-latin.woff2) format("woff2");font-weight:500 800;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--font-display:"Schibsted Grotesk",Roboto,"Segoe UI",system-ui,sans-serif;--font-body:Roboto,"Segoe UI",system-ui,sans-serif}
h1,h2,h3,
#library-title,.home-q,.home-title,
.sb .sb-head,.sb .sb-item,.sb .sb-brand-title,.sb .sb-back,
.gn-mobile .gn-chapter,.guide-pager button b{font-family:var(--font-display)!important}
h1,h2{letter-spacing:-.015em}
#library-title{letter-spacing:-.025em}
.sb .sb-item{font-weight:500;letter-spacing:.005em}
.sb .sb-head{font-weight:700;letter-spacing:.01em}

/* [T2] Update tags readable and consistent: in the menu always a small dot (its word stays for screen readers and
   in the tooltip), never 8.5 px capitals; on the home cards the word at 11 px. */
.sb-item .sb-upd{font-size:0;width:7px;height:7px;padding:0;border:0;border-radius:50%;background:var(--gn-gold);align-self:center}
.sb-item .sb-upd.new{background:var(--accent)}
.home-upd{font-size:11px;letter-spacing:.05em}

/* [D1] The current part: colour alone marks it; no glowing text, no glowing icon. */
.sb-head.is-current{animation:none!important;text-shadow:none!important;color:var(--gn-mint)}
.sb-head.is-current .sb-ic{filter:none}

/* [D3] Keyboard focus looks different from "current": a white ring outside the row, not a mint edge inside it. */
.sb-head:focus-visible,.sb-item:focus-visible,.sb-motion:focus-visible,.sb-signout:focus-visible{outline:2px solid var(--text);outline-offset:1px}

/* [D6] On laptop screens (900 px tall or less) the sidebar fits without its own scroll: tighter rows. */
@media (min-width:901px) and (max-height:950px){
  .gn-side .sb{gap:2px;padding-top:6px;padding-bottom:8px}
  .gn-side .sb-head{height:30px}
  .gn-side .sb-item{padding-top:3px;padding-bottom:3px;font-size:13.5px}
  .gn-side .sb-brand{padding-top:4px;padding-bottom:8px;gap:4px}
  .gn-side .sb-top{height:30px}
  .gn-side .sb-items-inner{margin-bottom:2px}
}

/* [D7] Hover tints only where a pointer hovers (no sticky tint after a tap on touch screens). */
.sb-head:hover,.sb-motion:hover,.sb-signout:hover{background:transparent}
@media (hover:hover) and (pointer:fine){
  .sb-head:hover,.sb-motion:hover,.sb-signout:hover{background:rgba(255,255,255,.04)}
}

/* [M1] Phone chapter bar: the same calm tint as the desktop pill, light text, 44 px tall. */
@media (max-width:900px){
  .gn-mobile .gn-chapter{background:var(--gn-pill-fill),#0f1a22;color:var(--text);min-height:44px;box-shadow:var(--gn-pill-edge)}
  .gn-mobile .gn-chapter::before{display:none}
  .gn-mobile .gn-chapter small{color:var(--gn-soft);opacity:1}
  .gn-mobile .gn-upd{background:rgba(237,204,114,.14);color:var(--gold);border:1px solid rgba(237,204,114,.4)}
}

/* [M2] Phone sheet: every row at least 44 px, easy for a thumb. */
@media (max-width:900px){
  .gn-sheet .sb-head{min-height:44px;height:auto}
  .gn-sheet .sb-item{min-height:44px;padding-top:10px;padding-bottom:10px}
  .gn-sheet .sb-motion{min-height:44px}
}

/* [S1] Phones: a 16 px side gutter (text was 12 px from the edge). */
@media (max-width:900px){
  .wrap{padding-left:16px;padding-right:16px}
  .gn-mobile{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
}

/* [S2] Footer on phones: the dates line up on the left and wrap between items, not inside a date. */
@media (max-width:600px){
  .footer-updated{text-align:left}
  .footer-updated time{white-space:nowrap}
}

/* [C1] Browser surfaces in the guide's colours: text selection, caret, form accents and scrollbars. */
::selection{background:rgba(162,221,192,.32);color:var(--text)}
html{accent-color:var(--accent);caret-color:var(--accent);scrollbar-color:#2d3947 #0b1119}
