/* Prijscheck, Configurator and Volle Sjaak, ported from the HenkCar artifact v32 as plain component CSS on the brand
   tokens. Scoped to a .hc-mockup wrapper so it never touches other pages, and per page to #check, #config and #sjaak,
   as in the artifact. To be replaced by Tailwind utilities and UI components as the pages are built out. */

@keyframes dot-settle { from { left: var(--from, 4%); } }

.hc-mockup {
/* Shared: base type */
/* The layout breaks long words anywhere (wrap-anywhere); tables and figures here wrap between words instead */
& { overflow-wrap: normal; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--font-display); }
p { margin: 0; text-wrap: pretty; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-xs); }

/* Similarity of a car for sale to your car: five dots and a score. Dots, not a capsule: capsules mean price ranges. */
.sim { display: inline-grid; gap: var(--space-0-5); min-width: 7.5rem; }
.sim__top { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.sim__dots { display: inline-flex; gap: var(--space-1); }
.sim__dots i { width: var(--space-2); height: var(--space-2); border-radius: var(--radius-full); background: var(--color-band-track); }
.sim__dots i.is-on { background: var(--color-band-fair); }
.sim__dots i.is-half { background: linear-gradient(90deg, var(--color-band-fair) 50%, var(--color-band-track) 50%); }
.sim small { font-size: var(--text-xs); line-height: var(--leading-snug); color: var(--color-text-muted); white-space: nowrap; }
.sim.is-low .sim__dots i.is-on, .sim.is-low .sim__dots i.is-half { background: var(--color-text-subtle); }
.sim.is-low .sim__dots i.is-half { background: linear-gradient(90deg, var(--color-text-subtle) 50%, var(--color-band-track) 50%); }
/* The car being checked, pinned above the cars it is compared with */
tr.is-self td { background: var(--color-primary-subtle); color: var(--color-on-primary-subtle); font-weight: var(--weight-semibold); border-bottom: var(--border-width-thick) solid var(--color-band-fair); }
tr.is-self td:first-child { padding-left: var(--space-3); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
tr.is-self td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
tr.is-self .self-tag { display: inline-block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-primary); }
tr.is-self .muted { color: var(--color-on-primary-subtle); }
.subject { display: grid; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-card); background: var(--color-surface-raised); border: var(--border-default); box-shadow: var(--shadow-raised); }
.subject__kicker { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-primary); font-weight: var(--weight-semibold); }
.subject__name { font-family: var(--font-display); font-size: var(--text-heading-md-size); line-height: var(--text-heading-md-leading); font-weight: var(--text-heading-md-weight); letter-spacing: var(--text-heading-md-tracking); }
.subject__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); margin: 0; }
@media (min-width: 40rem) { .subject__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.subject__facts div { display: grid; gap: var(--space-0-5); min-width: 0; }
.subject__facts dt { font-size: var(--text-xs); color: var(--color-text-muted); }
.subject__facts dd { margin: 0; font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.subject__facts dd small { display: block; font-weight: var(--weight-regular); font-size: var(--text-xs); color: var(--color-text-muted); }
.subject__facts .is-price dd { font-size: var(--text-lg); font-weight: var(--weight-bold); font-stretch: var(--font-width-numeric); }
.subject__opts { display: grid; gap: var(--space-2); }
.subject__opts p { font-size: var(--text-xs); color: var(--color-text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.delta { display: block; font-size: var(--text-xs); font-weight: var(--weight-medium); white-space: nowrap; }
.delta.is-better { color: var(--color-success); }
.delta.is-worse { color: var(--color-danger); }
.delta.is-same { color: var(--color-text-subtle); }
#vergelijk td.num, #cars td.num { white-space: nowrap; }
/* Paint colour dot, used in both tabs */
.swatch { display: inline-block; width: 0.85rem; height: 0.85rem; border-radius: var(--radius-full); margin-right: var(--space-2); vertical-align: -0.1em; background: var(--paint); box-shadow: 0 0 0 1px var(--color-border-strong); }
.chips li { padding: var(--space-1) var(--space-3); border-radius: var(--radius-badge); background: var(--color-surface-sunken); font-size: var(--text-label-size); line-height: var(--leading-snug); }

/* Prijscheck */
#check {
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-body-sm-size); line-height: var(--text-body-sm-leading); }
.amt { font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt.is-minus { color: var(--color-text-muted); }

/* Hero: the tool is the hero */
.hero { display: grid; gap: var(--space-10) var(--space-16); grid-template-columns: minmax(0, 1fr); padding-block: var(--space-12) var(--space-16); align-items: start; }
@media (min-width: 64rem) { .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.hero__copy { display: grid; gap: var(--space-6); align-content: start; min-width: 0; }
.hero__title { font-family: var(--text-display-family); font-size: var(--text-4xl); line-height: var(--text-display-leading); font-weight: var(--text-display-weight); letter-spacing: var(--text-display-tracking); }
.hero__lede { font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--color-text-muted); max-width: var(--measure); }
.hero__form { display: grid; gap: var(--space-2); max-width: var(--container-sm); }
.input { display: flex; align-items: stretch; min-height: var(--size-control); border: var(--border-strong); border-radius: var(--radius-control); background: var(--color-bg); overflow: hidden; transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard); }
.input input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--color-text); font-size: var(--text-base); padding: 0 var(--space-4); outline: none; }
.input input::placeholder { color: var(--color-text-subtle); }
.input:focus-within { border-color: var(--color-primary); box-shadow: var(--shadow-focus); }
.field__hint { font-size: var(--text-body-sm-size); color: var(--color-text-muted); min-height: calc(var(--text-body-sm-size) * var(--leading-normal)); }
.field__hint.is-ok { color: var(--color-verdict-fair); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--size-control); padding: var(--space-inset-control); border-radius: var(--radius-control); border: var(--border-width-hairline) solid transparent; font-size: var(--text-base); font-weight: var(--weight-semibold); line-height: var(--leading-snug); white-space: nowrap; text-decoration: none; transition: background var(--duration-fast) var(--ease-standard); }
.btn:active { transform: translateY(var(--space-px)); }
.btn:focus-visible { border-radius: var(--radius-control); }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn--secondary { background: var(--color-bg); color: var(--color-text); border-color: var(--color-border-strong); }
.btn--secondary:hover { background: var(--color-surface-sunken); color: var(--color-text); }
.btn--lg { min-height: calc(var(--size-control) + var(--space-2)); padding: var(--space-3) var(--space-5); font-size: var(--text-base); border-width: var(--border-width-thick); border-color: var(--color-text); }
.meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-1); }
.meter__seg { height: var(--size-band); border-radius: var(--radius-range); background: var(--color-band-track); }
.meter__seg.is-on.is-fair { background: var(--color-band-fair); }
.meter__seg.is-on.is-attn { background: var(--color-band-overshoot); }
.meter__labels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-1); margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-text-subtle); line-height: var(--leading-snug); }
.meter__labels .is-on { color: var(--color-text); font-weight: var(--weight-medium); }
.randoms__row .btn[aria-pressed="true"] { background: var(--color-primary-subtle); color: var(--color-on-primary-subtle); border-color: var(--color-primary); }
.checks { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: var(--border-default); }
.checks__title { font-weight: var(--weight-semibold); }
.checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.checks li { position: relative; padding-left: var(--space-5); font-size: var(--text-body-sm-size); line-height: var(--text-body-sm-leading); }
.checks li::before { content: ""; position: absolute; left: var(--space-1); top: 0.55em; width: var(--space-2); height: var(--space-2); border-radius: var(--radius-full); background: var(--color-text-subtle); }
.checks li.is-attn::before { background: var(--color-band-overshoot); }
.checks li.is-ok::before { background: var(--color-band-fair); }
.randoms { display: grid; gap: var(--space-3); }
.randoms__row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn--sm { min-height: var(--size-control-sm); padding: var(--space-1) var(--space-4); font-size: var(--text-label-size); }
.input__btn { margin: var(--space-1); min-height: calc(var(--size-control) - var(--space-2) - var(--border-width-hairline) * 2); border-radius: calc(var(--radius-control) - var(--space-1)); }
.examples__label { font-size: var(--text-label-size); font-weight: var(--text-label-weight); color: var(--color-text-muted); }

