/* VIN Decoder — MOT-style theme (modelled on mymotstatus.co.uk): bold blue, white header, rounded cards */
:root{
  --bg:#f3f6fd;--panel:#fff;--panel-2:#f7f9ff;--edge:#e3e9f6;--edge-2:#cbd6ee;
  --ink:#0f1b3d;--dim:#4b587a;--mute:#7683a3;
  --amber:#2255dd;--amber-bright:#3a6df0;--teal:#2255dd;--green:#1a9a5b;--red:#d4372a;--red-tint:#fdecea;
  --blue:#2255dd;--blue-dark:#12318f;--navy:#0b1f5c;--gold:#ffc83d;
}
body{font-family:"Inter",system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--ink)}
.wrap{max-width:1160px}
/* headings: Poppins, sentence case */
h1,h2,h3,h4,.page-head h1,.info h2,.panel-head h2,.tile h3,.verdict h3,.recall-item h4,.article-body h3,
summary,.guide-card h3,.hist-item .title,.brand b,.go,.strip dd{font-family:"Poppins","Inter",sans-serif;text-transform:none;letter-spacing:0}
.kicker,.field-label,.console-top>span,.lbl,.strip dt,.spec dt,.tile .n,.status-line,.breadcrumb,.foot-nav a,
.compare-table th,.compare-table td.field,.hist-item .meta,.guide-card .read-more,.campaign,.badge-ok,.badge-bad,.flag b{font-family:"Inter",sans-serif;letter-spacing:.04em}
.kicker{color:var(--blue);font-weight:700;font-size:.72rem}
.info h2{font-size:1.75rem;font-weight:700}
.page-head h1{font-size:clamp(1.9rem,4.5vw,2.6rem);font-weight:700;line-height:1.15}
.panel-head h2{font-size:1.35rem}.verdict h3{font-size:1.2rem}.tile h3,.guide-card h3{font-size:1.1rem}
summary{font-size:1rem;font-weight:600}
.article-body h3{font-size:1.15rem;font-weight:600}

