/* kiemxe.com — design tokens and the one sheet of CSS the site needs.
   Tokens are custom properties so a change here moves the whole site.
   Three faces, self-hosted (public/font.css); no third-party request at runtime. */

/* kiemxe.com — design tokens and the one sheet of CSS the site needs (direction A "Thước", KXE-76g).
   Tokens are custom properties so a change here moves the whole site.
   Three faces, self-hosted (public/font.css); no third-party request at runtime. */

:root {
  /* Asphalt-light ground, white cards, ink, road-sign blue for links. The lane yellow (--mark) is only the reader's
     own vehicle on a ruler and the logo: a fill with an ink outline, never a text colour (1.63:1 on the ground). */
  --ground: #f1f3f4;
  --raised: #ffffff;
  --ink: #15191d;
  --ink-quiet: #59636b;
  --mark: #f2b705;
  --link: #1b5fab;
  --line: #b9c1c7;
  --line-soft: #dde2e5;

  --ink-2: #3b454c; /* body text one step softer than ink */
  --link-deep: #144a87;
  --tint: #e4e9ec; /* a chip or a chosen row: ink on a cool grey */

  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --step-hero: clamp(2.65rem, 1.55rem + 4.6vw, 4.85rem);
  --step-title: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem);
  --step-sub: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  --step-body: 1rem;
  --step-small: 0.875rem;

  --radius: 3px;
  --shadow-sheet: 0 1px 0 rgb(21 25 29 / 0.05), 0 18px 40px -28px rgb(21 25 29 / 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--link-deep);
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--tint);
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--step-hero);
}

h2 {
  font-size: var(--step-title);
}

h3 {
  font-size: var(--step-sub);
}

p {
  margin: 0;
}

img,
svg {
  max-width: 100%;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--ink-quiet);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 20;
  background: var(--link);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}

.skip:focus {
  left: 0.75rem;
  color: #fff;
}

.wrap {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

/* ── Masthead ─────────────────────────────────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--raised);
}

.masthead__row {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  min-height: 4.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
}

.wordmark:hover {
  color: var(--ink);
}

/* The logo tile (logo-64.png at 32 css px), cut by scripts/brand/logo-apply.ts. */
.wordmark__mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.nav {
  display: flex;
  gap: clamp(0.85rem, 2.4vw, 1.9rem);
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.is-current {
  color: var(--ink);
  border-bottom-color: var(--link);
}

/* ── Sheet + sections ─────────────────────────────────────────────────── */

main {
  padding-block: clamp(1rem, 2.5vw, 2rem) 3rem;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--ink-2);
  max-width: 34ch;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--raised);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover {
  background: var(--link-deep);
  border-color: var(--link-deep);
  color: #fff;
}

/* The card that holds one real model, with its hang-tag. */

/* ── The hang-tag: the signature element ─────────────────────────────── */

/* The string the tag hangs by, with a knot at its far end. */

/* ── Counts band ─────────────────────────────────────────────────────── */

/* ── Section head ────────────────────────────────────────────────────── */

/* ── Price cards (featured models) ───────────────────────────────────── */

/* ── Tables (model prices, specs, sources) ───────────────────────────── */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  font-weight: 500;
  padding: 0 0.9rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
}

.table td {
  padding: 0.72rem 0.9rem 0.72rem 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-right: 0;
}

/* A price column's head is a head first: the same size as its neighbours, not the figures' size. */
.table th.num {
  font-size: 0.68rem;
}

/* A maker page stacks one table per category: fixed columns line them up from section to section. */
.table--models {
  table-layout: fixed;
}

.table--models th:first-child {
  width: 40%;
}

.table .rowhead {
  font-weight: 600;
}

.table .rowhead a {
  color: var(--ink);
  text-decoration: none;
}

.table .rowhead a:hover {
  color: var(--link);
  text-decoration: underline;
}

.table .dim {
  color: var(--ink-quiet);
  font-size: 0.84rem;
}

/* The source's word for a price, under the figure. */
.num__word {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--ink-quiet);
}

/* The head carries a word the whole section shares (KXE-37). The phone layout hides the head,
   so there the row word must stay. */
@media (min-width: 721px) {
  .num__word--same {
    display: none;
  }
}

/* ── Finder: the price rack and the plain choices ────────────────────── */

.rack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.5rem;
}

/* one band: a ruled cell of two words, the name and how many models it holds */
.rack__tag {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.1rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

a.rack__tag:hover .rack__name {
  color: var(--link);
}

.rack__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.rack__n {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-quiet);
  white-space: nowrap;
}

.rack__tag--on {
  border-top: 3px solid var(--ink);
  padding-top: calc(0.7rem - 2px);
  background: var(--raised);
}

.rack__tag--none {
  opacity: 0.45;
}

.finder {
  display: grid;
  gap: 1.25rem;
}

.facet {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.9rem;
}