/* The answer */
.answer { background: var(--color-surface); border-radius: var(--radius-panel); padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-5); align-content: start; min-width: 0; }
@media (min-width: 30rem) { .answer { padding: var(--space-10); } }
.verdict { font-family: var(--font-display); font-size: var(--text-3xl); line-height: var(--leading-tight); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight); color: var(--color-verdict-fair); }
.verdict--attn { color: var(--color-verdict-attention); }
.verdict--sharp { color: var(--color-verdict-sharp); }
.answer__note { font-size: var(--text-xs); color: var(--color-text-subtle); }
.fairline { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); }
.fairline .lbl { font-size: var(--text-label-size); color: var(--color-text-muted); }
.price { font-family: var(--text-price-family); font-size: var(--text-3xl); line-height: var(--text-price-leading); font-weight: var(--text-price-weight); letter-spacing: var(--text-price-tracking); font-stretch: var(--text-price-width); font-variant-numeric: tabular-nums; }
.price__pm { color: var(--color-verdict-fair); white-space: nowrap; font-size: 0.6em; letter-spacing: var(--tracking-snug); }

/* The band (signature component) */
.band { --lo: 30%; --hi: 60%; --at: 45%; position: relative; height: var(--size-dot); }
.band__track, .band__fair, .band__over, .band__dot { position: absolute; top: 50%; translate: 0 -50%; }
.band__track { inset-inline: 0; height: var(--size-track); border-radius: var(--radius-range); background: var(--color-band-track); }
.band__fair { left: var(--lo); width: calc(var(--hi) - var(--lo)); height: var(--size-band); border-radius: var(--radius-range); background: var(--color-band-fair); }
.band__over { left: var(--hi); width: calc(var(--at) - var(--hi)); height: var(--size-track); border-radius: var(--radius-range); background: var(--color-band-overshoot); }
.band__over--low { left: var(--at); width: calc(var(--lo) - var(--at)); }
.band__dot { left: var(--at); width: var(--size-dot); height: var(--size-dot); translate: -50% -50%; border-radius: var(--radius-full); background: var(--color-dot-fill); border: var(--size-dot-ring) solid var(--color-dot-ring); animation: dot-settle var(--duration-settle) var(--ease-spring) both; }

