/* ═══════════════════════════════════════════════════════════════════════
   E85 BLEND LAB — retro California neon theme
   Sunset-strip aesthetic: asphalt ground, glassy panels, magenta/teal
   neon with a warm sunset accent.
   ═══════════════════════════════════════════════════════════════════════ */

/* Self-hosted fonts (latin subsets) — no third-party connection before paint */
@font-face {
  font-family: "Righteous";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("righteous-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("outfit-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;        /* native controls (spinners, dropdowns) in dark */
  --magenta: #ff5585;        /* warm coral-magenta neon */
  --magenta-hot: #ff9bb0;
  --sunset: #ff8a4d;         /* sunset orange */
  --teal: #3ee6e0;          /* neon teal */
  --teal-deep: #19b8b3;
  --green: #2bd96a;
  --amber: #ffc14d;
  --ink: #0a0c13;           /* midnight asphalt */
  --panel: #131624da;
  --panel-deep: #0d101b;
  --line: #272c42;
  --text: #f0f1f8;
  --text-dim: #9aa1b9;
  --font-display: "Righteous", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Outfit", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* `hidden` must always win, even over display:flex/grid rules below */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 17px;
  color: var(--text);
  background:
    /* neon underglow washes */
    radial-gradient(1000px 480px at 85% -8%, #12454d66, transparent 62%),
    radial-gradient(1100px 560px at 8% 108%, #6e1f3859, transparent 60%),
    radial-gradient(700px 300px at 50% 115%, #ff55852e, transparent 70%),
    radial-gradient(900px 380px at 72% 112%, #ff8a4d21, transparent 65%),
    /* fine asphalt grain */
    repeating-linear-gradient(0deg, #ffffff05 0 1px, transparent 1px 3px),
    var(--ink);
}

/* neon horizon line pinned to the bottom of the viewport */
body::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--magenta) 28%, var(--sunset) 50%, var(--teal) 72%, transparent);
  filter: blur(.5px);
  opacity: .8;
  box-shadow: 0 -6px 24px #ff558555, 0 -2px 10px #3ee6e044;
  pointer-events: none;
  z-index: 2;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 1;
  padding: 40px 24px 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #00000055, transparent);
}

.header-inner { max-width: 1060px; margin: 0 auto; }

.logo { display: flex; align-items: center; gap: 18px; }

/* neon corn cob mark — amber kernels, teal husk, tube-sign glow */
.logo-cob {
  width: clamp(44px, 6vw, 58px);
  height: auto;
  flex-shrink: 0;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-cob .cob-body path {
  stroke: var(--amber);
  stroke-width: 3;
  fill: #ffc14d0d;
  filter: drop-shadow(0 0 5px #ffc14d99) drop-shadow(0 0 14px #ffc14d40);
}

.logo-cob .cob-kernels path {
  stroke: var(--amber);
  stroke-width: 1.6;
  opacity: .75;
}

.logo-cob .cob-husk path {
  stroke: var(--teal);
  stroke-width: 3;
  filter: drop-shadow(0 0 5px #3ee6e099) drop-shadow(0 0 14px #3ee6e040);
}

/* license-plate logo mark — pump-sign green */
.plate {
  font-family: var(--font-display);
  font-size: .72em;
  padding: 6px 14px 5px;
  border: 2px solid var(--green);
  border-radius: 9px;
  color: #8df5b4;
  background: #0c2b1a;
  letter-spacing: .1em;
  box-shadow:
    0 0 18px #2bd96a59,
    inset 0 0 14px #2bd96a2b;
  text-shadow: 0 0 12px #2bd96aaa;
}

.logo h1, .logo .logo-text {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.2vw, 2.4rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 0 22px #ffc14d55, 0 2px 24px #00000088;
}

/* on guide pages the article title is the h1 instead of the logo */
h1.panel-title { font-size: 1.35rem; letter-spacing: .14em; line-height: 1.35; }

.tagline {
  margin: 12px 0 0 2px;
  font-weight: 500;
  letter-spacing: .3em;
  font-size: .76rem;
  color: var(--text-dim);
}

/* page tabs */
.site-nav {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: .68rem;
  letter-spacing: .12em;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s, border-color .2s, box-shadow .2s;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 12px #3ee6e033;
  outline: none;
}

.nav-link.is-current {
  color: var(--amber);
  border-color: var(--amber);
  background: #ffc14d12;
  box-shadow: 0 0 12px #ffc14d2b;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.layout {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 36px auto 70px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 32px;
  backdrop-filter: blur(6px);
  box-shadow:
    0 24px 60px #00000080,
    inset 0 1px 0 #ffffff0d;   /* glass top edge */
  position: relative;
}

/* soft underglow beneath each panel */
.panel::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: -14px;
  height: 26px;
  background: radial-gradient(50% 100% at 50% 0%, #ff558530, transparent 75%);
  filter: blur(6px);
  pointer-events: none;
}

.panel-results::after {
  background: radial-gradient(50% 100% at 50% 0%, #3ee6e02b, transparent 75%);
}

.panel-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .3em;
  color: var(--text);
}

.panel-title .num { display: none; }

.panel-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--sunset), var(--teal));
  box-shadow: 0 0 10px #ff558566;
}

/* ── Vehicle picker ─────────────────────────────────────────────────── */
.veh-picker {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin: 0 0 22px;
  background: #ffffff05;
}

.veh-picker legend {
  padding: 0 8px;
  font-weight: 600;
  letter-spacing: .16em;
  font-size: .78rem;
  color: var(--teal);
}

.optional { color: var(--text-dim); font-weight: 400; letter-spacing: .02em; text-transform: none; }

.veh-row {
  display: grid;
  grid-template-columns: 92px 1fr 1.4fr;
  gap: 10px;
}

@media (max-width: 480px) { .veh-row { grid-template-columns: 1fr; } }

.veh-note { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.veh-note:empty { display: none; }

.badge, .badge-tank {
  font-family: var(--font-display);
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .1em;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-tank { background: #ffffff0f; border: 1px solid var(--line); }
.badge-ffv  { background: #0d3524; border: 1px solid #2bd96a55; color: var(--green); box-shadow: 0 0 12px #2bd96a22; }
.badge-mod  { background: #3a2c10; border: 1px solid #ffc14d55; color: var(--amber); }
.badge-sub  { flex-basis: 100%; font-size: .8rem; color: var(--text-dim); line-height: 1.4; }

/* ── OBD-II reader ──────────────────────────────────────────────────── */
.obd-reader {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 14px 16px 12px;
  margin: 0 0 22px;
  background: #ffffff05;
}

.obd-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.obd-status { margin: 10px 0 0; font-size: .88rem; font-weight: 500; line-height: 1.45; }
.obd-status:empty { display: none; }
.obd-status.busy { color: var(--teal); }
.obd-status.ok   { color: #a9efc7; }
.obd-status.warn { color: var(--amber); }

.obd-reader .hint-block { margin-top: 10px; }

/* ── Fields ─────────────────────────────────────────────────────────── */
.field { margin-bottom: 20px; }

.field-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
}

label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  font-size: .76rem;
  margin-bottom: 8px;
  color: var(--text);
  text-transform: uppercase;
}

.hint { color: var(--text-dim); font-weight: 400; letter-spacing: .02em; text-transform: none; }

.hint-block {
  margin: 8px 0 0;
  font-size: .84rem;
  color: var(--text-dim);
}

output {
  font-family: var(--font-display);
  font-size: .78rem;
  color: var(--teal);
  letter-spacing: .05em;
  text-shadow: 0 0 10px #3ee6e044;
}

input[type="number"], select {
  width: 100%;
  padding: 12px 13px;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: var(--panel-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input[type="number"]:focus, select:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px #ff55852e, 0 0 14px #ff558533;
}

input:disabled, select:disabled { opacity: .45; }

/* sliders — slim visible track, but a 44px-tall touch/click target */
input[type="range"] {
  --fill: 0%;
  --track: linear-gradient(90deg, var(--teal-deep) var(--fill), #232842 var(--fill));
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  margin: -10px 0;
  background: transparent;
  outline: none;
  cursor: pointer;
  touch-action: manipulation;
}

input[type="range"]:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 3px #ff55852e;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--track);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -8px;               /* center the thumb on the 8px track */
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #d9dcef 45%, #8f93ad);
  border: 3px solid var(--magenta);
  cursor: pointer;
  box-shadow: 0 0 14px #ff558588;
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--track);
}

input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #eceef8;
  border: 3px solid var(--magenta);
  cursor: pointer;
  box-shadow: 0 0 14px #ff558588;
}

/* target slider keeps its blend-spectrum gradient instead of a fill */
.target-slider {
  --track: linear-gradient(90deg, #1d4a48, #7a4327, #8f2f4a);
}

/* ── Tube-tester helper ─────────────────────────────────────────────── */
.tester {
  margin-top: 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: #ffffff05;
}

.tester[open] { padding-bottom: 14px; }

.tester summary {
  cursor: pointer;
  padding: 13px 0;
  font-weight: 700;
  letter-spacing: .14em;
  font-size: .8rem;
  color: var(--sunset);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color .2s;
}

.tester summary:hover { color: var(--amber); }

.tester summary:focus-visible {
  outline: none;
  border-radius: 8px;
  box-shadow: 0 0 0 3px #ff8a4d2e;
}

.tester summary::-webkit-details-marker { display: none; }

.tester summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--text-dim);
  transition: transform .2s;
}

.tester[open] summary::after { transform: rotate(180deg); }

.tester-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 480px) { .tester-row { grid-template-columns: 1fr; } }

.tester-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.tester-pct {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sunset);
  text-shadow: 0 0 14px #ff8a4d55;
  min-width: 72px;
}

.btn-neon:disabled {
  opacity: .4;
  cursor: default;
  box-shadow: none;
  background: transparent;
}

/* ── Gauge ──────────────────────────────────────────────────────────── */
.gauge-wrap { position: relative; max-width: 340px; margin: 0 auto 8px; }

.gauge { width: 100%; display: block; }

.gauge-track {
  fill: none;
  stroke: #222741;
  stroke-width: 12;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke: url(#gauge-grad);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  filter: drop-shadow(0 0 9px #ff558577);
  transition: stroke-dashoffset .35s cubic-bezier(.2,.8,.3,1);
}

.gauge-ticks line { stroke: #3b4160; stroke-width: 2.5; }

.gauge-tick-labels text {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  fill: var(--text-dim);
}

.gauge-needle {
  stroke: #f2f4fc;
  stroke-width: 4;
  stroke-linecap: round;
  transform-origin: 100px 95px;
  transform-box: view-box;
  transform: rotate(-120deg);
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
  filter: drop-shadow(0 0 4px #00000099);
}

.gauge-hub { fill: var(--magenta); stroke: #f2f4fc; stroke-width: 2.5; }

.gauge-readout {
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  text-align: center;
  pointer-events: none;
}

.gauge-big {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.4rem;
  letter-spacing: .05em;
  text-shadow: 0 0 30px #ff558566;
}

.gauge-label {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .34em;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── Fill order cards ───────────────────────────────────────────────── */
.orders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 18px;
}

.order-card {
  border-radius: 14px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff08, transparent 55%), var(--panel-deep);
}

.order-e85 { border-color: #ff558555; box-shadow: 0 0 18px #ff55851e, inset 0 1px 0 #ffffff10; }
.order-gas { border-color: #3ee6e04d; box-shadow: 0 0 18px #3ee6e01a, inset 0 1px 0 #ffffff10; }

.order-label {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.order-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
}

.order-e85 .order-value { color: var(--magenta-hot); text-shadow: 0 0 16px #ff558555; }
.order-gas .order-value { color: var(--teal); text-shadow: 0 0 16px #3ee6e044; }

.order-value .unit, .unit {
  font-size: .55em;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: .06em;
}

/* ── Mix bar ────────────────────────────────────────────────────────── */
.mix-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-deep);
}

.mix-seg { transition: width .35s cubic-bezier(.2,.8,.3,1); }
.seg-existing { background: #454b6b; }
.seg-e85 { background: linear-gradient(180deg, var(--magenta-hot), #e03e70); }
.seg-gas { background: linear-gradient(180deg, #6ff2ed, var(--teal-deep)); }

.mix-legend {
  display: flex;
  gap: 18px;
  margin-top: 9px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--text-dim);
}

.dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-existing { background: #454b6b; }
.dot-e85 { background: var(--magenta); box-shadow: 0 0 6px #ff558588; }
.dot-gas { background: var(--teal); box-shadow: 0 0 6px #3ee6e088; }

/* ── Worth-it page: break-even stat & cost rows ─────────────────────── */
.be-wrap {
  text-align: center;
  margin: 6px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.be-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--text-dim);
}

.be-big {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--green);
  text-shadow: 0 0 28px #2bd96a55;
}

.be-note {
  font-size: .84rem;
  color: var(--text-dim);
  max-width: 40ch;
  margin: 0 auto;
  line-height: 1.4;
}

.cost-rows { margin: 20px 0 4px; display: grid; gap: 13px; }

.cost-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 4px 12px;
  align-items: center;
}

.cost-name {
  font-family: var(--font-display);
  font-size: .62rem;
  letter-spacing: .08em;
  color: var(--text-dim);
}

.cost-bar {
  height: 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-deep);
  overflow: hidden;
}

.cost-fill { height: 100%; border-radius: 6px; transition: width .35s cubic-bezier(.2,.8,.3,1); }
.fill-pump  { background: #454b6b; }
.fill-blend { background: linear-gradient(90deg, var(--teal-deep), var(--teal)); box-shadow: 0 0 10px #3ee6e044; }
.fill-e85   { background: linear-gradient(90deg, #e03e70, var(--magenta-hot)); box-shadow: 0 0 10px #ff558544; }

.cost-figs {
  grid-column: 2;
  font-size: .8rem;
  color: var(--text-dim);
}

.cost-figs strong { color: var(--text); font-weight: 600; }

.delta-note {
  margin: 14px 0 0;
  font-weight: 600;
  color: var(--text);
}

/* ── Status & fine print ────────────────────────────────────────────── */
.status {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-radius: 10px;
  font-weight: 500;
  line-height: 1.45;
  border: 1px solid;
}

.status.ok   { background: #0d2b1c; border-color: #2bd96a44; color: #a9efc7; }
.status.warn { background: #322408; border-color: #ffc14d44; color: #ffdf9e; }

.fine-print {
  margin: 16px 0 0;
  font-size: .84rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.fine-print strong { color: var(--text); font-family: var(--font-display); font-weight: 400; font-size: .9em; }

/* ── Compatibility panel ────────────────────────────────────────────── */
.panel-compat { grid-column: 1 / -1; }

.panel-compat::after {
  background: radial-gradient(50% 100% at 50% 0%, #ff8a4d2b, transparent 75%);
}

.compat-intro {
  margin: -8px 0 18px;
  color: var(--text-dim);
  font-size: .92rem;
  max-width: 62ch;
}

.compat-row { max-width: 720px; grid-template-columns: 110px 1fr 1.6fr; }

@media (max-width: 480px) { .compat-row { grid-template-columns: 1fr; } }

.compat-status {
  margin: 14px 0 0;
  font-size: .88rem;
  font-weight: 500;
}

.compat-status.busy { color: var(--teal); }
.compat-status.warn { color: var(--amber); }

.compat-verdict {
  margin: 16px 0 0;
  padding: 15px 17px;
  border-radius: 12px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.45;
}

.compat-verdict strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: .04em;
}

.compat-verdict.good  { background: #0d2b1c; border-color: #2bd96a44; color: #a9efc7; box-shadow: 0 0 18px #2bd96a1a; }
.compat-verdict.mixed { background: #322408; border-color: #ffc14d44; color: #ffdf9e; }
.compat-verdict.bad   { background: #33101d; border-color: #ff558544; color: #ffb8ce; box-shadow: 0 0 18px #ff55851a; }

.compat-tank {
  margin: 14px 0 0;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px dashed #3ee6e055;
  background: #0d2321;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  color: #b8f4f1;
  font-size: .92rem;
  line-height: 1.4;
}

.btn-neon {
  font-family: var(--font-display);
  font-size: .68rem;
  letter-spacing: .12em;
  padding: 9px 16px;
  border-radius: 20px;
  border: 1px solid var(--teal);
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s;
}

.btn-neon:hover:not(:disabled), .btn-neon:focus-visible:not(:disabled) {
  background: #3ee6e01a;
  box-shadow: 0 0 14px #3ee6e055;
  outline: none;
}

.compat-variants {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.variant {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-deep);
  font-weight: 500;
  font-size: .92rem;
}

.variant.is-ffv { border-color: #2bd96a44; }

.variant-name { color: var(--text); }

.compat-mods {
  margin: 18px 0 0;
  padding: 17px 19px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff05;
  max-width: 72ch;
}

.compat-mods h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .92rem;
  letter-spacing: .06em;
  color: var(--sunset);
}

.compat-mods p { margin: 0 0 8px; color: var(--text-dim); }

.compat-mods ul {
  margin: 0 0 10px;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: var(--text-dim);
  line-height: 1.45;
}

.compat-mods strong { color: var(--text); font-weight: 600; }

.compat-fineprint { font-size: .84rem; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 22px 24px 34px;
  text-align: center;
  color: var(--text-dim);
  font-size: .82rem;
}

.aff-disclosure { margin: 8px 0 0; font-size: .74rem; opacity: .75; }

.footer-links { margin: 12px 0 0; font-size: .78rem; letter-spacing: .04em; }

.footer-links a {
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: #9aa1b944;
  text-underline-offset: 3px;
  transition: color .2s;
}

.footer-links a:hover, .footer-links a:focus-visible { color: var(--teal); outline: none; }

.aff-link {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: #ffc14d55;
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}

.aff-link:hover, .aff-link:focus-visible {
  color: #ffd98a;
  text-decoration-color: var(--amber);
}

/* ── Inline SVG icons ───────────────────────────────────────────────── */
.ico {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-solid { fill: currentColor; stroke: none; }

.badge .ico, .compat-verdict .ico { margin-right: 4px; }
.btn-neon .ico { margin-right: 5px; }

/* ── No-JS fallback ─────────────────────────────────────────────────── */
.noscript-banner {
  max-width: 1060px;
  margin: 20px auto 0;
  padding: 14px 18px;
  border: 1px solid #ffc14d66;
  border-radius: 12px;
  background: #322408;
  color: #ffdf9e;
  font-weight: 500;
}

/* ── Mobile quick-bar (results at a glance while you scroll) ────────── */
.quickbar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  display: none;
  width: auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #10131fee;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px #000000c0, 0 0 18px #3ee6e022, inset 0 1px 0 #ffffff0d;
  color: var(--text);
  cursor: pointer;
  transform: translateY(140%);
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
}

.quickbar.is-visible { transform: translateY(0); }

.quickbar:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #3ee6e02e, 0 12px 40px #000000c0;
}

.quickbar-blend {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--teal);
  text-shadow: 0 0 12px #3ee6e055;
}

.quickbar-adds {
  display: flex;
  gap: 14px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

.quickbar-adds .qb-e85 { color: var(--magenta-hot); }
.quickbar-adds .qb-gas { color: var(--teal); }

.quickbar-arrow { color: var(--text-dim); font-size: .9rem; }

@media (max-width: 880px) {
  .quickbar { display: flex; }
  body.has-quickbar .site-footer { padding-bottom: 96px; }
}

/* ── Guide articles ─────────────────────────────────────────────────── */
.panel-article {
  grid-column: 1 / -1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  justify-self: center;
}

.crumb {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text-dim);
  text-decoration: none;
}

.crumb:hover, .crumb:focus-visible { color: var(--teal); outline: none; }

.prose { max-width: 68ch; }

.prose h2 {
  margin: 30px 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .08em;
  color: var(--teal);
}

.prose h3 {
  margin: 22px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .92rem;
  letter-spacing: .06em;
  color: var(--sunset);
}

.prose p { margin: 0 0 14px; line-height: 1.65; }

.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; line-height: 1.55; }

.prose strong { color: var(--amber); font-weight: 600; }

.prose a:not(.btn-neon) { color: var(--teal); text-decoration: underline; text-decoration-color: #3ee6e055; text-underline-offset: 3px; }
.prose a:not(.btn-neon):hover { text-decoration-color: var(--teal); }

.lede { font-size: 1.05rem; color: var(--text); }

/* call-to-action row at the bottom of guides */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 6px;
}

a.btn-neon { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

a.btn-magenta {
  border-color: var(--magenta);
  color: var(--magenta-hot);
}

a.btn-magenta:hover, a.btn-magenta:focus-visible {
  background: #ff558514;
  box-shadow: 0 0 14px #ff558555;
  outline: none;
}

/* guides index cards */
.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.guide-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-deep);
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}

.guide-list a:hover, .guide-list a:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 16px #3ee6e022;
  outline: none;
}

.guide-list .g-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .05em;
  margin-bottom: 5px;
  color: var(--amber);
}

.guide-list .g-desc { display: block; font-size: .88rem; color: var(--text-dim); line-height: 1.45; }

/* ── Motion preferences ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .gauge-fill, .gauge-needle, .mix-seg, .quickbar { transition: none; }
}
