/* EV tariff hub: page styles on top of the Best Chargers design system
   (assets/ds/styles.css, vendored from brand/claude-design/best-chargers-design-system).
   Tokens only: no hex values, no new hues, no inline styles in the markup.
   Day for reading, night for charging: the hero and results are night; the
   cards and the explainer are day. */

/* ── Browser surfaces ─────────────────────────────────────────────────────── */
:root { accent-color: var(--color-accent-ink); caret-color: var(--color-accent-ink); scrollbar-color: var(--color-neutral-400) var(--color-bg); }
[hidden] { display: none !important; }
.night ::selection { background: color-mix(in oklch, var(--color-glow) 32%, transparent); color: var(--color-surface); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.875em; padding: 1px 5px; border-radius: 5px; background: var(--color-surface-2); }
.night code, .assist code { background: var(--color-night-raise); color: var(--color-on-night); }

/* ── Mockup bar (not part of the page; ?shot hides it) ────────────────────── */
.mock-bar { background: var(--color-surface-2); border-bottom: 1px dashed var(--color-divider-strong); font-size: var(--text-sm); color: var(--color-text-2); }
.mock-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); padding-block: var(--space-2); }
.mb-title { margin-right: auto; }
.mb-title strong { display: inline-block; margin-right: var(--space-2); padding: 1px 8px; border-radius: 6px; background: var(--color-night); color: var(--color-surface); font-size: var(--text-xs); letter-spacing: 0.02em; }
.mb-scores { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.mb-name { font-weight: 700; color: var(--color-text); }
.mb-score { display: inline-flex; align-items: center; gap: var(--space-2); }
.mb-score strong { font-family: var(--font-figure); font-variant-numeric: tabular-nums; }
.mb-score small { color: var(--color-muted); font-weight: 500; }
.mb-label { color: var(--color-muted); }
.mb-track { width: 64px; height: 6px; border-radius: 3px; background: var(--color-divider); overflow: hidden; }
.mb-fill { display: block; height: 100%; width: var(--v, 0%); border-radius: 3px; background: var(--color-neutral-500); }
.mb-score + .mb-score .mb-fill { background: var(--color-accent); }
.mb-delta { font-weight: 700; color: var(--color-accent-ink); }
.mb-legend { color: var(--color-muted); }
.mock-bar.is-collapsed .mb-scores { display: none; }
html.is-shot .mock-bar { display: none; }

/* ── Hero: night, centred ─────────────────────────────────────────────────── */
.hub-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 3.5vw + 32px, 88px) var(--space-12);
  overflow: hidden;
  background-image:
    linear-gradient(color-mix(in oklch, var(--color-glow) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--color-glow) 6%, transparent) 1px, transparent 1px),
    radial-gradient(60% 46% at 50% 0%, color-mix(in oklch, var(--color-accent) 46%, transparent), transparent 72%),
    radial-gradient(38% 30% at 82% 62%, color-mix(in oklch, var(--color-accent-2) 12%, transparent), transparent 70%),
    var(--night-gradient);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}
.hub-hero-inner { display: grid; justify-items: center; gap: var(--space-4); max-width: 1020px; text-align: center; }
@media (min-width: 981px) { .hub-hero-inner { gap: var(--space-5); } }
.hub-hero .crumbs ol { justify-content: center; }
.hub-hero .crumbs a { color: var(--color-on-night-muted); text-decoration: none; }
.hub-hero .crumbs a:hover { color: var(--color-surface); text-decoration: underline; }
.hub-hero .crumbs [aria-current="page"] { color: var(--color-on-night); }
.hub-hero .crumbs li + li::before { color: var(--color-on-night-muted); }
.hub-hero h1 { max-width: 15ch; font-size: clamp(2.25rem, 1.4rem + 3.3vw, 3.875rem); line-height: 1.02; letter-spacing: -0.035em; }
@media (min-width: 981px) { .hub-hero h1 { max-width: 20ch; } }
.hub-answer { max-width: 62ch; font-size: var(--text-lead); line-height: 1.55; color: var(--color-on-night); }
.hub-answer strong { color: var(--color-surface); font-weight: 700; }