.band--mini { --size-dot: calc(var(--size-icon) * 0.45); --size-band: calc(var(--size-icon) * 0.3); --size-track: calc(var(--size-icon) * 0.12); --size-dot-ring: calc(var(--size-icon) * 0.1); width: calc(var(--size-icon) * 1.4); display: inline-block; vertical-align: middle; flex: none; }
.band--mini .band__dot { animation: none; }
.scale { position: relative; height: var(--space-6); margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.scale span { position: absolute; top: 0; left: var(--x); translate: -50% 0; white-space: nowrap; }
.scale span.is-start { translate: 0 0; }
.scale span.is-end { translate: -100% 0; }
.scale span.is-key { color: var(--color-text); font-weight: var(--weight-medium); }
.peers { display: grid; gap: 0; }
.peers > a { margin-top: var(--space-2); font-size: var(--text-body-sm-size); }
@media (max-width: 34rem) { .peers__row { grid-template-columns: minmax(0, 1fr) auto; } }
.badge { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3) var(--space-1) var(--space-2); border-radius: var(--radius-badge); font-size: var(--text-label-size); font-weight: var(--text-label-weight); line-height: var(--leading-snug); background: var(--color-success-subtle); color: var(--color-verdict-fair); white-space: nowrap; }
.badge--attn { background: var(--color-warning-subtle); color: var(--color-warning); }
.badge--attn .band { --color-band-fair: var(--color-band-overshoot); }

/* The reasoning, one step away */
main { padding-bottom: var(--space-16); }
.sec { padding-block: var(--space-12); border-top: var(--border-default); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.sec > * { min-width: 0; }
.sec__head { display: grid; gap: var(--space-2); max-width: var(--container-md); }
.sec__head h2 { font-size: var(--text-heading-lg-size); line-height: var(--text-heading-lg-leading); font-weight: var(--text-heading-lg-weight); letter-spacing: var(--text-heading-lg-tracking); }
.sec__head p { color: var(--color-text-muted); max-width: var(--measure); }
.cols { display: grid; gap: var(--space-10) var(--space-12); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cols > * { min-width: 0; }
.h3 { font-family: var(--font-display); font-size: var(--text-heading-sm-size); line-height: var(--text-heading-sm-leading); font-weight: var(--text-heading-sm-weight); letter-spacing: var(--text-heading-sm-tracking); margin-bottom: var(--space-3); }
.effects { display: grid; }
.effects__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-block: var(--space-3); border-bottom: var(--border-default); font-size: var(--text-body-sm-size); }
.effects__row span:first-child small { display: block; color: var(--color-text-muted); font-size: var(--text-xs); }
.effects__row .amt small { display: block; text-align: right; color: var(--color-text-subtle); font-size: var(--text-xs); font-weight: var(--weight-regular); }
.effects__row.is-total { border-bottom: 0; border-top: var(--border-width-thick) solid var(--color-text); font-size: var(--text-base); }
.effects__row.is-total .amt { font-weight: var(--weight-bold); font-stretch: var(--font-width-numeric); font-size: var(--text-lg); }
.caption--after { margin-top: var(--space-4); }
.caption--before { margin-bottom: var(--space-2); }
.stack { margin-top: var(--space-8); }
.btn--start { justify-self: start; }
.caption { font-size: var(--text-body-sm-size); line-height: var(--text-body-sm-leading); color: var(--color-text-muted); max-width: var(--measure); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-body-sm-size); min-width: 56rem; }
th, td { text-align: left; padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: var(--border-default); vertical-align: middle; }
th { font-weight: var(--weight-medium); color: var(--color-text-muted); }
td.r, th.r { text-align: right; }
.empty { padding: var(--space-6); border: var(--border-width-hairline) dashed var(--color-border-strong); border-radius: var(--radius-card); color: var(--color-text-muted); }
}

