/*
Theme Name: Ruta Clínica
Theme URI: https://dondeinvertireldinero.es/
Author: Donde Invertir el Dinero
Description: Tema editorial de rutas financieras para decisiones educativas en España.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ruta-clinica
*/

:root {
  --clinic: #fbfcfd;
  --paper: #ffffff;
  --ink: #172432;
  --muted: #526373;
  --line: #d6e0e6;
  --blue: #153f63;
  --blue-bright: #276d9e;
  --blue-soft: #e8f1f6;
  --green: #216f55;
  --green-soft: #e8f4ee;
  --coral: #b84b40;
  --coral-soft: #faece9;
  --yellow: #f5d677;
  --shadow: 0 14px 42px rgba(22, 62, 88, 0.1);
  --content: 1180px;
  --reading: 740px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--clinic);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.68;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--blue-bright); text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }
a:hover { color: var(--coral); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

button, input, select { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
}
.skip-link:focus { transform: none; }

.site-shell, .wide-shell, .reading-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.reading-shell { width: min(calc(100% - 40px), var(--reading)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(214, 224, 230, 0.9);
  background: rgba(251, 252, 253, 0.96);
  backdrop-filter: blur(14px);
}

.utility-line {
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  line-height: 1.3;
}
.utility-line .site-shell { display: flex; justify-content: space-between; gap: 24px; padding-block: 7px; }
.utility-line a { color: #fff; }

.header-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); font-weight: 800; line-height: 1.08; text-decoration: none; }
.brand-mark { position: relative; width: 42px; height: 42px; flex: 0 0 42px; border: 3px solid var(--blue); border-radius: 50%; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 7px; right: 7px; height: 4px; border-radius: 3px; background: var(--green); }
.brand-mark::before { top: 10px; transform: rotate(-18deg); }
.brand-mark::after { bottom: 9px; background: var(--coral); transform: rotate(18deg); }
.brand-name { max-width: 190px; font-size: 16px; }

.primary-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: block; padding: 10px 12px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--blue); border-color: var(--green); }

