
:root,html.v-theme--dark:not([data-theme-page]) main{
  color-scheme:light;
  /* surfaces */
  --c-page:#eef2f5;--c-canvas:#fff;--c-card:#fff;--c-raised:#fff;--c-tile:#f3f6f9;--c-note:#eaf2f8;--c-pale:#e4eef6;
  --c-control:#fff;--c-hover:#f3f6f9;--c-selected:#e7f0f7;
  --c-band:#0f2836;--c-band-raised:#1b3443;--c-glass:rgba(255,255,255,.92);
  --c-logo-tile:#fff;--c-cutout-tile:transparent;--c-photo-frame:#f4f7f9;
  /* the thin light rim that follows a cut-out's own shape on a dark surface (none in light); the light tile behind a
     picture on the band (the market pages: light in light, none in dark) */
  --c-cutout-rim:transparent;--c-band-pic-tile:transparent;
  /* the rim as a filter step to write before a page's own ground shadow: filter:var(--c-cutout-rim-fx) drop-shadow(…).
     EMPTY in light (not a transparent shadow: that re-rasterises the ground shadow by a few levels), so a light page
     computes exactly the filter it had */
  --c-cutout-rim-fx: ;
  /* text */
  --c-ink:#14212b;--c-body:#2f3d48;--c-muted:#55626e;--c-faint:#7d8996;--c-link:#1d6591;--c-link-line:rgba(29,101,145,.45);
  --c-deep:#1E5873;--c-on-pale:#163f56;
  --c-on-band:#fff;--c-on-band-body:#dfe9f1;--c-on-band-muted:#c9dae6;--c-on-band-line:rgba(255,255,255,.16);
  /* lines */
  --c-line:#d3dbe3;--c-hairline:#e6ebf0;--c-line-strong:#9fb0c0;--c-edge:#6a97b5;
  /* action */
  --c-brand:#286A93;--c-brand-hover:#1E5873;--c-on-brand:#fff;--c-focus:#0b5cad;--c-accent:#e04b4b;--c-accent-ink:#c03535;
  /* the reader's own choice (amber) */
  --c-pick:#f5b83d;--c-pick-ink:#14212b;--c-pick-tint:#fff6dc;--c-pick-edge:#d9b24a;--c-pick-text:#6b4a00;
  /* data */
  --c-series:#286A93;--c-mark:#14212b;--c-range:#b7d2e5;--c-range-strong:#9fc5e0;
  --c-lower:#1F5A8F;--c-higher:#AD5F1C;--c-higher-text:#9A5418;--c-same:#DFE5EA;--c-same-edge:#7d8791;--c-on-mark:#fff;
  /* the same roles as large filled areas (columns, bars, map states, chips, selected / pressed cells): equal to the
     roles above in light; calmer in dark, where the roles above stay bright for text, thin lines, dots and links */
  --c-brand-fill:#286A93;--c-brand-fill-hover:#1E5873;--c-series-fill:#286A93;--c-lower-fill:#1F5A8F;--c-higher-fill:#AD5F1C;
  --c-side-a-fill:#286A93;--c-side-b-fill:#AD5F1C;--c-pt-gas-fill:#286A93;--c-pt-hybrid-fill:#AD5F1C;--c-pt-plug-fill:#2E7D4F;--c-pt-phev-fill:#7a3d9e;
  --c-nodata:#f4f6f8;--c-nodata-hatch:repeating-linear-gradient(135deg,#f4f6f8 0 4px,#c3ccd5 4px 6px);
  --c-grid:#e6ebf0;--c-axis:#55626e;--c-axis-line:#aab6c1;--c-track:#dfe5ea;
  /* sequential scale (choropleth: few → many), and the label colour on each step */
  --c-seq-1:#dbe7f0;--c-seq-2:#a3c1d9;--c-seq-3:#5d8fb5;--c-seq-4:#286A93;--c-seq-5:#163f56;
  --c-on-seq-1:#14212b;--c-on-seq-2:#14212b;--c-on-seq-3:#14212b;--c-on-seq-4:#fff;--c-on-seq-5:#fff;
  /* compare: side A / side B */
  --c-side-a:#286A93;--c-side-a-bar:#9fc5e0;--c-side-a-tint:#e4eef6;
  --c-side-b:#AD5F1C;--c-side-b-bar:#eccaa9;--c-side-b-tint:#f8ebe0;
  /* powertrains */
  --c-pt-gas:#286A93;--c-pt-gas-tint:#e4eef6;--c-pt-hybrid:#AD5F1C;--c-pt-hybrid-tint:#f8ebe0;
  --c-pt-plug:#2E7D4F;--c-pt-plug-tint:#e3f1e8;--c-pt-phev:#7a3d9e;
  /* status */
  --c-ok:#14713A;--c-ok-tint:#e3f1e8;--c-warn-ink:#6e4700;--c-warn-tint:#fdf1d8;--c-warn-edge:#f0d9a8;--c-bad:#b3261e;--c-bad-tint:#fdeeee;
  /* depth */
  --c-shadow:rgba(20,33,43,.16);--c-shadow-soft:rgba(20,33,43,.1);--c-shadow-deep:rgba(6,20,30,.18);--c-scrim:rgba(20,33,43,.5);
  /* site chrome = the main site's own values (header, drawer, Help panel, footer) */
  --c-site-header:linear-gradient(90deg,#286A93 0%,#2F78A5 100%);
  --c-site-search:#fff;--c-site-search-hover:#fff;--c-site-search-text:#2F323A;--c-site-search-icon:#888;--c-site-search-hint:#999;
  --c-site-search-shadow:0 1px 4px rgba(0,0,0,.1);--c-site-search-shadow-hover:0 2px 8px rgba(0,0,0,.15);--c-site-search-shadow-focus:0 2px 8px rgba(0,0,0,.18);
  --c-site-surface:#fff;--c-site-text:#3a4854;--c-site-heading:#17242f;--c-site-secondary:#5c6b80;--c-site-border:#c9d3dd;--c-site-border-light:#e5eaf0;
  --c-site-accent:#f0f7fc;--c-site-primary:#286A93;--c-site-on-primary:#fff;--c-site-drawer-text:rgba(0,0,0,.87);--c-site-drawer-edge:rgba(0,0,0,.12);
  --c-site-overlay-hover:rgba(0,0,0,.04);--c-site-overlay-current:rgba(0,0,0,.1);--c-site-divider:rgba(128,128,128,.12);
  --c-site-muted:#66768a;--c-site-hover:#f0f3f7;--c-site-emphasis:.6;
}
html.v-theme--dark{
  color-scheme:dark;
  --c-page:#14181D;--c-canvas:#14181D;--c-card:#232B35;--c-raised:#2A333E;--c-tile:#1C232B;--c-note:#1C2B38;--c-pale:#1F3447;
  --c-control:#1A2028;--c-hover:#2A333E;--c-selected:#213A50;
  --c-band:#1E3344;--c-band-raised:#29455C;--c-glass:rgba(35,43,53,.92);
  --c-logo-tile:#F1F4F7;--c-cutout-tile:transparent;--c-photo-frame:#2A333E;
  --c-cutout-rim:rgba(232,237,242,.45);--c-band-pic-tile:transparent;
  --c-cutout-rim-fx:drop-shadow(0 0 1px rgba(232,237,242,.45));
  --c-ink:#E8EDF2;--c-body:#C6CED6;--c-muted:#9AA6B4;--c-faint:#7E8A97;--c-link:#67B7D8;--c-link-line:rgba(103,183,216,.5);
  --c-deep:#8CC4EA;--c-on-pale:#CFE3F2;
  --c-on-band:#fff;--c-on-band-body:#DFE9F1;--c-on-band-muted:#BCCFDD;--c-on-band-line:rgba(255,255,255,.18);
  --c-line:#3A4550;--c-hairline:#2A333E;--c-line-strong:#5A6672;--c-edge:#6F93AF;
  --c-brand:#4A9ED6;--c-brand-hover:#6BB2E0;--c-on-brand:#0B1A26;--c-focus:#8AB8F0;--c-accent:#e04b4b;--c-accent-ink:#F08A8A;
  --c-pick:#E8AE42;--c-pick-ink:#14212b;--c-pick-tint:#36332B;--c-pick-edge:#C99A33;--c-pick-text:#F0D493;
  --c-series:#4A9ED6;--c-mark:#E8EDF2;--c-range:#3D6788;--c-range-strong:#4E7FA6;
  --c-lower:#6FAEE6;--c-higher:#E39A5E;--c-higher-text:#EBA56D;--c-same:#4A5560;--c-same-edge:#8D99A5;--c-on-mark:#0B1A26;
  --c-brand-fill:#4E89B3;--c-brand-fill-hover:#5E96BF;--c-series-fill:#4E89B3;--c-lower-fill:#4E89B3;--c-higher-fill:#B9794A;
  --c-side-a-fill:#4E89B3;--c-side-b-fill:#B9794A;--c-pt-gas-fill:#4E89B3;--c-pt-hybrid-fill:#B9794A;--c-pt-plug-fill:#5E9C72;--c-pt-phev-fill:#B49AD0;
  --c-nodata:#1C232B;--c-nodata-hatch:repeating-linear-gradient(135deg,#232B35 0 4px,#46525E 4px 6px);
  --c-grid:#2F3945;--c-axis:#9AA6B4;--c-axis-line:#5A6672;--c-track:#2F3945;
  --c-seq-1:#1F3447;--c-seq-2:#2B4F6E;--c-seq-3:#38668F;--c-seq-4:#5B8DB6;--c-seq-5:#86AECF;
  --c-on-seq-1:#fff;--c-on-seq-2:#fff;--c-on-seq-3:#fff;--c-on-seq-4:#0B1A26;--c-on-seq-5:#0B1A26;
  --c-side-a:#5AA8DC;--c-side-a-bar:#3D6E93;--c-side-a-tint:#1F3447;
  --c-side-b:#E39A5E;--c-side-b-bar:#7A4E2C;--c-side-b-tint:#3A2A1E;
  --c-pt-gas:#5AA8DC;--c-pt-gas-tint:#1F3447;--c-pt-hybrid:#E39A5E;--c-pt-hybrid-tint:#3A2A1E;
  --c-pt-plug:#6CC08A;--c-pt-plug-tint:#1B3326;--c-pt-phev:#C59AE6;
  --c-ok:#7CC58A;--c-ok-tint:#1B3326;--c-warn-ink:#E2BC6E;--c-warn-tint:#3A2E14;--c-warn-edge:#6B5523;--c-bad:#F2A096;--c-bad-tint:#3A2020;
  --c-shadow:rgba(0,0,0,.5);--c-shadow-soft:rgba(0,0,0,.35);--c-shadow-deep:rgba(0,0,0,.55);--c-scrim:rgba(0,0,0,.6);
  --c-site-header:linear-gradient(135deg,#1a2a35 0%,#1e3344 60%,#223d50 100%);
  --c-site-search:rgba(255,255,255,.1);--c-site-search-hover:rgba(255,255,255,.14);--c-site-search-text:#e0e0e0;--c-site-search-icon:#aaa;--c-site-search-hint:#999;
  --c-site-search-shadow:0 1px 4px rgba(0,0,0,.3);--c-site-search-shadow-hover:0 2px 8px rgba(0,0,0,.4);--c-site-search-shadow-focus:0 2px 8px rgba(0,0,0,.45);
  --c-site-surface:#232B35;--c-site-text:#C6CED6;--c-site-heading:#E8EDF2;--c-site-secondary:#9AA6B4;--c-site-border:#3A4550;--c-site-border-light:#2A333E;
  --c-site-accent:#1C2B38;--c-site-primary:#4A9ED6;--c-site-on-primary:#0B1A26;--c-site-drawer-text:#C6CED6;--c-site-drawer-edge:rgba(255,255,255,.12);
  --c-site-overlay-hover:rgba(198,206,214,.04);--c-site-overlay-current:rgba(198,206,214,.12);--c-site-divider:rgba(128,128,128,.12);
  --c-site-muted:#96a2b0;--c-site-hover:#2A333E;--c-site-emphasis:.7;
}
/* Fuel-economy pages (layouts/research/_fuel_page_css): the empty part of a dollar ruler on the chosen, brand-filled
   body-type tile (light: white at 35 % on #286A93, today's value; dark: the on-brand ink at 30 % on #4A9ED6). It is a
   track, not text: the filled part is --c-on-brand (5.88:1 light, 6.01:1 dark on --c-brand). */
:root,html.v-theme--dark:not([data-theme-page]) main{--c-fe-on-brand-track:rgba(255,255,255,.35)}
html.v-theme--dark{--c-fe-on-brand-track:rgba(11,26,38,.3)}
/* Trend pages (/research/model-price-trends, /research/used-car-price-index; layouts/research/_trends_page_css).
   On the band: the movement figure in the band sentence (lower 6.01:1 / higher 6.82:1 light, 6.52 / 6.37 dark on
   --c-band), the band's links and their underline (9.70 / 8.29), the outline of the pair switch. On cards: the underline
   of an ink link, the one picture slot behind model photos and make logos (light in both themes: logos are drawn for
   white), the two shaded four-week windows of the 26-week lines (dark: lighter than the card, 1.24:1; the lines on it
   4.89 / 5.0), and the pressed state of a filter cell (white on navy 15.25 light; ink on brand 6.01 dark). */
:root,html.v-theme--dark:not([data-theme-page]) main{--c-lower-on-band:#7fa7c9;--c-higher-on-band:#e0a066;--c-on-band-link:#b7d2e5;--c-on-band-link-line:rgba(183,210,229,.6);--c-on-band-edge:rgba(255,255,255,.45);--c-ink-line:rgba(20,33,43,.35);--c-pic-slot:#eef2f5;--c-chart-window:#eef2f5;--c-pressed:#0f2836;--c-on-pressed:#fff}
html.v-theme--dark{--c-lower-on-band:#8FBCE6;--c-higher-on-band:#E8A86F;--c-on-band-link:#b7d2e5;--c-on-band-link-line:rgba(183,210,229,.6);--c-on-band-edge:rgba(255,255,255,.45);--c-ink-line:rgba(232,237,242,.4);--c-pic-slot:#F1F4F7;--c-chart-window:#2F3A46;--c-pressed:#4A9ED6;--c-on-pressed:#0B1A26}
/* best-cars pages (_best_page_css, /research/best and /research/best/:list): the solid ink mark — numeral discs, the
   "No. 1" badge on a photo, the current budget cell, the 2 px edge of "the car you looked for". Navy on a light card,
   a light disc on a dark card (the band colour #1E3344 would vanish on the dark card). Contrast: the numeral on the
   disc 15.25 light / 15.13 dark; the disc on the card 15.25 / 12.14, on the page 13.55 / 15.13. */
:root,html.v-theme--dark:not([data-theme-page]) main{--c-solid:#0f2836;--c-on-solid:#fff}
html.v-theme--dark{--c-solid:#E8EDF2;--c-on-solid:#14181D}
/* State pages v2 (/research/states, /research/states/:state, /research/prices/:make/:model/:state) and the shared US map
   (research_states/_geo_map, _geo_keys, layouts/research/_geo_map_css — also rendered by the model price page and the
   Statistics page, so the map takes every colour from here, never from its host page). Light = the exact values these
   pages had; dark contrast-checked in tests/unit/research-state-pages-theme.test.mjs:
   map-nodata: a "not enough listings" state (white in light; darker than the card in dark, with map-nodata-edge 4.1:1);
   map-out: a state outside a locator's view (quieter than "about the same"); on-same: a label on an "about the same"
   fill (6.5:1 dark); quiet-mark: the "nationally" mark of the charts and the share meters (4.9:1 dark on card);
   band-shape / band-locator: the state's silhouette and the US locator on the band; on-band-chip-edge: the city chips'
   outline on the closing card; chip-note: the small second line inside an "about the same" chip; on-band-underline:
   the underline of links on the band; shadow-stamp: the shadow of the state stamp on the model photo. */
:root,html.v-theme--dark:not([data-theme-page]) main{--c-map-nodata:#fff;--c-map-nodata-edge:#aab6c1;--c-map-out:#f1f3f5;--c-on-same:#55626e;--c-quiet-mark:#7f8e9d;--c-band-shape:rgba(255,255,255,.06);--c-band-locator:#1b3a4d;--c-on-band-chip-edge:#a8c4d8;--c-chip-note:#3d4a55;--c-on-band-underline:rgba(255,255,255,.5);--c-shadow-stamp:rgba(6,20,30,.3)}
html.v-theme--dark{--c-map-nodata:#1A2028;--c-map-nodata-edge:#7E8A97;--c-map-out:#2C3640;--c-on-same:#E8EDF2;--c-quiet-mark:#8D99A5;--c-band-shape:rgba(255,255,255,.08);--c-band-locator:#2E4D64;--c-on-band-chip-edge:#A8C4D8;--c-chip-note:#DCE3EA;--c-on-band-underline:rgba(255,255,255,.5);--c-shadow-stamp:rgba(0,0,0,.55)}
/* Compare pages (/research/compare and the pair pages; layouts/research/_compare_page_css, the trim panels): the
   8-in-10 range bar of each side as a chart mark — light = the side bars as today (--c-side-a-bar / --c-side-b-bar);
   dark ≥ 3:1 on the card (3.79 / 3.69), the raised surface (3.39 / 3.30) and the note, where --c-side-*-bar (2.6 / 2.0)
   stays a fill (calmer since 2026-12-01: saturation 33 / 36 %).
   The typical-price tick on it keeps a card-coloured ring (side colour on card 5.5 / 6.2). */
:root,html.v-theme--dark:not([data-theme-page]) main{--c-cmp-bar-a:#9fc5e0;--c-cmp-bar-b:#eccaa9}
html.v-theme--dark{--c-cmp-bar-a:#5C88AC;--c-cmp-bar-b:#A8774F}
/* Model price page (/research/prices/:make/:model; layouts/research/_price_page_css). pp-on-brand-track: on a chosen,
   brand-filled budget row, the empty segments of its model-year strip (white at 30 % light, today's value; the
   on-brand ink at 30 % dark); the filled segments are --c-on-brand, the line under the label --c-on-brand-muted.
   pp-note-edge: the outline of a note panel inside a card ("What this means for you") — none in light; in dark the
   note (#1C2B38) and the card (#232B35) have the same lightness (1.01:1), so the panel gets a 1 px edge (1.70:1). */
:root,html.v-theme--dark:not([data-theme-page]) main{--c-pp-on-brand-track:rgba(255,255,255,.3);--c-pp-note-edge:transparent}
html.v-theme--dark{--c-pp-on-brand-track:rgba(11,26,38,.3);--c-pp-note-edge:#34506A}
/* Front door (/research; layouts/research/_front_door_css) and model finder (/research/prices; _finder_css). Light =
   the exact values the two pages had; dark contrast-checked (ratios: light / dark).
   panel: a tinted panel standing on the page's white ground — the type tiles, the VIN panel, the citation note (in
   dark the ground is the page colour, so the panel is a card): ink on it 14.55 / 12.14, body 9.91 / 8.99, muted
   5.55 / 5.78, link 5.61 / 6.36. feature: the one filled tile, "All models" (text is --c-on-band: 7.78 / 10.00).
   band-field-edge: the edge of the search field on the band — none in light (the field is white on navy),
   4.0:1 against the band in dark, where the field is a dark well (--c-control). on-brand-muted: the count under the
   name on a chosen, brand-filled filter cell, also the second line of the model price page's chosen budget row and
   pressed year button (5.0 light; dark 4.67 on --c-brand-fill, 6.01 on --c-brand — the on-brand ink itself: a
   lighter ink fell to 4.0 on the calm fill). on-logo-tile: the letter standing in for a
   missing make logo on the logo tile, which is light in both themes (7.78 / 7.06). logo-bare: a logo standing on its
   cell with no tile in light; the light logo tile in dark (the logos are drawn for white). photo-tint: the cool
   multiply tint that makes the dealers' model photographs read as one set (a multiply layer: a little dimmer in
   dark). ground / ground-band: the soft shadow a car cut-out stands on — on the card (no tile in either theme since
   2026-12-01: --c-cutout-tile is transparent, the dark rim is --c-cutout-rim) and on the band or a filled tile. */
:root,html.v-theme--dark:not([data-theme-page]) main{--c-panel:#eef2f5;--c-feature:#1E5873;--c-band-field-edge:transparent;--c-on-brand-muted:#e3eef6;--c-on-logo-tile:#1E5873;--c-logo-bare:transparent;--c-photo-tint:#e3eaf0;--c-ground:rgba(20,33,43,.34);--c-ground-band:rgba(0,0,0,.6)}
html.v-theme--dark{--c-panel:#232B35;--c-feature:#29455C;--c-band-field-edge:#6F93AF;--c-on-brand-muted:#0B1A26;--c-on-logo-tile:#1E5873;--c-logo-bare:#F1F4F7;--c-photo-tint:#CDD6DE;--c-ground:rgba(20,33,43,.34);--c-ground-band:rgba(0,0,0,.6)}
/* Pictures ON the navy band (owner 2026-12-01: in the light theme too). The band is navy in both themes, so a cut-out on
   it gets what it gets on a dark card: no tile, the thin light rim (THEME.md §5). The band containers of the research
   pages; the values are the dark theme's, so dark does not change. A white cell inside a band (the best list's current
   budget cell) keeps the light theme's own values. Listed bands are held by tests/unit/research-theme-tokens.test.mjs. */
:where(.fr-hero,.fr-mkt,.mf-top,.pp-hero,.pp-end,.ch-hero,.cm-hero,.cm-end,.bh-band,.bp-band,.bp-end,.fe-hero,.fe-end,.tp-band,.tp-end,.mk-band,.rf-hero,.rf-end,.pd-band,.pd-end,.ws-band,.ws-close){--c-cutout-rim:rgba(232,237,242,.45);--c-cutout-rim-fx:drop-shadow(0 0 1px rgba(232,237,242,.45));--c-band-pic-tile:transparent}
html:not(.v-theme--dark) :where(.bp-sw .bp-cell[aria-current]){--c-cutout-rim:transparent;--c-cutout-rim-fx: }