/* Configurator */
#config {
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-body-sm-size); line-height: var(--text-body-sm-leading); }
.h3 { font-size: var(--text-heading-sm-size); line-height: var(--text-heading-sm-leading); font-weight: var(--text-heading-sm-weight); letter-spacing: var(--text-heading-sm-tracking); font-family: var(--font-display); }
.label { font-size: var(--text-label-size); line-height: var(--text-label-leading); font-weight: var(--text-label-weight); color: var(--color-text-muted); }
.fig { font-weight: var(--weight-bold); font-stretch: var(--font-width-numeric); letter-spacing: var(--tracking-snug); font-variant-numeric: tabular-nums; }
.amt { font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt.is-minus { color: var(--color-text-muted); }

/* Make and model */
.pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-8) 0; }
@media (min-width: 40rem) { .pick { grid-template-columns: minmax(0, 14rem) minmax(0, 22rem) minmax(0, 1fr); align-items: end; } }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field__label { font-size: var(--text-label-size); font-weight: var(--text-label-weight); }
.select { width: 100%; min-height: var(--size-control); padding: 0 var(--space-4); border: var(--border-strong); border-radius: var(--radius-control); background: var(--color-bg); font-size: var(--text-base); font-weight: var(--weight-medium); }
.select:focus-visible { border-radius: var(--radius-control); border-color: var(--color-primary); }
.pick .hint { color: var(--color-text-muted); font-size: var(--text-body-sm-size); max-width: var(--measure); }

/* Title and the answer panel */
.head { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); padding-block: var(--space-10) var(--space-4); align-items: end; }
@media (min-width: 64rem) { .head { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); column-gap: var(--space-12); } }
.head h1 { font-size: var(--text-4xl); line-height: var(--leading-tight); font-weight: var(--text-display-weight); letter-spacing: var(--text-display-tracking); }
.head .sub { margin-top: var(--space-3); color: var(--color-text-muted); }
.answer { background: var(--color-surface); border-radius: var(--radius-panel); padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-4); min-width: 0; }
@media (min-width: 30rem) { .answer { padding: var(--space-8) var(--space-10); } }
.price { font-family: var(--text-price-family); font-size: var(--text-4xl); line-height: var(--text-price-leading); font-weight: var(--text-price-weight); letter-spacing: var(--text-price-tracking); font-stretch: var(--text-price-width); font-variant-numeric: tabular-nums; }
.price__pm { color: var(--color-verdict-fair); white-space: nowrap; font-size: 0.55em; letter-spacing: var(--tracking-snug); }
.chip-range { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-4); border-radius: var(--radius-range); background: var(--color-primary-subtle); color: var(--color-on-primary-subtle); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; font-size: var(--text-label-size); white-space: nowrap; }
.note { font-size: var(--text-xs); color: var(--color-text-subtle); }

