/* lotgoblin: the one stylesheet of the market-pass pages (/m/, /car/, /tracked, /week, /).
   Every one of them is wrapped by `figures.page()`, which links this file and nothing else,
   so the look changes here and nowhere else. A page builder uses these classes and writes
   no CSS of its own, not even a style attribute. Ported from the round-2 mockups,
   docs/market-pass/mockups/_src/base.css (2026-12-03).

   The language ("the quoting board"): Plex Mono figures with tabular digits, condensed
   capital column heads, square corners, 1px rules. Tokens are the live site's
   (lotgoblin/webutil.py), so the old and new pages share one palette in both themes.

   Type has six sizes, one job each: 11 labels, column heads and counts / 12.5 tables and
   captions / 14 answers / 17 the page's answer / 22 a key figure / 28 the title and a car's
   own price.

   Colour: a link is text ink with a hairline under it. Gold is the ask series and the open
   nav item, nothing else. Cut and raised are a glyph and a word in text ink. Red is a fault
   and carries a "!". One dim ink serves captions, counts and refusals at 4.5:1 or better.

   Sections: tokens, masthead, page head, sections, the figure kit (.n .mh .ref), price
   marks (.mk), tiles, tables, tabs, charts, price a car, lists, the dropdown, coverage
   marks, the page builders' own pieces, phone. */
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap;
  src:url("/static/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap;
  src:url("/static/plex-mono-500.woff2") format("woff2"); }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:600; font-display:swap;
  src:url("/static/plex-mono-600.woff2") format("woff2"); }
@font-face { font-family:"IBM Plex Sans Condensed"; font-style:normal; font-weight:600; font-display:swap;
  src:url("/static/plex-sans-cond-600.woff2") format("woff2"); }
:root { color-scheme: dark light;
  --lg-bg:#12140f; --lg-bg2:#161811; --lg-card:#1a1c14; --lg-card2:#20231a;
  --lg-line:#2e3126; --lg-line2:#3a3e2f;
  /* one dim ink for captions, counts and refusals: 6.3:1 on bg, 5.8 on card, 5.4 on card2 */
  --lg-fg:#eae6da; --lg-dim:#9b968a; --lg-label:#9b968a;
  --lg-dim2:#6f6b60;   /* chart strokes only: 3.0 to 3.5:1, never text */
  --lg-gold:#c9a227; --lg-rise:#d08a7e; --lg-ink:#1a1508;
  --lg-field:#0e100a; --lg-header-bg:#1b1e15; --lg-green:#3a5a30; --lg-green-fg:#f3e7bf;
  --lg-warn-bg:#221f14; --lg-warn-line:#4a4327; --lg-bad-bg:#221816; --lg-bad-line:#4a3330;
  /* the two series hues, checked with dataviz/validate_palette.js on --lg-card */
  --auc:#4f9fd0; --ask:#bd9620; --grid:#2a2d22;
  --lg-goblin:#7f9a45; --lg-goblin-ink:#0e130b; --lg-coin:#c9a227;
  --lg-mono:"IBM Plex Mono",ui-monospace,"Cascadia Mono",Consolas,monospace;
  --lg-cond:"IBM Plex Sans Condensed","Arial Narrow",Arial,sans-serif; }