.facet__label {
  font-size: var(--step-small);
  color: var(--ink-quiet);
}

.facet ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

.facet a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.facet a:hover {
  color: var(--link);
}

.facet a[aria-current] {
  font-weight: 600;
  border-bottom-color: var(--link);
}

.facet span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-quiet);
}

.facet__none {
  padding: 0.25rem 0;
  color: var(--ink-quiet);
}

/* ── Model page ──────────────────────────────────────────────────────── */

.model-hero__cc {
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

/* Licensed photo and its credit (KXE-64). The credit stays in the DOM (never display:none), so a screen reader
   and keyboard focus always reach it; hover and focus only change how it looks. */

.photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 32rem;
  object-fit: cover;
}

/* A generated picture of the vehicle TYPE (KXE-74d), shown only where a model has no photo. Not a photo frame: a tinted
   teal panel with a dashed edge and the picture inset, so it never reads as the model's own photo. */

.illustration img {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  max-height: 22rem;
  margin: 0 auto;
  object-fit: contain;
}

.illustration__caption {
  margin: 0.75rem 0 0;
  font-size: var(--step-small);
  color: var(--ink-2);
  text-align: center;
}

/* The photo credit (KXE-72), shared by the model hero (.photo) and a museum frame (.frame): one ink "©" tab, and on a
   pointer a label that rises over the photo's foot. On touch the label is a strip under the photo. It is never
   display:none, so a screen reader and the keyboard reach every link. */
.credited {
  position: relative;
  --mat: 0px; /* the paper mat around the photo; .frame sets it */
}

.credit {
  display: block;
  padding: 0.45rem 0.7rem 0.55rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.credit > span {
  display: inline;
}

.credit > span:not(:first-child)::before {
  content: ' · ';
}

.credit a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.credit__chip {
  display: none;
}

.credit__author {
  font-weight: 700;
  color: var(--ink);
}

.credit__year {
  font-weight: 600;
}

.credit__pill {
  display: inline-block;
  padding: 0 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink);
  font-size: 0.7rem;
  line-height: 1.5;
  white-space: nowrap;
}

.credit__pill a {
  color: inherit;
}

.credit__acts a {
  white-space: nowrap;
}

.credit a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (hover: hover) {
  .credit__chip {
    display: block;
    position: absolute;
    right: calc(var(--mat) + 0.5rem);
    bottom: calc(var(--mat) + 0.5rem);
    min-width: 1.5rem;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--raised);
    font: 0.75rem/1.4 var(--font-mono);
    text-align: center;
    transition: opacity 0.18s var(--ease);
  }

  .credit {
    position: absolute;
    inset: auto var(--mat) var(--mat) var(--mat);
    display: grid;
    gap: 0.2rem;
    padding: 2.4rem 0.9rem 0.7rem;
    /* A scrim that fades into the photo, not a slab across it. */
    background: linear-gradient(to top, rgb(21 25 29 / 0.94) 0, rgb(21 25 29 / 0.9) 62%, rgb(21 25 29 / 0));
    color: var(--raised);
    font-size: var(--step-small);
    opacity: 0;
    transform: translateY(0.5rem);
    pointer-events: none;
    transition:
      opacity 0.18s var(--ease),
      transform 0.18s var(--ease);
  }

  .credit > span:not(:first-child)::before {
    content: none;
  }

  .credit > span {
    display: block;
  }

  .credit a,
  .credit__author {
    color: var(--raised);
  }

  .credit__pill {
    background: color-mix(in srgb, var(--raised) 16%, transparent);
    border-color: color-mix(in srgb, var(--raised) 45%, transparent);
    color: var(--raised);
  }

  .credit__acts {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.1rem 1rem;
  }

  .credited:hover .credit,
  .credited:focus-within .credit {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .credited:hover .credit__chip,
  .credited:focus-within .credit__chip {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .credit,
  .credit__chip {
    transition: none;
    transform: none;
  }
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-quiet);
  padding-top: 1.1rem;
}

.breadcrumb a {
  color: var(--ink-quiet);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb span {
  margin-inline: 0.45rem;
  opacity: 0.6;
}

.specs {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line-soft);
}

/* The section head already draws a rule; a list that opens its column needs no second one. */
.specs:first-child {
  border-top: 0;
}

.specs > div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.75rem 1.25rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.specs dt {
  color: var(--ink-quiet);
  font-size: 0.85rem;
}

.specs dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.specs dd span {
  display: block;
}

.note {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-2);
  background: #fff;
}

.note-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  align-items: start;
}

.note strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.sourcebox {
  margin-top: 1.25rem;
  font-size: 0.84rem;
  color: var(--ink-quiet);
}

.sourcebox a {
  overflow-wrap: anywhere;
}

.sourcebox p + p {
  margin-top: 0.4rem;
}

/* ── Parts ───────────────────────────────────────────────────────────── */