.hub-stamp { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); list-style: none; }
.hub-stamp li {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-4);
  border: 1px solid var(--color-night-line); border-radius: var(--radius-pill);
  background: color-mix(in oklch, var(--color-night-deep) 45%, transparent);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-on-night-muted);
}
.hub-stamp li.is-date { border-color: color-mix(in oklch, var(--color-accent-2) 55%, transparent); color: var(--color-on-night); }
.hub-stamp li.is-date .i { width: 16px; height: 16px; color: var(--color-accent-2); }
.hub-stamp time { font-weight: 800; color: var(--color-surface); }
.hub-stamp li.is-link { border-color: transparent; background: none; padding-inline: var(--space-2); }
.hub-stamp a { display: inline-flex; align-items: center; min-height: var(--target); margin-block: -4px; color: var(--color-on-night); }
.hub-stamp a:hover { color: var(--color-accent-2); }

.hub-hero .ai-bar { justify-items: center; }
.hub-hero .ai-bar ul { justify-content: center; }
.hub-hero .ai-btn { min-height: var(--target); padding: 0 var(--space-3); gap: 6px; }
@media (min-width: 768px) {
  .hub-hero .ai-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2) var(--space-3); width: 100%; }
  .hub-hero .ai-btn { padding: 0 var(--space-4); }
}

.hub-hero .views { justify-items: center; width: 100%; }
.hub-hero .views legend { width: 100%; text-align: center; color: var(--color-on-night-muted); }
.hub-hero .views-track { width: 100%; max-width: 440px; background: color-mix(in oklch, var(--color-night-deep) 60%, transparent); box-shadow: inset 0 0 0 1px var(--color-night-line); }
@media (min-width: 768px) { .hub-hero .views-track { width: max-content; max-width: 100%; } }
.hub-hero .views-opt span { min-height: var(--target); color: var(--color-on-night); }
.hub-hero .views-opt:hover span { background: var(--color-night-raise); color: var(--color-surface); }
.hub-hero .views-opt input:checked + span { background: var(--color-surface); color: var(--color-night); }
.hub-hero .views-opt input:focus-visible + span { outline-color: var(--color-glow); }
.hub-hero .views-hint { color: var(--color-on-night-muted); }
.hub-hero .views-hint button { color: var(--color-accent-2); }

/* ── Featured partner tariffs: short cards under the Show me control ──────── */
.featured { display: grid; gap: var(--space-5); margin-top: var(--space-10); }
.featured-head { display: grid; justify-items: center; gap: var(--space-2); text-align: center; }
.featured-head h2 { font-size: clamp(1.3125rem, 1.15rem + 0.7vw, 1.75rem); }
.featured-head p { max-width: 64ch; font-size: var(--text-sm); color: var(--color-on-night-muted); }
.feat-grid {
  list-style: none; display: grid; gap: var(--space-4); padding-bottom: var(--space-2);
  grid-auto-flow: column; grid-auto-columns: minmax(250px, 84%);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--color-night-line) transparent;
}
@media (max-width: 767px) { .feat-grid { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
@media (min-width: 768px) { .feat-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; } }
@media (min-width: 1100px) { .feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feat-card {
  display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); scroll-snap-align: start;
  border: 1px solid var(--color-night-line); border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--color-night-2) 88%, transparent); text-align: left;
  transition: border-color var(--dur-state) var(--ease-out), background-color var(--dur-state) var(--ease-out);
}
.feat-card:hover { border-color: color-mix(in oklch, var(--color-accent-2) 55%, transparent); background: var(--color-night-2); }
.feat-top { display: flex; align-items: center; gap: var(--space-3); }
.feat-logo { flex: none; display: grid; place-items: center; width: 64px; height: 40px; padding: 4px; border-radius: var(--radius-sm); background: var(--color-surface); overflow: hidden; }
.feat-logo img { width: 100%; height: 100%; object-fit: contain; }
.feat-id { display: grid; gap: 1px; min-width: 0; }
.feat-sup { font-size: var(--text-xs); color: var(--color-on-night-muted); }
.feat-name { font-size: 1.0625rem; line-height: 1.25; }
.night .feat-name a { display: inline-block; padding-block: 12px; margin-block: -12px; color: var(--color-surface); text-decoration: none; }
.night .feat-name a:hover { color: var(--color-accent-2); text-decoration: underline; text-underline-offset: 0.2em; }
.feat-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-3); }
.feat-rate .reading { font-size: 2rem; }
.feat-win { font-size: var(--text-xs); font-weight: 600; color: var(--color-glow); font-variant-numeric: tabular-nums; }
.feat-tag { font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-2); }
.feat-facts { display: flex; flex-wrap: wrap; gap: 2px var(--space-4); margin-top: auto; font-size: var(--text-sm); color: var(--color-on-night-muted); font-variant-numeric: tabular-nums; }
.feat-card .btn { margin-top: var(--space-1); }
.feat-aff { margin-top: calc(var(--space-2) * -1); font-size: 0.75rem; color: var(--color-on-night-muted); text-align: center; }
.feat-fine { font-size: var(--text-xs); color: var(--color-on-night-muted); text-align: center; }

