/* SUDOKU — Premium Edition · shared stylesheet for all content pages (guides, articles, About, Contact, Privacy) */
:root {
  --bg: #0f0619;
  --surface: #1a0f2e;
  --surface2: #241540;
  --border: #35244f;
  --border2: #4a3470;
  --accent: #ff2e88;
  --accent2: #00e5ff;
  --accent3: #ffd93d;
  --violet: #b24cff;
  --text: #fff8f0;
  --text2: #e0d4f3;
  --text3: #b5a4d8;
  --danger: #ff6b8a;
  --link: #7aeaff;
  --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Baloo 2', 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --col: 760px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent3); color: #1a0d2b; padding: 8px 14px; border-radius: 8px; z-index: 80; font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; border-radius: 4px; }

/* ---- site header (full width) ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,6,25,0.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hdr { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 20px; min-height: 66px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { display: block; border-radius: 10px; }
.brand-t { display: flex; flex-direction: column; line-height: 1; }
.brand-t b { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 0.16em; color: var(--text); }
.brand-t i { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; margin-top: 5px; color: var(--accent);
  background: linear-gradient(90deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 13px; font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--text2); text-decoration: none; border-radius: 10px; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255,46,136,0.16); box-shadow: inset 0 0 0 1px rgba(255,46,136,0.45); }
.play-btn {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; letter-spacing: 0.05em; line-height: 1.4;
  color: #fff; text-decoration: none; padding: 9px 18px; border-radius: 12px; white-space: nowrap;
  background: linear-gradient(135deg, var(--accent) 0%, #c03bff 100%);
  box-shadow: 0 8px 20px -8px rgba(255,46,136,0.7);
  transition: transform .15s, filter .15s;
}
.play-btn:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--border2); background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.bars-i, .bars-i::before, .bars-i::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, background .2s; }
.bars-i { position: relative; }
.bars-i::before, .bars-i::after { content: ""; position: absolute; left: 0; }
.bars-i::before { top: -6px; }
.bars-i::after { top: 6px; }
.menu[open] .bars-i { background: transparent; }
.menu[open] .bars-i::before { top: 0; transform: rotate(45deg); }
.menu[open] .bars-i::after { top: 0; transform: rotate(-45deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; padding: 6px 20px 16px; background: #0f0619; border-bottom: 1px solid var(--border); box-shadow: 0 28px 40px -20px rgba(0,0,0,0.8); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li { margin: 0; }
.menu-panel a { display: block; padding: 14px 4px; font-size: 17px; font-weight: 500; color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
.menu-panel li:last-child a { border-bottom: 0; }
.menu-panel a[aria-current="page"] { color: var(--accent); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu { display: block; }
}

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(620px 300px at 10% -20%, rgba(255,46,136,0.24), transparent 70%),
    radial-gradient(560px 280px at 100% 120%, rgba(0,229,255,0.14), transparent 70%),
    linear-gradient(180deg, #1c0d33 0%, #12071f 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.hero-in { position: relative; max-width: var(--col); margin: 0 auto; padding: 30px 20px 40px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13.5px; line-height: 1.5; color: var(--text3); margin: 0 0 18px; }
.crumbs a { color: var(--text3); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: var(--text2); }
.crumbs span[aria-hidden] { opacity: 0.6; }
.chip { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent2); padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(0,229,255,0.4); background: rgba(0,229,255,0.08); margin: 0 0 14px; }
h1 { font-family: var(--font-display); font-size: clamp(31px, 7.4vw, 48px); line-height: 1.12; font-weight: 800; letter-spacing: 0.005em; margin: 0 0 14px; color: var(--text); text-wrap: balance; }
.lead { font-size: clamp(17.5px, 3.4vw, 20px); line-height: 1.6; color: var(--text2); margin: 0 0 18px; max-width: 62ch; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; font-size: 13.5px; color: var(--text3); }
.meta span + span::before { content: "\00b7"; margin: 0 10px; opacity: 0.7; }

/* ---- page body ---- */
.wrap { max-width: var(--col); margin: 0 auto; padding: 38px 20px 76px; }
main { display: block; }
main > :first-child, article > :first-child { margin-top: 0; }
h2 {
  position: relative; font-family: var(--font-display); font-size: clamp(25px, 5.2vw, 31px); line-height: 1.25; font-weight: 700; letter-spacing: 0.01em;
  color: var(--text); margin: 56px 0 14px; padding-top: 20px; scroll-margin-top: 90px;
}
h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--violet)); }
h3 { font-family: var(--font-display); font-size: 21px; line-height: 1.35; font-weight: 700; color: var(--text); margin: 34px 0 8px; scroll-margin-top: 90px; }
p { color: var(--text2); margin: 0 0 18px; }
ul, ol { margin: 0 0 18px; padding-left: 24px; color: var(--text2); }
li { margin-bottom: 8px; }
li::marker { color: var(--accent); }
strong { color: var(--text); font-weight: 600; }
em { color: var(--text); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; padding: 1px 7px; border: 1px solid var(--border2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface2); color: var(--text); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface2); padding: 1px 6px; border-radius: 5px; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.small { font-size: 14px; color: var(--text3); }
blockquote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--text); }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px 14px; margin: 0 0 34px; }
.toc-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); margin-bottom: 10px; }
.toc ul { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc a { display: block; padding: 7px 0; color: var(--text2); text-decoration: none; border-top: 1px solid rgba(255,255,255,0.06); font-size: 15.5px; line-height: 1.45; }
.toc li:first-child a { border-top: 0; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 700; font-size: 12.5px; margin-right: 12px; letter-spacing: 0.04em; }
.toc a:hover { color: #fff; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 18px; }
.card > :last-child { margin-bottom: 0; }
.callout { border: 1px solid var(--border2); border-left: 4px solid var(--accent2); background: var(--surface); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.callout > :last-child { margin-bottom: 0; }
.callout.tip { border-left-color: var(--accent3); }
.callout.warn { border-left-color: var(--accent); }
.callout .ct { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin: 0 0 4px; }

/* play card (end-of-page call to action) */
.playcard {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 24px;
  margin: 56px 0 6px; padding: 24px 26px; border-radius: 20px; border: 1px solid var(--border2);
  background: radial-gradient(420px 220px at 0% 0%, rgba(255,46,136,0.20), transparent 70%), radial-gradient(360px 200px at 100% 100%, rgba(0,229,255,0.12), transparent 70%), linear-gradient(135deg, #251541, #1a0f2e);
}
.pc-grid { display: grid; grid-template-columns: repeat(3, 28px); grid-auto-rows: 28px; border: 2px solid var(--border2); border-radius: 9px; overflow: hidden; background: #160a29; }
.pc-grid i { font-style: normal; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent2); border: 1px solid rgba(255,255,255,0.08); }
.pc-text strong { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1.25; color: var(--text); margin-bottom: 2px; }
.pc-text span { display: block; font-size: 15px; line-height: 1.55; color: var(--text2); }
.cta { display: inline-block; text-align: center; background: linear-gradient(135deg, var(--accent) 0%, #c03bff 100%); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.05em; text-decoration: none; padding: 13px 26px; border-radius: 13px; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(255,46,136,0.8); transition: transform .15s, filter .15s; }
.cta:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
@media (max-width: 640px) {
  .playcard { grid-template-columns: 1fr; padding: 22px 20px; }
  .pc-grid { display: none; }
  .cta { display: block; }
}

/* bare tables written in the content (wrapped by the build) */
.tbl-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.tbl-wrap table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; min-width: 440px; }
.tbl-wrap th, .tbl-wrap td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text2); }
.tbl-wrap th { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); background: var(--surface2); }
.tbl-wrap tbody tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.tbl-wrap tr:last-child td { border-bottom: 0; }
.tbl-wrap td strong { color: var(--text); }

/* glossary */
dl.gloss { margin: 0 0 26px; display: grid; gap: 10px; }
dl.gloss dt { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); margin: 0; padding: 14px 18px 0; background: var(--surface); border: 1px solid var(--border); border-bottom: 0; border-radius: 14px 14px 0 0; }
dl.gloss dd { margin: -10px 0 0; padding: 4px 18px 14px; color: var(--text2); font-size: 16px; line-height: 1.65; background: var(--surface); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 14px 14px; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text2); }
.tbl th { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); background: var(--surface2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td strong { color: var(--text); }

/* simple bar rows for the difficulty data */
.bars { margin: 0 0 18px; }
.barrow { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 0 0 14px; }
.barlabel { font-size: 15px; color: var(--text); display: flex; justify-content: space-between; gap: 12px; }
.barlabel span:last-child { color: var(--text2); font-variant-numeric: tabular-nums; }
.bartrack { height: 12px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border); overflow: hidden; }
.barfill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; }

