/* =========================================================================
   SortedCars UK — MOT statistics pages (/mot/)
   Pairs with /style.css (+ /css/reports.css for hub-grid cards).
   All figures on these pages are computed from the DVSA anonymised MOT
   dataset — see the methodology note each page carries.
   ========================================================================= */

.mot-wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; min-width: 0; }

/* breadcrumb */
.mot-crumbs { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin: 1.5rem auto 0.5rem; }
.mot-crumbs a { color: rgba(255,255,255,0.65); text-decoration: none; }
.mot-crumbs a:hover { color: #fff; }
.mot-crumbs span[aria-hidden] { margin: 0 0.4rem; color: rgba(255,255,255,0.3); }

/* page hero */
.mot-hero { text-align: left; margin: 0.5rem auto 2rem; }
.mot-hero h1 { font-size: 2.3rem; font-weight: 800; line-height: 1.15; margin-bottom: 0.6rem; }
.mot-hero h1 .accent { color: var(--primary); }
.mot-hero p { color: var(--text-dim); font-size: 1.05rem; line-height: 1.65; text-align: justify; }
@media (max-width: 640px) { .mot-hero h1 { font-size: 1.7rem; } }

/* stat tiles */
.mot-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr)); gap: 1rem; margin: 0 auto 2.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10); border-radius: 24px; padding: 1.5rem; }
.mot-stat {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
}
.mot-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.mot-stat-value { font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1.1; }
.mot-stat-note { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.35rem; }
.mot-stat-note.good { color: #34d399; }
.mot-stat-note.bad { color: #f87171; }

/* chart figure blocks */
.mot-figure {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 0 auto 1.75rem;
  min-width: 0;
}
.mot-figure h2, .mot-figure h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.3rem; }
.mot-figure .sub { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin: 0 0 1.1rem; line-height: 1.5; }
.mot-figure figure { margin: 0; }
.mot-figure svg { display: block; width: 100%; height: auto; }
.mot-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-bottom: 0.75rem; }
.mot-legend .key { display: inline-flex; align-items: center; gap: 0.45rem; }
.mot-legend .swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* data table view (accessibility fallback for every chart) */
.mot-table-view { margin-top: 1rem; }
.mot-table-view summary { cursor: pointer; font-size: 0.82rem; color: rgba(255,255,255,0.7);
  display: inline-block; padding: 0.4rem 0.2rem; min-height: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mot-table-view summary:hover { color: #fff; }
.mot-table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.85rem; }
.mot-table th { text-align: left; color: rgba(255,255,255,0.55); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.5rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.15); }
.mot-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.07); color: rgba(255,255,255,0.85); font-variant-numeric: tabular-nums; }
.mot-table td:first-child, .mot-table th:first-child { padding-left: 0; }
.mot-table .num { text-align: right; }
.mot-table a { color: #fff; }
/* town heading row in the area pages' MOT test-centre listing — a <th
   scope="rowgroup"> opening each town's <tbody>; must follow .mot-table th */
.mot-centres-town th { padding-top: 1.25rem; color: #fff; font-size: 0.95rem; text-transform: none; letter-spacing: 0; border-bottom: 1px solid rgba(255,255,255,0.25); }

/* category bars (horizontal) */
.mot-bars { display: flex; flex-direction: column; gap: 0.65rem; }
.mot-bar-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 64px; gap: 0.75rem; align-items: center; }
/* labels wrap rather than truncate — a clipped label hides which category a
   bar is (audit N-9) */
.mot-bar-label { font-size: 0.85rem; color: rgba(255,255,255,0.85); line-height: 1.3; overflow-wrap: break-word; min-width: 0; }
.mot-bar-track { height: 18px; position: relative; }
/* display:block is load-bearing. .mot-bar-fill is a <span>, and width/height
   percentages do not apply to a non-replaced INLINE box — so every horizontal
   bar on every /mot/ page rendered as label + value with an empty gap where
   the bar should be. The track kept its 18px because it is a grid item (grid
   items are blockified); its child was not. Found 25 Aug 2026 while adding
   the plate pages, which use the same component. */
.mot-bar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: #E85D00; min-width: 2px; }
.mot-bar-value { font-size: 0.83rem; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 520px) { .mot-bar-row { grid-template-columns: minmax(90px, 120px) 1fr 56px; } }

/* league tables grid */
.mot-league-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px,100%), 1fr)); gap: 1.75rem; margin-bottom: 1.75rem; }

