/* ═══════════════════════════════════════════════════════════════════════
   Latent reasoning, the field explainer (2026-09-28)
   Loaded after css/pages/neuralese.css and built from its parts: the hero,
   buttons, glass lanes, cards and finding tiles are the Neuralese page's,
   so the two read as one family. Only what is new lives here.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.lr-hero .nx-hero__title { font-size: clamp(3rem, 6.4vw, 5.6rem); }
.lr-hero .nx-hero__sub strong { color: var(--nx-ink); font-weight: 600; }
.lr-hero .nx-loop__legend { bottom: 5.5%; }
.lr-hero__cap {
  max-width: 46ch;
  margin: var(--space-3) auto 0;
  font-size: var(--text-xs);
  line-height: 1.6;
  text-align: center;
  color: var(--text-50);
}

.lr-page .prose a { color: var(--nx-violet); text-decoration: underline; text-underline-offset: 3px; }

/* ── Written step vs latent step ──────────────────────────────────────── */
.lr-bits { margin-top: var(--space-6); }
.lr-bits .nx-lane__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.lr-bits .nx-lane__count {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--nx-ink);
}
.lr-bits .nx-lane--neu .nx-lane__count { color: #ebe8ff; }
.lr-lane__canvas {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  margin: var(--space-4) 0;
}

/* ── Three routes ─────────────────────────────────────────────────────── */
.lr-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.lr-route {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-6);
  border-radius: 18px;
  background: var(--nx-glass);
  border: 1px solid var(--nx-edge);
  box-shadow: var(--nx-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.lr-route__art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: var(--space-2);
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(141, 127, 224, 0.12), rgba(141, 127, 224, 0) 70%),
    linear-gradient(180deg, rgba(243, 242, 250, 0.9), rgba(233, 232, 245, 0.9));
  box-shadow: inset 0 0 0 1px rgba(37, 45, 61, 0.06);
}
.lr-route__eyebrow,
.lr-route__cite {
  padding: 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-50);
}
.lr-route__title {
  margin: 0;
  padding: 0 var(--space-2);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  letter-spacing: -0.01em;
  color: var(--nx-ink);
}
.lr-route__body {
  margin: 0;
  padding: 0 var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-70);
}
.lr-route__cite { margin-top: auto; padding-top: var(--space-2); letter-spacing: 0.06em; }
.lr-route__cite a { color: var(--nx-violet); text-decoration: none; }
.lr-route__cite a:hover { text-decoration: underline; }
.lr-aside {
  max-width: 72ch;
  margin: var(--space-8) 0 0;
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--text-70);
}

/* ── Gains and costs ──────────────────────────────────────────────────── */
.lr-findings--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nx-finding__tag--violet {
  color: #4b3fa8;
  background: rgba(75, 63, 168, 0.08);
  border-color: rgba(75, 63, 168, 0.24);
}
.lr-page .nx-finding__fig { font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
.nx-finding p a { color: var(--nx-violet); }

/* ── Questions ────────────────────────────────────────────────────────── */
.lr-faq {
  display: grid;
  gap: var(--space-3);
  max-width: 860px;
  margin: var(--space-6) 0 0;
}
.lr-faq details {
  border-radius: 14px;
  background: var(--nx-glass);
  border: 1px solid var(--nx-edge);
  box-shadow: 0 20px 44px -34px rgba(37, 45, 61, 0.5);
}
.lr-faq summary {
  position: relative;
  padding: var(--space-4) var(--space-12) var(--space-4) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--nx-ink);
  cursor: pointer;
  list-style: none;
}
.lr-faq summary::-webkit-details-marker { display: none; }
.lr-faq summary::after {
  content: "+";
  position: absolute;
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.2em;
  color: var(--nx-violet);
  transition: transform 0.3s var(--nx-ease);
}
.lr-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lr-faq details p {
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--text-70);
}
.lr-faq details a { color: var(--nx-violet); }

/* ── Further reading ──────────────────────────────────────────────────── */
.lr-refs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-6);
  max-width: 1100px;
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ref;
}
.lr-refs li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3) 0 var(--space-3) 2.6em;
  border-top: 1px solid rgba(37, 45, 61, 0.1);
  counter-increment: ref;
}
.lr-refs li::before {
  content: counter(ref, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--nx-violet);
  line-height: 2;
}
.lr-refs a {
  color: var(--nx-ink);
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}
.lr-refs a:hover { color: var(--nx-violet); text-decoration: underline; text-underline-offset: 3px; }
.lr-refs span {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.04em;
  color: var(--text-50);
}

/* ── Small screens ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .lr-findings--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lr-routes,
  .lr-refs { grid-template-columns: 1fr; }
  .lr-route__art { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .lr-findings--4 { grid-template-columns: 1fr; }
  .lr-lane__canvas { aspect-ratio: 16 / 9; }
  .lr-faq summary { padding-left: var(--space-4); }
  .lr-faq details p { padding: 0 var(--space-4) var(--space-4); }
}