/* A part's facts, label beside value. No prose from the maker: facts only. */
.factlist {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.55rem 1.5rem;
  margin-block: 0.4rem 0.9rem;
  font-size: 0.95rem;
}

.factlist dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  padding-top: 0.28rem;
}

.factlist dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.table--parts td.num small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--ink-quiet);
  white-space: normal;
}

.factlist--wide {
  grid-template-columns: minmax(9rem, 16rem) minmax(0, 1fr);
  gap: 0.9rem 1.5rem;
}

.factlist--wide dt {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  padding-top: 0;
}

@media (max-width: 640px) {
  .factlist--wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .factlist--wide dd {
    margin-bottom: 0.9rem;
  }
}

/* ── Method ──────────────────────────────────────────────────────────── */

/* Four sections in two rows: the check hub (KXE-45). The 900px block below sets one column. */

/* ── Category list ───────────────────────────────────────────────────── */

/* Maker card (KXE-88): one auto-fill grid for every type; the card carries the ground colour, the gap shows the page. */
.mk-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
}

.mk {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1rem 1.1rem 1.05rem;
  background: var(--raised);
  border: 1px solid var(--line-soft);
}

.mk:hover {
  background: #fff;
  border-color: var(--ink);
}

.mk:focus-within {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.mk__name {
  margin: 0;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 1.6rem;
  line-height: 1.05;
}

.mk__name a {
  color: var(--ink);
  text-decoration: none;
}

.mk__name a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.mk__name a:focus-visible {
  outline: none;
}

.mk:hover .mk__name a {
  color: var(--link);
}

.mk__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.6rem;
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-quiet);
}

.mk__meta span {
  white-space: nowrap;
}

.mk__meta span + span::before {
  content: '·';
  margin-right: 0.6rem;
}

.mk__price {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.mk__track {
  position: relative;
  display: block;
  height: 0.8rem;
  border-bottom: 2px solid var(--ink);
}

.mk__t {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 0.55rem;
  margin-left: -0.5px;
  background: var(--ink-quiet);
}

.mk__ends {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--ink-quiet);
  white-space: nowrap;
}

.mk__kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft, var(--ink-quiet));
}

@media (max-width: 720px) {
  .mk-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .mk {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    padding: 0.8rem 0.95rem;
    gap: 0.35rem 0.75rem;
  }

  .mk__price {
    grid-column: 1 / -1;
  }

  .mk__name {
    font-size: 1.4rem;
  }

  .mk__kinds {
    display: none;
  }
}

.sibling-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.sibling-list li {
  border-bottom: 1px solid var(--line-soft);
}

.sibling-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
}

.sibling-list a:hover {
  color: var(--link);
}

.sibling-list .count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-quiet);
  white-space: nowrap;
}

/* ── Prose (about, contact) ──────────────────────────────────────────── */

.prose {
  padding-block: clamp(1.75rem, 4vw, 3rem);
  max-width: 68ch;
}

.prose h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  margin-bottom: 1.25rem;
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 0.98rem;
}

.prose p + p {
  margin-top: 0.9rem;
}

.prose ul {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.prose .callout,
.pghead .callout {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-block: 1.5rem;
  font-size: 0.92rem;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 2.25rem;
  font-size: 0.86rem;
}

.footer__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.25rem 2rem;
}

.footer strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0;
}