/* rank chip in league tables */
.mot-rank { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); align-items: center; justify-content: center; font-size: 0.72rem; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; }

/* CTA band */
.mot-cta {
  background: linear-gradient(135deg, rgba(255,112,10,0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,112,10,0.3);
  border-radius: 20px;
  padding: 1.75rem;
  text-align: center;
  margin: 2.5rem auto 1.5rem;
}
.mot-cta h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.mot-cta p { color: var(--text-dim); max-width: 560px; margin: 0 auto 1.25rem; line-height: 1.6; }
.mot-cta .btn { margin-top: 0; text-decoration: none; }
.mot-cta .cta-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* contextual inline CTA — placed directly after the chart that raises the
   question it answers. Compact: one line of copy + a plate input. */
.mot-cta-inline {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  background: linear-gradient(135deg, rgba(255,112,10,0.10), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,112,10,0.28);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
}
.mot-cta-inline .copy { flex: 1 1 280px; min-width: 0; }
.mot-cta-inline .copy strong { display: block; font-size: 0.98rem; margin-bottom: 0.2rem; }
.mot-cta-inline .copy span { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }
/* Joined GB number plate + attached button — same look as the vehicle pages'
   plate (veh-buy-plate): blue GB block, yellow plate, orange button, one pill. */
.mot-cta-form {
  display: flex; align-items: stretch; flex: 0 1 400px; min-width: 280px;
  height: 52px; border-radius: 10px; overflow: hidden; margin: 0; /* it's a <form> */
}
.mot-cta-form .gb {
  background: #0b3aa8; color: #fff; padding: 0 0.8rem; font-size: 0.8rem;
  font-weight: 700; display: flex; align-items: center; flex: 0 0 auto;
}
.mot-cta-plate {
  flex: 1; min-width: 0; border: 0; border-radius: 0;
  background: #ffd400; color: #111; padding: 0 0.9rem;
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.1em;
  font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase;
}
.mot-cta-plate::placeholder { color: rgba(0,0,0,0.6); letter-spacing: 0.08em; }
.mot-cta-plate:focus { outline: 3px solid #0b3aa8; outline-offset: -3px; }
.mot-cta-go {
  background: linear-gradient(180deg, #ff7a1a 0%, #ff6b00 100%); color: #0f1419;
  border: 0; border-radius: 0; font-weight: 800; font-size: 0.95rem;
  padding: 0 1.3rem; cursor: pointer; flex: 0 0 auto; white-space: nowrap;
}
.mot-cta-go:hover { filter: brightness(1.05); }
.mot-cta-go:focus-visible { outline: 3px solid #0f1419; outline-offset: -3px; }
.mot-cta-err { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: #ff8a8a; font-weight: 600; }
.mot-cta-note { flex-basis: 100%; margin: 0.35rem 0 0; font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.mot-cta .mot-cta-note { max-width: 420px; margin: 0.35rem auto 0.9rem; }
/* In the closing CTA band the plate sits centred above the buttons. */
.mot-cta .mot-cta-form { margin: 0 auto 1.1rem; max-width: 420px; flex-basis: auto; }
.mot-cta .mot-cta-err { margin-bottom: 0.9rem; }
@media (max-width: 480px) { .mot-cta-form { min-width: 0; } }

/* methodology + attribution */
.mot-method { font-size: 0.8rem; color: rgba(255,255,255,0.68); line-height: 1.6; margin: 2rem auto 3rem;
  text-align: justify;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10); border-radius: 24px; padding: 1.5rem 2rem; }
.mot-method a { color: rgba(255,255,255,0.78); }
.mot-method strong { color: rgba(255,255,255,0.85); }

/* model pill list on make/area pages */
.mot-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mot-pill { padding: 0.5rem 1rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; color: #fff; font-size: 0.85rem; text-decoration: none; transition: all 0.2s; }
.mot-pill:hover { border-color: #ff6b00; background: rgba(255,107,0,0.1); }
.mot-pill .n { color: rgba(255,255,255,0.45); font-size: 0.78rem; margin-left: 0.35rem; }

/* section heading between figure groups */
.mot-section-title { font-size: 1.35rem; font-weight: 700; margin: 2.5rem 0 1.25rem; }

/* "More vehicles we've checked" — cross-links into the vehicle pages,
   mirroring the vehicle pages' own .veh-related widget */
.mot-related { margin: 2.5rem auto 0; }
.mot-related h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #94a3b8; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 0.6rem; margin: 0 0 1.1rem; }
.mot-related ul { list-style: none; margin: 0; padding: 0; display: grid;
  gap: 0.55rem 0.9rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .mot-related ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mot-related ul { grid-template-columns: 1fr; } }
.mot-related a { color: #ff6b00; text-decoration: none; }
.mot-related a:hover { text-decoration: underline; }

/* outer glass box: heading + its cards live inside one section card */
.mot-section {
  max-width: 1100px; margin: 0 auto 2.5rem; padding: 1.75rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10); border-radius: 24px;
}
.mot-section .mot-wrap:not(.mot-figure) { padding: 0; }
.mot-section .hub-grid-section { padding: 0; margin-bottom: 0; }
.mot-section .mot-stats-row { background: none; border: none; padding: 0; margin-bottom: 1.5rem; }
.mot-section > .mot-section-title { margin: 0 0 1.25rem; }
.mot-section > :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .mot-section, .mot-stats-row { padding: 1.1rem; border-radius: 18px; }
  .mot-method { padding: 1.1rem 1.25rem; }
}

/* ── Number-plate pages (/mot/plate/) ──────────────────────────────────────
   The plate anatomy diagram. Appended here rather than shipped as a second
   stylesheet: these pages already load mot-stats.css and nothing else on the
   site needs these rules. The diagram is a LABELLED DIAGRAM of the format,
   not a depiction of a legal plate — it carries no supplier mark and the
   characters are illustrative. Segment colours are the chart palette (CAT),
   and every colour is paired with a text label, so the key never depends on
   colour alone (WCAG 2.2 SC 1.4.1). */
.plate-anatomy { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin: 1.5rem 0 .5rem; }
.plate-vis {
  display: inline-flex; align-items: stretch; border-radius: 8px; overflow: hidden;
  font-family: "Arial Black", Impact, sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.plate-gb {
  background: #0b3d91; color: #fff; display: flex; flex-direction: column;
  justify-content: center; align-items: center; padding: .5rem .6rem; font-size: .8rem; line-height: 1.1;
}
.plate-chars {
  background: #f5c518; color: #111; font-size: 2.1rem; letter-spacing: .12em;
  padding: .45rem .9rem; display: flex; align-items: center; gap: .35rem;
}
.plate-chars .seg { position: relative; padding-bottom: .15rem; }
.plate-chars .seg.hl1 { box-shadow: inset 0 -5px 0 #3987e5; }
.plate-chars .seg.hl2 { box-shadow: inset 0 -5px 0 #d95926; }
.plate-chars .seg.hl3 { box-shadow: inset 0 -5px 0 #199e70; }
.plate-key { display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; }
.plate-key b { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .5rem; }
/* the hub's larger diagram */
.plate-anatomy.lg .plate-chars { font-size: 2.9rem; padding: .6rem 1.2rem; }
.plate-anatomy.lg .plate-gb { font-size: .95rem; padding: .7rem .8rem; }
@media (max-width: 560px) {
  .plate-chars { font-size: 1.6rem; padding: .4rem .7rem; }
  .plate-anatomy.lg .plate-chars { font-size: 1.9rem; padding: .45rem .8rem; }
}
/* The code table is a LOOKUP: someone arrives wanting one row, and the whole
   point of the page is that all 57 are on it. It had a max-height with an
   inner scroll, which hid the header as soon as you moved and made the table
   a second scrolling surface inside the page — so it now runs at full length.
   overflow-x stays, so a narrow screen scrolls the table sideways rather than
   the page body. */
.plate-codes-table { overflow-x: auto; }
.plate-codes-table table { margin: 0; }
.plate-future td { opacity: .62; }
/* the row for the page you are on, in the sibling comparison table. Tinted
   AND named in the row's own text ("57 plate"), never colour alone. */
.plate-this-row td { background: rgba(57,135,229,.12); }

/* The inline CTA used STANDALONE between two figures. On the make/model/area
   pages it always sits inside a .mot-figure, so that figure's own padding
   provides the space beneath it and .mot-cta-inline needs no bottom margin.
   Used on its own it had nothing below it and sat flush against the next
   section. This wrapper supplies the same 1.75rem the figures use. */
.plate-cta-standalone { margin-bottom: 1.75rem; }

/* Three-year trend — small multiples. One panel per measure, never two
   measures on one pair of axes. Collapses to two columns, then one. */
.plate-trend-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .plate-trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .plate-trend-grid { grid-template-columns: 1fr; } }
.plate-trend-panel {
  margin: 0; padding: 0.9rem 0.75rem 0.4rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px; min-width: 0;
}
.plate-trend-panel figcaption {
  font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85);
  margin-bottom: 0.35rem;
}
.plate-trend-panel svg { width: 100%; height: auto; display: block; }
.plate-trend-delta {
  margin: 0.15rem 0 0.35rem; font-size: 0.76rem; color: rgba(255,255,255,0.55);
  font-variant-numeric: tabular-nums;
}

/* the DVLA/INF104 attribution, moved to the foot of the page above the
   method block rather than sitting under the hero diagram */
.plate-source-note { margin: 0 auto 0.5rem; font-size: 0.82rem; }
/* dashed key for a reference line named in the legend rather than on the plot */
.plate-dash-key {
  background: none !important; height: 0 !important;
  border-top: 2px dashed rgba(255,255,255,0.55);
  width: 16px; align-self: center;
}
/* "Still filling in" — the caveat on a cohort only part way through its first
   MOT. Tinted like a caution, not an error: the figures are real, they are
   just incomplete. */
.plate-immature { border-color: rgba(255,176,32,0.35); background:
  linear-gradient(135deg, rgba(255,176,32,0.09), rgba(255,255,255,0.02)); }

/* ── /mot/plate/ contrast overrides (WCAG 2.2 AA) ─────────────────────────
   SC-compliance-accessibility-ads, 26 Aug 2026: RED on SC 1.4.3 and 1.4.11.

   The surface is NOT #0f1419. #bg-canvas paints an orange radial
   rgba(255,107,0,0.15) at 10% 20%, and .mot-figure is translucent
   (rgba(255,255,255,0.08)), so the orange comes through. At 1100-1440px the
   blob centre sits right under the charts' left-hand labels.

   THREE surfaces, not one — the translucent overlays NEST, and the first
   pass of this block quoted every ratio against the shallowest of them:
     bare page      rgb(60,42,39)  orange .15 over the #1a1f2e gradient stop
     .mot-figure    rgb(76,59,56)  + white .08
     .mot-stat      rgb(85,69,66)  + white .08 INSIDE .mot-stats-row's white .05
   The stat tiles are the worst surface on the page and were being measured
   on the second one. Ratios below now name the surface they were computed
   against; anything unqualified is rgb(76,59,56).

   Selectors are enumerated BY EVERY COLOUR PROPERTY that can land on a plate
   page — not by the names the audit printed (that missed .mot-stat-label),
   and not by grepping one colour syntax (that missed .mot-cta p, which is a
   hex var and failed). Full enumeration, ratios on the bound named above at
   each element's own depth. Checked and passing as-is, left alone:
     .mot-crumbs .5           4.58 bare page
     .mot-crumbs a .65        6.63
     .mot-figure .sub .6      4.96
     .mot-table-view summary .7  6.11
     .mot-table td .85        8.12  (6.75 on the aria-current row)
     .mot-bar-label .85       8.12      .mot-bar-value .7    6.11
     .mot-rank .7             6.11      .mot-cta-note .7     6.58
     .mot-method .68          6.32      .mot-method a .78    7.75
     .mot-method strong .85   8.86      trend figcaption .85 7.49
   Everything else on the page is overridden below.

   Scoped to .plate-page so the 568 existing /mot/ pages are untouched, per
   Prem's decision. Several of these faults exist site-wide today and remain
   there; that is a separate change, not this one. */

/* the stat tiles — rgb(85,69,66), the lightest surface on the page.
   .68 gives 5.22:1; .62 would scrape in at 4.64 and .55 fails outright. */
.plate-page .mot-stat-label { color: rgba(255,255,255,0.68); }         /* was .55 — 4.02:1 FAIL */
.plate-page .mot-stat-note { color: rgba(255,255,255,0.68); }          /* was .5  — 3.62:1 FAIL */
.plate-page .mot-stat-note.good { color: #6ee7a8; }                    /* 5.89:1 on the tile */
.plate-page .mot-stat-note.bad { color: #fca5a5; }                     /* #f87171 was 3.27:1 */

/* small text elsewhere: under 18.66px, so the floor is 4.5 not 3. */
/* Pills sit inside .mot-figure (numbered pages) or .mot-related, which has no
   background of its own — NOT on the CTA band, which is what the previous
   comment here claimed. Corrected number, unchanged rule: at .62 in a figure
   this is 4.54:1 — passing, and the narrowest text on the page. Third
   re-check, 27 Aug 2026. */
.plate-page .mot-pill .n { color: rgba(255,255,255,0.62); }            /* 4.54 in a figure; was .45 — 3.29 */
/* The enumeration above grepped rgba(255,255,255,0.xx) and so could not see
   this one at all: .mot-cta p is var(--text-dim) #94a3b8, which on the CTA
   band's orange rgba(255,112,10,0.12) is 4.38:1 at 16px. That is a FAIL by
   the same conservative bound every other ratio in this block uses — it
   clears 4.5 only on a realizable-worst surface. Shipping a value that fails
   the bound we claim to apply would make the bound decorative, so it is
   lifted. Enumerate by PROPERTY, not by colour syntax. */
.plate-page .mot-cta p { color: #aab6c9; }                             /* 5.48 on the CTA band */
.plate-page .mot-table th { color: rgba(255,255,255,0.62); }           /* 5.18; was .55 — 4.45 */
.plate-page .plate-trend-delta { color: rgba(255,255,255,0.62); }      /* 4.85 in the trend panel; was .55 — 4.19 */
.plate-page .plate-future td { opacity: 1; color: rgba(255,255,255,0.62); }  /* 5.18; was .85x.62 — 4.22 */
.plate-page .mot-cta-err { color: #ffb4b4; }                           /* 6.66 on the CTA band; #ff8a8a was 4.95 */
/* aria-hidden, and a crumb separator is arguably pure decoration — but .3 is
   2.59:1, and lifting it costs nothing and removes the argument. */
.plate-page .mot-crumbs span[aria-hidden] { color: rgba(255,255,255,0.5); }  /* 4.58:1 */

/* The plate anatomy diagram. These three underlines sit on the #f5c518 plate
   field, so this failure is UNCONDITIONAL — nothing to do with the gradient.
   They were 2.23:1, 2.38:1 and 2.09:1 against a 3:1 floor. Darkened for the
   yellow field; the key swatches carry a light ring so they stay discernible
   against the dark panel, where a dark fill alone would not. */
.plate-page .plate-chars .seg.hl1 { box-shadow: inset 0 -5px 0 #12467f; }   /* 5.83:1 on yellow */
.plate-page .plate-chars .seg.hl2 { box-shadow: inset 0 -5px 0 #8a2f0e; }   /* 5.17:1 */
.plate-page .plate-chars .seg.hl3 { box-shadow: inset 0 -5px 0 #0b5437; }   /* 5.51:1 */
.plate-page .plate-key b {
  border: 1px solid rgba(255,255,255,0.75);   /* boundary carries the 3:1, not the fill */
  width: .8rem; height: .8rem;
}
/* the current-page row in the sibling table was tinted with colour alone */
.plate-page tr[aria-current="true"] td { background: rgba(91,154,232,.16); }

/* a fixed 62px header can swallow focus when shift-tabbing upward */
html { scroll-padding-top: 74px; }

/* ---------------------------------------------------------------------------
   /mot/models/ — the A-to-Z model directory.
   Contrast is held to the same floors the plate-page block above was fixed to:
   secondary text sits at 0.62 alpha (4.5:1), never the 0.55 used elsewhere.
--------------------------------------------------------------------------- */
.mot-index-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0 0 1rem; }
.mot-index-search { flex: 1 1 260px; min-width: 0; }
.mot-index-search input {
  width: 100%; box-sizing: border-box; padding: 0.6rem 0.85rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px; color: #fff; font: inherit; font-size: 0.9rem;
}
.mot-index-search input::placeholder { color: rgba(255,255,255,0.62); }
.mot-index-search input:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.mot-index-count { margin: 0; font-size: 0.83rem; color: rgba(255,255,255,0.62); font-variant-numeric: tabular-nums; }
.mot-index-empty { margin: 1rem 0 0; font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* the jump nav — hidden by the script once the table stops being alphabetical */
.mot-az { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 0.5rem; }
.mot-az a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; min-height: 30px; padding: 0 0.35rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.85);
  text-decoration: none; font-size: 0.82rem; font-weight: 600;
}
.mot-az a:hover { border-color: var(--primary); color: #fff; }
.mot-az a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* sortable headers: the button is injected, so these rules only ever apply
   when the script ran. aria-sort on the th drives the indicator. */
button.mot-sort {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
  display: inline-flex; align-items: center; gap: 0.3rem; min-height: 30px;
}
button.mot-sort:hover { color: #fff; }
button.mot-sort:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
button.mot-sort::after { content: "\2195"; opacity: 0.45; font-size: 0.85em; }
.mot-table th[aria-sort] button.mot-sort { color: #fff; }
.mot-table th[aria-sort="ascending"] button.mot-sort::after { content: "\2191"; opacity: 1; color: var(--primary); }
.mot-table th[aria-sort="descending"] button.mot-sort::after { content: "\2193"; opacity: 1; color: var(--primary); }
.mot-table th.num button.mot-sort { justify-content: flex-end; width: 100%; }

/* van / car-and-van marker: these rows are in the same class-4 MOT but are not
   cars, and must stay visibly not-cars however the table is sorted */
.mot-tag {
  display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.4rem;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 999px;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75); vertical-align: 0.08em;
}
.mot-index-table td:first-child a { text-decoration: none; }
.mot-index-table td:first-child a:hover { text-decoration: underline; }
/* the search hides rows with the hidden attribute; a table row needs it said
   explicitly, since tr's UA display value can win over [hidden] */
.mot-index-table tr[hidden] { display: none; }
