/* decodemyclassic.com — site styles */
:root {
  --night: #0e1a36;      /* LeMans Blue after dark */
  --night-2: #172646;
  --ink: #18202f;
  --muted: #56606f;
  --paper: #eef0f1;
  --card: #ffffff;
  --line: #d3d8dd;
  --alum-hi: #eef0f2;
  --alum-mid: #c9ced3;
  --alum-lo: #a2a9b0;
  --stamp: #2a2f36;
  --hugger: #ee5a1c;     /* 72 Hugger Orange */
  --stripe: #f8f8f4;
  --ok: #2d7a4c;
  --warn: #a8660f;
  --bad: #b3261e;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: #1d4ed8; text-underline-offset: 3px; }
a:hover { color: var(--hugger); }
:focus-visible { outline: 3px solid var(--hugger); outline-offset: 3px; border-radius: 2px; }
.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; }
.skip { position: absolute; left: -999px; top: 0; background: var(--hugger); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); }

/* ---------------- masthead + hero ---------------- */
.top {
  position: relative;
  background: var(--night);
  color: var(--stripe);
  overflow: hidden;
  isolation: isolate;
}
/* the twin Z28 hood stripes */
.top::before, .top::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 46px;
  background: var(--stripe);
  z-index: -1;
}
.top::before { right: calc(max(1.25rem, (100vw - var(--wrap)) / 2) + 20px); }
.top::after  { right: calc(max(1.25rem, (100vw - var(--wrap)) / 2) + 84px); }

