/* Self-hosted fonts (SIL OFL 1.1, see ../fonts/LICENSE-OFL.txt): no third-party requests, GDPR-friendly. Latin subset, variable. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-opsz-normal.069cb90e11a3.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-opsz-italic.fa7ce081be5e.woff2") format("woff2"); }
/* Re-skin by editing the custom properties below. Game-agnostic, original identity. */
:root {
  --bg: #faf6ee;
  --surface: #fffdf8;
  --surface-2: #f3ecde;
  --text: #231f1a;
  --muted: #6a6054;
  --line: #e2d9c6;
  --accent: #b23f19;          /* terracotta; 5.6:1 on --bg */
  --accent-strong: #8f3012;
  --accent-ink: #ffffff;
  --accent-soft: #f8e4d8;
  --good: #2f6b3f;
  --mark-ink: #faf6ee;
  --shadow: 0 1px 2px rgb(60 40 10 / .06), 0 6px 20px -8px rgb(60 40 10 / .18);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --radius: 14px;
  --gutter: 1.1rem;
  --header-h: 3.5rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --surface: #1f1b15;
    --surface-2: #28231b;
    --text: #efe8dc;
    --muted: #b0a592;
    --line: #3a3326;
    --accent: #f0875a;        /* 7.6:1 on --bg */
    --accent-strong: #ffa57c;
    --accent-ink: #1b120c;
    --accent-soft: #3a2519;
    --good: #7fcf94;
    --mark-ink: #17140f;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -10px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; }
main:focus { outline: none; } /* skip-link target only; not a tab stop */
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 5.5vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3.8vw, 1.85rem); }
h3 { font-size: 1.15rem; }
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: absolute; left: .5rem; top: -4rem; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: .5rem; }
.count { color: var(--muted); font-family: var(--font-body); font-size: .8em; font-weight: 400; }

/* Header + wordmark */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
html { scroll-padding-top: calc(var(--header-h) + 1rem); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); padding-block: 0; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; }
.wordmark:hover { color: var(--text); }
.wordmark__mark { color: var(--accent); flex: none; }
.wordmark__text { font-family: var(--font-display); font-weight: 650; font-size: 1.3rem; letter-spacing: -.02em; }
.site-tagline { display: none; margin: 0; color: var(--muted); font-size: .9rem; }
@media (min-width: 700px) { .site-tagline { display: block; } }

main.container { padding-block: 1.5rem 3rem; }
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-strong); }
.meta { color: var(--muted); font-size: .9rem; }

