/* ==========================================================================
   Content and flow pages, light edition (cream paper, ink text, one red accent).
   Builds on home-light.css (tokens, header, footer, buttons). Shared by the buying path (cart, checkout, order
   confirmation, track order) and, as they move over, the company, blog and legal pages.
   ========================================================================== */

/* ---------- page head ---------- */
.page-head { padding: clamp(20px, 2.8vw, 38px) 0 clamp(14px, 2vw, 26px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: clamp(12px, 1.8vw, 20px); font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-size: 12px; opacity: .55; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-title { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -.05em; }
.page-lead { margin-top: clamp(10px, 1.2vw, 16px); max-width: 62ch; font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.55; }
.page-body { padding: 4px 0 clamp(48px, 6vw, 92px); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- two columns: the work on the left, a sticky summary on the right ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(20px, 2.6vw, 40px); align-items: start; }
.flow-side { position: sticky; top: calc(var(--head-h) + 20px); }

/* ---------- panels ---------- */
.panel { padding: clamp(18px, 2.2vw, 30px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel + .panel { margin-top: 18px; }
.panel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -.025em; }
.panel-title .n { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0; }

/* ---------- notices ---------- */
.notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 20px; padding: 16px 20px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--white); }
.notice strong { display: block; color: var(--ink); font-size: 15.5px; }
.notice span { font-size: 14px; color: var(--muted); }
.notice > div { min-width: 0; flex: 1 1 320px; }
.banner { margin-bottom: 20px; padding: 16px 20px; border: 1px solid #b9dcc4; border-radius: var(--r-md); background: var(--green-bg); color: #14522d; font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.banner.is-wait { background: #fbf1d4; border-color: #ecd48a; color: #6b4e00; }
.banner.is-info { background: #e3eef8; border-color: #b4cde6; color: #1d4a74; }
.banner.is-off { background: #f8e2df; border-color: #e6b3ad; color: #8a2a21; }
.alert { margin-bottom: 18px; padding: 13px 16px; border-radius: var(--r-sm); background: #f8e2df; border: 1px solid #e6b3ad; color: #8a2a21; font-size: 14.5px; line-height: 1.5; }

/* ---------- forms ---------- */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label .field-opt { font-weight: 400; color: var(--muted-2); }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--white);
  font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 104px; padding: 13px 16px; font-family: inherit; line-height: 1.5; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315110d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 18px center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 17, 13, .1); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field-error { font-size: 13px; line-height: 1.4; color: #b3261e; }
.field-hint { min-height: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.field-hint:empty { display: none; }
.field-hint.is-ok { color: var(--green); }
.field small { font-size: 12.5px; color: var(--muted-2); }

/* ---------- buttons that fill their column ---------- */
.btn-block { display: flex; width: 100%; padding: 16px 24px; font-size: 16px; }
.link-quiet { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-quiet:hover, .link-quiet:focus-visible { color: var(--red); }
.link-help { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: #1d6b3e; }
.link-help:hover { text-decoration: underline; }
.note-s { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- colour dots and the spec lines under a product name ---------- */
.dot { display: inline-block; flex: none; width: 12px; height: 12px; margin-right: 6px; border-radius: 50%; background: var(--c, #ccc); border: 1px solid rgba(21, 17, 13, .3); vertical-align: -1px; }
.spec { display: grid; gap: 3px; margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.spec b { font-weight: 600; color: var(--ink); }
/* the base layer and the top layer, kept apart: a small table, one row each */
.mat-layers { margin-top: 2px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--white); }
.mat-layer { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: baseline; }
.mat-layer + .mat-layer { border-top: 1px solid var(--line-2); }
.mat-layer dt { align-self: stretch; padding: 8px 10px; background: var(--stone); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line-2); }
.mat-layer dd { display: flex; flex-wrap: wrap; gap: 3px 14px; padding: 7px 12px; color: var(--ink); }
.mat-layer .part { white-space: nowrap; }
.mat-layer .part em { font-style: normal; color: var(--muted-2); }

/* ---------- money ---------- */
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.price del { font-size: 13px; color: var(--muted-2); }
.price .save { padding: 2px 8px; border-radius: var(--r-pill); background: var(--red); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.totals { display: grid; gap: 11px; font-size: 15px; color: var(--muted); }
.totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.totals dd, .totals span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.totals .offer span:last-child { color: var(--green); }
.totals .grand { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.totals .grand span:last-child { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.04em; }
.totals[hidden], .totals > [hidden] { display: none; }

/* ---------- quantity ---------- */
.qty { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--white); }
.qty button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 15px; color: var(--ink); transition: background-color .2s; }
.qty button:hover:not(:disabled) { background: var(--stone); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-size: 15.5px; font-weight: 700; }

/* ---------- an order's lines (cart, checkout) ---------- */
.lines { display: grid; gap: 14px; }
.cline { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto 40px; grid-template-areas: "pic main end remove"; align-items: center; gap: 12px clamp(14px, 1.8vw, 24px); padding: 14px 16px 14px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cline-end { grid-area: end; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.cline-pic { grid-area: pic; position: relative; display: block; width: 112px; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--stone); }
.cline-pic img { width: 100%; height: 100%; object-fit: cover; }
.has-zoom::after { content: "\F62C"; font-family: "bootstrap-icons"; position: absolute; right: 7px; bottom: 7px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(21, 17, 13, .6); color: #fff; font-size: 12px; }
.cline-main { grid-area: main; min-width: 0; }
.cline-name { font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; color: var(--ink); }
.cline-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cline-unit { margin-top: 10px; font-size: 14px; color: var(--muted); }
.cline-total { min-width: 92px; text-align: right; }
.cline-total small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.cline-total b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.cline-remove { grid-area: remove; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); transition: background-color .2s, color .2s, border-color .2s; }
.cline-remove:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* the same lines, compact, in the checkout's summary */
.olines { display: grid; gap: 18px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.oline { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.oline-pic { position: relative; display: block; width: 68px; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--stone); }
.oline-pic img { width: 100%; height: 100%; object-fit: cover; }
.oline-pic.has-zoom::after { right: 4px; bottom: 4px; width: 20px; height: 20px; font-size: 12px; }
.oline-main { min-width: 0; }
.oline-name { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.oline .spec { margin-top: 4px; font-size: 12.5px; gap: 5px; }
.oline .mat-layer { grid-template-columns: 1fr; }
.oline .mat-layer dt { padding: 4px 10px; font-size: 12px; border-right: 0; border-bottom: 1px solid var(--line-2); }
.oline .mat-layer dd { gap: 2px 12px; padding: 6px 10px; }
.oline-remove { margin-top: 6px; font-size: 12.5px; }
.oline-price { text-align: right; font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.oline-price del { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted-2); }
.oline-empty { font-size: 15px; color: var(--muted); }
.oline-empty a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.paymethod { margin: 18px 0; }
.paymethod .note-s i { margin-right: 4px; color: var(--green); }
.radio-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.radio-row input { margin-top: 3px; accent-color: var(--red); }
.btn.is-busy { opacity: .7; pointer-events: none; }

/* ---------- promo code, in the checkout's summary: folded away until asked for ---------- */
.promo { margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.promo-toggle { font-size: 14px; }
.promo-body { margin-top: 12px; }
.promo-row { display: flex; gap: 10px; }
.promo-row input {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--white);
  font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.promo-row input::placeholder { text-transform: none; letter-spacing: 0; color: var(--muted-2); }
.promo-row input:hover { border-color: var(--muted-2); }
.promo-row input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 17, 13, .1); }
.promo-row .btn { flex: none; }
.promo-msg { margin-top: 8px; font-size: 13px; line-height: 1.4; color: #b3261e; }
.promo-msg:empty { display: none; }
.promo-on { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid #b9dcc4; border-radius: var(--r-md); background: var(--green-bg); color: #14522d; font-size: 14.5px; }
.promo-on i { margin-right: 8px; }
.promo-on .link-quiet { color: #14522d; }
.promo-toggle[hidden], .promo-body[hidden], .promo-on[hidden] { display: none; }

/* ---------- the order confirmation ---------- */
.narrow { max-width: 920px; }
.link-u { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prog { display: grid; gap: 18px; margin-bottom: 18px; }
.prog-step { display: flex; align-items: flex-start; gap: 14px; }
.prog-step strong { display: block; font-size: 15.5px; line-height: 1.35; color: var(--ink); }
.prog-step span:not(.prog-dot) { display: block; margin-top: 3px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.prog-dot { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--white); font-size: 13px; font-weight: 700; color: var(--muted); }
.prog-step.is-done .prog-dot { background: var(--green); border-color: var(--green); color: #fff; }
.prog-step.is-current .prog-dot { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 4px rgba(209, 32, 42, .14); }
.prog-step.is-pending strong, .prog-step.is-pending span:not(.prog-dot) { color: var(--muted-2); }
.prog-step .prog-cn { display: inline-block; margin: 6px 10px 0 0; padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); font-family: var(--mono); font-size: 13.5px; letter-spacing: .04em; color: var(--ink); }
.prog-step .btn { margin-top: 8px; }
.order-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 20px; }
.info-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.info-cards > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.info-cards h3 { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.info-cards p { font-size: 14.5px; line-height: 1.5; word-break: break-word; }
.info-cards p.strong { font-weight: 700; font-size: 16px; color: var(--ink); }
.oitems { display: grid; margin-bottom: 20px; border-top: 1px solid var(--line); }
.oitem { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.oitem-pic { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--stone); }
.oitem-main b { font-size: 16px; letter-spacing: -.02em; color: var(--ink); }
.oitem-price { text-align: right; white-space: nowrap; }
.oitem-price b { display: block; font-size: 16px; color: var(--ink); }
.oitem-price small { font-size: 12.5px; color: var(--muted); }
.oitem-empty { padding: 16px 0; color: var(--muted); }
.docs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
@media print { .topbar, .site-header, .site-footer, .docs, .drawer, .drawer-scrim { display: none !important; } }
@media (max-width: 640px) {
  .info-cards { grid-template-columns: 1fr; }
  .oitem { grid-template-columns: 52px minmax(0, 1fr); }
  .oitem-pic { width: 52px; height: 52px; }
  .oitem-price { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 10px; }
}

/* ---------- empty state ---------- */
.empty { padding: clamp(36px, 6vw, 80px) 0; text-align: center; }
.empty h2 { margin-bottom: 8px; font-size: clamp(22px, 2.4vw, 30px); }
.empty p { margin-bottom: 22px; }

/* ---------- the photo lightbox (cart, checkout) ---------- */
.lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(11, 11, 12, .92); }
.lb[hidden] { display: none; }
.lb figure { display: grid; justify-items: center; gap: 12px; max-width: min(1100px, 100%); max-height: 100%; }
.lb img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 12px; }
.lb figcaption { max-width: 60ch; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .8); }
.lb button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 18px; transition: background-color .2s; }
.lb button:hover { background: rgba(255, 255, 255, .28); }
.lb .lb-close { top: 16px; right: 16px; }
.lb .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 5px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); color: #fff; font-size: 12.5px; }
.lb [hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .flow-side { position: static; }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .cline { grid-template-columns: 92px minmax(0, 1fr) 40px; grid-template-areas: "pic main remove" "end end end"; padding: 12px; }
  .cline-remove { align-self: start; }
  .cline-pic { width: 92px; border-radius: 14px; align-self: start; }
  /* the label sits above its colours: the column beside a phone's photo is too narrow for both side by side */
  .mat-layer, .oline .mat-layer { grid-template-columns: 1fr; }
  .mat-layer dt, .oline .mat-layer dt { padding: 4px 10px; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .mat-layer dd, .oline .mat-layer dd { gap: 2px 12px; padding: 6px 10px; }
  .cline-end { justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
  .cline-total { min-width: 0; }
  .cline-total small { display: inline; margin-right: 8px; }
  .cline-total b { display: inline; }
  .lb .lb-prev { left: 8px; }
  .lb .lb-next { right: 8px; }
}

/* ---------- a single centred form (track order) ---------- */
.form-card { max-width: 560px; margin-inline: auto; }

/* ---------- landing pages: brand and model cards, a call to action, year chips ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.cat-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-card); }
.cat-badge { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.cat-badge img { width: 30px; height: 30px; object-fit: contain; }
.cat-card h3 { font-size: 16.5px; line-height: 1.2; letter-spacing: -.02em; }
.cat-card .meta { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.cat-card .bi { flex: none; margin-left: auto; font-size: 14px; color: var(--muted-2); transition: transform .25s var(--ease), color .2s; }
.cat-card:hover .bi { transform: translateX(4px); color: var(--red); }
.year-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.year-chip { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--white); font-size: 14.5px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.year-chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.info-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: clamp(22px, 3vw, 36px); }
.info-tile { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.info-tile > i { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; background: var(--stone); font-size: 18px; color: var(--red); }
.info-tile h3 { margin-bottom: 6px; font-size: 16.5px; letter-spacing: -.02em; }
.info-tile p { font-size: 14.5px; line-height: 1.6; }
.copy p + p { margin-top: 14px; }
.copy p { max-width: 64ch; font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.65; }
.cta-band { padding: clamp(34px, 5vw, 68px) clamp(22px, 4vw, 56px); border-radius: var(--r-lg); background: var(--ink); text-align: center; }
.cta-band .kicker { color: #ff6a72; }
.cta-band h2 { max-width: 18em; margin: 0 auto 12px; color: #fff; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.04em; }
.cta-band p { max-width: 52ch; margin: 0 auto 24px; color: rgba(255, 255, 255, .75); }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tag-mpv { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--stone); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.hl { color: var(--red); }
@media (max-width: 960px) { .flow-cta-first .flow-side { order: -1; } }

/* ---------- company pages: about, contact, colours ---------- */
.story-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4.4vw, 68px); align-items: center; }
.story-split figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.fig-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.fig { padding: clamp(20px, 2.6vw, 34px) clamp(16px, 2vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; }
.fig b { display: block; font-size: clamp(44px, 5.4vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: var(--ink); }
.fig span { display: block; max-width: 28ch; margin: 12px auto 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cert-tag { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; color: var(--muted-2); }
.contact-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
.contact-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.contact-tile > i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 50%; background: var(--stone); font-size: 19px; color: var(--red); }
.contact-tile h2 { font-size: 20px; letter-spacing: -.025em; }
.contact-tile small { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.contact-tile a { margin-top: 6px; font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; word-break: break-word; }
.contact-tile a:hover { color: var(--red); }
.map-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(12px, 1.8vw, 22px); margin-top: clamp(12px, 1.8vw, 22px); }
.map-frame { position: relative; min-height: 320px; overflow: hidden; border-radius: var(--r-lg); background: var(--stone); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.open-hours { padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.open-hours h2 { margin-bottom: 14px; font-size: 20px; letter-spacing: -.025em; }
.open-hours dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.open-hours dt { color: var(--muted); }
.open-hours dd { font-weight: 600; color: var(--ink); white-space: nowrap; }
.open-hours .off dd { color: var(--red); }
.flow-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.contact-list { display: grid; gap: 12px; margin-top: 22px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.45; }
.contact-list i { flex: none; margin-top: 3px; color: var(--red); }
.contact-list a { font-weight: 600; color: var(--ink); }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.colour-family { margin-top: clamp(26px, 3.4vw, 44px); }
.colour-family-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.colour-family-title span { padding: 1px 9px; border-radius: var(--r-pill); background: var(--stone); font-size: 12px; letter-spacing: 0; color: var(--muted); }
.colour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.colour-card { display: flex; flex-direction: column; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.colour-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-card); }
.colour-photo { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: var(--stone); }
.colour-photo img { width: 100%; height: 100%; object-fit: cover; }
.colour-photo.is-none { display: grid; place-items: center; }
.colour-photo.is-none > span { padding: 4px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 700; color: var(--ink); }
.colour-body { display: flex; align-items: center; gap: 10px; padding: 12px 6px 6px; }
.colour-body > i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(21, 17, 13, .25); }
.colour-body b { display: block; font-size: 15px; letter-spacing: -.01em; }
.colour-body small { display: block; font-size: 12.5px; color: var(--muted-2); }
@media (max-width: 960px) {
  .story-split, .flow-wide, .map-row { grid-template-columns: 1fr; }
  .contact-tiles, .fig-row { grid-template-columns: 1fr; }
  .map-frame { min-height: 260px; }
}
@media (max-width: 560px) {
  .colour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- pagination (the same as the Shop's) ---------- */
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: clamp(26px, 3.4vw, 44px); }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 15px; font-weight: 600; transition: background-color .2s, color .2s; }
.pager a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .off { opacity: .35; }
.pager .gap { border: 0; min-width: 20px; }

/* ---------- the blog: the listing ---------- */
.blog-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: clamp(20px, 2.6vw, 32px); }
.search-pill { display: flex; align-items: center; gap: 4px; width: min(100%, 420px); padding: 5px 5px 5px 18px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.search-pill:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 17, 13, .1); }
.search-pill i { color: var(--muted-2); }
.search-pill input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; font-size: 15.5px; }
.search-pill input:focus { outline: 0; }
.tag-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--white); font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s, border-color .2s; }
.tag-link:hover { color: var(--ink); border-color: var(--ink); }
.tag-link.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.post-card { position: relative; display: flex; flex-direction: column; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .2s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-card); }
.post-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 18px; background: var(--stone); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.045); }
.post-cat { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.post-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: clamp(14px, 1.6vw, 20px) clamp(10px, 1.2vw, 16px) clamp(10px, 1.2vw, 14px); }
.post-title { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.22; letter-spacing: -.03em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.post-excerpt { font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--muted-2); }
.post-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.post-more .bi { font-size: 12px; transition: transform .25s var(--ease); }
.post-card:hover .post-more .bi { transform: translateX(4px); }

/* ---------- the blog: an article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: clamp(28px, 4.4vw, 72px); align-items: start; }
.article { max-width: 780px; min-width: 0; }
.article-title { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.byline span, .byline button { display: inline-flex; align-items: center; gap: 7px; }
.byline .bi { font-size: 14px; color: var(--muted-2); }
.byline button { padding: 0; font-size: 14px; color: var(--muted); }
.byline button:hover:not(.is-liked) { color: var(--red); }
.byline button.is-liked { color: var(--red); cursor: default; }
.byline button.is-liked .bi { color: var(--red); }
.article-lead { margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink); }
.article-cover { margin-top: clamp(20px, 2.6vw, 32px); }
.article-cover img { width: 100%; border-radius: var(--r-lg); }
.prose { margin-top: clamp(22px, 3vw, 38px); font-size: clamp(16.5px, 1.2vw, 18px); line-height: 1.75; color: #2c2722; }
.prose > * + * { margin-top: 1.1em; }
.prose p { color: inherit; }
.prose h2 { margin-top: 2em; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.18; letter-spacing: -.035em; scroll-margin-top: calc(var(--head-h) + 16px); }
.prose h3 { margin-top: 1.7em; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -.025em; scroll-margin-top: calc(var(--head-h) + 16px); }
.prose h4 { margin-top: 1.5em; font-size: 18px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--red); }
.prose img { height: auto; border-radius: var(--r-md); }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--red); font-size: 1.05em; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin-block: 2em; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .92em; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.prose th { background: var(--stone); font-weight: 700; color: var(--ink); white-space: nowrap; }
.prose iframe, .prose video { max-width: 100%; border-radius: var(--r-md); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.share-row a { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--white); color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.share-row a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.aside-stack { display: grid; gap: 18px; }
.aside-block { padding: 22px 22px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.aside-block[hidden] { display: none; }
.aside-block h2 { margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.toc-list { display: grid; gap: 2px; }
.toc-list a { display: block; padding: 8px 12px; margin-left: -12px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s; }
.toc-list a:hover, .toc-list a.is-current { color: var(--ink); border-left-color: var(--red); }
.aside-posts { display: grid; gap: 14px; }
.aside-posts a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.aside-posts img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--stone); }
.aside-posts b { display: block; font-size: 14.5px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.aside-posts a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.aside-posts time { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted-2); }
.aside-cats { display: grid; gap: 2px; }
.aside-cats a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink); }
.aside-cats li:last-child a { border-bottom: 0; }
.aside-cats a:hover { color: var(--red); }
.aside-cats small { color: var(--muted-2); font-size: 13px; }
.aside-cta { background: var(--ink); border-color: var(--ink); }
.aside-cta h2 { margin-bottom: 8px; font-size: 21px; font-weight: 700; letter-spacing: -.03em; text-transform: none; color: #fff; }
.aside-cta p { margin-bottom: 18px; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .prose th, .prose td { padding: 9px 10px; }
}

/* ---------- legal pages and the 404 ---------- */
.legal-prose h2 { font-size: clamp(19px, 1.6vw, 22px); margin-top: 1.9em; }
.legal-contact { margin-top: 2.4em; padding: 22px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 15.5px; line-height: 1.6; }
.legal-contact h2 { margin-bottom: 10px; font-size: 19px; }
.legal-contact p + p { margin-top: 6px; }
.notfound-code { font-size: clamp(88px, 14vw, 180px); font-weight: 700; line-height: .9; letter-spacing: -.07em; color: var(--ink); }
.notfound-code + .notfound-title { margin-top: 10px; }
.notfound-title { margin-bottom: 8px; font-size: clamp(24px, 3vw, 38px); letter-spacing: -.04em; }
.notfound p:not(.notfound-code) { margin-bottom: 22px; }

/* ---------- /car-mats/ : the brand directory (car-mats.php index view, assets/js/car-index.js) ---------- */
.bx-intro { max-width: 760px; }
.bx-deck { margin: 0 0 12px; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.04em; }
.bx-lede { text-wrap: pretty; max-width: 62ch; margin-bottom: clamp(18px, 2.4vw, 28px); font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); }
/* the search box is the home page's (.car-search / .car-results); here it sits at the left edge, and its rows are links */
.bx-search { max-width: 640px; margin: 0 0 18px; }
.car-results a { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 10px; text-align: left; font-size: 15px; font-weight: 600; }
.car-results a:hover, .car-results a:focus-visible { background: var(--paper); }
.car-results a.is-brand { color: var(--red-hover); }
.bx-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; font-size: 14px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.bx-nav a b { font-weight: 500; font-size: 13px; color: var(--muted); }
.bx-nav a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.bx-nav a:hover b { color: rgba(255, 255, 255, .7); }
.bx-group { margin-top: clamp(32px, 4.2vw, 56px); scroll-margin-top: calc(var(--head-h) + 18px); }
.bx-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bx-group-head h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.04em; }
.bx-group-head span { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.bx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.bx-tile { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; }
.bx-tile:hover, .bx-tile:focus-visible { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow-card); }
/* The logo gets the room: a tile of its own, white so a logo made with a white backdrop disappears into it. Emblems cap at 60px tall,
   wide word marks (BYD, Jaecoo, Peugeot...) at the tile's width, so both read at the same weight. */
.bx-logo { display: grid; place-items: center; height: 116px; padding: 18px 14px; }
.bx-logo img { width: auto; height: auto; max-width: 100%; max-height: 60px; object-fit: contain; transition: transform .35s var(--ease); }
.bx-logo b { font-size: 26px; letter-spacing: -.03em; color: var(--muted-2); text-transform: uppercase; }
.bx-tile:hover .bx-logo img { transform: scale(1.07); }
.bx-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--card); }
.bx-name { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.bx-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.bx-go { flex: none; font-size: 16px; color: var(--muted-2); transition: transform .25s var(--ease), color .2s; }
.bx-tile:hover .bx-go { transform: translateX(3px); color: var(--red); }
@media (max-width: 640px) {
  .bx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bx-logo { height: 92px; padding: 14px; }
  .bx-logo img { max-width: 118px; max-height: 50px; }
  .bx-foot { padding: 10px 12px 12px; }
  .bx-name { font-size: 15px; }
  .bx-nav { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .bx-nav a { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .bx-tile, .bx-tile:hover, .bx-logo img, .bx-tile:hover .bx-logo img { transform: none; transition: none; } }
