/* ==========================================================================
   PEKEMA Marketplace buyer pages (Track MK2). Layered on the commercial
   site's pekema.css: its tokens, fonts, header, footer, buttons and hero.
   Every class here is k-prefixed so nothing collides with the site's own.
   ========================================================================== */

.k-page { background: var(--ink-050); }
.k-page main { padding-bottom: var(--sp-8); }
.k-footer-h { color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: var(--sp-4); }
.k-footer-reg { font-size: 0.8rem; color: var(--ink-300); margin-top: 1rem; }
.k-footer-p { margin: 0; }

/* --- hero ---------------------------------------------------------------- */
.k-hero .pagehero__inner { padding-block: clamp(1.5rem, 3.5vw, 2.5rem); }
.k-hero__h { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.35rem); margin-bottom: var(--sp-2); }
.k-hero__h::after { margin-top: var(--sp-3); }
.k-hero p { font-size: var(--step-0); }
.k-hero .breadcrumb { margin-bottom: var(--sp-3); }

/* A make or model page's summary: its figures and the loan link, on the dark hero. */
.k-summary { margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.k-summary p { font-size: var(--step--1); }
.k-summary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--step--1); }
.k-summary a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding-block: 5px; }

/* A sold or withdrawn advert (410): the car beside what to do next. */
.k-gone { display: grid; gap: var(--sp-4); align-items: center; }
@media (min-width: 760px) { .k-gone { grid-template-columns: minmax(0, 1fr) 320px; } }
.k-gone .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.k-gone .btn--ghost:hover { background: #fff; color: var(--navy-950); border-color: #fff; }
.k-gone__links { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.k-gone__img { width: 100%; max-width: 320px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); opacity: 0.85; }

/* --- layout -------------------------------------------------------------- */
/* search pages use the wide container: the result card needs room for its spec panel */
.container.k-layout { width: min(100% - 2.5rem, var(--container-wide)); }
.k-layout { display: grid; gap: var(--sp-5); padding-top: var(--sp-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 760px) { .k-layout { grid-template-columns: 250px minmax(0, 1fr); } .k-rail { grid-column: 2; } }
@media (min-width: 1180px) { .k-layout { grid-template-columns: 250px minmax(0, 1fr) 260px; } .k-rail { grid-column: 3; grid-row: 1; } }

/* --- filters ------------------------------------------------------------- */
.k-filters { background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius); }
.k-filters__form { display: flex; flex-direction: column; height: 100%; }
.k-filters__head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) var(--sp-3); border-bottom: 1px solid var(--ink-100); }
.k-filters__head h2 { font-size: var(--step-1); margin: 0; flex: 1; }
.k-filters__reset { display: inline-flex; align-items: center; min-height: 24px; font-size: var(--step--1); font-weight: 600; color: var(--ink-700); text-decoration: underline; text-underline-offset: 3px; }
.k-filters__close { display: none; border: 0; background: none; padding: var(--sp-2); cursor: pointer; color: var(--navy-950); }
.k-filters__body { padding: var(--sp-4); display: grid; gap: var(--sp-4); }
/* related filters sit together (car, place, budget, age, spec, seller) with a hairline between the sets */
.k-filters__group { display: grid; gap: var(--sp-3); min-width: 0; }
.k-filters__group + .k-filters__group { padding-top: var(--sp-4); border-top: 1px solid var(--ink-100); }
.k-filters__foot { padding: var(--sp-3) var(--sp-4) var(--sp-4); border-top: 1px solid var(--ink-100); }
.k-filters__apply { width: 100%; }
.js .k-filters__foot { display: none; }
@media (min-width: 760px) {
  .k-filters { position: sticky; top: calc(var(--header-h) + var(--sp-3)); max-height: calc(100vh - var(--header-h) - var(--sp-5)); overflow: auto; overscroll-behavior: contain; }
  .k-filters__sort { display: none; }
  .k-filters__sort + .k-filters__group { padding-top: 0; border-top: 0; }
  /* the title and Reset stay in reach while the panel scrolls, and a row's remove
     chip passes under them, never over: it carries z-index 1 of its own */
  .k-filters__head { position: sticky; top: 0; z-index: 3; background: var(--paper); border-radius: var(--radius) var(--radius) 0 0; }
  .k-filters { scrollbar-width: thin; scrollbar-color: var(--ink-200) transparent; }
  .k-filters .k-field select, .k-filters .k-field input:not([type="checkbox"]):not([type="radio"]) { min-height: 40px; font-size: 0.875rem; }
}
@media (max-width: 759.98px) {
  .js .k-filters {
    position: fixed; inset: 0; z-index: 130; border: 0; border-radius: 0; overflow: auto;
    visibility: hidden; transform: translateY(100%); transition: transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .js .k-filters.is-open { visibility: visible; transform: none; transition: transform 0.25s var(--ease); }
  .js .k-filters__head { position: sticky; top: 0; background: var(--paper); z-index: 3; }
  .js .k-filters__close { display: inline-flex; }
  .js .k-filters__foot { display: block; position: sticky; bottom: 0; z-index: 2; background: var(--paper); }
}

.k-field, .k-range { display: grid; gap: 0.35rem; min-width: 0; border: 0; margin: 0; padding: 0; }
.k-field > label, .k-field > legend {
  font-size: 0.75rem; font-weight: 700; color: var(--ink-600); letter-spacing: 0.08em; text-transform: uppercase; padding: 0;
}
.k-field select, .k-range select, .k-field input:not([type="checkbox"]):not([type="radio"]), .k-range input, .k-facet__narrow, .k-field textarea {
  width: 100%; min-height: 44px; padding: 0.55rem 0.7rem; border: 1px solid var(--ink-200); border-radius: var(--radius-sm);
  background-color: var(--paper); color: var(--ink-800); font-size: 0.95rem; line-height: 1.3;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
/* Safari ignores height and padding on a native select, so every select is drawn
   here with one chevron; number fields lose their spinners to match. */
.k-field select, .k-range select, .k-sort select {
  -webkit-appearance: none; appearance: none; padding-right: 2rem; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233d3f45' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 12px 12px;
}
.k-field input[type="number"], .k-range input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.k-filters input[type="number"]::-webkit-outer-spin-button, .k-filters input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.k-filters input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
.k-filters input::placeholder, .k-field textarea::placeholder { color: var(--ink-500); opacity: 1; }
.k-field textarea { min-height: 5rem; resize: vertical; }
.k-filters select:hover:not(:disabled), .k-filters input:hover:not(:focus), .k-field textarea:hover:not(:focus) { border-color: var(--ink-300); }
.k-filters select:focus, .k-filters input:focus, .k-facet__narrow:focus, .k-field textarea:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 3px var(--gold-100); }
/* in the panel an untouched filter reads as a placeholder, so the applied ones stand out */
.k-filters .k-field > label, .k-filters .k-field > legend { font-size: 0.8rem; font-weight: 600; color: var(--ink-700); letter-spacing: 0; text-transform: none; }
.k-filters select:has(option[value=""]:checked) { color: var(--ink-500); }
.k-filters select option { color: var(--ink-800); }
@media (max-width: 759.98px) {
  /* 16px keeps iOS from zooming the page when a field in the drawer takes focus */
  .k-filters select, .k-filters input:not([type="checkbox"]):not([type="radio"]) { font-size: 1rem; }
}
.k-range__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--sp-2); color: var(--ink-400); }

/* --- filter rows (MK2-31 to MK2-38) -------------------------------------- */
/* One <details> per filter, edge to edge inside the panel, a hairline between
   rows. The label sits left, the chosen value right; an applied row carries its
   remove chip over the value. Only the chevron and the chosen option take gold. */