/* ---------- Header (white bar, logo left, nav right, blue CTA) ---------- */
header{background:#fff;backdrop-filter:none;border-bottom:1px solid var(--edge);box-shadow:0 2px 14px -8px rgba(18,49,143,.25)}
.bar{height:70px}
.brand{gap:10px}
.mark{width:36px;height:36px;border-radius:9px;background:linear-gradient(145deg,var(--blue),var(--blue-dark));border:none}
.mark i{width:auto;height:auto;border-radius:0;background:none;box-shadow:none;color:#fff;font:700 .8rem/1 "Poppins",sans-serif;font-style:normal}
.brand b{font-size:1.25rem;font-weight:700;color:var(--navy)}
.brand b em{color:var(--blue)}
nav{gap:6px}
nav a{font-size:.92rem;font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink);padding:9px 14px;border-radius:8px}
nav a:hover{color:var(--blue);background:#eef3ff}
nav a.active{color:var(--blue);background:#eef3ff;font-weight:600}
nav a.cta{background:var(--blue);color:#fff;font-weight:600;margin-left:6px}
nav a.cta:hover{background:var(--blue-dark);color:#fff}
.nav-toggle{border-color:var(--edge-2);color:var(--navy);background:#fff}
@media(max-width:760px){
  .bar{height:64px}
  nav{top:64px;background:#fff;box-shadow:0 14px 24px -14px rgba(18,49,143,.35)}
  nav a{border-bottom:1px solid var(--edge);border-radius:0;padding:13px 0}
  nav a.cta{margin:10px 0 0;text-align:center;border-radius:8px;padding:13px}
}

/* ---------- Hero (blue gradient, white text) ---------- */
.hero{background:linear-gradient(160deg,#2255dd 0%,#173fb3 60%,#12318f 100%);color:#fff;padding:64px 0 0!important;position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;background:rgba(255,255,255,.07)}
.hero::after{content:"";position:absolute;left:-90px;bottom:40px;width:260px;height:260px;border-radius:50%;background:rgba(255,200,61,.10)}
.hero .wrap{position:relative;z-index:1}
.hero h1{color:#fff;font-size:clamp(2rem,5.2vw,3.1rem);line-height:1.12;font-weight:700;text-transform:none;letter-spacing:0}
.hero h1 em{color:var(--gold);font-style:normal}
.hero .sub{color:#dbe5ff;max-width:640px}
.status-line{color:#cfdcff}.status-line em{color:#fff}
.live{background:#5ff0a4;box-shadow:0 0 8px #5ff0a4}
.hero .console{border:none;border-radius:16px;box-shadow:0 24px 50px -18px rgba(5,15,60,.55);max-width:680px}
.console::before{background:linear-gradient(90deg,var(--gold),#ffdd7a,var(--gold))}
.console-top{background:#f7f9ff}
.leds i.on{background:var(--blue);box-shadow:0 0 6px rgba(34,85,221,.6)}
.vin-field{border-radius:10px;font-weight:700;color:var(--navy);border-color:var(--edge-2)}
.vin-field:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(34,85,221,.15)}
.field-label b{background:#eef3ff;color:var(--blue)}
.go{background:var(--blue);border:1px solid var(--blue-dark);color:#fff;border-radius:10px;font-size:1rem;font-weight:600;box-shadow:0 10px 22px -10px rgba(34,85,221,.7)}
.go:hover{background:var(--blue-dark);filter:none}
.go.ghost{background:#fff;color:var(--ink);border-color:var(--edge-2)}
.hero .strip{border:none;background:rgba(255,255,255,.1);border-radius:14px 14px 0 0;margin-top:40px;backdrop-filter:blur(4px)}
.hero .strip>div{border-right:1px solid rgba(255,255,255,.18)}
.hero .strip dt{color:#bcd0ff}.hero .strip dd,.hero .strip dd.hl{color:#fff}.hero .strip dd.hl{color:var(--gold)}
/* decoder pages' hero may use dark text classes — keep readable */
.hero .breadcrumb,.hero .breadcrumb a{color:#cfdcff}

/* ---------- Cards, tables, badges ---------- */
.panel,.grid3,.guide-cards,.compare-table,details,.hist-item{border-radius:14px;border-color:var(--edge);box-shadow:0 12px 30px -22px rgba(18,49,143,.35)}
.grid3,.guide-cards{box-shadow:none}
.panel-head{background:#f3f7ff}
.tile .n{color:var(--blue)}
.guide-card:hover{background:#f3f7ff}
.guide-card:hover .read-more,.model-tags a:hover{color:var(--blue-dark);border-color:var(--blue)}
.model-tags span,.model-tags a{border-radius:100px;background:#fff}
.spec>div:hover{background:#f7f9ff}
.flag{background:#fff8e6}.flag b{color:#b27800}
.compare-table th{background:#eef3ff;color:var(--blue-dark)}
.compare-table tr.diff td{background:#fff8e6}.compare-table tr.diff td.field{color:#b27800}
.scan::after{background:linear-gradient(90deg,transparent,var(--blue),transparent)}
.vin-map span.wmi{border-color:#e0b768;color:#b27800}
.legend>div:nth-child(1){border-color:#e0b768}
.vin-chip{background:#eef3ff;color:var(--blue-dark);border-color:#cbd6ee}
details summary::after,.breadcrumb a:hover{color:var(--blue)}
a{color:var(--blue)}
.article-body a,.info a{color:var(--blue);font-weight:500}

/* ---------- Footer (navy, 3 columns, rating-free) ---------- */
footer{background:var(--navy);color:#c9d6ff;border-top:none;margin-top:64px;padding:0;text-align:left}
.foot-top{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px;padding:48px 0 32px}
.foot-top .brand b{color:#fff}.foot-top .brand b em{color:var(--gold)}
.foot-top p{font-size:.88rem;line-height:1.65;color:#aebdf0;margin-top:14px;max-width:360px}
.foot-top h4{font:600 .95rem "Poppins",sans-serif;color:#fff;margin-bottom:14px}
.foot-top ul{list-style:none;display:grid;gap:9px}
.foot-top a{color:#c9d6ff;text-decoration:none;font-size:.9rem}
.foot-top a:hover{color:var(--gold)}
.foot-bottom{border-top:1px solid rgba(255,255,255,.14);padding:22px 0 30px}
footer .disclaimer{color:#98a9e0;text-align:left;margin:0 0 10px;max-width:none;font-size:.76rem}
footer .disclaimer:last-child{margin:0;color:#c9d6ff}
@media(max-width:760px){.foot-top{grid-template-columns:1fr;gap:26px;padding:36px 0 22px}}

/* ===== v2: centered-logo header + slide-in toggle menu + blue footer (mymotstatus style) ===== */
header .bar{display:flex;align-items:center;justify-content:center;gap:6px;height:76px;position:relative}
header nav{display:contents}
header nav a{order:1;font-weight:500}
header nav a:nth-of-type(n+4){order:3}
header .brand{order:2;margin:0 26px}
.mark{width:40px;height:40px;border-radius:50%}
.nav-toggle{display:none;order:4}
nav a.cta{background:none;color:var(--ink);margin:0}
nav a.cta:hover{background:#eef3ff;color:var(--blue)}
nav a.cta.active{background:#eef3ff;color:var(--blue)}
.nav-close,.nav-scrim{display:none}
@media(max-width:980px){
  header .bar{justify-content:space-between}
  header .brand{order:0;margin:0}
  .nav-toggle{display:grid;place-items:center;width:44px;height:44px;padding:0;border:none;border-radius:10px;background:var(--blue);color:#fff;font-size:1.35rem;cursor:pointer}
  header nav{display:flex;position:fixed;top:0;right:0;bottom:0;width:min(320px,86vw);z-index:60;flex-direction:column;align-items:stretch;gap:0;
    background:#fff;padding:78px 22px 24px;transform:translateX(105%);transition:transform .25s ease;box-shadow:-18px 0 40px -20px rgba(11,31,92,.5);overflow-y:auto}
  header nav.open{transform:none}
  header nav a,header nav a:nth-of-type(n+4){order:0;padding:15px 4px;border-bottom:1px solid var(--edge);border-radius:0;font-size:1rem;background:none}
  header nav a.active{background:none;color:var(--blue)}
  .nav-close{display:grid;place-items:center;position:absolute;top:16px;right:16px;width:40px;height:40px;border:1px solid var(--edge-2);border-radius:10px;background:#fff;font-size:1.3rem;color:var(--navy);cursor:pointer}
  .nav-scrim{position:fixed;inset:0;z-index:55;background:rgba(11,31,92,.45);opacity:0;pointer-events:none;transition:opacity .25s}
  .nav-scrim.show{display:block;opacity:1;pointer-events:auto}
}
@media(prefers-reduced-motion:reduce){header nav{transition:none}}

footer{background:var(--blue);color:#e6edff;text-align:center;margin-top:64px}
.foot-center{padding:46px 0 26px;display:flex;flex-direction:column;align-items:center;gap:20px}
footer .brand b{color:#fff}footer .brand b em{color:var(--gold)}
footer .mark{background:#fff}footer .mark i{color:var(--blue)}
.foot-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 26px}
.foot-links a{color:#fff;text-decoration:none;font-size:.95rem;font-weight:500}
.foot-links a:hover{color:var(--gold)}
.foot-tag{max-width:520px;font-size:.9rem;color:#cfdcff;line-height:1.6}
.foot-bottom{border-top:1px solid rgba(255,255,255,.22);padding:22px 0 30px;text-align:center}
footer .disclaimer{color:#cfdcff;text-align:center;margin:0 auto 10px;max-width:760px}
footer .disclaimer:last-child{margin:0;color:#fff;font-weight:500}

/* ===== v3: 3-line toggle menu on every screen size (mymotstatus style) ===== */
header .bar{justify-content:space-between;height:70px}
header .brand{order:0;margin:0}
.nav-toggle{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;padding:0;border:none;border-radius:10px;background:transparent;color:transparent;font-size:0;cursor:pointer}
.nav-toggle::before{content:"";width:26px;height:3px;border-radius:3px;background:var(--blue);box-shadow:0 8px 0 var(--blue),0 -8px 0 var(--blue)}
.nav-toggle:hover{background:#eef3ff}
header nav{display:flex;position:fixed;top:0;right:0;bottom:0;width:min(340px,88vw);z-index:60;flex-direction:column;align-items:stretch;gap:0;
  background:#fff;padding:78px 22px 24px;transform:translateX(105%);transition:transform .25s ease;box-shadow:-18px 0 40px -20px rgba(11,31,92,.5);overflow-y:auto}
header nav.open{transform:none}
header nav a,header nav a:nth-of-type(n+4){order:0;padding:15px 4px;border-bottom:1px solid var(--edge);border-radius:0;font-size:1rem;background:none}
header nav a:hover{background:none;color:var(--blue)}
header nav a.active{background:none;color:var(--blue);font-weight:600}
.nav-close{display:grid;place-items:center;position:absolute;top:16px;right:16px;width:40px;height:40px;border:1px solid var(--edge-2);border-radius:10px;background:#fff;font-size:1.3rem;color:var(--navy);cursor:pointer}
.nav-scrim{display:block;position:fixed;inset:0;z-index:55;background:rgba(11,31,92,.45);opacity:0;pointer-events:none;transition:opacity .25s}
.nav-scrim.show{opacity:1;pointer-events:auto}

/* ===== v4: fix closed drawer peeking at screen edge ===== */
header nav{left:auto;right:0;max-width:88vw;visibility:hidden;box-shadow:none;transition:transform .25s ease,visibility 0s .25s}
header nav.open{visibility:visible;box-shadow:-18px 0 40px -20px rgba(11,31,92,.5);transition:transform .25s ease,visibility 0s}
html,body{overflow-x:hidden}

/* ===== v5: top-down dropdown menu ===== */
header{position:sticky;top:0;z-index:70}
header nav{top:70px;left:0;right:0;bottom:auto;width:auto;max-width:none;max-height:calc(100vh - 70px);
  padding:6px max(22px,calc((100vw - 1160px)/2)) 16px;transform:translateY(-14px);opacity:0;visibility:hidden;
  border-top:1px solid var(--edge);box-shadow:none;transition:transform .22s ease,opacity .22s ease,visibility 0s .22s}
header nav.open{transform:none;opacity:1;visibility:visible;box-shadow:0 22px 30px -22px rgba(11,31,92,.45);transition:transform .22s ease,opacity .22s ease,visibility 0s}
header nav a,header nav a:nth-of-type(n+4){padding:15px 4px}
header nav a:last-of-type{border-bottom:none}
.nav-close{display:none!important}
.nav-scrim{top:70px;z-index:55}
/* 3 lines -> X when open */
header:has(nav.open) .nav-toggle::before{height:3px;box-shadow:none;background:transparent}
header:has(nav.open) .nav-toggle::after{content:"";position:absolute;width:26px;height:3px;border-radius:3px;background:var(--blue);transform:rotate(45deg);box-shadow:none}
header:has(nav.open) .nav-toggle{position:relative}
header:has(nav.open) .nav-toggle::before{content:"";position:absolute;width:26px;height:3px;border-radius:3px;background:var(--blue);transform:rotate(-45deg)}

/* guide pages: compact tables on phones */
@media(max-width:600px){.compare-table th,.compare-table td{padding:10px 8px;font-size:.82rem;word-break:normal}.compare-table{min-width:0}}
