/* ─── Base ───────────────────────────────────────────────────────────────────
   Mobile-first; breakpoints 480 / 640 / 768 / 992 / 1200 (written out, custom
   properties can't live in @media). Colours: theme variables only.
   ────────────────────────────────────────────────────────────────────────── */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  /* Themed page scrollbar — never the unstyled OS default (docs/styling.md). */
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary-color) 60%, var(--bg-color)) var(--bg-light);
}
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg-light); }
  ::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--primary-color) 60%, var(--bg-color));
    border: 2px solid var(--bg-light);
    border-radius: 999px;
    &:hover { background: var(--primary-color); }
  }
}
/* Inner scrollers (tables) share the treatment */
.tablewrap { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--primary-color) 60%, var(--bg-color)) var(--bg-light); }

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:auto}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:var(--fb);font-size:clamp(16px,1.05vw + 11px,17.5px);line-height:1.6;overflow-x:hidden;
background-image:radial-gradient(color-mix(in srgb,var(--night) 8%,transparent) 1px,transparent 1.2px);background-size:22px 22px;background-attachment:fixed}
[hidden]{display:none!important}
img,svg,canvas{display:block;max-width:100%}
h1,h2,h3,h4{font-family:var(--fd);line-height:1.12;letter-spacing:-.02em;margin:0 0 .5em;color:var(--night);text-wrap:balance}
h1{font-size:clamp(2.1rem,4.2vw + .6rem,4rem);font-weight:800}
h2{font-size:clamp(1.65rem,2.3vw + .7rem,2.6rem);font-weight:700}
h3{font-size:clamp(1.15rem,.7vw + .9rem,1.4rem);font-weight:700}
h4{font-size:1.02rem;font-weight:700}
p{margin:0 0 1em}
a{color:var(--accent-ink);text-underline-offset:3px;text-decoration-thickness:1.5px}
a:hover{text-decoration-thickness:2.5px}
ul,ol{padding-left:1.2em;margin:0 0 1em}
li{margin:.25em 0}
small{font-size:.86em}
strong{font-weight:800}
:focus-visible{outline:3px solid var(--accent-ink);outline-offset:3px;border-radius:6px}
.appbar :focus-visible,.rail :focus-visible,.dark :focus-visible,.cookie :focus-visible{outline-color:var(--white)}
::selection{background:color-mix(in srgb,var(--accent) 30%,var(--white));color:var(--night)}
.skip{position:fixed;left:12px;top:-60px;z-index:200;background:var(--night);color:var(--white);padding:10px 16px;border-radius:10px;font-weight:700;text-decoration:none}
.skip:focus{top:12px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.note{font-size:.88rem;color:var(--muted)}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font:700 .78rem/1 var(--fd);letter-spacing:.12em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:14px}
.eyebrow::before{content:"";width:18px;height:6px;border-radius:9px;background:var(--accent-2)}

/* ─── WordPress utilities ─── */
.screen-reader-text, .screen-reader-response { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--muted); }
.locked { overflow: hidden; }
