/* Chicken Road HU — "Magazin" template. Mobile-first. System fonts only (no external requests).
   Per-site look = theme.css (tokens, light + dark) + <body data-*> variant switches (see apply_themes_hu.py). */

/* ---------- tokens (defaults; theme.css overrides) ---------- */
:root {
  --y: #ffd60a; --y-d: #d9b000; --ink: #1f2430; --ink-2: #3b4252;
  --tint: #fff3b0;                    /* soft yellow surface */
  --accent: #d9482b;
  --bg: #fffdf2; --canvas: #fffdf2; --surface: #ffffff; --surface-2: #fbf6dc;
  --text: #1f2430; --muted: #4f5767; --line: #e8dfb4; --link: #1f2430;
  --hdr-bg: var(--y); --hdr-fg: var(--ink);
  --ftr-bg: #1f2430; --ftr-fg: #f4f1e2; --ftr-muted: #c2c4cc; --ftr-link: #ffd60a;
  --ff-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-head: var(--ff-body); --head-w: 800; --head-ls: -0.01em; --head-tt: none;
  --r: 12px; --r-lg: 18px; --btn-r: 12px;
  --shadow: 0 6px 20px rgba(31, 36, 48, .12);
  --rail-w: 264px; --dock-h: 0px;
  --btn-bg: var(--y); --btn-fg: var(--ink); --btn-bd: var(--ink); --ghost-fg: var(--text);
}
@media (prefers-color-scheme: dark) {
  :root {
    --tint: #3a3410; --bg: #15161b; --canvas: #15161b; --surface: #1e2027; --surface-2: #272a33;
    --text: #f3f1e6; --muted: #bdbfc8; --line: #363945; --link: var(--y);
    --shadow: 0 6px 20px rgba(0, 0, 0, .45);
    --btn-bd: var(--y);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--ff-body); color: var(--text); background: var(--canvas); overflow-x: hidden; padding-bottom: var(--dock-h); }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: var(--head-w); letter-spacing: var(--head-ls); text-transform: var(--head-tt); line-height: 1.15; margin: 0; }
a { color: var(--link); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--ink); color: var(--y); padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 760px) { .wrap { padding-inline: 24px; } }
.progress { position: fixed; z-index: 120; left: 0; top: 0; height: 4px; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
:root[data-theme-dark] .progress, .progress { box-shadow: 0 0 0 1px var(--y); }

/* ---------- buttons & badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .6em 1.25em; font: 700 1rem/1.2 var(--ff-body); text-align: center; text-decoration: none; cursor: pointer;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd); border-radius: var(--btn-r); transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--btn-bd); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ghost-fg); border-color: currentColor; }
.btn--ghost:hover { box-shadow: none; background: rgba(127, 127, 127, .14); }
.btn--choice { background: var(--surface); color: var(--text); border-color: var(--text); flex: 1 1 0; }
.btn--choice:hover { box-shadow: none; background: var(--y); color: var(--ink); border-color: var(--ink); }
/* button shapes (data-btn) */
body[data-btn="pill"] .btn { border-radius: 999px; }
body[data-btn="brutal"] .btn { border-radius: 4px; box-shadow: 4px 4px 0 var(--btn-bd); }
body[data-btn="brutal"] .btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--btn-bd); }
body[data-btn="brutal"] .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--btn-bd); }
body[data-btn="soft"] .btn { border-color: transparent; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
body[data-btn="soft"] .btn--ghost, body[data-btn="soft"] .btn--choice { border-color: currentColor; box-shadow: none; }
body[data-btn="outline"] .btn--cta { border-width: 3px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); }
body[data-btn="outline"] .btn { border-radius: 8px; }
.ad-badge { display: inline-block; font: 700 .75rem/1 var(--ff-body); letter-spacing: .06em; text-transform: uppercase; padding: .42em .6em; border-radius: 4px; background: var(--ink); color: var(--y); }
.age-badge { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--y); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; }