/* article cards (hub, related, home) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0 0 24px; padding: 0; list-style: none; }
.cards li { margin: 0; }
.acard { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface2), var(--surface)); text-decoration: none; color: var(--text2); transition: border-color .2s, transform .2s, box-shadow .2s; }
.acard:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 34px -18px rgba(255,46,136,0.55); color: var(--text2); }
.acard .tag { align-self: flex-start; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent2); font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.3); }
.acard .at { font-family: var(--font-display); font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--text); }
.acard .ad { font-size: 14.5px; line-height: 1.6; }
.acard::after { content: "Read article \2192"; margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.related h2 { margin-top: 56px; }

/* ---- diagrams ---- */
.fig { margin: 24px auto; text-align: center; }
.fig figcaption { font-size: 14.5px; color: var(--text2); margin: 12px auto 0; line-height: 1.55; text-align: left; max-width: 520px; }
.figrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 24px 0; }
.figrow .fig { margin: 8px 0; }
.sdk { --sz: clamp(29px, 9.5vw, 43px); display: grid; grid-template-columns: repeat(9, var(--sz)); width: max-content; max-width: 100%; margin: 0 auto; border: 2px solid var(--border2); border-radius: 10px; overflow: hidden; background: #160a29; }
.sdk .c { width: var(--sz); height: var(--sz); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: calc(var(--sz) * 0.54); line-height: 1; color: var(--text); border: 1px solid rgba(255,255,255,0.075); position: relative; }
.sdk.n9 .c:nth-child(3n):not(:nth-child(9n)) { border-right: 2px solid var(--border2); }
.sdk.n9 .c:nth-child(n+19):nth-child(-n+27), .sdk.n9 .c:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid var(--border2); }
.sdk .c.g { color: #fff8f0; }
.sdk .c.p { color: var(--accent2); }
.sdk .c.m { color: var(--accent3); background: rgba(255,217,61,0.12); }
.sdk .c.t { background: rgba(255,217,61,0.30); box-shadow: inset 0 0 0 2px var(--accent3); }
.sdk .c.u1 { background: rgba(255,255,255,0.075); }
.sdk .c.u2 { background: rgba(0,229,255,0.15); }
.sdk .c.u3 { background: rgba(255,46,136,0.20); }
.sdk .c.bk { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.10) 0 3px, transparent 3px 7px); }
.sdk .c.ring { box-shadow: inset 0 0 0 2px var(--accent2); }
.sdk .c.ringp { box-shadow: inset 0 0 0 2px var(--accent); }
/* candidate notes */
.sdk .cd { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 100%; height: 100%; font-family: var(--font-main); font-weight: 500; font-size: calc(var(--sz) * 0.28); line-height: 1; color: var(--text2); }
.sdk .cd i { font-style: normal; display: flex; align-items: center; justify-content: center; }
.sdk .cd i.k { color: var(--accent3); font-weight: 700; }
.sdk .cd i.e { color: var(--danger); text-decoration: line-through; font-weight: 700; }
.sdk.cg .c { font-size: calc(var(--sz) * 0.52); }
/* single-digit maps */
.sdk.dmap .c.dm { color: var(--accent); font-size: calc(var(--sz) * 0.44); font-weight: 600; }
.sdk.dmap .c.kc { color: var(--accent3); background: rgba(255,217,61,0.26); box-shadow: inset 0 0 0 2px var(--accent3); font-size: calc(var(--sz) * 0.5); }
.sdk.dmap .c.xe { color: var(--danger); background: rgba(255,56,96,0.16); font-size: calc(var(--sz) * 0.44); }
.sdk.dmap .c.xe s { text-decoration-thickness: 2px; }
.sdk.dmap .c.g, .sdk.dmap .c.p { color: rgba(255,248,240,0.45); }
.sdk.dmap .c.m { color: var(--accent3); background: rgba(255,217,61,0.12); }
/* one big box */
.sdk.n3 { --sz: clamp(76px, 25vw, 104px); grid-template-columns: repeat(3, var(--sz)); }
.sdk.n3 .c { font-size: calc(var(--sz) * 0.5); }
.sdk.n3 .cd { font-size: calc(var(--sz) * 0.26); }
/* coordinate demo */
.axes { display: grid; grid-template-columns: auto auto; width: max-content; max-width: 100%; margin: 0 auto; gap: 2px 4px; }
.axes .ax-top { display: grid; grid-template-columns: repeat(9, var(--sz)); grid-column: 2; font-size: 12px; color: var(--text3); text-align: center; --sz: clamp(29px, 9.5vw, 43px); }
.axes .ax-left { display: grid; grid-template-rows: repeat(9, var(--sz)); font-size: 12px; color: var(--text3); align-items: center; text-align: right; --sz: clamp(29px, 9.5vw, 43px); }
.sdk.coords .nm { font-size: calc(var(--sz) * 0.27); font-family: var(--font-main); font-weight: 700; color: var(--accent3); }
details.txt { max-width: 420px; margin: 10px auto 0; text-align: left; font-size: 14px; color: var(--text3); }
details.txt summary { cursor: pointer; color: var(--text2); }
details.txt pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: 0.18em; line-height: 1.5; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 8px 0; overflow-x: auto; color: var(--text); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; color: var(--text2); margin: 10px 0 0; }
.legend .sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(255,255,255,0.2); }
.sw.t { background: rgba(255,217,61,0.45); } .sw.u1 { background: rgba(255,255,255,0.14); } .sw.u2 { background: rgba(0,229,255,0.30); } .sw.u3 { background: rgba(255,46,136,0.40); } .sw.bk { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.30) 0 3px, transparent 3px 6px); } .sw.x { background: rgba(255,56,96,0.35); }