.k-filters__rows { display: grid; min-width: 0; margin: 0 calc(var(--sp-4) * -1); border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }
.k-facet-wrap { position: relative; min-width: 0; }
.k-facet-wrap + .k-facet-wrap { border-top: 1px solid var(--ink-100); }
.k-facet { margin: 0; }
.k-facet > summary, .k-facet--locked {
  display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0.55rem var(--sp-4);
  font-size: 0.875rem; line-height: 1.3; color: var(--ink-800);
}
.k-facet > summary { cursor: pointer; list-style: none; }
.k-facet > summary::-webkit-details-marker { display: none; }
.k-facet > summary:hover { background: var(--ink-050); }
.k-facet > summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--gold-600); }
.k-facet__label { flex: none; font-weight: 600; }
.k-facet__value, .k-facet__hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.k-facet__value { font-weight: 600; color: var(--navy-950); }
.k-facet__chev { flex: none; color: var(--ink-500); transition: transform 0.15s var(--ease); }
.k-facet[open] > summary .k-facet__chev { transform: rotate(180deg); color: var(--gold-600); }
.k-facet__body { display: grid; gap: var(--sp-2); padding: 0 var(--sp-4) var(--sp-3); }
/* the row's chip replaces its value text and sits left of the chevron */
.k-facet__remove { position: absolute; top: 7px; right: calc(var(--sp-4) + 14px + var(--sp-2)); max-width: 55%; z-index: 1; }
.k-facet-wrap:has(> .k-facet__remove) .k-facet__value { visibility: hidden; }
.k-facet--locked { color: var(--ink-500); cursor: default; }
.k-facet--locked .k-facet__label { color: var(--ink-500); }
.k-facet__hint { font-size: 0.8rem; }
.k-facet__narrow { min-height: 40px; font-size: 0.875rem; }
.k-facet__none { margin: 0; font-size: 0.8rem; color: var(--ink-500); }
.k-facet__body .k-range { gap: var(--sp-3); }

/* short vocabularies with no row to open (MK2-45): the pills are the control and
   they sit under the rows, so Brand still leads the panel on arrival (MK2-36) */
.k-filters__groups { display: grid; gap: var(--sp-4); padding-top: var(--sp-4); }
.k-group { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: var(--sp-2); }
.k-group:focus { outline: none; }
.k-group__label {
  padding: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500);
}

/* options: a radio fills its label, so the whole row, tile or pill is the target */
.k-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; min-width: 0; }
.k-opts li { min-width: 0; }
.k-opt {
  position: relative; display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0.4rem 0.6rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; line-height: 1.3; color: var(--ink-800); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.k-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.k-opt:hover { background: var(--ink-050); }
.k-opt__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-opt__count { flex: none; font-size: 0.8rem; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.k-opt.is-on, .k-opt:has(:checked) { background: var(--gold-100); color: var(--navy-950); font-weight: 600; }
.k-opt.is-on .k-opt__count, .k-opt:has(:checked) .k-opt__count { color: var(--ink-700); }
.k-opt.is-off, .k-opt:has(:disabled) { color: var(--ink-400); cursor: not-allowed; }
.k-opt.is-off:hover, .k-opt:has(:disabled):hover { background: none; }
.k-opt:has(:focus-visible) { box-shadow: 0 0 0 2px var(--gold-600); }
.k-opts--list { max-height: 15rem; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ink-200) transparent; }
/* macOS hides overlay scrollbars until they move, so a capped list reads as a
   complete one. WebKit gets a standing track, and the script fades the bottom
   edge while anything is still below it. */
.k-opts--list::-webkit-scrollbar { width: 10px; }
.k-opts--list::-webkit-scrollbar-thumb { background: var(--ink-200); background-clip: content-box; border: 3px solid transparent; border-radius: 999px; }
.k-opts--list::-webkit-scrollbar-thumb:hover { background: var(--ink-300); background-clip: content-box; }
.k-facet__body { position: relative; }
.k-facet__body.has-more::after {
  content: ""; position: absolute; left: var(--sp-4); right: calc(var(--sp-4) + 10px); bottom: var(--sp-3); height: 2.25rem;
  pointer-events: none; background: linear-gradient(to top, var(--paper), transparent);
}
/* body types: three icon tiles a row, "Any" as a bar above them */
.k-opts--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.k-opts--tiles .k-opt { flex-direction: column; justify-content: center; gap: 0.2rem; min-height: 76px; padding: 0.5rem 0.3rem; border: 1px solid var(--ink-200); text-align: center; font-size: 0.8rem; }
.k-opts--tiles .k-opt__label { flex: none; width: 100%; white-space: normal; }
.k-opts--tiles .k-opt__count { font-size: 0.75rem; }
.k-opts--tiles .k-opt--any { grid-column: 1 / -1; flex-direction: row; min-height: 40px; padding: 0.35rem 0.6rem; text-align: left; }
.k-opts--tiles .k-opt--any .k-opt__label { flex: 1; width: auto; }
.k-opt__icon { display: block; line-height: 0; color: var(--ink-700); }
.k-opt__icon svg { width: 40px; height: 25px; }
.k-opts--tiles .k-opt.is-on, .k-opts--tiles .k-opt:has(:checked) { border-color: var(--gold-600); }
/* colours: a dot beside the name, two a row */
.k-opts--swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px var(--sp-2); }
.k-opts--swatches .k-opt { min-height: 40px; padding: 0.35rem 0.5rem; }
.k-opts--swatches .k-opt--any { grid-column: 1 / -1; }
.k-opt__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.k-opt__dot--other { background: conic-gradient(#c8102e 0 25%, #1f4fa3 0 50%, #2f7d4f 0 75%, #f2c421 0); }
/* two to four choices: pills in one wrapping line, the count inside */
.k-opts--pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.k-opts--pills .k-opt { min-height: 40px; padding: 0.35rem 0.8rem; gap: 0.4rem; border: 1px solid var(--ink-200); border-radius: 999px; }
.k-opts--pills .k-opt__label { flex: none; }
.k-opts--pills .k-opt.is-on, .k-opts--pills .k-opt:has(:checked) { border-color: var(--gold-600); }
/* quick picks under Year and Mileage (MK2-35): links that the script turns into field changes */
.k-picks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.k-picks__label { width: 100%; font-size: 0.75rem; font-weight: 600; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; }
.k-pick {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0.25rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--ink-200); background: var(--paper); color: var(--ink-800); font-size: 0.8rem; font-weight: 600;
}
.k-pick:hover { border-color: var(--navy-950); }
.k-pick.is-on { background: var(--gold-100); border-color: var(--gold-600); color: var(--navy-950); }
@media (max-width: 759.98px) {
  .k-facet > summary, .k-facet--locked, .k-opt { font-size: 1rem; }
  .k-facet__narrow { font-size: 1rem; }
}

.k-chip {
  display: inline-flex; align-items: center; gap: 0.35rem; justify-self: start; max-width: 100%;
  padding: 0.3rem 0.55rem 0.3rem 0.7rem; border-radius: 999px; background: var(--gold-100); border: 1px solid #f3d38c;
  color: var(--navy-950); font-size: 0.8rem; font-weight: 600; line-height: 1.2;
}
.k-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-chip:hover { background: var(--navy-950); border-color: var(--navy-950); color: #fff; }
.k-chip svg { flex: none; }

/* --- results header ------------------------------------------------------ */
.k-results { min-width: 0; container-type: inline-size; }
.k-location { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); font-size: var(--step--1); color: var(--ink-600); }
.k-location strong { color: var(--navy-950); }
.k-location a { font-weight: 600; color: var(--navy-950); text-decoration: underline; text-underline-offset: 3px; }
.k-tabs { display: flex; gap: var(--sp-5); border-bottom: 1px solid var(--ink-200); margin-bottom: var(--sp-3); }
.k-tabs a { padding: var(--sp-2) 0; font-family: var(--font-display); font-weight: 600; color: var(--ink-500); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.k-tabs a[aria-current="page"] { color: var(--navy-950); border-color: var(--gold-500); }
.k-tabs a:hover { color: var(--navy-950); }
.k-quick { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.k-quickchip {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; padding: 0.35rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--ink-200); background: var(--paper); color: var(--ink-800); font-size: 0.85rem; font-weight: 600;
}
.k-quickchip:hover { border-color: var(--navy-950); }
.k-quickchip[aria-pressed="true"] { background: var(--navy-950); border-color: var(--navy-950); color: #fff; }
.k-chipbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.k-chipbar__clear { display: inline-flex; align-items: center; min-height: 24px; font-size: 0.85rem; font-weight: 600; color: var(--ink-700); text-decoration: underline; text-underline-offset: 3px; }
.k-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); justify-content: space-between;
  padding: var(--sp-3) 0; border-top: 1px solid var(--ink-200); margin-bottom: var(--sp-4);
}
.k-toolbar__count { margin: 0; color: var(--navy-950); font-variant-numeric: tabular-nums; }
.k-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper); border: 1px solid var(--ink-200); }
.k-toggle a { padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--ink-600); }
.k-toggle a[aria-pressed="true"] { background: var(--navy-950); color: #fff; }
.k-sort { display: flex; align-items: center; gap: var(--sp-2); }
.k-sort label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-600); }
.k-sort select { min-height: 40px; padding: 0.4rem 2rem 0.4rem 0.7rem; border: 1px solid var(--ink-200); border-radius: var(--radius-sm); background-color: var(--paper); color: var(--ink-800); font-size: 0.9rem; }
@media (max-width: 759.98px) { .js .k-sort { display: none; } }

