/* Site chrome shared by every page (question bank, study, support and the generated static pages):
   one sticky header and one footer, same markup everywhere. Colours come from each page's own tokens
   (--surface, --line, --ink, --muted, --accent, --on-accent), so light and dark follow the page.
   --gh-h is the header height: other sticky/fixed bars sit below it (top: var(--gh-h)). */
:root{--gh-h:55px}
@media (max-width:640px){:root{--gh-h:49px}}
.gh{position:sticky;top:0;z-index:30;background:var(--surface);border-top:3px solid var(--accent);border-bottom:1px solid var(--line)}
.gh.bleed{margin-inline:-16px}                       /* pages whose body has 16px side padding */
.gh-in{max-width:1080px;height:51px;margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:24px}
.gh-brand{flex:none;align-self:stretch;display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-weight:700;font-size:1rem;text-decoration:none}
.gh-brand:hover{color:var(--ink)}
.gh-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:4px;background:var(--accent);color:var(--on-accent);
  font:700 11px/1 "IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.gh nav{margin-left:auto;min-width:0;display:flex;gap:0 18px;overflow-x:auto;scrollbar-width:none;font-size:.9rem}
.gh nav::-webkit-scrollbar{display:none}
.gh nav a{flex:none;color:var(--muted);text-decoration:none;line-height:49px;border-bottom:2px solid transparent}
.gh nav a:hover{color:var(--ink)}
.gh nav a[aria-current="page"]{color:var(--ink);font-weight:600;border-bottom-color:var(--accent)}
@media (max-width:640px){
  .gh-in{height:45px;padding:0 16px;gap:14px}
  .gh-brand{font-size:.92rem}
  .gh nav{gap:0 14px;font-size:.84rem}
  .gh nav a{line-height:43px}
}

.gf{margin-top:40px;background:var(--surface);border-top:1px solid var(--line);color:var(--muted);font-size:.86rem;line-height:1.6}
.gf.bleed{margin-inline:-16px}
.gf-in{max-width:1080px;margin:0 auto;padding:16px 24px 24px}
@media (max-width:640px){.gf-in{padding:14px 16px 22px}}
.gf p{margin:0 0 8px}
.gf a{color:var(--accent)}
.gf .gf-support{color:var(--ink)}
.gf .gf-links{display:flex;flex-wrap:wrap;gap:4px 16px}
.gf .gf-fine{margin:0;font-size:.78rem}
.gh nav .sm{display:none}
@media (max-width:640px){
  .gh nav .lg{display:none}
  .gh nav .sm{display:inline}
}
@media (max-width:420px){.gh-brand .gh-name{display:none}}
/* skip link (WCAG 2.4.1): first focusable element on every page, shown only when focused */
.skip{position:absolute;left:8px;top:-60px;z-index:100;padding:8px 14px;border-radius:6px;background:var(--accent);color:var(--on-accent,#fff);font-weight:600;text-decoration:none}
.skip:focus{top:8px}
#main:focus{outline:none}