/* ---- footer (full width) ---- */
.sitefoot { margin-top: 24px; background: #0b0413; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--text3); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sitefoot > .foot-in { display: grid; grid-template-columns: 1.15fr 2fr; gap: 36px 60px; padding-top: 52px; padding-bottom: 40px; }
.foot-brand p { color: var(--text3); font-size: 14.5px; line-height: 1.7; margin: 16px 0 20px; max-width: 36ch; }
.footcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sitefoot h2 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin: 0 0 12px; padding: 0; line-height: 1.4; }
.sitefoot h2::before { display: none; }
.footcols ul { list-style: none; padding: 0; margin: 0; }
.footcols li { margin: 0 0 8px; }
.footcols a { color: var(--text2); text-decoration: none; }
.footcols a:hover { color: #fff; text-decoration: underline; }
.foot-bar { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0 30px; }
.foot-bar p { color: var(--text3); font-size: 13px; line-height: 1.6; margin: 0 0 6px; }
.foot-bar a { color: var(--text2); }
@media (max-width: 760px) {
  .sitefoot > .foot-in { grid-template-columns: 1fr; padding-top: 40px; }
  .footcols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hdr { padding: 0 16px; gap: 10px; }
  .hero-in { padding: 24px 16px 34px; }
  .wrap { padding: 30px 16px 64px; }
  .foot-in { padding: 0 16px; }
  .brand-t b { font-size: 17px; letter-spacing: 0.13em; }
  .brand-t i { font-size: 9px; letter-spacing: 0.2em; }
  .play-btn { padding: 8px 14px; }
  .toc { padding: 16px 18px 12px; }
  .tbl-wrap table { font-size: 14px; min-width: 0; }
  .tbl-wrap th { font-size: 10px; letter-spacing: 0; }
  .tbl-wrap th, .tbl-wrap td { padding: 9px 5px; }
  .tbl-wrap th:first-child, .tbl-wrap td:first-child { padding-left: 11px; }
  .menu-panel { padding: 6px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .acard, .play-btn, .cta, .bars-i, .bars-i::before, .bars-i::after { transition: none; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header, .hero::before, .playcard, .sitefoot, .skip-link, .related { display: none; }
  .hero { background: none; border: 0; }
  h1, h2, h3, p, li, .lead, .meta, .crumbs { color: #000; }
}