/* Hero */
.hero-art { padding: 1.5rem 0 2.5rem; max-width: 46rem; }
.hero__kicker { margin: 0 0 .75rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero__title { font-size: clamp(2.1rem, 7.5vw, 3.6rem); line-height: 1.08; margin-bottom: .6em; }
.hero__lede { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.25rem; max-width: 38rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem 1rem; margin: 0 0 1.25rem; }
.hero__check { display: flex; flex-direction: column; gap: .35rem; }
.hero__note { margin: 0; font-size: .85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-block; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; min-height: 2.5rem; line-height: 1.5rem; }
.chips ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.page-head { margin-bottom: 1.5rem; }
.lede { color: var(--muted); max-width: 40rem; margin: 0; }

/* Sections and cards */
.game-section { margin-top: 2.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; padding-bottom: .5rem; }
.section-head h2 { margin: 0; }
.section-head__all { font-size: .92rem; font-weight: 500; white-space: nowrap; }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem; box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease; }
.card:hover, .card:focus-within { transform: translateY(-2px); border-color: var(--accent); }
.card__eyebrow { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card__title { margin: .15rem 0 0; font-size: 1.15rem; }
.card__link { color: var(--text); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card__link:hover { color: var(--accent-strong); }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.card__summary { margin: .1rem 0 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin: auto 0 0; padding-top: .8rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .4rem; color: var(--muted); font-size: .85rem; }
.pill { white-space: nowrap; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; padding: .15rem .6rem; border-radius: 999px; }

/* Empty / 404 */
.empty { text-align: center; max-width: 30rem; margin: 3rem auto; padding: 2.5rem 1.25rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty__art { color: var(--accent); opacity: .8; margin-bottom: .5rem; }
.empty__title { color: var(--text); }
.empty--404 { border-style: solid; background: var(--surface); }
.empty__code { font-family: var(--font-display); font-size: clamp(4rem, 18vw, 7rem); line-height: 1; margin: 0; color: var(--accent); font-weight: 650; }

/* Post header */
.post { max-width: 56rem; margin-inline: auto; }
.post-head__eyebrow { margin: 0 0 .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .9rem 1.5rem; margin: 1.1rem 0; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .1rem 0 0; font-weight: 500; }
.notice { padding: .65rem .9rem; border-radius: 10px; font-size: .85rem; line-height: 1.5; }
.notice--affiliate { color: var(--muted); border-left: 3px solid var(--line); background: transparent; padding-left: .8rem; border-radius: 0; margin: 0 0 .5rem; }
.notice--affiliate strong { color: var(--text); font-weight: 600; }
.notice--draft { background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent); }

/* Tier switcher */
.tier-nav { position: sticky; top: var(--header-h); z-index: 20; margin: 0 calc(var(--gutter) * -1) 1.25rem; padding: .55rem var(--gutter); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tier-nav__inner { display: flex; align-items: center; gap: .75rem; }
.tier-nav__label { display: none; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 700px) { .tier-nav__label { display: block; } }
.tier-nav__list { display: flex; flex: 1; gap: .4rem; list-style: none; margin: 0; padding: 0; background: var(--surface-2); border-radius: 999px; padding: .25rem; }
.tier-nav__list li { flex: 1 1 0; min-width: 0; }
.tier-nav__link { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; min-height: 2.75rem; padding: .3rem .4rem; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; text-align: center; }
.tier-nav__price { font-weight: 400; font-size: .75rem; color: var(--muted); }
@media (min-width: 560px) { .tier-nav__link { flex-direction: row; gap: .5rem; } .tier-nav__price { font-size: .85rem; } }
.tier-nav__link:hover { background: var(--accent-soft); color: var(--accent-strong); }
.tier-nav__link[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }
.tier-nav__link[aria-current="true"] .tier-nav__price { color: inherit; opacity: .9; }

/* Article prose */
.prose { max-width: 70ch; font-size: 1.05rem; line-height: 1.75; margin-bottom: 2rem; }
.prose > * { margin-block: 0 1.15em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose h4 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin-inline: 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--accent); color: var(--muted); font-family: var(--font-display); font-style: italic; }
.prose code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.prose pre { overflow-x: auto; background: var(--surface-2); padding: 1rem; border-radius: 10px; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .4rem .7rem; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); }

/* Article visuals: card figures, charts, callouts (docs/site-design/article-visuals.md) */
.card-figure { margin: 1.5rem auto; width: 244px; max-width: 100%; text-align: center; }
.card-figure img { display: block; width: 244px; max-width: 100%; height: auto; margin: 0 auto; }
.card-figure figcaption, .chart figcaption { margin-top: .5rem; font-size: .9rem; line-height: 1.4; color: var(--muted); }
@media (min-width: 48rem) { .card-figure { float: right; margin: .25rem 0 1rem 1.5rem; } }
.prose h2, .prose h3 { clear: both; }
.chart { margin: 1.5rem 0; max-width: 70ch; }
.chart svg { display: block; width: 100%; max-width: 28rem; height: auto; }
.chart--wide svg { max-width: 34rem; }
.chart .bar { fill: var(--accent); }
.chart .bar-n, .chart .bar-l { fill: var(--text); font-size: 11px; }
.chart .bar-l { fill: var(--muted); }
.chart__note { margin: .25rem 0 0; font-size: .85rem; color: var(--muted); }
.chart__data { margin-top: .5rem; font-size: .9rem; }
.chart__data summary { cursor: pointer; }
.chart__data table { border-collapse: collapse; margin-top: .5rem; }
.chart__data th, .chart__data td { border-bottom: 1px solid var(--line); padding: .3rem .7rem; text-align: left; }
.prose blockquote.callout { font-family: inherit; font-style: normal; color: var(--text); background: var(--surface-2); border-left-width: 4px; padding: .8em 1.1em; border-radius: 0 8px 8px 0; }

/* Tier sections */
.tier { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--text); scroll-margin-top: 5rem; }
.tier__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .5rem; }
.tier__head h2 { margin: 0; }
.tier__total { margin: 0; color: var(--muted); }
.tier__total strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* Swaps table: stacked cards on phones, real table from 760px */
.table-wrap { margin-bottom: 2rem; }
.swaps { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.swaps thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.swaps, .swaps tbody, .swaps tr, .swaps td, .swaps tfoot, .swaps th { display: block; }
.swaps tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: .75rem; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem 1rem; }
.swaps td { padding: 0; }
.swaps td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.swaps__cut::before { display: inline-block; width: 100%; }
.swaps__cut { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 70%, transparent); color: var(--muted); }
.swaps__add { font-weight: 600; }
.swaps__why { grid-column: 1 / -1; margin: .6rem 0; padding-top: .6rem; border-top: 1px solid var(--line); color: var(--text); font-size: .94rem; line-height: 1.55; }
.swaps__why::before { display: none !important; }
.swaps td.num { text-align: left; }
.swaps tfoot tr { display: flex; justify-content: space-between; align-items: baseline; padding: .5rem 1rem; }
.swaps tfoot th, .swaps tfoot td { padding: 0; text-align: left; }
.swaps tfoot td { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.swaps tfoot td::before { display: none; }
@media (min-width: 760px) {
  .swaps { display: table; }
  .swaps thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .swaps tbody { display: table-row-group; }
  .swaps tfoot { display: table-footer-group; }
  .swaps tr { display: table-row !important; background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
  .swaps th, .swaps td { display: table-cell; }
  .swaps thead th { text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: .5rem .75rem; border-bottom: 2px solid var(--text); }
  .swaps td { padding: .8rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  .swaps td::before { display: none; }
  .swaps__why { grid-column: auto; margin: 0; border-top: 0; font-size: .92rem; max-width: 34ch; }
  .swaps .num { text-align: right !important; white-space: nowrap; }
  .swaps tfoot tr { display: table-row !important; }
  .swaps tfoot th, .swaps tfoot td { padding: .9rem .75rem; border-top: 2px solid var(--text); text-align: left; }
  .swaps tfoot td { text-align: right; white-space: nowrap; }
  .swaps tfoot th, .swaps tfoot td { vertical-align: baseline; }
  .swaps__running { color: var(--muted); }
}

/* List blocks (buy + decklist) */
.list-block { margin-top: 2rem; }
.list-block__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .75rem; }
.list-block__head h3 { margin: 0; }
.buy-block { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.15rem 1.2rem 1.3rem; box-shadow: var(--shadow); }
.buy-block__total { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.buylist { list-style: none; margin: 0 0 1.1rem; padding: 0; columns: 14rem; column-gap: 2rem; }
.buylist li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.actions .btn { flex: 1 1 14rem; }
.decklist { columns: 15rem; column-gap: 2rem; font-size: .92rem; }
.decklist__group { break-inside: avoid; margin-bottom: 1.1rem; }
.decklist__group h4 { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .3rem; padding-bottom: .25rem; border-bottom: 1px solid var(--line); }
.decklist ul { list-style: none; margin: 0; padding: 0; }
.decklist li { padding: .12rem 0; line-height: 1.4; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.75rem; padding: .6rem 1.1rem; border: 1.5px solid var(--text); border-radius: 10px; background: transparent; color: var(--text); font: 600 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn.is-copied { background: var(--good); border-color: var(--good); color: var(--bg); }
.btn.is-failed { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.btn.is-copied::before { content: "\2713"; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.75rem 0; color: var(--muted); font-size: .875rem; }
.site-footer p { margin: 0 0 .35rem; }
.fine-print { font-size: .8rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .card:focus-within { transform: none; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --muted: #333; --line: #bbb; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .tier-nav, .breadcrumb, .actions, .list-block__head .btn, .skip-link { display: none !important; }
  .container, .post { max-width: none; padding: 0; }
  .tier { break-before: page; border-top: 0; }
  .buy-block { border: 1px solid #000; box-shadow: none; }
  .decklist { columns: 3; font-size: 9pt; }
  .swaps thead { display: table-header-group; }
  a { color: #000; text-decoration: none; }
}

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 2rem 0; color: var(--muted); }

/* Header navigation (added with the bracket checker) */
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 .9rem; margin-left: auto; }
@media (max-width: 520px) { .wordmark__text { display: none; } .site-nav { gap: .7rem; font-size: .92rem; } }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); font-weight: 500; text-decoration: none; padding: 0 .2rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-strong); text-decoration: underline; }

/* Related-article links and set hubs */
.related, .hubs { margin: 2rem 0; }
.related ul, .hubs ul { padding-left: 1.2rem; }
.hubs ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; }

/* Legal pages and affiliate notes */
.affiliate-note { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; }
.footer-links { margin: 0 0 .5rem; }

/* Browse-by-topic tiles on the home page */
.topics { margin: 2rem 0; }
.topic-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .75rem; list-style: none; padding: 0; }
.topic-tiles { align-items: stretch; margin: 0; }
.topic-tiles li { display: flex; }
.topic-tiles a { flex: 1; display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .5rem; text-decoration: none; }
.topic-tiles a:hover { border-color: var(--accent-strong); }

/* Article page: contents, card previews, skip link */
.prose :is(h2, h3) { scroll-margin-top: calc(var(--header-h) + 4.5rem); }
.toc { margin: 0 0 1.5rem; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 70ch; }
.toc summary { cursor: pointer; font-weight: 600; min-height: 2.75rem; display: flex; align-items: center; }
.toc__list { margin: 0; padding-left: 1.2rem; }
.toc__item--h3 { margin-left: 1rem; list-style: circle; }
.toc__list a { display: inline-block; padding: .2rem 0; }
.toc__list a[aria-current="true"] { font-weight: 700; color: var(--accent-strong); }
.card-ref { text-decoration: underline dotted; text-underline-offset: .2em; }
.card-preview { position: absolute; z-index: 40; width: 15rem; padding: 0; border-radius: 4.5% / 3.2%; box-shadow: var(--shadow); background: var(--surface); }
.card-preview[hidden] { display: none; }
.card-preview img { display: block; width: 100%; height: auto; }
.skip-buy { font-size: .9rem; }
@media print { .toc, .card-preview, .skip-buy { display: none !important; } }

/* Hero art (docs/site-design/hero-art.md) */
.card__thumb { display: block; width: calc(100% + 2.4rem); max-width: none; margin: -1.15rem -1.2rem .6rem; aspect-ratio: 11 / 8; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--line); }
.hero-art { margin: 0 0 1rem; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 626 / 457; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.hero-art figcaption { margin-top: .4rem; font-size: .85rem; line-height: 1.4; color: var(--muted); }
@media (min-width: 48rem) {
  .post-head--hero { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 0 2rem; align-items: start; }
  .post-head--hero .hero-art { grid-column: 2; grid-row: 1; margin: 0; }
  .post-head--hero .post-head__text { grid-column: 1; grid-row: 1; }
}