/* ---------- utility strip ---------- */
.utility { background: var(--ink); color: #f3f1e6; font-size: .8125rem; line-height: 1.35; }
.utility__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 14px; padding-block: 7px; }
.utility__tags { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.utility__tags b { font-weight: 700; }
.utility__tags b:first-child, .utility__tags b:nth-child(2) { color: var(--y); }
body[data-util="off"] .utility { display: none; }
@media (max-width: 759px) { .utility__in > span:first-child { display: none; } }

/* ---------- masthead + navigation ---------- */
.masthead { background: var(--hdr-bg); color: var(--hdr-fg); position: relative; --btn-bg: var(--ink); --btn-fg: var(--y); --btn-bd: var(--ink); --ghost-fg: var(--hdr-fg); border-bottom: 3px solid var(--ink); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.masthead__note { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-height: 48px; }
.brand__icon { flex: none; width: 44px; height: 44px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: var(--head-w) 1.3rem/1.1 var(--ff-head); letter-spacing: var(--head-ls); text-transform: var(--head-tt); }
.brand__sub { font-size: .75rem; opacity: .85; font-weight: 600; }
.nav-toggle { position: relative; z-index: 90; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 0 12px; border: 2px solid currentColor; border-radius: var(--btn-r); background: transparent; color: inherit; font: 700 .95rem var(--ff-body); cursor: pointer; }
.nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle__bars i { display: block; height: 3px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle { color: var(--text); background: var(--surface); }
.nav-open .nav-toggle__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-open .nav-toggle { position: fixed; top: 10px; right: 12px; }
body[data-arch="drawer"].nav-open .nav-toggle, body[data-arch="drawer"] .nav-open .nav-toggle { left: auto; }

/* burger mode (default): right-hand drawer */
.main-nav { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(88vw, 340px); background: var(--surface); color: var(--text); padding: 76px 16px 24px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: -10px 0 30px rgba(0, 0, 0, .25); --btn-bg: var(--y); --btn-fg: var(--ink); --btn-bd: var(--ink); }
.main-nav.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.main-nav a:not(.btn) { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: var(--r); color: inherit; text-decoration: none; font-weight: 700; border-left: 5px solid transparent; }
.main-nav a:not(.btn):hover { background: var(--surface-2); }
.main-nav a.is-active { background: var(--y); color: var(--ink); border-left-color: var(--ink); }
.main-nav .nav-cta { margin-top: 12px; }
.nav-backdrop { position: fixed; z-index: 75; inset: 0; background: rgba(15, 16, 22, .55); }
.nav-backdrop[hidden] { display: none; }
html.nav-open { overflow: hidden; }
body[data-arch="drawer"] .main-nav { right: auto; left: 0; transform: translateX(-105%); box-shadow: 10px 0 30px rgba(0, 0, 0, .25); }
body[data-arch="drawer"] .main-nav.is-open { transform: none; }
body[data-arch="drawer"].nav-open .nav-toggle, html.nav-open body[data-arch="drawer"] .nav-toggle { left: calc(min(88vw, 340px) - 60px); right: auto; }
/* overlay: full-screen yellow menu */
body[data-arch="overlay"] .main-nav { inset: 0; width: auto; align-items: center; justify-content: center; text-align: center; gap: 8px; background: var(--y); color: var(--ink); transform: none; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s; box-shadow: none; padding-top: 80px; --btn-bg: var(--ink); --btn-fg: var(--y); --btn-bd: var(--ink); }
body[data-arch="overlay"] .main-nav.is-open { opacity: 1; transition: opacity .2s ease; }
body[data-arch="overlay"] .main-nav a:not(.btn) { font: var(--head-w) clamp(1.3rem, 5vw, 1.9rem)/1.2 var(--ff-head); text-transform: var(--head-tt); justify-content: center; min-width: min(80vw, 360px); border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; }
body[data-arch="overlay"] .main-nav a:not(.btn):hover { background: transparent; border-bottom-color: var(--ink); }
body[data-arch="overlay"] .main-nav a.is-active { background: var(--ink); color: var(--y); border-radius: var(--r); border-bottom-color: transparent; }
body[data-arch="overlay"].nav-open .nav-toggle, html.nav-open body[data-arch="overlay"] .nav-toggle { color: var(--ink); background: var(--y); }

/* inline nav on wide screens (not drawer / overlay / rail) */
@media (min-width: 960px) {
  body:not([data-arch="drawer"]):not([data-arch="overlay"]):not([data-arch="rail"]) .nav-toggle { display: none; }
  body:not([data-arch="drawer"]):not([data-arch="overlay"]):not([data-arch="rail"]) .main-nav { position: static; z-index: auto; width: auto; padding: 0; flex-direction: row; align-items: center; gap: 2px; overflow: visible; transform: none; visibility: visible; background: transparent; color: inherit; box-shadow: none; transition: none; --btn-bg: var(--ink); --btn-fg: var(--y); }
  body:not([data-arch="drawer"]):not([data-arch="overlay"]):not([data-arch="rail"]) .main-nav a:not(.btn) { min-height: 48px; padding: 0 12px; border-left: 0; border-bottom: 4px solid transparent; border-radius: 0; font-size: .95rem; white-space: nowrap; }
  body:not([data-arch="drawer"]):not([data-arch="overlay"]):not([data-arch="rail"]) .main-nav a:not(.btn):hover { background: rgba(0, 0, 0, .08); }
  body:not([data-arch="drawer"]):not([data-arch="overlay"]):not([data-arch="rail"]) .main-nav a.is-active { background: transparent; color: inherit; border-bottom-color: currentColor; }
  body:not([data-arch="drawer"]):not([data-arch="overlay"]):not([data-arch="rail"]) .main-nav .nav-cta { margin: 0 0 0 10px; min-height: 44px; padding-inline: 1em; }
  .nav-backdrop { display: none; }
}
/* archetype: journal — brand row + tab row */
@media (min-width: 960px) {
  body[data-arch="journal"] .masthead__in { flex-wrap: wrap; row-gap: 0; padding-top: 6px; }
  body[data-arch="journal"] .main-nav { flex: 1 0 100%; border-top: 2px solid rgba(0, 0, 0, .25); margin-top: 6px; }
  body[data-arch="journal"] .main-nav .nav-cta { margin-left: auto; }
  /* centered */
  body[data-arch="center"] .masthead { background: var(--surface); color: var(--text); border-bottom: 6px solid var(--y); --hdr-fg: var(--text); }
  body[data-arch="center"] .masthead__in { flex-direction: column; gap: 0; padding-top: 12px; }
  body[data-arch="center"] .main-nav { margin-top: 4px; flex-wrap: wrap; justify-content: center; }
  body[data-arch="center"] .main-nav a.is-active { border-bottom-color: var(--y); }
  body[data-arch="center"] .main-nav .nav-cta { --btn-bg: var(--y); --btn-fg: var(--ink); }
  /* poster: oversized brand, pill nav */
  body[data-arch="poster"] .masthead__in { min-height: 84px; }
  body[data-arch="poster"] .brand__name { font-size: 1.75rem; }
  body[data-arch="poster"] .main-nav a:not(.btn) { border-bottom: 0 !important; border-radius: 999px; margin: 0 2px; }
  body[data-arch="poster"] .main-nav a.is-active { background: var(--ink) !important; color: var(--y) !important; }
}
body[data-arch="center"] .masthead { background: var(--surface); color: var(--text); border-bottom: 6px solid var(--y); --hdr-fg: var(--text); --ghost-fg: var(--text); }
body[data-arch="center"] .masthead__in { justify-content: space-between; }
@media (min-width: 960px) { body[data-arch="center"] .masthead__in { justify-content: center; } }
body[data-arch="poster"] .masthead { border-bottom-width: 6px; }
/* bar archetype uses defaults (single row) */
/* drawer / overlay: light header with a yellow brand plate */
body[data-arch="drawer"] .masthead { background: var(--ink); color: var(--y); border-bottom-color: var(--y); --hdr-fg: var(--y); --ghost-fg: var(--y); }
body[data-arch="drawer"] .brand__icon { background: var(--y); border-radius: 50%; }
body[data-arch="overlay"] .masthead { background: var(--surface); color: var(--text); border-bottom: 0; box-shadow: inset 0 -6px 0 var(--y); --hdr-fg: var(--text); }
body[data-arch="overlay"] .masthead__in { min-height: 76px; }
/* sheet: floating header card on yellow canvas */
body[data-arch="sheet"] { --canvas: var(--y); }
@media (prefers-color-scheme: dark) { body[data-arch="sheet"] { --canvas: var(--bg); } }
body[data-arch="sheet"] .masthead { margin: 12px 12px 0; border-radius: var(--r-lg); border: 2px solid var(--ink); background: var(--surface); color: var(--text); box-shadow: var(--shadow); --hdr-fg: var(--text); --ghost-fg: var(--text); }
body[data-arch="sheet"] .masthead .nav-toggle { color: var(--text); }
body[data-arch="sheet"] .utility { background: transparent; color: var(--ink); }
body[data-arch="sheet"] .utility__tags b:first-child, body[data-arch="sheet"] .utility__tags b:nth-child(2) { color: var(--ink); text-decoration: underline; }
@media (prefers-color-scheme: dark) { body[data-arch="sheet"] .utility { color: #f3f1e6; } body[data-arch="sheet"] .utility__tags b:first-child, body[data-arch="sheet"] .utility__tags b:nth-child(2) { color: var(--y); } }
/* rail: fixed left sidebar on large screens */
@media (min-width: 1100px) {
  body[data-arch="rail"] .shell { margin-left: var(--rail-w); }
  body[data-arch="rail"] .utility { display: none; }
  body[data-arch="rail"] .masthead { position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; width: var(--rail-w); border-bottom: 0; border-right: 3px solid var(--ink); overflow-y: auto; }
  body[data-arch="rail"] .masthead__in { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 100%; padding: 22px 16px; gap: 18px; max-width: none; }
  body[data-arch="rail"] .nav-toggle { display: none; }
  body[data-arch="rail"] .main-nav { position: static; width: auto; padding: 0; transform: none; visibility: visible; background: transparent; color: inherit; box-shadow: none; overflow: visible; flex: 1; transition: none; gap: 2px; }
  body[data-arch="rail"] .main-nav a:not(.btn) { border-left: 5px solid transparent; }
  body[data-arch="rail"] .main-nav a:not(.btn):hover { background: rgba(0, 0, 0, .08); }
  body[data-arch="rail"] .main-nav a.is-active { background: var(--ink); color: var(--y); }
  body[data-arch="rail"] .main-nav .nav-cta { margin-top: auto; --btn-bg: var(--ink); --btn-fg: var(--y); }
  body[data-arch="rail"] .nav-backdrop { display: none; }
  body[data-arch="rail"] .masthead__note { display: block; margin: 0; font-size: .8125rem; line-height: 1.4; font-weight: 600; }
  body[data-arch="rail"] .progress { left: var(--rail-w); width: calc(100% - var(--rail-w)); }
}

/* ---------- lede band (breadcrumb, kicker, standfirst, facts) ---------- */
.lede { background: var(--y); color: var(--ink); position: relative; padding-block: 22px 26px; --btn-bg: var(--ink); --btn-fg: var(--y); --btn-bd: var(--ink); --ghost-fg: var(--ink); --link: var(--ink); }
.lede__in { display: grid; gap: 18px; align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: -8px 0 2px; padding: 0; font-size: .875rem; font-weight: 600; }
.crumbs li + li::before { content: "›"; margin: 0 .5em; opacity: .7; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: 3px; }
.lede__kicker { display: inline-block; margin: 0 0 10px; padding: .35em .75em; background: var(--ink); color: var(--y); border-radius: 4px; font: 700 .75rem/1.2 var(--ff-body); letter-spacing: .08em; text-transform: uppercase; }
.lede__lead { margin: 0 0 16px; font: var(--head-w) clamp(1.2rem, 3.4vw, 1.65rem)/1.3 var(--ff-head); letter-spacing: var(--head-ls); max-width: 36ch; }
.lede__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.lede__note { margin: 12px 0 0; font-size: .8125rem; font-weight: 600; }
.lede__art { display: none; }
.lede__art img { width: 100%; max-width: 420px; height: auto; margin-inline: auto; display: block; }
@media (min-width: 700px) { .lede__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; } .lede__art { display: block; } .lede { padding-block: 30px 34px; } }
body[data-hero="center"] .lede__in { grid-template-columns: 1fr; text-align: center; }
body[data-hero="center"] .lede__lead { margin-inline: auto; }
body[data-hero="center"] .lede__cta, body[data-hero="center"] .crumbs ol { justify-content: center; }
body[data-hero="center"] .lede__art { display: none; }
body[data-hero="stripe"] .lede { padding-bottom: 38px; }
body[data-hero="stripe"] .lede::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 34px, transparent 34px 68px); border-top: 3px solid var(--ink); }
body[data-hero="tilt"] .lede { padding-bottom: 54px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%); }
body[data-hero="rev"] .lede__art { order: -1; }
@media (max-width: 699px) { body[data-hero="rev"] .lede__art { order: 0; } }
/* facts strip */
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts li { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; background: var(--surface); color: var(--text); border: 2px solid var(--ink); border-radius: var(--r); }
.facts__k { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.facts__v { font: 800 1.1rem/1.25 var(--ff-head); overflow-wrap: anywhere; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body[data-facts="inline"] .facts { gap: 0; }
body[data-facts="inline"] .facts li { background: transparent; color: var(--ink); border: 0; border-left: 4px solid var(--ink); border-radius: 0; padding: 4px 14px; }
body[data-facts="inline"] .facts__k { color: var(--ink); opacity: .8; }
body[data-facts="ticks"] .facts li { background: transparent; color: var(--ink); border: 0; border-bottom: 3px dotted var(--ink); border-radius: 0; padding: 8px 4px; }
body[data-facts="ticks"] .facts__k { color: var(--ink); opacity: .8; }
body[data-facts="split"] .facts { gap: 0; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--ink); }
body[data-facts="split"] .facts li { background: var(--ink); color: var(--y); border: 0; border-radius: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
body[data-facts="split"] .facts__k { color: #f3f1e6; }

/* ---------- page grid + TOC ---------- */
.page-body { display: block; }
.page-grid { padding-block: 24px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.page-main { min-width: 0; }
.page-main > * + * { margin-top: clamp(26px, 4vw, 44px); }
.toc { border: 2px solid var(--ink); border-radius: var(--r); background: var(--surface); color: var(--text); }
.toc[hidden] { display: none; }
.toc__toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 0 16px; border: 0; background: var(--tint); color: var(--text); font: 800 1rem var(--ff-head); border-radius: calc(var(--r) - 2px); cursor: pointer; text-align: left; }
.toc__toggle svg { transition: transform .2s; flex: none; }
.toc.is-open .toc__toggle svg { transform: rotate(180deg); }
.toc__list { display: none; list-style: none; counter-reset: t; margin: 0; padding: 8px; }
.toc.is-open .toc__list { display: block; }
.toc__list li { counter-increment: t; }
.toc__list a { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3; border-radius: 8px; border-left: 4px solid transparent; }
.toc__list a::before { content: counter(t, decimal-leading-zero); flex: none; font: 800 .8rem/1.6 var(--ff-head); color: var(--muted); }
.toc__list a:hover { background: var(--surface-2); }
.toc__list a.is-current { background: var(--y); color: var(--ink); border-left-color: var(--ink); }
.toc__list a.is-current::before { color: var(--ink); }
@media (min-width: 1024px) {
  body[data-toc="left"] .page-grid:not(.page-grid--solo), body[data-toc="right"] .page-grid:not(.page-grid--solo) { grid-template-columns: 252px minmax(0, 1fr); gap: 40px; align-items: start; }
  body[data-toc="right"] .page-grid:not(.page-grid--solo) { grid-template-columns: minmax(0, 1fr) 252px; }
  body[data-toc="right"] .toc { order: 2; }
  body[data-toc="left"] .toc, body[data-toc="right"] .toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
  body[data-toc="left"] .toc__toggle, body[data-toc="right"] .toc__toggle { pointer-events: none; cursor: default; }
  body[data-toc="left"] .toc__toggle svg, body[data-toc="right"] .toc__toggle svg { display: none; }
  body[data-toc="left"] .toc__list, body[data-toc="right"] .toc__list { display: block; }
}
/* chips: horizontal scroller, inline: boxed list expanded on desktop */
body[data-toc="chips"] .toc { border: 0; background: transparent; }
body[data-toc="chips"] .toc__toggle { display: none; }
body[data-toc="chips"] .toc__list { display: flex; gap: 8px; padding: 2px 0 8px; overflow-x: auto; scroll-snap-type: x proximity; }
body[data-toc="chips"] .toc__list li { flex: none; scroll-snap-align: start; }
body[data-toc="chips"] .toc__list a { border: 2px solid var(--ink); border-left-width: 2px; border-radius: 999px; padding: 6px 16px; background: var(--surface); }
body[data-toc="chips"] .toc__list a::before { display: none; }
body[data-toc="inline"] .toc { max-width: 760px; }
@media (min-width: 1024px) { body[data-toc="inline"] .toc__toggle { pointer-events: none; } body[data-toc="inline"] .toc__toggle svg { display: none; } body[data-toc="inline"] .toc__list { display: grid; grid-template-columns: 1fr 1fr; } }
.page-grid--solo { grid-template-columns: minmax(0, 1fr); }
.page-grid--solo .page-main { max-width: 820px; width: 100%; margin-inline: auto; }
body[data-arch="overlay"] .page-grid:not(.page-grid--solo) { grid-template-columns: minmax(0, 1fr); }
body[data-arch="overlay"] .page-main { max-width: 860px; width: 100%; margin-inline: auto; }
body[data-arch="overlay"] .article { font-size: 1.125rem; }

/* ---------- article typography + components ---------- */
.article { min-width: 0; }
.article > .content, .article > div:not(.callout):not(.vs) { min-width: 0; }
.article .content > *, .article > * { max-width: 74ch; }
.article .content > table, .article > table, .article .content > .vs, .article > .vs, .article .table-wrap { max-width: 100%; }
.article h1 { font-size: clamp(1.85rem, 5.2vw, 2.9rem); line-height: 1.08; margin: 0 0 .5em; overflow-wrap: anywhere; }
.article h1::after { content: ""; display: block; width: 84px; height: 8px; margin-top: .45em; background: var(--y); border: 2px solid var(--ink); border-radius: 99px; }
.article h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); margin: 2em 0 .6em; padding-left: .6em; border-left: 8px solid var(--y); scroll-margin-top: 16px; overflow-wrap: anywhere; }
.article h3 { font-size: clamp(1.15rem, 2.6vw, 1.35rem); margin: 1.6em 0 .4em; }
.article p, .article ul, .article ol, .article dl, .article blockquote { margin: 0 0 1em; }
.article > :first-child, .article .content > :first-child { margin-top: 0; }
.article ul { padding-left: 1.2em; list-style: none; }
.article ul > li { position: relative; margin-bottom: .45em; }
.article ul > li::before { content: ""; position: absolute; left: -1.05em; top: .62em; width: .5em; height: .5em; background: var(--y); border: 2px solid var(--ink); border-radius: 2px; box-sizing: content-box; width: .38em; height: .38em; }
.article ol:not(.steps) { padding-left: 1.4em; }
.article ol:not(.steps) > li { margin-bottom: .45em; padding-left: .2em; }
.article a { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 3px; text-underline-offset: 3px; font-weight: 600; }
.article a:hover { background: var(--y); color: var(--ink); text-decoration-color: var(--ink); }
.article strong { font-weight: 800; }
.article img { border-radius: var(--r); }
.article table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; -webkit-overflow-scrolling: touch; }
.article th, .article td { padding: 10px 14px; text-align: left; border: 1px solid var(--line); vertical-align: top; min-width: 7rem; }
.article thead th { background: var(--y); color: var(--ink); border-color: var(--ink); font-weight: 800; }
.article tbody tr:nth-child(even) { background: var(--surface-2); }
/* callout */
.callout, .article blockquote { position: relative; margin: 1.4em 0; padding: 16px 18px 14px 20px; background: var(--tint); color: var(--text); border-left: 8px solid var(--y); border-radius: 0 var(--r) var(--r) 0; }
.callout::before { content: "Jegyzet"; display: inline-block; margin-bottom: 6px; padding: .3em .6em; background: var(--ink); color: var(--y); border-radius: 4px; font: 700 .7rem/1 var(--ff-body); letter-spacing: .08em; text-transform: uppercase; }
.callout--tip::before { content: "Tipp"; }
.callout--warn::before { content: "Figyelem"; }
.callout--warn { border-left-color: var(--accent); }
.callout > :last-child, .article blockquote > :last-child { margin-bottom: 0; }
body[data-callout="box"] .callout, body[data-callout="box"] .article blockquote { border: 2px solid var(--ink); border-left-width: 2px; border-radius: var(--r); box-shadow: 5px 5px 0 var(--y); }
body[data-callout="tape"] .callout, body[data-callout="tape"] .article blockquote { border: 0; border-top: 6px solid var(--y); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
body[data-callout="dots"] .callout, body[data-callout="dots"] .article blockquote { border: 3px dashed var(--y-d); border-radius: var(--r-lg); background: transparent; }
/* numbered steps */
.steps { list-style: none; counter-reset: st; margin: 1.4em 0; padding: 0; display: grid; gap: 12px; }
.steps > li { counter-increment: st; position: relative; padding: 14px 16px 14px 68px; min-height: 64px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); margin: 0; }
.steps > li::before { content: counter(st); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--y); color: var(--ink); border: 2px solid var(--ink); font: 800 1.1rem var(--ff-head); }
body[data-steps="square"] .steps > li::before { border-radius: 8px; transform: rotate(-4deg); }
body[data-steps="line"] .steps { gap: 0; }
body[data-steps="line"] .steps > li { border: 0; background: transparent; border-left: 4px solid var(--y); border-radius: 0; margin-left: 20px; padding-bottom: 22px; }
body[data-steps="line"] .steps > li::before { left: -24px; top: 0; }
body[data-steps="tab"] .steps > li { border-color: var(--ink); box-shadow: 4px 4px 0 var(--y); }
body[data-steps="tab"] .steps > li::before { border-radius: 4px 4px 4px 14px; width: 44px; height: 44px; }
/* comparison cards */
.vs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 1.4em 0; }
@media (min-width: 640px) { .vs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vs__card { background: var(--surface); border: 2px solid var(--line); border-top: 8px solid var(--y); border-radius: var(--r); padding: 16px 18px; }
.vs__card h3 { margin: 0 0 .4em; font-size: 1.15rem; }
.vs__card > :last-child { margin-bottom: 0; }
body[data-cards="shadow"] .vs__card, body[data-cards="shadow"] .steps > li { border-color: transparent; box-shadow: var(--shadow); }
body[data-cards="line"] .vs__card { border-color: var(--ink); border-top-width: 2px; border-radius: 0; }
body[data-cards="bar"] .vs__card { border: 0; border-left: 8px solid var(--y); border-radius: 0 var(--r) var(--r) 0; background: var(--surface-2); }
body[data-arch="sheet"] .article, body[data-arch="sheet"] .faq, body[data-arch="sheet"] .provider, body[data-arch="sheet"] .offers, body[data-arch="sheet"] .toc { background: var(--surface); }
body[data-arch="sheet"] .article { padding: clamp(18px, 4vw, 40px); border-radius: var(--r-lg); border: 2px solid var(--ink); box-shadow: var(--shadow); }
body[data-arch="sheet"] .faq, body[data-arch="sheet"] .offers { padding: clamp(16px, 3vw, 32px); border-radius: var(--r-lg); border: 2px solid var(--ink); }
body[data-arch="sheet"] .provider { padding: 20px; border-radius: var(--r-lg); border: 2px solid var(--ink); }
/* provider data ("Szolgáltató adatai") */
.provider { padding: clamp(16px, 3vw, 26px); border: 2px solid var(--ink); border-radius: var(--r); background: var(--surface); }
.provider h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 0 .7em; padding-left: .6em; border-left: 8px solid var(--y); }
.provider__list { margin: 0; display: grid; gap: 0; }
.provider__list > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.provider__list dt { font-weight: 700; font-size: .85rem; color: var(--muted); }
.provider__list dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { .provider__list > div { grid-template-columns: minmax(180px, 1fr) 2.2fr; gap: 16px; } }

