/* Shared header and footer for every page on current.52pubs.com.
   Uses the river palette variables each page already defines (--bg, --ink, --current, ...). */
.site-head, .site-foot{max-width:620px; margin:0 auto}
.site-head{display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 20px;
  padding-bottom:16px; margin-bottom:28px; border-bottom:1px solid var(--line)}
.site-mark{font-family:var(--display); font-size:1.15rem; font-weight:500; color:var(--ink); text-decoration:none}
.site-nav{display:flex; flex-wrap:wrap; gap:4px 18px; font-size:.9rem}
.site-nav a, .site-foot a{color:var(--muted); text-decoration:none; padding-block:4px}
.site-nav a:hover, .site-foot a:hover{color:var(--current); text-decoration:underline; text-underline-offset:3px}
.site-nav a[aria-current="page"]{color:var(--current); font-weight:600}
.site-foot{margin-top:48px; padding-top:20px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:10px;
  font-size:.85rem; color:var(--muted)}
.site-foot p{margin:0}
.site-foot nav{display:flex; flex-wrap:wrap; gap:4px 18px}
.site-head a:focus-visible, .site-foot a:focus-visible{outline:2px solid var(--current); outline-offset:2px; border-radius:2px}

/* While someone is partway through a test, keep the menu out of the way so a stray tap doesn't lose their answers. */
body[data-phase]:not([data-phase="intro"]):not([data-phase="result"]) .site-nav,
body[data-phase]:not([data-phase="intro"]):not([data-phase="result"]) .site-foot{display:none}

/* Shared pieces for the content pages (/currents/, /reading/). */
.page{max-width:620px; margin:0 auto; display:flex; flex-direction:column; gap:28px}
.page section{display:flex; flex-direction:column; gap:12px}
.page a{color:var(--current); text-underline-offset:3px}
.a-btn{display:inline-block; background:var(--current); color:var(--bg) !important; text-decoration:none; border-radius:10px;
  padding:12px 22px; font-weight:600; align-self:flex-start}
.a-btn.ghost{background:transparent; color:var(--current) !important; border:1px solid var(--line)}