/* --- result cards -------------------------------------------------------- */
/* One card a row (owner, 2026-09-28). Each row is its own size container, so
   the card below lays itself out for the width it has: photo, details and the
   spec panel side by side on a wide row, stacked on a phone. */
.k-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
.k-cards > li { container-type: inline-size; min-width: 0; }
/* The card follows the commercial listing pattern: photo | title and price |
   a spec panel with the seller and the two contact buttons. The featured band
   crowns the spec panel on wide cards and the whole card when stacked. */
.k-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "band" "media" "main" "aside"; height: 100%;
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.k-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .k-card, .k-card:hover { transition: none; transform: none; } }
.k-card--featured { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500); }
.k-card--featured:hover { box-shadow: 0 0 0 1px var(--gold-500), var(--shadow-lg); }
.k-card__band {
  grid-area: band; display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500)); color: var(--navy-950);
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem var(--sp-3);
}
.k-card__media { grid-area: media; position: relative; aspect-ratio: 4 / 3; background: var(--ink-100); }
.k-card__media > a { display: block; height: 100%; }
.k-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-card__nophoto { display: grid; place-items: center; height: 100%; color: var(--ink-500); font-size: var(--step--1); }
.k-badge {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.k-badge--cond { position: absolute; left: var(--sp-2); top: var(--sp-2); background: var(--navy-950); color: #fff; }
.k-badge--verified { background: #e3f3ea; color: #145235; }
.k-badge--hot { background: #fde8dd; color: #8a2c0a; }
/* Price position (MI-13): green under the market, neutral around it, amber over it. Never red: a high price is a fact, not a fault. */
.k-badge--below { background: #e3f3ea; color: #145235; }
.k-badge--fair { background: var(--ink-100); color: var(--ink-800); }
.k-badge--above { background: #fff2d6; color: #6b4800; }
.k-card__count {
  position: absolute; left: var(--sp-2); bottom: var(--sp-2); display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(16, 18, 22, 0.78); color: #fff; font-size: 0.75rem; font-weight: 600;
}
.k-save {
  position: absolute; right: var(--sp-2); top: var(--sp-2); width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--navy-950); cursor: pointer; box-shadow: var(--shadow-sm);
}
.k-save[aria-pressed="true"] { color: #c81e1e; }
.k-save[aria-pressed="true"] svg { fill: currentColor; }
.no-js .k-save, html:not(.js) .k-save, html:not(.js) .k-compare { display: none; }
.k-card__main { grid-area: main; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.k-card__title {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: 0; color: var(--navy-950);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* padding grows the tap area to 24px without moving the line */
.k-card__title a { color: inherit; padding-block: 2px; }
.k-card__title a:hover { color: var(--gold-700); text-decoration: underline; text-underline-offset: 3px; }
.k-card__snippet {
  margin: 0; font-size: 0.82rem; color: var(--ink-500); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.k-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.35rem; }
.k-price__k { font-size: 0.78rem; color: var(--ink-600); }
.k-price__v { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--navy-950); font-variant-numeric: tabular-nums; }
.k-price__u { font-size: 0.85rem; color: var(--ink-700); font-weight: 600; }
.k-price__alt { flex-basis: 100%; font-size: 0.8rem; color: var(--ink-600); }
.k-display--monthly .k-price--full, .k-display--price .k-price--monthly { display: none; }
.k-tip { position: relative; display: inline-flex; align-self: center; }
.k-tip__btn { display: grid; place-items: center; width: 28px; height: 28px; border: 0; background: none; color: var(--ink-500); cursor: help; border-radius: 999px; }
.k-tip__btn:hover { color: var(--navy-950); background: var(--ink-050); }
.k-tip__bubble {
  position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); width: min(260px, 70vw);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); background: var(--navy-950); color: #fff; font-size: 0.78rem; line-height: 1.45;
  display: none;
}
/* display, not visibility: a hidden absolute bubble still widens the page */
.k-tip:hover .k-tip__bubble, .k-tip:focus-within .k-tip__bubble { display: block; }
.k-card__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.k-card__aside {
  grid-area: aside; display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0;
  margin: 0 var(--sp-4) var(--sp-4); padding: var(--sp-3) 0 0; border-top: 1px solid var(--ink-100);
}
.k-card__specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem var(--sp-3); font-size: 0.8rem; color: var(--ink-700); }
/* the make and model repeat the title, and the seller line needs the full width */
.k-card__specs li:first-child { display: none; }
.k-card__specs li:last-child { grid-column: 1 / -1; }
.k-card__specs li { display: flex; align-items: flex-start; gap: 0.5rem; min-width: 0; line-height: 1.35; }
.k-card__specs li > svg { flex: none; width: 15px; height: 15px; margin-top: 0.05rem; color: var(--ink-500); }
.k-member { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 0.3rem; border-radius: 999px; background: var(--gold-500); color: var(--navy-950); vertical-align: -3px; }
.k-card__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--sp-2); margin-top: auto; }
.k-card__actions .btn {
  min-height: 36px; padding: 0.4rem 0.6rem; justify-content: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 700; border-radius: var(--radius-sm); white-space: nowrap;
}
.k-card__actions .btn--ghost { background: var(--paper); border-color: var(--ink-200); }
.k-card__actions .btn--ghost:hover { border-color: var(--navy-950); }
.k-compare { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; align-self: flex-start; font-size: 0.8rem; font-weight: 600; color: var(--ink-600); cursor: pointer; min-height: 32px; }
.k-compare input { width: 16px; height: 16px; accent-color: var(--navy-950); }
@container (min-width: 560px) {
  .k-card { grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "band band" "media main" "media aside"; }
  .k-card__media { aspect-ratio: auto; min-height: 100%; }
  .k-card__media > a { position: absolute; inset: 0; }
  .k-card__aside { margin: 0 var(--sp-3) var(--sp-3) 0; padding: var(--sp-3); border-top: 0; background: var(--ink-050); border-radius: var(--radius-sm); }
  .k-card__specs { grid-template-columns: minmax(0, 1fr); }
  .k-card__specs li:first-child { display: flex; }
}
@container (min-width: 700px) {
  .k-card { grid-template-columns: minmax(240px, 36%) minmax(0, 1fr) 220px; grid-template-rows: auto 1fr; grid-template-areas: "media main band" "media main aside"; }
  .k-card__aside { margin: var(--sp-3) var(--sp-3) var(--sp-3) 0; }
  .k-card__band { margin: var(--sp-3) var(--sp-3) 0 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .k-card--featured .k-card__aside { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
  .k-card__main { padding: var(--sp-4); }
  .k-card__actions { grid-template-columns: minmax(0, 1fr); }
}

.k-empty { background: var(--paper); border: 1px dashed var(--ink-300); border-radius: var(--radius); padding: var(--sp-6); text-align: center; }
.k-empty__h { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; color: var(--navy-950); }

/* --- pager --------------------------------------------------------------- */
.k-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-6); }
.k-pager ol { display: flex; flex-wrap: wrap; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.k-pager a, .k-pager__step {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 0.7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--ink-200); background: var(--paper); color: var(--navy-950); font-weight: 600; font-variant-numeric: tabular-nums;
}
.k-pager a:hover { border-color: var(--navy-950); }
.k-pager a[aria-current="page"] { background: var(--navy-950); border-color: var(--navy-950); color: #fff; }
.k-pager__step[aria-disabled="true"] { color: var(--ink-400); background: transparent; }
.k-pager__gap { display: grid; place-items: center; min-width: 24px; color: var(--ink-500); }

/* --- rail ---------------------------------------------------------------- */
.k-rail { display: grid; gap: var(--sp-4); min-width: 0; }
.k-rail__box { background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius); padding: var(--sp-4); }
.k-rail__h { font-size: 0.95rem; margin: 0 0 var(--sp-3); }
.k-rail__empty { margin: 0; font-size: 0.86rem; color: var(--ink-600); }
.k-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.k-recent a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--sp-3); align-items: center; }
.k-recent img, .k-recent .k-recent__ph { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius-sm); background: var(--ink-100); }
.k-recent strong { display: block; font-size: 0.84rem; line-height: 1.3; color: var(--navy-950); }
.k-recent span { font-size: 0.8rem; color: var(--ink-600); }
.k-recent a:hover strong { text-decoration: underline; }
.k-years { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.k-years a { display: inline-block; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid var(--ink-200); font-size: 0.84rem; font-weight: 600; color: var(--ink-800); }
.k-years a:hover { border-color: var(--navy-950); }
.k-promos { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.k-promo { display: grid; gap: 0.2rem; padding: var(--sp-3); border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--gold-050), var(--gold-100)); border: 1px solid #f3d38c; }
.k-promo img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.k-promo strong { color: var(--navy-950); font-family: var(--font-display); font-size: 0.92rem; }
.k-promo span { font-size: 0.82rem; color: var(--ink-700); }
.k-promo:hover strong { text-decoration: underline; }

/* --- mobile bar, compare tray, corner dock ------------------------------- */
.k-mobilebar { display: none; }
@media (max-width: 759.98px) {
  .js .k-mobilebar {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); position: sticky; bottom: 0; z-index: 90;
    padding: var(--sp-2) 1.25rem calc(var(--sp-2) + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--ink-200); margin-top: var(--sp-5);
  }
  .k-page .corner-dock { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.k-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--navy-950); color: #fff; box-shadow: var(--shadow-lg); padding-block: var(--sp-3) calc(var(--sp-3) + env(safe-area-inset-bottom)); }
.k-tray__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.k-tray__h { font-family: var(--font-display); }
.k-tray__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.k-tray__list li { display: inline-flex; align-items: center; gap: 0.3rem; max-width: 220px; padding: 0.2rem 0.3rem 0.2rem 0.65rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 0.8rem; }
.k-tray__list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-tray__list button { border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; }
.k-tray__actions { display: flex; gap: var(--sp-2); }
.k-tray .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.k-page.has-tray main { padding-bottom: 7rem; }
.k-page.has-tray .corner-dock { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* --- dialogs ------------------------------------------------------------- */
.k-dialog { border: 0; padding: 0; border-radius: var(--radius); width: min(520px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); box-shadow: var(--shadow-lg); color: var(--ink-800); }
.k-dialog::backdrop { background: rgba(16, 18, 22, 0.6); }
.k-dialog__panel { display: grid; gap: var(--sp-3); padding: var(--sp-5); }
.k-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.k-dialog__head h2 { font-size: var(--step-1); margin: 0; }
.k-dialog__x { border: 0; background: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 999px; color: var(--navy-950); }
.k-dialog__x:hover { background: var(--ink-050); }
.k-dialog__sub { margin: 0; color: var(--ink-600); font-size: 0.9rem; }
.k-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-2); font-size: 0.82rem; color: var(--ink-700); line-height: 1.45; }
.k-consent input { width: 18px; height: 18px; margin-top: 0.1rem; accent-color: var(--navy-950); }
/* inline padding lifts the privacy link to a 24px tap target without moving the line */
.k-consent a { padding-block: 4px; }
.k-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.k-form-status { margin: 0; font-size: 0.88rem; min-height: 1.3em; }
.k-form-status[data-tone="error"] { color: #a61b1b; }
.k-form-status[data-tone="ok"] { color: #145235; }
.k-segment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--ink-100); border-radius: var(--radius-sm); background: var(--ink-050); }
.k-segment button { min-height: 44px; border: 0; border-radius: calc(var(--radius-sm) - 2px); background: none; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink-600); cursor: pointer; }
.k-segment button:hover { color: var(--navy-950); }
.k-segment button[aria-selected="true"] { background: #fff; color: var(--navy-950); box-shadow: 0 1px 2px rgba(16, 18, 22, 0.08); }
.k-account { display: grid; gap: var(--sp-3); }
.k-account[hidden] { display: none; }
.k-account__forgot { margin: 0; text-align: right; font-size: 0.88rem; }
.k-field__hint { margin: 0; font-size: 0.8rem; color: var(--ink-600); line-height: 1.4; }
.k-reasons { gap: var(--sp-2); }
.k-reasons label { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.92rem; }
.k-reasons input { width: 18px; height: 18px; accent-color: var(--navy-950); }
.k-toast { position: fixed; left: 50%; bottom: 6rem; transform: translateX(-50%); z-index: 200; background: var(--navy-950); color: #fff; padding: 0.6rem 1rem; border-radius: 999px; font-size: 0.88rem; box-shadow: var(--shadow-lg); }

.k-notfound { padding-block: var(--sp-6); }
body.is-locked { overflow: hidden; }
.lang-switch a[aria-current="true"] { background: var(--navy-950); color: #fff; cursor: default; }

/* --- advert page ---------------------------------------------------------- */
.k-crumbs { padding-top: var(--sp-4); }
.k-crumbs .breadcrumb { margin: 0; color: var(--ink-500); }
.k-crumbs .breadcrumb a { color: var(--ink-700); }
.k-crumbs .breadcrumb a:hover { color: var(--gold-700); }
.k-crumbs .breadcrumb li + li::before { color: var(--ink-300); }
.k-detail { display: grid; gap: var(--sp-5); padding-top: var(--sp-4); grid-template-columns: minmax(0, 1fr); align-items: start; }
.k-detail__main { display: grid; gap: var(--sp-4); min-width: 0; }
.k-detail__aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); min-width: 0; }
@media (min-width: 760px) {
  .k-detail { grid-template-columns: minmax(0, 1fr) 320px; }
  .k-detail__aside { position: sticky; top: calc(var(--header-h) + var(--sp-3)); }
}
@media (min-width: 1180px) { .k-detail { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 759.98px) {
  .k-detail__main { display: contents; }
  .k-gallery { order: 1; } .k-detail__aside { order: 3; } .k-detail__main > .k-box { order: 4; }
}
.k-box { background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); }
.k-box__h { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--step-1); margin: 0 0 var(--sp-3); }
.k-muted { color: var(--ink-600); }
.k-small { font-size: 0.82rem; margin: 0; }
.k-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--navy-950); text-decoration: underline; text-underline-offset: 3px; }
.k-note { background: var(--gold-050); border: 1px solid #f3d38c; border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4); margin: 0 0 var(--sp-4); }

/* the photo on its own rounded stage, its thumbnails as tiles underneath */
.k-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
.k-gallery__stage { position: relative; background: var(--navy-950); border-radius: var(--radius-lg); overflow: hidden; }
.k-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; list-style: none; margin: 0; padding: 0; scrollbar-width: none; }
.k-gallery__track::-webkit-scrollbar { display: none; }
.k-gallery__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; }
.k-gallery__slide a { display: block; height: 100%; cursor: zoom-in; }
.k-gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-gallery__none { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--ink-300); background: var(--navy-950); border-radius: var(--radius-lg); }
.k-gallery__count { position: absolute; left: var(--sp-3); top: var(--sp-3); display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(16, 18, 22, 0.78); color: #fff; font-size: 0.8rem; font-weight: 600; }
.k-gallery__nav { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; display: none; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--navy-950); cursor: pointer; box-shadow: var(--shadow-sm); }
.k-gallery__nav--prev { left: var(--sp-3); } .k-gallery__nav--next { right: var(--sp-3); }
.js .k-gallery__nav { display: grid; }
.k-gallery__open { position: absolute; right: var(--sp-3); top: var(--sp-3); background: rgba(255, 255, 255, 0.92); display: none; }
.js .k-gallery__open { display: inline-flex; }
.k-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.k-gallery__thumbs a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--ink-100); outline-offset: 2px; }
.k-gallery__thumbs a[aria-current="true"], .k-gallery__thumbs a:hover { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--gold-500); }
.k-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16, 18, 22, 0.62); color: #fff; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
@media (min-width: 760px) { .k-gallery__thumbs { gap: var(--sp-3); } }