/* ── The tonight panel: the hero's graphic ────────────────────────────────── */
.tonight {
  display: grid; gap: var(--space-6); margin-top: var(--space-10); padding: var(--space-4);
  border: 1px solid var(--color-night-line); border-radius: var(--radius-xl);
  background: color-mix(in oklch, var(--color-night-deep) 62%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklch, var(--color-glow) 10%, transparent);
  text-align: left;
}
@media (min-width: 768px) { .tonight { padding: var(--space-6); } }
@media (min-width: 981px) {
  .tonight { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-10); margin-top: var(--space-8); padding: var(--space-8); }
  .tonight-side { position: sticky; top: calc(var(--head-h) + var(--space-6)); align-self: start; }
}
.tonight-side { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.tonight-loop { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.tonight h2 { font-size: clamp(1.3125rem, 1.15rem + 0.7vw, 1.75rem); line-height: 1.15; }
.tonight-intro { font-size: 0.9375rem; color: var(--color-on-night-muted); }
.tonight-form { display: grid; gap: var(--space-4); }
.tonight-form .field { gap: var(--space-2); }
.tn-mode { min-width: 0; border: 0; }
.tonight .seg { display: flex; width: 100%; background: color-mix(in oklch, var(--color-night-deep) 70%, transparent); box-shadow: inset 0 0 0 1px var(--color-night-line); }
.tonight .seg label { flex: 1; }
.tonight .seg span { justify-content: center; width: 100%; min-height: var(--target); color: var(--color-on-night); }
.tonight .seg label:hover span { background: var(--color-night-raise); color: var(--color-surface); }
.tonight .seg input:checked + span { background: var(--color-surface); color: var(--color-night); }
.tonight .seg input:focus-visible + span { outline-color: var(--color-glow); }
.tonight .select { background-color: var(--color-night-deep); color: var(--color-on-night); border-color: var(--color-night-line); }
.tonight .select:hover { border-color: var(--color-accent-400); }
.tonight .select:focus-visible { border-color: var(--color-glow); box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-glow) 25%, transparent); }
.tonight .select option, .tonight .select optgroup { color: var(--color-text); background: var(--color-surface); }
.night .range-row label, .night .field > label { color: var(--color-on-night); font-weight: 600; font-size: var(--text-sm); }
.night .range-row output { color: var(--color-surface); font-size: 1.125rem; }
.night .field-help { color: var(--color-on-night-muted); font-size: var(--text-sm); }
.night .range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--color-glow) var(--fill, 50%), var(--color-night-raise) var(--fill, 50%)); }
.night .range::-moz-range-track { background: var(--color-night-raise); }
.night .range::-moz-range-progress { background: var(--color-glow); }
.night .range::-webkit-slider-thumb { background: var(--color-night); border-color: var(--color-glow); box-shadow: 0 0 12px color-mix(in oklch, var(--color-glow) 70%, transparent); }
.night .range::-moz-range-thumb { background: var(--color-night); border-color: var(--color-glow); }
.tonight .strip-key { gap: var(--space-2) var(--space-4); }

