/* TRX250R.com — site styles. No build step required. */
:root {
  --bg: #0d0e10;
  --bg-2: #131519;
  --panel: #181b20;
  --panel-2: #1f232a;
  --line: #2b3039;
  --text: #ece9e2;
  --muted: #a7a399;
  --faint: #6f6c66;
  --red: #e2231a;
  --red-2: #ff4a3d;
  --blue: #3b78e7;
  --gold: #d9a521;
  --white: #f6f4ef;
  --ok: #3fb67b;
  --warn: #e0a526;
  --radius: 10px;
  --maxw: 1180px;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--red-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  color: var(--white);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); text-transform: uppercase; margin-top: 1.6em; }
h3 { font-size: 1.45rem; margin-top: 1.4em; }
h4 { font-size: 1.15rem; margin-top: 1.2em; }
p, ul, ol, dl, table { margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
strong { color: var(--white); }
code, kbd { font-family: var(--font-mono); font-size: .9em; background: var(--panel-2); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; height: 6px; margin: 3rem 0; background: linear-gradient(var(--red) 0 2px, transparent 2px 4px, var(--white) 4px 6px); opacity: .5; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,14,16,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--red) 0 60%, var(--white) 60% 80%, var(--blue) 80% 100%); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 62px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; }
.brand-name span { color: var(--red); }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: .45rem .75rem; font: 600 .95rem var(--font-body); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 65px; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; max-height: calc(100vh - 65px); overflow-y: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .6rem .5rem; color: var(--text); text-decoration: none; font-weight: 600; border-radius: 6px; }
.site-nav a:hover { background: var(--panel); color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--red-2); }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; background: none; border: 0; padding: 0; max-height: none; }
  .site-nav ul { display: flex; gap: .1rem; }
  .site-nav a { padding: .45rem .6rem; font-size: .95rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 1.2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .3rem; color: var(--faint); }
.crumbs a { color: var(--muted); }

/* ---------- Page hero ---------- */
.page-hero { padding-top: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.page-hero .kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: var(--red-2); font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
.page-hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; margin: 0; }
.updated { font-size: .85rem; color: var(--faint); margin-top: .8rem; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
  radial-gradient(1000px 500px at 85% 20%, rgba(226,35,26,.18), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgba(59,120,231,.10), transparent 60%), var(--bg); }
.hero-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; padding-top: 4.5rem; padding-bottom: 4rem; } }
.hero h1 { margin-bottom: .3em; }
.hero h1 .big { display: block; font-size: clamp(4.2rem, 13vw, 8.5rem); line-height: .85; letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 2px var(--white); }
.hero h1 .big b { color: var(--red); -webkit-text-stroke: 0; font-weight: 800; }
.hero .lede { font-size: 1.25rem; color: var(--muted); max-width: 54ch; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; display: block; }
.btns { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 1.1rem; padding: .7rem 1.2rem; border-radius: 8px; text-decoration: none; background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn:hover { background: var(--red-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--white); }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 2rem; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .stats.six { grid-template-columns: repeat(6, 1fr); } }
.stat { background: var(--panel); padding: 1rem 1.1rem; }
.stat .v { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat .v small { font-size: .55em; color: var(--muted); font-weight: 600; margin-left: .15em; }
.stat .k { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .35rem; }

/* ---------- Layout ---------- */
main { padding-bottom: 4rem; }
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.prose { max-width: 75ch; }
.lead { font-size: 1.2rem; color: var(--muted); }
.cols { display: grid; gap: 2rem; }
@media (min-width: 960px) { .cols.side { grid-template-columns: minmax(0,1fr) 300px; } }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .95rem; align-self: start; }
@media (min-width: 960px) { .toc { position: sticky; top: 90px; } }
.toc h2 { font-size: 1rem; margin: 0 0 .6rem; letter-spacing: .1em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--red-2); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem; position: relative; }
.card h3 { margin-top: 0; font-size: 1.35rem; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--red); transform: translateY(-2px); color: var(--text); }
a.card .more { color: var(--red-2); font-weight: 600; font-size: .95rem; }
.card .tag { display: inline-block; font-family: var(--font-display); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }

/* Year cards */
.years { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.year { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.year .band { height: 10px; }
.year .body { padding: 1.1rem 1.2rem; }
.year .yr { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--white); }
.year .code { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.year ul { padding-left: 1.1rem; margin: .7rem 0 0; font-size: .97rem; }
.band.y86 { background: linear-gradient(90deg, var(--red) 0 50%, var(--white) 50% 75%, var(--blue) 75%); }
.band.y87 { background: linear-gradient(90deg, var(--blue) 0 50%, var(--white) 50% 75%, var(--red) 75%); }
.band.y88 { background: var(--red); }
.band.y89 { background: linear-gradient(90deg, var(--white) 0 70%, var(--red) 70%); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.5rem; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; margin: 0; }
caption { text-align: left; padding: .9rem 1rem .4rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .04em; }
th, td { padding: .6rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--muted); background: var(--panel-2); border-top: 0; }
tbody th { font-weight: 600; color: var(--white); width: 34%; }
td.num, th.num { font-variant-numeric: tabular-nums; }
tbody tr:hover { background: rgba(255,255,255,.02); }

/* ---------- Callouts ---------- */
.note { border-left: 4px solid var(--gold); background: rgba(217,165,33,.08); padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.4rem; }
.note.red { border-color: var(--red); background: rgba(226,35,26,.08); }
.note.blue { border-color: var(--blue); background: rgba(59,120,231,.08); }
.note p:last-child { margin: 0; }
.note strong:first-child { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0 0 2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 2.2rem; margin-bottom: 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--red); }
.timeline .when { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--white); display: block; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.8rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: 1rem; border: 2px solid var(--red); border-radius: 3px; }

/* ---------- FAQ ---------- */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .7rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--white); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--red-2); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 1.2rem 1rem; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- Tools ---------- */
.tool { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 2rem; }
.tool h2 { margin-top: 0; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); margin-bottom: 1rem; }
label { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; font-weight: 600; }
input, select {
  width: 100%; background: var(--bg-2); color: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: .65rem .8rem; font: 500 1.05rem var(--font-body);
}
input:focus, select:focus { border-color: var(--red); outline: none; }
input.vin { font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; font-size: 1.15rem; }
.result { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; min-height: 3rem; }
.result .big { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--white); line-height: 1.1; }
.result .ok { color: var(--ok); } .result .warn { color: var(--warn); } .result .bad { color: var(--red-2); }
.vin-boxes { display: grid; grid-template-columns: repeat(17, minmax(0,1fr)); gap: 2px; margin: .8rem 0; font-family: var(--font-mono); text-align: center; font-size: .9rem; }
.vin-boxes span { background: var(--panel-2); padding: .4rem 0; border-radius: 3px; }
.vin-boxes span.hl { background: var(--red); color: #fff; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 3rem 0 2rem; font-size: .95rem; color: var(--muted); }
.site-footer::before { content: ""; display: block; height: 3px; margin-top: -3rem; margin-bottom: 3rem; background: linear-gradient(90deg, var(--red) 0 60%, var(--white) 60% 80%, var(--blue) 80% 100%); }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.site-footer h2 { font-size: 1rem; letter-spacing: .12em; color: var(--white); margin: 0 0 .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.fine { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: var(--faint); }

/* ---------- Misc ---------- */
.pill { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .55rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.pill.red { border-color: var(--red); color: var(--red-2); }
.src { font-size: .85rem; color: var(--faint); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.cta-band { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1rem; align-items: center; }
@media (min-width: 760px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { margin: 0 0 .3rem; font-size: 1.8rem; }
.cta-band p { margin: 0; color: var(--muted); }
.diagram { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0 0 1.5rem; }
.diagram figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