.footer__links {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.footer__links a {
  text-decoration: none;
  color: var(--ink-2);
}

.footer__links a:hover {
  color: var(--link);
}

.footer__note {
  color: var(--ink-quiet);
  font-size: 0.78rem;
  max-width: 44ch;
}

/* The legal note sits under the whole row, not inside the third column. */
.footer__note:last-of-type {
  grid-column: 1 / -1;
  max-width: 78ch;
  margin-top: 0.35rem;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  

  

  

  

  .footer__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer__note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .masthead__row {
    min-height: 3.75rem;
    flex-wrap: wrap;
    padding-block: 0.6rem;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    font-size: 0.86rem;
    border-top: 1px solid var(--line-soft);
    padding-top: 0.35rem;
  }

  

  

  

  

  

  

  

  .footer__row {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Tables become rows of labelled lines: no horizontal scroll at 390 px. */
  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .table tr:last-child {
    border-bottom: 0;
  }

  .table td {
    border: 0;
    padding: 0.1rem 0;
    text-align: left;
  }

  .table .num {
    text-align: left;
    font-size: 0.9rem;
  }

  /* A priced row reads as a list line: name and price on top, the details under them. */
  .table tr:has(.num) {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 0.5rem;
  }

  .table tr:has(.num) td {
    width: auto;
  }

  .table tr:has(.num) .rowhead {
    flex: 1 1 0;
    min-width: 50%;
    order: 1;
  }

  .table tr:has(.num) .num {
    order: 2;
    margin-left: 0.5rem;
    text-align: right;
  }

  /* The grey cells wrap to one line of their own and start at the left: "Honda · Xe máy · 109 cc". */
  .table tr:has(.num) .dim {
    order: 3;
  }

  /* The 0.5rem flex gap sits after the dot; the margin puts the same space before it.
     A cell hidden as dim--none is not a neighbour: no dot trails into nothing. */
  .table tr:has(.num) .dim:has(+ .dim:not(.dim--none))::after {
    content: '·';
    margin-left: 0.5rem;
  }

  /* A bare "—" under a row says nothing once the column head is gone. */
  .table td.dim--none {
    display: none;
  }

  .table .rowhead[data-th]::before {
    content: none;
  }

  .table td.num[data-th]::before {
    content: none;
  }

  .table--versions td.num[data-th]::before {
    content: attr(data-th) ': ';
  }

  .rack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
  }

  .rack__name {
    font-size: 0.92rem;
  }

  .facet {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .table td[data-th]::before {
    content: attr(data-th) ': ';
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-quiet);
  }

  .specs > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  
}

/* The mascot illustration on the about page: ink on paper, so the off-white plate blends in. */

/* Classes that replaced the inline style attributes (KXE-31). Each one sits after the rule it
   overrides, or carries a longer selector, so the cascade matches what the inline style did. */

/* .prose p sets the body size (0,1,1); a bare class would lose to it, the inline style did not. */
.prose .mono--small {
  font-size: 0.75rem;
}

/* The one version a maker's model page describes (Yamaha): a sentence, then a one-row table. */
.page-version {
  margin: 1.25rem 0 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* ── Maintenance: the maker's own schedule (KXE-46) ──────────────────── */

.legend {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* The manual prints K, V and B in a grey box (the default), T in a dark one: keep that difference. */
.m {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1;
  background: #dedcd2;
  color: var(--ink);
  flex: none;
}

.m--T {
  background: var(--ink);
  color: var(--raised);
}

/* The manual's Mức độ bảo dưỡng (KXE-56g): a chip under the row's name, and the book's own legend. */
.lvl {
  display: block;
  width: max-content;
  margin-top: 0.22rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--ink-2);
  background: #dedcd2;
  border-radius: 2px;
  padding: 0.08rem 0.36rem;
}

.level-key {
  max-width: 72ch;
  margin: 0 0 1.1rem;
}

.level-key__head {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.legend--levels {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.legend--levels li {
  display: block;
  line-height: 1.45;
}

.legend--levels .lvl {
  display: inline-block;
  margin: 0 0.4rem 0 0;
  vertical-align: 0.05em;
}

.table-scroll {
  overflow-x: auto;
}

.sched {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.sched th,
.sched td {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.42rem 0.3rem;
  text-align: center;
}

.sched thead th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  font-weight: 500;
  vertical-align: bottom;
  padding-bottom: 0.55rem;
  border-bottom-color: var(--line);
}

.sched th[scope='row'] {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  padding-left: 0;
}

.sched .page {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-quiet);
  white-space: nowrap;
}

.sched .replace {
  font-size: 0.8rem;
  white-space: nowrap;
}

.footnotes {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.84rem;
  color: var(--ink-quiet);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.55rem 0.8rem 0.55rem 0;
  text-align: left;
  vertical-align: top;
}

.spec-table thead th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-quiet);
  font-weight: 500;
  padding-bottom: 0.45rem;
  border-bottom-color: var(--line);
}

.spec-table th[scope='row'] {
  font-weight: 600;
  width: 38%;
}

.spec-table .group th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
  padding-top: 1.1rem;
  border-bottom: 0;
}

.spec-table .spec-part {
  display: block;
}

.spec-table .spec-part + .spec-part {
  margin-top: 0.2rem;
}

.spec-table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-quiet);
  white-space: nowrap;
  padding-right: 0;
}

.sub-head {
  font-size: 1rem;
  margin: 1.7rem 0 0.6rem;
  border-top: 2px solid var(--ink);
  padding-top: 0.55rem;
}

@media (max-width: 720px) {
  .sched thead {
    display: none;
  }

  .sched,
  .sched tbody,
  .sched tr {
    display: block;
    width: 100%;
  }

  .sched tbody tr {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .sched th,
  .sched td {
    border: 0;
    padding: 0;
  }

  .sched th[scope='row'] {
    display: block;
    white-space: normal;
    padding-bottom: 0.35rem;
  }

  .sched td {
    display: none;
  }

  .sched td.mark,
  .sched td.every,
  .sched td.replace,
  .sched td.page {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0 0.6rem 0.25rem 0;
  }

  .sched td.is-empty {
    display: none;
  }

  .sched td.every {
    flex-wrap: wrap;
    font-size: 0.85rem;
  }

  .sched td.every::before {
    content: none;
  }

  .sched td[data-km]:not(.every)::before {
    content: attr(data-km);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--ink-quiet);
  }

  .spec-table th[scope='row'] {
    width: 34%;
  }
}