.tonight-chart { display: grid; gap: var(--space-2); align-content: start; min-width: 0; --tn-cols: minmax(0, 11rem) minmax(0, 1fr) 8rem; }
.tn-head { display: none; }
@media (min-width: 640px) {
  .tn-head { display: grid; grid-template-columns: var(--tn-cols); gap: var(--space-4); align-items: end; padding: 0 var(--space-3) var(--space-2); border-bottom: 1px solid var(--color-night-line); font-size: var(--text-xs); font-weight: 700; color: var(--color-on-night-muted); }
  .tn-head > span:last-child { text-align: right; }
}
.noon-ticks { font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }
.noon-ticks span:nth-child(3) { color: var(--color-text); }
.night .noon-ticks { color: var(--color-on-night-muted); }
.night .noon-ticks span:nth-child(3) { color: var(--color-on-night); }
.tn-rows { list-style: none; display: grid; gap: 2px; }
.tn-row {
  position: relative; display: grid; gap: 6px var(--space-4); padding: var(--space-2) var(--space-3);
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name cost" "strip strip" "note note";
  border-radius: var(--radius-md); transition: background-color var(--dur-state) var(--ease-out), opacity var(--dur-state) var(--ease-out);
}
@media (min-width: 640px) {
  .tn-row { grid-template-columns: var(--tn-cols); grid-template-areas: "name strip cost" "name note cost"; align-items: center; row-gap: 4px; }
}
.tn-row:hover, .tn-row:focus-within { background: color-mix(in oklch, var(--color-night-raise) 70%, transparent); }
.tn-name { grid-area: name; display: grid; gap: 1px; align-self: center; min-height: var(--target); align-content: center; color: var(--color-on-night); text-decoration: none; }
.tn-sup { font-size: var(--text-xs); color: var(--color-on-night-muted); }
.tn-tariff { font-weight: 700; color: var(--color-surface); line-height: 1.25; }
.tn-name:hover .tn-tariff { color: var(--color-accent-2); text-decoration: underline; text-underline-offset: 0.2em; }
.night a.tn-name:not(.btn) { color: var(--color-on-night); }
.tn-strip { grid-area: strip; }
.tn-strip svg { height: 18px; }
.tn-cost { grid-area: cost; display: grid; justify-items: end; align-content: center; text-align: right; }
.tn-cost .reading { color: var(--color-surface); font-size: 1.25rem; }
.tn-cost .reading .unit { font-size: 0.7em; color: var(--color-on-night-muted); }
.tn-note { grid-area: note; font-size: var(--text-xs); font-weight: 600; color: var(--color-on-night-muted); }
.tn-row[data-state="fit"] .tn-note { color: var(--color-accent-2); }
.tn-row[data-state="over"] .tn-note { color: var(--color-rose-300); }
.tn-row[data-state="smart"] .tn-note { color: var(--color-glow); }
.tn-row.is-best { background: color-mix(in oklch, var(--color-accent-2) 11%, transparent); outline: 1px solid color-mix(in oklch, var(--color-accent-2) 50%, transparent); outline-offset: -1px; }
.tn-badge { justify-self: end; max-width: 8rem; margin-top: 3px; padding: 2px 8px; border-radius: 9px; background: var(--color-accent-2); color: var(--color-night); font-size: 0.6875rem; font-weight: 800; line-height: 1.25; text-align: center; }
.tn-cost .reading.is-partial { color: var(--color-on-night-muted); }
.tn-row.is-dim { opacity: 0.5; }
.tn-row.is-dim:hover { opacity: 0.8; }
.tn-more { justify-self: center; color: var(--color-accent-2); }
@media (max-width: 767px) { .tn-rows.is-collapsed .tn-row:nth-child(n+6) { display: none; } .tn-rows.is-collapsed .tn-row.is-best { display: grid; } }
@media (min-width: 768px) { .tn-more { display: none !important; } }