main { padding-bottom: calc(var(--space-32) + var(--space-8)); }
.sec { padding-block: var(--space-12); border-top: var(--border-default); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.sec > * { min-width: 0; }
.sec:first-of-type { border-top: 0; }
.sec__head { display: grid; gap: var(--space-2); max-width: var(--container-md); }
.sec__head h2 { font-size: var(--text-heading-lg-size); line-height: var(--text-heading-lg-leading); font-weight: var(--text-heading-lg-weight); letter-spacing: var(--text-heading-lg-tracking); }
.sec__head p { color: var(--color-text-muted); max-width: var(--measure); }

/* Build year and mileage */
.ym { display: grid; gap: var(--space-10) var(--space-12); grid-template-columns: minmax(0, 1fr); }
.ym__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.ym__val { font-size: var(--text-2xl); line-height: var(--leading-tight); }
/* price-bars:start. Price bars: every bar is what that year or mileage does to the price of your car. Up = more
   expensive, down = cheaper, your car is the dot on the zero line. Bars, not capsules: capsules mean ranges. */
.ybars { display: grid; gap: var(--space-3); min-width: 0; }
.ybars__chart { position: relative; min-width: 0; touch-action: pan-y; }
.ybars__chart svg { display: block; overflow: visible; }
.ybars__chart text { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.ybars__amt { fill: var(--color-text); font-size: 12px; font-weight: var(--weight-semibold); }
.ybars__amt.is-mine { fill: var(--color-primary); font-weight: var(--weight-bold); }
.ybars__delta { font-size: 11px; font-weight: var(--weight-medium); fill: var(--color-text-subtle); }
.ybars__delta.is-up { fill: var(--color-success); }
.ybars__delta.is-down { fill: var(--color-danger); }
.ybars__axis { fill: var(--color-text-muted); font-size: 11px; }
.ybars__axis.is-mine { fill: var(--color-primary); font-weight: var(--weight-bold); font-size: 12px; }
.ybars__up { fill: var(--color-band-fair); }
.ybars__down { fill: color-mix(in oklab, var(--color-text-muted) 32%, transparent); }
.ybars__zero { stroke: var(--color-border-strong); stroke-width: 1; }
.ybars__usual { fill: color-mix(in oklab, var(--color-primary) 9%, transparent); }
.ybars__dot { fill: var(--color-primary); stroke: var(--color-bg); stroke-width: 3; }
.ybars__bar { cursor: pointer; outline: none; }
.ybars__bar:hover path, .ybars__bar:focus-visible path { opacity: 0.75; }
.ybars__bar:focus-visible .ybars__hit { stroke: var(--color-focus-ring); stroke-width: 2; }
.ybars__hit { fill: transparent; }
.ybars__chart a { text-decoration: none; }
.ybars input[type=range] { width: 100%; margin: 0; accent-color: var(--color-primary); }
/* Rulers: a slider per variable with the price difference printed under every mark, set at an angle so neighbours never collide */
.caption--after { margin-top: var(--space-4); }
.caption--before { margin-bottom: var(--space-2); }
.stack { margin-top: var(--space-8); }
.btn--start { justify-self: start; }
.caption { font-size: var(--text-body-sm-size); line-height: var(--text-body-sm-leading); color: var(--color-text-muted); max-width: var(--measure); }
.live { min-height: calc(var(--text-body-size) * var(--leading-normal)); }
.rate { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-8); padding-block: var(--space-4); border-block: var(--border-default); font-size: var(--text-body-sm-size); }
.rate b { font-weight: var(--weight-bold); font-stretch: var(--font-width-numeric); font-variant-numeric: tabular-nums; }

/* Rows of choices: selectable controls, hairline border, green when chosen */
.strip { display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x proximity; padding: var(--space-1) var(--space-1) var(--space-3); margin-inline: calc(var(--space-1) * -1); scrollbar-width: thin; }
.choice { flex: 0 0 13rem; scroll-snap-align: start; display: grid; gap: var(--space-1); align-content: start; grid-template-rows: auto auto 1fr auto; text-align: left; padding: var(--space-5); min-height: 9.5rem; border: var(--border-default); border-radius: var(--radius-card); background: var(--color-bg); position: relative; transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
.choice:hover { border-color: var(--color-border-strong); }
.choice:focus-visible { border-radius: var(--radius-card); }
.choice[aria-pressed="true"] { border: var(--border-width-thick) solid var(--color-primary); padding: calc(var(--space-5) - var(--border-width-hairline)); background: var(--color-primary-subtle); }
.choice__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); line-height: var(--leading-snug); padding-right: var(--space-6); }
.choice__sub { font-size: var(--text-body-sm-size); color: var(--color-text-muted); }
.choice__amt { align-self: end; padding-top: var(--space-3); display: grid; gap: var(--space-0-5); }
.choice__amt .amt { font-size: var(--text-lg); }
.choice__amt small { font-size: var(--text-xs); color: var(--color-text-subtle); font-variant-numeric: tabular-nums; }
.choice__mine { color: var(--color-on-primary-subtle); font-weight: var(--weight-semibold); }
.choice__check { position: absolute; top: var(--space-4); right: var(--space-4); width: var(--size-icon); height: var(--size-icon); color: var(--color-primary); }

/* Colour */
.paints { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.paint { display: grid; justify-items: center; gap: var(--space-1); width: 6.5rem; padding: var(--space-3) var(--space-2); border: var(--border-width-hairline) solid transparent; border-radius: var(--radius-card); background: none; text-align: center; }
.paint:hover { background: var(--color-surface-sunken); }
.paint:focus-visible { border-radius: var(--radius-card); }
.paint[aria-pressed="true"] { border: var(--border-width-thick) solid var(--color-primary); background: var(--color-primary-subtle); }
.paint i { width: var(--space-12); height: var(--space-12); border-radius: var(--radius-full); box-shadow: inset 0 0 0 var(--border-width-hairline) var(--color-border-strong); }
.paint b { font-weight: var(--weight-semibold); font-size: var(--text-label-size); }
.paint span { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Options: the effects list, feature and amount per row */
.effects { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--space-12); }
@media (min-width: 48rem) { .effects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.effect { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding-block: var(--space-4); border-bottom: var(--border-default); cursor: pointer; }
.effect input { width: var(--size-icon); height: var(--size-icon); margin: 0; accent-color: var(--color-primary); }
.effect b { font-weight: var(--weight-medium); }
.effect small { display: block; font-size: var(--text-xs); color: var(--color-text-muted); }
.effect__amt { text-align: right; }
.effect__amt small { color: var(--color-text-subtle); }
.group-title { font-family: var(--font-display); font-size: var(--text-heading-sm-size); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); margin-top: var(--space-4); }
.fold { margin-top: var(--space-4); border-top: var(--border-default); border-bottom: var(--border-default); }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--size-control); padding-block: var(--space-2); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .group-title { margin: 0; }
.fold > summary small { color: var(--color-text-muted); font-size: var(--text-label-size); white-space: nowrap; }
.fold > summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-right: var(--border-width-thick) solid currentColor; border-bottom: var(--border-width-thick) solid currentColor; rotate: 45deg; translate: 0 -25%; transition: rotate var(--duration-fast) var(--ease-standard); }
.fold[open] > summary::after { rotate: 225deg; translate: 0 25%; }
.fold > summary:focus-visible { border-radius: var(--radius-sm); }
.fold__body { padding-bottom: var(--space-4); }

