/* Pressure Washer Pressure Check - instrument-panel styling.
   Original CSS. No remote fonts/assets. Compact, low-motion, WCAG AA.
   Stable at 320/375/430/tablet/desktop with no horizontal overflow. */

:root {
  --bg: #0f1620;
  --panel: #16202d;
  --panel-2: #1d2a3a;
  --ink: #eef3f8;
  --ink-dim: #aab8c7;
  --ink-faint: #7d8b9c;
  --line: #2a3a4d;
  --accent: #39d98a;      /* safe / go */
  --accent-ink: #082315;
  --warn: #f2c14e;        /* manual / caution */
  --warn-ink: #2a1e02;
  --stop: #e0533d;        /* stop / hazard */
  --stop-ink: #2a0b04;
  --idle: #5b6b7d;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.35);
  --maxw: 1080px;
  --target: 44px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

a { color: var(--accent); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 50;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Visible focus everywhere */
:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid #7fd9ff;
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
}
.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.panel-badge-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.trust-cues {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
}

/* ---- Layout ---- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ---- Diagnostic panel ---- */
.diagnostic-panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  margin-top: 8px;
}
.panel-head h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 5.5vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.promise {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 60ch;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (min-width: 880px) {
  .panel-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
}

/* ---- Flow rail ---- */
.flow-rail {
  background: #0c1219;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.flow-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
@media (min-width: 520px) {
  .flow-path {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    align-items: center;
  }
}

.flow-node {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-areas: "shape label" "shape status";
  align-items: center;
  column-gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.15s linear, border-color 0.15s linear;
}
@media (min-width: 520px) {
  .flow-node {
    grid-template-columns: 1fr;
    grid-template-areas: "shape" "label" "status";
    justify-items: center;
    text-align: center;
    padding: 10px 4px;
  }
}
.flow-node[data-state="active"] { background: rgba(57,217,138,0.10); border-color: rgba(57,217,138,0.45); }
.flow-node[data-state="warn"] { background: rgba(242,193,78,0.10); border-color: rgba(242,193,78,0.45); }
.flow-node[data-state="stop"] { background: rgba(224,83,61,0.12); border-color: rgba(224,83,61,0.5); }
.flow-node[data-state="done"] { border-color: rgba(57,217,138,0.35); }

.node-shape {
  grid-area: shape;
  width: 28px; height: 28px;
  display: inline-block;
  position: relative;
}
.node-shape.inlet { /* circle = supply spigot */
  background: var(--idle);
  border-radius: 50%;
}
.node-shape.filter { /* square mesh = inlet screen */
  background:
    linear-gradient(45deg, transparent 44%, var(--ink-faint) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--ink-faint) 44% 56%, transparent 56%),
    var(--idle);
  border-radius: 3px;
}
.node-shape.pump { /* gear-like rounded square = pump */
  background: var(--idle);
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px #0c1219, inset 0 0 0 4px var(--ink-faint);
}
.node-shape.gun { /* pistol-ish shape = spray gun */
  background: var(--idle);
  clip-path: polygon(20% 0, 80% 0, 80% 45%, 100% 45%, 100% 70%, 55% 70%, 55% 100%, 35% 100%, 35% 60%, 20% 60%);
}
.node-shape.nozzle { /* trapezoid = nozzle */
  background: var(--idle);
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}
.flow-node[data-state="active"] .node-shape,
.flow-node[data-state="done"] .node-shape { background-color: var(--accent); }
.flow-node[data-state="warn"] .node-shape { background-color: var(--warn); }
.flow-node[data-state="stop"] .node-shape { background-color: var(--stop); }
/* Keep mesh texture visible on filter when active by tinting overlay only */
.flow-node[data-state="active"] .node-shape.filter,
.flow-node[data-state="done"] .node-shape.filter {
  background:
    linear-gradient(45deg, transparent 44%, rgba(8,35,21,0.6) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, rgba(8,35,21,0.6) 44% 56%, transparent 56%),
    var(--accent);
}

.node-label { grid-area: label; font-size: 13px; font-weight: 600; color: var(--ink); }
.node-status { grid-area: status; font-size: 12px; color: var(--ink-faint); }
.flow-node[data-state="active"] .node-status { color: var(--accent); }
.flow-node[data-state="done"] .node-status { color: var(--accent); }
.flow-node[data-state="warn"] .node-status { color: var(--warn); }
.flow-node[data-state="stop"] .node-status { color: var(--stop); }

.flow-connector {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
@media (max-width: 519px) { .flow-connector { display: none; } }

/* On narrow screens, let people start the check before the schematic. Keep the
   full inlet-to-nozzle rail and gauge visible, but compress them into a status
   strip so the first question is not pushed below the initial viewport. */
@media (max-width: 519px) {
  .panel-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
  }

  .panel-grid .control-deck {
    order: 1;
    padding: 14px;
  }

  .flow-rail {
    order: 2;
    padding: 10px;
  }

  .flow-path {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    align-items: start;
  }

  .flow-node {
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-areas: "shape" "label" "status";
    justify-items: center;
    text-align: center;
    padding: 4px 2px;
  }

  .node-shape {
    width: 24px;
    height: 24px;
  }

  .node-label {
    font-size: 10px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .node-status {
    font-size: 10px;
    line-height: 1.15;
  }

  .flow-rail .gauge {
    margin-top: 8px;
    padding-top: 8px;
  }

  .flow-rail .gauge-svg {
    max-width: 130px;
  }

  .flow-rail .gauge-caption {
    margin-top: 0;
  }
}

@media (max-width: 340px) {
  .node-status {
    display: none;
  }

  .flow-rail .gauge-svg {
    max-width: 90px;
  }

  .flow-rail .gauge-caption {
    font-size: 11px;
  }
}

/* ---- Gauge ---- */
.gauge { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.gauge-svg { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto; }
#gauge-needle {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: rotate(-90deg); /* point left = idle/low */
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.gauge-caption {
  text-align: center;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

/* ---- Control deck ---- */
.control-deck {
  background: #0c1219;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.step-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.progress-label { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.progress-track {
  flex: 1;
  height: 6px;
  background: #1a2532;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s linear;
}

.step-form { margin: 0; }
.step-fieldset { border: 0; padding: 0; margin: 0; }
.step-question {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  padding: 0;
}
.step-help { font-size: 13px; color: var(--ink-dim); margin: 0 0 12px; }
.step-options { display: grid; gap: 8px; }

.step-option {
  display: grid;
  grid-template-columns: var(--target) 1fr;
  align-items: center;
  gap: 12px;
  min-height: var(--target);
  padding: 8px 12px 8px 8px;
  background: #16202d;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  font-size: 15px;
  transition: border-color 0.12s linear, background 0.12s linear;
}
.step-option:hover { border-color: #3c5066; background: #1b2737; }
.step-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(57,217,138,0.10);
}
.step-option:focus-within { outline: 3px solid #7fd9ff; outline-offset: 1px; border-radius: var(--radius-sm); }
.step-option input {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
.option-mark {
  width: 22px; height: 22px;
  border: 2px solid var(--ink-faint);
  border-radius: 50%;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.step-option:has(input:checked) .option-mark {
  border-color: var(--accent);
  background: var(--accent);
}
.step-option:has(input:checked) .option-mark::after {
  content: "";
  width: 8px; height: 4px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg) translate(1px, -1px);
}

.step-error {
  color: #ffb4a8;
  background: rgba(224,83,61,0.12);
  border: 1px solid rgba(224,83,61,0.4);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin: 10px 0 0;
  font-size: 14px;
}

.step-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.btn {
  min-height: var(--target);
  min-width: var(--target);
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s linear, border-color 0.12s linear, color 0.12s linear;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #4ee69b; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #3c5066; }
.btn-ghost { background: transparent; color: var(--ink-dim); border-color: transparent; }
.btn-ghost:hover { color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Result ---- */
.result-region { margin-top: 16px; }
.result-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--idle);
  border-radius: var(--radius-sm);
  background: #16202d;
  padding: 14px 16px;
}
.result-card.safe-action { border-left-color: var(--accent); }
.result-card.stop-service { border-left-color: var(--stop); }
.result-card.manual-needed { border-left-color: var(--warn); }
.result-card h2 { margin: 0 0 10px; font-size: 18px; }
.result-card .result-indication { color: var(--ink-dim); margin: 0 0 12px; }
.result-section { margin: 10px 0; }
.result-section h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 4px;
}
.result-section p { margin: 0; }
.result-card.stop-service .result-section.do h3 { color: #ffb4a8; }

/* Result meta line (machine type + symptom) */
.result-meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* External links section */
.result-section.external-links { margin-top: 14px; }
.external-hint {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 8px;
}
.external-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--target);
  padding: 8px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.12s linear, background 0.12s linear;
}
.external-link:hover { border-color: var(--accent); background: #1b2737; }
.external-mark {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

/* Result actions — always outside the hidden step form */
.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.result-actions .btn { min-height: var(--target); min-width: var(--target); padding: 0 16px; }
.result-actions .startover-btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.result-actions .startover-btn:hover { background: #4ee69b; }
.result-actions .copy-btn,
.result-actions .revise-btn { background: transparent; color: var(--ink); border-color: var(--line); }
.result-actions .copy-btn:hover,
.result-actions .revise-btn:hover { border-color: #3c5066; }

/* ---- Safety banner ---- */
.safety-banner {
  margin: 16px 0 0;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-dim);
}

/* ---- Below-tool content ---- */
.content-block {
  margin-top: 32px;
  max-width: 70ch;
}
.content-block h2 {
  font-size: clamp(19px, 4vw, 23px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.content-block p { color: var(--ink-dim); }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .compare-grid { grid-template-columns: repeat(3, 1fr); }
  .compare-grid-two { grid-template-columns: 1fr 1fr; }
}
.compare-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.compare-card h3 { margin: 0 0 8px; font-size: 15px; }
.compare-card p, .compare-card li { color: var(--ink-dim); font-size: 14px; }
.compare-card ul { margin: 0; padding-left: 18px; }
.compare-card.safe { border-top: 3px solid var(--accent); }
.compare-card.stop { border-top: 3px solid var(--stop); }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 8px 0;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 0; padding: 0 14px 14px; color: var(--ink-dim); font-size: 14px; }

.site-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  #gauge-needle { transition: none; }
}

/* ---- High-contrast / dark text on light scheme for small viewports ---- */
@media (max-width: 380px) {
  .step-options { gap: 6px; }
  .step-option { font-size: 14px; padding: 6px 10px 6px 6px; }
  .panel-grid { gap: 12px; }
  .diagnostic-panel { padding: 16px 12px; }
}

/* ---- Site navigation (guide cluster cross-links) ---- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}
.site-nav a {
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  min-height: var(--target);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: border-color 0.12s linear, background 0.12s linear, color 0.12s linear;
}
.site-nav a:hover { color: var(--ink); border-color: var(--line); background: var(--panel); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: rgba(57,217,138,0.4);
  background: rgba(57,217,138,0.08);
}
/* On narrow screens the nav becomes a horizontally scrollable strip so every
   target stays reachable without crowding the header. */
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; }
  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .site-nav a { flex: 0 0 auto; }
}

/* ---- Guide article + hero ---- */
.guide-article { margin-top: 8px; }
.article-hero {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
}
.hero-eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 5.5vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-answer {
  margin: 0 0 14px;
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 62ch;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Jump links (on-this-page nav) ---- */
.jump-links {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.jump-links h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 6px;
}
.jump-links ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.jump-links a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  min-height: var(--target);
  display: inline-flex;
  align-items: center;
}
.jump-links a:hover { text-decoration: underline; }

/* ---- Decision cards (info + link cards) ---- */
.decision-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0 0;
}
@media (min-width: 720px) {
  .decision-cards { grid-template-columns: repeat(2, 1fr); }
}
.decision-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--idle);
  border-radius: var(--radius-sm);
  padding: 14px;
}
a.decision-card {
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 0.12s linear, background 0.12s linear;
}
a.decision-card:hover { border-color: var(--accent); background: #1b2737; }
.decision-card.go { border-left-color: var(--accent); }
.decision-card.stop { border-left-color: var(--stop); }
.decision-card.manual { border-left-color: var(--warn); }
.decision-card h3 { margin: 0 0 6px; font-size: 15px; }
.decision-card p { margin: 0; color: var(--ink-dim); font-size: 14px; }
.decision-card .card-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* ---- Callout / routing banner ---- */
.callout {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(57,217,138,0.4);
  border-left: 4px solid var(--accent);
  background: rgba(57,217,138,0.06);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
}
.callout strong { color: var(--accent); }
.callout a { font-weight: 600; }

/* ---- Stop list (shared) ---- */
.stop-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.stop-list li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-dim);
  font-size: 14px;
}
.stop-list li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--stop);
  font-weight: 700;
  font-size: 13px;
}