/* Strip pieces drawn by tariffs.js, plus the noon-to-noon midline */
.strip .s-mid { stroke: var(--color-divider-strong); stroke-dasharray: 2 2; }
.night .strip .s-mid { stroke: color-mix(in oklch, var(--color-glow) 40%, transparent); }
.strip .s-smart, .strip .s-smart-over { fill: url(#hatch-day); }
.night .strip .s-smart, .night .strip .s-smart-over { fill: url(#hatch-night); }
.hatch-day { fill: var(--color-accent); }
.hatch-night { fill: var(--color-glow); fill-opacity: 0.75; }
.night .strip .s-charge { fill: var(--color-accent-2); }
@media (prefers-reduced-motion: no-preference) {
  .tonight.is-lit .s-window { animation: win-on 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
  .tonight.is-lit .s-charge, .tonight.is-lit .s-over, .tonight.is-lit .s-smart-over { animation: strip-fill var(--dur-fill) var(--ease-expo) both; transform-box: fill-box; transform-origin: left center; animation-delay: calc(var(--i, 0) * var(--stagger) + 360ms); }
  .tonight.is-lit .s-over, .tonight.is-lit .s-smart-over { animation-delay: calc(var(--i, 0) * var(--stagger) + 360ms + var(--dur-fill) * 0.55); }
}
@keyframes win-on { from { fill-opacity: 0.06; } to { fill-opacity: 0.32; } }

/* ── Body: centred sections on paper ──────────────────────────────────────── */
.hub-body { padding-block: var(--space-6) var(--space-16); }
.hub-toc { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-10); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-divider); }
.hub-toc h2 { flex: none; }
.hub-toc ol { display: flex; gap: 2px; border-left: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, var(--color-text) 85%, transparent); mask-image: linear-gradient(90deg, var(--color-text) 85%, transparent); }
.hub-toc ol::-webkit-scrollbar { display: none; }
.hub-toc li { flex: none; }
.hub-toc a { display: inline-flex; align-items: center; min-height: var(--target); margin: 0; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-pill); white-space: nowrap; font-weight: 600; }
.hub-toc a:hover { background: var(--color-surface-2); }
@media (min-width: 1100px) { .hub-toc { justify-content: center; } .hub-toc ol { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; justify-content: center; } }

.hub-sections { display: grid; gap: clamp(72px, 6vw + 32px, 128px); }
.hub-section { display: grid; gap: var(--space-6); min-width: 0; }
.hub-head { display: grid; justify-items: center; gap: var(--space-3); max-width: 64ch; margin-inline: auto; text-align: center; }
.hub-head h2 { font-size: var(--text-h2); }
.hub-head p { font-size: var(--text-lead); line-height: 1.5; color: var(--color-muted); }
.hub-prose { margin-inline: auto; width: 100%; }
.hub-prose h3 { font-size: var(--text-h3); }
.hub-prose-section > .table-wrap, .hub-prose-section > .ba, .hub-prose-section > .readings-row { width: 100%; max-width: 1040px; margin-inline: auto; }
.hub-notes { display: grid; gap: 6px; max-width: 96ch; margin-inline: auto; font-size: var(--text-xs); line-height: 1.5; color: var(--color-muted); text-align: center; }

/* ── Finder ───────────────────────────────────────────────────────────────── */
.finder { display: grid; gap: var(--space-5); padding: var(--space-5); border: 1px solid var(--color-divider); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .finder { padding: var(--space-6); } }
.finder-grid { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .finder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .finder-grid { grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.finder-q { min-width: 0; border: 0; display: grid; gap: var(--space-2); align-content: end; }
.finder-q legend { padding: 0; margin-bottom: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.finder .seg { display: flex; width: 100%; }
.finder .seg label { flex: 1; }
.finder .seg span { justify-content: center; min-height: var(--target); width: 100%; }
@media (min-width: 1180px) { .finder .seg { width: auto; } }
.finder-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--color-divider); }
.finder-status { font-weight: 600; color: var(--color-text); }
.assist-lite { gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); }
.assist-label { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; color: var(--color-surface); }
.assist-label .i { color: var(--color-glow); }
.assist-lite .assist-input { min-height: 52px; }
.assist-lite .btn-primary { min-height: 52px; }
.assist-echo { gap: var(--space-2); }
.assist-echo .chip { min-height: var(--target); padding: 2px 4px 2px 14px; }
.assist-echo .chip button { width: 40px; height: 40px; }

/* ── Tariff cards ─────────────────────────────────────────────────────────── */
.tcards { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .tcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tcards-split { grid-column: 1 / -1; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--color-divider); font-size: var(--text-h3); }
.tcards-split small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; color: var(--color-muted); }
.tcard { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); scroll-margin-top: calc(var(--head-h) + 96px); transition: border-color var(--dur-state) var(--ease-out), box-shadow var(--dur-state) var(--ease-out), background-color var(--dur-state) var(--ease-out); }
.tcard:hover { border-color: var(--color-accent-300); box-shadow: var(--shadow-md); }
.tcard:target, .tcard.is-flash { border-color: var(--color-accent-ink); box-shadow: 0 0 0 3px var(--color-accent-200), var(--shadow-md); }
.tcard.is-no { background: var(--color-surface-2); box-shadow: none; }
.tcard-top { display: flex; align-items: center; gap: var(--space-4); }
.tcard-logo { flex: none; display: grid; place-items: center; width: 88px; height: 52px; padding: 6px; border: 1px solid var(--color-divider); border-radius: var(--radius-sm); background: var(--color-surface); overflow: hidden; }
.tcard-logo img { width: 100%; height: 100%; object-fit: contain; }
.tcard-logo.is-initials { border-color: transparent; background: var(--color-night); color: var(--color-surface); font-family: var(--font-heading); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; }
.tcard-id { display: grid; gap: 2px; min-width: 0; }
.tcard-sup { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.tcard-name { font-size: var(--text-h3); }
.tcard-tag { font-size: var(--text-sm); font-weight: 700; color: var(--color-accent-ink); }
.tcard-fit { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600; line-height: 1.4; }
.tcard-fit .i { width: 18px; height: 18px; margin-top: 1px; }
.tcard-fit.is-yes { background: var(--color-accent-100); color: var(--color-accent-ink); }
.tcard-fit.is-check { background: var(--color-sun-100); color: var(--color-sun-800); }
.tcard-fit.is-no { background: var(--color-rose-100); color: var(--color-rose-700); }
.tcard-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); }
.tcard-rate .reading-lg { font-size: clamp(2.25rem, 1.95rem + 1.1vw, 2.75rem); }
.tcard-rate-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.tcard-strip svg { height: 12px; }
.tcard-strip figcaption { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-2); font-variant-numeric: tabular-nums; }
.tcard-strip figcaption span { color: var(--color-muted); font-weight: 500; }
.tfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-4); }
.tfacts > div { display: grid; gap: 2px; align-content: start; padding: var(--space-2) 0; border-top: 1px solid var(--color-divider); }
.tfacts dt { font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }
.tfacts dd { font-family: var(--font-figure); font-weight: 700; color: var(--color-text); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tfacts dd small { display: block; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); letter-spacing: 0; }
.tcard .chips .chip { white-space: normal; }
.tcard .chip sup { font-size: 0.7em; }
.tcard-detail { font-size: 0.9375rem; color: var(--color-text-2); }
.tcard-more { border-top: 1px solid var(--color-divider); }
.tcard-more summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--target); list-style: none; cursor: pointer; font-size: var(--text-sm); font-weight: 700; color: var(--color-text); }
.tcard-more summary::-webkit-details-marker { display: none; }
.tcard-more summary .i { color: var(--color-accent); transition: transform var(--dur-state) var(--ease-out); }
.tcard-more[open] summary .i { transform: rotate(180deg); }
.tcard-more summary:hover { color: var(--color-accent-ink); }
.tcard-more-body { display: grid; gap: var(--space-2); padding-bottom: var(--space-2); font-size: var(--text-sm); color: var(--color-text-2); }
.tcard-more + .tcard-actions { border-top: 0; padding-top: var(--space-2); }
.tcards-more { justify-self: center; }
@media (max-width: 767px) { .tcards.is-collapsed > [data-tcard]:nth-of-type(n+7) { display: none; } }
/* The site's own header (assets/site-chrome) scrolls away, as on the live site,
   so the dock and anchor offsets stop leaving room for a sticky header. */