/* ---------- FAQ ---------- */
.faq { counter-reset: q; }
.faq__title { margin: 0 0 14px; font: var(--head-w) clamp(1.4rem, 3.6vw, 1.9rem)/1.15 var(--ff-head); letter-spacing: var(--head-ls); text-transform: var(--head-tt); padding-left: .6em; border-left: 8px solid var(--y); }
.faq__list { display: grid; gap: 0; }
.faq__item { counter-increment: q; border-top: 2px solid var(--ink); }
.faq__item:last-child { border-bottom: 2px solid var(--ink); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 60px; padding: 12px 4px; border: 0; background: transparent; color: var(--text); font: 700 1.05rem/1.35 var(--ff-body); text-align: left; cursor: pointer; }
.faq__q:hover { color: var(--text); background: var(--surface-2); }
.faq__icon { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--y); color: var(--ink); border: 2px solid var(--ink); transition: transform .2s; }
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__a { display: none; padding: 0 4px 18px; }
.faq__item.is-open .faq__a { display: block; }
.faq__a p { margin: 0 0 .7em; max-width: 72ch; }
body[data-faq="cards"] .faq__list { gap: 10px; }
body[data-faq="cards"] .faq__item, body[data-faq="cards"] .faq__item:last-child { border: 2px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
body[data-faq="cards"] .faq__item.is-open { border-color: var(--ink); box-shadow: 4px 4px 0 var(--y); }
body[data-faq="cards"] .faq__q, body[data-faq="cards"] .faq__a { padding-inline: 16px; }
body[data-faq="plain"] .faq__item, body[data-faq="plain"] .faq__item:last-child { border: 0; border-bottom: 1px solid var(--line); }
body[data-faq="plain"] .faq__icon { background: transparent; border-color: transparent; color: var(--text); }
body[data-faq="circle"] .faq__item, body[data-faq="circle"] .faq__item:last-child { border: 0; border-bottom: 2px dashed var(--line); }
body[data-faq="circle"] .faq__q::before { content: counter(q); flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--y); font: 800 .95rem var(--ff-head); }
body[data-faq="circle"] .faq__q span { flex: 1; }