.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .1rem;
  font: 800 1.9rem/1 var(--display);
  letter-spacing: .01em;
  color: var(--stripe);
  text-decoration: none;
}
.brand:hover { color: var(--stripe); }
.brand small { font: 600 .95rem/1 var(--body); color: #9fb0cf; margin-left: .15rem; }
.nav { margin-right: 150px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.menu > li { position: relative; }
.menu a, .menu-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 500 1rem/1.2 var(--body);
  color: #c9d4ea; text-decoration: none;
  background: none; border: 0; cursor: pointer;
  padding: .5rem .8rem; border-radius: 6px;
}
.menu a:hover, .menu-btn:hover { color: #fff; background: var(--night-2); }
.menu > li > a[aria-current="page"], .menu-btn.is-current { color: #fff; box-shadow: inset 0 -3px 0 var(--hugger); border-radius: 0; }
.caret { width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.menu-btn[aria-expanded="true"] .caret { transform: translateY(1px) rotate(225deg); }
.submenu {
  list-style: none; margin: .35rem 0 0; padding: .4rem;
  position: absolute; left: 0; top: 100%; z-index: 20; min-width: 14rem;
  background: #fff; border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.submenu a { display: block; color: var(--ink); padding: .6rem .8rem; }
.submenu a:hover { background: var(--paper); color: var(--ink); }
.submenu a[aria-current="page"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--hugger); border-radius: 0 6px 6px 0; }

.hero { padding: 2.5rem 0 3.5rem; }
.hero h1 {
  font: 800 clamp(2.6rem, 6.5vw, 4.6rem)/.95 var(--display);
  margin: 0 0 .9rem;
  max-width: 13ch;
}
.hero .lede { max-width: 60ch; color: #c9d4ea; margin: 0 0 2rem; font-size: 1.1rem; }

/* ---------------- VIN plate ---------------- */
.plate {
  position: relative;
  max-width: 880px;
  margin-right: 170px;
  padding: 1.4rem 1.6rem 1.2rem;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--alum-hi), var(--alum-mid) 55%, var(--alum-lo));
  color: var(--stamp);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 -2px 0 rgba(0,0,0,.18) inset, 0 18px 40px rgba(0,0,0,.35);
}
.plate .rivet, .tag .rivet {
  position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fdfdfd, #8d949b 60%, #5d636a);
  box-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.plate .rivet.l { left: 12px; } .plate .rivet.r { right: 12px; }
.plate-label { display: block; font-weight: 600; font-size: .95rem; margin: 0 0 .4rem; padding-left: 1rem; }
.plate-entry { display: flex; gap: .6rem; padding-inline: 1rem; flex-wrap: wrap; }
.plate-entry input {
  flex: 1 1 18rem; min-width: 0;
  font: 500 clamp(1.25rem, 3.4vw, 1.9rem)/1 var(--mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--stamp);
  background: rgba(255,255,255,.55);
  border: 2px solid #7d858d; border-radius: 6px;
  padding: .7rem .8rem;
}
.plate-entry input::placeholder { color: #8a9098; letter-spacing: .12em; }
.plate-entry input:focus { outline: none; border-color: var(--hugger); background: #fff; }
.btn {
  font: 700 1.15rem/1 var(--display); letter-spacing: .02em;
  border: 0; border-radius: 6px; cursor: pointer;
  padding: .85rem 1.4rem;
  background: var(--hugger); color: #fff;
}
.btn:hover { background: #d94c10; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:hover { background: rgba(0,0,0,.06); }

.cells {
  display: grid; grid-template-columns: repeat(var(--n, 13), minmax(0, 2.4rem)); gap: 3px;
  margin: 1rem 1rem .2rem;
}
.cell {
  display: grid; justify-items: center;
  min-width: 0; padding: .35rem 0 .2rem;
  border-radius: 4px;
  background: rgba(0,0,0,.05);
  transition: background .15s;
}
.cell b {
  font: 600 1.35rem/1 var(--mono); color: #9aa1a8;
  text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 -1px 0 rgba(0,0,0,.25);
}
.cell.filled b { color: var(--stamp); }
.cell i { font: 500 .66rem/1.3 var(--body); font-style: normal; color: #5f666e; margin-top: .2rem; }
.cell.is-warn { box-shadow: inset 0 -3px 0 var(--warn); }
.cell.is-bad { box-shadow: inset 0 -3px 0 var(--bad); }
.cell.is-hot { background: var(--hugger); }
.cell.is-hot b, .cell.is-hot i { color: #fff; text-shadow: none; }
.plate-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #4b525a; padding: .3rem 1rem 0; }

.examples { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.4rem; }
.examples > span { color: #9fb0cf; font-size: .95rem; margin-right: .2rem; }
.chip {
  font: 500 .92rem/1 var(--body);
  background: var(--night-2); color: #e5ebf6;
  border: 1px solid #2d3f66; border-radius: 999px;
  padding: .5rem .85rem; cursor: pointer;
}
.chip:hover { border-color: var(--hugger); color: #fff; }

/* ---------------- Turnstile gate ---------------- */
.gate {
  display: grid; grid-template-columns: 1fr minmax(260px, 340px); align-items: center; gap: .8rem 1.6rem;
  max-width: 880px; margin: 0 170px 1.4rem 0; padding: 1.1rem 1.3rem;
  background: var(--stripe); color: var(--ink);
  border-radius: 10px; border-left: 8px solid var(--hugger);
}
.gate[hidden] { display: none; }
.gate h2 { font: 800 1.5rem/1.1 var(--display); margin: 0 0 .25rem; }
.gate p { margin: 0; }
.gate-widget { min-height: 65px; }
.gate-status { grid-column: 1 / -1; font-size: .95rem; color: var(--muted); }
.gate-status:empty { display: none; }
.gate-status.is-bad { color: var(--bad); font-weight: 600; }
.is-locked { opacity: .45; filter: grayscale(.4); pointer-events: none; }
@media (max-width: 900px) { .gate { margin-right: 0; grid-template-columns: 1fr; } }

/* ---------------- results ---------------- */
.car-card {
  background: var(--night); color: var(--stripe);
  border-radius: 10px; padding: 1.3rem 1.5rem 1.2rem; margin-bottom: 1rem;
}
.car-card h2 { font: 800 clamp(1.9rem, 4vw, 2.7rem)/1 var(--display); margin: .15rem 0 .45rem; }
.car-card p { margin: 0; color: #c9d4ea; max-width: 72ch; }
.car-card .verdict-tag { color: #f59a6e; font-weight: 600; font-size: .9rem; }
.verdict h3 { font: 800 clamp(1.4rem, 3vw, 1.9rem)/1.05 var(--display); margin: .1rem 0 .45rem; }
main { padding: 2.5rem 0 4rem; }
.result { outline: none; }
.result[hidden] { display: none; }
.verdict {
  position: relative;
  background: var(--card);
  border-left: 8px solid var(--muted);
  border-radius: 0 10px 10px 0;
  padding: 1.3rem 1.5rem 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 0 var(--line);
}
.verdict h2 { font: 800 clamp(1.7rem, 3.6vw, 2.4rem)/1.05 var(--display); margin: .1rem 0 .5rem; }
.verdict p { margin: 0; max-width: 72ch; }
.verdict .verdict-tag { font-weight: 600; font-size: .9rem; color: var(--muted); }
.lvl-strong { border-color: var(--ok); } .lvl-strong .verdict-tag { color: var(--ok); }
.lvl-consistent, .lvl-possible { border-color: var(--hugger); } .lvl-consistent .verdict-tag, .lvl-possible .verdict-tag { color: #c2440f; }
.lvl-not { border-color: var(--bad); } .lvl-not .verdict-tag { color: var(--bad); }
.lvl-unknown, .lvl-unsupported { border-color: var(--warn); } .lvl-unknown .verdict-tag, .lvl-unsupported .verdict-tag { color: var(--warn); }

.summary { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; margin: 0 0 1.5rem; }
.summary p { margin: 0; display: grid; }
.summary span { font-size: .85rem; color: var(--muted); }
.summary strong { font-size: 1.15rem; }

.table-wrap { overflow-x: auto; background: var(--card); border-radius: 10px; box-shadow: 0 1px 0 var(--line); }
.breakdown { width: 100%; border-collapse: collapse; min-width: 560px; }
.breakdown caption { text-align: left; font: 700 1.3rem/1.2 var(--display); padding: 1.1rem 1.2rem .6rem; }
.breakdown th, .breakdown td { text-align: left; vertical-align: top; padding: .75rem 1.2rem; border-top: 1px solid var(--line); }
.breakdown thead th { font-size: .85rem; font-weight: 600; color: var(--muted); border-top: 0; padding-block: .4rem; }
.breakdown tbody th { font-weight: 600; white-space: nowrap; width: 1%; }
.breakdown .ch { font: 600 1.05rem/1.4 var(--mono); white-space: nowrap; width: 1%; }
.breakdown tbody tr:hover { background: #fff6f1; }
.breakdown tr.is-warn td:last-child { box-shadow: inset 4px 0 0 var(--warn); }
.breakdown tr.is-bad td:last-child { box-shadow: inset 4px 0 0 var(--bad); }
.breakdown tr.is-warn td:last-child, .breakdown tr.is-bad td:last-child { padding-left: 1.5rem; }
.breakdown .detail { display: block; color: var(--muted); font-size: .95rem; margin-top: .2rem; }
.key {
  display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--stamp); color: #fff; font: 700 .95rem/1 var(--display);
}

.notes { margin-top: 1.5rem; max-width: 75ch; }
.notes h3 { font: 700 1.3rem/1.2 var(--display); margin: 0 0 .4rem; }
.notes ul { margin: 0; padding-left: 1.2rem; }
.notes li + li { margin-top: .4rem; }
.next { margin-top: 1.5rem; }
.notice { background: #fff; border-left: 6px solid var(--bad); padding: .9rem 1.2rem; border-radius: 0 8px 8px 0; }
.notice p { margin: 0; }

/* ---------------- guide sections ---------------- */
.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem 3rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 2px solid var(--ink); }
.guide h2 { font: 800 1.7rem/1.1 var(--display); margin: 0 0 .5rem; }
.guide p { margin: 0 0 .7rem; max-width: 60ch; }
.guide dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; }
.guide dt { font-weight: 600; white-space: nowrap; }
.guide dd { margin: 0; color: var(--muted); }

/* ---------------- trim tag ---------------- */
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.4rem; }
.tabs button {
  font: 700 1.35rem/1 var(--display);
  background: transparent; color: #c9d4ea;
  border: 2px solid #34466e; border-radius: 6px;
  padding: .5rem 1.05rem; cursor: pointer;
}
.tabs button:hover { color: #fff; border-color: #6d82ad; }
.tabs button[aria-selected="true"] { background: var(--stripe); color: var(--night); border-color: var(--stripe); }
.tab-soon { color: #8596b8; font-size: .9rem; margin-left: .5rem; }

.tag-stage { margin-right: 170px; }
.tag {
  position: relative;
  max-width: 860px;
  padding: 1.1rem 3.4rem 1rem;
  clip-path: polygon(0 12%, 3% 12%, 3% 0, 97% 0, 97% 12%, 100% 12%, 100% 88%, 97% 88%, 97% 100%, 3% 100%, 3% 88%, 0 88%);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #e9ecee, #c2c8cd 60%, #a9b0b6);
  color: var(--stamp);
}
.tag .rivet { width: 26px; height: 26px; margin-top: -13px; background: radial-gradient(circle at 40% 40%, var(--night) 55%, #0a1226); box-shadow: inset 0 2px 3px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.6); }
.tag .rivet.l { left: 16px; } .tag .rivet.r { right: 16px; }
.tag-print {
  text-align: center; margin: 0; color: #4a5058;
  font: 600 .82rem/1.35 var(--body); letter-spacing: .04em;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.tag-print.tag-head { font-size: .95rem; margin-bottom: .6rem; }
.tag-print.tag-foot { font-size: .72rem; max-width: 46ch; margin: .8rem auto 0; }
.tag[data-year="1967"] .tag-print.tag-foot { font-size: .9rem; }
.tag-row { display: flex; align-items: flex-end; gap: .55rem; flex-wrap: wrap; margin-top: .55rem; }
.tag-label {
  font: 600 1.45rem/1 var(--mono); padding-bottom: .45rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 -1px 0 rgba(0,0,0,.25);
}
.tag-gap { flex: 1 1 1rem; }
.tag-field { position: relative; display: block; padding-top: 1.35rem; }
.tag-field .callout {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 .82rem/1 var(--display); color: #fff; background: #bf2e1f;
}
.tag-field input {
  width: calc(var(--w, 6ch) + .8rem + 4px);
  max-width: 100%;
  font: 600 1.45rem/1 var(--mono); text-transform: uppercase;
  color: var(--stamp);
  background: rgba(255,255,255,.62);
  border: 2px solid #7d858d; border-radius: 4px;
  padding: .35rem .4rem;
}
.tag-field.wide { flex: 1 1 100%; }
.tag-field.wide input { width: 100%; }
.tag-field input::placeholder { color: #9aa0a7; }
.tag-field input:focus { outline: none; border-color: var(--hugger); background: #fff; }
.tag-field.is-hot input { border-color: var(--hugger); background: #fff1e9; }
.tag-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.tag-actions .btn.ghost { color: var(--stripe); }
.tag-actions .btn.ghost:hover { background: var(--night-2); }
.legend { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: #c9d4ea; font-size: .95rem; }
.legend b { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #bf2e1f; color: #fff; font: 800 .78rem/1 var(--display); margin-right: .25rem; }
.legend em { color: #8596b8; font-style: normal; }

/* ---------------- homepage ---------------- */
.home-hero h1 { max-width: 11ch; }
.stamp-line {
  display: inline-flex; flex-wrap: wrap; gap: 3px; margin: .2rem 0 0;
  padding: .7rem .9rem; border-radius: 8px;
  background: linear-gradient(180deg, var(--alum-hi), var(--alum-mid) 55%, var(--alum-lo));
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.stamp-line span {
  font: 600 1.35rem/1 var(--mono); color: var(--stamp);
  background: rgba(0,0,0,.05); border-radius: 4px; padding: .35rem .3rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 -1px 0 rgba(0,0,0,.25);
}
.stamp-line span.gap { background: none; width: .6rem; padding: 0; }
.directory-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.2rem; }
.directory-head h2 { font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--display); margin: 0; }
.directory-head p { margin: 0; color: var(--muted); }
.make { border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(10rem, 1fr) 3fr; gap: 1rem 2rem; padding: 1.2rem 0 1.6rem; }
.make h3 { font: 800 2rem/1 var(--display); margin: 0; }
.make ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.model { background: var(--card); border-radius: 10px; padding: 1.1rem 1.3rem; box-shadow: 0 1px 0 var(--line); }
.model-name { font: 800 1.7rem/1.1 var(--display); color: var(--ink); text-decoration: none; }
.model-name:hover { color: var(--hugger); }
.model-name .yrs { color: var(--hugger); }
.model p { margin: .35rem 0 0; max-width: 62ch; }
.model .tools { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .7rem; }
.model .tools a { font-weight: 600; }
@media (max-width: 640px) { .make { grid-template-columns: 1fr; } }

/* ---------------- section overview ---------------- */
.quick-vin { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 720px; }
.quick-vin input {
  flex: 1 1 16rem; min-width: 0;
  font: 500 1.4rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  border: 2px solid #7d858d; border-radius: 6px; padding: .7rem .8rem; background: var(--alum-hi); color: var(--stamp);
}
.quick-vin input:focus { outline: none; border-color: var(--hugger); background: #fff; }
.quick-vin label { flex-basis: 100%; font-weight: 600; color: #c9d4ea; }
.tool-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.tool-link {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border-radius: 10px; padding: 1.3rem 1.4rem; box-shadow: 0 1px 0 var(--line);
  border-top: 6px solid var(--night);
}
.tool-link:hover { border-top-color: var(--hugger); color: var(--ink); }
.tool-link h2 { font: 800 1.8rem/1.05 var(--display); margin: 0 0 .4rem; }
.tool-link p { margin: 0; color: var(--muted); }

/* ---------------- footer ---------------- */
.foot { background: var(--night); color: #9fb0cf; font-size: .92rem; padding: 2rem 0; }
.foot p { margin: 0 0 .4rem; max-width: 80ch; }
.foot a { color: #dfe6f3; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .top::before, .top::after { display: none; }
  .nav { margin-right: 0; }
  .submenu { position: static; margin-top: .3rem; }
  .plate, .tag-stage { margin-right: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding: 1.5rem 0 2.5rem; }
  .plate { padding: 1.1rem .6rem 1rem; }
  .plate .rivet { display: none; }
  .cells { margin-inline: .4rem; gap: 2px; }
  .cell b { font-size: clamp(.8rem, 4vw, 1.05rem); }
  .cell i { font-size: .56rem; }
  .tag { padding: 1rem 1.1rem; clip-path: none; border-radius: 6px; }
  .tag .rivet { display: none; }
  .tag-label { font-size: 1.1rem; }
  .tag-field input { font-size: 1.15rem; }
  .btn { flex: 1 1 auto; }
  .stamp-line { padding: .5rem; gap: 2px; }
  .stamp-line span { font-size: clamp(.8rem, 4.2vw, 1.05rem); padding: .3rem .18rem; }
  .stamp-line span.gap { width: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .top, .foot, .guide { display: none; }
  body { background: #fff; }
}
.examples:has(#vin-examples:empty) { display: none; }
