/* ValueStack site. The app's "metal ledger" look: dark first, hairline rules, quiet surfaces,
   brass used sparingly. System fonts only; nothing is loaded from anywhere else. */

:root {
  color-scheme: dark;
  --bg: #0b0e13; --hero: #151b23; --surface: #161b22; --surface2: #1b212b;
  --line: #232a33; --line2: #3a4452;
  --text: #e8eaed; --muted: #8b95a1;
  --brass: #c9a227; --brassTx: #e7d49a;
  --green: #4ade80; --amber: #f5a524; --red: #ef5350;
  --link: var(--brass); --link-hover: var(--brassTx);
  --btn-bg: var(--brass); --btn-fg: #0b0e13;
  --focus: var(--brassTx);
  --font: -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  --measure: 68ch;
  --radius: 10px;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f5f1; --hero: #fbf9f4; --surface: #ffffff; --surface2: #f1efe8;
    --line: #e5e2d8; --line2: #c8c4b6;
    --text: #20242b; --muted: #646c78;
    --brass: #a07d15; --brassTx: #7a5f10;
    --green: #178a4c; --amber: #b26a05; --red: #d03b38;
    --link: var(--brassTx); --link-hover: var(--text);
    --btn-bg: var(--brassTx); --btn-fg: #ffffff;
    --focus: var(--brassTx);
  }
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* ---------- type ---------- */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 1.35rem + 2.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem); font-weight: 650; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
strong { font-weight: 650; }
small, .fine { font-size: 0.875rem; color: var(--muted); }
.fine { margin: 0.4em 0 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
::selection { background: color-mix(in srgb, var(--brass) 35%, transparent); }

.amt, td.num, th.num, .figures dd, .row-figures, time { font-variant-numeric: tabular-nums; }

.eyebrow, .jump-label, th, dt, .tag, .badge, .toc-title, .count {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 600;
}
.eyebrow { color: var(--muted); margin: 0 0 0.5rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--btn-bg); color: var(--btn-fg); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: var(--gutter); top: 0.5rem; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: var(--gutter); }
main { display: block; min-height: 60vh; padding-bottom: 2rem; }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; padding-block: 0.4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 7px; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; margin-inline: -0.5rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem; color: var(--text); text-decoration: none; font-size: 0.95rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--link); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.nav .nav-app { color: var(--link); font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.footer-brand { color: var(--text); font-weight: 700; margin: 0 0 0.25rem; }
.footer-note { margin: 0; max-width: 40ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.footer-links a { display: inline-block; padding: 0.7rem 0; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--link); text-decoration: underline; }
.copyright { margin: 1.5rem 0 0; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }

/* ---------- page heads ---------- */
.page-head { padding: 2.25rem 0 1.25rem; }
.page-title { max-width: 24ch; }
.page-title[lang]:not([lang="en"]) { text-wrap: wrap; max-width: none; }
.page-title::after { content: ""; display: block; width: 3rem; height: 2px; background: var(--brass); margin-top: 0.9rem; }
.page-head .lede { max-width: 52ch; margin: 1.1rem 0 0; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0.9rem 0 0; }
.official { color: var(--muted); margin: 0.6rem 0 0; }
.badges { margin: 0.75rem 0 0; }
.lede { font-size: 1.18rem; line-height: 1.55; color: var(--text); }

.crumbs { padding-top: 1rem; font-size: 0.85rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.45rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.45rem; color: var(--line2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }

/* ---------- buttons, badges, panels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.7rem 1.15rem; border-radius: var(--radius); border: 1px solid transparent; background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; text-align: center; }
.btn:hover { color: var(--btn-fg); filter: brightness(1.07); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line2); font-weight: 600; }
.btn-quiet:hover { color: var(--link); background: transparent; filter: none; border-color: var(--brass); }

.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.18rem 0.55rem; border: 1px solid var(--line2); border-radius: 999px; color: var(--text); background: transparent; vertical-align: middle; white-space: nowrap; }
.badge::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--muted); }
.badge-closed::before { background: var(--amber); }
.tag { color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0.08rem 0.4rem; margin-left: 0.25rem; white-space: nowrap; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.25rem 1.1rem; margin: 2.5rem 0 1rem; }
.panel-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.panel p { max-width: var(--measure); }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 1rem 0 0; }
.panel-actions .fine { margin: 0; }
.callout { margin: 1.25rem 0 1.5rem; }
.callout p { margin: 0; }
.data-note { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; max-width: var(--measure); }

/* ---------- home ---------- */
.hero { background: var(--hero); border-bottom: 1px solid var(--line); padding: 3rem 0 2.5rem;
  background-image: radial-gradient(ellipse 55% 75% at 82% 30%, color-mix(in srgb, var(--brass) 9%, transparent), transparent 70%); }
.hero h1 { max-width: 20ch; }
.hero h1::after { content: ""; display: block; width: 3rem; height: 2px; background: var(--brass); margin-top: 1rem; }
.hero .lede { max-width: 38rem; margin: 1.25rem 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 0.9rem; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 12rem)); gap: 1rem 2rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line2); }
.figures dt { color: var(--muted); }
.figures dd { margin: 0.2rem 0 0; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; }
.band { padding: 2.75rem 0 0.5rem; }
.band-last { padding-bottom: 1rem; }
.band-title { margin-bottom: 0.5rem; }
.band-lede { color: var(--muted); max-width: 60ch; margin-bottom: 1.25rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3rem; }
@media (min-width: 840px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.more { margin-top: 1rem; font-weight: 600; }

/* ---------- home ---------- */
/* Hero: copy and search on the left, a fan of drawn cards and one card's credits on the right. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; } }
.hero-cards { padding: 3rem 0 3rem; }
.hero-cards h1 { max-width: 16ch; }
.hero .card-search { max-width: 34rem; margin: 0 0 0.75rem; }
.search-row { display: flex; gap: 0.5rem; }
.search-row input { flex: 1 1 auto; min-width: 0; }
.search-go { flex: none; min-height: 48px; }
.results:empty { display: none; }
.quick { font-size: 0.92rem; color: var(--muted); margin: 0.25rem 0 0.75rem; }
.quick span { font-weight: 600; color: var(--text); }
.hero-visual { position: relative; width: 100%; max-width: 470px; margin: 0 auto; }
.fan { position: relative; height: 0; padding-bottom: 66%; }
.fan-card { position: absolute; width: 72%; }
.fan-card svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45)); }
.fan-1 { left: 0; top: 0; transform: rotate(-12deg); }
.fan-2 { left: 14%; top: 9%; transform: rotate(-4deg); }
.fan-3 { left: 28%; top: 20%; transform: rotate(4deg); }
.hero-panel { position: relative; margin: 0.5rem 0 0 auto; width: min(100%, 21rem); padding: 0.85rem 1rem 0.5rem; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.hero-panel figcaption { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; }
.hero-panel figcaption a { font-weight: 650; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.75rem; padding: 0.45rem 0; border-top: 1px solid var(--line); }
.hp-name { font-size: 0.92rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-amt { font-size: 0.92rem; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.hp-when { grid-column: 1 / -1; font-size: 0.8rem; color: var(--brassTx); }
@media (min-width: 920px) { .hero-panel { margin-top: -1.5rem; } }

/* Trust strip under the hero: four facts, aligned. */
.trust-band { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust { list-style: none; margin: 0; padding: 1.15rem 0; display: grid; gap: 0.9rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust li { display: flex; flex-direction: column; gap: 0.1rem; }
.trust strong { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.trust span { font-size: 0.85rem; color: var(--muted); }

/* Popular cards: card art, name, three facts. */
.pop-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 920px) { .pop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pop-card { display: flex; flex-direction: column; gap: 0.85rem; height: 100%; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.pop-card:hover { border-color: var(--brass); color: var(--text); text-decoration: none; }
.pop-card svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35)); }
@media (prefers-reduced-motion: no-preference) {
  .pop-card svg { transition: transform 0.2s ease; }
  .pop-card:hover svg { transform: translateY(-3px); }
}
.pop-head { display: flex; flex-direction: column; gap: 0.1rem; }
.pop-name { font-weight: 650; font-size: 1.08rem; }
.pop-issuer { color: var(--muted); font-size: 0.9rem; }
.pop-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: auto 0 0; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.pop-facts dt { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pop-facts dd { margin: 0.15rem 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.pop-facts dd small { font-size: 0.75em; font-weight: 500; color: var(--muted); }
.pop-note { margin-top: 1rem; max-width: 70ch; }

/* Cards tab: country tiles with flags, and each country's cards as tiles. */
.flag { display: block; flex: none; width: 48px; height: 32px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 4px 10px rgba(0, 0, 0, 0.28); }
.flag-sm { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.country-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .country-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .country-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.country-tile { display: flex; align-items: center; gap: 1rem; height: 100%; min-height: 5.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.country-tile:hover { border-color: var(--brass); color: var(--text); text-decoration: none; }
.ct-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.ct-name { font-weight: 650; font-size: 1.05rem; line-height: 1.25; }
.ct-count { font-size: 0.9rem; font-weight: 600; color: var(--brassTx); }
.ct-fees { font-size: 0.85rem; color: var(--muted); }
.country-tiles-sm .country-tile { min-height: 0; padding: 0.75rem 0.9rem; gap: 0.75rem; }
.country-tiles-sm .flag { width: 36px; height: 24px; }
@media (min-width: 960px) { .country-tiles-sm { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.country-eyebrow { display: flex; align-items: center; gap: 0.5rem; }
.hero-guides .hero-visual { max-width: 400px; }
@media (max-width: 919px) { .hero-guides .hero-visual { max-width: 320px; } }
@media (max-width: 639px) { .hero-country .hero-visual { display: none; } }
.country-tile-stack { position: relative; padding-right: 7.5rem; overflow: hidden; }
.mini-stack { position: absolute; right: 0.9rem; top: 50%; width: 6rem; height: 3.6rem; transform: translateY(-50%); }
.ms-card { position: absolute; width: 4.6rem; }
.ms-card svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)); }
.ms-card:nth-child(1) { left: 0; top: 0; transform: rotate(-10deg); }
.ms-card:nth-child(2) { left: 0.7rem; top: 0.35rem; transform: rotate(-3deg); }
.ms-card:nth-child(3) { left: 1.4rem; top: 0.8rem; transform: rotate(5deg); }
.country-tile-stack:hover .ms-card:nth-child(3) { transform: rotate(5deg) translateY(-2px); }
.guide-countries .country-tile { align-items: flex-start; }
.guide-countries .flag { margin-top: 0.2rem; }
.guide-countries .ct-fees { line-height: 1.4; margin: 0.15rem 0 0.25rem; }
.country-cards-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem 1rem; align-items: center; margin: 2.5rem 0 1rem; padding: 1.25rem 1.35rem; border: 1px solid var(--line2); border-left: 3px solid var(--brass); border-radius: var(--radius); background: var(--surface); }
.country-cards-panel h2 { font-size: 1.2rem; margin: 0 0 0.3rem; }
.country-cards-panel p { margin: 0; color: var(--muted); }
.country-cards-panel .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 760px) { .country-cards-panel { grid-template-columns: auto minmax(0, 1fr) auto; } .country-cards-panel .btn { grid-column: auto; } }
.card-grid { margin-top: 0.75rem; }
.section-nav.issuer-nav { max-width: none; margin: 2rem 0 0.5rem; }
@media (min-width: 960px) { .section-nav.issuer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.issuer-group { margin-top: 2.25rem; }
.issuer-group h2 .count { font-size: 0.75em; }
.pop-head .badge { align-self: flex-start; margin-top: 0.3rem; }
@media (max-width: 559px) {
  .card-grid .pop-card { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 0.9rem; row-gap: 0.65rem; align-items: center; padding: 0.85rem; }
  .card-grid .pop-facts { grid-column: 1 / -1; margin: 0; }
}

/* Topics: icon, title, one line. */
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topic { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.85rem; row-gap: 0.25rem; height: 100%; padding: 1rem 1.05rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.topic:hover { border-color: var(--brass); color: var(--text); text-decoration: none; }
.topic-icon { grid-row: 1 / span 2; width: 28px; height: 28px; color: var(--brass); margin-top: 0.1rem; }
.topic-title { font-weight: 650; line-height: 1.3; }
.topic-sum { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.topic-meta { grid-column: 2; margin-top: 0.3rem; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Column counts by how many tiles a group has, so no tile sits alone in a row. */
.topic-grid.n1 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .topic-grid.n3 { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 960px) {
  .topic-grid.n1 { max-width: calc((100% - 1.5rem) / 3 * 2 + 0.75rem); }
  .topic-grid.n2, .topic-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Guides index: hero with section links and a reading order. */
.hero-guides { padding: 1.25rem 0 2.75rem; }
.hero-guides .crumbs { margin-bottom: 1.5rem; }
.hero-guides h1 { max-width: 18ch; }
.section-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; max-width: 34rem; margin-top: 1.25rem; }
@media (min-width: 560px) { .section-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.section-nav a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 44px; padding: 0.5rem 0.8rem; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.section-nav a:hover { border-color: var(--brass); color: var(--text); }
.section-count { font-size: 0.8rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.start-panel { width: min(100%, 25rem); margin-left: auto; padding: 1.1rem 1.15rem 0.9rem; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3); }
@media (max-width: 919px) { .start-panel { margin-left: 0; } }
.start-title { font-weight: 650; margin: 0 0 0.6rem; }
.start-panel ol { list-style: none; margin: 0; padding: 0; counter-reset: start; }
.start-panel li { counter-increment: start; border-top: 1px solid var(--line); }
.start-panel li a { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.6rem; padding: 0.7rem 0; color: var(--text); text-decoration: none; }
.start-panel li a::before { content: counter(start); grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass); font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.start-panel li a:hover .start-name { color: var(--link); }
.start-name { font-weight: 600; line-height: 1.3; }
.start-meta { font-size: 0.8rem; color: var(--muted); }
.start-foot { margin: 0.4rem 0 0; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.guide-group { margin-top: 2.75rem; }
.guide-group .count { font-size: 0.8em; }
.guides-foot { margin: 2.5rem 0 1rem; }

.topic-compact { align-items: center; row-gap: 0.1rem; }
.topic-compact .topic-meta { margin-top: 0; }
.band-tint { margin-top: 2.75rem; padding: 2.75rem 0; background: var(--hero); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tools-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (min-width: 900px) { .tools-band { grid-template-columns: minmax(0, 1fr) 24rem; } }
.example-result { position: static; margin: 0; }
.example-result .tr-issuer { font-size: 0.8rem; }
.feature-grid { list-style: none; margin: 0.25rem 0 1.25rem; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.95rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fg-icon, .tt-icon { width: 26px; height: 26px; color: var(--brass); margin-bottom: 0.35rem; }
.feature-grid strong, .trust-tiles strong { font-size: 1rem; }
.feature-grid span, .trust-tiles span { font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
.trust-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .trust-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-tiles li { display: flex; flex-direction: column; gap: 0.15rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust-foot { margin-top: 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note-panel { padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--radius); background: var(--surface); }
.note-panel p { margin: 0; color: var(--muted); max-width: 72ch; }

/* The app: copy beside a real screenshot. */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (min-width: 840px) { .app-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3rem; } }
.app-shot { margin: 0 auto; width: min(100%, 270px); }
.app-shot img { display: block; width: 100%; height: auto; border-radius: 34px; border: 7px solid #1b1e23; box-shadow: 0 0 0 1.5px #565c65, 0 24px 48px rgba(0, 0, 0, 0.4); }
.app-shot figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.85rem; color: var(--muted); }

.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem; min-height: 5.5rem; height: 100%; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.tile:hover { border-color: var(--brass); color: var(--text); }
.tile-name { font-weight: 650; line-height: 1.25; }
.tile-meta { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.tile-all { background: transparent; border-style: dashed; border-color: var(--line2); }
.tile-all .tile-name { color: var(--link); }

/* ---------- tools ---------- */
.tool-tiles { list-style: none; margin: 2rem 0 1.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .tool-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; height: 100%; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.tool-tile:hover { border-color: var(--brass); color: var(--text); text-decoration: none; }
.tool-tile .btn { margin-top: auto; }
.tool-icon { width: 36px; height: 36px; color: var(--brass); }
.tool-title { font-size: 1.25rem; font-weight: 650; }
.tool-text { color: var(--muted); }
.tt-visual { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 9.5rem; margin-bottom: 0.4rem; padding: 1rem; border-radius: var(--radius); background: var(--surface2); }
.tt-card { width: min(42%, 10rem); }
.tt-card svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35)); }
.tt-vs, .mu-vs { flex: none; display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line2); background: var(--surface); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tt-seg { display: grid; grid-template-columns: repeat(3, auto); border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: var(--bg); font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.tt-seg span { padding: 0.45rem 0.6rem; }
.tt-seg span + span { border-left: 1px solid var(--line2); }
.tt-seg .on { background: var(--btn-bg); color: var(--btn-fg); }
.tools-sec { margin-top: 2.75rem; }
.sec-title { font-size: 1.35rem; margin: 0 0 1rem; }
.quick-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quick-card { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.9rem; align-items: center; height: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.quick-card:hover { border-color: var(--brass); color: var(--text); }
.matchups { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .matchups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .matchups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.matchup { display: flex; flex-direction: column; gap: 0.45rem; height: 100%; padding: 0.9rem 1rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.matchup:hover { border-color: var(--brass); color: var(--text); }
.mu-arts { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; }
.mu-card svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.mu-name { font-weight: 650; line-height: 1.3; }
.mu-and { color: var(--muted); font-weight: 500; }
.mu-sub { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.matchup-own { align-items: center; justify-content: center; text-align: center; background: transparent; border-style: dashed; border-color: var(--line2); min-height: 9rem; }
.matchup-own .mu-name { color: var(--link); }
.mu-plus { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line2); font-size: 1.4rem; color: var(--brass); }
.step-tiles { list-style: none; margin: 0 0 0 auto; padding: 0; width: min(100%, 24rem); display: grid; gap: 0.6rem; counter-reset: step; }
@media (max-width: 919px) { .step-tiles { margin-left: 0; } }
@media (max-width: 639px) { .step-tiles { display: none; } }
.step-tiles li { counter-increment: step; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.8rem; align-items: center; padding: 0.8rem 1rem; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--surface); font-weight: 600; line-height: 1.3; }
.step-tiles li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass); font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.tool-fine { margin: 2rem 0 1rem; max-width: 80ch; }
.tool { margin-top: 1.75rem; }
.tool-picks { display: grid; gap: 0.75rem 1rem; grid-template-columns: minmax(0, 1fr); padding: 1rem 1.1rem; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 760px) { .tool-picks { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 0.3rem; }
.tool select, .tool input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; min-height: 44px; padding: 0.45rem 0.65rem; max-width: 100%; }
.tool select { width: 100%; }
.tool select:focus-visible, .tool input:focus-visible { outline-offset: 0; border-color: var(--brass); }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1.25rem; align-items: start; }
@media (min-width: 980px) { .tool-layout { grid-template-columns: minmax(0, 1fr) 22rem; } }
.tool-section { margin-top: 1.25rem; padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tool-section:first-child { margin-top: 0; }
.tool-inputs-wide { margin-top: 1.25rem; }
.tool-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.tool-section h2 { font-size: 1.15rem; }
.tool-head-actions { display: flex; gap: 0.5rem; }
.btn-small { min-height: 36px; padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.tool-help { color: var(--muted); font-size: 0.9rem; margin: 0.4rem 0 0.6rem; }
.tool-help.also { margin-top: 0.9rem; }
.use-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .use-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.use-tile { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.85rem 0.9rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface2); }
.use-tile.on { border-color: var(--brass); }
.ut-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.ut-val { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.use-tile.on .ut-val { color: var(--brassTx); }
.use-tile .seg, .use-tile .stepper { margin-top: auto; }
.tool-pv label { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.ur-name { font-weight: 600; line-height: 1.3; }
.ur-sub { font-size: 0.85rem; color: var(--muted); padding-bottom: 0.3rem; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: var(--bg); }
.tool .seg input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; border: 0; opacity: 0; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.3rem 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.2; cursor: pointer; }
.seg label:not(:first-of-type) { border-left: 1px solid var(--line2); }
.seg label:hover { color: var(--text); }
.seg input:checked + label { background: var(--btn-bg); color: var(--btn-fg); }
.seg input:checked + label.zero { background: var(--line2); color: var(--text); }
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: -3px; }
.stepper { display: flex; align-items: center; gap: 0.4rem; }
.step-btn { flex: none; width: 44px; height: 44px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 1.2rem; font-weight: 600; cursor: pointer; }
.step-btn:hover { border-color: var(--brass); }
.tool .stepper input { width: 4.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.step-unit { font-size: 0.85rem; color: var(--muted); }
.also-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.also-grid li { position: relative; padding-left: 1.3rem; font-size: 0.88rem; color: var(--muted); line-height: 1.35; }
.also-grid li::before { content: ""; position: absolute; left: 0.2rem; top: 0.3rem; width: 0.35rem; height: 0.65rem; border: solid var(--brass); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tool-fold summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; cursor: pointer; list-style: none; min-height: 44px; }
.tool-fold summary::-webkit-details-marker { display: none; }
.tool-fold summary::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 0.6rem; height: 0.6rem; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-right: 0.3rem; transition: transform 0.15s; }
.tool-fold[open] summary::after { transform: rotate(-135deg); }
.tool-fold summary h2 { margin: 0; }
.fold-sub { font-size: 0.9rem; color: var(--muted); }
.tool-fold[open] summary { margin-bottom: 0.6rem; }
.fold-actions { margin-bottom: 0.25rem; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 44px; }
.link-btn:hover { color: var(--link-hover); }
@media (prefers-reduced-motion: reduce) { .tool-fold summary::after { transition: none; } }
.spend-group { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 1rem 0 0.4rem; }
.spend-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem 1.25rem; }
@media (min-width: 640px) { .spend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spend-line { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem; grid-template-rows: auto auto; column-gap: 0.75rem; align-items: center; padding: 0.4rem 0; border-top: 1px solid var(--line); }
.spend-line label { display: flex; flex-direction: column; min-width: 0; }
.sl-name { font-weight: 600; font-size: 0.95rem; }
.sl-hint { font-size: 0.8rem; color: var(--muted); }
.sl-input { display: flex; align-items: center; gap: 0.35rem; }
.sl-cur { font-size: 0.75rem; color: var(--muted); }
.sl-input input { width: 100%; text-align: right; font-variant-numeric: tabular-nums; }
.rate-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.rate-chips:empty { display: none; }
.rate-chip { font-size: 0.75rem; font-weight: 600; color: var(--muted); padding: 0.1rem 0.45rem; border: 1px solid var(--line2); border-radius: 999px; font-variant-numeric: tabular-nums; }
.rate-chip.rate-bonus { color: var(--brassTx); border-color: var(--brass); }
.tool-pv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem 1rem; align-items: center; }
.pv-input { display: flex; align-items: center; gap: 0.35rem; color: var(--muted); }
.pv-input input { width: 5.5rem; text-align: right; }
.tool-result { position: sticky; top: 1rem; padding: 1.1rem 1.15rem; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--surface); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3); }
.tool-result:empty { display: none; }
.tr-card { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.85rem; align-items: center; margin-bottom: 0.9rem; }
.tr-art svg, .cmp-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35)); }
.tr-name { font-weight: 650; margin: 0; line-height: 1.3; }
.tr-issuer { color: var(--muted); font-size: 0.85rem; margin: 0.1rem 0 0; }
.tr-rows { margin: 0; }
.tr-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.tr-row dt { display: flex; flex-direction: column; text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--text); }
.tr-sub { font-size: 0.78rem; color: var(--muted); }
.tr-row dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tr-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1rem; margin-top: 0.4rem; padding: 0.9rem 1rem; border-radius: var(--radius); border: 1px solid var(--line2); }
.tr-total-label { font-weight: 600; }
.tr-total-value { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.tr-verdict { grid-column: 1 / -1; font-size: 0.9rem; }
.tr-total.good { border-color: var(--green); } .tr-total.good .tr-total-value, .tr-total.good .tr-verdict { color: var(--green); }
.tr-total.warn { border-color: var(--amber); } .tr-total.warn .tr-total-value, .tr-total.warn .tr-verdict { color: var(--amber); }
.tr-total.bad { border-color: var(--red); } .tr-total.bad .tr-total-value, .tr-total.bad .tr-verdict { color: var(--red); }
.tr-links { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.9rem 0 0; font-size: 0.9rem; }
.compare-wrap { margin-top: 1.25rem; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 34rem; }
.compare th, .compare td { padding: 0.6rem 0.8rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; }
.compare thead th { border-top: 0; vertical-align: bottom; width: calc((100% - 11rem) / 3); }
.compare .cmp-label { width: 11rem; color: var(--muted); font-weight: 500; font-size: 0.9rem; text-transform: none; letter-spacing: 0; position: sticky; left: 0; background: var(--surface); }
.cmp-art { width: min(100%, 12rem); margin-bottom: 0.5rem; }
.compare thead th { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--text); font-weight: 400; }
.tool-check { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.25rem 0 0.5rem; font-size: 0.9rem; cursor: pointer; }
.tool-check input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0.15rem 0 0; accent-color: var(--brass); }
.cmp-name { display: block; font-weight: 650; }
.cmp-issuer { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.cmp-section th { padding-top: 1rem; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface2); }
.cmp-bonus { color: var(--brassTx); font-weight: 650; }
.cmp-strong td { font-weight: 650; }
.cmp-best { color: var(--green); }
.cmp-sub { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.cmp-links td { font-size: 0.9rem; }
.tool-bar { display: none; }
@media (max-width: 979px) {
  .tool-bar { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding: 0.8rem 1rem; border: 1px solid var(--line2); border-radius: var(--radius) var(--radius) 0 0; background: var(--surface2); box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.3); font-size: 0.9rem; }
  .tool-bar strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
  .tool-bar.good strong { color: var(--green); } .tool-bar.warn strong { color: var(--amber); } .tool-bar.bad strong { color: var(--red); }
  .tool-layout { padding-bottom: 0.5rem; }
}
@media (max-width: 559px) { .compare .cmp-label { width: 7.5rem; font-size: 0.82rem; } .compare th, .compare td { padding: 0.55rem 0.6rem; } }
.run-numbers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem 1.5rem; align-items: center; margin: 2rem 0; padding: 1.2rem 1.3rem; border: 1px solid var(--line2); border-left: 3px solid var(--brass); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 820px) { .run-numbers { grid-template-columns: minmax(0, 1fr) auto; } }
.run-numbers h2 { font-size: 1.2rem; margin: 0 0 0.3rem; }
.run-numbers p { margin: 0; color: var(--muted); }
.run-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- guide pages: a hero, then the guide as numbered panels ---------- */
.guide-hero { padding-bottom: 2.5rem; }
.guide-hero h1 { max-width: 22ch; }
.eyebrow-icon { width: 18px; height: 18px; color: var(--brass); flex: none; }
.meta-line { color: var(--muted); font-size: 0.9rem; margin: 0; }
.toc-panel ol { counter-reset: start; }
.toc-panel li a { grid-template-columns: 1.75rem minmax(0, 1fr); padding: 0.5rem 0; align-items: center; }
.toc-panel li a::before { width: 1.75rem; height: 1.75rem; font-size: 0.8rem; grid-row: auto; }
.toc-panel .start-name { font-size: 0.93rem; }
.g-body { max-width: 52rem; margin: 2rem 0 0; counter-reset: gsec; }
.g-intro { margin-bottom: 1rem; }
/* Guide figures: a landscape illustration fills the column up to 640px; a portrait phone screen stays at 300px. */
.shot { max-width: 640px; margin: 1.5rem auto; text-align: center; }
.shot:has(img.tall) { max-width: 300px; }
.shot picture { display: block; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--surface2); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18); }
.shot img.tall { max-width: 300px; margin-inline: auto; }
.shot figcaption { margin-top: 0.65rem; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.g-sec { counter-increment: gsec; margin-top: 1.1rem; padding: 1.4rem 1.5rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 1rem; }
.prose .g-sec h2, .prose .g-sec > h2:first-child { display: flex; align-items: baseline; gap: 0.75rem; margin: 0 0 0.85rem; padding: 0; border: 0; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); }
.g-sec h2::before { content: counter(gsec); flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: color-mix(in srgb, var(--brass) 16%, transparent); border: 1px solid var(--brass); color: var(--brass); font-size: 0.9rem; font-weight: 700; font-variant-numeric: tabular-nums; transform: translateY(-0.1rem); }
.g-sec h3 { font-size: 1.05rem; margin: 1.4em 0 0.4em; }
.g-sec p, .g-sec ul, .g-sec ol, .g-sec dl { max-width: 66ch; }
.prose .g-sec ul { list-style: none; padding-left: 0; }
.prose .g-sec ul > li { position: relative; padding-left: 1.4rem; }
.prose .g-sec ul > li::before { content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--brass); }
.prose .g-sec ol > li::marker { color: var(--brass); font-weight: 700; }
.g-sec .table-wrap { margin: 0.5rem 0 1.25rem; }
.g-sec blockquote.tip, .g-sec blockquote.note, .g-sec blockquote.warn { background: var(--surface2); }
.g-disclaimer { margin: 1.5rem 0 0; max-width: 72ch; }
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; margin-top: 2rem; }
.g-layout .g-body { margin-top: 0; }
@media (min-width: 1080px) { .g-layout { grid-template-columns: minmax(0, 52rem) minmax(0, 1fr); } .g-side { position: sticky; top: 1rem; } }
.g-side { display: flex; flex-direction: column; gap: 1rem; }
.g-side-box { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.g-side-title { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 0.6rem; }
.g-side-toc { margin: 0; padding-left: 1.2rem; font-size: 0.9rem; }
.g-side-toc li { padding: 0.25rem 0; }
.g-side-toc li::marker { color: var(--brass); font-weight: 700; }
.g-side-toc a { color: var(--text); text-decoration: none; }
.g-side-toc a:hover { color: var(--link); }
@media (max-width: 1079px) { .g-side .g-side-box:first-child:has(.g-side-toc) { display: none; } }
.mini-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.mini-card { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.75rem; align-items: center; padding: 0.4rem; margin: 0 -0.4rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.mini-card:hover { background: var(--surface2); color: var(--text); }
.mc-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); }
.mc-text { display: flex; flex-direction: column; min-width: 0; }
.mc-name { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.mc-sub { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 559px) { .g-sec { padding: 1.1rem 1rem 0.4rem; } }

/* ---------- card pages ---------- */
.card-hero { padding: 1.25rem 0 2.5rem; }
.card-hero .crumbs { margin-bottom: 1.5rem; }
.card-hero h1 { max-width: 20ch; }
.card-hero .official { color: var(--muted); font-size: 0.92rem; margin: 0.6rem 0 0; }
@media (min-width: 920px) { .card-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.card-hero-art { max-width: 26rem; width: 100%; margin: 0 auto; }
.card-hero-art svg { display: block; width: 100%; height: auto; transform: rotate(-4deg); filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.5)); }
.card-hero-art .fine { text-align: center; margin-top: 1.4rem; font-size: 0.78rem; }
.stat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 1.4rem 0 0.8rem; }
@media (min-width: 640px) { .stat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-tiles > div { padding: 0.75rem 0.85rem; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.stat-tiles dt { font-size: 0.68rem; color: var(--muted); }
.stat-tiles dd { margin: 0.25rem 0 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.stat-tiles dd small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card-hero .hero-actions { margin-top: 1rem; }
.section-nav.card-nav { max-width: none; margin: 1.5rem 0 0; }
@media (min-width: 760px) { .section-nav.card-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-sec { margin-top: 2.75rem; scroll-margin-top: 1rem; }
.card-sec > h2, .sec-head h2 { margin-bottom: 1rem; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.sec-total { color: var(--brassTx); font-weight: 600; font-variant-numeric: tabular-nums; }
.empty-note { color: var(--muted); padding: 1rem 1.15rem; border: 1px dashed var(--line2); border-radius: var(--radius); }
.vs-panel { padding: 1.25rem 1.35rem; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--surface); }
.vs-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.vs-figs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vs-num small { font-size: 0.85rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.vs-gap { color: var(--amber); }
@media (max-width: 520px) { .vs-figs-3 .vs-num { font-size: 1.3rem; } .vs-num small { display: block; font-size: 0.75rem; } }
.vs-figs > div { display: flex; flex-direction: column; justify-content: space-between; gap: 0.15rem; }
.vs-label { font-size: 0.8rem; color: var(--muted); }
.vs-num { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vs-credits { color: var(--green); }
.vs-bar { display: block; width: 100%; height: 10px; margin: 1rem 0 0.4rem; }
.vs-track { fill: var(--line2); }
.vs-fill { fill: var(--brass); }
.vs-fill.vs-short { fill: var(--amber); }
.vs-caption { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.75rem; }
.vs-text { margin: 0.75rem 0 0.4rem; max-width: 70ch; }
.info-grid { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.info-tile { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.05rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.it-name { font-weight: 650; line-height: 1.3; }
.it-big { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; color: var(--text); }
.it-big small { font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.it-sub { font-size: 0.88rem; color: var(--muted); }
.it-reset { display: flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--brassTx); }
.info-tile .tag { align-self: flex-start; }
.ui-icon { width: 18px; height: 18px; flex: none; }
.it-icon { width: 24px; height: 24px; color: var(--brass); }
.sub-head { font-size: 1rem; margin: 1.5rem 0 0.75rem; color: var(--muted); }
.check-grid { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.5rem 0.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.check-grid li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); line-height: 1.35; }
.check-grid .ui-icon { color: var(--brass); margin-top: 0.05rem; }
.check-grid small { color: var(--muted); }
.rate-grid { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .rate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .rate-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rate-tile { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.rt-big { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brass); font-variant-numeric: tabular-nums; line-height: 1.1; }
.rate-base .rt-big { color: var(--text); }
.rt-cats { font-weight: 650; line-height: 1.3; }
.rt-note { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.tip-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tip { display: flex; flex-direction: column; gap: 0.4rem; height: 100%; padding: 1rem 1.05rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); line-height: 1.45; }
.tip-icon-wrap { display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; margin-bottom: 0.2rem; border-radius: 50%; background: color-mix(in srgb, var(--brass) 14%, transparent); }
.tip-icon { width: 20px; height: 20px; color: var(--brass); }
.tip-title { font-size: 1rem; font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; }
.tip-text { font-size: 0.9rem; color: var(--muted); }
.tip-link { margin-top: auto; padding-top: 0.4rem; font-size: 0.88rem; font-weight: 600; }
.tip-link a::after { content: " →"; }
.sec-note { display: flex; align-items: flex-start; gap: 0.45rem; margin: 0.8rem 0 0; font-size: 0.85rem; color: var(--muted); max-width: 80ch; }
.sec-note .ui-icon { flex: none; width: 16px; height: 16px; margin-top: 0.12rem; color: var(--muted); }
.card-body .track { margin-top: 2.75rem; }

/* ---------- search ---------- */
.search-form { max-width: 36rem; }
.search-form label, .filter-slot label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.search-form input, .filter-slot input { width: 100%; min-height: 48px; padding: 0.6rem 0.9rem; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius); }
.search-form input::placeholder, .filter-slot input::placeholder { color: var(--muted); }
.search-form input:focus-visible, .filter-slot input:focus-visible { outline-offset: 0; border-color: var(--brass); }
.search-status { color: var(--muted); font-size: 0.875rem; min-height: 1.4em; margin: 0.5rem 0; }
.results { list-style: none; margin: 0 0 0.5rem; padding: 0; max-width: 36rem; border-top: 1px solid var(--line2); }
.results li { border-bottom: 1px solid var(--line); }
.results a { display: block; padding: 0.7rem 0.15rem; text-decoration: none; color: var(--text); }
.results a:hover, .results a:focus-visible { color: var(--link); }
.r-name { display: block; font-weight: 600; }
.r-sub { display: block; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.filter-slot:empty { display: none; }
.filter-slot { margin: 1.25rem 0 1rem; position: sticky; top: 0; z-index: 1; background: var(--bg); padding: 0.5rem 0 0.75rem; border-bottom: 1px solid var(--line); }
.filter-slot input { max-width: 36rem; }
.filter-slot .search-status { margin-bottom: 0; }

/* ---------- lists ---------- */
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { padding: 0.95rem 0; border-top: 1px solid var(--line); }
.guide-list li:last-child { border-bottom: 1px solid var(--line); }
.guide-list p { margin: 0.25rem 0 0; color: var(--muted); max-width: 60ch; }
.guide-link { font-weight: 650; font-size: 1.08rem; }
@media (min-width: 760px) {
  .guide-list-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5rem; }
  .guide-list-2 li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
}
.group { margin-top: 2.25rem; scroll-margin-top: 6.5rem; }
.group h2 .count { color: var(--muted); margin-left: 0.5rem; }
.group-blurb { color: var(--muted); margin: 0.3rem 0 0.8rem; }

.row-list { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.row-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.9rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.row-list li:last-child { border-bottom: 1px solid var(--line); }
.row-sub { color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.country-list li { justify-content: space-between; align-items: flex-start; padding: 1rem 0; }
.country-list p { margin: 0.25rem 0 0; color: var(--muted); max-width: 56ch; }
.row-figures { margin: 0; text-align: right; white-space: nowrap; }
.plain { list-style: none; margin: 0.5rem 0 1rem; padding: 0; }
.plain li { padding: 0.4rem 0; border-top: 1px solid var(--line); }
.plain li:last-child { border-bottom: 1px solid var(--line); }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 1rem; margin: 1.25rem 0 0.5rem; font-size: 0.92rem; }
.jump-label { color: var(--muted); margin-right: 0.25rem; }
.jump a { display: inline-block; padding: 0.35rem 0; }
.jump-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0 1.25rem; }
.jump-grid .jump-label { grid-column: 1 / -1; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.1rem 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, var(--bg) 30%, transparent) left / 2rem 100% no-repeat local,
    linear-gradient(to left, var(--bg) 30%, transparent) right / 2rem 100% no-repeat local,
    linear-gradient(to right, color-mix(in srgb, var(--text) 14%, transparent), transparent) left / 0.6rem 100% no-repeat scroll,
    linear-gradient(to left, color-mix(in srgb, var(--text) 14%, transparent), transparent) right / 0.6rem 100% no-repeat scroll; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
table.t-wide { min-width: 38rem; }
th { text-align: left; color: var(--muted); padding: 0.65rem 0.8rem 0.55rem 0; border-bottom: 1px solid var(--line2); white-space: nowrap; vertical-align: bottom; }
td { padding: 0.65rem 0.8rem 0.65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th.num, td.num { text-align: right; white-space: nowrap; padding-right: 0.9rem; }
th.num:last-child, td.num:last-child { padding-right: 0.25rem; }
th.num + th, td.num + td { padding-left: 0.4rem; }
.t-wide th.num + th, .t-wide td.num + td { padding-left: 1.1rem; }
tfoot td { font-weight: 650; border-top: 1px solid var(--line2); border-bottom: 0; }
.table-wrap:focus-visible { outline-offset: 0; }

/* ---------- articles ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-bottom: 1rem; }
.article-layout .toc { order: -1; }
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, var(--measure)) 15rem; justify-content: space-between; gap: 3rem; }
  .article-layout .toc { order: 0; position: sticky; top: 1.5rem; align-self: start; }
}
.toc { border-top: 1px solid var(--line2); padding-top: 0.75rem; font-size: 0.92rem; }
.toc-title { color: var(--muted); margin-bottom: 0.4rem; font-size: 0.72rem; }
.toc ol { margin: 0; padding-left: 1.15rem; }
.toc li { padding: 0.25rem 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.4em 0 0.6em; padding-top: 1.1rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.prose > h2:first-child { border-top: 0; padding-top: 0; }
.prose h3 { margin: 1.8em 0 0.5em; scroll-margin-top: 1rem; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.35rem; }
.prose li { margin: 0.3em 0; padding-left: 0.2rem; }
.prose li::marker { color: var(--muted); }
.prose dl { margin: 0 0 1.2em; }
.prose dt { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 650; color: var(--text); margin-top: 0.8rem; }
.prose dd { margin: 0.15rem 0 0; color: var(--text); }
.prose .lede { margin-bottom: 1.3em; }
.prose a { overflow-wrap: anywhere; }

blockquote.tip, blockquote.note, blockquote.warn { margin: 1.5rem 0; padding: 0.85rem 1.1rem 0.4rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line2); border-radius: 4px 10px 10px 4px; }
blockquote.tip { border-left-color: var(--brass); }
blockquote.warn { border-left-color: var(--amber); }
blockquote.tip::before, blockquote.note::before, blockquote.warn::before { display: block; margin-bottom: 0.25rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 600; }
blockquote.tip::before { content: "Tip"; }
blockquote.note::before { content: "Note"; }
blockquote.warn::before { content: "Watch out"; }
blockquote p:last-child { margin-bottom: 0.6em; }

aside.example { margin: 1.75rem 0; padding: 1rem 1.15rem 0.45rem; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; }
aside.example::before { content: "Worked example"; display: block; margin-bottom: 0.5rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 600; }
aside.example .table-wrap { border-top-color: var(--line2); }
aside.example ul, aside.example ol { margin-bottom: 0.8em; }
.disclaimer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.related { margin-top: 2.5rem; }
.related h2 { margin-bottom: 0.75rem; }

/* ---------- card pages ---------- */
.card-head .page-title { max-width: 30ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 1.5rem 0 0.25rem; padding: 1rem 0 0; border-top: 1px solid var(--line2); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts dt { color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; font-weight: 600; }
.facts dd.amt { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.card-body > section { margin-top: 2.5rem; scroll-margin-top: 1rem; }
.card-body > section > h2 { margin-bottom: 0.75rem; scroll-margin-top: 1rem; }
.card-body h3 { margin: 1.5rem 0 0.4rem; }
.card-body > section > p { max-width: var(--measure); }
.meter { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.9rem; margin: 0.25rem 0 0.5rem; }
.meter .fine { margin: 0; }
progress { appearance: none; -webkit-appearance: none; width: min(16rem, 100%); height: 0.5rem; border: 0; border-radius: 99px; overflow: hidden; background: var(--line); color: var(--brass); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--brass); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--brass); border-radius: 99px; }
.pairs { display: grid; gap: 0.75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 0 0 1rem; }
.pairs dt { color: var(--muted); }
.pairs dd { margin: 0.2rem 0 0; }
.pairs dd.fine { margin: 0; }
.pairs .amt { font-size: 1.2rem; font-weight: 700; }
.goals, .tips { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.goals li, .tips li { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.goals li:last-child, .tips li:last-child { border-bottom: 1px solid var(--line); }
.track { margin-top: 3rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .jump, .filter-slot, .skip { display: none; }
  body { background: #fff; color: #000; }
}

/* Year-end guide: each country's credits that end on 31 December (pages/yearEnd.mjs) */
.ye-block { margin: 2rem 0 2.25rem; }
.ye-block > h2 { margin: 0 0 0.35rem; }
.ye-intro { margin: 0 0 1rem; max-width: var(--measure); color: var(--muted); }
.ye-jump { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: 0.5rem; }
.ye-jump a { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.ye-jump a:hover { border-color: var(--line2); color: var(--text); }
.ye-jump-n { margin-left: auto; font-size: 0.85rem; color: var(--brassTx); font-variant-numeric: tabular-nums; }
.ye-country { padding: 0.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.ye-country summary h3 { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 1.15rem; }
.ye-count { grid-column: 1; font-size: 0.85rem; color: var(--muted); }
.ye-country[open] { padding-bottom: 1.1rem; }
.ye-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 0.75rem; align-items: start; }
.ye-card { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.85rem 0.95rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ye-head { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; color: var(--text); text-decoration: none; }
.ye-head:hover { color: var(--text); }
.ye-head:hover .ye-name { color: var(--brassTx); }
.ye-art svg { display: block; width: 100%; height: auto; }
.ye-title { display: flex; flex-direction: column; min-width: 0; }
.ye-name { font-weight: 650; line-height: 1.25; }
.ye-issuer { font-size: 0.8rem; color: var(--muted); }
.ye-total { text-align: right; font-family: var(--mono); font-weight: 650; color: var(--brassTx); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ye-total-label { display: block; font-family: var(--font); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ye-credits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ye-credits li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; line-height: 1.3; }
.ye-credits li:last-child { padding-bottom: 0; border-bottom: 0; }
.ye-cname { grid-column: 1; }
.ye-cname small { font-size: 0.78rem; color: var(--muted); }
.ye-when { grid-column: 1; grid-row: 2; font-size: 0.78rem; color: var(--muted); }
.ye-amt { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ye-monthly .ye-cname, .ye-monthly .ye-amt { color: var(--muted); }