/* Verdict badge with a tiny band; the dot is the asking price */
.band { --lo: 30%; --hi: 60%; --at: 45%; position: relative; height: var(--size-dot); }
.band__track, .band__fair, .band__over, .band__dot { position: absolute; top: 50%; translate: 0 -50%; }
.band__track { inset-inline: 0; height: var(--size-track); border-radius: var(--radius-range); background: var(--color-band-track); }
.band__fair { left: var(--lo); width: calc(var(--hi) - var(--lo)); height: var(--size-band); border-radius: var(--radius-range); background: var(--color-band-fair); }
.band__over { left: var(--hi); width: calc(var(--at) - var(--hi)); height: var(--size-track); border-radius: var(--radius-range); background: var(--color-band-overshoot); }
.band__over--low { left: var(--at); width: calc(var(--lo) - var(--at)); }
.band__dot { left: var(--at); width: var(--size-dot); height: var(--size-dot); translate: -50% -50%; border-radius: var(--radius-full); background: var(--color-dot-fill); border: var(--size-dot-ring) solid var(--color-dot-ring); }
.band--mini { --size-dot: calc(var(--size-icon) * 0.45); --size-band: calc(var(--size-icon) * 0.3); --size-track: calc(var(--size-icon) * 0.12); --size-dot-ring: calc(var(--size-icon) * 0.1); width: calc(var(--size-icon) * 1.4); display: inline-block; vertical-align: middle; flex: none; }
.badge { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3) var(--space-1) var(--space-2); border-radius: var(--radius-badge); font-size: var(--text-label-size); font-weight: var(--text-label-weight); line-height: var(--leading-snug); background: var(--color-success-subtle); color: var(--color-verdict-fair); white-space: nowrap; }
.badge--attn { background: var(--color-warning-subtle); color: var(--color-warning); }
.badge--attn .band { --color-band-fair: var(--color-band-overshoot); }

/* Cars for sale */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-body-sm-size); min-width: 50rem; }
th, td { text-align: left; padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: var(--border-default); vertical-align: middle; }
th { font-weight: var(--weight-medium); color: var(--color-text-muted); }
td.r, th.r { text-align: right; }
.ok { color: var(--color-verdict-fair); font-weight: var(--weight-medium); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--size-control); padding: var(--space-inset-control); border-radius: var(--radius-control); border: var(--border-width-hairline) solid transparent; font-size: var(--text-base); font-weight: var(--weight-semibold); line-height: var(--leading-snug); white-space: nowrap; transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard); }
.btn:active { transform: translateY(var(--space-px)); }
.btn:focus-visible { border-radius: var(--radius-control); }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--secondary { background: var(--color-bg); color: var(--color-text); border-color: var(--color-border-strong); }
.btn--secondary:hover { background: var(--color-surface-sunken); }
.empty { padding: var(--space-6); border: var(--border-width-hairline) dashed var(--color-border-strong); border-radius: var(--radius-card); color: var(--color-text-muted); }

/* Sticky bar with the car and its price */
.bar { position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky); background: var(--color-bg); border-top: var(--border-default); box-shadow: var(--shadow-lg); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-8); padding-block: var(--space-3); }
.bar__car { flex: 1 1 20rem; min-width: 0; }
.bar__car b { display: block; font-weight: var(--weight-semibold); }
.bar__car span { font-size: var(--text-body-sm-size); color: var(--color-text-muted); }
.bar__price { display: grid; text-align: right; }
.bar__price span { font-size: var(--text-xs); color: var(--color-text-muted); }
.bar__price b { font-size: var(--text-2xl); line-height: var(--leading-tight); }
@media (max-width: 39.99rem) { .bar__car span { display: none; } .bar__price { text-align: left; } }
}

