/* BabyCarFit — road-sign navy, number-plate yellow, one wide family */
:root {
  --yellow: #ffd23f;
  --yellow-deep: #f5c400;
  --navy: #14213d;
  --navy-2: #233457;
  --sky: #eaf1fb;
  --paper: #ffffff;
  --line: #d3dcea;
  --muted: #4a5a78;
  --fit: #0f6e3b;
  --fit-bg: #e3f5ea;
  --tight: #8a5200;
  --tight-bg: #fff1d6;
  --no: #a8281f;
  --no-bg: #fde6e4;
  --radius: 20px;
  --pink: #ff8fb1;
  --pink-soft: #ffe3ec;
  --wrap: 1120px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow-deep); }
a:hover { text-decoration-color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.measure { max-width: 68ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--yellow); padding: 8px 12px; z-index: 10; }

/* Type */
h1, h2, h3, .display {
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; font-stretch: 112%; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--navy-2); max-width: 60ch; }
.small { font-size: 0.92rem; color: var(--muted); }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 40px; height: 40px; }
.logo-word { font-stretch: 125%; font-weight: 900; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--navy); }
.logo-word b { font-weight: 900; background: var(--yellow); padding: 0 5px; border-radius: 5px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; padding: 6px 2px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--yellow-deep); }

/* Hero (home) */
.hero { background: var(--yellow); padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); max-width: 12ch; }
.hero .lead { color: var(--navy); }

/* Checker */
.checker { background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: 0 0 0 3px var(--navy); }
.checker-row { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
@media (min-width: 560px) { .checker-row { grid-template-columns: 1fr 1fr; } }
label.field { display: block; font-weight: 700; font-size: 0.95rem; }
select {
  width: 100%; margin-top: 6px; font: inherit; font-size: 1rem; color: var(--navy);
  padding: 12px 40px 12px 12px; border: 2px solid var(--navy); border-radius: 10px; background: var(--paper);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2314213d' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.checker-out { min-height: 120px; }
.checker-out .empty { color: var(--muted); margin: 6px 0 0; }
.checker-link { display: inline-block; margin-top: 10px; font-weight: 700; }

/* Verdict */
.verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 4px 0 8px; }
.verdict-word { font-stretch: 125%; font-weight: 900; font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); line-height: 1; padding: 6px 16px 10px; border-radius: 12px; }
.v-fits .verdict-word { background: var(--fit-bg); color: var(--fit); }
.v-tight .verdict-word { background: var(--tight-bg); color: var(--tight); }
.v-no .verdict-word { background: var(--no-bg); color: var(--no); }
.v-unknown .verdict-word { background: var(--sky); color: var(--muted); }
.verdict-why { font-weight: 600; max-width: 46ch; }
.basis { font-size: 0.9rem; color: var(--muted); }

.pill { display: inline-block; font-weight: 800; font-size: 0.85rem; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pill.v-fits { background: var(--fit-bg); color: var(--fit); }
.pill.v-tight { background: var(--tight-bg); color: var(--tight); }
.pill.v-no { background: var(--no-bg); color: var(--no); }
.pill.v-unknown { background: var(--sky); color: var(--muted); }

/* Page head (inner pages) */
.page-head { background: var(--yellow); padding: 28px 0 36px; border-bottom: 3px solid var(--navy); }
.page-head h1 { max-width: 22ch; }
.page-head .lead { color: var(--navy); }
.page-head .basis { color: var(--navy-2); }
.crumbs { font-size: 0.9rem; margin-bottom: 14px; color: var(--navy-2); }
.crumbs a { color: var(--navy); text-decoration-color: var(--navy); text-decoration-thickness: 1px; }
.crumbs span[aria-hidden] { margin: 0 6px; }

main { padding-bottom: 64px; }
section { margin-top: 8px; }

/* Answer block: spec table + drawing */
.answer { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 28px; align-items: start; }
@media (min-width: 900px) { .answer { grid-template-columns: 1fr 1.1fr; } }
.big-number { font-stretch: 125%; font-weight: 900; font-size: clamp(3rem, 2rem + 4vw, 4.8rem); line-height: 1; }
.big-number small { font-size: 0.35em; font-weight: 700; font-stretch: 100%; margin-left: 6px; }

table.spec { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 1rem; }
table.spec th, table.spec td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-weight: 600; color: var(--navy-2); width: 55%; }
table.spec thead th, table.compare th { width: auto; }
table.spec td { white-space: nowrap; }
table.spec thead th { font-size: 0.9rem; color: var(--muted); border-bottom: 2px solid var(--navy); }
table.spec td { font-weight: 800; }
table.spec td.na { font-weight: 500; color: var(--muted); }
.table-scroll { overflow-x: auto; }

.drawing { background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius); padding: 14px; }
.drawing figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }

/* Verdict lists (rows, not cards) */
.vlist { list-style: none; padding: 0; margin: 12px 0; border-top: 2px solid var(--navy); }
.vlist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.vlist .name { font-weight: 700; grid-column: 1; grid-row: 1; }
.vlist .pill { grid-column: 2; grid-row: 1; justify-self: end; }
.vlist .meta { grid-column: 1 / -1; grid-row: 2; font-size: 0.9rem; color: var(--muted); }
@media (min-width: 760px) {
  .vlist li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; }
  .vlist .meta { grid-column: 2; grid-row: 1; }
  .vlist .pill { grid-column: 3; }
}

/* Index lists */
.cols { columns: 1; column-gap: 32px; padding: 0; list-style: none; }
@media (min-width: 640px) { .cols { columns: 2; } }
@media (min-width: 960px) { .cols { columns: 3; } }
.cols li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cols li a { font-weight: 700; text-decoration: none; }
.cols li a:hover { text-decoration: underline; }
.cols li span { display: block; font-size: 0.88rem; color: var(--muted); }

.band { background: var(--navy); color: var(--paper); padding: 40px 0; margin-top: 56px; }
.band a { color: var(--yellow); }
.band h2 { margin-top: 0; }
main > .band:last-child { margin-bottom: -64px; }

.note { background: var(--sky); border-left: 6px solid var(--yellow-deep); padding: 14px 18px; border-radius: 8px; margin: 20px 0; }
.sources { font-size: 0.9rem; color: var(--muted); }
.sources h2 { color: var(--navy); }
.sources a { color: var(--muted); word-break: break-word; }

.btn { display: inline-block; background: var(--navy); color: var(--paper); text-decoration: none; font-weight: 800; padding: 12px 18px; border-radius: 10px; }
.btn:hover { background: var(--navy-2); }

/* Footer */
.site-foot { background: var(--navy); color: #c9d3e6; padding: 40px 0; font-size: 0.95rem; }
.site-foot a { color: var(--paper); }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot .logo-word { color: var(--paper); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 4px 0; }

@media (prefers-reduced-motion: no-preference) {
  .checker-out .verdict-word { animation: pop .28s ease-out; }
  @keyframes pop { from { transform: scale(.9); opacity: .2; } to { transform: none; opacity: 1; } }
}

/* Hero checker drawing */
.checker-draw { margin-top: 14px; }
.checker-draw svg { width: 100%; }

/* Search */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search { position: relative; }
.search input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy); background: var(--paper);
  border: 2px solid var(--navy); border-radius: 10px; padding: 10px 12px 10px 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%2314213d' stroke-width='2.5'/%3E%3Cpath d='M15.5 15.5L21 21' stroke='%2314213d' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center;
}
.search-head { flex: 1 1 260px; max-width: 360px; order: 3; }
.search-head input { padding-top: 8px; padding-bottom: 8px; border-width: 2px; }
@media (max-width: 820px) { .search-head { order: 4; flex-basis: 100%; max-width: none; margin-bottom: 12px; } }
.search-hero { margin: 22px 0 14px; max-width: 30rem; }
.search-hero input { margin-top: 6px; padding-top: 14px; padding-bottom: 14px; font-size: 1.05rem; }
.search-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px;
  background: var(--paper); border: 2px solid var(--navy); border-radius: 12px; box-shadow: 0 10px 24px rgba(20,33,61,.18);
  max-height: 70vh; overflow-y: auto;
}
.search-list a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; }
.search-list li.on a, .search-list a:hover { background: var(--sky); }
.s-type { grid-row: span 2; align-self: start; font-size: 0.75rem; font-weight: 800; background: var(--yellow); border-radius: 6px; padding: 2px 7px; margin-top: 2px; }
.s-t { font-weight: 700; }
.s-sub { font-size: 0.85rem; color: var(--muted); }
.s-empty { padding: 10px; color: var(--muted); font-size: 0.95rem; }

