/* Fonts, served from our own site (faster than Google Fonts: no extra connection). SIL Open Font License: assets/fonts/OFL-*.txt */
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
/* Layout: sticky filter bar over a responsive grid of vehicle cards; highway-sign type, juniper accent */
:root {
  --bg: #f3f5f3;
  --surface: #ffffff;
  --ink: #18201c;
  --muted: #5b6a63;
  --line: #d9e0dc;
  --accent: #2f6b55;
  --accent-ink: #ffffff;
  --sign: #f2c230;
  --sign-ink: #1c1a10;
  --chip: #e6ece8;
  --neg: #b4452f;
  /* Deal Score scale, green -> red */
  --d-great: #1f8a4c; --d-good: #6aa84f; --d-fair: #2f6fb3; --d-fair-ink: #ffffff; --d-high: #e07b39; --d-over: #c8412b;
  --f-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111613; --surface: #19201c; --ink: #e6ece8; --muted: #9aaaa2;
    --line: #2a332e; --accent: #5fb393; --accent-ink: #0d1411;
    --sign: #e5b62a; --sign-ink: #1c1a10; --chip: #232c27; --neg: #f08a73;
    --d-great: #3fbf74; --d-good: #8fcb6b; --d-fair: #6aa7e6; --d-fair-ink: #0d1411; --d-high: #f0955a; --d-over: #ef6a52; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111613; --surface: #19201c; --ink: #e6ece8; --muted: #9aaaa2;
  --line: #2a332e; --accent: #5fb393; --accent-ink: #0d1411;
  --sign: #e5b62a; --sign-ink: #1c1a10; --chip: #232c27; --neg: #f08a73;
    --d-great: #3fbf74; --d-good: #8fcb6b; --d-fair: #6aa7e6; --d-fair-ink: #0d1411; --d-high: #f0955a; --d-over: #ef6a52; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.45 var(--f-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: var(--site-w); margin: 0 auto; }
header.top { padding-block: 28px 12px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: end; justify-content: space-between; }
.brand { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.shield {
  font: 700 15px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
  background: var(--sign); color: var(--sign-ink);
  padding: 7px 9px 6px; border-radius: 4px; border: 2px solid var(--sign-ink); white-space: nowrap;
}
.brandname { font: 700 clamp(34px, 5vw, 50px)/1 var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.015em; }
.tagline { font: 600 clamp(19px, 2.4vw, 24px)/1.2 var(--f-display); margin: 10px 0 0; color: var(--accent); text-wrap: balance; }
.tagline mark { background: var(--sign); color: var(--sign-ink); padding: 0 5px; border-radius: 3px; white-space: nowrap; }
.sub { color: var(--muted); margin: 6px 0 0; }
.stamp { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
/* Brand strip: the same look as the Facebook page (dark, DEAL in yellow over WITH IT, green bar) */
:root { --brand-bg: #111613; --brand-yellow: #f2c230; --brand-green: #3fbf74; --brand-ink: #f3f5f3; --brand-muted: #9aaaa2; }
.brandband {
  background: var(--brand-bg); color: var(--brand-ink); border-bottom: 1px solid #2a332e;
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.bb-in { max-width: var(--site-w); margin: 0 auto; padding-block: 20px 22px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.bb-left { display: flex; align-items: center; gap: 14px 24px; flex: 1 1 0; min-width: min(100%, 300px); }
/* The logo (brand kit): DEAL sized to the width of WITH IT, centered over it, the green bar under both.
   --w is the WITH IT size; everything else scales from it. */
.bb-logo { --w: 46px; margin: 0; display: inline-grid; justify-items: center; text-decoration: none; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .84; letter-spacing: -.005em; }
.bb-logo::after { content: ""; justify-self: stretch; height: max(4px, calc(var(--w) * .105)); background: var(--brand-green); margin-top: calc(var(--w) * .137); border-radius: 1px; }
.bb-deal { color: var(--brand-yellow); font-size: calc(var(--w) * 1.464); }
.bb-with { color: var(--brand-ink); font-size: var(--w); }
a.bb-logo:hover .bb-with { color: var(--brand-yellow); }
.bb-text { border-left: 1px solid #2a332e; padding-left: 22px; min-width: 0; flex: 1 1 auto; }
.bb-where { margin: 0; font: 700 15px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-muted); }
.bb-tag { margin: 6px 0 0; font: 700 clamp(20px, 2.2vw, 25px)/1.15 var(--f-display); color: var(--brand-ink); text-wrap: balance; }
.brandband .sitenav { background: rgba(255,255,255,.07); }
.brandband .sitenav a { color: var(--brand-ink); }
.brandband .sitenav a:hover { color: var(--brand-yellow); }
.brandband .sitenav a[aria-current="page"] { background: #2a332e; color: var(--brand-yellow); box-shadow: none; }
.belowband { padding-top: 14px; }
.belowband:empty { padding-top: 0; }
.bb-sub { margin: 0 0 10px; font-size: 17px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .bb-in { padding-block: 16px 18px; }
  .bb-logo { --w: 36px; }
  .bb-left { flex-wrap: wrap; }
  .bb-text { border-left: 0; padding-left: 0; flex-basis: 100%; }
}
.comparebar { background: var(--chip); border: 1px solid var(--line); border-radius: 8px; margin: 4px 0 2px; }
.comparebar p { margin: 0; padding: 9px 14px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.comparebar strong { font-variant-numeric: tabular-nums; }
.comparebar .cbwhen { color: var(--muted); }
.comparebar a { color: var(--accent); white-space: nowrap; }
.headright { display: grid; gap: 8px; justify-items: end; }
.tabs { display: flex; gap: 4px; background: var(--chip); padding: 4px; border-radius: 8px; }
.tabs a { font: 600 15px var(--f-body); color: var(--ink); text-decoration: none; padding: 7px 12px; border-radius: 6px; white-space: nowrap; }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* ---- How we get paid ---- */
.pricing { max-width: 920px; padding-block: 20px 56px; display: grid; gap: 22px; }
.ph { font: 700 clamp(26px, 3.4vw, 34px)/1.1 var(--f-display); margin: 0; }
.lead { font-size: 18px; margin: 0; max-width: 62ch; }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.plan h3 { font: 600 20px var(--f-display); margin: 0; }
.plan .terms-line { font: 700 26px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.plan .terms-line small { display: block; font: 400 15px var(--f-body); color: var(--muted); margin-top: 3px; }
.plan .bestfor { font-size: 15px; color: var(--muted); }
.balance { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--chip); max-width: 72ch; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; gap: 14px; }
.calc h3, .terms h3 { font: 600 22px var(--f-display); margin: 0; }
.calcinputs { display: grid; gap: 14px 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: end; }
.calcinputs label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.calcinputs output { font: 700 18px var(--f-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.money { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: var(--bg); }
.money input { border: 0; background: transparent; color: var(--ink); font: 18px var(--f-body); padding: 9px 0; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.money input:focus-visible { outline: none; }
.money:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.tablewrap { overflow-x: auto; }
.results { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 420px; }
.results th { text-align: left; font: 600 15px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.results td { padding: 10px; border-bottom: 1px solid var(--line); }
.results td:not(:first-child), .results th:not(:first-child) { text-align: right; }
.results tr.best td { background: var(--chip); font-weight: 600; }
.results .neg { color: var(--neg); }
.bestpill { display: inline-block; margin-left: 8px; font: 700 15px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px 3px; border-radius: 3px; background: var(--sign); color: var(--sign-ink); vertical-align: 2px; }
.terms { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.terms ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.ctaline { margin: 0; }
.ctaline .btn { display: inline-block; }
@media (max-width: 760px) {
  .plans, .terms, .calcinputs { grid-template-columns: 1fr; }
  .headright { justify-items: start; width: 100%; }
}

.filters {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--bg); padding-block: 12px; border-bottom: 1px solid var(--line);
  display: grid; gap: 10px;
  grid-template-columns: minmax(0, 2fr) repeat(5, minmax(0, 1fr));
}
.filters label { display: grid; gap: 3px; font: 600 15px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.filters input, .filters select {
  font: 16px var(--f-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; width: 100%;
}
.filters input:focus-visible, .filters select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { flex: 1; border: 0; background: transparent; color: var(--ink); font: 600 15px var(--f-body); padding: 9px 4px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.resultline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 14px 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.resultline strong { color: var(--ink); font: 600 18px var(--f-display); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding-bottom: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.photo { position: relative; aspect-ratio: 4 / 3; background: var(--chip); max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: 600 15px var(--f-display); letter-spacing: .03em; text-transform: uppercase; }
.pnav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.pnav.prev { left: 8px; } .pnav.next { right: 8px; }
.pcount { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font: 15px var(--f-mono); padding: 3px 7px; border-radius: 4px; }
.tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 6px; }
.tag { font: 700 15px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px 4px; border-radius: 3px; background: var(--surface); color: var(--ink); }
.tag.new { background: var(--accent); color: var(--accent-ink); }
.tag.transit { background: var(--sign); color: var(--sign-ink); }

.body { padding: 14px 14px 16px; display: grid; gap: 10px; flex: 1; align-content: start; }
.name { font: 600 21px/1.15 var(--f-display); margin: 0; }
.name small { display: block; font: 400 15px var(--f-body); color: var(--muted); margin-top: 2px; }
.name small.stockno { font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.pricerow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.price { font: 700 24px var(--f-display); }
.price.call { font-size: 18px; color: var(--muted); }
.miles { color: var(--muted); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 15px; margin: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mono { font: 15px var(--f-mono); }
.dealer { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 14px; }
.actions .btn.primary { flex-basis: 100%; }
.actions .btn.ghost { flex: 1 1 120px; font-size: 15px; }
.simbar {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  margin-top: 14px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 8px; background: var(--surface);
  /* Stays pinned just under the filter bar (whose height the script measures). */
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--filters-h, 0px)); z-index: 4;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .35);
}
.simbar span { min-width: 0; }
.simbar strong { font: 600 18px var(--f-display); }
.simbar .btn { flex: 0 0 auto; }
.tag.pick { background: var(--sign); color: var(--sign-ink); }
.why { font-size: 15px; color: var(--accent); font-weight: 600; }

/* ---- Deal Score ---- */
.card { --deal: var(--line); border: 3px solid var(--deal); }
.card.unrated { border-width: 1px; }
.card.d-great { --deal: var(--d-great); } .card.d-good { --deal: var(--d-good); }
.card.d-fair { --deal: var(--d-fair); } .card.d-high { --deal: var(--d-high); } .card.d-over { --deal: var(--d-over); }
.card.pick { box-shadow: 0 0 0 3px var(--sign); }
.deal summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.deal summary::-webkit-details-marker { display: none; }
.deal summary::after { content: "Why?"; text-decoration: underline; }
.deal[open] summary::after { content: "Hide"; }
.dealpill { font: 700 15px/1 var(--f-display); letter-spacing: .05em; text-transform: uppercase; padding: 5px 7px 4px; border-radius: 3px; background: var(--deal); color: #fff; }
.card.d-good .dealpill { color: #1c1a10; }
.card.d-fair .dealpill { color: var(--d-fair-ink); }
.card.unrated .dealpill { background: var(--chip); color: var(--muted); }
.deal ul { margin: 8px 0 0; padding-left: 18px; font-size: 15px; display: grid; gap: 4px; }
.deal li.plus::marker { color: var(--d-great); } .deal li.minus::marker { color: var(--d-over); }
.deal .src { font-size: 15px; color: var(--muted); margin-top: 6px; }
.btn { font: 600 15px var(--f-body); border-radius: 6px; padding: 9px 12px; cursor: pointer; text-decoration: none; text-align: center; flex: 1 1 auto; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.empty { padding: 48px 0; color: var(--muted); text-align: center; grid-column: 1 / -1; }

dialog { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); max-width: min(460px, calc(100vw - 32px)); width: 100%; padding: 22px; }
dialog::backdrop { background: rgba(10,14,12,.55); }
dialog h2 { font: 700 24px var(--f-display); margin: 0 0 4px; }
dialog form { display: grid; gap: 12px; margin-top: 14px; }
dialog label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
dialog input, dialog textarea { font: 16px var(--f-body); padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); width: 100%; }
.note { font-size: 15px; color: var(--muted); }
.row { display: flex; gap: 8px; }

@media (max-width: 760px) {
  .filters { grid-template-columns: 1fr 1fr; position: static; }
  .filters .q { grid-column: 1 / -1; }
}
/* Hovered card: an extra ring outside its border (dark on the light page, white in dark mode),
   so it's easy to see which card you're on. Also for keyboard focus inside a card. */
:root { --hover-ring: #111613; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hover-ring: #ffffff; } }
:root[data-theme="dark"] { --hover-ring: #ffffff; }
.card { outline: 3px solid transparent; outline-offset: 3px; }
.card:focus-within { outline-color: var(--hover-ring); }
@media (hover: hover) {
  .card:hover { outline-color: var(--hover-ring); box-shadow: 0 8px 22px rgba(0, 0, 0, .16); }
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: outline-color .15s, box-shadow .15s, transform .15s ease-out; }
}
/* ...and it rises a little toward you (2%, a few pixels up). Not with reduced motion. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-4px) scale(1.02); position: relative; z-index: 2; }
}

/* =====================================================================
   Multi-page site additions
   ===================================================================== */
a { color: var(--accent); }
.brandname { display: block; color: var(--ink); text-decoration: none; }
.brandname:hover { color: var(--ink); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px; z-index: 20; }
.sitenav { display: flex; flex-wrap: wrap; gap: 4px; background: var(--chip); padding: 4px; border-radius: 8px; }
.sitenav a { font: 600 15px var(--f-body); color: var(--ink); text-decoration: none; padding: 7px 12px; border-radius: 6px; white-space: nowrap; }
.sitenav a[aria-current="page"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.crumbs { font-size: 15px; color: var(--muted); padding-block: 14px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.pagehead { padding-block: 18px 6px; display: grid; gap: 10px; max-width: 78ch; }
.pagehead h1 { font: 700 clamp(28px, 4vw, 40px)/1.05 var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
.pagehead p { margin: 0; font-size: 17px; }

.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 14px 0; margin: 6px 0 4px; border-block: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stats div { display: grid; gap: 2px; }
.stats dt { font: 600 15px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; font: 700 22px var(--f-display); }

.catnav { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px 4px; }
.catnav a { font: 600 15px var(--f-body); text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.catnav a:hover { border-color: var(--accent); color: var(--accent); }
.catnav a .n { color: var(--muted); font-weight: 400; margin-left: 4px; font-variant-numeric: tabular-nums; }

.section { padding-block: 22px 8px; }
.section h2 { font: 700 26px/1.1 var(--f-display); margin: 0 0 12px; }

.name a { color: inherit; text-decoration: none; }
.name a:hover { text-decoration: underline; }

/* ---- Car page ---- */
.carpage { display: grid; gap: 24px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); padding-block: 16px 24px; align-items: start; }
.gallery { display: grid; gap: 8px; }
.gallery .main { aspect-ratio: 4 / 3; background: var(--chip); border-radius: 8px; overflow: hidden; position: relative; max-width: 100%; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .gnav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(12, 16, 14, .55); color: #fff; cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); transition: background .15s; }
.gallery .gnav:hover { background: rgba(12, 16, 14, .8); }
.gallery .gnav:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; }
.gallery .gprev { left: 10px; }
.gallery .gnext { right: 10px; }
.gallery .gcount { position: absolute; top: 10px; right: 10px; z-index: 3; padding: 3px 10px; border-radius: 999px; background: rgba(12, 16, 14, .6); color: #fff; font: 600 15px/1.4 var(--f-body); pointer-events: none; }
@media (max-width: 600px) { .gallery .gnav { width: 40px; height: 40px; } .gallery .gprev { left: 6px; } .gallery .gnext { right: 6px; } }
.thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.thumbs button { flex: 0 0 92px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--chip); cursor: pointer; scroll-snap-align: start; }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel { background: var(--surface); border: 3px solid var(--deal, var(--line)); border-radius: 8px; padding: 18px; display: grid; gap: 14px; }
.panel.unrated { border-width: 1px; }
.panel.d-great { --deal: var(--d-great); } .panel.d-good { --deal: var(--d-good); } .panel.d-fair { --deal: var(--d-fair); }
.panel.d-high { --deal: var(--d-high); } .panel.d-over { --deal: var(--d-over); }
.panel.d-good .dealpill { color: #1c1a10; } .panel.d-fair .dealpill { color: var(--d-fair-ink); }
.panel.unrated .dealpill { background: var(--chip); color: var(--muted); }
.panel .bigprice { font: 700 38px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.panel .bigprice.call { font-size: 24px; color: var(--muted); }
.panel .sub2 { color: var(--muted); }
.panel .deal ul { margin-top: 4px; }
.pricehist { font-size: 15px; color: var(--muted); margin: 0; padding-left: 18px; }
.panel .actions { padding: 0; }
.spectable { width: 100%; border-collapse: collapse; font-size: 15px; }
.spectable th { text-align: left; font-weight: 600; color: var(--muted); padding: 7px 12px 7px 0; vertical-align: top; width: 38%; }
.spectable td { padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.spectable tr:first-child td, .spectable tr:first-child th { border-top: 1px solid var(--line); }
.spectable th { border-bottom: 1px solid var(--line); }
.soldbanner { background: var(--chip); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: grid; gap: 6px; }
.soldbanner strong { font: 700 20px var(--f-display); }
.note.small { font-size: 15px; }

/* ---- FAQ / content pages ---- */
.prose { max-width: 72ch; padding-block: 8px 40px; display: grid; gap: 14px; }
.prose h2 { font: 700 24px/1.15 var(--f-display); margin: 14px 0 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.faq summary { font: 600 19px var(--f-display); cursor: pointer; }
.faq details p { margin: 10px 0 2px; }
.towns { columns: 2; padding-left: 20px; margin: 0; }

footer.site { margin-top: 40px; border-top: 1px solid var(--line); padding-block: 22px 40px; color: var(--muted); font-size: 15px; display: grid; gap: 14px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer.site a { color: var(--muted); }

@media (max-width: 860px) {
  .carpage { grid-template-columns: 1fr; }
}
.catnav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.catnav a[aria-current="page"] .n { color: inherit; opacity: .8; }

/* ---- Dealer offers (new cars) ------------------------------------------------ */
.pricerow .msrp { margin-right: auto; color: var(--muted); font-size: 15px; text-decoration: line-through; white-space: nowrap; }
.otags { display: flex; flex-wrap: wrap; gap: 6px; }
.otag { font-size: 15px; font-weight: 600; color: var(--accent); background: var(--chip); border-radius: 999px; padding: 3px 9px; }
.breakdown summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.breakdown .note { margin: 6px 0 0; }
.stack { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; font-size: 15px; }
.stack th { text-align: left; font-weight: 400; padding: 5px 8px 5px 0; vertical-align: top; }
.stack th small { display: block; color: var(--muted); font-size: 15px; }
.stack td { text-align: right; padding: 5px 0; white-space: nowrap; vertical-align: top; }
.stack td.minus { color: var(--d-great); }
.stack tr + tr { border-top: 1px solid var(--line); }
.stack tr.total { border-top: 2px solid var(--ink); font-weight: 700; }
.stack tr.total th { font-weight: 700; }
.offergrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.offerbox { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; gap: 12px; }
.offerbox h3 { font: 700 21px var(--f-display); margin: 0; }
.offerbox h4 { font: 600 16px/1.3 var(--f-body); margin: 0 0 8px; }
.offerbox .note { margin: 0; }
.offerlist { list-style: none; margin: 0; padding: 0; display: grid; }
.offerlist li { padding: 10px 0; border-top: 1px solid var(--line); }
.offerlist li:last-child { border-bottom: 1px solid var(--line); }
.ohead { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.oamt { color: var(--d-great); font-variant-numeric: tabular-nums; white-space: nowrap; }
.owho { font-size: 15px; color: var(--muted); margin-top: 2px; }
.offerbox details summary { cursor: pointer; font-size: 15px; color: var(--accent); margin-top: 4px; }
.offerbox details p { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.finoffer + .finoffer { border-top: 1px solid var(--line); padding-top: 12px; }
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.rates th { text-align: left; font-size: 15px; font-weight: 600; color: var(--muted); padding: 4px 8px 4px 0; vertical-align: bottom; }
.rates td { padding: 4px 8px 4px 0; border-top: 1px solid var(--line); }
.clash { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--chip); font-size: 15px; }
.offers > .note { margin-top: 12px; }
dialog { max-height: calc(100dvh - 32px); overflow: auto; }
dialog fieldset.elig { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 0; display: grid; gap: 6px; }
dialog fieldset.elig legend { font-weight: 600; font-size: 15px; padding: 0 4px; }
dialog fieldset.elig .note { margin: 0; }
dialog label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 15px; }
dialog label.check input { width: auto; padding: 0; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
#eligmatch { background: var(--chip); border-radius: 6px; padding: 8px 10px; color: var(--ink); }
#eligmatch ul { margin: 4px 0; padding-left: 18px; }

/* ---- Estimated savings, Savings Potential! ribbon, picked car ------------------ */
:root { --pick: #8e3fa6; --pick-ink: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pick: #c58be0; --pick-ink: #1a0f20; } }
:root[data-theme="dark"] { --pick: #c58be0; --pick-ink: #1a0f20; }
.card.pick { border-color: var(--pick); box-shadow: 0 0 0 2px var(--pick); }
.tag.pick { background: var(--pick); color: var(--pick-ink); }
.save { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; font-variant-numeric: tabular-nums; }
.save span { font-size: 15px; color: var(--muted); }
.save strong { font: 700 17px var(--f-display); color: var(--accent); }
.photo { overflow: hidden; }
.ribbon {
  /* Band centered 56px in from the top-right corner, so the whole label stays visible. */
  position: absolute; z-index: 2; top: 43px; right: -64px; width: 240px; transform: rotate(45deg);
  background: var(--sign); color: var(--sign-ink); text-align: center; text-decoration: none;
  font: 700 15px/1 var(--f-display); letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 0 5px; box-shadow: 0 2px 6px rgba(0,0,0,.25); border-top: 1px solid var(--sign-ink); border-bottom: 1px solid var(--sign-ink);
}
.ribbon:hover { filter: brightness(1.05); }
.ribbon.inline { position: static; transform: none; width: auto; padding: 4px 8px 3px; border: 1px solid var(--sign-ink); border-radius: 3px; box-shadow: none; font-size: 15px; }
.savings { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; display: grid; gap: 4px; background: var(--bg); }
.savehead { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--muted); }
.saveamt { font: 700 28px/1.1 var(--f-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.savings .note { margin: 0; }
.savings summary { cursor: pointer; font-size: 15px; color: var(--accent); font-weight: 600; }
.savings ul { margin: 6px 0; padding-left: 18px; font-size: 15px; }

/* ---- Cars we compared it to ------------------------------------------------------ */
.comps summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: 15px; }
.comps .note { margin: 6px 0 4px; }
.comps ul { list-style: none; margin: 0; padding: 0; }
.comps li { padding: 8px 0; border-top: 1px solid var(--line); }
.comps .cname a { font-weight: 600; color: var(--ink); }
.comps .cline { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; color: var(--muted); margin-top: 2px; }
.comps .cline strong, .comps .ctotal strong { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.comps .ctotal { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0 0; border-top: 2px solid var(--ink); font-weight: 600; }
.comps .ctotal.this { border-top: 0; padding-top: 3px; color: var(--accent); }
.comps .ctotal.this strong { color: var(--accent); }

/* ---- Our partners ------------------------------------------------------------------ */
.partners { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.partner h2 { font: 700 21px var(--f-display); margin: 0; }
.partner p { margin: 0; }
.pcause { font: 700 15px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.pfoot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; margin-top: 4px; }
.pgiven { color: var(--muted); font-variant-numeric: tabular-nums; }
.tally { font-size: 18px; }
.giving .sech { font: 700 24px var(--f-display); margin: 26px 0 4px; }
.mypick { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--brand-green); border-radius: 8px; padding: 16px; display: grid; gap: 6px; }
.mypick h2 { font: 700 21px var(--f-display); margin: 0; }
.mypick p { margin: 0; }
.promise { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--accent); }
.promise::before { content: "\2713  "; }
.givenote { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.givenote strong { color: var(--ink); }

/* ---- About me (salesperson site) --------------------------------------------------- */
.about .abouthead { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; flex-wrap: wrap; }
.about .aboutphoto { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.18); flex: none; }
.about .abouthead h1 { margin: 0; }
.about .role { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.about .actions { padding: 8px 0; max-width: 520px; }
.ribbonnote { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.ribbonnote span:last-child { color: var(--accent); }
.comps li.cothers { color: var(--muted); font-size: 15px; font-style: italic; }

/* Standout Deal: an RGB border that rotates (yellow, green, cyan, blue, purple; no red or orange,
   which mean "priced high" here) with a tight glow in the same colors, and a ribbon to match. */
@property --glow-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root { --rgb: #ffd400, #2ee66b, #19d3f0, #3b82f6, #a855f7, #3b82f6, #19d3f0, #2ee66b, #ffd400; }
.card.standout, .panel.standout { position: relative; border-color: transparent; overflow: visible; }
.card.standout .photo { border-radius: 5px 5px 0 0; }
.card.standout, .panel.standout { animation: glow-color 4s linear infinite; }   /* the glow, hugging the border */
.card.standout::after, .panel.standout::after {                                   /* the border itself */
  content: ""; position: absolute; inset: -3px; border-radius: 10px; pointer-events: none;
  padding: 3px; z-index: 4;
  background: conic-gradient(from var(--glow-angle), var(--rgb));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: glow-spin 4s linear infinite;
}
@keyframes glow-spin { to { --glow-angle: 360deg; } }
@keyframes glow-color {
  0%, 100% { box-shadow: 0 0 9px 1px rgba(255, 212, 0, .55); }
  25% { box-shadow: 0 0 9px 1px rgba(46, 230, 107, .55); }
  50% { box-shadow: 0 0 9px 1px rgba(25, 211, 240, .55); }
  75% { box-shadow: 0 0 9px 1px rgba(168, 85, 247, .55); }
}

.ribbon.standout {
  background: #1a6ff0;   /* bright blue, solid (the card border keeps the RGB glow) */
  color: #ffffff; font-size: 15px; letter-spacing: .07em; padding: 8px 0 7px;
  border-color: #0b3f99; box-shadow: 0 2px 10px rgba(0, 0, 0, .35), 0 0 12px rgba(26, 111, 240, .55);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
.card.standout .dealpill, .panel.standout .dealpill { background: #1a6ff0; color: #fff; }
.ribbon.standout.inline { font-size: 15px; padding: 5px 9px 4px; }
@media (prefers-reduced-motion: reduce) {
  .card.standout, .panel.standout, .card.standout::after, .panel.standout::after { animation: none; }
  .card.standout, .panel.standout { box-shadow: 0 0 9px 1px rgba(59, 130, 246, .45); }
}

/* Home page banner (Bozarth): the Colorado National Monument photo behind the brand strip,
   darkened on the left so the logo and tagline stay easy to read. */
.brandband.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 0; }
.bb-photo, .bb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bb-photo { z-index: -1; }
.bb-photo img { object-fit: cover; object-position: 50% 22%; }
.brandband.hero::after {
  /* Shade only where the words are (the logo and tagline bottom-left, the menu along the bottom), so the rest of the
     photo keeps its color. (Phones put the words at the top: their own shade is below.) */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 80% at 0% 100%, rgba(17,22,19,.72) 0%, rgba(17,22,19,.42) 45%, rgba(17,22,19,0) 100%),
    linear-gradient(0deg, rgba(17,22,19,.62) 0%, rgba(17,22,19,.22) 26%, rgba(17,22,19,0) 44%);
}
.brandband.hero .bb-in { min-height: clamp(300px, 30vw, 430px); align-items: flex-end; padding-block: 24px 30px; }
.brandband.hero .bb-text { border-left-color: rgba(255,255,255,.28); }
.brandband.hero .bb-where { color: #c9d3ce; }
.brandband.hero .bb-tag, .brandband.hero .bb-where, .brandband.hero .bb-logo { text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.brandband.hero .sitenav { background: rgba(17,22,19,.62); backdrop-filter: blur(6px); }
.brandband.hero .sitenav a[aria-current="page"] { background: rgba(255,255,255,.12); }
@media (max-width: 640px) {
  .brandband.hero .bb-in { min-height: 380px; padding-block: 18px 22px; align-content: space-between; }
  .bb-photo img { object-position: 50% 40%; }
  .brandband.hero::after {
    background: linear-gradient(180deg, rgba(17,22,19,.72) 0%, rgba(17,22,19,.55) 45%, rgba(17,22,19,.25) 62%, rgba(17,22,19,.80) 100%);
  }
}
/* Photo credit, bottom-right corner of the banner */
.bb-credit { position: absolute; right: max(16px, env(safe-area-inset-right, 0px), calc((100% - var(--site-w)) / 2)); bottom: 7px; margin: 0;
  font: 15px/1.2 var(--f-body); color: rgba(255,255,255,.72); text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.bb-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 2px; }
.bb-credit a:hover { color: #fff; text-decoration-color: currentColor; }
@media (max-width: 640px) { .bb-credit { font-size: 15px; bottom: 5px; } }
.seeall { margin: 14px 0 0; font-weight: 600; }
.seeall a { color: var(--accent); }
.seeall a::after { content: " →"; }

/* Faint topographic contour lines behind the page (canyon-country trail map), only around the
   cards: the cards and banner sit on top. Repeats down the whole page. */
html { background: var(--bg); }
body { position: relative; isolation: isolate; }
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/topo-light.svg") center top / 640px 640px repeat;
  opacity: var(--topo-strength, .04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body::before { background-image: url("/assets/topo-dark.svg"); opacity: var(--topo-strength-dark, .035); }
}
:root[data-theme="dark"] body::before { background-image: url("/assets/topo-dark.svg"); opacity: var(--topo-strength-dark, .035); }
@media print { body::before { display: none; } }

/* Contact + booking form (salesperson site) */
#contactdlg { max-width: min(520px, calc(100vw - 24px)); }
#contactdlg .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#contactdlg fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#contactdlg legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
#contactdlg .seg3 > div, #contactdlg fieldset.seg3 { display: flex; flex-wrap: wrap; gap: 6px; }
#contactdlg .seg3 label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: var(--bg); }
#contactdlg .seg3 label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--surface); }
#contactdlg .seg3 input { width: auto; margin: 0; accent-color: var(--accent); }
#contactdlg label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--muted); }
#contactdlg label.check input { width: auto; margin-top: 2px; accent-color: var(--accent); }
#contactdlg .booking { border-top: 1px solid var(--line); padding-top: 12px; }
#contactdlg #cslots { margin-top: 10px; display: grid; gap: 8px; }
/* "Pick a time to come see it (optional)": a switch, off when the form opens; the thank-you screen offers it again */
#contactdlg label.booktoggle { color: var(--ink); font-size: 16px; cursor: pointer; }
#contactdlg label.booktoggle input { width: 18px; height: 18px; }
#contactdlg #cafter { margin: 4px 0 16px; display: grid; gap: 8px; }
#contactdlg #cafter h3 { margin: 0; font-size: 18px; }
#contactdlg #astatus.bad { color: var(--neg, #b4452f); font-weight: 600; }
#contactdlg #abook:disabled { opacity: .45; cursor: default; }
#contactdlg .days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
#contactdlg .times { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
#contactdlg .chip { font: 600 15px var(--f-body); padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); cursor: pointer; white-space: nowrap; }
#contactdlg .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
#contactdlg .chip:hover { border-color: var(--accent); }
#contactdlg .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contactdlg #cstatus.bad { color: var(--neg, #b4452f); font-weight: 600; }
#contactdlg .done { font-size: 18px; line-height: 1.4; margin: 16px 0; }
#contactdlg .where { font-size: 17px; line-height: 1.45; margin: -4px 0 16px; }
#contactdlg .where a { font-weight: 600; }
#contactdlg .row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 420px) { #contactdlg .two { grid-template-columns: 1fr; } }

/* Price history, payment estimate, price-drop alerts */
.pricehistory { margin: 8px 0 0; color: var(--muted); }
.pricehistory.down { color: var(--down, #1f7a45); } .pricehistory.up { color: var(--muted); }
.pricehistory p { margin: 0 0 2px; color: var(--muted); }
.pricehistory svg { display: block; max-width: 100%; height: auto; }
.otag.drop { background: #dff3e6; color: #17603a; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .otag.drop { background: #1d3a29; color: #8fdcaa; } }
:root[data-theme="dark"] .otag.drop { background: #1d3a29; color: #8fdcaa; }
.payest { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.payest h2 { margin-top: 0; }
.paygrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 24px; align-items: center; }
.payform { display: grid; gap: 10px; }
.payform label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.payform input, .payform select { font: 16px var(--f-body); padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); width: 100%; }
.payform select:disabled { opacity: .7; }
.payout { text-align: center; }
.paynum { font: 800 44px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.paynum span { font-size: 20px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.payout .small { margin-top: 6px; }
.pricewatch .watchform { display: flex; gap: 8px; flex-wrap: wrap; }
.pricewatch input[type="email"] { flex: 1 1 220px; font: 16px var(--f-body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.pricewatch .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.watchstatus.bad { color: var(--neg, #b4452f); font-weight: 600; }
@media (max-width: 640px) { .paygrid { grid-template-columns: 1fr; } .paynum { font-size: 38px; } }

/* News */
.newslist { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.newsitem a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.newsitem a:hover { border-color: var(--accent); }
.newsitem h2 { font: 700 22px/1.2 var(--f-display); margin: 4px 0 6px; }
.newsitem p { margin: 0; color: var(--muted); }
.newsmeta { font-size: 15px; font-weight: 600; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; }
/* A News article: headline, photo, easy-reading text, who wrote it, more guides */
.newspost { padding-block: 10px 48px; }
.nphead { max-width: 780px; display: grid; gap: 12px; margin: 4px 0 22px; }
.nphead .ph { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.04; text-wrap: balance; }
.nphead .lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--muted); max-width: 64ch; }
.byline { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--chip); }
.byline > span { display: grid; line-height: 1.25; }
.byline a { color: var(--ink); font-weight: 700; }
.byline small { color: var(--muted); font-size: 15px; }
.nphero { margin: 0 0 28px; max-width: 1040px; }
.nphero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--chip); }
.nphero.roundup img { aspect-ratio: auto; object-fit: contain; }
.nphero figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); }
.npbody { display: grid; gap: 16px; font-size: 18px; line-height: 1.68; }
.npbody > :not(.newsgrid) { max-width: 68ch; }
.npbody > * { margin: 0; }
.npbody h2 { font: 700 clamp(24px, 2.6vw, 28px)/1.15 var(--f-display); margin: 22px 0 -4px; }
.npbody h3 { font: 700 21px/1.2 var(--f-display); margin: 10px 0 -6px; }
.npbody ul, .npbody ol { padding-left: 24px; display: grid; gap: 8px; }
.npbody li::marker { color: var(--accent); font-weight: 700; }
.npbody blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); font-style: italic; }
.npbody a { color: var(--accent); text-underline-offset: 3px; }
.npbody .newsgrid { margin: 6px 0 14px; }
.npauthor { max-width: 68ch; display: flex; gap: 18px; align-items: flex-start; margin: 40px 0 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.npauthor > div { flex: 1; }
.npwhos { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 4px 0 6px; }
.npwho { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.npwho img, .npwho .aboutletter { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--chip); display: grid; place-items: center; font: 700 26px var(--f-display); color: var(--muted); }
.npwho span { display: grid; line-height: 1.25; }
.npwho strong { font: 700 20px/1.15 var(--f-display); }
.npwho small { color: var(--muted); font-size: 15px; }
.npwho:hover strong { color: var(--accent); }
.byline .faces { display: flex; }
.byline .faces img + img { margin-left: -10px; box-shadow: 0 0 0 2px var(--bg); }
.npauthor > div { display: grid; gap: 6px; min-width: 0; }
.npauthor h2 { font: 700 24px/1.1 var(--f-display); margin: 0; }
.npauthor h2 a { color: var(--ink); text-decoration: none; }
.npauthor p { margin: 0; }
.npauthor .actions { margin-top: 8px; padding: 0; }
.npauthor .actions .btn.primary { flex: 0 1 auto; padding-inline: 28px; }
.npmore { margin-top: 44px; }
.npmore h2 { font: 700 26px/1.1 var(--f-display); margin: 0 0 14px; }
.npcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.npcard { display: grid; gap: 6px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); text-decoration: none; padding-bottom: 14px; }
.npcard:hover { border-color: var(--accent); }
.npcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--chip); }
.npcard .newsmeta, .npcard strong { padding: 0 14px; }
.npcard .newsmeta { margin-top: 6px; }
.npcard strong { font: 700 19px/1.2 var(--f-display); }
.npmore p { margin: 14px 0 0; }
@media (max-width: 600px) {
  .npbody { font-size: 17px; }
  .npauthor { flex-direction: column; padding: 16px; }
  .npwho img, .npwho .aboutletter { width: 56px; height: 56px; }
  .nphero img { border-radius: 8px; }
}
.card.gonecard { opacity: .7; background: var(--chip); }
.card.gonecard .body { display: grid; gap: 6px; }
.card.gonecard .name { margin: 0; }

/* Featured (picked in The Desk) */
.tag.featured { background: var(--brand-yellow, #f2c230); color: #1c1a10; font-weight: 800; }
.featnote { margin: 6px 0 0; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.featuredsec h2::after { content: ""; display: block; width: 64px; height: 5px; background: var(--brand-yellow, #f2c230); margin-top: 6px; border-radius: 1px; }

/* Just arrived */
.tag.arrived { background: var(--ink); color: var(--surface); }
.section h2 .count { font: 600 .6em/1 var(--f-body); color: var(--muted); vertical-align: middle; margin-left: 4px; }
.arrivedsec h2::after { content: ""; display: block; width: 64px; height: 5px; background: var(--ink); margin-top: 6px; border-radius: 1px; }

/* Popular */
.tag.popular { background: #e8572a; color: #fff; }
.popnote { margin: 0; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* The Desk's private preview builds */
.previewbar { position: sticky; top: 0; z-index: 60; background: #b4452f; color: #fff; text-align: center; padding: 7px 12px; font-size: 15px; }

/* Weekend Deals */
.tag.weekend { background: #c62828; color: #fff; font-weight: 800; }
.wkline { margin: 6px 0 0; font-weight: 700; font-size: 15px; color: #c62828; }
.wknote { margin: 0; font-weight: 600; }
.weekendsec h2::after { content: ""; display: block; width: 64px; height: 5px; background: #c62828; margin-top: 6px; border-radius: 1px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wkline { color: #ff8a80; } }
:root[data-theme="dark"] .wkline { color: #ff8a80; }

/* Card photo tags: the "special" ones top-left (wrapping before the corner ribbon), plain facts bottom-left */
.photo .tags { max-width: 62%; flex-wrap: wrap; gap: 4px; }
.photo .btags { position: absolute; left: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 60%; }
.photo .tag { font-size: 15px; padding: 4px 6px 3px; }
.photo .btags .tag { box-shadow: 0 1px 3px rgba(0,0,0,.35); }
#csend:disabled { opacity: .55; cursor: not-allowed; }

/* Dealer fee */
.feeline { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.feeline.unknown { font-style: italic; }
.panel .feeline { font-size: 15px; margin-top: 4px; }
.pagehead .stockline { margin: 2px 0 0; font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: .01em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.stockchip { display: inline-block; font: 700 16px/1 var(--f-body); color: var(--ink); background: var(--chip); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; letter-spacing: .01em; white-space: nowrap; }
.paneltop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.paneltop .stockchip { margin-left: auto; font-size: 15px; padding: 5px 9px; }
.pagehead .stockline .mono { font-family: var(--f-mono); font-weight: 400; font-size: 15px; }

/* The domain's main page (dealwithitcolorado.com): pick Cars or Jobs */
.hub-in { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.hub-head { max-width: 640px; }
.hub-band .bb-logo { --w: clamp(44px, 6.2vw, 66px); }
.hub-band .bb-tag { font-size: clamp(24px, 3vw, 34px); margin-top: 4px; }
.hub-main { max-width: 1140px; margin: 0 auto; padding: 36px 0 24px; }
.hub-ask { font: 700 clamp(24px, 3vw, 30px)/1.15 var(--f-display); margin: 0 0 18px; }
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.hub-tile { display: flex; flex-direction: column; gap: 6px; padding: 26px 26px 24px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.hub-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--brand-green); }
a.hub-tile:hover, a.hub-tile:focus-visible { transform: translateY(-2px); border-color: var(--brand-green); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.hub-tile h2 { margin: 0; font: 800 clamp(40px, 5vw, 52px)/.95 var(--f-display); text-transform: uppercase; color: var(--brand-yellow); }
.hub-kicker { margin: 0; font: 700 15px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hub-line { margin: 6px 0 4px; font-size: 18px; line-height: 1.4; }
.hub-tile ul { margin: 6px 0 18px; padding-left: 20px; color: var(--muted); }
.hub-tile li { margin: 3px 0; }
.hub-go { margin-top: auto; align-self: flex-start; flex: 0 0 auto; padding: 11px 18px; font-size: 16px; }
.brandband.hero .hub-in, .hub-in { align-items: flex-start; max-width: 1040px; }
.hub-tile.soon h2 { color: var(--ink); }
.hub-tile.soon::before { background: #2a332e; }
.hub-foot { max-width: 1040px; margin: 0 auto; padding: 16px 0 40px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.hub-foot p { margin: 6px 0; }

/* Deal With It: Jobs (dealwithitcolorado.com/jobs) */
/* Jobs banner: the car site's Monument photo band, a little shorter (Jobs pages are mostly lists and forms) */
.brandband.jband.hero .bb-in { min-height: clamp(240px, 24vw, 340px); }
@media (max-width: 640px) { .brandband.jband.hero .bb-in { min-height: 300px; } }
.jkicker { margin: 0; font: 800 30px/1 var(--f-display); text-transform: uppercase; color: var(--brand-ink); flex: 1 1 auto; }
.jkicker span { color: var(--brand-muted); font-size: 18px; letter-spacing: .06em; }
.jmain { max-width: 860px; margin: 0 auto; padding: 24px 0 32px; }
.jmain h1 { font: 800 clamp(28px, 4vw, 36px)/1.05 var(--f-display); margin: 0 0 8px; }
.jhead { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.jhead .btn { flex: 0 0 auto; }
.jcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; color: var(--ink); text-decoration: none; }
.jnarrow { max-width: 560px; margin: 0 auto; }
.jlist { display: grid; gap: 12px; margin-top: 12px; }
a.jitem:hover, a.jitem:focus-visible { border-color: var(--brand-green); }
.jitem h2 { margin: 0; font: 700 21px/1.2 var(--f-display); }
.jrow { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.jprice { font-size: 15px; color: var(--muted); white-space: nowrap; }
.jprice strong { font: 800 22px var(--f-display); color: var(--ink); }
.jitem p, .jcard > p { margin: 6px 0; }
.jtags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.jtag { font-size: 15px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.jtag.req { background: var(--sign); color: var(--sign-ink); border-color: var(--sign); }
.jtag.ver { background: #1d3a29; color: #8fdcaa; border-color: #1d3a29; }
.jnote { background: var(--chip); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }
.jdetails { white-space: pre-line; font-size: 17px; }
.jactions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.jactions .btn { flex: 0 0 auto; }
.jform { display: grid; gap: 14px; margin-top: 12px; }
.jform label { display: grid; gap: 6px; font-weight: 600; }
.jform input:not([type=checkbox]):not([type=radio]), .jform select, .jform textarea {
  font: 400 16px var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; }
.jform fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.jform legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.jform .check { display: flex; gap: 10px; align-items: center; }
.jform .btn { justify-self: start; flex: 0 0 auto; padding: 12px 22px; font-size: 16px; }
.jtwo { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.jchips { display: flex; flex-wrap: wrap; gap: 8px; }
.jchip { display: inline-flex !important; cursor: pointer; }
.jchip input { position: absolute; opacity: 0; pointer-events: none; }
.jchip span { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.jchip input:checked + span { background: var(--sign); color: var(--sign-ink); border-color: var(--sign); }
.jchip input:focus-visible + span { outline: 2px solid var(--brand-green); outline-offset: 2px; }
.jseg2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.jopt { display: flex !important; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 400 !important; cursor: pointer; }
.jopt:has(input:checked) { border: 2px solid var(--brand-green); }
.jseg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.jseg button { font: 600 15px var(--f-body); padding: 8px 12px; background: transparent; color: var(--ink); border: 0; cursor: pointer; }
.jseg button[aria-pressed="true"] { background: var(--chip); color: var(--sign); }
.jwhead { display: flex; gap: 16px; align-items: center; }
.javatar { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 800 28px var(--f-display); flex: none; }
.jworker h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 6px; }
.jfoot { max-width: 860px; }
@media (max-width: 640px) { .jkicker { font-size: 24px; } .jband .bb-nav { width: 100%; } }
/* Jobs: wide pages (cards) match the car site; forms stay narrow */
.jmain { max-width: var(--site-w); }
.jobspage .pagehead { padding-block: 4px 8px; }
.jobspage .pagehead h1 { margin: 0; }
.jobcard .photo { display: block; color: inherit; }
.photo .tag.fits { background: var(--brand-green); color: #0d1411; }
.jobcard .actions .btn.primary { text-align: center; text-decoration: none; }
.jphotos { display: flex; flex-wrap: wrap; gap: 8px; }
.jthumb { position: relative; width: 96px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--chip); }
.jthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jthumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.jphotobtns { display: flex; flex-wrap: wrap; gap: 8px; }
.jfilebtn { position: relative; flex: 0 0 auto !important; display: inline-flex !important; align-items: center; cursor: pointer; }
.jfilebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.jfilebtn[hidden] { display: none !important; }
.jobspage .carpage .jactions { margin-top: 0; }
@media (max-width: 760px) { .jobspage .carpage { grid-template-columns: 1fr; } }
.jobspage .jhead { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.jobspage .jfoot { max-width: var(--site-w); }
.gallery .main img[src*="/api/jobs/photo"] { object-fit: contain; background: #000; }
.gallery .main img[src*="/api/photo"] { object-fit: contain; background: #000; }

/* ---- Deal With It accounts (account.js): avatars, the profile photo row, the 18+ box ---- */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover;
  vertical-align: middle; flex: none; background: var(--line); }
.avatar.none { background: var(--accent); color: var(--accent-ink, #fff); font-weight: 700; font-size: .8em; text-transform: uppercase; }
.brandband .sitenav a.navme { display: inline-flex; align-items: center; gap: 6px; }
.jphotorow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.jphotorow #mphotoshow { display: flex; align-items: center; gap: 10px; }
.jworkbox { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.jpwbox { margin: 16px 0 8px; }
.jpwbox summary { cursor: pointer; font-weight: 600; }
.jadult { margin-bottom: 20px; border-color: var(--accent); }
.jadult .check { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.linkbtn.small { font-size: .85em; }

/* ---- Plans ---- */
.plancard .price.planwhen { font-size: 1.05rem; }
.planbig { font-size: 1.5rem; }
.youin { font-weight: 700; color: var(--accent); margin: 0; }
.faces { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.faces li { display: flex; align-items: center; gap: 8px; }
.comments { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 14px; }
.comments li { display: flex; gap: 10px; align-items: flex-start; }
.comments li p { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Plans: one shelf per kind of plan; up to 2 rows, then it scrolls sideways */
.shelf { margin: 8px 0 30px; }
.shelfhead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.shelfhead h2 { margin: 0; font-size: 1.35rem; }
.shelfrow { display: grid; grid-template-columns: repeat(var(--cols, 4), 280px); gap: 18px; overflow-x: auto;
  padding-bottom: 12px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--accent) var(--line); }
.shelfrow > .card { scroll-snap-align: start; }
.shelfrow::-webkit-scrollbar { height: 8px; }
.shelfrow::-webkit-scrollbar-track { background: var(--line); border-radius: 4px; }
.shelfrow::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
@media (max-width: 640px) { .shelfrow { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78vw; } }
/* "Looked after by Austin" note on Jobs and Plans, and the House rules page */
.housenote { border-left: 4px solid var(--brand-green); background: var(--surface); border-radius: 10px; padding: 12px 16px; margin: 4px 0 16px; max-width: 900px; }
.housenote p { margin: 0; line-height: 1.5; }
.rules { max-width: 760px; }
.rules .lead { font-size: 1.08rem; }
.rulelist { padding-left: 1.3em; display: grid; gap: 10px; }
.rules h2 { margin-top: 26px; }
.jrules { display: flex; align-items: center; gap: 8px; }
/* Plans: each kind of plan in its own inset, tinted panel (color set per kind in plansapp.js as --cat) */
#pgrid .shelf { --cat: #8a9aa2; margin: 0; padding: 16px 16px 6px; border-radius: 14px;
  background: color-mix(in srgb, var(--cat) 9%, var(--surface));
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .35); border-left: 4px solid var(--cat); }
#pgrid .shelf + .shelf { margin-top: 22px; position: relative; }
#pgrid .shelf + .shelf::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; border-top: 1px solid var(--line); }
#pgrid .shelfhead { flex-wrap: wrap; align-items: center; }
#pgrid .shelfhead h2 { color: var(--ink); }
.caticonbox { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--cat); background: color-mix(in srgb, var(--cat) 20%, transparent); }
.shelfpost { margin-left: auto; font-size: .9rem; font-weight: 600; color: var(--cat); }
#pgrid .shelf.empty { padding: 10px 16px; }
#pgrid .shelf.empty .shelfhead { margin: 0; }
#pgrid .shelf.empty h2 { font-size: 1.1rem; }
#pgrid .shelf.empty .caticonbox { width: 28px; height: 28px; }
.tag.cattag { background: color-mix(in srgb, var(--cat) 30%, #111613); color: #fff; border: 1px solid var(--cat); }
.pagehead .tag.cattag { font-size: .8rem; margin-right: 4px; }
.nophoto.catnophoto { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: var(--cat);
  background: color-mix(in srgb, var(--cat) 14%, var(--surface)); }
.nophoto.catnophoto .caticon { width: 40px; height: 40px; }
.nophoto.catnophoto.big .caticon { width: 72px; height: 72px; }
.nophoto.catnophoto span { color: var(--ink); opacity: .8; }
@media (max-width: 640px) { #pgrid .shelf { padding: 12px 10px 4px; } }
/* room for a card's hover ring and lift inside a shelf's scroll box (so it isn't cut off) */
.shelfrow { padding: 14px 12px 18px; margin: -14px -12px -6px; }
/* the empty "Post one" card at the end of a shelf */
.card.postcard { align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; min-height: 300px;
  border: 2px dashed color-mix(in srgb, var(--cat) 60%, transparent); background: color-mix(in srgb, var(--cat) 6%, transparent);
  color: var(--ink); text-decoration: none; }
.card.postcard strong { font-size: 1.2rem; color: var(--cat); }
.card.postcard .caticonbox { width: 52px; height: 52px; }
.card.postcard .caticonbox .caticon { width: 28px; height: 28px; }
.card.postcard:hover { border-color: var(--cat); }
/* Main page: each section's tile in its own color with an icon (set in build_site.py HUB_LOOK as --tile) */
.hub-sub { margin: 8px 0 0; font-size: clamp(16px, 1.8vw, 19px); color: var(--brand-ink); opacity: .9; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hub-tile { --tile: var(--brand-green); background: linear-gradient(160deg, color-mix(in srgb, var(--tile) 12%, var(--surface)) 0%, var(--surface) 55%); }
.hub-tile::before { background: var(--tile); }
.hub-tile h2 { color: var(--tile); }
a.hub-tile:hover, a.hub-tile:focus-visible { border-color: var(--tile); }
.hub-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.hub-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px;
  color: var(--tile); background: color-mix(in srgb, var(--tile) 18%, transparent); border: 1px solid color-mix(in srgb, var(--tile) 40%, transparent); }
.hub-tile.soon::before { background: color-mix(in srgb, var(--tile) 45%, #2a332e); }
.hub-tile.soon h2 { color: color-mix(in srgb, var(--tile) 70%, var(--ink)); }
/* ---- Talk (Social): topic chips, thread rows, a thread ---- */
.tchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.tchips button { --cat: var(--brand-green); border: 1px solid color-mix(in srgb, var(--cat) 55%, transparent); background: transparent; color: var(--ink);
  padding: 7px 14px; border-radius: 999px; font: 600 15px var(--f-body); cursor: pointer; }
.tchips button[aria-pressed="true"] { background: color-mix(in srgb, var(--cat) 30%, var(--surface)); border-color: var(--cat); }
.tlist { display: grid; gap: 12px; padding-bottom: 40px; }
.trow { --cat: #8a9aa2; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--cat); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.trow:hover, .trow:focus-visible { border-color: var(--cat); transform: translateY(-1px); }
.tthumb { width: 92px; height: 70px; object-fit: cover; border-radius: 8px; flex: none; }
.tmain { flex: 1; min-width: 0; }
.tmain h3 { margin: 4px 0 2px; font-size: 1.15rem; line-height: 1.25; }
.ttags { display: flex; flex-wrap: wrap; gap: 6px; }
.ttags .tag { position: static; }
.texcerpt { margin: 2px 0 6px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.tmeta { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.tcount { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 74px; text-align: center; }
.tcount strong { font-size: 1.4rem; line-height: 1; }
.tcount span { font-size: .8rem; color: var(--muted); }
.tag.unftag { background: #3a2a1a; color: #f0b27a; border: 1px solid #a8682f; }
.tthread { --cat: #8a9aa2; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--cat); border-radius: 12px; padding: 18px 20px; max-width: 900px; }
.tthread h1 { margin: 8px 0 6px; }
.tbody { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.55; margin: 12px 0; }
.tphotos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tphotos img { max-width: 100%; max-height: 420px; border-radius: 10px; display: block; }
.tphotos a:only-child img { max-height: 560px; }
.tphotos a:not(:only-child) img { width: 200px; height: 150px; object-fit: cover; }
.jmode { align-items: flex-start; }
@media (max-width: 640px) { .tthumb { width: 64px; height: 52px; } .tcount { min-width: 52px; } .trow { padding: 12px; gap: 10px; } }
/* ---- Valley Chat ---- */
.chatbox { position: relative; max-width: 900px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid #a07ad6;
  border-radius: 12px; display: flex; flex-direction: column; margin-bottom: 40px; }
.chathead { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.herenow { color: var(--brand-green); font-weight: 600; font-size: .9rem; }
.chatlog { height: min(62vh, 620px); overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chatmsg { display: flex; gap: 10px; align-items: flex-start; }
.chatmsg.mine .chatbody { background: color-mix(in srgb, #a07ad6 14%, var(--surface)); }
.chatbody { min-width: 0; padding: 6px 10px; border-radius: 10px; }
.chatbody p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chatwho { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.chatwho .linkbtn { opacity: .55; }
.chatmsg:hover .chatwho .linkbtn, .chatwho .linkbtn:focus { opacity: 1; }
.chatday { align-self: center; font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin: 4px 0; }
.chatnew { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; border: 0; border-radius: 999px; padding: 6px 14px;
  background: #a07ad6; color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.chatform { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chatform textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; }
.chatnote { margin: 0; padding: 0 14px 12px; }
.chatempty { margin: auto; }
@media (max-width: 640px) { .chatlog { height: 58vh; padding: 8px; } }
.chatform textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.chatform textarea:focus { outline: 2px solid #a07ad6; outline-offset: 1px; }
.chatform textarea { flex: 1 1 auto; width: auto; min-width: 0; }
.chatform .btn { flex: 0 0 auto; width: auto; padding-left: 22px; padding-right: 22px; }
/* ---- People's pages (Social, profile.js): banner, theme color (--pg), sections ---- */
.pg { --pg: #5fb393; max-width: 1100px; margin: 0 auto 40px; }
.pgbanner { height: 220px; border-radius: 14px; background-size: cover; background-position: center; position: relative; overflow: hidden;
  border-bottom: 4px solid var(--pg); }
.pgbanner > span { position: absolute; right: 12px; bottom: 8px; font-size: .75rem; color: rgba(255,255,255,.8); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.preset-monument { background: url("/assets/hero/monument-1100.webp") center 60% / cover, #8a4b2f; }
.preset-bookcliffs { background: linear-gradient(180deg, #2b2d5c 0%, #7a4f7e 45%, #e0906a 75%, #6b4a3a 76%, #3b2c25 100%); }
.preset-orchard { background: radial-gradient(circle at 20% 30%, #f6b26b 0 6%, transparent 7%), radial-gradient(circle at 70% 55%, #f6b26b 0 5%, transparent 6%),
  linear-gradient(180deg, #8fc7e8 0%, #cfe8c3 55%, #4f8f3f 56%, #2f5f2a 100%); }
.preset-river { background: linear-gradient(180deg, #f2c48c 0%, #c8553d 40%, #8a3b2a 55%, #2f7f8f 56%, #1f5160 100%); }
.preset-mesa { background: linear-gradient(180deg, #a9d1ea 0%, #e8f2f7 40%, #2f5f3f 41%, #1d3b28 100%); }
.preset-desert { background: linear-gradient(180deg, #2a1f4a 0%, #c8553d 50%, #f2a65a 70%, #a0522d 71%, #5a2f1d 100%); }
.pghead { display: flex; gap: 18px; align-items: flex-end; margin: -56px 18px 0; position: relative; flex-wrap: wrap; }
.pgphoto { display: block; border-radius: 50%; border: 5px solid var(--bg); background: var(--bg); line-height: 0; }
.pgphoto .avatar { width: 120px; height: 120px; font-size: 2.6rem; }
.pgname { flex: 1; min-width: 220px; padding-top: 60px; }
.pgname h1 { margin: 0; color: var(--pg); font-size: clamp(30px, 4vw, 42px); }
.pgname p { margin: 2px 0; }
.pgheadline { font-size: 1.1rem; font-style: italic; }
.pgbadges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pgbadge { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--pg);
  color: var(--ink); background: color-mix(in srgb, var(--pg) 18%, transparent); }
.pgactions { padding-bottom: 6px; }
@media (max-width: 760px) { .pgbanner { height: 150px; } .pghead { margin: -48px 8px 0; } .pgname { padding-top: 0; } }
.pgbox { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--pg); border-radius: 12px; padding: 14px 16px; }
.pgbox h2 { margin: 0 0 10px; font-size: 1.15rem; color: var(--pg); }
.pgabout { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; line-height: 1.55; }
.pgchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pgchips span { padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--pg) 22%, var(--surface)); font-size: .9rem; }
.pgplan { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pgplan:last-child { border-bottom: 0; }
.pgplan strong { display: block; }
.pgplan:hover strong { color: var(--pg); }
.wholink { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 2px; }
.wholink:hover { color: var(--accent); }
/* the "Your page" editor */
.jpagebox { display: grid; gap: 12px; }
.flabel { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.pgswatches { display: flex; flex-wrap: wrap; gap: 8px; }
.pgswatch input, .pgbanneropt input { position: absolute; opacity: 0; pointer-events: none; }
.pgswatch span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 3px solid transparent; cursor: pointer; }
.pgswatch input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 2px var(--c); }
.pgswatch input:focus-visible + span, .pgbanneropt input:focus-visible + .pgbanner { outline: 2px solid var(--accent); outline-offset: 2px; }
.pgbanners { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pgbanneropt { position: relative; cursor: pointer; }
.pgbanneropt .pgbanner { height: 70px; border-radius: 8px; border: 3px solid transparent; border-bottom-width: 3px; }
.pgbanneropt input:checked + .pgbanner { border-color: var(--accent); }
.pgbanner.pgown { display: grid; place-items: center; background: var(--surface); border: 2px dashed var(--line); color: var(--muted); font-size: .85rem; }

/* People's pages, round 2: sections stacked down the page, the same plan cards and thread rows as everywhere,
   and the person's theme color + background pattern behind the whole site while their page is open. */
.pg { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.pghead { margin-bottom: 4px; }
.pgtwo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: start; }
.pgrow { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 18px; overflow-x: auto; padding: 14px 12px 18px; margin: -14px -12px -6px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--pg) var(--line); }
.pgrow > .card { scroll-snap-align: start; }
@media (max-width: 640px) { .pgrow { grid-auto-columns: 78vw; } }
.pgbox .tlist { padding-bottom: 0; }
.pgfreq { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pgfreq li::marker { color: var(--pg); }
.pgtop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.pgtopf { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; text-align: center; font-size: .88rem; }
.pgtopf .avatar { width: 64px; height: 64px; font-size: 1.4rem; border: 2px solid var(--pg); }
.pgtopf:hover span { color: var(--pg); }
.pggal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pggal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.pgfriends { font-weight: 700; color: var(--pg); margin-right: 8px; }
.pgactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pgreq { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.pgreqs { border-color: var(--pg); }
.pgwall { margin-top: 12px; }
.pgfoot { margin: 0; }
.pgtoppick { display: flex; flex-wrap: wrap; gap: 6px; }

/* the patterns (also used for the little previews in the editor) */
[data-pgbg="topo"] { --pat: url("/assets/topo-dark.svg"); --patsize: 640px 640px; --patop: .07; }
[data-pgbg="stars"] { --pat: radial-gradient(1.4px 1.4px at 18px 22px, #fff 99%, transparent), radial-gradient(1px 1px at 70px 60px, #fff 99%, transparent),
  radial-gradient(1.8px 1.8px at 110px 15px, #fff 99%, transparent), radial-gradient(1px 1px at 40px 100px, #fff 99%, transparent),
  radial-gradient(1.2px 1.2px at 95px 95px, #fff 99%, transparent); --patsize: 130px 130px; --patop: .8; }
[data-pgbg="ridges"] { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='90'%3E%3Cpath d='M0 70 L30 40 L55 58 L90 18 L125 52 L150 34 L185 62 L215 30 L240 50' fill='none' stroke='%23aaa' stroke-width='2'/%3E%3C/svg%3E");
  --patsize: 240px 90px; --patop: .16; }
[data-pgbg="waves"] { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 20 Q15 5 30 20 T60 20 T90 20 T120 20' fill='none' stroke='%23aaa' stroke-width='2'/%3E%3C/svg%3E");
  --patsize: 120px 40px; --patop: .16; }
[data-pgbg="pines"] { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cpath d='M22 12 L8 40 H16 L4 62 H40 L28 40 H36 Z M66 48 L56 66 H62 L52 82 H80 L70 66 H76 Z' fill='%23aaa'/%3E%3C/svg%3E");
  --patsize: 90px 90px; --patop: .1; }
[data-pgbg="dots"] { --pat: radial-gradient(circle, #ccc 2.5px, transparent 3.5px); --patsize: 26px 26px; --patop: .14; }
[data-pgbg="checker"] { --pat: conic-gradient(#bbb 25%, transparent 0 50%, #bbb 0 75%, transparent 0); --patsize: 56px 56px; --patop: .07; }
[data-pgbg="plain"] { --pat: none; --patop: 0; }
html:has(body.looked), body.looked { background: color-mix(in srgb, var(--pg) 13%, #0e1310); }
html body.looked[data-pgbg]::before { background: var(--pat) 0 0 / var(--patsize) repeat; opacity: var(--patop); }
body.pgmode.pglight, html:has(body.pgmode.pglight) { background: color-mix(in srgb, var(--pg) 10%, #f4f6f4); }
body.pgmode.pglight { --bg: #f4f6f4; --surface: #ffffff; --ink: #18201c; --muted: #5b6a63; --line: #d9e0dc; --accent: #2f6b55; }
html body.pgmode.pglight[data-pgbg]::before { filter: invert(1); }
body.pgmode.pglight .pgname h1, body.pgmode.pglight .pgbox h2 { color: color-mix(in srgb, var(--pg) 75%, #000); }
.pgbgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 8px; }
.pgbgopt { position: relative; display: grid; gap: 4px; justify-items: center; cursor: pointer; }
.pgbgopt input { position: absolute; opacity: 0; pointer-events: none; }
.pgbgswatch { width: 100%; height: 56px; border-radius: 8px; border: 3px solid transparent;
  background: var(--pat) 0 0 / var(--patsize) repeat, #1d2420; background-blend-mode: normal; }
.pgbgswatch[data-pgbg="topo"] { background-size: 260px 260px; }
.pgbgopt input:checked + .pgbgswatch { border-color: var(--accent); }
.pgbgopt input:focus-visible + .pgbgswatch { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Wider on big screens: lists of cards use more of the screen (text blocks keep a reading width) ---- */
:root { --site-w: 1240px; }
@media (min-width: 1500px) { :root { --site-w: 1640px; } }

/* ---- The rotating header photos (banners.js) ---- */
.bbrot { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: 50% 30%;
  opacity: 0; transition: opacity 1.4s ease; }
.bbrot.on { opacity: 1; }
@media (max-width: 640px) { .bbrot { background-position: 50% 40%; } }

/* ---- A person's page takes over the site header with their banner (profile.js) ---- */
.pghdr { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: 50% 40%; }
/* a look (a person's page, your own colors in Social, or a section's colors from The Desk): accents only; the
   meaningful colors (buttons, deal scores, category tags) stay the same for everyone */
body.looked .bb-logo::after { background: var(--pg); }
body.looked .housenote { border-left-color: var(--pg); }
body.looked .brandband .sitenav a[aria-current="page"] { color: var(--pg); }
body.pgmode .pg > .pgbanner { display: none; }
body.pgmode .pghead { margin-top: 0; }
body.pgmode .pgname { padding-top: 0; }

/* ---- People's pages: two columns on a computer (MySpace shape), one on a phone ---- */
.pgcols { display: grid; gap: 18px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.pgside, .pgmainc { display: grid; gap: 18px; min-width: 0; align-content: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .pgcols { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
  .pgside .pghead { flex-direction: column; align-items: flex-start; margin: 0; }
  .pgside .pgname { padding-top: 0; min-width: 0; }
  body.pgmode .pgside .pgname { padding-top: 0; }
}
.pg { max-width: none; }
.pgside .pgtwo, .pgside .pgtop { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- Valley Chat: wider, with who's here down the side on a computer ---- */
.chatwrap { display: grid; gap: 16px; align-items: start; }
.chatwrap .chatbox { max-width: none; }
.chathere { display: none; }
@media (min-width: 1000px) {
  .chatwrap { grid-template-columns: minmax(0, 1fr) 260px; }
  .chathere { display: block; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid #a07ad6; border-radius: 12px; padding: 12px 14px; }
  .chathere h2 { font-size: 1rem; margin: 0 0 8px; }
  .chathere ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .chathere li { display: flex; align-items: center; gap: 8px; }
}
body.pgmode .brandband .bb-credit { display: none; }
/* the "any color" swatch: a rainbow ring until a color is picked */
.pgswatch.pgcustom { position: relative; }
.pgswatch.pgcustom span { background: conic-gradient(#e05a5a, #f2c230, #5fb393, #4fa3d8, #a07ad6, #e05a5a); }
.pgswatch.pgcustom input:checked + span { background: var(--c); }
.pgswatch.pgcustom input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

/* ---- The content band: everything below the header sits on a darker column (50%) with crisp edges; the
   topo map (or a person's pattern and color) shows at full strength outside it. The header photo covers its top. */
:root { --band: rgb(0 0 0 / .5); --band-edge: rgb(255 255 255 / .08); }
body::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; z-index: -1; pointer-events: none;
  width: min(100%, calc(var(--site-w) + 64px)); transform: translateX(-50%);
  background: var(--band); border-inline: 1px solid var(--band-edge);
  box-shadow: 0 0 24px rgb(0 0 0 / .35);
}
body.looked { --band: color-mix(in srgb, var(--pg) 10%, rgb(0 0 0 / var(--bandop, .5))); }
body.pgmode.pglight { --band: rgb(255 255 255 / .55); --band-edge: rgb(0 0 0 / .1); }
@media (max-width: 900px) { body::after { border-inline: 0; box-shadow: none; } }
@media print { body::after { display: none; } }
/* ---- Theme color: one square swatch + a small picker (profile.js openPicker) ---- */
.pgcolorrow { position: relative; display: flex; align-items: center; gap: 12px; }
.pgcolorbtn { width: 48px; height: 48px; border-radius: 10px; border: 2px solid var(--line); background: var(--c, #5fb393); cursor: pointer;
  box-shadow: inset 0 0 0 3px var(--surface); }
.pgcolorbtn:hover, .pgcolorbtn:focus-visible { border-color: var(--ink); }
.pgpicker { position: absolute; top: 58px; left: 0; z-index: 40; width: min(300px, 86vw); display: grid; gap: 12px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.pgsv { --hue: hsl(150 100% 50%); position: relative; height: 170px; border-radius: 8px; cursor: crosshair; touch-action: none;
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--hue)); }
.pgsv:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pgsvknob { position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.6);
  transform: translate(-50%, -50%); pointer-events: none; }
.pghue { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 7px; margin: 0; cursor: pointer;
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.pghue::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #333; }
.pghue::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #333; }
.pgpickrow { display: flex; align-items: center; gap: 10px; }
.pgpickrow label { display: flex; align-items: center; gap: 6px; font-size: .85rem; flex: 1; }
.pgpickrow .pghex { width: 100%; min-width: 0; font: 15px var(--f-mono, monospace); padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); }
.pgpickswatch { width: 30px; height: 30px; border-radius: 6px; flex: none; border: 1px solid var(--line); }
.jform .pgpicker input.pghue, .pgpicker input.pghue { background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); border: 0; padding: 0; height: 14px; box-shadow: none; }
/* With a look on, the surfaces take a little of its color too: cards, panels, filters, inputs, chips, lines */
body.looked:not(.pglight) {
  --bg: color-mix(in srgb, var(--pg) 10%, #0f0f0f);
  --surface: color-mix(in srgb, var(--pg) 14%, #171717);
  --line: color-mix(in srgb, var(--pg) 30%, #282828);
  --chip: color-mix(in srgb, var(--pg) 20%, #1f1f1f);
}
body.looked:not(.pglight) .brandband .sitenav a[aria-current="page"] { background: color-mix(in srgb, var(--pg) 26%, #262626); }

/* Plans: a card's main button wears its kind's color (Outdoors green, Games purple...) */
.btn.primary.catbtn { background: var(--cat); border-color: var(--cat); color: #0d1411; }
.btn.primary.catbtn:hover { background: color-mix(in srgb, var(--cat) 82%, #fff); border-color: color-mix(in srgb, var(--cat) 82%, #fff); }

/* Plans > Specials: Austin's own events. They glow like a standout car (the moving rainbow border above),
   sit in a row of bigger cards at the top of Plans, and wear a "Special" ribbon with a light sweeping across it. */
.specialrow { margin: 10px 0 26px; }
.specialrow > h2 { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.specialrow > h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--rgb)); box-shadow: 0 0 10px rgba(168, 85, 247, .7); }
.spotgrid { display: grid; gap: 22px; padding: 4px; grid-template-columns: repeat(var(--n, 1), minmax(0, 460px)); }
.spotcard .photo { aspect-ratio: 16 / 9; }
.spotcard .name { font-size: 1.45rem; }
.spotcard .planwhen { font-size: 1.25rem; }
@media (max-width: 900px) { .spotgrid { grid-template-columns: minmax(0, 1fr); } }
.ribbon.standout.special, .spbadge {
  background: linear-gradient(100deg, #7c3aed 0%, #2563eb 38%, #b9d4ff 50%, #2563eb 62%, #7c3aed 100%);
  background-size: 300% 100%; animation: special-shine 3.5s linear infinite;
  border-color: #3b1b7a; box-shadow: 0 2px 10px rgba(0, 0, 0, .35), 0 0 14px rgba(124, 58, 237, .6);
}
.spbadge { display: inline-block; vertical-align: middle; margin: 0 8px 4px 0; padding: 5px 10px 4px; border-radius: 4px;
  border: 1px solid #3b1b7a; color: #fff; font: 700 15px/1 var(--f-display); letter-spacing: .07em; text-transform: uppercase; }
@keyframes special-shine { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .ribbon.standout.special, .spbadge { animation: none; background-position: 0 0; } }

/* ---- Messages as bubbles, like texts (account.js DWI.bubbles): yours right in your page color, others left ---- */
.bubbles { display: flex; flex-direction: column; margin: 0 0 14px; }
.bmsg { display: flex; gap: 8px; align-items: flex-start; max-width: min(80%, 640px); margin-top: 12px; }
.bmsg.cont { margin-top: 3px; }
.bmsg.theirs { align-self: flex-start; }
.bmsg.mine { align-self: flex-end; }
.bav { width: 30px; flex: none; }
.bcol { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.bmsg.mine .bcol { align-items: flex-end; }
.bname { font-size: 15px; font-weight: 600; margin: 0 0 3px 12px; }
.bname a { color: var(--ink); }
.bubble { padding: 8px 13px; border-radius: 18px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere;
  background: color-mix(in srgb, var(--ink) 10%, var(--surface)); color: var(--ink); }
.bmsg.theirs .bubble { border-top-left-radius: 6px; }
.bmsg.theirs.cont .bubble { border-top-left-radius: 18px; border-bottom-left-radius: 6px; }
.bmsg.mine .bubble { background: var(--mine, var(--accent)); color: var(--mine-ink, var(--accent-ink)); border-bottom-right-radius: 6px; }
.bmeta { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--muted); margin: 3px 12px 0; }
.bmeta .linkbtn { font-size: 15px; opacity: .55; }
.bmsg:hover .bmeta .linkbtn, .bmeta .linkbtn:focus-visible { opacity: 1; }
.btag { display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 6px 1px; border-radius: 4px; background: var(--chip); color: var(--muted); vertical-align: 1px; }
@media (max-width: 640px) { .bmsg { max-width: 88%; } }

/* ---- A plan's page: the date box sits beside the photo and ends where the photo ends. About it fills the box
   (it scrolls if long), and Who's going is a strip of faces at the bottom that opens the full list. ---- */
.planpanel { display: flex; flex-direction: column; gap: 12px; }
.planpanel > * { margin: 0; }
.planpanel .bigprice { margin-bottom: 2px; }
.pabout { border-top: 1px solid var(--line); padding-top: 12px; }
.pabout h2 { font: 700 15px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.pabout .jdetails { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pabout.empty { border: 0; padding: 0; }
.pgoing { display: grid; gap: 8px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pgoing:hover { border-color: var(--accent); }
.gfaces { display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; padding-left: 8px; min-height: 34px; }
.gfaces .avatar { margin-left: -8px; border: 2px solid var(--bg); box-sizing: content-box; }
.gmore { margin-left: 6px; font-weight: 700; color: var(--muted); }
.gtext { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.glink { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 15px; }
@media (min-width: 861px) {
  .plancarpage { align-items: stretch; }
  .pside { position: relative; min-height: 470px; }
  .pside > .planpanel { position: absolute; inset: 0; }
  .pabout { flex: 1 1 0; min-height: 70px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
  .pabout.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 34px), transparent);
                 mask-image: linear-gradient(#000 calc(100% - 34px), transparent); }
  .pabout.empty { flex: 1 1 0; }
}
.gdialog { width: min(440px, 92vw); max-height: 80vh; padding: 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); }
.gdialog::backdrop { background: rgba(0, 0, 0, .6); }
.gdhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.gdhead h2 { margin: 0; font-size: 1.3rem; }
.gdialog h3 { margin: 16px 0 6px; font-size: 1rem; color: var(--muted); }
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.glist li { display: flex; align-items: center; gap: 10px; }
.glist li > .muted { margin-left: auto; }
.glist .linkbtn { margin-left: 8px; }
.chatlog.bubbles { gap: 0; margin: 0; }
.gdhead .btn { width: auto; flex: none; }

/* A plan's date box, part by part: the date in its own dark box, details as labeled rows, a big I'm in */
.planhead h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; }
.pwhen { display: grid; gap: 2px; padding: 14px 16px; border-radius: 10px;
  background: color-mix(in srgb, var(--cat, var(--accent)) 14%, #0b0e0c); border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 55%, transparent);
  border-left: 5px solid var(--cat, var(--accent)); color: #f1f4f2; }
.pday { font: 700 15px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--cat, var(--accent)) 70%, #fff); }
.pdate { font: 700 clamp(26px, 2.6vw, 34px)/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.psoon { font-size: 15px; font-weight: 600; color: #c9d2cd; margin-top: 2px; }
.prows { margin: 0; display: grid; }
.prows > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.prows > div:first-child { padding-top: 2px; }
.prows dt { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.prows dt svg { flex: none; color: var(--muted); position: relative; top: 3px; }
.prows dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.maplink { margin-left: 8px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.pacts { display: grid; gap: 8px; }
.pacts .pjoin { width: 100%; font-size: 1.1rem; padding: 13px 16px; }
.pacts .pinterest { width: 100%; padding: 8px 14px; }
.pacts > .btn.ghost:only-child { width: 100%; }
.youinbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 8px;
  background: color-mix(in srgb, #2ee66b 16%, var(--surface)); border: 1px solid color-mix(in srgb, #2ee66b 50%, transparent); }
.youinbar > span { font-weight: 800; font-size: 1.05rem; color: #7ff0a6; }
body.pglight .youinbar > span { color: #17603a; }

/* People's pages: bigger profile pictures (the page's own photo, Top Friends, friend requests) */
.pgphoto .avatar { width: 180px; height: 180px; font-size: 3.6rem; }
.pgtopf .avatar { width: 76px; height: 76px; font-size: 1.7rem; border-width: 3px; }
.pgreq .avatar { width: 46px; height: 46px; }
@media (max-width: 760px) {
  .pgphoto .avatar { width: 140px !important; height: 140px !important; font-size: 3rem; }   /* beats the size set on the circle */
  .pgtopf .avatar { width: 72px !important; height: 72px !important; }
}

/* Bigger profile pictures everywhere: message bubbles, plan cards (the host), Who's going, chat */
.bav { width: 42px; }
.bname { margin-left: 14px; }
.cardhost { display: flex; align-items: center; gap: 8px; }
.gfaces { padding-left: 10px; min-height: 44px; }
.gfaces .avatar { margin-left: -10px; }
.tmeta .avatar { margin-right: 4px; }
.headhost { white-space: nowrap; } .headhost .avatar { margin: 0 2px; }

/* ---- The Social home (/social/#home): a big card each for Plans, Boards and Valley Chat ---- */
.homehead h1 { font-size: clamp(32px, 4.4vw, 48px); }
.homecards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 18px 0 22px; }
@media (max-width: 900px) { .homecards { grid-template-columns: minmax(0, 1fr); } }
.homecard { --hc: var(--accent); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px;
  border-radius: 14px; text-decoration: none; color: var(--ink); overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--hc) 20%, var(--surface)) 0%, var(--surface) 60%);
  border: 1px solid color-mix(in srgb, var(--hc) 45%, var(--line)); border-top: 5px solid var(--hc);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.homecard:hover, .homecard:focus-visible { transform: translateY(-3px); border-color: var(--hc);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 1px var(--hc), 0 0 22px color-mix(in srgb, var(--hc) 35%, transparent); }
.hcicon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--hc);
  background: color-mix(in srgb, var(--hc) 20%, transparent); border: 1px solid color-mix(in srgb, var(--hc) 50%, transparent); }
.homecard h2 { margin: 4px 0 0; font: 800 clamp(26px, 2.4vw, 32px)/1.05 var(--f-display); color: var(--ink); }
.hcblurb { margin: 0; color: var(--muted); }
.hclive { margin: 6px 0 0; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hclive strong { font-size: 1.35rem; color: var(--hc); }
.hcmore { margin: 0; font-size: .95rem; color: var(--ink); opacity: .9; overflow-wrap: anywhere; }
.hcgo { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--hc); }
.livedot { width: 10px; height: 10px; border-radius: 50%; background: #2ee66b; display: inline-block; flex: none;
  box-shadow: 0 0 0 0 rgba(46, 230, 107, .6); animation: livepulse 1.8s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 107, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(46, 230, 107, 0); } }
@media (prefers-reduced-motion: reduce) { .livedot { animation: none; } .homecard { transition: none; } .homecard:hover { transform: none; } }
.hspecialnote { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.homemini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 10px; }
.homemini a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink);
  font-weight: 700; background: var(--surface); border: 1px solid var(--line); }
.homemini a:hover { border-color: var(--accent); }
.hmicon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--accent); font-size: 1.1rem; flex: none; }

/* Boards: threads as cards (like plan cards) */
.tgrid { padding-bottom: 40px; }
.threadcard .texcerpt { -webkit-line-clamp: 3; margin: 6px 0 2px; font-size: .95rem; }
.threadcard .name a { overflow-wrap: anywhere; }
.pgbox .tgrid { padding-bottom: 0; }

/* Car cards open their page when tapped anywhere (site.js) */
.card.linkcard { cursor: pointer; }
.card.linkcard :is(.body, .photo) { -webkit-tap-highlight-color: transparent; }

/* About pages: the rest of the team */
.about .team { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; }
.about .teamcard { display: flex; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; min-width: 240px; }
.about .teamcard:hover { border-color: var(--accent, #5fb393); }
.about .teamcard img, .about .teamav { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.about .teamav { display: grid; place-items: center; background: var(--chip); font-weight: 700; font-size: 22px; }
.about .teamcard span { display: grid; gap: 2px; }
.about .teamcard small { color: var(--muted); }

/* ---- Cards that aren't cars: the team, News, posts from Facebook / Instagram ---- */
.fshelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 296px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin; }
.fshelf > * { scroll-snap-align: start; }
@media (max-width: 700px) { .fshelf { grid-auto-columns: 78%; } }
.feedtop { padding-top: 6px; }
.fcard { --fk: var(--accent); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--fk); border-radius: 8px; overflow: hidden; color: inherit; text-decoration: none; min-width: 0; transition: transform .15s, box-shadow .15s; }
a.fcard:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.fcard.f-news { --fk: #e0a63a; } .fcard.f-social { --fk: #4f8fe8; }
.fimg { aspect-ratio: 16 / 9; background: var(--chip); display: grid; place-items: center; overflow: hidden; }
.fimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fimg.portrait { aspect-ratio: 4 / 5; }
.fimg.portrait .fletter { width: 100%; height: 100%; font-size: 64px; }
.fletter { display: grid; place-items: center; font: 800 34px var(--f-display); color: var(--muted); background: var(--chip); }
.fplay { font-size: 34px; color: var(--muted); }
.fbody { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 14px; flex: 1; }
.f-team .fbody { text-align: center; align-items: center; }
.fkind { font: 700 15px/1.2 var(--f-display); letter-spacing: .05em; text-transform: uppercase; color: var(--fk); }
.fbody strong { font: 700 17px/1.25 var(--f-display); }
.fbody p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fgo { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 15px; color: var(--fk); }
.grid > .fshelfrow { grid-column: 1 / -1; margin: 6px 0; padding: 14px 16px 6px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.fshelfrow h3 { margin: 0 0 10px; font: 700 18px var(--f-display); }
.yoursp { margin: 18px 0 6px; max-width: 360px; }
.yourlabel { display: block; font: 700 15px var(--f-display); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.yoursp .fcard { flex-direction: row; align-items: center; }
.yoursp .fcard { align-items: stretch; }
.yoursp .fimg.portrait { width: 104px; flex: none; aspect-ratio: auto; min-height: 130px; }
.yoursp .fimg.portrait .fletter { font-size: 40px; }
.yoursp .f-team .fbody { text-align: left; align-items: flex-start; }
.oldroundup { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 8px; padding: 10px 14px; font-weight: 600; }

/* Walkarounds */
.photo video.hoverplay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; z-index: 1; pointer-events: none; }
.photo video.hoverplay.on { opacity: 1; }
.photo .btags, .photo .tags, .photo .pcount, .photo .pnav { z-index: 2; }
.gallery .main video { width: 100%; height: 100%; max-height: 72vh; background: #000; display: block; object-fit: contain; }
.walknote { display: none; margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--s2, var(--chip)); color: var(--muted); font-size: 15px; }
.gallery.onwalk .walknote { display: block; }
.thumbs .vthumb { position: relative; }
.thumbs .vthumb span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); background: rgba(0, 0, 0, .25); }

/* How it's equipped (VIN details and the window sticker, equipment.py) */
.card .equip { font-size: 15px; font-weight: 600; color: var(--muted); margin: -2px 0 6px; }
.equipsec .efacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.equipsec .efacts span { background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 15px; }
.equipsec .etotal { margin: 0 0 10px; }
.pkgs { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.pkgs li { display: flex; gap: 10px; align-items: baseline; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 8px 12px; background: var(--surface); }
.pkgs li b { color: var(--accent); font-weight: 700; }
.pkgs.small li { font-size: 15px; padding: 6px 10px; border-left-width: 1px; }
.alloptions summary { cursor: pointer; font-weight: 700; margin: 4px 0 8px; }

/* About pages: a portrait card (photo, name, tagline) beside the bio */
.about .aboutgrid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; margin: 8px 0 10px; }
@media (max-width: 720px) { .about .aboutgrid { grid-template-columns: 1fr; } .about .aboutcard { max-width: 360px; } }
.about .aboutcard { margin: 0; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; overflow: hidden; background: var(--surface); }
.about .aboutcard img, .about .aboutletter { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.about .aboutletter { display: grid; place-items: center; font: 800 88px var(--f-display); color: var(--muted); background: var(--chip); }
.about .aboutcard figcaption { padding: 14px 16px 16px; display: grid; gap: 4px; }
.about .aboutcard h1 { margin: 0; font-size: 1.6rem; line-height: 1.15; }
.about .aboutcard .tagline { margin: 0; font-weight: 600; }
.about .aboutcard .role { margin: 0; color: var(--muted); font-size: 15px; }
.about .aboutbio > p:first-child { margin-top: 0; }
.about .team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 250px)); gap: 14px; margin: 10px 0 0; }
.aboutfacts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.aboutfacts li { display: flex; gap: 8px; align-items: baseline; }
.aboutfacts li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.aboutfacts a { overflow-wrap: anywhere; }
.about .biotitle { margin: 0 0 10px; font: 800 clamp(26px, 3.4vw, 34px)/1.05 var(--f-display); }
.about .motto { margin: 20px 0 14px; padding: 14px 0 14px 20px; border-left: 5px solid var(--sign, var(--accent)); }
.about .motto p { margin: 0; font: 700 clamp(21px, 2.6vw, 27px)/1.25 var(--f-display); color: var(--ink); text-wrap: pretty; }
.about .motto p::before { content: "\201C"; }
.about .motto p::after { content: "\201D"; }
/* About pages: photos with a caption (The Desk > About pages), tap one to see it bigger */
.about .moments { margin: 26px 0 8px; }
.about .momentgrid { columns: 2 260px; column-gap: 18px; }
.about .moment { break-inside: avoid; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.about .moment a { display: block; cursor: zoom-in; }
.about .moment img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.about .moment figcaption { padding: 12px 16px 14px; display: grid; gap: 4px; }
.about .moment strong { font: 700 21px/1.15 var(--f-display); }
.about .moment span { color: var(--muted); }
.about .aboutmore { margin-top: 18px; }
.zoombox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; overflow: visible; }
.zoombox::backdrop { background: rgba(0, 0, 0, .86); }
.zoombox img { display: block; max-width: min(96vw, 1400px); max-height: 82vh; width: auto; height: auto; margin: 0 auto; border-radius: 8px; }
.zoombox p { margin: 10px auto 0; max-width: 70ch; color: #f3f5f3; text-align: center; }
.zoombox button { position: fixed; top: 12px; right: 12px; min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: 700 15px var(--f-body); padding: 0 16px; cursor: pointer; }

/* Spanish site: the Español / English link in the menu, and the one-time note for Spanish-language browsers */
.sitenav a.langlink { border: 1px solid currentColor; opacity: .92; }
.sitenav a.langlink:hover { opacity: 1; }
.langnote { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px; background: var(--sign); color: var(--sign-ink); font-weight: 700; font-size: 15px; text-align: center; }
.langnote a { color: inherit; text-underline-offset: 3px; }
.langnote button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 2px 6px; opacity: .75; }
.langnote button:hover { opacity: 1; }

/* About us: everyone side by side, equal */
.aboutus.prose { max-width: 1040px; }
.aboutus .lead { max-width: 68ch; }
.usgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin: 10px 0 18px; }
.uscard { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; overflow: hidden; }
.usphoto { display: block; background: var(--chip); }
.usphoto img, .usphoto .aboutletter { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; display: grid; place-items: center; }
.usphoto .aboutletter { font: 700 72px var(--f-display); color: var(--muted); }
.usbody { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.usbody h2 { margin: 0; font: 700 28px/1.1 var(--f-display); }
.usbody h2 a { color: var(--ink); text-decoration: none; }
.usbody .tagline { margin: 0; font-weight: 600; }
.usbody .role { margin: 0; color: var(--muted); font-size: 15px; }
.usbody p { margin: 0; }
.usbody .actions { padding: 0; margin-top: 4px; }
.usbody .actions .btn.primary { flex: 0 1 auto; padding-inline: 26px; }
/* Car pages: both of you */
.yoursp.many { max-width: 740px; }
.yoursp .yourteam { display: grid; gap: 10px; }
.yoursp.many .yourteam { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.yourone { display: flex; flex-direction: column; gap: 8px; }
.yourone .fcard { flex: 1; }
.yourbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.yourbtns .btn { flex: 1 1 auto; padding: 8px 12px; font-size: 15px; text-align: center; }
/* Contact form: "Who would you like to talk to?" */
#contactdlg .cpickrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
/* Each person: a big photo with their name under it; the picked one is filled in and highlighted */
#contactdlg .cpick label { position: relative; display: grid; gap: 8px; justify-items: center; padding: 8px 8px 10px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer; text-align: center; transition: border-color .15s, background .15s, box-shadow .15s; }
#contactdlg .cpick label:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
#contactdlg .cpick label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
#contactdlg .cpick label:has(input:focus-visible) { outline: 3px solid var(--sign, var(--accent)); outline-offset: 2px; }
#contactdlg .cpick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
#contactdlg .cpick img, #contactdlg .cpletter { display: grid; place-items: center; width: 100%; aspect-ratio: 1; height: auto; border-radius: 8px;
  object-fit: cover; object-position: 50% 22%; background: var(--chip, #2a3a33); font: 800 48px/1 var(--f-display); }
#contactdlg .cpname { font-weight: 700; font-size: 16px; line-height: 1.2; }
#contactdlg .cpdot { position: absolute; top: 14px; left: 14px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid #fff; background: rgba(0, 0, 0, .45); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
#contactdlg .cpick label:has(input:checked) .cpdot { border-color: var(--accent); background: var(--accent)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
#contactdlg .cpletter { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.about .tagline, .usbody .tagline { font: 600 16px/1.35 var(--f-body); color: var(--ink); letter-spacing: 0; text-transform: none; }
.usphoto, .usphoto:hover { text-decoration: none; }

/* Car page Details: grouped tables */
.spechead { font: 700 18px/1.2 var(--f-display); margin: 22px 0 8px; color: var(--ink); }
.spechead:first-of-type { margin-top: 6px; }
.speclist { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.speclist li { background: var(--chip); border-radius: 6px; padding: 3px 9px; font-size: 15px; }

/* News articles: a centered panel of their own, photo at about half width */
.newspost { max-width: 820px; margin: 6px auto 40px; padding: 36px clamp(18px, 5vw, 56px) 44px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06); }
.newspost.roundup { max-width: 1120px; }
.newspost .nphead { margin: 0 auto 26px; text-align: center; justify-items: center; }
.newspost .nphead .lead { margin-inline: auto; }
.newspost .byline { justify-content: center; text-align: left; }
.newspost .oldroundup { text-align: center; }
.newspost .nphero { max-width: 520px; margin: 0 auto 30px; }
.newspost .nphero figcaption { text-align: center; }
.newspost .npbody { max-width: 68ch; margin: 0 auto; }
.newspost.roundup .npbody { max-width: none; }
.newspost.roundup .npbody > :not(.newsgrid) { max-width: 68ch; margin-inline: auto; }
.newspost .npauthor { margin: 40px auto 0; background: var(--bg); }
.newspost .npmore { max-width: 68ch; margin: 44px auto 0; }
.newspost.roundup .npmore { max-width: none; }
@media (max-width: 600px) {
  .newspost { padding: 22px 16px 28px; border-radius: 12px; margin-inline: -4px; }
  .newspost .nphero { max-width: 100%; }
}
.ainote { font-size: 15px; color: var(--muted); font-style: italic; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 10px !important; }
.newspost .onlot { margin: 40px auto 0; max-width: none; }
.newspost .onlot h2 { font: 700 26px/1.1 var(--f-display); margin: 0 0 4px; text-align: center; }
.newspost .onlot > p { text-align: center; margin: 0 0 14px; }
.newspost .onlot .newsgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.goodreads .npcards { max-width: 760px; }

/* Every card gets the car cards' hover ring (white in dark mode, near-black in light), not just a shadow */
a.fcard, .npcard, .newsitem a, .uscard, a.hub-tile, .homecard, a.jitem { outline: 3px solid transparent; outline-offset: 3px; }
a.fcard:focus-visible, .npcard:focus-visible, .newsitem a:focus-visible, .uscard:focus-within, a.hub-tile:focus-visible,
.homecard:focus-visible, a.jitem:focus-visible { outline-color: var(--hover-ring); }
@media (hover: hover) {
  a.fcard:hover, .npcard:hover, .newsitem a:hover, .uscard:hover, a.hub-tile:hover, .homecard:hover, a.jitem:hover {
    outline-color: var(--hover-ring); box-shadow: 0 8px 22px rgba(0, 0, 0, .16); }
}
@media (prefers-reduced-motion: no-preference) {
  a.fcard, .npcard, .newsitem a, .uscard, a.hub-tile, .homecard, a.jitem { transition: outline-color .15s, box-shadow .15s, transform .15s ease-out; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .npcard:hover, .newsitem a:hover, .uscard:hover { transform: translateY(-3px); }
}
/* room inside the scrolling rows so the ring (and the lift) isn't cut off */
.fshelf { padding: 8px 8px 12px; margin: 0 -8px; scroll-padding-inline: 8px; }

/* ---- Car page layout (vehicle details pages) ----
   Computer: title + guides on top; the photos, with the price, salespeople and How it's equipped beside them;
   then across the page: Details, Offers and financing, the payment estimate and price alert. Phone: one column. */
.carpage.cargrid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas: "head reads" "gallery side" "main main" "offers offers" "pay pay"; gap: 18px 24px; padding-block: 0 8px; }
.cargrid > .pagehead { grid-area: head; align-self: end; }
.cargrid > .goodreads { grid-area: reads; align-self: end; }
.cargrid > .gallery { grid-area: gallery; }
.cargrid > .carside { grid-area: side; display: grid; gap: 14px; align-content: start; }
.cargrid > .carmain { grid-area: main; min-width: 0; }
.cargrid > .caroffers { grid-area: offers; min-width: 0; }
.cargrid > .carpay { grid-area: pay; min-width: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px 24px; align-items: start; }
.cargrid .carmain > .section:first-child, .cargrid > .caroffers .offers { padding-top: 4px; }
.carside .section, .carpay .section { padding-block: 0; }
.carside .equipsec h2 { font-size: 20px; margin-bottom: 8px; }
.carside .equipsec .efacts { margin: 0 0 8px; }
.carside .yoursp { margin: 0; max-width: none; }
.carside .yoursp.many .yourteam { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }   /* side by side only when each card has room for its photo and button */
/* Payment estimate and price alert, side by side under the offers */
.carpay .payest { margin: 0; }
.carpay .pricewatch { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.carpay .pricewatch h2 { font-size: 22px; }
.carpay .pricewatch p { margin: 0 0 10px; }
.carpay .watchform { display: grid; grid-template-columns: 1fr; gap: 8px; }
/* Salespeople, compact and side by side */
/* Salesperson cards: a big photo on the left, name / About / buttons on the right */
.yourone { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.spface { display: block; min-height: 118px; border-radius: 8px; overflow: hidden; background: var(--chip); }
.spface img, .spface .spletter { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.spface .spletter { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; font: 700 40px var(--f-display); color: var(--muted); }
.yourinfo { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.yourinfo .yourbtns { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.yourinfo .yourbtns .btn:first-child { grid-column: 1 / -1; }
.spmini { display: grid; gap: 2px; color: var(--ink); text-decoration: none; min-width: 0; }
.spmini strong { font: 700 18px/1.2 var(--f-display); }
.spmini small { color: var(--accent); font-weight: 700; font-size: 15px; }
.spmini:hover strong { text-decoration: underline; }
.yourbtns .btn { padding: 7px 10px; font-size: 15px; }
/* Guides, next to the title */
.cargrid .goodreads { display: grid; gap: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.cargrid .goodreads h2 { font: 700 15px var(--f-display); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0; }
.readmini { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; border-radius: 8px; }
.readmini img { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; flex: none; background: var(--chip); }
.readmini span { display: grid; gap: 2px; min-width: 0; }
.readmini strong { font: 700 15px/1.25 var(--f-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.readmini small { color: var(--muted); font-size: 15px; }
.readmini:hover strong { text-decoration: underline; color: var(--accent); }
/* Details in columns; long ones cut off with "Show all details" */
.specgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; align-items: start; }
.specgroup { margin-bottom: 14px; }
.specgrid .spechead { font-size: 15px; margin: 0 0 6px; }
.specgrid .spectable { font-size: 15px; }
.specgrid .spectable th { padding: 5px 10px 5px 0; width: 44%; font-weight: 600; }
.specgrid .spectable td { padding: 5px 0; }
.specgrid .speclist li { font-size: 15px; padding: 2px 7px; }
.specgrid .listrow td { padding: 6px 0 8px; }
.specgrid .speclabel { display: block; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.specwrap:not(.open) .speclist .more { display: none; }
.specwrap.open .specmore { display: none; }
.specmore { margin-top: 8px; }
/* Similar vehicles: one row of 5 on a computer; a swipe row on a phone */
.grid.simrow { grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: 8px; gap: 14px; }
.grid.simrow > :nth-child(n + 6) { display: none; }
.simmore { margin: 6px 0 0; font-weight: 700; }
@media (max-width: 1180px) { .grid.simrow { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.simrow > :nth-child(n + 5) { display: none; } }
@media (max-width: 860px) {
  /* one column, in this order: title, photos, price, How it's equipped, Details, offers, payment, price alert,
     salespeople, guides */
  .carpage.cargrid { display: flex; flex-direction: column; gap: 16px; }
  .cargrid > .carside, .cargrid > .carpay { display: contents; }
  .cargrid > .caroffers { order: 5; }
  .cargrid > .pagehead { order: 1; } .cargrid > .gallery { order: 2; } .cargrid .panel { order: 3; }
  .cargrid .equipsec { order: 4; } .cargrid > .carmain { order: 4; } .cargrid .payest { order: 5; } .cargrid .pricewatch { order: 6; }
  .cargrid .yoursp { order: 7; } .cargrid > .goodreads { order: 8; }
  .specgrid { grid-template-columns: 1fr; }
  /* phone: each group as a 2-column grid of small label-over-value tiles */
  .specgrid .spectable, .specgrid .spectable tbody { display: block; }
  .specgrid .spectable tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .specgrid .spectable tr { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding: 5px 0; min-width: 0; }
  .specgrid .spectable th, .specgrid .spectable td { width: auto; border: 0; padding: 0; }
  .specgrid .spectable th { font-size: 15px; }
  .specgrid .spectable tr:first-child th, .specgrid .spectable tr:first-child td { border-top: 0; }
  .specgrid .spectable tr.listrow { grid-column: 1 / -1; }
  .specgrid .speclabel { font-size: 15px; margin-bottom: 4px; }
  .grid.simrow { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(78%, 300px);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 10px; }
  .grid.simrow > * { scroll-snap-align: start; }
  .grid.simrow > :nth-child(n) { display: flex; }
}
@media (max-width: 480px) { .carside .yoursp.many .yourteam, .cargrid .yoursp.many .yourteam { grid-template-columns: 1fr; } .yourone { grid-template-columns: 92px minmax(0, 1fr); } }

/* Our sharper copy of the dealer's photo (hdphotos.py): a tiny unlabeled sparkle, only while one of ours is showing */
.hdmark { display: none; align-items: center; color: rgba(255,255,255,.7); filter: drop-shadow(0 0 1.5px rgba(0,0,0,.8)); align-self: center; line-height: 0; }
.photo:has(> img[src*="/media/"][src*="/hd/"]) .hdmark,
.gallery .main:has(> img[src*="/media/"][src*="/hd/"]) .hdmark { display: inline-flex; }
.gallery .main .hdmark { position: absolute; left: 8px; bottom: 8px; z-index: 2; }

/* News page: the guides and weekly deals as cards */
.newscards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 18px 0 24px; }
.newscards .fcard .fbody p { -webkit-line-clamp: 4; }

/* End of an article: "Questions? Ask us" with both salespeople as cards (the same cards as the car pages) */
.npauthor { display: grid; gap: 6px; }
.npauthor > p { margin: 0; }
.npauthor .yoursp { margin: 8px 0 0; max-width: none; }
.npauthor .yourlabel { display: none; }
.npauthor .yoursp.many .yourteam { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---- Our Feed (feed.py) ---- */
.fcard.f-social { --fk: #a07ad6; }
.fcard.f-social .fimg { position: relative; }
.fvid { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; font-size: 22px; padding-left: 4px; }
.fwho { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink); }
.fwho img, .fwho > span { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--chip); display: grid; place-items: center; font: 700 15px var(--f-display); color: var(--muted); }
.fwho img + img, .fwho img + span, .fwho span + img, .fwho span + span { margin-left: -12px; box-shadow: 0 0 0 2px var(--surface); }
.feedchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.feedchips .chip { font: 600 15px var(--f-body); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.feedchips .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.feedpost { max-width: 760px; margin: 18px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px clamp(16px, 4vw, 34px) 28px; }
.fphead { display: flex; align-items: center; gap: 12px; }
.fphead .faces { display: flex; }
.fphead .faces img, .fphead .faces .aboutletter { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--chip); display: grid; place-items: center; font: 700 18px var(--f-display); color: var(--muted); }
.fphead .faces > * + * { margin-left: -12px; box-shadow: 0 0 0 2px var(--surface); }
.fphead > span:last-child { display: grid; gap: 2px; }
.fpwho { font: 700 18px var(--f-display); }
.fpwho a { color: var(--ink); text-decoration: none; }
.fpwho a:hover { text-decoration: underline; }
.fphead small { color: var(--muted); font-size: 15px; }
.fptext { font-size: 18px; line-height: 1.6; margin-top: 16px; overflow-wrap: anywhere; }
.fptext p { margin: 0 0 12px; }
.fpmedia { display: grid; gap: 8px; margin: 14px 0 6px; }
.fpmedia.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fpmedia img, .fpmedia video { width: 100%; height: auto; display: block; border-radius: 10px; background: #000; }
.fpmedia video { max-height: 80vh; }
.fpmedia.many img { aspect-ratio: 1; object-fit: cover; }
.fpmedia.many video { grid-column: 1 / -1; }
.fplinks { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.fpcar h2, .fpmore h2 { font: 700 22px var(--f-display); margin: 26px 0 10px; }
.fpcar .grid { grid-template-columns: minmax(0, 340px); padding-bottom: 0; }
.fpmore .newscards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 0 0 10px; }

/* Car page: the price box's shortcut down to Similar vehicles */
.simjump { justify-self: start; font-weight: 700; font-size: 15px; color: var(--accent); }
#sim { scroll-margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html:has(#sim) { scroll-behavior: smooth; } }

/* ---- Layers: every block of reading sits in a box, and things inside a box step one level up ------------------
   Levels: 0 the page (topo lines), 1 a box, 2 inside a box (chips, rows, nested cards), 3 inside that.
   Dark: each level a step lighter. Light: boxes are white on the gray page, and each level inside a box steps
   toward light gray (it can't get lighter than white). A box sets --here (its own color) and --up (the next level),
   so a chip or tag uses var(--up) and looks right wherever it sits. One box style: 10px corners, thin border,
   no shadow. On phones, boxes run edge to edge (more room for text).
   The levels are worked out from the page's own colors (--surface, --line), on body, so a section color from The
   Desk (body.looked tints them) carries through every level. The Desk's Site colors > Fine-tune can set any of
   them (banners.js puts those on body). */
:root { --box-r: 10px; --box-pad: clamp(16px, 2.2vw, 22px); }
body {
  --s1: var(--surface); --s2: color-mix(in oklab, var(--surface), #fff 5%); --s3: color-mix(in oklab, var(--surface), #fff 10%);
  --l1: var(--line); --l2: color-mix(in oklab, var(--line), #fff 7%); --l3: color-mix(in oklab, var(--line), #fff 14%);
  --here: var(--bg); --up: var(--chip); --upline: var(--line);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body { --s2: color-mix(in oklab, var(--surface), var(--ink) 4%); --s3: color-mix(in oklab, var(--surface), var(--ink) 8%);
    --l2: color-mix(in oklab, var(--line), var(--ink) 6%); --l3: color-mix(in oklab, var(--line), var(--ink) 12%); }
}
:root[data-theme="light"] body, body.pgmode.pglight {
  --s2: color-mix(in oklab, var(--surface), var(--ink) 4%); --s3: color-mix(in oklab, var(--surface), var(--ink) 8%);
  --l2: color-mix(in oklab, var(--line), var(--ink) 6%); --l3: color-mix(in oklab, var(--line), var(--ink) 12%);
}
/* Fine-tuned in The Desk (Site colors > Fine-tune; banners.js puts them on body): the page background, the
   pattern's strength, the content column, car / article cards, the price panel, headings, prices. Unset, each is
   what it always was. */
html:has(body.tuned-page), body.tuned-page { background: var(--page) !important; }
html body.looked[data-pgbg]::before { opacity: calc(var(--patop) * var(--patmul, 1)); }
.card, .npcard, .feedpost { --boxbg: var(--card, var(--s1)); }       /* (the box rule above uses --boxbg) */
.panel { --boxbg: var(--panelbg, var(--s1)); }
body.tuned-head main :is(h1, h2, h3) { color: var(--head); }
body.tuned-price :is(.price, .bigprice, .paynum) { color: var(--price); }

/* Level 1: boxes. The ones the site already had, plus the reading areas that sat on the page. */
:is(.panel, .card, .payest, .carpay .pricewatch, .yourone, .cargrid .goodreads, .offerbox, .faq details, .newspost,
    .npcard, .fcard, .feedpost, .about .aboutcard, .about .teamcard, .uscard, .comparebar,
    .cargrid > .pagehead, .cargrid .carmain > .specsec, .cargrid > .caroffers, .cargrid .equipsec) {
  --here: var(--s1); --up: var(--s2); --upline: var(--l2);
  background: var(--boxbg, var(--s1)); border-color: var(--l1);
}
:is(.payest, .carpay .pricewatch, .yourone, .cargrid .goodreads, .offerbox, .faq details, .newspost, .npcard,
    .feedpost, .cargrid > .pagehead, .cargrid .carmain > .specsec, .cargrid > .caroffers, .cargrid .equipsec) {
  border-radius: var(--box-r);
}
/* Every other page: the text pages (About, a salesperson's page, Areas we serve, FAQ, Privacy, News and Our Feed's
   intro, the page-not-found page), page intros (with a category's numbers), a section that's only text (not a grid of
   cards), and a personal link's page */
main > :is(.prose, .pagehead), main > .section:not(:has(.grid, .shelves, .fshelf, .newscards, .feedcards, .feedgrid)),
main > .wrap.narrow {
  --here: var(--s1); --up: var(--s2); --upline: var(--l2);
  background: var(--s1); border: 1px solid var(--l1); border-radius: var(--box-r); padding: var(--box-pad);
  margin-block: 12px; max-width: none;
}
main > .section:not(:has(.grid, .shelves, .fshelf, .newscards, .feedcards, .feedgrid)) h2 { margin-top: 0; }
main > :is(.prose, .pagehead) > :first-child, main > .wrap.narrow > :first-child { margin-top: 0; }
main > :is(.prose, .pagehead) > :last-child, main > .wrap.narrow > :last-child { margin-bottom: 0; }
.pagehead .stats { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
/* inside one of those: the cards and questions step up a level */
main > .prose :is(.uscard, .teamcard, .aboutcard, .fcard, details, .npauthor) {
  --here: var(--s2); --up: var(--s3); --upline: var(--l3); background: var(--s2); border-color: var(--l2);
}

/* the new boxes */
.cargrid > .pagehead, .cargrid .carmain > .specsec, .cargrid > .caroffers, .cargrid .equipsec {
  border: 1px solid var(--l1); padding: var(--box-pad); max-width: none;
}
.cargrid > .pagehead, .cargrid > .goodreads { align-self: stretch; }
.cargrid .carmain > .specsec h2, .cargrid > .caroffers h2 { margin-top: 0; }
/* the price-comparison line and the stock chip: chips on the page, a step up inside a box */
.comparebar { background: var(--s1); }

/* Level 2: a box inside a box (the author card in an article, an offer inside Offers, a package in How it's equipped) */
:is(.newspost, .cargrid > .caroffers, .cargrid .equipsec, .panel, .payest) :is(.npauthor, .offerbox, .pkgs li, .yourone, .fcard) {
  --here: var(--s2); --up: var(--s3); --upline: var(--l3);
  background: var(--s2); border-color: var(--l2);
}

/* Things that sit on whatever is behind them: one level up from it. Plain tags only: :where() keeps this rule
   weaker than the colored ones (.tag.new, .tag.featured, .tag.weekend...), which always keep their own colors. */
.stockchip, .speclist li, .equipsec .efacts span, .feedchips .chip, .tag:where(:not(.photo .tag)) {
  background: var(--up); border-color: var(--upline);
}

/* Phones: boxes edge to edge */
@media (max-width: 640px) {
  :is(.payest, .carpay .pricewatch, .cargrid .goodreads, .newspost, .cargrid > .pagehead, .cargrid .carmain > .specsec,
      .cargrid > .caroffers, .cargrid .equipsec, .comparebar, .cargrid .panel, .cargrid .yoursp,
      main > :is(.prose, .pagehead), main > .section:not(:has(.grid, .shelves, .fshelf, .newscards, .feedcards, .feedgrid)),
      main > .wrap.narrow) {
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); border-radius: 0; border-left: 0; border-right: 0;
  }
}

/* Buyer's guides (guides.py) */
.guide .gbyline { color: var(--muted); font-size: 15px; margin: -4px 0 14px; }
.guide .lead { font-size: 19px; line-height: 1.5; }
.guide h2 { margin-top: 34px; }
.guide h3 { margin: 22px 0 6px; }
.guide ul { padding-left: 1.2em; }
.guide li { margin: 4px 0; }
.guide .grid { margin: 12px 0 8px; }
.guide table.specs th { text-align: left; padding-right: 16px; white-space: nowrap; vertical-align: top; }
.guide table.specs td, .guide table.specs th { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); }
.gvideo { margin: 18px 0; }
.gvideo video { width: 100%; max-width: 720px; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; display: block; }
.gvideo figcaption { color: var(--muted); font-size: 15px; margin-top: 6px; }
.gnote { color: var(--muted); font-size: 15px; margin-top: 26px; }
.gsrc { font-size: 15px; color: var(--muted); }
.gsrc a { word-break: break-word; }
.glinks ul { margin: 6px 0 0; padding-left: 1.2em; }
.glinks li { margin: 4px 0; }
.prose.guide { display: block; }
.guide p { margin: 8px 0; }
.guide ul { margin: 6px 0 14px; }
.guide h3 + p { margin-top: 2px; }
.guide details { margin: 8px 0; }

/* A dealer photo with a see-through background (GM's stock pictures) shows on white, as on the dealer's site,
   not on the black photo box. Real photos cover the whole box, so this never shows behind them. */
.photo img, .gallery .main img, .thumbs img { background: #fff; }
.gquick { border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; margin: 16px 0; background: var(--surface); }
.gquick h2 { margin: 0 0 4px; font-size: 18px; }
.gquick ul { margin: 0; }
.guide table.gtrims { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide table.gtrims th, .guide table.gtrims td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.guide table.gtrims thead th { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.guide table.gtrims tbody th { white-space: nowrap; }
.trimbox h3 { margin: 14px 0 4px; font-size: 17px; }
.trimbox ul { margin: 4px 0 10px; padding-left: 1.2em; }
.trimbox li { margin: 3px 0; }
.trimbox .trimlinks { margin-top: 10px; }

/* ---- Home page: the finder (comparison line + quick picks + filters), following the top of the screen (app.js) ----
   It sticks with only its working part showing: app.js sets --fstick to the height of what's above the filter row
   (the comparison line on desktop; the line and the quick picks on phones), and the bar sticks that far up. */
.finder { position: sticky; top: calc(-1 * var(--fstick, 0px)); z-index: 20; display: grid; gap: 10px; margin-top: 12px;
  padding: 14px 0 12px;
  /* its own color, a touch of the accent over the card color, so it stands apart from the page (every theme);
     the background runs edge to edge without widening the page (border-image outset never scrolls) */
  --finder-bg: color-mix(in srgb, var(--accent) 13%, var(--surface));
  border-image: linear-gradient(to bottom, var(--line) 1px, var(--finder-bg) 1px, var(--finder-bg) calc(100% - 1px), var(--line) calc(100% - 1px)) fill 0 / 0 / 0 100vmax; }
.finder.stuck { box-shadow: 0 12px 16px -14px rgba(0,0,0,.5); }
.finder .fx { margin: 0; font-size: 15px; color: var(--muted); order: 1; }
.finder .fx strong { color: var(--ink); }
.finder .frow { order: 2; display: flex; gap: 8px 6px; align-items: end; flex-wrap: wrap; }
.finder .fchips { order: 3; }
.finder .factive { order: 4; }
.finder label { display: grid; gap: 3px; font: 600 15px/1 var(--f-body); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.finder .flabel { display: block; font: 600 15px/1 var(--f-body); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.finder input, .finder select { font: 15px var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 9px; }
.finder .fq { flex: 2 1 140px; }
.finder #model { max-width: 165px; }
.finder .fq input { width: 100%; box-sizing: border-box; }
.finder .seg button { padding: 8px 12px; font-size: 15px; }
.fpanel { display: contents; }
.fsheethead, .fgo, .fopen { display: none; }
.ftog, .fmorebtn, .fopen { font: 600 15px var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 11px; cursor: pointer; white-space: nowrap; }
.ftog[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.fdrive .flabel { visibility: hidden; }
.fmore { display: contents; }      /* type, years and miles: always out, right along with make and model */
.finder .frow .fsort { margin-left: auto; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button { font: 600 15px var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.pills button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fchips::-webkit-scrollbar { display: none; }
.fchips a { font: 600 15px var(--f-body); text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.fchips a:hover { border-color: var(--accent); color: var(--accent); }
.fchips a .n { color: var(--muted); font-weight: 400; margin-left: 4px; font-variant-numeric: tabular-nums; }
.fchips a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.fchips a[aria-current="true"] .n { color: inherit; opacity: .75; }
.factive { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.factive[hidden] { display: none; }
.factive .cnt { font: 600 17px var(--f-display); color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
.factive button.chip { display: inline-flex; gap: 6px; align-items: center; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--ink); border-radius: 999px; padding: 4px 8px 4px 10px; font: 600 15px var(--f-body); cursor: pointer; }
.factive button.chip span { opacity: .7; font-weight: 700; }
.factive .clear { color: var(--accent); font: 600 15px var(--f-body); text-decoration: underline; background: none; border: 0; cursor: pointer; padding: 4px; }
/* While filtering: the matching cars come right up under the bar */
body.filtering .curated, body.filtering #browse > h2, body.filtering #browse .resultline { display: none; }
@media (max-width: 760px) {
  .finder { gap: 8px; padding-block: 10px 8px; }
  .finder .fx { font-size: 15px; }
  .finder .fx, .finder .fchips, .finder .factive, .finder .frow { order: 0; }       /* phones: the filter row last, so only it sticks */
  .finder .frow { flex-wrap: nowrap; align-items: stretch; }
  .finder .fq { flex: 1 1 auto; min-width: 0; font-size: 0; gap: 0; }
  .finder .fq input { font-size: 16px; padding: 9px 10px; }
  .fopen { display: inline-flex; gap: 4px; align-items: center; font-size: 15px; padding: 9px 12px; }
  .fopen.has { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .finder .fsort { font-size: 0; gap: 0; flex: 0 0 auto; }
  .finder .fsort select { font-size: 15px; padding: 9px 6px; max-width: 118px; }
  .fpanel { display: none; }
  .fpanel.open { display: grid; position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--surface); border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,.45); padding: 6px 16px calc(16px + env(safe-area-inset-bottom, 0px)); gap: 14px; max-height: 84vh; overflow: auto; }
  .fpanel.open .fsheethead { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px; }
  .fsheethead .grab { grid-column: 1 / -1; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 6px; }
  .fsheethead strong { font: 700 20px var(--f-display); }
  .fsheethead .linkbtn { color: var(--accent); font: 600 15px var(--f-body); background: none; border: 0; text-decoration: underline; }
  .fpanel select { width: 100%; font-size: 16px; padding: 10px; background: var(--bg); }
  .fpanel .seg { background: var(--bg); }
  .fpanel .ftog, .fpanel .pills button { background: var(--bg); }
  .fpanel .ftog[aria-pressed="true"], .fpanel .pills button[aria-pressed="true"] { background: var(--accent); }
  .fdrive .flabel { visibility: visible; }
  .finder .frow .fsort { margin-left: 0; }
  .fmore { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 0; }
  .fpanel.open .fgo { order: 11; }
  .fmore label:first-child, .fmore label:last-child { grid-column: 1 / -1; }      /* type; years side by side; miles */
  .fgo { display: block; position: sticky; bottom: 0; font: 700 16px var(--f-body); background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 13px; cursor: pointer; }
  .fshade { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 59; }
}
.fshade[hidden] { display: none; }

/* ---- "Back to …" pill (site.js): car pages reached from a list, and category pages ---- */
.backpill { display: inline-flex; gap: 10px; align-items: center; margin: 10px 0 2px; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font: 600 15px var(--f-body); text-decoration: none; max-width: calc(100vw - 32px); }
.backpill .x { color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; text-decoration: none; }
.backpill.float { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); z-index: 40; margin: 0;
  background: color-mix(in srgb, #111613 90%, transparent); color: #f3f5f3; border-color: rgba(255,255,255,.18); backdrop-filter: blur(8px); box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.backpill.float .x { color: #c9d3ce; border-left-color: rgba(255,255,255,.25); }
.backpill .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backpill[hidden] { display: none; }

/* Text never goes below 15px on the site (the car pages' text is 16px): smaller labels were raised to 15. */
/* ---- Find it for me (/find/) and Sell or trade (/sell/) ---------------------------------------------------------------- */
.rqpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px 40px; align-items: start; padding-block: 8px 48px; }
.rqintro { padding: 0; position: sticky; top: 16px; }
.rqsteps { margin: 4px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.rqsteps li::marker { font: 700 17px var(--f-display); color: var(--accent); }
.reqform, .rqdone { display: grid; gap: 16px; }
.rqbox { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.rqbox > legend { font: 700 18px var(--f-display); padding: 0 6px; }
.reqform label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; min-width: 0; }
.reqform input:not([type=radio]):not([type=checkbox]), .reqform select, .reqform textarea {
  font: 16px var(--f-body); padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); width: 100%; min-width: 0; }
.reqform .opt { font-weight: 400; color: var(--muted); }
.rq2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rq3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rqseg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rqlab { flex-basis: 100%; font-weight: 600; font-size: 15px; }
.reqform .rqseg label, .rqcond label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg); cursor: pointer; }
.reqform .rqseg label:has(input:checked), .rqcond label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.reqform input[type=radio], .reqform input[type=checkbox] { accent-color: var(--accent); margin: 0; }
.reqform label.rqcheck { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 15px; }
.reqform label.rqcheck input { margin-top: 3px; flex: none; }
.rqcond { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.rqcond > legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.reqform .rqcond label { border-radius: 8px; align-items: flex-start; padding: 10px 12px; }
.rqcond label input { margin-top: 3px; }
.rqcond label span { display: grid; gap: 2px; }
.rqcond small { color: var(--muted); font-weight: 400; font-size: 15px; }
.reqform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rqstatus { margin: 0; color: var(--ink); background: var(--chip); padding: 8px 12px; border-radius: 6px; }
.rqdone { border: 1px solid var(--accent); border-radius: 10px; padding: 18px 20px; background: var(--surface); }
.rqdone h2 { font: 700 26px var(--f-display); margin: 0; }
.rqdone p { margin: 0; }
.findmore { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.yourmore { margin: 8px 2px 0; color: var(--muted); }
@media (max-width: 860px) { .rqpage { grid-template-columns: 1fr; } .rqintro { position: static; } }
@media (max-width: 520px) { .rq3 { grid-template-columns: 1fr 1fr; } .rq3 > label:first-child { grid-column: 1 / -1; } .rqcond { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .rq2 { grid-template-columns: 1fr; } }

/* Car page, How it's equipped: the highlights from the dealer's listing, in groups (comfort first) */
.ehigh { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 24px; margin: 10px 0 4px; }
.ehgroup h3 { font: 700 17px/1.2 var(--f-display); margin: 8px 0 6px; }
.echeck { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.echeck li { position: relative; padding-left: 24px; font-size: 16px; }
.echeck li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 11px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.equipsec > .note { margin: 6px 0 0; }

/* ---- Walkarounds: the icon on listing photos, "Watch the walkaround" on a car's page, the player -------------- */
.walkico { display: block; width: 100%; height: 100%; }
.photo .walkbtn { position: absolute; left: 8px; top: 8px; z-index: 3; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); transition: transform .15s; }
.photo .walkbtn:hover { transform: scale(1.08); }
.photo .walkbtn:focus-visible, .walkplay:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; }
.photo.haswalk .tags { left: 62px; }
.gallery .walkplay { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: rgba(17, 22, 19, .86); color: #fff; cursor: pointer;
  font: 700 18px/1 var(--f-display); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.gallery .walkplay .walkico { width: 40px; height: 40px; flex: none; }
.gallery .walkplay:hover { background: rgba(17, 22, 19, .96); }
.gallery .walkplay .wlen { margin-left: -4px; font-weight: 500; color: #c9d4ce; }
.gallery .walkplay .wlen::before { content: "· "; }
.gallery.haswalk .main .hdmark { left: auto; right: 10px; bottom: 10px; }
.thumbs .vthumb { position: relative; }
.thumbs .vthumb .walkico { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); }
.thumbs .vthumb > span { display: none; }
@media (max-width: 600px) { .gallery .walkplay { font-size: 16px; gap: 8px; } .gallery .walkplay .walkico { width: 34px; height: 34px; } }
.walkdlg { width: min(560px, 96vw); max-width: none; max-height: 96vh; padding: 14px; border: 0; border-radius: 16px; background: #0b0f0d; color: #f3f5f3;
  display: none; flex-direction: column; align-items: center; gap: 10px; box-sizing: border-box; overflow: auto; }
.walkdlg[open] { display: flex; }
.walkdlg::backdrop { background: rgba(0, 0, 0, .82); }
.walkbar { align-self: stretch; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.walkback { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #f3f5f3; color: #111613; font: 700 16px/1 var(--f-body); cursor: pointer; }
.walkx { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 20px; cursor: pointer; }
.walkdlg video { display: block; width: auto; max-width: 100%; max-height: calc(96vh - 250px); max-height: calc(96dvh - 250px); aspect-ratio: 9 / 16; border-radius: 12px; background: #000; }
.walkgen { margin: 0; max-width: 46ch; color: #c9d4ce; font-size: 15px; text-align: center; }
.walksee { color: var(--sign); font-weight: 700; text-decoration: none; padding: 6px 4px; }
.walksee:hover { text-decoration: underline; }
html.walkopen { overflow: hidden; }

/* ---- Upgrade (/upgrade/) ---------------------------------------------------------------------------------------- */
.uppage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.uppage .upresults, .uppage .upcontact, .uppage #updone { grid-column: 1 / -1; }
.uppage .rqintro { position: static; }
.upsit { flex-direction: column; align-items: flex-start; }
.upresults { display: grid; gap: 28px; outline: none; }
.uphead h2, .upgroup h2, .upcontact h2 { font: 800 28px/1.1 var(--f-display); margin: 0 0 6px; }
.uphead .note, .upgroup > .note { margin: 4px 0 0; max-width: 72ch; }
.upgrid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.upcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.upcard.liked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.upimg { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--chip); }
.upimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upwalk { position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(17, 22, 19, .85); color: #fff; font: 700 13px/1 var(--f-display); }
.upbody { padding: 10px 12px 12px; display: grid; gap: 6px; flex: 1; align-content: start; }
.uptitle { font: 700 18px/1.15 var(--f-display); color: var(--ink); text-decoration: none; }
.uptitle:hover { text-decoration: underline; }
.upsub, .upwhy { margin: 0; color: var(--muted); font-size: 15px; }
.upbadges { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.upbadges .dealpill { font-size: 13px; --deal: var(--line); }
.upbadges .dealpill.lvl-great { --deal: var(--d-great); } .upbadges .dealpill.lvl-good { --deal: var(--d-good); color: #1c1a10; }
.upbadges .dealpill.lvl-fair { --deal: var(--d-fair); color: var(--d-fair-ink); } .upbadges .dealpill.lvl-high { --deal: var(--d-high); }
.upbadges .dealpill.lvl-over { --deal: var(--d-over); }
.upunder { font: 700 14px/1 var(--f-body); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 5px 7px; border-radius: 3px; }
.uplike { justify-self: start; margin-top: 4px; min-height: 40px; }
.upcard.liked .uplike { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.upcontact { max-width: 640px; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 860px) { .uppage { grid-template-columns: 1fr; } }

.notrack-note { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 99; max-width: calc(100vw - 32px);
  background: #1d2b26; color: #f3f5f3; padding: 10px 16px; border-radius: 10px; font-size: 15px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }

/* How our ratings work (build_site.ratings_key): home and category pages */
.rkey { background: var(--chip); border: 1px solid var(--line); border-radius: 8px; margin: 10px 0 14px; }
.rkey summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; }
.rkey summary::-webkit-details-marker { display: none; }
.rkey summary strong { font: 700 17px/1.2 var(--f-display); letter-spacing: .02em; color: var(--ink); }
.rkey summary strong::before { content: "▸"; display: inline-block; width: 1em; color: var(--accent); transition: transform .15s; }
.rkey[open] summary strong::before { transform: rotate(90deg); }
.rkey .rkhint { font-size: 14px; color: var(--muted); }
.rkey[open] .rkhint { display: none; }
.rkbody { padding: 0 14px 12px; }
.rklead { margin: 0 0 10px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.rklist { --rkw: 9.4em; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 9px 22px; }
html[lang="es"] .rklist { --rkw: 11.6em; }
.rklist li { display: grid; grid-template-columns: var(--rkw) 1fr; align-items: start; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.rklist .dealpill, .rklist .ribbon { box-sizing: border-box; width: 100%; text-align: center; font-size: 13px; white-space: nowrap; }
.rklist .dealpill.lvl-great { --deal: var(--d-great); }
.rklist .dealpill.lvl-good { --deal: var(--d-good); color: #1c1a10; }
.rklist .dealpill.lvl-fair { --deal: var(--d-fair); color: var(--d-fair-ink); }
.rklist .dealpill.rk-standout { background: #1a6ff0; color: #fff; }
.rkfoot { margin: 12px 0 0; font-size: 15px; }
.rkfoot a { color: var(--accent); white-space: nowrap; margin-left: 6px; }
@media (max-width: 560px) {
  .rklist { grid-template-columns: 1fr; --rkw: 8.9em; } html[lang="es"] .rklist { --rkw: 10.6em; }
  .rklead, .rklist li { font-size: 14px; } .rklist .dealpill, .rklist .ribbon { font-size: 12px; padding-left: 4px; padding-right: 4px; }
  .rkey .rkhint { font-size: 13px; }
}
html[lang="es"] .deal summary::after { content: "¿Por qué?"; }

/* ---- Events (build_site.event_*; The Desk > Site > Events): the banner, header colors and the event's panel ---- */
.ev-thanksgiving { --ev: #c8661f; --ev-gold: #f0b13c; --ev-bar: linear-gradient(90deg, #5a2a10, #8a3f14 55%, #5a2a10);
  --ev-panel: radial-gradient(120% 140% at 100% 0%, #f7d9a8 0%, #f6e7cf 38%, #fff6e8 70%); --ev-ink: #2b1608; --ev-line: #ecd2a8;
  --ev-panel-dk: radial-gradient(120% 140% at 100% 0%, #6b3413 0%, #3a1f10 45%, #24160c 80%); --ev-ink-dk: #fbe9d0; --ev-line-dk: #6b3d1c;
  --ev-photo: sepia(.35) saturate(1.25) hue-rotate(-12deg) brightness(.92); --ev-shade: rgb(90 42 16 / .45); }
.ev-blackfriday { --ev: #e0262b; --ev-gold: #f2c230; --ev-bar: linear-gradient(90deg, #0b0b0b, #2a0b0c 55%, #0b0b0b);
  --ev-panel: repeating-linear-gradient(135deg, #141414 0 18px, #1b1b1b 18px 36px); --ev-ink: #f5f5f5; --ev-line: #3a3a3a;
  --ev-panel-dk: repeating-linear-gradient(135deg, #0e0e0e 0 18px, #161616 18px 36px); --ev-ink-dk: #f5f5f5; --ev-line-dk: #3a3a3a;
  --ev-photo: grayscale(.7) contrast(1.15) brightness(.8); --ev-shade: rgb(0 0 0 / .45); }
.ev-christmas { --ev: #c0262d; --ev-gold: #e9c46a; --ev-bar: linear-gradient(90deg, #0f3d2a, #165a3d 55%, #0f3d2a);
  --ev-panel: radial-gradient(120% 140% at 100% 0%, #f6e3e3 0%, #f7f1ea 45%, #fbf8f3 75%); --ev-ink: #1d2a22; --ev-line: #e6cfcf;
  --ev-panel-dk: radial-gradient(120% 140% at 100% 0%, #5a1517 0%, #2a1a17 45%, #13261c 85%); --ev-ink-dk: #f6efe6; --ev-line-dk: #4a2a2a;
  --ev-photo: saturate(1.1) hue-rotate(-6deg) brightness(.9); --ev-shade: rgb(15 61 42 / .35); }
.ev-custom { --ev-gold: var(--ev); --ev-bar: linear-gradient(90deg, color-mix(in srgb, var(--ev) 55%, #000), color-mix(in srgb, var(--ev) 75%, #000) 55%, color-mix(in srgb, var(--ev) 55%, #000));
  --ev-panel: linear-gradient(135deg, color-mix(in srgb, var(--ev) 16%, #fff), #fff 70%); --ev-ink: #18201c; --ev-line: color-mix(in srgb, var(--ev) 35%, #fff);
  --ev-panel-dk: linear-gradient(135deg, color-mix(in srgb, var(--ev) 30%, #111), #151a17 70%); --ev-ink-dk: #eef2ef; --ev-line-dk: color-mix(in srgb, var(--ev) 40%, #222);
  --ev-photo: none; --ev-shade: color-mix(in srgb, var(--ev) 30%, transparent); }
.evbar { position: relative; z-index: 30; background: var(--ev-bar); color: #fff3e6; font: 600 15px/1.35 var(--f-body);
  padding: 9px 44px 9px 16px; text-align: center; border-bottom: 2px solid var(--ev-gold); }
.evbar strong { font-family: var(--f-display); letter-spacing: .03em; color: var(--ev-gold); text-transform: uppercase; margin-right: 6px; }
.evbar a { color: var(--ev-gold); font-weight: 700; white-space: nowrap; margin-left: 6px; }
.evbar .short { display: none; }
.evbar .x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff3e6; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.ev-on .brandband.hero .bb-photo img { filter: var(--ev-photo); }
.ev-on .brandband.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent, var(--ev-shade)); }
.ev-on .brandband .bb-in { position: relative; z-index: 2; }
.ev-on .bb-logo .bb-deal { color: var(--ev-gold); }
.ev-on .bb-logo::after { background: var(--ev) !important; }
.ev-on .sitenav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ev-gold); }
.evhero { position: relative; overflow: hidden; margin: 14px 0 6px; border-radius: 12px; padding: 22px 24px 20px;
  background: var(--ev-panel); color: var(--ev-ink); border: 1px solid var(--ev-line); }
:root[data-theme="dark"] .evhero { background: var(--ev-panel-dk); color: var(--ev-ink-dk); border-color: var(--ev-line-dk); }
.evhero .ev-decor { position: absolute; right: -10px; top: -6px; width: 300px; height: 200px; opacity: .9; pointer-events: none; }
.evhero .kick { font: 700 14px var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ev); margin: 0 0 4px; position: relative; }
:root[data-theme="dark"] .evhero .kick, :root[data-theme="dark"] .evhero h1 em, :root[data-theme="dark"] .evhero h2 em { color: var(--ev-gold); }
.evhero h1, .evhero h2 { font: 800 clamp(30px, 4.4vw, 46px)/1.02 var(--f-display); margin: 0 0 8px; letter-spacing: .01em; text-transform: uppercase; max-width: 70%; position: relative; color: inherit; }
.evhero h1 em, .evhero h2 em { font-style: normal; color: var(--ev); }
.ev-blackfriday.evhero h1 em, .ev-blackfriday.evhero h2 em, .ev-blackfriday.evhero .kick { color: var(--ev-gold); }
.evhero .lead { font-size: 17px; line-height: 1.45; max-width: 660px; margin: 0 0 14px; position: relative; }
.evhero .evended { font: 700 16px var(--f-body); margin: 0 0 10px; }
.evhero .evfacts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 16px; padding: 0; list-style: none; font: 600 15px var(--f-body); position: relative; }
.evhero .evfacts li::before { content: "◆"; color: var(--ev); margin-right: 8px; font-size: 11px; vertical-align: 2px; }
.evbtns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: relative; }
.evbtn { display: inline-block; padding: 11px 18px; border-radius: 8px; font: 700 16px var(--f-body); text-decoration: none; }
.evbtn.primary { background: var(--ev); color: #fff; }
.evbtn.ghost { border: 2px solid var(--ev); color: inherit; }
:root[data-theme="dark"] .evbtn.ghost { border-color: var(--ev-gold); }
.evleft { font: 600 14px var(--f-body); opacity: .85; }
.evpage .evhero { padding: 34px 30px 28px; }
.evsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.evsteps div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; line-height: 1.45; }
.evsteps b { display: block; font: 800 22px var(--f-display); color: var(--ev); margin-bottom: 4px; }
:root[data-theme="dark"] .evsteps b { color: var(--ev-gold); }
.evbody { max-width: 760px; font-size: 17px; line-height: 1.55; }
.evnote { font-size: 13.5px; color: var(--muted); margin-top: 26px; }
@media (max-width: 640px) {
  .evbar { font-size: 14px; text-align: left; } .evbar .long { display: none; } .evbar .short { display: inline; }
  .evhero h1, .evhero h2 { max-width: 100%; } .evhero .ev-decor { width: 180px; height: 120px; opacity: .35; }
}
@media (prefers-reduced-motion: reduce) { .evbar, .evhero { transition: none; } }

/* Home page heading (salesperson site) and the category pages' "about" section */
.homeh1 { font: 700 15px/1.3 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 12px 0 0; }
.catabout { max-width: 820px; }
.catabout p { font-size: 16.5px; line-height: 1.6; }
.catfaq { margin-top: 14px; }
.catfaq .qa h3 { font-size: 17px; margin: 16px 0 4px; }
.catfaq .qa p { margin: 0; }