/* Consent for the GA4 counter (LAW-02, 2026-11-14). Hidden until /analytics.js finds no stored
   choice; the vApp counter is cookieless and needs no switch. */
.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1rem;
  padding: 0.7rem clamp(0.75rem, 4vw, 1.75rem);
  background: var(--raised);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -24px rgb(21 25 29 / 0.6);
  font-size: var(--step-small);
}

.consent[hidden] {
  display: none;
}

.consent p {
  margin: 0;
  max-width: 64ch;
  color: var(--ink-2);
}

.consent__buttons {
  display: flex;
  gap: 0.4rem;
}

.consent button {
  font: inherit;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--ink);
  cursor: pointer;
}

.consent button[data-consent='granted'] {
  background: var(--link);
  border-color: var(--link);
  color: var(--raised);
}

.consent button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Withdrawal is as easy as consent: the privacy page's reset button (LAW-02 review, 2026-11-14). */
.consent button,
.consent-reset {
  min-height: 44px;
}

.consent-reset {
  font: inherit;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--ink);
  cursor: pointer;
}

.consent-reset:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* While the bar asks, the page can still scroll its last lines (the footer) clear of it. The bar is
   140 px tall at 390 and 161 px at 320 (its text wraps), so the room is 11rem (176 px): at 320 the
   last footer line was under the bar with 8rem (docs/ui-20261116-consent, LAW-04). */
body:has(.consent:not([hidden])) {
  padding-bottom: 11rem;
}

/* Reader report on a photo (KXE-66b): the form page. */
.report__photo {
  margin: 1rem 0;
}

.report__photo img {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.report__photo figcaption {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--ink-quiet);
}

.report__form fieldset {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.report__form legend {
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.report__reason {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  min-height: 2.75rem;
}

.report__reason input {
  margin-top: 0.3rem;
  accent-color: var(--link);
}

.report__note {
  display: block;
  margin-bottom: 1rem;
}

.report__note span {
  display: block;
  margin-bottom: 0.3rem;
}

.report__note textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--ink);
  font: inherit;
}

.report__error {
  padding: 0.6rem 0.8rem;
  border-left: 3px solid var(--ink);
  background: var(--tint);
  color: var(--ink);
}

.report__back {
  margin-left: 1rem;
}

/* Reader photo contributions (KXE-67a): the link under a photo, the empty frame where a photo is missing, the form. */
.model-hero__send {
  grid-column: 1 / -1;
  margin: -0.75rem 0 0;
  font-size: var(--step-small);
}

/* A viewfinder: four corner marks on a dashed frame, so the gap reads as a photo waiting to be taken. */
.photo-empty {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--line-soft);
}

.photo-empty::before,
.photo-empty::after {
  content: '';
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--link);
  pointer-events: none;
}

.photo-empty::before {
  top: 0.5rem;
  left: 0.5rem;
  border-right: 0;
  border-bottom: 0;
}

.photo-empty::after {
  right: 0.5rem;
  bottom: 0.5rem;
  border-left: 0;
  border-top: 0;
}

.photo-empty__text {
  margin: 0;
  max-width: 34rem;
}

.photo-empty__text strong {
  display: block;
}

.contrib__field {
  display: block;
  margin-bottom: 1rem;
}

.contrib__field span {
  display: block;
  margin-bottom: 0.3rem;
}

.contrib__field input:not([type='file']),
.contrib__field select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--ink);
  font: inherit;
}

.contrib__field input[type='file'] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  font: inherit;
}

.contrib__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 1rem;
}