/* Number-plate tiles for the headline measurements */
.plates { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.plate {
  display: flex; flex-direction: column; gap: 2px; min-width: 8.5rem;
  background: var(--paper); border: 3px solid var(--navy); border-radius: 10px; padding: 10px 16px 12px;
}
.plate-num { font-stretch: 125%; font-weight: 900; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1; }
.plate-unit { font-size: 0.45em; font-weight: 700; font-stretch: 100%; margin-left: 4px; }
.plate-label { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
@media (max-width: 420px) { .plate { min-width: calc(50% - 6px); flex: 1 1 calc(50% - 6px); } }

/* Stronger tables */
table.spec thead th { background: var(--navy); color: var(--paper); border-bottom: 0; font-size: 0.9rem; padding: 10px; }
table.spec thead th:first-child { border-radius: 8px 0 0 0; }
table.spec thead th:last-child { border-radius: 0 8px 0 0; }
table.spec tbody tr:nth-child(even) { background: #f6f9fd; }
table.spec tbody th a { font-weight: 800; }

.drawing { border-width: 3px; }
.page-head .verdict-word { background: var(--paper) !important; border: 3px solid currentColor; }

/* Playful layer: softer pink accent, rounder shapes, one drop-in moment */
.tagline { font-stretch: 112%; font-weight: 800; font-size: 1.25rem; margin: -6px 0 14px; display: inline-block; background: var(--pink-soft); border: 2px solid var(--navy); border-radius: 999px; padding: 4px 16px; transform: rotate(-1.5deg); }
.checker { border-radius: 24px; }
select, .search input { border-radius: 14px; }
.verdict-word { border-radius: 999px; padding: 6px 22px 10px; }
.plate { border-radius: 16px; }
.pill { padding: 3px 12px; }
.drawing { border-radius: 24px; }
.s-type { background: var(--pink-soft); }
.btn { border-radius: 999px; }
.note { border-left-color: var(--pink); border-radius: 14px; }
a { text-decoration-color: var(--pink); }
.band a, .site-foot a { text-decoration-color: var(--pink); }
.vlist { border-top-width: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .pram-box { transform-box: fill-box; transform-origin: 50% 0%; }
  .pram-box.pv-fits { animation: drop-fit .7s cubic-bezier(.3,1.4,.5,1) both; }
  .pram-box.pv-tight { animation: drop-tight .8s ease-out both; }
  .pram-box.pv-no { animation: drop-no .8s ease-out both; }
  @keyframes drop-fit { 0% { transform: translateY(-60%); opacity: 0; } 60% { transform: translateY(4%); opacity: 1; } 100% { transform: none; } }
  @keyframes drop-tight { 0% { transform: translateY(-60%); opacity: 0; } 50% { transform: translateY(0) scaleX(1.06); opacity: 1; } 75% { transform: scaleX(.97); } 100% { transform: none; } }
  @keyframes drop-no { 0% { transform: translateY(-60%); opacity: 0; } 45% { transform: translateY(0); opacity: 1; } 60% { transform: translateX(-3%); } 75% { transform: translateX(3%); } 90% { transform: translateX(-1.5%); } 100% { transform: none; } }
}

/* Number-plate logo */
.plate-logo { display: inline-flex; align-items: stretch; height: 44px; background: var(--yellow); border: 3px solid var(--navy); border-radius: 10px; overflow: hidden; text-decoration: none; flex-shrink: 0; }
.plate-logo .plate-band { background: var(--navy); width: 38px; display: flex; align-items: center; justify-content: center; }
.plate-logo .plate-band svg { width: 25px; height: 21px; }
.plate-logo .word { display: flex; align-items: center; padding: 0 13px 2px; color: var(--navy); font-stretch: 125%; font-weight: 900; font-size: 1.4rem; letter-spacing: 0.01em; line-height: 1; }
.plate-logo:hover .word { color: var(--navy-2); }
.plate-on-navy { border-color: var(--yellow); }
.plate-on-navy .plate-band { border-right: 3px solid var(--yellow); }
@media (max-width: 480px) {
  .plate-logo { height: 36px; border-width: 2.5px; border-radius: 8px; }
  .plate-logo .plate-band { width: 30px; }
  .plate-logo .plate-band svg { width: 20px; height: 17px; }
  .plate-logo .word { font-size: 1.1rem; padding: 0 10px 2px; }
}

.site-head .wrap { padding-top: 12px; padding-bottom: 8px; }

/* Articles (guides) */
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 18px 0 0; font-size: 0.95rem; font-weight: 600; }
.byline-mark { display: inline-flex; width: 30px; height: 30px; background: var(--navy); border-radius: 8px; align-items: center; justify-content: center; }
.byline-mark svg { width: 20px; height: 17px; }
.byline a { color: var(--navy); }
.article { padding-top: 12px; }
.article > * { max-width: 70ch; }
.article > .wide { max-width: none; }
.article p, .article li { font-size: 1.08rem; line-height: 1.7; }
.article h2 { margin-top: 1.6em; }
.article h3 { font-size: 1.35rem; font-stretch: 118%; margin-top: 0; }
.pick { border-top: 3px solid var(--navy); padding-top: 18px; margin-top: 36px; }
.pick-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.pick-tag { display: inline-block; font-size: 0.85rem; font-weight: 800; background: var(--pink-soft); border: 2px solid var(--navy); border-radius: 999px; padding: 2px 12px; margin-bottom: 8px; }
.pick-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 6px 0 14px; padding: 0; list-style: none; }
.pick-facts li { font-size: 0.92rem; font-weight: 700; background: var(--sky); border-radius: 999px; padding: 4px 12px; line-height: 1.4; }
.said { margin: 18px 0; padding: 0 0 0 0; }
.said blockquote { margin: 0; font-stretch: 112%; font-weight: 700; font-size: 1.2rem; line-height: 1.45; }
.said blockquote::before { content: "\201C"; color: var(--pink); font-size: 2.6rem; line-height: 0; vertical-align: -0.45em; margin-right: 4px; font-weight: 900; }
.said figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }
.verdict-line { font-weight: 700; }
.article .sources ul { padding-left: 1.2em; }

/* Imperial alongside metric */
.plate-alt { display: block; font-weight: 600; color: var(--muted); }
table.spec td .in { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
