/* Crypto Cards Guide. Layout concept: a left-aligned spec-sheet. Card pages read like the fine print on the
   back of a card, set clearly. One loud element per page: the card art. Everything else stays quiet. */
:root {
  --paper: #F3F4FA;      /* cool page ground, slight indigo bias */
  --surface: #FFFFFF;    /* tables, quick-answer panels */
  --mist: #E6E5F8;       /* tinted fills, bars, chips */
  --ink: #16133F;        /* text, indigo ink */
  --muted: #55527A;      /* secondary text */
  --line: #D6D4EC;       /* rules and borders */
  --cobalt: #3D2BFF;     /* brand accent, links, focus */
  --cobalt-ink: #FFFFFF; /* text on cobalt */
  --cobalt-soft: #ADA4FF; /* secondary bar fill */
  --pink: #FF4F9A;       /* chip accent, used sparingly */
  --good: #0B7A5C;
  --good-bg: #DDF5EC;
  --warn: #B4232F;
  --warn-bg: #FCE3E5;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.375rem, 6vw, 4.25rem);
  --radius: 14px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --measure: 68ch;
  --wide: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #100E2B; --surface: #17153A; --mist: #24214F; --ink: #ECEBFF; --muted: #A9A6D2;
    --line: #2F2C60; --cobalt: #8F86FF; --cobalt-ink: #100E2B; --cobalt-soft: #4A4399; --pink: #FF74B0;
    --good: #4FD8A9; --good-bg: #123A33; --warn: #FF8790; --warn-bg: #43192A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #100E2B; --surface: #17153A; --mist: #24214F; --ink: #ECEBFF; --muted: #A9A6D2;
  --line: #2F2C60; --cobalt: #8F86FF; --cobalt-ink: #100E2B; --cobalt-soft: #4A4399; --pink: #FF74B0;
  --good: #4FD8A9; --good-bg: #123A33; --warn: #FF8790; --warn-bg: #43192A; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img, svg { max-width: 100%; }
.card-art { display: block; height: auto; border-radius: 18px / 18px; overflow: hidden; }
.card-media { display: block; position: relative; }
.card-media img { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 1.586; object-fit: contain; opacity: 0; }
.card-media.ok img { opacity: 1; }
.card-media.ok > svg { visibility: hidden; }
.card-media .credit { display: none; font-size: 0.6875rem; color: var(--muted); margin-top: 4px; }
.card-media.ok .credit { display: block; }
.rank-row .card-media .credit, .compare-table .card-media .credit, .vs-head .card-media .credit { display: none; }
a { color: var(--cobalt); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 750; font-stretch: 118%; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 110%; }
p { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* page frame */
.wrap { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.narrow { max-width: calc(var(--measure) + 32px); }
main { display: block; padding-block: 8px 72px; }
.stack { display: flex; flex-direction: column; gap: 56px; }
.section { display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 12px; }
.logo { display: inline-flex; color: var(--ink); }
.logo svg { height: 30px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; gap: 4px 20px; font-size: var(--step--1); font-weight: 600; }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: 4px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cobalt); text-decoration: underline; }

/* breadcrumbs */
.crumbs { font-size: var(--step--1); color: var(--muted); padding-block: 20px 4px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* hero (home) */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 48px 24px; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.4rem); line-height: 0.98; }
.hero .lede { font-size: var(--step-1); max-width: 34ch; margin-top: 20px; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust { margin-top: 22px; font-size: var(--step--1); color: var(--muted); max-width: 46ch; }
.fan { position: relative; height: clamp(250px, 34vw, 380px); max-width: 100%; }
.fan > * { position: absolute; left: 50%; bottom: 6%; width: min(60%, 290px); transform-origin: 50% 170%; translate: -50% 0; filter: drop-shadow(0 10px 18px rgba(22, 19, 63, 0.18)); }
.fan > .card-media > .card-art { position: static; width: 100%; }
.fan .credit { display: none !important; }
.fan > :nth-child(1) { rotate: -20deg; z-index: 1; }
.fan > :nth-child(2) { rotate: -10deg; z-index: 2; }
.fan > :nth-child(3) { rotate: 0deg; z-index: 5; }
.fan > :nth-child(4) { rotate: 10deg; z-index: 4; }
.fan > :nth-child(5) { rotate: 20deg; z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .fan > * { animation: deal 900ms cubic-bezier(.2,.7,.2,1) both; }
  .fan > :nth-child(1), .fan > :nth-child(5) { animation-delay: 120ms; }
  .fan > :nth-child(2), .fan > :nth-child(4) { animation-delay: 60ms; }
  @keyframes deal { from { rotate: 0deg; } }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: var(--step--1); text-decoration: none; border: 2px solid var(--cobalt); }
.btn-solid { background: var(--cobalt); color: var(--cobalt-ink); }
.btn-ghost { color: var(--cobalt); background: transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }

/* quick answer (answer-first block for readers and answer engines) */
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--cobalt); border-radius: 6px var(--radius) var(--radius) 6px; padding: 18px 22px; max-width: calc(var(--measure) + 48px); }
.answer h2 { font-size: var(--step--1); font-stretch: 100%; font-weight: 800; color: var(--cobalt); letter-spacing: 0.02em; margin-bottom: 6px; }
.answer p { font-size: var(--step-1); line-height: 1.5; }

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { font-weight: 700; color: var(--muted); background: var(--surface); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; }
.spec th { width: 34%; color: var(--muted); font-weight: 600; }
.table-scroll:has(> table.spec) { max-width: 920px; }
.prose table { background: var(--surface); }
.prose .table-scroll table { margin: 0; }