html:has(header.site-chrome) { --head-h: 0px; }
.site-chrome .mega-group a { white-space: normal; overflow-wrap: anywhere; }
@media (min-width: 768px) { .tcards-more { display: none !important; } }
.tcard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--color-divider); }
.tcard-actions .btn { flex: 1 1 12rem; }
.tcard-actions .btn .i { width: 16px; height: 16px; }
.aff-note { margin-top: calc(var(--space-2) * -1); font-size: 0.75rem; line-height: 1.4; color: var(--color-muted); }

/* ── Table ────────────────────────────────────────────────────────────────── */
.table-wrap { position: relative; } /* keeps visually hidden labels inside the scroller */
.hub-table tbody th a { display: inline-flex; align-items: center; min-height: var(--target); }
.table.kinds td a { display: inline-block; padding-block: 10px; line-height: 1.5; }
.table.kinds .kn { white-space: nowrap; }
.hub-table { min-width: 1040px; }
.hub-table tbody th a { color: var(--color-text); font-weight: 700; text-decoration: none; }
.hub-table tbody th a:hover { color: var(--color-accent-ink); text-decoration: underline; }
.hub-table { min-width: 960px; }
.hub-table td, .hub-table th { padding-inline: var(--space-3); white-space: nowrap; }
.hub-table td:nth-child(7) { white-space: normal; min-width: 9rem; font-size: var(--text-sm); }
.tt-win { min-width: 150px; }
.tt-win .strip { margin-bottom: 4px; }
.tt-win .strip svg { height: 10px; }
.tt-win span { font-size: var(--text-xs); color: var(--color-muted); }
.hub-table td:last-child { text-align: right; }
.table.kinds td, .table.kinds th { white-space: normal; vertical-align: top; }
.table.kinds { min-width: 760px; }
@media (max-width: 767px) {
  .table.kinds { min-width: 0; }
  .table.kinds thead { display: none; }
  .table.kinds tr { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-divider); }
  .table.kinds th, .table.kinds td { display: block; padding: 0; border: 0; }
  .table.kinds tbody th { font-family: var(--font-heading); font-size: 1.0625rem; }
  .table.kinds td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); }
}