.k-detail__head { display: grid; gap: var(--sp-2); }
.k-detail__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.k-badge--dark { background: var(--navy-950); color: #fff; }
.k-badge--gold { background: var(--gold-100); color: #6b4800; }
.k-detail__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.k-detail__h { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem); line-height: 1.2; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.k-iconbar { display: flex; gap: var(--sp-2); flex: none; }
.k-iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: var(--ink-050); color: var(--navy-950); cursor: pointer; }
.k-iconbtn:hover { background: var(--ink-100); }
.k-iconbtn[aria-pressed="true"] { color: #c81e1e; }
.k-iconbtn[aria-pressed="true"] svg { fill: currentColor; }
html:not(.js) .k-iconbar { display: none; }
.k-detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; color: var(--ink-600); font-size: 0.9rem; }
.k-detail__listed { flex-basis: 100%; font-size: 0.85rem; color: var(--ink-500); }

.k-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 var(--sp-5); margin: 0; }
.k-specs__row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 0.55rem 0; border-bottom: 1px solid var(--ink-100); font-size: 0.92rem; }
.k-specs__row dt { color: var(--ink-600); }
.k-specs__row dd { margin: 0; font-weight: 600; color: var(--navy-950); text-align: right; }
/* the car's features as the dealer typed them: a ticked list that wraps into columns */
.k-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.5rem var(--sp-5); margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.k-features li { display: flex; align-items: flex-start; gap: 0.5rem; min-width: 0; color: var(--navy-950); }
.k-features li span { min-width: 0; overflow-wrap: anywhere; }
.k-features svg { flex: none; margin-top: 0.25rem; color: #145235; }
.k-desc p { margin: 0 0 var(--sp-3); white-space: pre-line; line-height: 1.6; }
.k-desc p:last-child { margin-bottom: 0; }
.k-verify--yes { border-color: #9fd4b6; background: #f1faf5; }
.k-verify--yes .k-box__h { color: #145235; }
.k-verify p { margin: 0 0 var(--sp-2); }
/* the loan, road tax and insurance, one tab at a time: the tabs are radios beside
   the panels, so they work without the script; each panel is the answer, then
   one line per control */
.k-tabs__radio { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.k-tabs__list { display: flex; gap: var(--sp-1); margin-bottom: var(--sp-5); padding: var(--sp-1); border-radius: 999px; background: var(--ink-050); width: fit-content; max-width: 100%; }
.k-tabs__list[hidden] { display: none; }
.k-tabs__list label { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 var(--sp-4); border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--ink-600); cursor: pointer; white-space: nowrap; transition: background-color 0.15s var(--ease), color 0.15s var(--ease); }
.k-tabs__list label:hover { color: var(--navy-950); }
#k-tab-loan:checked ~ .k-tabs__list label[for="k-tab-loan"],
#k-tab-road-tax:checked ~ .k-tabs__list label[for="k-tab-road-tax"],
#k-tab-insurance:checked ~ .k-tabs__list label[for="k-tab-insurance"] { background: var(--paper); color: var(--navy-950); box-shadow: var(--shadow-sm); }
#k-tab-loan:focus-visible ~ .k-tabs__list label[for="k-tab-loan"],
#k-tab-road-tax:focus-visible ~ .k-tabs__list label[for="k-tab-road-tax"],
#k-tab-insurance:focus-visible ~ .k-tabs__list label[for="k-tab-insurance"] { box-shadow: 0 0 0 2px var(--gold-600); }
.k-cost { display: none; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
#k-tab-loan:checked ~ [data-tab="loan"], #k-tab-road-tax:checked ~ [data-tab="road-tax"], #k-tab-insurance:checked ~ [data-tab="insurance"] { display: grid; }
.k-cost__hero { display: grid; gap: 0.2rem; margin: 0; }
.k-cost__hero span { font-size: 0.85rem; color: var(--ink-600); }
.k-cost__hero strong { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; line-height: 1.05; color: var(--navy-950); font-variant-numeric: tabular-nums; }
.k-cost__fields { display: grid; grid-template-columns: minmax(0, 1fr); }
.k-cost__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); align-items: center; gap: var(--sp-3); min-height: 56px; border-top: 1px solid var(--ink-100); }
.k-cost__row > label { font-size: 0.92rem; color: var(--ink-800); }
.k-cost__row select, .k-unit { width: 100%; min-height: 40px; border: 1px solid var(--ink-200); border-radius: var(--radius-sm); background-color: var(--paper); color: var(--navy-950); font-size: 0.92rem; font-weight: 500; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.k-cost__row select {
  -webkit-appearance: none; appearance: none; padding: 0 2rem 0 0.75rem; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233d3f45' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 12px 12px;
}
.k-unit { display: flex; align-items: center; }
.k-unit > span { flex: none; padding: 0 0.75rem; font-size: 0.85rem; color: var(--ink-500); }
.k-unit input { flex: 1; min-width: 0; width: 100%; min-height: 38px; padding: 0 0.75rem; border: 0; background: none; color: inherit; font-weight: 500; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.k-unit > span + input { padding-left: 0; }
.k-unit > input:not(:last-child) { padding-right: 0; }
.k-unit input::-webkit-outer-spin-button, .k-unit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.k-unit input:focus, .k-cost__row select:focus { outline: none; }
.k-unit:focus-within, .k-cost__row select:focus { border-color: var(--gold-600); box-shadow: 0 0 0 3px var(--gold-100); }
.k-cost__check { display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; border-top: 1px solid var(--ink-100); font-size: 0.92rem; color: var(--ink-800); cursor: pointer; }
.k-cost__check input { flex: none; width: 18px; height: 18px; accent-color: var(--navy-950); }
.k-cost__out { display: grid; gap: 0.4rem; margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: var(--ink-050); }
.k-cost__out div { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: 0.88rem; }
.k-cost__out dt { color: var(--ink-600); }
.k-cost__out dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-cost__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); margin: 0; }
.k-cost__foot .k-link { min-height: 24px; font-size: 0.88rem; white-space: nowrap; }
@media (max-width: 479.98px) {
  .k-tabs__list { width: 100%; }
  .k-tabs__list label { flex: 1; padding: 0 var(--sp-2); font-size: 0.85rem; }
  .k-cost__row { grid-template-columns: minmax(0, 1fr) minmax(0, 9.5rem); }
}
.k-costs > .k-costlinks { margin-top: var(--sp-4); }
.k-costlinks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.k-costlinks a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 var(--sp-3); border: 1px solid var(--ink-200); border-radius: var(--radius-sm); font-weight: 600; color: var(--navy-950); }
.k-costlinks a:hover { border-color: var(--navy-950); }
.k-enquiry { display: grid; gap: var(--sp-3); }
.k-enquiry .btn { justify-self: start; }

.k-pricebox { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
.k-pricebox p { margin: 0; }
.k-pricebox__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.k-pricebox__v { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--navy-950); line-height: 1.1; font-variant-numeric: tabular-nums; }
/* the instalment line is a tinted pill that leads to the loan box under it */
.k-pricebox__m { position: relative; display: flex; align-items: center; gap: 0.3rem; min-height: 48px; padding: 0 var(--sp-2) 0 var(--sp-4); border-radius: var(--radius); background: var(--gold-100); color: #6b4800; }
.k-pricebox__m a { flex: 1; min-width: 0; padding: 0.6rem 0; color: inherit; font-weight: 500; }
.k-pricebox__m a:hover { text-decoration: underline; }
.k-pricebox__m strong { color: var(--navy-950); font-size: 1.1rem; }
.k-pricebox__m .k-tip { position: static; }
.k-pricebox__m .k-tip__btn { color: #6b4800; }
.k-pricebox__m .k-tip__bubble { left: 0; transform: none; width: min(260px, 100%); }
.k-pricebox__drop { display: inline-flex; align-items: center; gap: 0.35rem; color: #8a2c0a; font-weight: 600; font-size: 0.88rem; }
.k-pricebox__pos { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); color: var(--ink-700); font-size: 0.88rem; }
.k-pricebox__pos small { font-size: 0.75rem; color: var(--ink-500); }
/* where the price sits against the median: the fair band shaded, the car as the dot */
.k-meter { display: grid; gap: 0.35rem; padding-top: var(--sp-2); }
.k-meter__bar { position: relative; height: 8px; border-radius: 999px; background: var(--ink-100); }
.k-meter__fair { position: absolute; top: 0; bottom: 0; background: var(--ink-200); }
.k-meter__mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink-500); }
.k-meter__dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 999px; background: var(--navy-950); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--navy-950); }
[data-price-position="BELOW"] .k-meter__dot { background: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
[data-price-position="ABOVE"] .k-meter__dot { background: var(--gold-600); box-shadow: 0 0 0 1px var(--gold-700); }
.k-meter__legend { display: flex; justify-content: space-between; gap: var(--sp-2); font-size: 0.75rem; color: var(--ink-500); }
.k-meter__legend span:nth-child(2) { color: var(--ink-800); font-weight: 600; text-align: center; }
.k-meter__legend span:last-child { text-align: right; }
.k-checks { display: grid; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--ink-100); }
.k-checks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: var(--sp-2) var(--sp-4); }
.k-checks li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: 0.88rem; line-height: 1.35; color: var(--ink-700); }
.k-checks li svg { flex: none; color: var(--ink-400); }
.k-checks li.is-yes svg { color: var(--ok); }
.k-checks li { min-height: 24px; }
.k-checks li svg { margin-top: 2px; }
.k-checks li a { display: block; min-height: 24px; padding: 2px 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.k-checks li span { padding: 2px 0; }
.k-pricebox__cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.k-pricebox__cta .btn { justify-content: center; }
.k-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px dashed var(--ink-200); }
.k-action { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 var(--sp-2); border: 0; background: none; color: var(--ink-800); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; border-radius: var(--radius-sm); }
.k-action:hover { background: var(--ink-050); }
.k-action input { width: 18px; height: 18px; accent-color: var(--navy-950); }
.k-action[aria-pressed="true"] { color: #c81e1e; }
.k-action[aria-pressed="true"] svg { fill: currentColor; }
html:not(.js) .k-action { display: none; }

.k-seller { display: grid; gap: var(--sp-2); }
.k-seller .k-box__h { margin: 0; }
.k-seller__name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--navy-950); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.k-seller__member { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-body, inherit); font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--gold-100); color: #6b4800; }
.k-seller__rows { display: grid; gap: 0.3rem; margin: 0; font-size: 0.9rem; }
.k-seller__rows div { display: flex; justify-content: space-between; gap: var(--sp-3); }
.k-seller__rows dt { color: var(--ink-600); }
.k-seller__rows dd { margin: 0; font-weight: 600; text-align: right; display: inline-flex; align-items: center; gap: 0.3rem; }