.contrib__licence {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.contrib__licence legend {
  margin-bottom: 0.4rem;
  font-weight: 600;
}

@media (max-width: 40rem) {
  .contrib__pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── The home's newest exhibit (KXE-68): the framed photo and its plaque. The museum page has museum.css. ── */

.exhibit {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: end;
}

/* The mat is paper, the frame a thin line of ink, and the sheet shadow lifts it off the concrete. */
.frame {
  --mat: clamp(0.5rem, 1.6vw, 0.9rem);
  margin: 0;
  padding: var(--mat);
  background: var(--raised);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-sheet);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

/* The plaque screwed to the plinth edge. */
.plaque {
  min-width: 0;
  padding: 0.9rem 1rem 1rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sheet);
}

.plaque__what {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

.plaque__name {
  margin: 0.35rem 0 0.5rem;
  font-size: var(--step-sub);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.plaque__name a {
  color: var(--ink);
  text-decoration: none;
}

.plaque__name a:hover {
  color: var(--link);
}

.plaque__year {
  font-weight: 600;
  font-size: var(--step-small);
}

.plaque__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.8rem;
  font-size: var(--step-small);
}

.plaque__links a {
  color: var(--link);
}

/* Home: the newest exhibit leads the hero, one column wide. */

/* A catalogue row's small framed photo, or the empty plinth where there is none. */
.thumb {
  display: inline-block;
  vertical-align: middle;
  width: 3.5rem;
  height: 2.5rem;
  margin-right: 0.7rem;
  padding: 2px;
  background: var(--raised);
  border: 1px solid var(--ink);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A plinth: a quiet outline with a thicker base, drawn in CSS only. */
.thumb--plinth {
  display: inline-grid;
  place-items: center;
  background: transparent;
  border-color: var(--line);
  border-bottom-width: 5px;
  color: var(--ink-quiet);
}

@media (max-width: 900px) {
  .exhibit {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .thumb {
    width: 3rem;
    height: 2.2rem;
  }
}

/* ── Model page (KXE-76g): identity and price on the left, the numbers on rulers on the right ───────────────────── */

.mp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 3.25rem;
  align-items: start;
  padding-top: 0.5rem;
}

.mp__col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .mp {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

/* The identity and price column stays in view while the rulers scroll, when the window is tall enough to hold it. */
@media (min-width: 1024px) and (min-height: 820px) {
  .mp__col:first-child {
    position: sticky;
    top: 1rem;
  }
}

.mp .breadcrumb {
  padding: 0;
  margin-bottom: 0.5rem;
}

.mp .kicker {
  margin: 0;
}

/* Capitals carry stacked Vietnamese marks (Ấ, Ề, Ữ): line-height stays at 1.3 or more, or the marks collide. */
.mp-name {
  font-size: clamp(3.25rem, 1.6rem + 8vw, 5.75rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.005em;
  margin: 0.15em 0 0;
  overflow-wrap: anywhere;
}

.mp-id__link {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.mp-photo .photo,
.mp-photo .illustration {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
}

.mp-photo .photo {
  background: var(--line-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.mp-photo .illustration {
  padding: 0.75rem 0.75rem 0.6rem;
  background: var(--raised);
  border: 1px dashed var(--ink-quiet);
}

.mp-photo .mp-icon {
  display: flex;
  min-height: 10rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.mp-photo .model-hero__send {
  margin-top: 0.5rem;
}

.sec__q {
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.sec__sub {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-quiet);
}

.mp-price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.7rem + 3.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.mp-price__basis {
  color: var(--ink-quiet);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

.mp-num {
  padding-block: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.mp-num:first-of-type {
  border-top: 1px solid var(--line);
}

.mp-num__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.mp-num__label {
  color: var(--ink-quiet);
}

.mp-num__value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.mp-specs summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  padding-block: 0.6rem;
  border-top: 1px solid var(--line);
}

.mp-specs[open] summary {
  margin-bottom: 0.5rem;
}

/* ── The ruler: grey ticks for the peers, one yellow mark for this vehicle, no script ─────────────────────────── */

.ruler {
  margin-top: 1.1rem;
}

.ruler__scale {
  position: relative;
  margin-inline: 10px;
  padding-top: 1.9rem;
}

.ruler__value {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  animation: ruler-slide 200ms ease-out;
}

.ruler__value.is-start {
  transform: translateX(-7px);
}

.ruler__value.is-end {
  transform: translateX(calc(-100% + 7px));
}

.ruler__track {
  position: relative;
  height: 2rem;
  border-bottom: 2px solid var(--ink);
}

.ruler__tick {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 12px;
  margin-left: -1px;
  background: var(--ink-quiet);
}

/* A 2 px tick is no touch target: the link reaches 24 px either side of it. */
.ruler__tick::after {
  content: '';
  position: absolute;
  inset: -16px -11px 0;
}

.ruler__tick:hover,
.ruler__tick:focus-visible {
  height: 22px;
  background: var(--ink);
}

/* The mark is yellow on a ground where yellow alone reads 1.63:1, so it carries an ink outline. */
.ruler__mark {
  position: absolute;
  bottom: -2px;
  width: 14px;
  height: 32px;
  margin-left: -7px;
  background: var(--mark);
  border: 2px solid var(--ink);
  animation: ruler-slide 200ms ease-out;
}

@keyframes ruler-slide {
  from {
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ruler__mark,
  .ruler__value {
    animation: none;
  }
}

.ruler__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-quiet);
}

.ruler__src,
.sec__note {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--ink-quiet);
}

/* ── Page pattern (KXE-76g-2): a head, then sections whose headings are what the reader asks. No sheets, no cards. ── */

.pghead {
  padding-top: clamp(1rem, 3vw, 2rem);
  max-width: 64rem;
}

.pghead .breadcrumb {
  padding: 0;
  margin-bottom: 0.5rem;
}

.pghead .kicker {
  margin-bottom: 0.5rem;
}

.pghead h1 {
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem);
  margin-bottom: 0.6rem;
}

/* a <p> of inline text must stay block: grid would make each text run and link its own row */
.pghead__text {
  display: block;
  max-width: 64ch;
  font-size: 1.05rem;
}

.pghead__text > * + * {
  margin-top: 0.75rem;
}

.pghead .sourcebox {
  margin-top: 0.75rem;
}

.sec {
  margin-top: clamp(2rem, 5vw, 3.25rem);
}

.mp .sec {
  margin-top: 0;
}

.sec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.sec__head .sec__q {
  margin: 0;
}

.sec__head .mono {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-quiet);
}

.sec__head a {
  font-size: 0.92rem;
}

.sec > .prose {
  padding-block: 0;
}

.sec > .prose h2:first-child {
  margin-top: 0;
}

/* ── Hub (the home page, KXE-79): a two-column hero, "Bạn cần gì?" door cards, price cards, three columns of method ── */

.hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  align-items: center;
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
}

.hub h1 {
  font-size: clamp(2.6rem, 1.4rem + 4.2vw, 4.6rem);
  margin-bottom: 0.75rem;
}

.hub .lede {
  max-width: 44ch;
  margin-top: 0;
  font-size: 1.15rem;
}

.hub__art {
  display: flex;
  justify-content: center;
}

.hub__art img {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
}

.hub__art--icons {
  gap: 1.5rem;
  min-height: 12rem;
  border-radius: 16px;
}

.search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  max-width: 34rem;
}

.search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.search input {
  flex: 1 1 12rem;
  min-width: 0;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--ink);
}

.search .btn {
  min-height: 2.9rem;
}

/* An icon is a drawn line, never the only word: it sits beside text and takes the text colour. */
.ic {
  flex: none;
  vertical-align: middle;
}

/* The tinted ground a Lucide icon stands on when no picture exists. */
.art--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--ink);
}

/* One raised card, shared by the doors, the price cards and the method. Yellow is never text. */
.card {
  background: var(--raised);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgb(21 25 29 / 0.06), 0 10px 24px -16px rgb(21 25 29 / 0.28);
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

@media (hover: hover) {
  a.card:hover,
  .pcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgb(21 25 29 / 0.08), 0 16px 30px -16px rgb(21 25 29 / 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }

  a.card:hover,
  .pcard:hover {
    transform: none;
  }
}

/* 1 column on a phone, 2 from 640, 3 from 1024. */
.grid3 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.grid3 > li {
  display: flex;
  min-width: 0;
}

.grid3 > li > * {
  flex: 1;
}

.doors .sec__q {
  margin-bottom: 1rem;
}

.door {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.door__art {
  flex: none;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.door__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.door__text {
  flex: 1;
  min-width: 0;
}

.door b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.door__text span {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-quiet);
  font-size: 0.92rem;
}

.door__go {
  flex: none;
  color: var(--ink-quiet);
}

.door:hover .door__go,
.door:focus-visible .door__go {
  color: var(--link-deep);
}

.sec__note {
  max-width: 62ch;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--ink-quiet);
}

.pcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pcard__fig {
  flex: none;
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  background: var(--tint);
  overflow: hidden;
}

.pcard__fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcard__fig--ill img {
  object-fit: contain;
}

/* The drawing is a type's, not this model's: the card says so over the foot of the picture. */
.pcard__fig--ill figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.3rem 0.8rem 0.4rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--raised) 88%, transparent);
}