/* card listing rows */
.rank { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rank-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.rank-row .card-art, .rank-row .card-media { width: 112px; }
.rank-row h3 a { color: var(--ink); text-decoration: none; }
.rank-row h3 a:hover { color: var(--cobalt); text-decoration: underline; }
.rank-row p { color: var(--muted); font-size: var(--step--1); margin-top: 4px; max-width: 70ch; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: 0.8125rem; font-weight: 600; line-height: 1.35; }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.score { display: inline-flex; flex-direction: column; align-items: flex-end; font-family: var(--display); line-height: 1; }
.score b { font-size: var(--step-3); font-weight: 800; font-stretch: 125%; }
.score span { font-size: 0.75rem; color: var(--muted); margin-top: 4px; font-family: var(--body); }

/* card review page */
.review-head { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 16px 8px; }
.review-head .card-art, .review-head .card-media { width: 100%; filter: drop-shadow(0 12px 22px rgba(22, 19, 63, 0.2)); }
.review-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.review-head .tagline { font-size: var(--step-1); color: var(--muted); margin-top: 12px; max-width: 44ch; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: var(--step--1); color: var(--muted); }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.panel h3 { font-size: var(--step-1); }
.panel ul { margin: 0; padding-left: 1.15em; }
.panel li + li { margin-top: 6px; }
.pros li::marker { content: "+  "; color: var(--good); font-weight: 800; }
.cons li::marker { content: "-  "; color: var(--warn); font-weight: 800; }
.verdict { font-family: var(--display); font-size: var(--step-2); font-weight: 650; font-stretch: 108%; line-height: 1.3; max-width: 40ch; }
.bars { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 40px; gap: 12px; align-items: center; }
.bar .track { height: 10px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.bar .fill { height: 100%; background: var(--cobalt); border-radius: 999px; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
.bar small { grid-column: 2 / 4; color: var(--muted); font-size: 0.8125rem; margin-top: -6px; }
.sources ol { padding-left: 1.25em; margin: 0; }
.sources li + li { margin-top: 8px; }
.sources small { display: block; color: var(--muted); }
.note { font-size: var(--step--1); color: var(--muted); max-width: var(--measure); }

.promo { margin-top: 14px; font-size: var(--step--1); }
.promo .code { font-family: var(--body); letter-spacing: 0.04em; background: var(--mist); padding: 2px 8px; border-radius: 6px; user-select: all; }
.head-actions + .note, .promo + .note { margin-top: 8px; }
.alert { background: var(--warn-bg); color: var(--ink); border-left: 6px solid var(--warn); border-radius: 6px var(--radius) var(--radius) 6px; padding: 14px 18px; max-width: calc(var(--measure) + 48px); }
.alert b { color: var(--warn); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: calc(var(--measure) + 48px); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 4px; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: 12px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cobalt); font-weight: 800; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 14px; color: var(--muted); }

/* picks list on home */
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; border-top: 1px solid var(--line); }
.pick { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pick .label { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.pick a.name { font-family: var(--display); font-size: var(--step-1); font-weight: 750; font-stretch: 112%; color: var(--ink); text-decoration: none; }
.pick a.name:hover { color: var(--cobalt); text-decoration: underline; }
.pick p { font-size: var(--step--1); color: var(--muted); }

/* compare tool */
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.filters select { font: inherit; font-size: var(--step--1); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 42px; }
.filters .check { flex-direction: row; align-items: center; gap: 8px; min-height: 42px; color: var(--ink); }
.filters input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--cobalt); }
.result-count { font-size: var(--step--1); color: var(--muted); }
.compare-table td:first-child, .compare-table th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.compare-table .cardcell { display: flex; align-items: center; gap: 10px; min-width: 150px; font-weight: 700; }
.compare-table .cardcell .card-art, .compare-table .cardcell .card-media { width: 44px; flex: none; }
.compare-table .cardcell a { color: var(--ink); text-decoration: none; }
.compare-table .cardcell a:hover { color: var(--cobalt); text-decoration: underline; }
.compare-table td { min-width: 120px; }
.empty { padding: 24px; color: var(--muted); }

/* index lists (guides, best) */
.link-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.link-list a { display: flex; flex-direction: column; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.link-list a strong { font-family: var(--display); font-size: var(--step-1); font-stretch: 110%; }
.link-list a span { color: var(--muted); font-size: var(--step--1); }
.link-list a:hover strong { color: var(--cobalt); text-decoration: underline; }

/* versus */
.vs-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vs-head .card-art, .vs-head .card-media { width: 120px; }
.vs-head .x { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: var(--step-2); color: var(--muted); }

.vs-table td, .vs-table thead th:not(:first-child) { min-width: 180px; }
.vs-table tbody th { min-width: 110px; }

/* charts */
.chart { display: block; width: 100%; height: auto; font-family: var(--body); font-size: 13px; }
.chart .bar { fill: var(--cobalt); }
.chart .bar.alt { fill: var(--cobalt-soft); }
.chart .lbl { fill: var(--ink); font-weight: 600; }
.chart .val, .chart .tick { fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .val { font-weight: 700; fill: var(--ink); }
.chart .axis, .chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .hit { fill: transparent; }
.chart .mark { outline: none; cursor: default; }
.chart .mark:hover .bar, .chart .mark:focus-visible .bar { opacity: 0.82; }
.chart .mark:focus-visible .hit { fill: var(--mist); }
.chart-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 10px; overflow-x: auto; }
.chart-wrap svg { min-width: 560px; }
.chart-tip { position: absolute; z-index: 20; background: var(--ink); color: var(--paper); font-size: 0.8125rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; }
.key { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--step--1); color: var(--muted); }
.key span { display: inline-flex; align-items: center; gap: 8px; }
.key i { width: 14px; height: 10px; border-radius: 3px; background: var(--cobalt); display: inline-block; }
.key i.alt { background: var(--cobalt-soft); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .value { font-family: var(--body); font-size: clamp(3rem, 9vw, 4.5rem); font-weight: 750; line-height: 1; letter-spacing: -0.02em; }
.stat .label { font-weight: 700; }
.stat .sub { color: var(--muted); max-width: 60ch; }
.stat-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.stat-rows div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.stat-rows b { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .stat-rows { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.site-foot .wrap { padding-block: 40px 48px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.site-foot h2 { font-size: var(--step--1); font-stretch: 100%; color: var(--muted); margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--step--1); }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--cobalt); text-decoration: underline; }
.site-foot .fine { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.site-foot .about p { font-size: var(--step--1); color: var(--muted); margin-top: 12px; max-width: 38ch; }

@media (max-width: 860px) {
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 28px 8px; }
  .fan { height: 210px; margin-bottom: 24px; }
  .fan .card-art { width: min(52%, 230px); bottom: 14%; transform-origin: 50% 200%; }
  .review-head { grid-template-columns: minmax(0, 1fr); }
  .review-head .card-art, .review-head .card-media { max-width: 300px; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .site-foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-head { position: static; }
  .site-nav { gap: 4px 16px; }
  .answer p { font-size: var(--step-0); }
  .hero .lede { font-size: var(--step-0); }
  .picks { grid-template-columns: minmax(0, 1fr); }
  .rank-row { grid-template-columns: 72px minmax(0, 1fr); }
  .rank-row .card-art, .rank-row .card-media { width: 72px; }
  .rank-row .score { grid-column: 2; grid-row: 2; flex-direction: row; align-items: baseline; gap: 6px; }
  .rank-row .score b { font-size: var(--step-2); }
  .bar { grid-template-columns: 92px minmax(0, 1fr) 34px; }
  .stack { gap: 44px; }
}

.bar .wt { display: block; color: var(--muted); font-weight: 500; font-size: 0.75rem; }

.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; font-size: 0.8125rem; color: var(--muted); max-width: 90ch; }
.site-foot .legal p { margin: 0 0 10px; }
.site-foot .legal strong { color: var(--ink); }

/* cost calculator */
.calc-form input[type="number"] { font: inherit; font-size: var(--step--1); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 42px; width: 9.5rem; max-width: 100%; }
.calc-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.calc-row { display: grid; grid-template-columns: 2.25rem minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr); grid-template-areas: "rank who net after" "rank parts parts parts"; gap: 6px 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.calc-row.is-blocked { opacity: 0.6; }
.calc-row .rank { grid-area: rank; align-self: start; font-weight: 800; font-size: 1.125rem; color: var(--cobalt); }
.calc-row .who { grid-area: who; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.calc-row .who small, .calc-row .net small, .calc-row .after small { color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.calc-row .net { grid-area: net; display: flex; flex-direction: column; }
.calc-row .net b { font-size: 1.25rem; }
.calc-row .net b.gain { color: #1a7f4b; }
.calc-row .after { grid-area: after; display: flex; flex-direction: column; }
.calc-row .parts { grid-area: parts; font-size: 0.8125rem; color: var(--muted); }
.calc-row .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.calc-row .badge { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--cobalt-soft, #e8e6ff); color: var(--ink); }
.calc-row .badge.warn { background: #ffe2ee; color: #8a0040; }
.calc-row .cnote { display: block; margin-top: 4px; font-size: 0.75rem; }
.cost-table td.wide { min-width: 280px; font-size: 0.8125rem; }
@media (max-width: 640px) {
  .calc-row { grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "rank who who" "rank net after" "rank parts parts"; }
  .calc-form label { flex: 1 1 140px; }
  .calc-form input[type="number"] { width: 100%; }
}

/* card page: what $100 costs */
.cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 12px 0; }
.cost-grid .stat { background: var(--surface, #fff); border: 1px solid var(--line, #e3e4ee); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.cost-grid .value { font-size: 1.4rem; font-weight: 700; }
.cost-grid .label { font-size: .85rem; font-weight: 500; color: var(--muted, #5b5d73); }
.rank-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; }
.rank-chips .chip { text-decoration: none; }
.filters .checks { display: flex; flex-wrap: wrap; gap: 6px 16px; flex-basis: 100%; }

/* news and glossary */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item { padding-block: 18px; border-bottom: 1px solid var(--line); }
.news-item h2, .news-item h3 { font-size: var(--step-1, 1.25rem); margin: 4px 0 8px; }
.news-date { font-size: .85rem; color: var(--muted); font-weight: 600; margin: 0; }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .875rem; }
.glossary { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.glossary div { scroll-margin-top: 80px; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 4px 0 0; color: var(--ink); }
.side-by-side td, .side-by-side th { min-width: 160px; vertical-align: top; }