@media (prefers-color-scheme: light) { :root {
  --lg-bg:#ecebe1; --lg-bg2:#e3e4d6; --lg-card:#f5f4ec; --lg-card2:#dde1cf;
  --lg-line:#c0c5ae; --lg-line2:#26331f;
  --lg-fg:#18200f; --lg-dim:#465039; --lg-label:#465039; --lg-dim2:#6f775f;
  --lg-gold:#7a5a08; --lg-rise:#952f21; --lg-ink:#f5f4ec;
  --lg-field:#fbfaf4; --lg-header-bg:#e1e5d2; --lg-green:#33492b; --lg-green-fg:#f3ecd2;
  --lg-warn-bg:#f1e8cf; --lg-warn-line:#c9ad62; --lg-bad-bg:#f3e2dc; --lg-bad-line:#c99a8e;
  --auc:#1672a8; --ask:#946c00; --grid:#d3d7c4;
  --lg-goblin:#6f8f3a; --lg-goblin-ink:#1b2614; --lg-coin:#c9a227; }
  .mk.pend { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M-1 1l2-2M0 4l4-4M3 5l2-2' stroke='%23946c00' stroke-width='1.3'/%3E%3C/svg%3E"); } }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--lg-bg); color:var(--lg-fg); font:12.5px/1.45 var(--lg-mono);
  font-variant-numeric:tabular-nums lining-nums; -webkit-font-smoothing:antialiased; }
/* a link is text ink with a hairline under it. Gold is the ask series and the open nav item, nothing else */
a { color:var(--lg-fg); text-decoration:none; border-bottom:1px solid var(--lg-dim2); }
a:hover { border-bottom-color:var(--lg-fg); }
.lg-brand, .lg-nav a, .jump a, .tabs a, .crumb a, a.sg-r, .sw a, .sg a, a.btn { border-bottom:0; }
a:focus-visible, button:focus-visible, summary:focus-visible, th[data-sort]:focus-visible, input:focus-visible, select:focus-visible {
  outline:2px solid var(--lg-gold); outline-offset:2px; }
.wrap, .lg-wrap { max-width:1340px; margin:0 auto; padding:0 20px; }
main.wrap { display:block; min-height:50vh; }

/* ---- masthead: the site's own ---- */
.lg-header { background:var(--lg-header-bg); border-bottom:1px solid var(--lg-line2); position:sticky; top:0; z-index:20; }
.lg-bar { display:flex; align-items:stretch; min-height:52px; }
.lg-brand { display:flex; align-items:center; gap:9px; padding:7px 16px 7px 0; border-right:1px solid var(--lg-line2); }
.lg-brand img { width:30px; height:30px; display:block; }
.lg-wordmark { font:600 14px/1 var(--lg-mono); letter-spacing:.18em; text-transform:uppercase; color:var(--lg-fg); }
.lg-wordmark small { display:block; font:600 11px/1 var(--lg-cond); letter-spacing:.1em; text-transform:uppercase; color:var(--lg-label); margin-top:5px; }
.lg-searchbox { flex:1; display:flex; align-items:center; padding:9px 14px; margin:0; position:relative; min-width:0; }
.lg-searchbox input { flex:1; min-width:0; background:var(--lg-field); color:var(--lg-fg); border:1px solid var(--lg-line2); border-right:0;
  padding:8px 10px; font:12.5px var(--lg-mono); border-radius:0; }
.lg-searchbox input::placeholder { color:var(--lg-label); }
.lg-searchbox button { background:var(--lg-green); color:var(--lg-green-fg); border:1px solid var(--lg-line2); padding:9px 16px;
  font:600 11px var(--lg-cond); letter-spacing:.04em; border-radius:0; cursor:pointer; }
.lg-nav { display:flex; border-left:1px solid var(--lg-line2); }
.lg-nav a { display:flex; align-items:center; padding:0 14px; font:600 11px var(--lg-cond); letter-spacing:.12em; text-transform:uppercase;
  color:var(--lg-dim); border-left:1px solid var(--lg-line); }
.lg-nav a:first-child { border-left:0; }
.lg-nav a:hover { color:var(--lg-fg); }
.lg-nav a.on { color:var(--lg-fg); box-shadow:inset 0 -3px 0 var(--lg-gold); }
.lg-footer { margin-top:44px; border-top:1px solid var(--lg-line2); padding-top:16px; padding-bottom:40px; color:var(--lg-label); font-size:11px;
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; position:relative; }
.lg-run { position:absolute; left:20px; right:20px; top:-27px; height:26px; pointer-events:none; }
.lg-runner { position:absolute; bottom:0; left:0; width:26px; height:26px; animation:lg-run 24s linear infinite; }
.lg-runner svg { display:block; width:26px; height:26px; animation:lg-hop .34s ease-in-out infinite alternate; }
.lg-gob-skin { fill:var(--lg-goblin); stroke:var(--lg-goblin-ink); stroke-width:1; }
.lg-gob-sack { fill:var(--lg-coin); stroke:var(--lg-goblin-ink); stroke-width:1; }
.lg-gob-eye { fill:var(--lg-goblin-ink); }
.lg-gob-ring { fill:none; stroke:var(--lg-coin); stroke-width:1; }
.lg-gob-limb { fill:none; stroke:var(--lg-goblin-ink); stroke-width:2; stroke-linecap:round; }
.lg-gob-leg { transform-box:view-box; transform-origin:13px 19px; animation:lg-stride .34s ease-in-out infinite alternate; }
.lg-gob-leg.back { animation-direction:alternate-reverse; }
@keyframes lg-run { 0% { left:0; transform:scaleX(1); } 49.99% { left:calc(100% - 26px); transform:scaleX(1); }
  50% { left:calc(100% - 26px); transform:scaleX(-1); } 100% { left:0; transform:scaleX(-1); } }
@keyframes lg-hop { from { transform:translateY(0); } to { transform:translateY(-2px); } }
@keyframes lg-stride { from { transform:rotate(-30deg); } to { transform:rotate(30deg); } }

/* ---- page head ---- */
.head { padding:22px 0 0; }
.crumb { font-size:11px; color:var(--lg-label); margin:0 0 6px; }
.crumb a { color:var(--lg-dim); }
h1 { font:600 28px/1.1 var(--lg-mono); letter-spacing:-.01em; margin:0; }
h1 small { font:400 12.5px/1.3 var(--lg-mono); color:var(--lg-dim); letter-spacing:0; margin-left:10px; white-space:nowrap; }
.meta { margin:6px 0 0; color:var(--lg-dim); font-size:12.5px; max-width:72ch; }
.meta b { color:var(--lg-fg); font-weight:500; }
.asof { margin:4px 0 0; color:var(--lg-label); font-size:11px; }
.asof .bad, .bad { color:var(--lg-rise); }
.note { margin:8px 0 0; padding:6px 10px; font-size:12.5px; background:var(--lg-warn-bg); max-width:72ch; }
.note.bad { background:var(--lg-bad-bg); color:var(--lg-fg); }
.say { margin:14px 0 0; font:500 17px/1.45 var(--lg-mono); max-width:64ch; text-wrap:pretty; }
.say b { font-weight:600; }
.say .n { font-size:12.5px; }
/* the filters fold into one line that says what is applied */
.filt { margin:12px 0 0; font-size:11px; color:var(--lg-label); }
.filt summary { cursor:pointer; list-style:none; display:inline-flex; gap:10px; align-items:center; min-height:24px; }
.filt summary::-webkit-details-marker { display:none; }
.filt summary b { color:var(--lg-fg); font-weight:500; }
.filt summary .chg { border-bottom:1px solid var(--lg-dim2); color:var(--lg-fg); }
.sw { display:flex; flex-wrap:wrap; gap:6px 18px; margin:8px 0 0; align-items:center; }
.sw span { display:inline-flex; align-items:center; gap:6px; }
.sw i { font-style:normal; display:inline-flex; border:1px solid var(--lg-line2); }
.sw i a { padding:3px 9px; color:var(--lg-dim); border-left:1px solid var(--lg-line); }
.sw i a:first-child { border-left:0; }
.sw i a.on { background:var(--lg-card2); color:var(--lg-fg); font-weight:600; }
.jump { display:flex; flex-wrap:wrap; margin:14px 0 0; border:1px solid var(--lg-line2); font-size:11px; background:var(--lg-bg); position:sticky; top:53px; z-index:15; }
.jump a { padding:6px 11px; color:var(--lg-dim); border-right:1px solid var(--lg-line); white-space:nowrap; }
.jump a:hover { color:var(--lg-fg); background:var(--lg-card); }

/* ---- sections ---- */
section { margin-top:30px; scroll-margin-top:96px; }
h2 { font:600 14px/1.25 var(--lg-mono); color:var(--lg-fg); margin:0; padding:0 0 5px; border-bottom:1px solid var(--lg-line2);
  display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
h2 span { font:400 11px/1.25 var(--lg-mono); color:var(--lg-label); text-align:right; }
h3 { font:600 12.5px/1.25 var(--lg-mono); color:var(--lg-fg); margin:16px 0 4px; }
.ans { margin:9px 0 10px; font:500 14px/1.5 var(--lg-mono); max-width:72ch; text-wrap:pretty; }
.ans b { font-weight:600; }
.sub { margin:6px 0 0; color:var(--lg-dim); font-size:12.5px; max-width:72ch; }
.sub b { color:var(--lg-fg); font-weight:500; }
.cols2 { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:0 28px; align-items:start; }
.cols2e { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 28px; align-items:start; }
.cols3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 24px; align-items:start; }
details.more { margin-top:10px; }
details.more > summary { cursor:pointer; color:var(--lg-fg); font-size:12.5px; min-height:24px; }

/* ---- the figure kit: one way to print a count, one way to print a refusal ---- */
.n { color:var(--lg-label); font-weight:400; white-space:nowrap; }           /* (157) = cars or lots behind the figure */
.mh { color:var(--lg-dim); font-weight:400; white-space:nowrap; }            /* middle half */
.ref { color:var(--lg-label); font-weight:400; }                             /* too few to say (4) / not measured: ... */
.dim { color:var(--lg-dim); } .lab { color:var(--lg-label); }
.nw { white-space:nowrap; }
.dir { white-space:nowrap; }                                                  /* cut and raised: a glyph and a word, in text ink */

/* ---- the price marks: circle = an auction bid, square = a dealer's ask; solid = it stands, hollow = it did not ---- */
.mk { display:inline-block; width:9px; height:9px; vertical-align:-0.5px; margin-right:5px; flex:none; }
.mk.sold { background:var(--auc); border-radius:50%; }
.mk.refd { border:2px solid var(--auc); border-radius:50%; }
.mk.ask { background:var(--ask); }
.mk.last { border:2px solid var(--ask); }
.mk.pend { --slop-allow: redundant-border; border:1px solid var(--ask); background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M-1 1l2-2M0 4l4-4M3 5l2-2' stroke='%23bd9620' stroke-width='1.3'/%3E%3C/svg%3E"); }
.mk.lost { border:1px dotted var(--ask); }
.key { display:flex; flex-wrap:wrap; gap:4px 16px; font-size:11px; color:var(--lg-dim); margin:8px 0 0; }
.key span { white-space:nowrap; }

/* ---- the lead: three figures that answer the page ---- */
.tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--lg-line2); border-left:1px solid var(--lg-line2); margin-top:14px; }
.tile { border-right:1px solid var(--lg-line2); border-bottom:1px solid var(--lg-line2); padding:10px 13px 11px; background:var(--lg-card); min-width:0; }
.tile .k { font:600 11px/1.3 var(--lg-mono); color:var(--lg-label); display:flex; align-items:center; }
.tile .v { font:600 22px/1.2 var(--lg-mono); letter-spacing:-.01em; margin-top:4px; }
.tile .v .n { font-size:12.5px; letter-spacing:0; }
.tile .v small { font:400 12.5px var(--lg-mono); color:var(--lg-dim); letter-spacing:0; }
.tile .v.r { font:500 14px/1.35 var(--lg-mono); color:var(--lg-label); padding:5px 0 3px; }
.tile p { margin:3px 0 0; font-size:12.5px; color:var(--lg-dim); }
.tile p b { color:var(--lg-fg); font-weight:500; }
.tiles.small .tile .v { font-size:17px; }
/* a car's own price is the largest figure on its page */
.price { margin:10px 0 0; font:600 28px/1.1 var(--lg-mono); letter-spacing:-.01em; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; }
.price small { font:500 14px/1.4 var(--lg-mono); letter-spacing:0; }
.state { margin:6px 0 0; font-size:14px; max-width:72ch; }

/* ---- tables ---- */
.tw { overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; max-width:100%; }
table { width:100%; border-collapse:collapse; font-size:12.5px; }
th, td { padding:5px 9px; text-align:right; vertical-align:baseline; border-bottom:1px solid var(--lg-line); white-space:nowrap; }
th:first-child, td:first-child { text-align:left; padding-left:0; }
th:last-child, td:last-child { padding-right:0; }
thead th { font:600 11px/1.25 var(--lg-cond); letter-spacing:.06em; text-transform:uppercase; color:var(--lg-label);
  border-bottom:1px solid var(--lg-line2); vertical-align:bottom; white-space:normal; }
thead th.plain { font:400 11px/1.25 var(--lg-mono); letter-spacing:0; text-transform:none; }
thead th .mk { margin-right:4px; }
tbody th { font-weight:500; }
tbody th.w { white-space:normal; max-width:26ch; }
td.l, th.l { text-align:left; }
td.w { white-space:normal; min-width:13ch; }
td.w .flag { margin:1px 4px 1px 0; }
td.main b, td.c-px b { font-weight:600; }
.how { display:block; color:var(--lg-dim); white-space:nowrap; }
table.cars th, table.cars td { padding-left:7px; padding-right:7px; }
table.cars th:first-child, table.cars td:first-child { padding-left:0; }
tr.all td, tr.all th { border-top:1px solid var(--lg-line2); border-bottom:0; font-weight:600; }
tr.refrow td, tr.refrow th { background:var(--lg-card); }
tr.dimrow td { color:var(--lg-dim); }
tr.thin td.full { text-align:left; white-space:normal; color:var(--lg-dim); }
tbody tr:hover td, tbody tr:hover th { background:var(--lg-card); }
td b { font-weight:600; }
th[data-sort] { cursor:pointer; user-select:none; }
th[data-sort]:hover { color:var(--lg-fg); }
th[aria-sort="ascending"]::after { content:" \2191"; }
th[aria-sort="descending"]::after { content:" \2193"; }
tr.grp th { text-align:left; padding-top:14px; font:600 12.5px/1.2 var(--lg-mono); color:var(--lg-fg);
  border-bottom:1px solid var(--lg-line2); background:none; max-width:none; }
tr.grp th span { font-weight:400; color:var(--lg-label); }
.flag { display:inline-block; border:1px solid var(--lg-line2); padding:0 5px; font-size:11px; color:var(--lg-dim); margin:0 0 0 4px; white-space:nowrap; }
.flag.warn { border-color:var(--lg-warn-line); background:var(--lg-warn-bg); color:var(--lg-fg); }
svg.iv, svg.pl, svg.sh { display:block; overflow:visible; }
td .sh, td .iv { display:inline-block; vertical-align:-2px; }

/* ---- tabs (also plain links, so the page works without scripts) ---- */
.tabs { display:flex; flex-wrap:wrap; border-bottom:1px solid var(--lg-line2); margin-top:10px; }
.tabs a { padding:7px 14px 6px; color:var(--lg-dim); border:1px solid transparent; border-bottom:0; margin-bottom:-1px; font-size:12.5px; display:inline-flex; align-items:center; }
.tabs a.on { color:var(--lg-fg); font-weight:600; border-color:var(--lg-line2); background:var(--lg-bg); }
.tabs a .n { margin-left:6px; }
.panel { display:none; } .panel.on { display:block; }
.sorted { margin:8px 0 2px; font-size:11px; color:var(--lg-label); }

/* ---- charts ---- */
.chart { margin-top:10px; background:var(--lg-card); padding:10px 10px 6px; position:relative; }
.chart svg { display:block; width:100%; height:auto; overflow:visible; }
.chart .narrow { display:none; }
svg text { font:11px var(--lg-mono); fill:var(--lg-label); }
svg text.v { fill:var(--lg-fg); font-weight:500; paint-order:stroke; stroke:var(--lg-card); stroke-width:3.5px; stroke-linejoin:round; }
svg .grid { stroke:var(--grid); stroke-width:1; }
svg .axis { stroke:var(--lg-line2); stroke-width:1; }
svg .s-auc { fill:var(--auc); stroke:var(--lg-card); stroke-width:1.5; }
svg .s-ref { fill:var(--lg-card); stroke:var(--auc); stroke-width:2; }
svg .s-ask { fill:none; stroke:var(--ask); stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
svg .s-askdot { fill:var(--ask); stroke:var(--lg-card); stroke-width:2; }
svg .s-med { stroke:var(--auc); stroke-width:2; }
svg .s-left { fill:var(--lg-card); stroke:var(--ask); stroke-width:2; }
svg .s-pend { fill:url(#hatch); stroke:var(--ask); stroke-width:1; }
svg .s-mark { stroke:var(--lg-fg); stroke-width:1; }
svg .s-this { fill:var(--lg-fg); stroke:var(--lg-card); stroke-width:2; }
svg .s-peer { fill:var(--ask); }
svg .s-band { fill:var(--ask); opacity:.35; }
svg .s-bandauc { fill:var(--auc); opacity:.3; }
svg .s-share { fill:var(--lg-fg); }
svg .s-share2 { fill:url(#hatchfg); stroke:var(--lg-fg); stroke-width:1; }
svg .hit { fill:transparent; stroke:none; cursor:default; }
#tip { position:fixed; z-index:50; pointer-events:none; background:var(--lg-fg); color:var(--lg-bg); padding:4px 8px; font-size:11px; max-width:260px; display:none; }
#tip b { font-weight:600; }

/* ---- price a car ---- */
.pricer { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:end; margin:10px 0 0; }
.pricer label { display:flex; flex-direction:column; gap:3px; font-size:11px; color:var(--lg-label); }
.pricer input, .pricer select { background:var(--lg-field); color:var(--lg-fg); border:1px solid var(--lg-line2); padding:8px 10px; font:14px var(--lg-mono); border-radius:0; width:14ch; min-height:40px; }
.pricer select { width:10ch; }
.pans { background:var(--lg-card); padding:12px 14px 14px; margin-top:12px; }
.pans .ans { margin-top:0; }
.pans .h3 { font:600 12.5px/1.3 var(--lg-mono); margin:10px 0 4px; }
.pans table { font-size:12.5px; }
.pans .cols3 > div { min-width:0; }
.pans .pa { grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr) minmax(0,.85fr); }
table.lots th, table.lots td { padding:5px 7px; }
table.lots th:first-child, table.lots td:first-child { padding-left:0; }

/* ---- lists used by the car page and the add flow ---- */
.tl { list-style:none; margin:8px 0 0; padding:0; }
.tl li { display:grid; grid-template-columns:86px 22px minmax(0,1fr) auto; gap:0 8px; padding:6px 0; border-bottom:1px solid var(--lg-line); align-items:baseline; }
.tl.w1 li { grid-template-columns:118px 22px minmax(0,1fr) auto; }
.tl .d { color:var(--lg-dim); } .tl .p { font-weight:600; text-align:right; white-space:nowrap; }
.tl .s { color:var(--lg-label); font-size:11px; display:block; }
.kv { display:grid; grid-template-columns:150px minmax(0,1fr); gap:0 12px; margin:6px 0 0; }
.kv dt, .kv dd { margin:0; padding:6px 0; border-bottom:1px solid var(--lg-line); }
.kv dt { color:var(--lg-label); }
.kv dd small { display:block; color:var(--lg-label); font-size:11px; }
ul.plain, ol.plain { margin:8px 0 0; padding:0 0 0 18px; } ul.plain li, ol.plain li { margin:3px 0; max-width:72ch; }
.steps { list-style:none; margin:8px 0 0; padding:0; counter-reset:s; }
.steps li { display:grid; grid-template-columns:22px 180px 92px minmax(0,1fr); gap:0 10px; padding:6px 0; border-bottom:1px solid var(--lg-line); align-items:baseline; counter-increment:s; }
.steps li::before { content:counter(s); color:var(--lg-label); }
.st { font:600 11px/1.2 var(--lg-cond); letter-spacing:.08em; text-transform:uppercase; color:var(--lg-fg); }
.st.wait { color:var(--lg-label); } .st.need { color:var(--lg-rise); }
.box { background:var(--lg-card); padding:12px 14px 14px; margin-top:12px; }
.box > h3:first-child { margin-top:0; }
.field { display:flex; max-width:520px; margin-top:6px; }
.field input { flex:1; min-width:0; background:var(--lg-field); color:var(--lg-fg); border:1px solid var(--lg-line2); padding:8px 10px; font:12.5px var(--lg-mono); border-radius:0; }
.btn { display:inline-block; background:var(--lg-green); color:var(--lg-green-fg); border:1px solid var(--lg-line2); padding:9px 14px;
  font:600 11px var(--lg-cond); letter-spacing:.04em; cursor:pointer; border-radius:0; min-height:36px; }
.btn.alt { background:transparent; color:var(--lg-fg); }
.field .btn { border-left:0; white-space:nowrap; }
form { margin:0; }
button { font:inherit; }
/* the search dropdown. Under the header box it floats (.lg-searchbox .sg); anywhere else it
   sits in the page (.sg), as the add flow shows it. Two row shapes: the live header's
   (.sg-grp .sg-colh .sg-row, from suggest.py) and the model-first rows (.sg-h .sg-r). */
.sg { --slop-allow: redundant-border; border:1px solid var(--lg-line2); border-bottom:2px solid var(--lg-fg); background:var(--lg-card); margin-top:-1px; max-width:760px; }
.lg-searchbox .sg { position:absolute; left:14px; right:14px; top:calc(100% - 9px); z-index:40; margin-top:0; max-width:none;
  border-top:0; max-height:min(76vh, 640px); overflow-y:auto; color:var(--lg-fg); }
.sg[hidden] { display:none; }
.sg a { display:block; }
.sg-grp { padding:6px 10px 4px; background:var(--lg-card2); border-top:1px solid var(--lg-line2); font:600 10px/1.2 var(--lg-cond);
  letter-spacing:.12em; text-transform:uppercase; color:var(--lg-label); }
.sg-grp:first-child { border-top:0; }
.sg-colh, a.sg-row, .sg-row { display:grid; grid-template-columns:minmax(0,1fr) 70px 70px 108px; column-gap:10px; align-items:baseline;
  padding:6px 10px; border-top:1px solid var(--lg-line); }
.sg-colh { padding:4px 10px; font:600 10px/1.2 var(--lg-cond); letter-spacing:.12em; text-transform:uppercase; color:var(--lg-label); }
.sg-colh span, .sg-row .yr, .sg-row .n, .sg-row .px { text-align:right; }
.sg-colh span:first-child { text-align:left; }
.sg-row { color:var(--lg-fg); }
.sg-row .nm { font-weight:500; min-width:0; overflow-wrap:anywhere; }
.sg-row .nm b { color:var(--lg-gold); font-weight:600; }
.sg-row .nm small, .sg-row .n small, .sg-row .px small { display:block; font-size:10.5px; color:var(--lg-dim); font-weight:400; }
.sg-row .n { color:var(--lg-dim); }
.sg-row .px b { font-weight:600; }
.sg-row.fam .nm { font-weight:600; }
.sg a.on, .sg a:hover { background:var(--lg-bg); box-shadow:inset 3px 0 0 var(--lg-gold); }
.sg-more { display:block; padding:6px 10px; border-top:1px solid var(--lg-line); color:var(--lg-dim); }
a.sg-act, .sg-act { display:flex; justify-content:space-between; gap:10px; padding:7px 10px; border-top:1px solid var(--lg-line); color:var(--lg-fg); }
.sg-act .go { color:var(--lg-gold); font-weight:600; white-space:nowrap; }
.sg-text { border-top:1px solid var(--lg-line2); }
.sg-h { padding:5px 10px 4px; background:var(--lg-card2); font:600 11px/1.2 var(--lg-cond); letter-spacing:.06em; text-transform:uppercase; color:var(--lg-label);
  display:grid; grid-template-columns:minmax(0,1fr) 92px 78px 92px; gap:10px; border-top:1px solid var(--lg-line2); }
.sg-h:first-child { border-top:0; }
.sg-h span + span { text-align:right; }
.sg-r, a.sg-r { display:grid; grid-template-columns:minmax(0,1fr) 92px 78px 92px; gap:10px; padding:8px 10px; border-top:1px solid var(--lg-line); color:var(--lg-fg); align-items:baseline; }
.sg-r > span + span { text-align:right; color:var(--lg-dim); }
.sg-r .nm small { display:block; color:var(--lg-label); font-size:11px; }
.sg-r .nm b { font-weight:600; }
.sg-r.on { background:var(--lg-bg); box-shadow:inset 3px 0 0 var(--lg-gold); }
.sg-r.one { grid-template-columns:minmax(0,1fr) auto; }
.sg-why { padding:7px 10px; border-top:1px solid var(--lg-line); color:var(--lg-fg); }
.sg-foot { padding:5px 10px; border-top:1px solid var(--lg-line2); color:var(--lg-label); font-size:11px; }
.typed { display:flex; max-width:760px; margin-top:8px; }
.typed input { flex:1; min-width:0; background:var(--lg-field); color:var(--lg-fg); border:1px solid var(--lg-line2); border-right:0; padding:8px 10px; font:12.5px var(--lg-mono); border-radius:0; }
.typed span { background:var(--lg-green); color:var(--lg-green-fg); border:1px solid var(--lg-line2); padding:9px 16px; font:600 11px var(--lg-cond); letter-spacing:.04em; }
.only-s { display:none; }
/* coverage marks: a bar, full, half or empty, each with its word */
.cv { white-space:nowrap; }
.cv i { display:inline-block; width:12px; height:8px; margin-right:6px; border:1px solid var(--lg-fg); }
.cv.full i { background:var(--lg-fg); }
.cv.part i { box-shadow:inset 6px 0 0 var(--lg-fg); }
.cv.none { color:var(--lg-label); } .cv.none i { border:1px dotted var(--lg-label); }
.cv.dark { color:var(--lg-rise); } .cv.dark i { border-color:var(--lg-rise); }
.gloss { display:grid; grid-template-columns:150px minmax(0,1fr); gap:0 12px; margin:6px 0 0; max-width:92ch; }
.gloss dt, .gloss dd { margin:0; padding:5px 0; border-bottom:1px solid var(--lg-line); }
.gloss dt { font-weight:600; }

/* ---- the page builders' own pieces: classes in place of inline styles ---- */
svg.defs { position:absolute; }                       /* the hatch patterns, once per page */
svg .h-bg { fill:var(--lg-card); } svg .h-ask { fill:var(--ask); } svg .h-fg { fill:var(--lg-fg); }
svg .whisk { stroke:var(--lg-dim); stroke-width:1.5; }
svg .dot { stroke:var(--lg-fg); stroke-width:1.5; }
svg .s-place { fill:var(--lg-fg); }
svg tspan.nm { font-weight:600; fill:var(--lg-fg); }
svg.pl { display:inline-block; vertical-align:-1px; margin-right:8px; }
svg.strip { display:block; width:100%; max-width:300px; height:auto; overflow:visible; }
.mk.medline { background:var(--auc); height:2px; opacity:.45; vertical-align:3px; }
.mk.askline { background:var(--ask); height:2px; vertical-align:3px; }
.under { max-width:720px; margin-top:14px; }
/* the parent page's fourteen columns fit 1280 without a sideways scroll */
table.side th, table.side td { padding-left:5px; padding-right:5px; }
table.side tbody th.w { max-width:20ch; }
table.side tbody th.w a { white-space:nowrap; }
table.side tbody th.w .lab { display:block; }
.sw span, .sw i { flex-wrap:wrap; }                   /* a long switch wraps; it never scrolls the page */
.head .sub { margin-top:8px; }
td.opt:empty { padding-left:0; padding-right:0; }

/* ---- phone: designed, not collapsed ---- */
@media (max-width:900px) { .cols2, .cols2e, .cols3, .pans .pa { grid-template-columns:minmax(0,1fr); } .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) {
  .wrap, .lg-wrap { padding:0 16px; }
  .lg-header { position:static; }
  .lg-bar { flex-wrap:wrap; }
  .lg-brand { border-right:0; }
  .lg-searchbox { flex:1 1 100%; padding:0 0 9px; order:3; }
  .lg-nav { order:4; border-left:0; border-top:1px solid var(--lg-line2); margin:0 -16px; width:calc(100% + 32px); }
  .lg-nav a { flex:1 1 auto; justify-content:center; min-height:44px; padding:0 2px; letter-spacing:.06em; }
  .head { padding-top:14px; }
  h1 { font-size:22px; } h1 small { display:block; margin:4px 0 0; white-space:normal; }
  .say { font-size:14px; margin-top:12px; }
  .jump { overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; top:0; margin-left:-16px; margin-right:-16px; border-left:0; border-right:0;
    -webkit-mask-image:linear-gradient(90deg,#000 88%,transparent); mask-image:linear-gradient(90deg,#000 88%,transparent); }
  .jump a, .tabs a { min-height:40px; display:inline-flex; align-items:center; }
  .jump a { padding:0 12px; }
  section { scroll-margin-top:52px; }
  .filt summary { min-height:40px; }
  .sw i a { padding:0 12px; min-height:40px; display:inline-flex; align-items:center; }
  .tiles { grid-template-columns:minmax(0,1fr); margin-top:12px; }
  .tile { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 10px; align-items:baseline; padding:9px 11px; }
  .tile .k { grid-column:1; } .tile .v { grid-column:2; grid-row:1; margin:0; font-size:17px; text-align:right; }
  .tile .v.r { font-size:12.5px; padding:0; max-width:19ch; }
  .tile p { grid-column:1 / -1; }
  .price { font-size:28px; }
  .chart { padding:8px 6px 4px; margin-left:-6px; margin-right:-6px; }
  .chart .wide { display:none; } .chart .narrow { display:block; }
  .hide-s { display:none !important; } .only-s { display:initial; }
  .key span { white-space:normal; }
  table.wraps th, table.wraps td { white-space:normal; padding:5px 8px 5px 0; vertical-align:top; }
  table.wraps td.w { min-width:0; }
  table.cars td:first-child, table.cars th, table.cars td { padding-left:0; padding-right:0; }
  .how { display:inline; }
  .how + .how::before { content:", "; }
  .flag + .how { margin-left:1ch; }
  h2 { flex-direction:column; gap:2px; } h2 span { text-align:left; }
  /* a wide table becomes one block per row: the row head, then labelled cells three across */
  table.stack thead { display:none; }
  table.stack, table.stack tbody { display:block; }
  table.stack tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px 10px; padding:8px 0; border-bottom:1px solid var(--lg-line); }
  table.stack tr.grp { display:block; padding:12px 0 4px; border-bottom:1px solid var(--lg-line2); }
  table.stack th, table.stack td { display:block; border:0; padding:0; text-align:left; white-space:normal; min-width:0; max-width:none; }
  table.stack tbody th, table.stack td.full { grid-column:1 / -1; }
  table.stack tbody th { font-weight:600; font-size:14px; }
  table.stack td[data-l]::before { content:attr(data-l); display:block; font:600 11px/1.3 var(--lg-cond); letter-spacing:.04em; text-transform:uppercase; color:var(--lg-label); }
  table.stack tr.all { border-top:1px solid var(--lg-line2); }
  table.stack tr.z, table.stack td.z, table.stack td:empty { display:none; }
  table.grid th, table.grid td { padding:5px 0 5px 8px; }
  table.stack tbody tr:hover td, table.stack tbody tr:hover th { background:none; }
  /* the share table keeps its four columns: band, share that left with its bar, for sale, over 90 days */
  table.bands th, table.bands td { padding:6px 0 6px 8px; }
  table.lots th, table.lots td { padding:5px 4px; }
  table.bands svg.sh { width:76px; height:auto; }
  table.lots td .only-s { font-size:11px; }
  table.lots td:first-child { white-space:normal; width:44%; }
  table.bands th:first-child { padding-left:0; white-space:nowrap; }
  .tl.w1 li { grid-template-columns:minmax(0,1fr) auto; } .tl.w1 li > span:nth-child(2) { display:none; } .tl.w1 .d { grid-column:1 / -1; }
  /* the cars: two lines per car, price on the right */
  table.cars thead { display:none; }
  table.cars, table.cars tbody { display:block; }
  table.cars tr { display:flex; flex-wrap:wrap; align-items:baseline; gap:1px 0; padding:8px 0; border-bottom:1px solid var(--lg-line); }
  table.cars td { display:block; flex:1 1 100%; border:0; padding:0; text-align:left; white-space:normal; min-width:0; color:var(--lg-dim); }
  table.cars td.c-car { flex:1 1 calc(100% - 132px); font-size:14px; color:var(--lg-fg); font-weight:600; }
  table.cars td.c-px { flex:0 0 auto; text-align:right; font-size:14px; color:var(--lg-fg); font-weight:600; white-space:nowrap; }
  table.cars td.c-place { flex:1 1 0; min-width:55%; color:var(--lg-fg); }
  table.cars td.c-days { flex:0 0 auto; text-align:right; }
  table.cars td.c-inl { flex:0 0 auto; margin-right:.6ch; }
  table.cars td:empty { display:none; }
  table.cars tbody tr:hover td { background:none; }
  .tl li { grid-template-columns:52px 16px minmax(0,1fr) auto; }
  .kv, .gloss { grid-template-columns:104px minmax(0,1fr); }
  .steps li { grid-template-columns:18px minmax(0,1fr) auto; }
  .steps li > span:last-child { grid-column:2 / -1; color:var(--lg-dim); }
  /* the dropdown keeps model years (they are why "2018 gt3" matched) and for sale; it drops sold */
  .sg-h, .sg-r { grid-template-columns:minmax(0,1fr) 78px 54px; }
  .sg-h span:nth-child(4), .sg-r > span:nth-child(4) { display:none; }
  .sg-r { padding:11px 10px; }
  .tabs a { padding:0 10px; }
  .pricer label { flex:1 1 28%; } .pricer input, .pricer select { width:100%; }
  .btn { min-height:40px; display:inline-flex; align-items:center; }
  /* the year grid keeps its three columns on a phone: its row heads and listed lots wrap */
  table.grid tbody th, table.grid td { white-space:normal; }
  table.grid td .n { white-space:nowrap; }
  .lg-searchbox .sg { left:0; right:0; }
  .sg-row, a.sg-row, .sg-colh { grid-template-columns:minmax(0,1fr) auto; }
  .sg-row .n, .sg-colh .hn, .sg-colh .hp { display:none; }
  .sg-row .px { grid-column:1 / -1; text-align:left; margin-top:2px; }
  .sg-row .px small { display:inline; margin-left:6px; }
  .lg-run { left:16px; right:16px; }
  .sg-h span:nth-child(2), .sg-h span:nth-child(4), .sg-r > span:nth-child(2), .sg-r > span:nth-child(4) { display:none; }
  .tabs a { padding:7px 9px 6px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior:auto; }
  .lg-runner, .lg-runner svg, .lg-gob-leg { animation:none; } }