.pcard__fig--icon {
  border-radius: 0;
}

.pcard__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.9rem 1rem 1.1rem;
}

.pcard__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.pcard__name:hover {
  text-decoration: underline;
}

.pcard__what,
.pcard__basis {
  font-size: 0.875rem;
  color: var(--ink-quiet);
}

.pcard__price {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.pcard .rtick {
  margin-left: 0;
  width: 9rem;
}

.bands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.bands a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink);
  text-decoration: none;
}

.bands a:hover {
  border-color: var(--ink);
}

.bands .mono {
  color: var(--ink-quiet);
}

.hub__exhibit {
  max-width: 56rem;
}

.how {
  margin: 0;
}

.how li {
  display: block;
  padding: 1.25rem;
}

.how h3 {
  margin: 0.8rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
}

.how p {
  margin: 0;
  color: var(--ink-quiet);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hub {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .grid3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── The small tick: a row's price on its class ruler, no labels (the row's page carries them) ─────────────────── */

.rtick {
  display: block;
  margin-left: auto;
  width: 7.5rem;
  max-width: 100%;
  padding-inline: 5px;
}

.rtick__track {
  position: relative;
  display: block;
  height: 1.1rem;
  border-bottom: 2px solid var(--ink);
}

.rtick__t {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 7px;
  margin-left: -0.5px;
  background: var(--ink-quiet);
}

.rtick__m {
  position: absolute;
  bottom: -2px;
  width: 8px;
  height: 17px;
  margin-left: -4px;
  background: var(--mark);
  border: 2px solid var(--ink);
}

/* ── The km ruler: the schedule's own intervals on a scale (no mark: we do not know the odometer) ──────────────── */

.ruler--km {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.ruler__scale--km {
  padding-top: 0;
  padding-bottom: 1.6rem;
}

.ruler__tick--km {
  height: 16px;
  background: var(--ink);
}

.ruler__klabel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink-quiet);
  white-space: nowrap;
}