.k-similar { padding-top: var(--sp-6); container-type: inline-size; }
.k-similar__h { font-size: var(--step-2); margin: 0 0 var(--sp-4); }
.k-cards--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.k-similar .k-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "band" "media" "main" "aside"; }
.k-similar .k-card__aside, .k-similar .k-card--featured .k-card__aside { margin: 0 var(--sp-3) var(--sp-3); border-radius: var(--radius-sm); }
.k-similar .k-card__band { margin: 0; border-radius: 0; }
.k-similar .k-card__main { padding: var(--sp-3) var(--sp-4); }
.k-similar .k-card__media { aspect-ratio: 4 / 3; min-height: 0; }
.k-similar .k-card__media > a { position: static; }
.k-similar__more { margin: var(--sp-4) 0 0; }

.k-stickybar { display: none; }
@media (max-width: 759.98px) {
  .k-stickybar {
    display: flex; align-items: center; gap: var(--sp-2); position: sticky; bottom: 0; z-index: 90; margin-top: var(--sp-5);
    padding: var(--sp-2) 1.25rem calc(var(--sp-2) + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--ink-200);
  }
  .k-stickybar__price { flex: 1; display: grid; min-width: 0; line-height: 1.2; }
  .k-stickybar__price strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-950); }
  .k-stickybar__price span { font-size: 0.76rem; color: var(--ink-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .k-stickybar .btn { min-height: 44px; }
  .k-page--detail .corner-dock { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

.k-lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(10, 11, 13, 0.96); color: #fff; }
.k-lightbox::backdrop { background: rgba(10, 11, 13, 0.96); }
.k-lightbox[open] { display: grid; place-items: center; }
.k-lightbox__fig { margin: 0; display: grid; gap: var(--sp-2); justify-items: center; max-width: 100vw; }
.k-lightbox__fig img { width: auto; height: auto; max-width: 100vw; max-height: calc(100vh - 5rem); object-fit: contain; }
.k-lightbox__cap { font-size: 0.88rem; color: var(--ink-200); }
.k-lightbox__x, .k-lightbox__nav { position: fixed; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; }
.k-lightbox__x { right: var(--sp-3); top: var(--sp-3); }
.k-lightbox__nav { top: calc(50% - 24px); }
.k-lightbox__nav--prev { left: var(--sp-3); } .k-lightbox__nav--next { right: var(--sp-3); }

/* --- compare page --------------------------------------------------------- */
.k-comparepage { padding-top: var(--sp-5); }
/* relative: the table's visually hidden labels are absolute and must scroll inside the wrap, not widen the page */
.k-comparetable-wrap { position: relative; overflow-x: auto; background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius); }
.k-comparetable { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.9rem; }
.k-comparetable th, .k-comparetable td { padding: 0.6rem var(--sp-3); border-bottom: 1px solid var(--ink-100); text-align: left; vertical-align: top; }
.k-comparetable tbody th { color: var(--ink-600); font-weight: 600; white-space: nowrap; position: sticky; left: 0; background: var(--paper); }
.k-comparetable thead th { width: 22%; }
.k-comparetable__corner { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); vertical-align: bottom !important; }
.k-comparetable__car { display: grid; gap: var(--sp-2); color: var(--navy-950); font-weight: 700; line-height: 1.3; }
.k-comparetable__car img, .k-comparetable__car .k-card__nophoto { width: 100%; max-width: 240px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--radius-sm); background: var(--ink-100); }
.k-comparetable__car:hover span { text-decoration: underline; }
.k-comparetable__remove { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: var(--sp-2); min-height: 32px; font-size: 0.8rem; font-weight: 600; color: var(--ink-600); }
.k-comparetable__actions td { display: table-cell; }
.k-comparetable__actions .btn { margin: 0 var(--sp-2) var(--sp-2) 0; }
.k-yes { display: inline-flex; align-items: center; gap: 0.3rem; color: #145235; font-weight: 600; }
.k-comparepage__more { margin: var(--sp-4) 0 0; }
.k-toast[hidden] { display: none; }

/* Contrast on the car pages (WCAG AA, Lighthouse): the site's WhatsApp green keeps
   its fill with ink text (9.6:1 against 1.98:1 for white), and the corner language
   switch's idle links move from ink-400 to ink-500 (6.6:1); the current one stays white on ink. */
.k-page .btn--wa { color: var(--navy-950); }
.k-page .lang-switch a { color: var(--ink-500); }
.k-page .lang-switch a:hover { color: var(--navy-950); }
.k-page .lang-switch a[aria-current="true"] { color: #fff; }

/* P1 suggestions (Track SG): the strip kereta.js fills. It wears the similar-cars
   card; the reason sits above each card, and only the promoted card shows a band. */
.k-suggest[hidden] { display: none; }
.k-suggest { padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
.k-suggest > .k-cards > li { display: flex; flex-direction: column; min-width: 0; }
.k-suggest > .k-cards > li > .k-card { flex: 1; }
.k-suggest__why { margin: 0 0 var(--sp-2); font-size: 0.8125rem; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-suggest [data-promoted] .k-suggest__why { color: var(--navy-950); font-weight: 600; }
.k-suggest .k-tip { display: none; }
.k-empty .k-suggest { text-align: left; margin-top: var(--sp-5); }
/* Above the search results the strip is one row that scrolls sideways, so the results stay in reach. */
.k-suggest--row > .k-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(260px, 80%); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: var(--sp-2); }
.k-suggest--row > .k-cards > li { scroll-snap-align: start; }

/* P7 */
.k-ask { margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--line, #dedede); border-radius: .5rem; }
.k-ask label { display: block; font-weight: 600; margin-bottom: .5rem; }
.k-ask__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.k-ask__row input { width: 100%; min-width: 0; font: inherit; padding: .75rem; border: 1px solid var(--line, #dedede); border-radius: .25rem; }
.k-ask p { margin: .5rem 0 0; font-size: .875rem; }
.k-ask__notice { font-weight: 600; }
@media (max-width: 480px) { .k-ask__row { grid-template-columns: minmax(0, 1fr); } }

/* P5 preferences (Track MI-A): the skippable step after sign-up. */
.k-prefs__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.k-prefs__opts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.k-prefs__opt { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0 var(--sp-3); border: 1px solid var(--ink-300); border-radius: 999px; font-size: 0.875rem; cursor: pointer; }
.k-prefs__opt:has(input:checked) { border-color: var(--navy-950); background: var(--ink-050); font-weight: 600; }
.k-prefs__actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-3); }
.k-prefs__more { margin: 0; text-align: right; font-size: 0.875rem; }
@media (max-width: 479.98px) { .k-prefs__pair { grid-template-columns: minmax(0, 1fr); } }

/* P6 saved searches */
.k-savesearch { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; margin: 0 0 0.75rem; padding: 0.4rem 0.9rem; border: 1px solid var(--line, #d9dde3); border-radius: 999px; background: #fff; color: inherit; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.k-savesearch:hover, .k-savesearch:focus-visible { border-color: currentColor; }
.k-savesearch[aria-pressed="true"] { background: var(--gold-100, #fff2d6); border-color: var(--gold-500, #e09900); }
.k-savesearch[disabled] { opacity: 0.6; cursor: default; }
.k-savesearch[hidden] { display: none; }

/* --- report check (Track RS) ---------------------------------------------- */
.k-rcheck { margin-top: var(--sp-5); max-width: 42rem; }
.k-rcheck__label { display: block; margin-bottom: 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
.k-rcheck__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2);
  padding: 0.4rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow-lg);
}
.k-rcheck__row:focus-within { box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255, 180, 0, 0.45); }
.k-rcheck input {
  width: 100%; min-height: 48px; padding: 0.6rem 1.1rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--navy-950); font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.k-rcheck input::placeholder { text-transform: none; letter-spacing: 0; color: var(--ink-500); opacity: 1; }
.k-rcheck input:focus { outline: none; }
.k-rcheck .btn { min-height: 48px; padding-inline: 1.6rem; }
.k-rcheck .btn:hover { transform: none; }
.pagehero .k-rcheck__hint, .pagehero .k-rcheck__busy { margin-top: var(--sp-2); font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.pagehero .k-rcheck__busy { color: var(--gold-400); font-weight: 600; }
.k-rcheck__busy[hidden], .k-rform__busy[hidden] { display: none; }
@media (max-width: 479.98px) { .k-rcheck__row { grid-template-columns: minmax(0, 1fr); border-radius: var(--radius-lg); } }

/* the landing's hero wears the homepage photo under the navy wash, and leaves
   room at the bottom for the white sheet that rises over it */
.k-rhero--photo::before { background-image: url("/assets/img/hero-home.webp"); background-position: center 62%; opacity: 0.4; }
.k-rhero--photo .pagehero__inner { padding-bottom: calc(var(--radius-sheet) + clamp(2rem, 5vw, 3.5rem)); }
.k-rtrust { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: var(--sp-4) 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: rgba(255, 255, 255, 0.88); }
.k-rtrust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.k-rtrust svg { flex: none; color: var(--gold-400); }

.k-page--laporan { background: var(--paper); }
.k-page--laporan main { padding-bottom: 0; }
.k-rsheet {
  position: relative; z-index: 1; margin-top: calc(-1 * var(--radius-sheet));
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: var(--paper); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
}
.k-rpage { display: grid; gap: clamp(3rem, 6vw, 4.5rem); padding-top: var(--sp-5); }
.k-rsheet .k-rpage { padding-top: 0; }
.k-rresult { border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.k-rresult__eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0.3rem 0.75rem; border-radius: 999px;
  background: #e3f3ea; font-size: 0.85rem; font-weight: 700; color: #145235;
}
.k-rresult__title { font-size: var(--step-2); margin: var(--sp-1) 0 var(--sp-3); overflow-wrap: anywhere; }
.k-rresult--error p[role="alert"] { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0; }
.k-rresult--error svg { flex: none; color: #a61b1b; margin-top: 0.15rem; }
.k-rresult__back { margin: var(--sp-3) 0 0; }
.k-rfacts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: var(--sp-3);
  margin: 0 0 var(--sp-4); padding: var(--sp-3) 0; border-block: 1px solid var(--ink-100);
}
.k-rfacts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-600); }
.k-rfacts dd { margin: 0.15rem 0 0; font-size: 1rem; font-weight: 600; color: var(--navy-950); overflow-wrap: anywhere; }
.k-rbuy { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 760px) { .k-rbuy { grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); } }
.k-rbuy__h { font-size: var(--step-0); margin: 0 0 var(--sp-2); }
.k-rbuy__pay { background: var(--navy-050); border-radius: var(--radius); padding: var(--sp-5); min-width: 0; }
.k-rlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.k-rlist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem; font-size: 0.92rem; color: var(--ink-700); }
.k-rlist svg { color: #145235; margin-top: 0.2rem; }
.k-rprice { margin: 0; font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; color: var(--navy-950); }
.k-rprice__was { font-size: 1rem; font-weight: 600; color: var(--ink-500); }
.k-rtier { margin: var(--sp-1) 0 var(--sp-2); }
.k-rmember { display: grid; gap: var(--sp-2); justify-items: start; margin: var(--sp-3) 0 0; }
.k-rmember p { margin: 0; }
.k-rmember__h { font-weight: 700; color: var(--navy-950); }
.k-rtile__price { font-size: 0.92rem; font-weight: 600; color: var(--navy-950); }
.k-rform { display: grid; gap: var(--sp-3); margin-top: var(--sp-3); }
.k-rform__submit { width: 100%; }
.k-rform__busy { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--ink-700); }
.k-rsoon { margin: var(--sp-3) 0 0; }
.k-consent__row { margin: 0; }
.k-field__error { margin: 0; font-size: 0.8rem; color: #a61b1b; }
.k-field input[aria-invalid="true"], .k-consent input[aria-invalid="true"] { border-color: #a61b1b; outline: 2px solid #f4c7c7; }
.k-rlinks { max-width: 32rem; }

.k-rsection__h { font-size: var(--step-2); margin: 0 0 var(--sp-5); }

/* what the report holds: photo left, the list on a soft navy panel */
.k-rinside { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-050); }
.k-rinside__media { position: relative; min-height: 240px; background: var(--navy-950); }
.k-rinside__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-rinside__body { display: grid; gap: var(--sp-4); justify-items: start; padding: clamp(1.75rem, 4vw, 3.5rem); }
.k-rinside__body .k-rsection__h { margin: 0; }
.k-rinside .k-rlist li { font-size: 0.95rem; color: var(--navy-950); }
.k-rinside__price { margin: 0; font-weight: 600; color: var(--navy-950); }
@media (min-width: 900px) { .k-rinside { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } .k-rinside__media { min-height: 100%; } }

.k-rtiles, .k-rsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.k-rtile {
  display: grid; gap: var(--sp-2); align-content: start; background: var(--paper); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: var(--sp-5); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.k-rtile p { margin: 0; }
.k-rtile--live { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500); }
.k-rtile--live:hover { box-shadow: 0 0 0 1px var(--gold-500), var(--shadow-lg); transform: translateY(-2px); }
.k-rtile__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.k-rtile__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--ink-050); color: var(--ink-500); }
.k-rtile--live .k-rtile__icon { background: var(--gold-100); color: var(--gold-700); }
.k-rtile__h { font-size: 1.1rem; margin: 0; }
.k-rtile__price { margin-top: var(--sp-2) !important; padding-top: var(--sp-3); border-top: 1px solid var(--ink-100); }
@media (prefers-reduced-motion: reduce) { .k-rtile { transition: none; } .k-rtile--live:hover { transform: none; } }

/* how it works: gold numbers joined by a line, the text under each */
.k-rsteps li { position: relative; display: grid; gap: var(--sp-3); align-content: start; }
.k-rsteps li p { margin: 0.35rem 0 0; }
.k-rsteps__n {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 999px;
  background: var(--gold-500); color: var(--navy-950); display: grid; place-items: center; font-size: 1.1rem; font-weight: 700;
  box-shadow: 0 0 0 6px var(--paper);
}
/* only when the three steps share one row: a wrapped row would run the line off the edge */
@media (min-width: 1000px) {
  .k-rsteps li:not(:last-child)::after {
    content: ""; position: absolute; top: 23px; left: 48px; right: calc(-1 * var(--sp-5)); height: 2px; background: var(--gold-100);
  }
}

/* questions: ruled rows with a plus that turns into a minus */
.k-rfaq { display: grid; border-top: 1px solid var(--ink-100); }
.k-rfaq details { border-bottom: 1px solid var(--ink-100); }
.k-rfaq summary {
  min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  cursor: pointer; list-style: none; font-size: 1.02rem; font-weight: 600; color: var(--navy-950);
}
.k-rfaq summary::-webkit-details-marker { display: none; }
.k-rfaq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--ink-050) center / 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050b20' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.k-rfaq details[open] summary::after {
  background-color: var(--gold-100); transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050b20' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}