/* ---- Related guides ---- */
.related-guides { margin-top: 32px; }
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 720px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
.related-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  min-height: var(--target);
  transition: border-color 0.12s linear, background 0.12s linear;
}
.related-card:hover { border-color: var(--accent); background: #1b2737; }
.related-card h3 { margin: 0 0 4px; font-size: 15px; color: var(--accent); }
.related-card p { margin: 0; color: var(--ink-dim); font-size: 14px; }

/* ---- Symptom console (homepage symptom navigation block) ---- */
.symptom-console {
  margin-top: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.symptom-console h2 {
  font-size: clamp(19px, 4vw, 23px);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.symptom-console > p { color: var(--ink-dim); margin: 0 0 14px; max-width: 62ch; }
.symptom-console .decision-cards { margin-top: 0; }

/* Guide content blocks inherit the existing .content-block styling. Guide
   step lists use a numbered console look. */
.guide-steps {
  list-style: none;
  counter-reset: step;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.guide-steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 14px 12px 52px;
  background: #0c1219;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-dim);
  font-size: 14px;
}
.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
}
.guide-steps li strong { color: var(--ink); }

/* Keep guide article content readable on very small screens. */
@media (max-width: 380px) {
  .article-hero { padding: 16px 12px; }
  .guide-steps li { padding-left: 48px; font-size: 13px; }
  .guide-steps li::before { width: 24px; height: 24px; font-size: 12px; }
  .hero-cta .btn { flex: 1 1 auto; }
}