.header-search .search-form { display: flex; width: 230px; }
.header-search input { min-width: 0; width: 100%; height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: #fff; }
.header-search button { width: 44px; height: 42px; border: 0; border-radius: 0 var(--radius) var(--radius) 0; color: #fff; background: var(--blue); cursor: pointer; }
.search-glyph { display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.search-glyph::after { content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }

.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--blue); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

.route-hero {
  position: relative;
  isolation: isolate;
  min-height: min(660px, 74vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--paper) url("assets/images/hero-ruta.webp") center / cover no-repeat;
}
.route-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251, 252, 253, 0.72); }
.route-hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 13px; background: repeating-linear-gradient(90deg, var(--blue) 0 33.3%, var(--green) 33.3% 66.6%, var(--coral) 66.6% 100%); }
.hero-copy { width: min(100%, 800px); padding-block: 84px 76px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--green); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 4px; border-radius: 4px; background: var(--coral); }
.route-hero h1 { max-width: 760px; margin: 0; color: var(--blue); font-size: clamp(45px, 7vw, 86px); line-height: .98; letter-spacing: 0; }
.route-hero .hero-lead { max-width: 670px; margin: 28px 0 0; color: #243848; font-size: 22px; line-height: 1.48; font-weight: 560; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button, .wp-element-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  color: #fff;
  background: var(--blue);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { color: #fff; background: var(--green); border-color: var(--green); }
.button-secondary { color: var(--blue); background: rgba(255,255,255,.88); }
.button-secondary:hover { color: #fff; }

.band { padding-block: 78px; }
.band-tight { padding-block: 52px; }
.band-white { background: var(--paper); }
.band-blue { color: #fff; background: var(--blue); }
.band-green { color: #fff; background: var(--green); }
.section-kicker { margin: 0 0 8px; color: var(--coral); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.section-heading { max-width: 850px; margin: 0; color: var(--blue); font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: 0; }
.section-intro { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 20px; }
.band-blue .section-heading, .band-blue .section-intro, .band-green .section-heading, .band-green .section-intro { color: #fff; }

.diagnosis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diagnosis-step { min-height: 220px; padding: 28px 26px 28px 0; border-right: 1px solid var(--line); }
.diagnosis-step + .diagnosis-step { padding-left: 26px; }
.diagnosis-step:last-child { border-right: 0; }
.step-number { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 15px; font-weight: 800; }
.diagnosis-step:nth-child(2) .step-number { background: var(--green); }
.diagnosis-step:nth-child(3) .step-number { color: var(--ink); background: var(--yellow); }
.diagnosis-step:nth-child(4) .step-number { background: var(--coral); }
.diagnosis-step h3 { margin: 18px 0 6px; color: var(--blue); font-size: 22px; line-height: 1.2; }
.diagnosis-step p { margin: 0; color: var(--muted); font-size: 16px; }

.selector-wrap { margin-top: 36px; border-top: 8px solid var(--green); background: var(--paper); box-shadow: var(--shadow); }
.route-selector { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); }
.selector-form { padding: 38px; }
.selector-form fieldset { margin: 0 0 30px; padding: 0; border: 0; }
.selector-form legend { margin-bottom: 12px; color: var(--blue); font-size: 18px; font-weight: 800; }
.field-hint { margin: -8px 0 14px; color: var(--muted); font-size: 14px; }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.segmented.three { grid-template-columns: repeat(3, 1fr); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: grid; place-items: center; min-height: 48px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--clinic); font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; }
.segmented input:checked + label { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: inset 0 -4px 0 var(--green); }
.segmented input:focus-visible + label { outline: 3px solid var(--yellow); outline-offset: 2px; }
.selector-select { width: 100%; min-height: 50px; padding: 10px 42px 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; }
.selector-submit { width: 100%; }
.selector-output { position: relative; padding: 38px 34px; color: #fff; background: var(--blue); overflow: hidden; }
.selector-output::before { content: ""; position: absolute; width: 320px; height: 320px; right: -210px; top: -80px; border: 28px solid rgba(255,255,255,.08); border-radius: 50%; }
.output-label { margin: 0 0 14px; color: #bce6d6; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.output-route { margin: 0; color: #fff; font-size: 29px; line-height: 1.13; }
.output-copy { margin: 14px 0 0; color: #e9f1f5; font-size: 16px; }
.output-warning { margin: 24px 0 0; padding: 14px; border-left: 5px solid var(--coral); background: rgba(255,255,255,.08); font-size: 15px; }
.output-list { margin: 20px 0 0; padding-left: 20px; color: #fff; font-size: 15px; }
.output-next { display: grid; gap: 8px; margin-top: 24px; }
.output-next a { color: #fff; font-size: 15px; font-weight: 700; }
.route-placeholder { display: flex; min-height: 420px; flex-direction: column; justify-content: center; }
.route-placeholder .route-node { width: 56px; height: 56px; margin-bottom: 24px; border: 14px solid var(--green); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 8px rgba(255,255,255,.2); }

.product-map { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 44px; margin-top: 46px; }
.product-map::before { content: ""; position: absolute; left: 15%; right: 15%; top: 50%; height: 7px; background: var(--green); }
.map-stop { position: relative; z-index: 1; min-height: 160px; padding: 24px; border: 1px solid var(--line); border-top: 6px solid var(--blue); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 24px rgba(22,62,88,.06); }
.map-stop:nth-child(2n) { border-top-color: var(--green); }
.map-stop:nth-child(3n) { border-top-color: var(--coral); }
.map-stop h3 { margin: 0 0 8px; color: var(--blue); font-size: 21px; }
.map-stop p { margin: 0; color: var(--muted); font-size: 15px; }
.map-stop a { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 800; }

.risk-band { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.risk-scale { display: grid; gap: 18px; }
.scale-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 18px; }
.scale-row strong { font-size: 14px; }
.scale-track { height: 14px; background: rgba(255,255,255,.22); }
.scale-track span { display: block; height: 100%; background: var(--yellow); }
.scale-row:nth-child(2) .scale-track span { width: 62%; background: #a6d8c2; }
.scale-row:nth-child(3) .scale-track span { width: 88%; background: #f1a29a; }

.mistake-list { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 34px; border-top: 1px solid rgba(255,255,255,.28); }
.mistake-list div { padding: 22px 24px 22px 0; border-bottom: 1px solid rgba(255,255,255,.28); }
.mistake-list div:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.28); }
.mistake-list strong { display: block; color: var(--yellow); font-size: 17px; }
.mistake-list span { font-size: 15px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.article-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.article-card-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article-card-copy { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.article-card-meta { color: var(--green); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.article-card h2, .article-card h3 { margin: 10px 0 8px; color: var(--blue); font-size: 23px; line-height: 1.2; }
.article-card h2 a, .article-card h3 a { color: inherit; text-decoration: none; }
.article-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.card-link { margin-top: auto; font-size: 15px; font-weight: 800; }

.faq-list { margin-top: 38px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 22px 52px 22px 0; color: var(--blue); font-size: 19px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 17px; color: var(--green); font-size: 30px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { max-width: 820px; margin: -4px 0 22px; color: var(--muted); }

.breadcrumbs { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; padding-top: 22px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--blue); }

.page-hero, .archive-hero { padding: 62px 0 54px; border-bottom: 1px solid var(--line); background: var(--paper); }
.page-hero h1, .archive-hero h1 { max-width: 900px; margin: 0; color: var(--blue); font-size: clamp(42px, 6vw, 70px); line-height: 1.02; letter-spacing: 0; overflow-wrap: anywhere; }
.page-deck { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 21px; }
.entry-content { padding-block: 50px 80px; }
.entry-content > * { max-width: var(--reading); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide, .entry-content > .selector-wrap, .entry-content > .author-ledger { max-width: var(--content); }
.entry-content h2 { margin-top: 48px; color: var(--blue); font-size: 34px; line-height: 1.18; }
.entry-content h3 { margin-top: 34px; color: var(--blue); font-size: 24px; line-height: 1.22; }
.entry-content p, .entry-content li { overflow-wrap: break-word; }
.entry-lead { color: #243d50; font-size: 23px; line-height: 1.5; }
.review-stamp { margin-top: 18px; padding-block: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--green); font-size: 14px; font-weight: 800; }
.educational-note { margin-top: 28px; padding: 18px 20px; border-left: 6px solid var(--coral); color: #642d27; background: var(--coral-soft); font-size: 16px; }
.check-list { padding-left: 24px; }
.check-list li { margin-bottom: 10px; padding-left: 5px; }
.check-list li::marker { color: var(--green); font-weight: 800; }
.table-scroll { margin-block: 30px; overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: var(--blue); }
tbody tr:nth-child(even) { background: var(--blue-soft); }
.route-callout, .formula-box { display: flex; flex-direction: column; gap: 6px; margin-block: 30px; padding: 24px; border-left: 7px solid var(--green); background: var(--blue-soft); }
.route-callout span, .formula-box span { color: var(--green); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.route-callout strong, .formula-box strong { color: var(--blue); font-size: 21px; overflow-wrap: anywhere; }
.formula-box { border-left-color: var(--coral); background: var(--coral-soft); }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 30px; }
.scenario-grid div { min-height: 120px; padding: 18px; color: #fff; background: var(--blue); }
.scenario-grid div:nth-child(2) { background: var(--green); }
.scenario-grid div:nth-child(3) { background: var(--coral); }
.scenario-grid span, .scenario-grid strong { display: block; }
.scenario-grid span { font-size: 13px; text-transform: uppercase; }
.source-panel { margin-top: 48px; padding: 26px; border-top: 8px solid var(--blue); background: var(--blue-soft); }
.source-panel h2 { margin-top: 0; font-size: 26px; }
.source-panel li { margin-bottom: 8px; }
.article-faq { margin-top: 48px; }
.next-route { margin-top: 36px; padding: 18px 20px; border: 1px solid var(--line); background: var(--paper); }
.author-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.author-ledger article { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.author-ledger article > span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 800; }
.author-ledger article:nth-child(2) > span { background: var(--green); }
.author-ledger h2 { margin: 0 0 8px; font-size: 26px; }
.author-ledger p { margin: 0; color: var(--muted); font-size: 16px; }
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-block: 30px; background: var(--line); }
.contact-panel p { margin: 0; padding: 22px; background: var(--paper); }
.correction-log { margin-block: 30px; padding: 22px; border-left: 7px solid var(--green); background: var(--green-soft); }

.single-head { padding: 44px 0 0; background: var(--paper); }
.single-head-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 48px; align-items: center; }
.single-head h1 { margin: 12px 0 18px; color: var(--blue); font-size: clamp(43px, 5.6vw, 68px); line-height: 1.03; letter-spacing: 0; overflow-wrap: anywhere; }
.single-meta { display: flex; flex-wrap: wrap; gap: 14px 22px; color: var(--muted); font-size: 14px; }
.single-meta a { font-weight: 800; }
.single-cover { align-self: stretch; min-height: 440px; }
.single-cover img { width: 100%; height: 100%; object-fit: cover; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 18px; margin-top: 48px; padding: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-initials { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: var(--green); font-weight: 800; }
.author-box h2 { margin: 0 0 4px; font-size: 20px; }
.author-box p { margin: 0; color: var(--muted); font-size: 15px; }

.archive-grid { padding-block: 50px 80px; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 6px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.pagination .current { color: #fff; border-color: var(--blue); background: var(--blue); }

.empty-state { max-width: 680px; padding: 60px 0 90px; }
.empty-state h1 { margin: 0; color: var(--blue); font-size: clamp(50px, 10vw, 92px); line-height: 1; }
.empty-state p { color: var(--muted); font-size: 20px; }
.search-main { min-height: 58vh; }

.site-footer { color: #dbe8ef; background: #112f49; }
.footer-route { height: 9px; background: repeating-linear-gradient(90deg, var(--green) 0 31%, var(--yellow) 31% 62%, var(--coral) 62% 100%); }
.footer-main { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 64px; padding-block: 58px 42px; }
.footer-brand { color: #fff; font-size: 25px; font-weight: 800; }
.footer-main p { max-width: 470px; font-size: 15px; }
.footer-main h2 { margin: 0 0 14px; color: #fff; font-size: 17px; }
.footer-main ul { margin: 0; padding: 0; list-style: none; }
.footer-main li { margin-bottom: 8px; }
.footer-main a { color: #dbe8ef; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 1020px) {
  .header-row { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 113px 0 auto; max-height: calc(100vh - 113px); padding: 22px 20px 32px; border-bottom: 1px solid var(--line); background: var(--clinic); overflow-y: auto; transform: translateY(-140%); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease; }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { align-items: stretch; flex-direction: column; }
  .primary-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .header-search { display: none; }
  .diagnosis-grid { grid-template-columns: 1fr 1fr; }
  .diagnosis-step:nth-child(2) { border-right: 0; }
  .diagnosis-step:nth-child(3), .diagnosis-step:nth-child(4) { border-top: 1px solid var(--line); }
  .route-selector { grid-template-columns: 1fr; }
  .route-placeholder { min-height: 260px; }
  .product-map { grid-template-columns: 1fr 1fr; }
  .product-map::before { display: none; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .single-head-inner { grid-template-columns: 1fr; }
  .single-cover { min-height: 0; aspect-ratio: 16 / 8; }
  .risk-band { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .site-shell, .wide-shell, .reading-shell, .breadcrumbs { width: min(calc(100% - 28px), var(--content)); }
  .utility-line .site-shell { justify-content: center; }
  .utility-line span:last-child { display: none; }
  .header-row { min-height: 68px; gap: 14px; }
  .brand-name { max-width: 150px; font-size: 14px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .primary-nav { inset: 103px 0 auto; max-height: calc(100vh - 103px); }
  .route-hero { min-height: min(610px, 74vh); background-position: 60% center; }
  .route-hero::before { background: rgba(251, 252, 253, .82); }
  .hero-copy { padding-block: 60px 54px; }
  .route-hero h1 { font-size: 48px; overflow-wrap: anywhere; }
  .route-hero .hero-lead { font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .band { padding-block: 58px; }
  .section-heading { font-size: 38px; overflow-wrap: anywhere; }
  .section-intro { font-size: 18px; }
  .diagnosis-grid { grid-template-columns: 1fr; }
  .diagnosis-step, .diagnosis-step + .diagnosis-step { min-height: 0; padding: 24px 0; border-right: 0; border-top: 1px solid var(--line); }
  .diagnosis-step:first-child { border-top: 0; }
  .selector-form, .selector-output { padding: 26px 20px; }
  .segmented, .segmented.three { grid-template-columns: 1fr 1fr; }
  .segmented.three label:last-child { grid-column: auto; }
  .output-route { font-size: 25px; }
  .product-map { grid-template-columns: 1fr; gap: 14px; }
  .map-stop { min-height: 0; }
  .mistake-list { grid-template-columns: 1fr; }
  .mistake-list div, .mistake-list div:nth-child(even) { padding: 20px 0; border-left: 0; }
  .article-grid { grid-template-columns: 1fr; }
  .page-hero, .archive-hero { padding-block: 42px 38px; }
  .page-hero h1, .archive-hero h1, .single-head h1 { font-size: 42px; }
  .page-deck, .entry-lead { font-size: 19px; }
  .entry-content { padding-block: 36px 60px; }
  .entry-content h2 { margin-top: 40px; font-size: 29px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .author-ledger, .contact-panel { grid-template-columns: 1fr; }
  .author-ledger article { grid-template-columns: 56px 1fr; padding: 20px; }
  .author-ledger article > span { width: 52px; height: 52px; }
  .single-head { padding-top: 28px; }
  .single-head-inner { gap: 30px; }
  .single-cover { width: calc(100% + 28px); margin-left: -14px; aspect-ratio: 4 / 3; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding-block: 44px 30px; }
  .footer-bottom { flex-direction: column; }
}