/* ── Quick answers ────────────────────────────────────────────────────────── */
.qa { display: grid; width: 100%; max-width: 1040px; margin-inline: auto; border-top: 1px solid var(--color-divider); }
@media (min-width: 768px) { .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-10); } }
.qa > div { display: grid; gap: 4px; align-content: start; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-divider); }
.qa dt { font-size: var(--text-sm); font-weight: 700; color: var(--color-accent-ink); }
.qa dd { font-size: 1.0625rem; line-height: 1.5; color: var(--color-text); }

/* ── Calculator and the before/after ──────────────────────────────────────── */
#cost .tool { width: 100%; max-width: 1040px; margin-inline: auto; }
.tool-result .stat-label { color: var(--color-on-night-muted); }
.hub-ba { --ratio: 4 / 5; }
@media (min-width: 560px) { .hub-ba { --ratio: 4 / 3; } }
@media (min-width: 900px) { .hub-ba { --ratio: 5 / 2; } }
.hub-ba .ba-panel { gap: var(--space-2); }
.hub-ba .ba-panel .strip { width: 100%; max-width: 440px; margin-top: var(--space-3); }
.hub-ba .ba-panel .strip svg { height: 16px; }
.hub-ba .ba-panel:not(.night) .strip-ticks { color: var(--color-muted); }
.hub-ba .ba-panel:not(.night) .stat-label { font-size: var(--text-sm); }
.hub-ba .ba-panel.night .stat-label { font-size: var(--text-sm); }
.readings-row.worked { --cols: 4; }
.readings-row.worked dd.is-good { color: var(--color-accent-ink); }

/* ── Which suits you ──────────────────────────────────────────────────────── */
.choose { display: grid; width: 100%; max-width: 1040px; margin-inline: auto; border-top: 2px solid var(--color-text); }
.choose > div { display: grid; gap: var(--space-2); padding: var(--space-5) 0; border-bottom: 1px solid var(--color-divider); }
@media (min-width: 768px) { .choose > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-8); align-items: baseline; } }
.choose dt { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; color: var(--color-text); }
.choose dd { color: var(--color-text-2); }