/* ---------- CTA ribbon ---------- */
.cta-ribbon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; background: var(--y); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-lg); --btn-bg: var(--ink); --btn-fg: var(--y); --btn-bd: var(--ink); }
.cta-ribbon p { flex: 1 1 240px; margin: 0; font-weight: 700; }
.cta-ribbon .btn { flex: 0 0 auto; }
@media (max-width: 479px) { .cta-ribbon .btn { width: 100%; } }

/* ---------- demo ---------- */
.demo__box { border: 3px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: 6px 6px 0 var(--y); }
.demo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 10px 16px; background: var(--y); color: var(--ink); border-bottom: 3px solid var(--ink); }
.demo__title { font-weight: 800; }
.demo__title small { font-weight: 600; opacity: .85; }
.demo__tag { font: 700 .75rem/1 var(--ff-body); text-transform: uppercase; letter-spacing: .05em; background: var(--ink); color: var(--y); padding: .45em .7em; border-radius: 4px; }
.demo__stage { position: relative; height: min(78vh, 620px); background: #0f1014; }
@media (min-width: 760px) { .demo__stage { height: auto; aspect-ratio: 16 / 9; max-height: 640px; } }
.demo__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo__play { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; border: 0; cursor: pointer; text-align: center; color: var(--ink); background: radial-gradient(circle at 50% 40%, var(--y) 0 36%, var(--y-d) 100%); font-family: var(--ff-body); }
.demo__play-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: var(--y); font-size: 2rem; padding-left: 6px; }
.demo__play-text { font: var(--head-w) 1.6rem/1.2 var(--ff-head); }
.demo__play-note { max-width: 32ch; font-size: .85rem; font-weight: 600; }
.demo--started .demo__play { display: none; }
.demo__legal { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }

/* ---------- operator showcase (optional) ---------- */
.offers { container-type: inline-size; container-name: offers; }
.offers__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.offers__head h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); padding-left: .6em; border-left: 8px solid var(--y); }
.offers__lead, .offers__help { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.offers__help { margin: 16px 0 0; }
.offers__help a { display: inline-flex; align-items: center; min-height: 44px; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.offer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); }
.offer--featured { border-color: var(--ink); background: var(--tint); box-shadow: 5px 5px 0 var(--y); }
.offer__flag { position: absolute; top: -12px; left: 16px; background: var(--ink); color: var(--y); padding: .3em .7em; border-radius: 4px; font: 700 .72rem/1 var(--ff-body); letter-spacing: .06em; text-transform: uppercase; }
.offer__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.offer__rank { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--y); color: var(--ink); border: 2px solid var(--ink); font: 800 1rem var(--ff-head); }
.offer__logo { flex: none; max-height: 40px; width: auto; border-radius: 6px; }
.offer__name { font-size: 1.15rem; overflow-wrap: anywhere; }
.offer__games { display: block; font-size: .85rem; color: var(--muted); }
.offer__bonus { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.offer__bonus strong { font: 800 1.35rem/1.2 var(--ff-head); overflow-wrap: anywhere; }
.offer__bonus span { font-size: .9rem; color: var(--muted); }
.offer__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.offer__chips li { padding: .35em .7em; border: 2px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--surface-2); }
.offer__chips li span { font-weight: 500; color: var(--muted); }
.offer__btns .btn { width: 100%; }
.offer__more { grid-column: 1 / -1; border-top: 2px dashed var(--line); padding-top: 4px; }
.offer__more summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font-weight: 700; }
.offer__more-in { padding-bottom: 6px; }
.offer__facts { margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.offer__facts div { padding: 8px 10px; background: var(--surface-2); border-radius: 8px; }
.offer__facts dt { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.offer__facts dd { margin: 0; font-weight: 700; }
.offer__pros { margin: 0 0 10px; padding-left: 1.1em; }
.offer__meta { margin: 0; font-size: .875rem; color: var(--muted); }
.offer__meta a { display: inline-block; padding: 11px 0; }
@container offers (min-width: 760px) {
  .offer { grid-template-columns: minmax(170px, 1.1fr) minmax(140px, .9fr) minmax(0, 1.5fr) auto; align-items: center; column-gap: 20px; padding: 18px 20px; }
  .offer__btns .btn { width: auto; white-space: nowrap; }
  .offer__chips { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
}
@container offers (min-width: 560px) and (max-width: 759px) {
  .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .offer__brand { grid-column: 1 / -1; }
}
body[data-offer="cards"] .offer { box-shadow: var(--shadow); border-color: transparent; }
body[data-offer="stripe"] .offer { border-radius: 0; border-width: 0 0 2px; background: transparent; padding-inline: 4px; }
body[data-offer="stripe"] .offer-list { gap: 0; border-top: 2px solid var(--ink); }
body[data-offer="stripe"] .offer:nth-child(odd) { background: var(--surface-2); }
body[data-offer="stripe"] .offer--featured { background: var(--tint); box-shadow: none; }
body[data-offer="compact"] .offer__chips { display: none; }
body[data-offer="compact"] .offer { padding-block: 12px; }

/* ---------- popup (optional) ---------- */
.popup { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(15, 16, 22, .6); }
.popup[hidden] { display: none; }
.popup__box { position: relative; width: min(100%, 440px); max-height: calc(100vh - 32px); overflow: auto; padding: 24px 22px 20px; background: var(--y); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--ink); --btn-bg: var(--ink); --btn-fg: var(--y); --btn-bd: var(--ink); }
.popup__close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.popup__eyebrow { margin: 10px 0 4px; font-weight: 700; }
.popup__title { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 4px; }
.popup__fs { margin: 0 0 8px; font-weight: 700; }
.popup__list { margin: 0 0 14px; padding-left: 1.1em; }
.popup__btn { width: 100%; }
.popup__legal { margin: 12px 0 0; font-size: .78rem; line-height: 1.4; }
body[data-popup="toast"] .popup { inset: auto 12px 12px auto; padding: 0; background: transparent; display: block; pointer-events: none; }
body[data-popup="toast"] .popup__box { pointer-events: auto; width: min(calc(100vw - 24px), 360px); box-shadow: var(--shadow); }
body[data-popup="sheet"] .popup { align-items: end; }
body[data-popup="sheet"] .popup__box { width: min(100%, 560px); border-radius: var(--r-lg) var(--r-lg) 0 0; margin-bottom: -16px; padding-bottom: 36px; }

/* ---------- dock (sticky promo; hidden while cookie notice / menu / popup are open) ---------- */
.dock { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--y); color: var(--ink); border-top: 3px solid var(--ink); --btn-bg: var(--ink); --btn-fg: var(--y); --btn-bd: var(--ink); --ghost-fg: var(--ink); }
.dock__txt { font-size: .75rem; font-weight: 700; line-height: 1.2; }
.dock .btn { min-height: 48px; padding-inline: 1em; }
@media (max-width: 759px) { .dock { display: flex; } .dock .btn--cta { flex: 1 1 auto; } .dock__alt { flex: none; } }
body[data-dock="pill"] .dock { left: 50%; right: auto; bottom: 12px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 24px); border: 2px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow); padding: 6px 8px 6px 16px; display: flex; }
body[data-dock="pill"] .dock .dock__alt { display: none; }
body[data-dock="tab"] .dock { left: auto; right: 12px; bottom: 0; border-radius: var(--r) var(--r) 0 0; border-bottom: 0; padding: 6px 8px 6px 12px; display: flex; }
body[data-dock="tab"] .dock .dock__alt, body[data-dock="tab"] .dock .dock__txt { display: none; }
body[data-dock="corner"] .dock { left: auto; right: 12px; bottom: 12px; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); padding: 8px; display: flex; flex-direction: column; align-items: stretch; text-align: center; }
body[data-dock="corner"] .dock .dock__alt { display: none; }
html.cookie-open .dock, html.nav-open .dock, html.popup-open .dock { visibility: hidden; }

