/* AI Token Price: the rate sheet, warmed up.
   Newsreader (titles) + Public Sans (text, tabular figures). Warm paper, white cards, the providers' own
   logos, and one highlighter for the phrase that matters. Colours are tokens with a matching dark theme. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/newsreader-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/newsreader-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/public-sans-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/public-sans-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --paper: #f6f3ee;
  --paper-2: #efe9e0;
  --surface: #ffffff;
  --surface-2: #fbf9f5;
  --surface-3: #f3efe8;
  --ink: #1a1916;
  --ink-2: #56524b;
  --ink-3: #736d63;
  --ink-4: #b8b1a5;
  --rule: #e9e3d8;
  --rule-soft: #f0ebe2;
  --rule-strong: #ddd5c7;
  --accent: #1c4e8c;
  --accent-2: #143b6b;
  --accent-soft: #eef3fa;
  --on-accent: #ffffff;
  --mark: #1c4e8c;
  --hl: #ffe08a;
  --hl-shadow: inset 0 -0.3em 0 var(--hl);
  --hl-ink: inherit;
  --down: #12733f;
  --down-soft: #e7f2ea;
  --up: #b3261e;
  --up-soft: #fbeae8;
  --warn: #8a5a00;
  --warn-soft: #fbf0d9;
  --tile: #ffffff;
  --tile-rule: #ece6db;
  --mono-filter: none;
  --chart-1: #184f95;
  --chart-2: #3987e5;
  --chart-3: #86b6ef;
  --chart-grid: #efe9df;
  --chart-base: #d7cfc1;
  --shadow-card: 0 1px 2px rgba(26, 25, 22, .04);
  --shadow-lift: 0 10px 24px -14px rgba(26, 25, 22, .3);
  --shadow-pop: 0 18px 44px -18px rgba(26, 25, 22, .34), 0 2px 6px rgba(26, 25, 22, .06);
  --r-card: 14px;
  --r-ctl: 10px;
  --r-sm: 8px;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --w: 1200px;
  --gutter: 24px;
  --measure: 68ch;
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #15130f; --paper-2: #100e0b; --surface: #1f1c17; --surface-2: #24211b; --surface-3: #2a261f;
    --ink: #f6f3ee; --ink-2: #c9c2b6; --ink-3: #a39c90; --ink-4: #6f685d;
    --rule: #332f28; --rule-soft: #2a2721; --rule-strong: #4a443a;
    --accent: #9dbceb; --accent-2: #bcd2f3; --accent-soft: #1b2738; --on-accent: #10151d; --mark: #2b64ad;
    --hl-shadow: none; --hl-ink: #ffe08a;
    --down: #8fdcae; --down-soft: rgba(143, 220, 174, .12); --up: #f08a80; --up-soft: rgba(240, 138, 128, .13); --warn: #e0b25c; --warn-soft: rgba(224, 178, 92, .14);
    --tile: #2a261f; --tile-rule: #3a352d; --mono-filter: invert(1);
    --chart-1: #bcd2f3; --chart-2: #6da7ec; --chart-3: #2a78d6; --chart-grid: #2c2822; --chart-base: #4a443a;
    --shadow-card: none; --shadow-lift: 0 10px 24px -14px rgba(0, 0, 0, .8); --shadow-pop: 0 18px 44px -14px rgba(0, 0, 0, .75);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #15130f; --paper-2: #100e0b; --surface: #1f1c17; --surface-2: #24211b; --surface-3: #2a261f;
  --ink: #f6f3ee; --ink-2: #c9c2b6; --ink-3: #a39c90; --ink-4: #6f685d;
  --rule: #332f28; --rule-soft: #2a2721; --rule-strong: #4a443a;
  --accent: #9dbceb; --accent-2: #bcd2f3; --accent-soft: #1b2738; --on-accent: #10151d; --mark: #2b64ad;
  --hl-shadow: none; --hl-ink: #ffe08a;
  --down: #8fdcae; --down-soft: rgba(143, 220, 174, .12); --up: #f08a80; --up-soft: rgba(240, 138, 128, .13); --warn: #e0b25c; --warn-soft: rgba(224, 178, 92, .14);
  --tile: #2a261f; --tile-rule: #3a352d; --mono-filter: invert(1);
  --chart-1: #bcd2f3; --chart-2: #6da7ec; --chart-3: #2a78d6; --chart-grid: #2c2822; --chart-base: #4a443a;
  --shadow-card: none; --shadow-lift: 0 10px 24px -14px rgba(0, 0, 0, .8); --shadow-pop: 0 18px 44px -14px rgba(0, 0, 0, .75);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, .display {
  font-family: var(--font-display); font-weight: 600; font-optical-sizing: auto;
  letter-spacing: -.014em; line-height: 1.08; text-wrap: balance; margin: 0;
}
h1 { font-size: clamp(2rem, 1.45rem + 2.2vw, 3rem); line-height: 1.05; }
h1 em, h2 em, .display em { font-style: italic; font-weight: 500; }
.display { font-size: clamp(2.35rem, 1.3rem + 3.4vw, 3.75rem); line-height: 1.03; letter-spacing: -.018em; }
.hl { box-shadow: var(--hl-shadow); color: var(--hl-ink); }
h2 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.75rem); line-height: 1.15; }
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.caption { font-size: .8125rem; color: var(--ink-3); line-height: 1.5; }
table { font-variant-numeric: tabular-nums lining-nums; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .875em; }
code { background: var(--paper); border: 1px solid var(--rule); padding: .1em .4em; border-radius: 6px; font-size: .8125rem; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; color: var(--paper); }
.dim { color: var(--ink-3); }
.q { color: var(--ink-3); }
.sl { color: var(--ink-4); font-weight: 400; }
.nowrap { white-space: nowrap; }
.ext { vertical-align: -1px; }

/* ---------- layout ---------- */
.wrap { max-width: calc(var(--w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }
.grid-2, .grid-3 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-56 { margin-top: 56px; }
.section-title { font-size: 1.5rem; margin: 0 0 14px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 14px; }
.section-head .section-title { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .grid-2, .grid-wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { :root { --gutter: 16px; } .mt-48 { margin-top: 36px; } .mt-56 { margin-top: 40px; } }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.card-pad { padding: 22px; }
.card-list { padding: 20px 22px 8px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.card-head a { font-size: .875rem; white-space: nowrap; }
.card-head p { margin: 0; font-size: .875rem; color: var(--ink-3); }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.card-title-sm { font-size: 1.25rem; }
.card-sub { font-size: .875rem; color: var(--ink-3); margin: 2px 0 10px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 16px; border-top: 1px solid var(--rule); background: var(--surface-2); border-radius: 0 0 var(--r-card) var(--r-card); }
.card-foot p { margin: 0; font-size: .8125rem; color: var(--ink-3); }
.card-table-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 20px 22px 14px; }
.card-table-head .card-title { font-size: 1.5rem; }
.card-table-head p { margin: 0; font-size: .875rem; color: var(--ink-3); }
.card > .table-wrap:last-child, .card > .table-wrap:last-child table { border-radius: 0 0 var(--r-card) var(--r-card); }

/* ---------- logo tiles ---------- */
.lt { width: 28px; height: 28px; border-radius: 8px; background: var(--tile); border: 1px solid var(--tile-rule); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; vertical-align: middle; }
.lt img { width: 17px; height: 17px; display: block; }
.lt img.mono { filter: var(--mono-filter); }
.lt-xs { width: 20px; height: 20px; border-radius: 6px; } .lt-xs img { width: 12px; height: 12px; }
.lt-sm { width: 24px; height: 24px; border-radius: 7px; } .lt-sm img { width: 15px; height: 15px; }
.lt-md { width: 36px; height: 36px; border-radius: 10px; } .lt-md img { width: 21px; height: 21px; }
.lt-lg { width: 72px; height: 72px; border-radius: 18px; border: 0; box-shadow: 0 1px 2px rgba(26, 25, 22, .08); } .lt-lg img { width: 38px; height: 38px; }
.lt-letter { font: 700 .8125rem/1 var(--font-text); color: var(--ink-2); }
.lt-pair { display: inline-flex; flex: 0 0 auto; }
.lt-pair .lt + .lt { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
/* Cohere's mark is dark green: give it a light tile in the dark theme so it stays visible. */
:root[data-theme="dark"] .lt:has(img[src$="/cohere.svg"]) { background: #efe9df; border-color: #efe9df; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lt:has(img[src$="/cohere.svg"]) { background: #efe9df; border-color: #efe9df; } }

/* ---------- chips, pills, buttons ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; line-height: 1.5; padding: 1px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.chip svg { width: 15px; height: 15px; flex: 0 0 auto; }
.chip-down { background: var(--down-soft); color: var(--down); }
.chip-up { background: var(--up-soft); color: var(--up); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-accent { background: var(--accent-soft); color: var(--accent); }
.chip-muted { color: var(--ink-3); font-weight: 500; }
.chip-lg { font-size: .875rem; font-weight: 500; padding: 5px 12px 5px 10px; gap: 8px; }
.move { font-weight: 600; margin-left: 8px; white-space: nowrap; }
.move-down { color: var(--down); }
.move-up { color: var(--up); }
.win { color: var(--down); font-weight: 600; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink); font: 600 .875rem var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer; }
.pill:hover { border-color: var(--ink-3); color: var(--ink); }
.pill[aria-current="page"], .pill[aria-pressed="true"], .pill[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.subnav { display: flex; gap: 6px; margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.subnav::-webkit-scrollbar { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r-ctl); border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink); font: 600 .9375rem/1 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-lg { height: 46px; padding: 0 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- forms ---------- */
.select { appearance: none; height: 40px; max-width: 100%; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background-color: var(--surface); color: var(--ink); font: 500 .875rem var(--font-text); padding: 0 32px 0 12px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 54%, calc(100% - 12px) 54%; background-size: 5px 5px; background-repeat: no-repeat; }
.select-sm { height: 36px; padding: 0 28px 0 10px; background-position: calc(100% - 15px) 54%, calc(100% - 10px) 54%; }
.input { width: 100%; height: 42px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 400 .9375rem var(--font-text); padding: 0 12px; font-variant-numeric: tabular-nums; }
textarea.input { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.input::placeholder { color: var(--ink-3); }
.input:hover, .select:hover { border-color: var(--ink-3); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.input[aria-invalid="true"], .inline-input[aria-invalid="true"] { border-color: var(--up); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.hint { font-size: .8125rem; color: var(--ink-3); line-height: 1.45; }
input[type="range"] { width: 100%; accent-color: var(--accent); margin: 6px 0 2px; }
.check-row { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
.check-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 20px; }
.inline-input { width: 3.4em; font: 600 .9375rem var(--font-text); font-variant-numeric: tabular-nums; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); padding: 1px 2px; text-align: right; border-radius: 0; }
.inline-input:focus { outline: none; border-bottom: 2px solid var(--accent); }
.currency-label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: var(--paper); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--rule); }
.masthead-row { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { flex: 0 0 auto; }
.mark rect { fill: var(--mark); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--surface-3); }
.nav a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; background: none; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink-2); font: 500 .875rem/1 var(--font-text); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.search-form { position: relative; width: 320px; }
.searchbox { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink-3); }
.searchbox:hover { border-color: var(--ink-3); }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.searchbox svg { flex: 0 0 auto; }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: 400 .875rem var(--font-text); color: var(--ink); }
.searchbox input::placeholder { color: var(--ink-3); opacity: 1; }
.searchbox input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbox kbd { font: 500 .75rem/1.4 var(--font-text); color: var(--ink-3); background: var(--paper); border: 1px solid var(--rule); border-radius: 5px; padding: 0 6px; }
.searchbox:focus-within kbd { visibility: hidden; }
.search-pop { position: absolute; top: calc(100% + 6px); right: 0; width: max(100%, 440px); max-height: min(70vh, 480px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow-pop); z-index: 50; }
.search-pop[hidden] { display: none; }
.sr-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; min-height: 44px; }
.sr-opt:hover, .sr-opt[aria-selected="true"] { background: var(--surface-3); color: var(--ink); }
.sr-opt .sr-t { font-weight: 600; font-size: .9375rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-opt .sr-s { margin-left: auto; padding-left: 12px; font-size: .8125rem; color: var(--ink-3); white-space: nowrap; }
.sr-ic { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3); color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sr-ic svg { width: 14px; height: 14px; }
.sr-empty, .sr-hint { padding: 12px; color: var(--ink-3); font-size: .9375rem; }
@media (max-width: 560px) {
  .sr-opt { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; row-gap: 0; align-items: center; }
  .sr-opt .lt, .sr-opt .sr-ic { grid-row: 1 / span 2; }
  .sr-opt .sr-t { white-space: normal; }
  .sr-opt .sr-s { grid-column: 2; margin-left: 0; padding-left: 0; white-space: normal; }
}
.search-btn, .menu { display: none; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-pop); padding: 6px var(--gutter) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.menu-main a { display: block; padding: 13px 2px; font-size: 1.125rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.menu-main a[aria-current] { color: var(--accent); }
.menu-more { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.menu-more a { display: block; padding: 9px 2px; color: var(--ink-2); text-decoration: none; }
.menu-more a[aria-current] { color: var(--ink); font-weight: 600; }
.menu-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--rule); }
.menu-currency { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1100px) { .search-form { width: 250px; } .masthead-row { gap: 24px; } }
@media (max-width: 1000px) { .search-form { width: 200px; } .nav a { padding: 8px 10px; } }
@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .masthead-row { gap: 8px; }
  .nav, .search-form, .theme-btn { display: none; }
  .search-btn { display: inline-flex; }
  .menu { display: block; }
  .search-btn, .menu-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); }
  .menu[open] .menu-btn { background: var(--surface-3); }
  .brand { font-size: 1.2rem; gap: 8px; }
  .brand svg { width: 24px; height: 24px; }
  .tools { gap: 0; margin-right: -8px; }
}