/* ── The catches ──────────────────────────────────────────────────────────── */
.catch-grid { display: grid; gap: var(--space-5); }
@media (min-width: 981px) { .catch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.catch { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-6); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); background: var(--color-surface); }
.catch h3 { font-size: 1.125rem; }
.catch p:last-child { color: var(--color-text-2); font-size: 0.9375rem; }
.catch-reading { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); }
.catch-reading .reading-lg { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); }
.catch-to { font-weight: 600; color: var(--color-muted); }
.fees { display: grid; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); background: var(--color-surface); }
.fees h3 { font-size: 1.125rem; }
.fee-list { list-style: none; display: grid; gap: 0; }
.fee-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "track track"; gap: 4px var(--space-3); align-items: center; }
@media (min-width: 768px) { .fee-list li { grid-template-columns: 16rem minmax(0, 1fr) 10rem; grid-template-areas: "name track val"; } }
.fee-name { grid-area: name; font-size: 0.9375rem; }
.fee-name a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--color-text); font-weight: 600; text-decoration: none; }
.fee-name a:hover { color: var(--color-accent-ink); text-decoration: underline; }
.fee-track { grid-area: track; position: relative; height: 10px; border-radius: 3px; background: var(--color-surface-2); overflow: hidden; }
.fee-fill { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); border-radius: 3px; background: var(--color-rose-400); }
.fee-val { grid-area: val; text-align: right; font-family: var(--font-figure); font-size: var(--text-sm); font-weight: 700; color: var(--color-text); font-variant-numeric: tabular-nums; }

/* ── Switching steps and the next step ────────────────────────────────────── */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--space-5); width: 100%; max-width: 760px; margin-inline: auto; }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: none; gap: var(--space-6); } }
.steps li { position: relative; counter-increment: step; display: grid; align-content: start; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-1) var(--space-4); scroll-margin-top: calc(var(--head-h) + 96px); }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-night); color: var(--color-surface); font-family: var(--font-figure); font-weight: 800; }
.steps h3 { align-self: center; font-size: 1.0625rem; }
.steps p { font-size: 0.9375rem; color: var(--color-text-2); }
@media (min-width: 1100px) {
  .steps li { grid-template-columns: 1fr; }
  .steps li::before { grid-row: auto; margin-bottom: var(--space-2); }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 52px; right: calc(var(--space-3) * -1); height: 2px; background: var(--color-divider-strong); }
}
.next-step { margin-top: var(--space-4); }
.next-title { font-size: var(--text-h2); }
.next-step .btn-row { justify-content: flex-start; }

/* ── Terms, FAQs, sources ─────────────────────────────────────────────────── */
.terms { display: grid; width: 100%; max-width: 1040px; margin-inline: auto; border-top: 1px solid var(--color-divider); }
@media (min-width: 768px) { .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-10); } }
.terms > div { display: grid; gap: 4px; align-content: start; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-divider); }
.terms dt { font-weight: 700; color: var(--color-text); }
.terms dd { font-size: 0.9375rem; color: var(--color-text-2); }
#faq .faq { width: 100%; max-width: 860px; margin-inline: auto; }
.sources-grid { display: grid; gap: var(--space-8); width: 100%; max-width: 1040px; margin-inline: auto; }
@media (min-width: 981px) { .sources-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-12); } }
.method { font-size: 1rem; }
.cite { padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-surface-2); font-size: var(--text-sm); }
.resources { list-style: none; display: grid; border-top: 1px solid var(--color-divider); }
.resources li { display: grid; gap: 4px; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-divider); }
.res-source { font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); }
.resources a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.resources p { font-size: 0.9375rem; color: var(--color-text-2); }
.more-on-page { width: 100%; max-width: 860px; margin-inline: auto; }

/* ── Footer, dock, cookies ────────────────────────────────────────────────── */
.footer-disclaimer { max-width: 110ch; margin-top: var(--space-10); font-size: var(--text-xs); line-height: 1.6; color: var(--color-on-night-muted); }
.site-footer .footer-disclaimer a { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-disclaimer strong { color: var(--color-on-night); }
.site-footer .footer-legal a { display: inline-flex; align-items: center; min-height: var(--target); }
.dock-name { gap: var(--space-3); }
.dock-moon { width: 24px; height: 24px; color: var(--color-accent); }
.dock-meta { display: block; font-size: var(--text-xs); color: var(--color-muted); white-space: nowrap; }
.dock-view .i { width: 16px; height: 16px; color: var(--color-accent); }
.cookie-bar .btn-row { gap: var(--space-2); }

/* ── AIO report page ──────────────────────────────────────────────────────── */
.report { padding-block: var(--space-10) var(--space-16); }
.report-prose { max-width: 84ch; }
.report-prose h1 { font-size: var(--text-h2); }
.report-prose .table-wrap { margin-block: var(--space-4); }
.report-prose table { min-width: 560px; }