.k-rfaq summary:hover { color: var(--gold-700); }
.k-rfaq details p { margin: 0 0 var(--sp-4); max-width: 70ch; color: var(--ink-600); }
@media (prefers-reduced-motion: reduce) { .k-rfaq summary::after { transition: none; } }

/* the mock payment gateway (RS-3) */
.k-pay { display: grid; gap: var(--sp-5); padding-top: var(--sp-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .k-pay { grid-template-columns: minmax(0, 1fr) 340px; }
  .k-pay__aside { position: sticky; top: calc(var(--header-h) + var(--sp-3)); }
}
.k-pay__main, .k-pay__aside { display: grid; gap: var(--sp-4); min-width: 0; }
.k-pay__h { font-size: var(--step-2); margin: 0; }
.k-pay .k-note { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0; }
.k-pay .k-note svg { flex: none; margin-top: 0.15rem; }
.k-pay fieldset { margin: 0; min-width: 0; }
.k-pay fieldset > legend { float: left; width: 100%; padding: 0; }
.k-pay fieldset > legend + * { clear: both; }
.k-pay__method { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: center; padding: var(--sp-3); margin-top: var(--sp-2); border: 1px solid var(--ink-100); border-radius: var(--radius-sm); cursor: pointer; }
.k-pay__method input { width: 18px; height: 18px; accent-color: var(--navy-950); }
.k-pay__method strong { display: block; color: var(--navy-950); }
.k-pay__method small { font-size: 0.82rem; color: var(--ink-600); }
.k-pay__method:has(input:checked) { border-color: var(--gold-500); background: var(--gold-050); }
.k-pay__tiles { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); margin-bottom: var(--sp-3); }
.k-pay__tile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem; align-items: center; min-height: 48px; padding: 0.5rem; border: 1px solid var(--ink-100); border-radius: var(--radius-sm); cursor: pointer; }
.k-pay__tile input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.k-pay__tile:has(input:checked) { border-color: var(--gold-500); background: var(--gold-050); box-shadow: 0 0 0 2px var(--gold-100); }
.k-pay__tile:has(input:focus-visible) { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.k-pay__logo { width: 2.25rem; height: 2.25rem; border-radius: 6px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; }
.k-pay__tile-name { font-size: 0.85rem; color: var(--ink-800); overflow-wrap: anywhere; }
.k-pay:has(input[name="method"][value="fpx"]:checked) .k-pay__detail:not([data-method="fpx"]),
.k-pay:has(input[name="method"][value="card"]:checked) .k-pay__detail:not([data-method="card"]),
.k-pay:has(input[name="method"][value="ewallet"]:checked) .k-pay__detail:not([data-method="ewallet"]) { display: none; }
.k-pay__rows { display: grid; gap: 0.5rem; margin: 0 0 var(--sp-4); }
.k-pay__rows div { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: 0.9rem; }
.k-pay__rows dt { color: var(--ink-600); }
.k-pay__rows dd { margin: 0; min-width: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; color: var(--navy-950); }
.k-pay__total { border-top: 1px solid var(--ink-100); padding-top: 0.6rem; }
.k-pay__rows .k-pay__total { font-size: 1rem; }
.k-pay__summary .btn + .btn { margin-top: var(--sp-2); }
.k-pay__secure { margin-top: var(--sp-3); text-align: center; }
.k-pay__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin: var(--sp-2) 0 0; }
.k-pay__badges span { font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.45rem; border: 1px solid var(--ink-200); border-radius: 4px; color: var(--ink-600); }
.k-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.k-rcheckbox p { margin: 0 0 var(--sp-3); }