/* ---------- page header ---------- */
.page-head { padding-block: 36px 28px; max-width: 920px; }
.lede { font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); max-width: 64ch; margin: 14px 0 0; }
.lede strong { color: var(--ink); font-weight: 600; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8125rem; color: var(--ink-3); margin-bottom: 14px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.verified-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 14px; font-size: .875rem; color: var(--ink-2); }
.verified-line .ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--down); }
.verified-line .down { color: var(--down); font-weight: 600; }
.verified-line .up { color: var(--up); font-weight: 600; }
@media (max-width: 640px) { .page-head { padding-block: 26px 22px; } .lede { font-size: 1.0625rem; } }

/* ---------- home: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: center; padding-top: 56px; }
.hero .chip-lg { margin-bottom: 18px; }
.dek { font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); margin: 20px 0 0; max-width: 54ch; }
.tracking { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; font-size: .875rem; color: var(--ink-3); }
.tracking-logos { display: flex; flex-wrap: wrap; gap: 6px; }
.tracking-logos a { display: inline-flex; border-radius: 9px; }
.tracking-logos a:hover .lt { border-color: var(--ink-3); }
.tracking > a { color: var(--ink-3); }
.index-card { margin: 0; padding: 22px 22px 14px; }
.index-card figcaption { font-size: .8125rem; font-weight: 600; color: var(--ink); }
.index-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 8px; font-size: .875rem; color: var(--ink-2); }
.index-now .big { font-size: 2.125rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; line-height: 1.1; }
.index-card .chart { margin-top: 10px; }
.legend-mini { margin: 6px 0 0; gap: 4px 14px; font-size: .75rem; }
.legend-mini .legend-note { margin-left: auto; color: var(--ink-3); }
@media (max-width: 640px) { .chart-mini .lbl { display: none; } .chart-mini text { font-size: 13px; } .legend-mini { font-size: .8125rem; } }
@media (max-width: 1060px) { .hero { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; } }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; } .index-card { max-width: 560px; } }
@media (max-width: 640px) { .hero { padding-top: 26px; } .hero .chip-lg { font-size: .8125rem; margin-bottom: 14px; } .dek { font-size: 1rem; margin-top: 14px; } .tracking { margin-top: 18px; } }

/* ---------- home: answer tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.tile { display: block; padding: 16px 18px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tile:hover { color: var(--ink); border-color: var(--rule-strong); box-shadow: var(--shadow-lift); }
.tile-k { font-size: .8125rem; color: var(--ink-3); }
.tile-name { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 600; line-height: 1.25; }
.tile:hover .tile-name span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.tile-v { font-size: 1.25rem; font-weight: 600; margin-top: 10px; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tiles { gap: 10px; margin-top: 22px; }
  .tile { padding: 12px 14px; }
  .tile-k { font-size: .75rem; }
  .tile-name { font-size: .875rem; gap: 8px; margin-top: 8px; }
  .tile-name .lt { width: 24px; height: 24px; border-radius: 7px; }
  .tile-name .lt img { width: 15px; height: 15px; }
  .tile-v { font-size: 1rem; margin-top: 8px; }
}

/* ---------- price tables ---------- */
.table-card { margin-top: 24px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.4; }
th, td { padding: 12px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--rule-soft); }
thead th { font-size: .8125rem; font-weight: 500; color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--rule); white-space: nowrap; }
th.r, td.r { text-align: right; }
.card tbody tr:last-child > * { border-bottom: 0; }
th button.sort { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
th button.sort:hover { color: var(--ink); }
th button.sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
th button.sort::after { content: "↕"; font-size: .75rem; opacity: .4; }
th[aria-sort="ascending"] button.sort, th[aria-sort="descending"] button.sort { color: var(--ink); }
th[aria-sort="ascending"] button.sort::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"] button.sort::after { content: "↓"; opacity: 1; }
.ptable tbody tr[data-id]:hover { background: var(--surface-2); }
.ptable td { padding-block: 10px; }
.ptable .mc-name, .ptable .mc-sub { line-height: 1.35; }
.ptable .c-model { width: 38%; }
.ptable .model-cell { min-width: 250px; }
.mc { display: flex; align-items: center; gap: 12px; }
.mc-text { min-width: 0; }
.mc-name { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; }
.mname { color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.mname:hover { color: var(--accent); text-decoration: underline; }
.mc-sub { font-size: .8125rem; color: var(--ink-3); margin-top: 1px; }
.ptable td.num { font-weight: 500; white-space: nowrap; }
.ptable td.q { font-size: .875rem; white-space: nowrap; }
.ptable tr.is-current { background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.ptable tr:target { background: color-mix(in srgb, var(--hl) 28%, var(--surface)); }
tr[hidden] { display: none; }
.empty-row td { text-align: center; color: var(--ink-3); padding: 32px 16px; }
tr.group th { background: var(--surface-2); padding: 12px 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--ink); font-size: .9375rem; font-weight: 600; white-space: normal; }
tbody tr.group:first-child th { border-top: 0; }
.group-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.group-in .lt { width: 24px; height: 24px; border-radius: 7px; }
.group-in .lt img { width: 15px; height: 15px; }
.group-in a { font-size: .8125rem; font-weight: 500; }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; padding: 6px 16px 0; border-bottom: 1px solid var(--rule); }
.toolbar-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0 10px; }
.tabs { display: flex; gap: 4px; margin-bottom: -1px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 12px 13px; font: 600 .9375rem var(--font-text); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab .count { font-weight: 400; color: var(--ink-3); margin-left: 5px; font-variant-numeric: tabular-nums; }
.table-filter { display: none; }
.filters { display: grid; grid-template-columns: minmax(200px, 1.6fr) repeat(2, minmax(150px, 1fr)) auto; gap: 12px 16px; align-items: end; padding: 16px; border-bottom: 1px solid var(--rule); }
.filters .checks { display: flex; flex-direction: column; gap: 6px; padding-bottom: 2px; }
.filters .checks .check-row { font-size: .875rem; }
.filter-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 16px; border-bottom: 1px solid var(--rule); font-size: .875rem; color: var(--ink-3); }
.filter-foot .toolbar-controls { padding: 0; }
.more-btn[hidden] { display: none; }
/* Sticky column headers on wide screens. The wrapper must not be a scroll container there. */
@media (min-width: 1100px) {
  .table-wrap:has(> table.ptable) { overflow: visible; }
  table.ptable thead th { position: sticky; top: var(--header-h); z-index: 2; }
}
/* tablets: drop cached input and release date */
@media (min-width: 761px) and (max-width: 1023px) {
  .ptable .c-cached, .ptable .c-rel { display: none; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* phones: rows become a list with the price pair on the right */
@media (max-width: 760px) {
  .toolbar { padding: 12px 12px 0; align-items: stretch; flex-direction: column; flex-wrap: nowrap; gap: 10px; border-bottom: 1px solid var(--rule); }
  .toolbar > * { min-width: 0; }
  .table-filter { display: block; }
  .table-filter .input { height: 44px; border-radius: 12px; padding-left: 38px; font-size: 1rem; }
  .table-filter { position: relative; }
  .table-filter svg { position: absolute; left: 13px; top: 14px; color: var(--ink-3); pointer-events: none; }
  .tabs { gap: 6px; margin-bottom: 0; }
  .tab { height: 36px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .875rem; }
  .tab .count { display: none; }
  .tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .toolbar-controls { padding: 0 0 12px; gap: 6px; }
  .toolbar-controls::before { content: "Input / output per 1M"; flex-basis: 100%; font-size: .8125rem; color: var(--ink-3); }
  .toolbar-controls .select-sm { padding: 0 24px 0 9px; background-position: calc(100% - 13px) 54%, calc(100% - 8px) 54%; }
  .filters { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .filters .checks { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  table.ptable thead { display: none; }
  table.ptable, table.ptable tbody { display: block; }
  table.ptable tr[data-id] { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--rule-soft); }
  table.ptable td { border: 0; padding: 0; background: none; }
  table.ptable td.model-cell { min-width: 0; width: auto; padding-right: 10px; }
  table.ptable .mc { gap: 10px; }
  table.ptable .mc .lt { width: 32px; height: 32px; border-radius: 9px; }
  table.ptable .mc .lt img { width: 19px; height: 19px; }
  table.ptable .mc-name { gap: 2px 8px; }
  table.ptable td.c-in, table.ptable td.c-out { font-weight: 600; font-size: .9375rem; }
  table.ptable td.c-out::before { content: "/"; color: var(--ink-4); margin: 0 5px; font-weight: 400; }
  table.ptable td.c-cached, table.ptable td.c-ctx, table.ptable td.c-rel { display: none; }
  table.ptable .mname::after { content: ""; position: absolute; inset: 0; }
  table.ptable .mc-name .chip { position: relative; }
  table.ptable tr.group { display: block; }
  table.ptable tr.group th { display: block; padding: 10px 14px; }
  table.ptable tr[hidden], table.ptable tr.group[hidden] { display: none; }
  table.ptable .empty-row, table.ptable .empty-row td { display: block; }
  .card-foot { padding: 12px; }
  .card-foot .btn { width: 100%; }
}
/* compact key/value and comparison tables */
table.spec th, table.spec td { padding: 12px 16px; }
table.spec tbody th { font-weight: 500; color: var(--ink-2); }
table.spec .caption { display: block; font-weight: 400; margin-top: 2px; }
table.spec thead th { color: var(--ink-3); }
table.spec thead th a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: .9375rem; }
table.spec thead th a:hover { color: var(--accent); text-decoration: underline; }
table.spec td.big { font-weight: 600; font-size: 1.0625rem; }
.spec-head { display: flex; align-items: center; gap: 10px; }
.spec-head .caption { display: block; font-weight: 400; }

/* ---------- lists ---------- */
.chg-list, .ll-list { list-style: none; margin: 0; padding: 0; }
.chg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); font-size: .9375rem; line-height: 1.45; align-items: start; }
.chg:last-child { border-bottom: 0; }
.chg-date { display: block; color: var(--ink-3); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.chg-text .src { margin-left: 4px; }
.ll { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink); text-decoration: none; font-size: .9375rem; line-height: 1.4; }
.ll-list > li:last-child > .ll { border-bottom: 0; }
.ll:hover { color: var(--ink); }
.ll:hover .ll-t { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ll-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ll-t { font-weight: 600; }
.ll-d { font-size: .875rem; color: var(--ink-3); }
.ll-m { margin-left: auto; padding-left: 8px; color: var(--ink-3); font-size: .875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ll-plain .ll-t { font-weight: 500; }
.ll-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.ll-grid > li:nth-last-child(2):nth-child(odd) > .ll { border-bottom: 0; }
@media (max-width: 760px) { .ll-grid { grid-template-columns: minmax(0, 1fr); } .ll-grid > li:nth-last-child(2):nth-child(odd) > .ll { border-bottom: 1px solid var(--rule-soft); } }
.calc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.calc-tile { display: flex; flex-direction: column; gap: 4px; }
.calc-tile .ic { margin-bottom: 8px; }
.calc-tile-t { font-weight: 600; }
.calc-tile:hover .calc-tile-t { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
a.src { color: var(--ink-3); text-decoration: none; font-size: .8125rem; white-space: nowrap; }
a.src:hover { color: var(--accent); text-decoration: underline; }
.bullets { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.bullets li { margin: 6px 0; }
.bullets li::marker { color: var(--ink-4); }

/* ---------- FAQ ---------- */
.faq-section { margin-top: 56px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.faq-item { border-top: 1px solid var(--rule-strong); padding: 14px 0; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: .9375rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 800px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- model and provider pages ---------- */
.band { --brand: var(--accent); background: var(--surface-3); background: color-mix(in srgb, var(--brand) 11%, var(--paper)); padding: 36px 0 124px; }
.band-duo { background: var(--surface-3); background: linear-gradient(100deg, color-mix(in srgb, var(--brand-a) 11%, var(--paper)) 20%, color-mix(in srgb, var(--brand-b) 11%, var(--paper)) 80%); }
.vs-logos { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.vs-logos .vs { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--ink-3); }
.band .breadcrumb, .band .breadcrumb a { color: var(--ink-2); }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 24px; }
.band-id { display: flex; align-items: center; gap: 20px; min-width: 0; }
.band-meta { margin: 0 0 6px; font-size: .875rem; color: var(--ink-2); }
.band h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.125rem); }
.band-lede { margin: 18px 0 0; max-width: 72ch; color: var(--ink-2); }
.band-lede strong { color: var(--ink); }
.overlap { margin-top: -88px; position: relative; }
.rate-card { padding: 8px 0; }
.rate-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 24px 2px; }
.rate-head h2 { font-size: 1.375rem; }
.rates { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rate { padding: 16px 24px; min-width: 0; }
.rate + .rate { border-left: 1px solid var(--rule-soft); }
.rate .k { font-size: .8125rem; color: var(--ink-3); }
.rate .v { font-size: 2rem; font-weight: 600; line-height: 1.15; margin-top: 6px; letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.rate .v .dim { font-weight: 500; }
.rate .s { font-size: .8125rem; color: var(--ink-2); margin-top: 2px; }
.rate .s .down { color: var(--down); font-weight: 600; }
.note-card { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--ink); font-size: .9375rem; }
.note-card strong { color: var(--warn); }
.dl { margin: 0; }
.dl-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule-soft); font-size: .9375rem; }
.dl-row:last-child { border-bottom: 0; }
.dl-k { color: var(--ink-3); }
.dl-v { min-width: 0; }
.vcard { padding: 18px 20px 16px; scroll-margin-top: calc(var(--header-h) + 20px); }
.vcard:target { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hl) 80%, transparent); }
.vcard-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vcard-head h3 { font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600; letter-spacing: -.005em; }
.vcard-meta { margin: 4px 0 0; font-size: .8125rem; color: var(--ink-3); }
.vcard-price { margin: 10px 0 0; font-size: .875rem; color: var(--ink-3); }
.vcard-price .vp { font-size: 1.25rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; margin-right: 4px; white-space: nowrap; }
.vp-terms { display: block; margin-top: 2px; color: var(--ink-2); }
.vcard-notes { margin: 12px 0 0; padding-left: 1.1em; font-size: .875rem; color: var(--ink-2); }
.vcard-notes li { margin: 4px 0; }
.vcard-foot { margin: 10px 0 0; font-size: .8125rem; color: var(--ink-3); }
.contender { padding: 20px 22px; }
.contender-head { display: flex; align-items: center; gap: 12px; }
.contender-head h2 { font-family: var(--font-text); font-size: 1.125rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.contender-head a { color: var(--ink); text-decoration: none; }
.contender-head .chip { margin-left: auto; }
.contender-head a:hover { color: var(--accent); text-decoration: underline; }
.contender .rates { margin: 14px -22px 0; border-top: 1px solid var(--rule-soft); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contender .rate { padding: 12px 22px 2px; }
.contender .rate .v { font-size: 1.5rem; }
.provider-card { padding: 18px 20px; }
.provider-card h2 { font-family: var(--font-text); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.provider-card h2 a { color: var(--ink); text-decoration: none; }
.provider-card h2 a:hover { color: var(--accent); text-decoration: underline; }
.provider-card .dl-row { grid-template-columns: 110px minmax(0, 1fr); font-size: .875rem; padding: 8px 0; }
@media (max-width: 900px) {
  .rates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rates > .rate:nth-child(4) { border-left: 0; }
  .rates > .rate:nth-child(n+4) { border-top: 1px solid var(--rule-soft); }
}
@media (max-width: 760px) {
  .band { padding: 22px 0 100px; }
  .band-id { gap: 14px; align-items: flex-start; }
  .band .lt-lg { width: 56px; height: 56px; border-radius: 14px; }
  .band .lt-lg img { width: 30px; height: 30px; }
  .band-cta { width: 100%; }
  .band-cta .btn { flex: 1 1 auto; }
  .overlap { margin-top: -72px; }
  .rate-head { padding: 12px 18px 0; }
  .band-duo .band-id { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 560px) {
  .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rates > .rate { border-left: 0; border-top: 0; padding: 14px 18px; }
  .rates > .rate:nth-child(even) { border-left: 1px solid var(--rule-soft); }
  .rates > .rate:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
  .rates > .rate:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rate .v { font-size: 1.625rem; }
  .contender .rates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contender .rates > .rate, .contender .rates > .rate:nth-child(n+3) { padding: 12px 14px 2px; border-top: 0; }
  .contender .rates > .rate:last-child:nth-child(odd) { grid-column: auto; }
  .contender .rates > .rate + .rate { border-left: 1px solid var(--rule-soft); }
  .contender .rate .v { font-size: 1.125rem; }
  .dl-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  table.spec th, table.spec td { padding: 10px 12px; font-size: .875rem; }
  table.spec td.big { font-size: .9375rem; }
  .spec-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---------- stats and bars (calculators, index) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; min-width: 0; }
.stat .k { font-size: .8125rem; color: var(--ink-3); }
.stat .v { font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin-top: 4px; letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; overflow-wrap: anywhere; }
.stat .s { font-size: .8125rem; color: var(--ink-2); margin-top: 2px; }
.stat-hl .v { box-shadow: var(--hl-shadow); color: var(--hl-ink); display: inline; }
.hbars { display: grid; gap: 8px; --reserve: 150px; }
.hbars-wide { --reserve: 250px; }
.hbar { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: 12px; align-items: center; font-size: .875rem; }
.hbar .name { display: flex; align-items: center; gap: 8px; color: var(--ink-2); line-height: 1.3; min-width: 0; }
.hbar .name a { color: inherit; text-decoration: none; }
.hbar .name a:hover { color: var(--accent); text-decoration: underline; }
.hbar .track { display: flex; align-items: center; gap: 10px; min-height: 26px; border-radius: 4px; }
.hbar button.track { all: unset; display: flex; align-items: center; gap: 10px; min-height: 26px; cursor: pointer; border-radius: 4px; }
.hbar button.track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hbar .fill { width: calc((100% - var(--reserve)) * var(--r, 0)); height: 12px; background: color-mix(in srgb, var(--chart-2) 42%, var(--surface)); border-radius: 0 4px 4px 0; min-width: 2px; flex: 0 0 auto; }
.hbar.sel .fill { background: var(--chart-1); }
.hbar.sel .name { color: var(--ink); font-weight: 600; }
.hbar .val { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); font-size: .8125rem; font-weight: 500; }
.hbar .val .dim { font-weight: 400; }
@media (max-width: 560px) {
  .hbars { --reserve: 0px; gap: 12px; }
  .hbar { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hbar .track, .hbar button.track { flex-wrap: wrap; gap: 4px 10px; }
  .hbar .fill { order: 2; }
  .hbar .val { order: 1; flex-basis: 100%; white-space: normal; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-grid > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat { padding: 14px 16px; }
  .stat .v { font-size: 1.5rem; }
}

/* ---------- calculators ---------- */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 20px 22px; }
.panel + .panel { margin-top: 16px; }
.panel-title { font-weight: 600; margin: 0 0 14px; }
details.panel > summary { cursor: pointer; font-weight: 600; }
.calc-layout { display: grid; grid-template-columns: minmax(290px, 390px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: minmax(0, 1fr); } }
.preset-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fit-ok { color: var(--down); font-weight: 600; }
.fit-offload { color: var(--warn); font-weight: 600; }
.fit-no { color: var(--up); font-weight: 600; }
.model-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 20px; }
.model-checks[hidden] { display: none; }
.check-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.check-group legend { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0 0 6px; font-size: .8125rem; font-weight: 600; color: var(--ink); }
.check-group .check-row { display: flex; font-size: .875rem; padding: 3px 0; line-height: 1.35; }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 11px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.kv li:last-child { border-bottom: 0; }
.kv .k { font-size: .8125rem; color: var(--ink-3); grid-column: 1 / -1; }
.kv .v { font-weight: 600; }
.kv .v a { color: var(--ink); text-decoration: none; }
.kv .v a:hover { color: var(--accent); text-decoration: underline; }
.kv .n { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.kv-title { font-size: .8125rem; font-weight: 600; color: var(--ink); margin: 0 0 8px; }

/* ---------- articles ---------- */
.article-head { max-width: var(--measure); padding-block: 36px 26px; }
.article-head .lede { margin-top: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .875rem; color: var(--ink-3); margin-top: 16px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(220px, 280px); gap: 64px; align-items: start; justify-content: space-between; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; font-size: .875rem; }
.article-aside .card { padding: 16px 18px; }
.toc { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--accent); }
.toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
.aside-calcs .ll { padding: 8px 0; font-size: .875rem; }
.aside-calcs .ic { width: 30px; height: 30px; border-radius: 8px; }
.aside-calcs .ic svg { width: 17px; height: 17px; }
.article-foot { max-width: var(--measure); margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); }
@media (max-width: 1100px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .article-aside { display: none; } }
.article-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-card { position: relative; padding: 20px 22px 22px; display: flex; flex-direction: column; }
.article-card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-lift); }
.kicker { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8125rem; color: var(--ink-3); }
.kicker .chip { font-size: .75rem; }
.article-card h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.2; letter-spacing: -.005em; margin: 8px 0 8px; }
.article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.article-card:hover h3 a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.article-card p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 760px) { .article-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- prose ---------- */
.prose { max-width: var(--measure); font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { margin: 2em 0 .6em; }
.prose > :first-child, .prose > .note + h2 { margin-top: 0; }
.prose h3 { margin: 1.8em 0 .5em; font-size: 1.1875rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--ink-3); }
.prose img { height: auto; border-radius: 10px; }
.prose .table-wrap { margin: 1.5em 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.prose .table-wrap table { font-size: .9375rem; }
.prose .table-wrap th, .prose .table-wrap td { padding: 10px 14px; }
.prose .table-wrap tbody tr:last-child > * { border-bottom: 0; }
.prose .table-wrap + .caption { margin-top: -.8em; }
.prose thead th { position: static; }
.prose blockquote { margin: 1.5em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--hl); color: var(--ink-2); }
.prose pre { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: .875rem; line-height: 1.55; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose figure { margin: 2em 0; }
.note { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--hl); border-radius: 12px; padding: 16px 18px; margin: 0 0 1.6em; font-size: .9375rem; line-height: 1.6; }
.note .note-label { display: block; font-size: .8125rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.note p:last-child { margin-bottom: 0; }

/* ---------- figures & charts ---------- */
.figure { margin: 0; }
.figure figcaption { font-size: .8125rem; color: var(--ink-3); margin-top: 10px; max-width: 72ch; }
.chart { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-text); }
.chart:focus-visible { outline-offset: 4px; }
.chart .grid line { stroke: var(--chart-grid); stroke-width: 1; }
.chart .base { stroke: var(--chart-base); stroke-width: 1; }
.chart text { fill: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-mini text { font-size: 11px; }
.chart .lbl { fill: var(--ink); font-weight: 600; font-size: 12px; }
.chart .lbl-2 { fill: var(--ink-2); }
.chart .s1 { stroke: var(--chart-1); } .chart .f1 { fill: var(--chart-1); }
.chart .s2 { stroke: var(--chart-2); } .chart .f2 { fill: var(--chart-2); }
.chart .s3 { stroke: var(--chart-3); } .chart .f3 { fill: var(--chart-3); }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-strong { stroke-width: 2.5; }
.chart .dot-end { stroke: var(--surface); stroke-width: 2; }
.chart .bar { fill: var(--chart-2); }
.chart .bar.hi { fill: var(--chart-1); }
.chart .bar.lo { fill: var(--chart-base); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart .hit:focus + .bar { opacity: .8; }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.cat-1 { --c: #2a78d6; } .cat-2 { --c: #eb6834; } .cat-3 { --c: #1baf7a; } .cat-4 { --c: #eda100; }
:root[data-theme="dark"] .cat-1 { --c: #3987e5; } :root[data-theme="dark"] .cat-2 { --c: #d95926; } :root[data-theme="dark"] .cat-3 { --c: #199e70; } :root[data-theme="dark"] .cat-4 { --c: #c98500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cat-1 { --c: #3987e5; } :root:not([data-theme="light"]) .cat-2 { --c: #d95926; } :root:not([data-theme="light"]) .cat-3 { --c: #199e70; } :root:not([data-theme="light"]) .cat-4 { --c: #c98500; } }
.chart .cat { stroke: var(--c); } .chart .cat-fill { fill: var(--c); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8125rem; color: var(--ink-2); margin: 0 0 12px; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend .key { width: 14px; height: 2px; background: var(--c, var(--ink)); display: inline-block; }
.legend .key.box { height: 10px; width: 10px; border-radius: 2px; }
.legend .key.dash { background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 8px); }
.legend .key.s1 { background: var(--chart-1); } .legend .key.s2 { background: var(--chart-2); } .legend .key.s3 { background: var(--chart-3); }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--paper); font-size: .8125rem; line-height: 1.45; padding: 8px 10px; border-radius: 8px; max-width: 280px; opacity: 0; transform: translateY(4px); transition: opacity .1s, transform .1s; box-shadow: var(--shadow-pop); font-variant-numeric: tabular-nums; }
.tip.on { opacity: 1; transform: none; }
.tip b { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 2px; }
details.table-view { margin-top: 10px; font-size: .875rem; }
details.table-view summary { cursor: pointer; color: var(--accent); }
details.table-view .table-wrap { margin-top: 10px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 80px; background: var(--paper-2); border-top: 1px solid var(--rule); padding-block: 48px 36px; font-size: .875rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand .brand { font-size: 1.25rem; }
.foot-brand p { margin: 12px 0 0; max-width: 36ch; }
.foot-verified { display: inline-flex; align-items: center; gap: 6px; color: var(--down); font-weight: 500; }
.foot-currency { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.foot-grid h2 { font-family: var(--font-text); font-size: .8125rem; font-weight: 600; color: var(--ink); margin: 0 0 12px; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); text-decoration: underline; }
.foot-base { display: grid; gap: 6px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--ink-3); }
.foot-base p { margin: 0; }
.foot-base a { color: var(--ink-3); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ---------- search dialog (phones) ---------- */
.search-dialog { border: 1px solid var(--rule); background: var(--surface); color: var(--ink); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: min(78vh, 600px); border-radius: 14px; box-shadow: var(--shadow-pop); margin-top: 8vh; overflow: hidden; }
.search-dialog::backdrop { background: rgba(21, 19, 15, .45); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--rule); color: var(--ink-3); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1.0625rem var(--font-text); color: var(--ink); outline: none; height: 40px; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-box .icon-btn { border: 0; background: transparent; }
.search-results { list-style: none; margin: 0; padding: 6px; overflow-y: auto; max-height: calc(min(78vh, 600px) - 62px); }

/* ---------- misc ---------- */
.error-code { font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--ink-4); }
.table-note { font-size: .8125rem; color: var(--ink-3); margin: 12px 0 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print {
  .masthead, .site-footer, .tools, .toolbar, .subnav, .band-cta, .card-foot .btn, .article-aside { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .card { box-shadow: none; border-color: #ccc; }
  .band { background: none; padding: 0 0 16px; }
  .overlap { margin-top: 0; }
  a { color: inherit; }
}