/* ---------- cookie notice (two equal choices) ---------- */
.cookie { position: fixed; z-index: 100; left: 12px; right: 12px; bottom: 12px; max-width: 760px; margin-inline: auto; padding: 16px 18px; background: var(--surface); color: var(--text); border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 280px; font-size: .9rem; line-height: 1.5; }
.cookie a { color: var(--link); font-weight: 700; display: inline-block; padding: 11px 0; }
.cookie__btns { display: flex; flex: 1 1 280px; gap: 10px; }
@media (prefers-color-scheme: dark) { .cookie { border-color: var(--y); } }

/* ---------- footer ---------- */
.site-footer { background: var(--ftr-bg); color: var(--ftr-fg); padding: 36px 0 28px; border-top: 6px solid var(--y); --btn-bg: var(--y); --btn-fg: var(--ink); --btn-bd: var(--y); --ghost-fg: var(--ftr-fg); }
.fnotice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 28px; border: 2px solid currentColor; border-radius: var(--r); }
.fnotice p { margin: 0; font-size: .9rem; line-height: 1.5; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px 32px; }
.fblock__title { font: 800 1rem/1.3 var(--ff-head); letter-spacing: var(--head-ls); text-transform: var(--head-tt); margin-bottom: 8px; color: var(--ftr-link); }
.fblock p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--ftr-muted); }
.fblock ul { list-style: none; margin: 0; padding: 0; }
.fblock a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ftr-fg); text-underline-offset: 3px; font-size: .95rem; }
.fblock a:hover { color: var(--ftr-link); }
.fblock .btn { color: var(--btn-fg); }
.fblock__ad { margin-top: 8px; }
.fblock a small { opacity: .8; margin-left: .35em; }
.fimp { margin-top: 28px; padding-top: 16px; border-top: 1px solid currentColor; font-size: .85rem; color: var(--ftr-muted); }
.fimp p { margin: 0; overflow-wrap: anywhere; }
.fimp a { display: inline-block; padding: 12px 0; color: var(--ftr-fg); }
@media (min-width: 600px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fblock--about { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  .fgrid { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
  .fblock--about { grid-column: auto; }
  .fgrid > .fblock--about:first-child { }
}
.site-footer[data-n="3"] .fgrid { --n: 3; } .site-footer[data-n="4"] .fgrid { --n: 4; } .site-footer[data-n="5"] .fgrid { --n: 5; }
/* centered */
body[data-ftr="centered"] .site-footer { text-align: center; }
body[data-ftr="centered"] .fnotice { justify-content: center; text-align: left; max-width: 760px; margin-inline: auto; margin-bottom: 28px; }
body[data-ftr="centered"] .fgrid { justify-items: center; }
body[data-ftr="centered"] .fblock ul { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 18px; }
body[data-ftr="centered"] .fblock--about p { max-width: 62ch; margin-inline: auto; }
@media (min-width: 960px) { body[data-ftr="centered"] .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; } body[data-ftr="centered"] .fblock--about { grid-column: 1 / -1; } }
/* band: yellow footer, inline link rows */
body[data-ftr="band"] .site-footer { --ftr-bg: var(--y); --ftr-fg: var(--ink); --ftr-muted: var(--ink); --ftr-link: var(--ink); --btn-bg: var(--ink); --btn-fg: var(--y); --btn-bd: var(--ink); border-top: 6px solid var(--ink); }
body[data-ftr="band"] .fblock ul { display: flex; flex-wrap: wrap; column-gap: 16px; }
body[data-ftr="band"] .fblock a { font-weight: 600; }
body[data-ftr="band"] .fblock__title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (min-width: 960px) { body[data-ftr="band"] .fgrid { grid-template-columns: minmax(0, 1fr); } }
/* split: about left, link blocks in two columns on the right */
@media (min-width: 960px) {
  body[data-ftr="split"] .fgrid { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); }
  body[data-ftr="split"] .fblock--about { grid-column: 1; grid-row: 1 / span 3; }
  body[data-ftr="split"] .site-footer[data-n="3"] .fgrid { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-width: 959px) { body[data-ftr="split"] .fblock--about { grid-column: 1 / -1; } }
/* light footer */
body[data-ftr="light"] .site-footer { --ftr-bg: var(--surface-2); --ftr-fg: var(--text); --ftr-muted: var(--muted); --ftr-link: var(--text); --btn-bg: var(--y); --btn-fg: var(--ink); --btn-bd: var(--ink); border-top: 6px solid var(--y); }
body[data-ftr="light"] .fblock__title { border-left: 8px solid var(--y); padding-left: .5em; }
body[data-ftr="light"] .fnotice { background: var(--surface); }
@media (min-width: 1100px) { body[data-arch="rail"] .site-footer .wrap { padding-inline: 24px; } }

/* rail: the content column is 264px narrower, so footer columns step down later */
@media (min-width: 1100px) and (max-width: 1439px) {
  body[data-arch="rail"]:not([data-ftr="band"]):not([data-ftr="split"]) .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-arch="rail"] .fblock--about { grid-column: 1 / -1; }
  body[data-arch="rail"][data-ftr="split"] .fgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body[data-arch="rail"][data-ftr="split"] .fblock--about { grid-row: auto; grid-column: 1 / -1; }
}

/* ---------- misc ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .utility, .masthead, .dock, .cookie, .popup, .progress, .toc { display: none !important; } }

/* in-text illustrations */
.article img{display:block;width:100%;height:auto;margin:16px 0;aspect-ratio:3/2;object-fit:cover}