/* Volle Sjaak: the best-equipped cars of their kind. Scoped to #sjaak; semantic tokens only. */
#sjaak { padding-bottom: var(--space-16); }
#sjaak .vs-hero { display: grid; gap: var(--space-4); padding-block: var(--space-12) var(--space-8); max-width: var(--container-md); }
#sjaak .vs-kicker { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-primary); font-weight: var(--weight-semibold); }
#sjaak .vs-title { font-size: var(--text-4xl); line-height: var(--leading-tight); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight); }
#sjaak .vs-lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: var(--measure); }
#sjaak .vs-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-8); }
@media (min-width: 48rem) { #sjaak .vs-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#sjaak .vs-stat { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-4); border-radius: var(--radius-card); background: var(--color-surface); min-width: 0; }
#sjaak .vs-stat b { font-family: var(--font-display); font-size: var(--text-2xl); line-height: var(--leading-tight); font-weight: var(--weight-bold); font-stretch: var(--font-width-numeric); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-snug); }
#sjaak .vs-stat b { white-space: nowrap; }
@media (max-width: 40rem) { #sjaak .vs-stat b { font-size: var(--text-xl); } }
#sjaak .vs-stat span { font-size: var(--text-body-sm-size); line-height: var(--leading-snug); color: var(--color-text-muted); }
#sjaak .vs-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3) var(--space-4); align-items: end; padding-block: var(--space-4); border-top: var(--border-default); }
@media (min-width: 48rem) { #sjaak .vs-filters { grid-template-columns: minmax(0, 10rem) minmax(0, 16rem) minmax(0, 13rem) minmax(14rem, 1fr); } #sjaak .vs-checks { grid-column: 1 / -1; } }
/* Build year: two thumbs on one track (from / up to), with the number of Volle Sjaak cars per year as small bars above.
   Thumb centres run from half a thumb in to half a thumb from the end, so bars and fill use the same positions. */
#sjaak .vs-years { --thumb: 1.25rem; display: block; }
#sjaak .vs-years__label { font-size: var(--text-label-size); font-weight: var(--weight-medium); }
#sjaak .vs-years__out { font-size: var(--text-label-size); font-variant-numeric: tabular-nums; color: var(--color-primary); }
#sjaak .vs-years__hist { position: relative; height: 1.75rem; margin-top: var(--space-1); }
#sjaak .vs-years__hist i { position: absolute; bottom: 0; translate: -50% 0; width: calc((100% - var(--thumb)) / var(--n) * 0.6); min-height: 2px; border-radius: var(--radius-xs) var(--radius-xs) 0 0; background: var(--color-band-track); }
#sjaak .vs-years__hist i.is-on { background: var(--color-band-thin); }
#sjaak .vs-years__slider { position: relative; height: var(--thumb); }
#sjaak .vs-years__slider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; height: var(--size-track); border-radius: var(--radius-range); background: var(--color-band-track); }
#sjaak .vs-years__fill { position: absolute; top: 50%; translate: 0 -50%; height: var(--size-track); border-radius: var(--radius-range); background: var(--color-band-fair); }
#sjaak .vs-years__slider input:first-of-type { z-index: 1; }
#sjaak .vs-years__slider input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
#sjaak .vs-years__slider input:focus-visible { box-shadow: none; }
#sjaak .vs-years__slider input::-webkit-slider-runnable-track { background: transparent; border: 0; }
#sjaak .vs-years__slider input::-moz-range-track { background: transparent; border: 0; }
#sjaak .vs-years__slider input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: var(--thumb); height: var(--thumb); border-radius: var(--radius-full); background: var(--color-dot-fill); border: var(--size-dot-ring) solid var(--color-band-fair); cursor: grab; }
#sjaak .vs-years__slider input::-moz-range-thumb { pointer-events: auto; width: var(--thumb); height: var(--thumb); box-sizing: border-box; border-radius: var(--radius-full); background: var(--color-dot-fill); border: var(--size-dot-ring) solid var(--color-band-fair); cursor: grab; }
#sjaak .vs-years__slider input:focus-visible::-webkit-slider-thumb { box-shadow: var(--shadow-focus); }
#sjaak .vs-years__slider input:focus-visible::-moz-range-thumb { box-shadow: var(--shadow-focus); }
#sjaak .vs-years__ends { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-subtle); font-variant-numeric: tabular-nums; }
#sjaak .vs-field { display: grid; gap: var(--space-1); min-width: 0; }
#sjaak .vs-field label { font-size: var(--text-label-size); font-weight: var(--weight-medium); }
#sjaak select { width: 100%; min-height: var(--size-control-sm); padding: 0 var(--space-3); border: var(--border-strong); border-radius: var(--radius-control); background: var(--color-bg); color: var(--color-text); font: inherit; font-size: var(--text-body-sm-size); }
#sjaak .vs-checks { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
#sjaak .vs-check { display: inline-flex; gap: var(--space-2); align-items: center; min-height: var(--size-control-sm); font-size: var(--text-body-sm-size); cursor: pointer; }
#sjaak .vs-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--color-primary); }
#sjaak .vs-count { font-size: var(--text-body-sm-size); color: var(--color-text-muted); margin: var(--space-2) 0 var(--space-4); }
#sjaak .vs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 40rem) { #sjaak .vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { #sjaak .vs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#sjaak .vs-card { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); border-radius: var(--radius-card); background: var(--color-surface-raised); border: var(--border-default); box-shadow: var(--shadow-raised); min-width: 0; }
#sjaak .vs-card__top { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
#sjaak .vs-tag { display: inline-flex; align-items: center; padding: var(--space-0-5) var(--space-2); border-radius: var(--radius-badge); font-size: var(--text-xs); font-weight: var(--weight-semibold); background: var(--color-primary-subtle); color: var(--color-on-primary-subtle); font-variant-numeric: tabular-nums; }
#sjaak .vs-tag--info { background: var(--color-info-subtle); color: var(--color-info); }
#sjaak .vs-card h3 { font-size: var(--text-heading-sm-size); line-height: var(--leading-snug); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); }
#sjaak .vs-sub { font-size: var(--text-body-sm-size); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
#sjaak .vs-price { font-family: var(--font-display); font-size: var(--text-2xl); line-height: var(--leading-tight); font-weight: var(--weight-bold); font-stretch: var(--font-width-numeric); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-tight); }
#sjaak .vs-newp { display: grid; gap: var(--space-1); padding-top: var(--space-3); border-top: var(--border-default); }
#sjaak .vs-newp__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); font-size: var(--text-xs); color: var(--color-text-muted); }
#sjaak .vs-newp__head b { font-size: var(--text-base); color: var(--color-text); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
#sjaak .vs-range { position: relative; height: var(--size-dot); margin-inline: calc(var(--size-dot) / 2); }
#sjaak .vs-range > span { position: absolute; top: 50%; translate: 0 -50%; }
#sjaak .vs-range__track { left: calc(var(--size-dot) / -2); right: calc(var(--size-dot) / -2); height: var(--size-track); border-radius: var(--radius-range); background: var(--color-band-track); }
#sjaak .vs-range__band { height: var(--size-band); min-width: var(--size-band); border-radius: var(--radius-range); background: var(--color-band-thin); }
#sjaak .vs-range__mid { width: var(--border-width-thick); height: calc(var(--size-band) + var(--space-1)); translate: -50% -50%; border-radius: var(--radius-full); background: var(--color-band-fair); }
#sjaak .vs-range__dot { width: calc(var(--size-dot) * 0.8); height: calc(var(--size-dot) * 0.8); translate: -50% -50%; border-radius: var(--radius-full); background: var(--color-dot-fill); border: var(--size-dot-ring) solid var(--color-band-fair); }
#sjaak .vs-newp__scale { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-subtle); font-variant-numeric: tabular-nums; }
#sjaak .vs-newp__cap { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); }
#sjaak .vs-key { flex: none; width: var(--space-5); height: var(--space-2); border-radius: var(--radius-range); background: var(--color-band-thin); }
#sjaak .vs-newp__extra { font-size: var(--text-body-sm-size); font-weight: var(--weight-semibold); color: var(--color-primary); }
#sjaak .vs-prem { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--space-3); align-items: baseline; padding-block: var(--space-3); border-block: var(--border-default); }
#sjaak .vs-prem span { font-size: var(--text-xs); color: var(--color-text-muted); }
#sjaak .vs-prem b { font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; text-align: right; }
#sjaak .vs-prem small { grid-column: 1 / -1; text-align: right; font-size: var(--text-xs); color: var(--color-text-muted); }
#sjaak .vs-prem .is-good { color: var(--color-success); }
#sjaak .vs-opts { display: grid; gap: var(--space-2); }
#sjaak .vs-opts p { font-size: var(--text-xs); color: var(--color-text-muted); }
#sjaak .vs-opts ul { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
#sjaak .vs-opts li { padding: var(--space-1) var(--space-3); border-radius: var(--radius-badge); background: var(--color-surface-sunken); font-size: var(--text-label-size); line-height: var(--leading-snug); }
#sjaak .vs-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }
#sjaak .vs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--size-control-sm); padding: var(--space-1) var(--space-4); border-radius: var(--radius-control); border: var(--border-width-hairline) solid transparent; font: inherit; font-size: var(--text-label-size); font-weight: var(--weight-semibold); text-decoration: none; white-space: nowrap; cursor: pointer; }
#sjaak .vs-btn:focus-visible { border-radius: var(--radius-control); }
#sjaak .vs-btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
#sjaak .vs-btn--primary:hover { background: var(--color-primary-hover); }
#sjaak .vs-btn--secondary { background: var(--color-bg); color: var(--color-text); border-color: var(--color-border-strong); }
#sjaak .vs-btn--secondary:hover { background: var(--color-surface-sunken); }
#sjaak .vs-more { display: flex; justify-content: center; padding-block: var(--space-6); }
#sjaak .vs-how { margin-top: var(--space-8); padding-top: var(--space-6); border-top: var(--border-default); max-width: var(--container-md); }
#sjaak .vs-how summary { cursor: pointer; font-weight: var(--weight-semibold); }
#sjaak .vs-how ul { margin: var(--space-3) 0 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); font-size: var(--text-body-sm-size); color: var(--color-text-muted); }
#sjaak .vs-foot { margin-top: var(--space-6); font-size: var(--text-xs); color: var(--color-text-subtle); max-width: var(--measure); }
}
