/* Shared header, footer and text-size control for the guides and the privacy page. */
@font-face { font-family:"Bricolage Grotesque"; src:url(/fonts/BricolageGrotesque-cc.woff2) format("woff2"); font-weight:500 800; font-display:swap; }
@font-face { font-family:"Instrument Sans"; src:url(/fonts/InstrumentSans-400.woff2) format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:"Instrument Sans"; src:url(/fonts/InstrumentSans-600.woff2) format("woff2"); font-weight:600 700; font-display:swap; }
/* Lights out: the same night palette as the home page (screen only; print stays light). */
@media screen {
  :root { --bg:#0F1B2D; --card:#17263D; --text:#EAF0F7; --muted:#A6B5CA; --line:#2A3D5A;
    --accent:#FFC861; --accent-hover:#FFD68A; --on-accent:#1B1300; --running-soft:#1C3150; --focus:#FFD487; --logo-off:#5F7290;
    --error:#FF9C94; --font-display:"Bricolage Grotesque", system-ui, sans-serif;
    --font-sans:"Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color-scheme:dark; }
  body { background:var(--bg); color:var(--text); font-family:var(--font-sans); }
  a { color:#FFD487; }
  h1, h2, h3 { font-family:var(--font-display); }
  h1 { font-weight:800; letter-spacing:-.03em; line-height:1; }
  h2 { font-weight:800; letter-spacing:-.02em; }
  .cc-logo .n { stroke:#FFC861; }
  .btn, .site-header .btn { border-radius:999px; background:#FFC861; color:#1B1300; }
  .btn:hover { background:#FFD68A; }
  .note { background:#1C3150; }
  .cta, .toc, .guide-list li, .textsize button { background:#17263D; border-color:#22344F; }
  pre, code { background:#13213A; border-color:#24385A; color:#EAF0F7; }
  table.cost .save { color:#45C1B9; }
  table.cost tr.group th { background:#1C3150; }
  .filter button { background:#17263D; color:#EAF0F7; }
  .filter button[aria-pressed="true"] { background:#FFC861; color:#1B1300; }
  .code-wrap .copy { background:#0F1B2D; color:#EAF0F7; border-color:#2A3D5A; }
  .crumbs a, .related li span, .byline { color:#A6B5CA; }
  footer.site-footer { border-top-color:#22344F; }
}
body { font-size:18px; }
html.big body { font-size:20px; }
[hidden] { display:none !important; }
.site-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; }
.site-header > a:first-child { display:inline-flex; align-items:center; min-height:44px; }
.site-header nav { display:flex; align-items:center; gap:22px; font-size:15px; }
.site-header nav a:not(.btn) { color:var(--text); text-decoration:none; }
.site-header nav a:not(.btn):hover { color:var(--accent); }
.site-header .btn { min-height:44px; }
@media (max-width:720px) { .site-header nav a:not(.btn) { display:none; } }
footer.site-footer { border-top:1px solid var(--line); margin-top:3rem; padding:40px 0 48px; font-size:14px; color:var(--muted); }
.site-footer .foot { display:grid; gap:24px; grid-template-columns:repeat(auto-fit,minmax(11rem,1fr)); }
.site-footer h2 { font-family:var(--font-display); font-size:14px; letter-spacing:0; color:var(--text); margin:0 0 8px; }
.site-footer ul { list-style:none; padding:0; margin:0; } .site-footer li { margin:0 0 6px; }
.site-footer .tagline { font-family:var(--font-display); font-weight:600; color:var(--text); font-size:16px; margin:10px 0 0; }
.site-footer .legal { margin-top:28px; padding-top:18px; border-top:1px solid var(--line); font-size:13px; }
.site-footer p { margin:.25rem 0; }
.textsize button { font:inherit; font-size:14px; color:var(--text); background:var(--card); border:1px solid var(--line); border-radius:8px; min-height:44px; padding:0 14px; cursor:pointer; margin-top:10px; }
@media print {
  :root { --bg:#fff; --card:#fff; --text:#000; --muted:#333; --line:#bbb; --running-soft:#f2f2f2; }
  body { background:#fff; color:#000; font-size:11pt; }
  .site-header nav, .textsize, aside.cta, .site-footer .foot > div:not(:first-child) { display:none !important; }
}
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