/* KXE-79 review (opus): the picture keeps its 3:2 box and the body takes the rest of an equal-height card, so the
   spare height sits under the date, not inside the picture. */
.grid3 > .pcard > .pcard__fig {
  flex: none;
}

.grid3 > .pcard > .pcard__body {
  flex: 1;
}

.pcard__fig--icon {
  display: grid;
  place-items: center;
  color: var(--ink-quiet);
}

/* REVIEW-1205: one card a row on a phone, so no neighbour's picture needs matching; an icon-only card (no photo, no
   drawing) gets a short band, not a 3:2 grey box that fills the screen above the price. */
@media (max-width: 639.98px) {
  .grid3 > .pcard > .pcard__fig--icon {
    aspect-ratio: auto;
    height: 4.5rem;
  }

  .pcard__fig--icon svg {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* The newest exhibit on the home page wears the card look, not the museum's ink frame. */
.hub__exhibit .exhibit {
  align-items: center;
}

.hub__exhibit .frame {
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(21 25 29 / 0.06), 0 10px 24px -16px rgb(21 25 29 / 0.28);
}

.hub__exhibit .frame img {
  border: 0;
}

.hub__exhibit .plaque {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}

/* ── /xe-dien (KXE-85): a type heading between a group's rule and its cards ── */
.ev__type {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.1rem;
}

.ev__type:first-of-type {
  margin-top: 0;
}

/* ── KXE-86b: spec filters, the compare picks and the compare table ──────── */

/* Text for a screen reader only. Never display:none, so it stays in the reading order. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.facet__note {
  grid-column: 2;
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-quiet);
}

.pickbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  padding: 0.8rem 1rem;
  background: var(--tint);
  border-left: 3px solid var(--link);
}

.pickbar__lead {
  margin: 0;
  font-weight: 600;
}

.pickbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  flex: 1 1 14rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pickbar__list a {
  margin-left: 0.25rem;
  font-size: 0.85rem;
}

.pickbar__hint {
  font-size: 0.9rem;
  color: var(--ink-quiet);
}

.table td.cmp-pick,
.table th.cmp-pick {
  padding-left: 1.25rem;
  white-space: nowrap;
}

.cmp-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.cmp-form label {
  flex: 1 0 100%;
  font-size: var(--step-small);
  color: var(--ink-quiet);
}

.cmp-form select {
  flex: 1 1 14rem;
  min-width: 0;
  max-width: 22rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* The compare table scrolls sideways inside its own box; the row labels stay put (sticky first column). */
.cmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-soft);
  background: var(--ground);
}

.cmp {
  width: 100%;
  min-width: 36rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

.cmp th,
.cmp td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  background: var(--ground);
}

.cmp thead th {
  border-bottom: 1px solid var(--line);
}

.cmp tbody th[scope='row'],
.cmp__corner,
.cmp__group th {
  position: sticky;
  left: 0;
  z-index: 1;
}

.cmp tbody th[scope='row'] {
  width: 9rem;
  min-width: 7.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  box-shadow: 1px 0 0 var(--line-soft);
}

.cmp__corner {
  width: 9rem;
  min-width: 7.5rem;
  box-shadow: 1px 0 0 var(--line-soft);
}

.cmp__group th {
  padding-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  background: var(--tint);
}

.cmp__car {
  min-width: 11rem;
  font-weight: 400;
}

.cmp__car > * {
  display: block;
}

.cmp__art {
  max-width: 16rem;
  margin-bottom: 0.6rem;
}

/* The figure's height comes from its 3:2 ratio, which a child's height:100% cannot read: fill it by position instead. */
.cmp__art .pcard__fig img {
  position: absolute;
  inset: 0;
}

.cmp__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cmp__name:hover {
  text-decoration: underline;
}

.cmp__maker,
.cmp__basis,
.cmp__sub {
  font-size: 0.78rem;
  color: var(--ink-quiet);
}

.cmp__sub {
  display: block;
  margin-top: 0.1rem;
}

.cmp__price {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.cmp__drop {
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.cmp td {
  font-variant-numeric: tabular-nums;
}

.cmp__none,
.cmp__raw {
  color: var(--ink-quiet);
}

@media (max-width: 720px) {
  .cmp tbody th[scope='row'],
  .cmp__corner {
    width: 6.5rem;
    min-width: 6.5rem;
    padding-right: 0.5rem;
    font-size: 0.78rem;
  }

  .cmp__car {
    min-width: 10rem;
  }

  .cmp th,
  .cmp td {
    padding: 0.55rem 0.6rem;
  }

  .facet__note {
    grid-column: 1 / -1;
  }

  .table td.cmp-pick {
    order: 4;
    flex-basis: 100%;
    padding: 0.2rem 0 0;
  }
}
