@import url("./tokens.css?v=fieldmax6");
@import url("./fields.css?v=fieldmax6");

/**
 * Learning path — 16:9 board.
 * Coral top / teal bottom field, cream Next Up card, 8125 zig-zag path.
 * Dock classes stay shared (.bottom-dock / .bottom-nav) — do not invent a second dock.
 */

:root {
  --track-casing: color-mix(in srgb, #3FA4B3 62%, #ffffff);
  --track-stitch: #ffffff;
  --track-width: 18;
  --track-stitch-width: 5;
  --path-column: min(1440px, 100%);
  --path-gutter: var(--ry-gutter);
  --dock-height: 68px;
  --dock-space: calc(var(--dock-height) + var(--ry-space-2));
  --node-size: 88px;
  --node-size-current: 96px;
  --node-size-boss: 92px;
  --node-ledge: 6px;
  --node-collar: 3px;
  --cream: #fff8f2;
  --card-radius: 28px;
  --ry-sky: var(--ry-coral);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100dvh;
  overflow: visible;
  color: var(--ry-ink);
  background: var(--ry-coral);
  font-family: var(--ry-font);
  font-size: var(--ry-fs-body);
  font-weight: var(--ry-fw-body);
  line-height: var(--ry-lh-body);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 100dvh;
  padding-bottom: calc(var(--dock-space) + env(safe-area-inset-bottom));
}

/* Shared field plate is `.ry-field.ry-field--learn` from fields.css. */

#path .status-bar {
  background: transparent;
  animation: none;
}

.phone-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--path-column);
  min-width: 0;
  min-height: calc(100dvh - var(--dock-space));
}

/* ——— Header: logo | section | stats | avatar ———————————————— */

.status-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--ry-space-2);
  min-height: 72px;
  padding: var(--ry-space-1) var(--path-gutter);
  background: transparent;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: var(--ry-space-1);
  color: var(--ry-ink);
  font-size: var(--ry-fs-small);
  font-weight: var(--ry-fw-heading);
  letter-spacing: var(--ry-tracking-heading);
  text-decoration: none;
}

.top-brand img {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.section-menu {
  position: relative;
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.section-select {
  display: flex;
  align-items: center;
  gap: var(--ry-space-1-5);
  min-height: 40px;
  max-width: 100%;
  padding: 0 var(--ry-space-2);
  color: var(--ry-ink);
  border: 0;
  border-radius: var(--ry-radius-pill);
  background: color-mix(in srgb, #ffffff 72%, transparent);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.section-select:focus-visible {
  outline: 2px solid var(--ry-ink);
  outline-offset: 2px;
}

.section-select span {
  color: var(--ry-ink-soft);
  font-size: var(--ry-fs-meta);
  font-weight: var(--ry-fw-label);
  letter-spacing: var(--ry-tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-select strong {
  overflow: hidden;
  color: var(--ry-ink);
  font-size: var(--ry-fs-small);
  font-weight: var(--ry-fw-heading);
  letter-spacing: var(--ry-tracking-heading);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-select i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  rotate: 45deg;
}

.section-select[aria-expanded="true"] i {
  rotate: 225deg;
}

.section-progress {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.stat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ry-ink);
  font-size: 1rem;
  font-weight: var(--ry-fw-display);
  font-variant-numeric: tabular-nums;
}

.stat::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 8px;
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.16);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.stat.fire::before {
  background-color: var(--ry-orange);
  background-image: url("/assets/stat-icons/flame.svg");
}

.stat.gem::before {
  background-color: var(--ry-blue);
  background-image: url("/assets/stat-icons/gem.svg");
}

.stat.heart::before {
  background-color: var(--ry-red);
  background-image: url("/assets/stat-icons/heart.svg");
}

.stat small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.top-avatar {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #ffe0c2 0 38%, transparent 40%),
    linear-gradient(180deg, #f3d2b3 42%, #e8b48a 43%);
  box-shadow: 0 0 0 2px #fff;
}

/* ——— Unit picker —————————————————————————————————————————————— */

.section-picker {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 50%;
  width: min(420px, 72vw);
  max-height: min(440px, calc(100dvh - 180px));
  overflow: auto;
  padding: var(--ry-space-2);
  border: 2px solid var(--ry-teal);
  border-radius: var(--ry-radius-lg);
  background: var(--cream);
  box-shadow: var(--ry-shadow-pop);
  transform: translateX(-50%);
}

.section-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ry-space-2);
  padding-bottom: var(--ry-space-1);
  margin-bottom: var(--ry-space-1);
  border-bottom: var(--ry-border);
}

.section-picker-head strong {
  font-size: var(--ry-fs-heading);
  font-weight: var(--ry-fw-heading);
}

.section-picker-close {
  min-height: 32px;
  padding: 0 var(--ry-space-1-5);
  color: var(--ry-ink);
  border: 0;
  border-radius: var(--ry-radius-sm);
  background: var(--ry-surface-2);
  font-size: var(--ry-fs-label);
  font-weight: var(--ry-fw-label);
}

.section-picker-list {
  display: grid;
}

.section-picker-list section {
  display: grid;
  padding: var(--ry-space-1-5) 0;
}

.section-picker-list section + section {
  border-top: var(--ry-border);
}

.section-picker-list h2 {
  margin: 0 0 var(--ry-space-half);
  color: var(--ry-muted);
  font-size: var(--ry-fs-label);
  font-weight: var(--ry-fw-label);
  letter-spacing: var(--ry-tracking-label);
  text-transform: uppercase;
}

.section-picker-list button {
  width: 100%;
  min-height: 38px;
  padding: 0 var(--ry-space-1);
  color: var(--ry-ink);
  border: 0;
  border-radius: var(--ry-radius-sm);
  background: transparent;
  text-align: left;
  font-size: var(--ry-fs-small);
  font-weight: var(--ry-fw-body);
}

.section-picker-list button:hover,
.section-picker-list button:focus-visible {
  outline: 0;
  background: var(--ry-teal-soft);
}

/* ——— 16:9 board: Next Up + vertical path ———————————————— */

.learn-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ry-space-3);
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 var(--path-gutter) var(--ry-space-3);
}

.learn-pin {
  display: grid;
  align-content: start;
  gap: var(--ry-space-2);
  min-width: 0;
}

.map-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--ry-space-2);
  min-height: 280px;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--cream);
  box-shadow: 0 18px 40px rgba(22, 48, 56, 0.12);
}

.map-intro-copy {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--ry-space-2);
  min-width: 0;
}

.map-intro .ry-label,
.map-intro p.ry-label {
  margin: 0;
  color: var(--ry-muted);
  font-size: var(--ry-fs-label);
  font-weight: var(--ry-fw-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.map-intro h1 {
  margin: 0;
  max-width: 14ch;
  color: var(--ry-ink);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: var(--ry-fw-display);
  line-height: 0.98;
  letter-spacing: var(--ry-tracking-display);
  text-wrap: balance;
}

#introBlurb {
  margin: 0;
  max-width: 34ch;
  color: var(--ry-ink-soft);
  font-size: 1.05rem;
  line-height: 1.45;
}

.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 32px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--ry-coral);
  box-shadow:
    0 4px 0 var(--ry-coral-deep),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 1.05rem;
  font-weight: var(--ry-fw-label);
}

.start-button:hover {
  background: var(--ry-coral-dark);
}

.start-button:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--ry-coral-deep);
}

.start-button:focus-visible {
  outline: 2px solid var(--ry-ink);
  outline-offset: 2px;
}

.next-meter {
  display: block;
  width: 88px;
  height: 6px;
  overflow: hidden;
  border-radius: var(--ry-radius-pill);
  background: color-mix(in srgb, var(--ry-coral) 22%, #fff);
}

.next-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ry-coral);
}

.next-zero {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: end;
  min-width: 180px;
  pointer-events: none;
}

.zero-say {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  max-width: 16ch;
  margin: 0;
  padding: 8px 12px;
  color: var(--ry-ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(22, 48, 56, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.zero-say::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -7px;
  border: 8px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}

.zero-figure--next .zero-sprite,
.zero-figure--teach .zero-sprite,
.zero-figure--build .zero-sprite {
  width: min(210px, 28vw, 38vh);
  filter: drop-shadow(0 12px 0 rgba(196, 51, 59, 0.08));
}

.path-quote {
  display: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.path-sign {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   PATH — 8125 zig-zag geometry + mockup cream cards / fat nodes
   Page scroll (the document grows). Do not box this in overflow:auto.
   ═══════════════════════════════════════════════════════════════ */

.curriculum-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ry-space-5);
  min-width: 0;
  overflow: visible;
  padding-bottom: var(--ry-space-3);
}

.curriculum-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ry-space-3);
  min-width: 0;
}

.unit-banner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: var(--ry-space-1-5);
  min-width: 0;
  padding: 0 4px;
  color: #fff;
  scroll-margin-top: 24px;
}

.unit-banner-eyebrow {
  margin: 0;
  font-size: var(--ry-fs-meta);
  font-weight: var(--ry-fw-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.unit-banner-title {
  margin: 0;
  flex: 1;
  font-size: 1.05rem;
  font-weight: var(--ry-fw-heading);
  letter-spacing: var(--ry-tracking-heading);
}

.unit-banner-count {
  font-size: var(--ry-fs-meta);
  font-weight: var(--ry-fw-label);
  opacity: 0.8;
}

.path-connectors {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.path-connectors path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connector-tube {
  stroke: var(--track-casing);
  stroke-width: var(--track-width);
}

.connector-fill {
  stroke: var(--ry-teal);
  stroke-width: var(--track-width);
  filter: drop-shadow(0 0 6px rgba(63, 164, 179, 0.45));
}

.connector-tube-core {
  stroke: var(--track-stitch);
  stroke-width: var(--track-stitch-width);
  stroke-dasharray: 1 14;
  opacity: 0.9;
}

.lesson-row {
  --edge-shift: clamp(8px, 8%, 56px);
  --mid-shift: clamp(28px, 14%, 96px);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  min-height: var(--node-size-current);
  scroll-margin-top: 96px;
  pointer-events: none;
}

.lesson-row .node,
.lesson-row .path-card,
.lesson-row .path-stop {
  pointer-events: auto;
}

.lesson-row.left {
  justify-content: flex-start;
  padding-left: var(--edge-shift);
}

.lesson-row.right {
  flex-direction: row-reverse;
  justify-content: flex-start;
  padding-right: var(--edge-shift);
}

.lesson-row.far-left {
  justify-content: flex-start;
}

.lesson-row.far-right {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.lesson-row.center {
  justify-content: center;
}

.lesson-row.center-left {
  justify-content: center;
  padding-right: var(--mid-shift);
}

.lesson-row.center-right {
  justify-content: center;
  padding-left: var(--mid-shift);
}

.path-stop {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  width: var(--node-size-current);
  flex: 0 0 auto;
}

.path-index {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(22, 48, 56, 0.18);
}

.path-inlet {
  position: relative;
  z-index: 1;
  min-height: 320px;
  overflow: visible;
  pointer-events: none;
}

.path-inlet .zero-sprite,
.path-inlet [data-clip="jump"] .zero-sprite {
  width: 162px;
}

.path-inlet .zero-hit {
  min-width: 162px;
  min-height: 226px;
  padding: 0;
}

.path-inlet .zero-figure {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}

.path-inlet.is-left .zero-figure {
  left: clamp(0px, 3%, 20px);
}

.path-inlet.is-right .zero-figure {
  right: clamp(0px, 3%, 20px);
}

.node {
  --node-face: var(--ry-teal);
  --node-edge: var(--ry-teal-deep);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node-size);
  height: var(--node-size);
  color: #fff;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(120% 90% at 30% 18%, rgba(255, 255, 255, 0.38), transparent 46%),
    var(--node-face);
  box-shadow:
    0 0 0 8px #fff,
    0 var(--node-ledge) 0 var(--node-edge),
    inset 0 3px 0 rgba(255, 255, 255, 0.32);
}

.node:hover,
.node:focus-visible {
  outline: 0;
  transform: translateY(-2px);
}

.node:focus-visible {
  box-shadow:
    0 0 0 6px #fff,
    0 0 0 8px var(--ry-ink),
    0 var(--node-ledge) 0 var(--node-edge);
}

.node-glyph,
.node-lock {
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.node-glyph {
  filter: brightness(0) invert(1);
}

.node-num {
  display: none;
}

.node.complete {
  --node-face: var(--ry-teal);
  --node-edge: var(--ry-teal-deep);
}

.node.current {
  width: var(--node-size-current);
  height: var(--node-size-current);
  --node-face: var(--ry-coral);
  --node-edge: var(--ry-coral-deep);
}

.node.locked {
  --node-face: #d5dee2;
  --node-edge: var(--ry-locked-edge);
  color: var(--ry-locked-ink);
}

.node.locked .node-lock {
  color: #7b8d93;
}

.node.boss {
  border-radius: 50%;
}

.path-card {
  display: grid;
  gap: 6px;
  width: min(200px, 42vw);
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 10px 24px rgba(22, 48, 56, 0.1);
  cursor: pointer;
}

.lesson-row.right .path-card,
.lesson-row.far-right .path-card {
  text-align: right;
  justify-items: end;
}

.lesson-row.right .lesson-stars,
.lesson-row.far-right .lesson-stars {
  justify-content: flex-end;
}

.lesson-row.right .challenge-launch,
.lesson-row.far-right .challenge-launch {
  justify-self: end;
}

.path-card.is-locked {
  cursor: default;
  opacity: 0.92;
}

.path-card strong {
  font-size: 1.02rem;
  font-weight: var(--ry-fw-heading);
  letter-spacing: var(--ry-tracking-heading);
  line-height: 1.2;
}

.path-status {
  color: var(--ry-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.path-card.is-complete .path-status {
  color: var(--ry-teal-deep);
}

.path-card.is-current .path-status {
  color: var(--ry-coral-deep);
}

.lesson-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.path-star {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: #e4d2b8;
  border: 0;
  border-radius: var(--ry-radius-xs);
  background: transparent;
  font-size: 15px;
  line-height: 1;
}

.path-star.is-filled {
  color: var(--ry-amber);
}

.path-star.is-next {
  color: var(--ry-amber);
  opacity: 0.38;
}

.path-star.is-locked {
  pointer-events: none;
}

button.path-star:not(:disabled):hover,
button.path-star:not(:disabled):focus-visible {
  outline: 0;
  transform: scale(1.16);
}

.challenge-launch {
  justify-self: start;
  min-height: 22px;
  padding: 0;
  color: var(--ry-coral-deep);
  border: 0;
  background: none;
  font-size: var(--ry-fs-meta);
  font-weight: var(--ry-fw-label);
  letter-spacing: var(--ry-tracking-label);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   DOCK + POPOVER — shared class names for the sibling icon dock
   ═══════════════════════════════════════════════════════════════ */

.bottom-dock {
  position: fixed;
  z-index: 45;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 0;
  background: #fff;
  box-shadow: 0 -1px 0 rgba(22, 48, 56, 0.06);
}

.bottom-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--ry-space-half);
  width: 100%;
  max-width: var(--path-column);
  min-height: var(--dock-height);
  padding: var(--ry-space-1) var(--ry-space-1);
}

.bottom-nav a {
  --nav-hue: var(--ry-coral);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  padding: 6px 2px 8px;
  color: var(--ry-ink-soft);
  border-radius: 0;
  text-decoration: none;
  font-size: var(--ry-fs-meta);
  font-weight: var(--ry-fw-label);
}

.bottom-nav a:nth-child(1) { --nav-hue: var(--ry-coral); }
.bottom-nav a:nth-child(2) { --nav-hue: var(--ry-ink-soft); }
.bottom-nav a:nth-child(3) { --nav-hue: var(--ry-ink-soft); }
.bottom-nav a:nth-child(4) { --nav-hue: var(--ry-ink-soft); }
.bottom-nav a:nth-child(5) { --nav-hue: var(--ry-ink-soft); }

.bottom-nav span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  color: var(--nav-hue);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.bottom-nav a span {
  color: var(--nav-hue);
}

.bottom-nav a.active {
  color: var(--ry-coral);
  box-shadow: inset 0 -3px 0 var(--ry-coral);
}

.bottom-nav a.active span {
  color: var(--ry-coral);
}

.bottom-nav a:focus-visible {
  outline: 2px solid var(--ry-ink);
  outline-offset: 2px;
}

.node-popover {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(var(--dock-height) + var(--ry-space-2));
  width: min(420px, calc(100vw - var(--ry-space-4)));
  padding: var(--ry-space-2);
  color: var(--ry-ink);
  border-radius: var(--ry-radius-md);
  background: var(--cream);
  box-shadow: var(--ry-shadow-pop);
  transform: translateX(-50%);
}

.node-popover strong {
  display: block;
  margin-bottom: var(--ry-space-half);
  font-size: var(--ry-fs-heading);
  font-weight: var(--ry-fw-heading);
}

.node-popover p {
  margin: 0;
  color: var(--ry-muted);
  font-size: var(--ry-fs-small);
}

/* ——— Meet Zero ——————————————————————————————————————————————— */

.zero-meet {
  padding: var(--ry-space-3) var(--path-gutter) var(--ry-space-6);
}

.zero-meet-card {
  display: grid;
  justify-items: center;
  gap: var(--ry-space-2);
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.zero-meet-card h1 {
  margin: 0;
  font-size: var(--ry-fs-display);
  font-weight: var(--ry-fw-display);
}

.zero-meet-back {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--ry-space-3);
  color: #fff;
  border-radius: 999px;
  background: var(--ry-coral);
  font-weight: var(--ry-fw-label);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   16:9 — left Next Up, right vertical path
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 1100px) and (min-aspect-ratio: 4/3) {
  .app-shell {
    min-height: 100dvh;
    padding-bottom: calc(var(--dock-space) + env(safe-area-inset-bottom));
  }

  .phone-stage {
    min-height: calc(100dvh - var(--dock-space));
  }

  .learn-board {
    grid-template-columns: minmax(340px, 0.68fr) minmax(560px, 1.32fr);
    grid-template-areas: "pin path";
    column-gap: clamp(20px, 3vw, 48px);
    align-items: start;
    min-height: calc(100dvh - 88px - var(--dock-space));
    padding-bottom: 48px;
  }

  .learn-pin {
    grid-area: pin;
    position: sticky;
    top: 88px;
    z-index: 4;
  }

  .map-intro {
    min-height: min(420px, 58vh);
  }

  .curriculum-map {
    grid-area: path;
    overflow: visible;
    padding: 8px 8px 80px 0;
  }

  .path-quote {
    display: block;
    padding-bottom: 8px;
  }

  .path-sign {
    display: grid;
    position: absolute;
    right: 8px;
    top: 180px;
    gap: 10px;
    width: 92px;
    pointer-events: none;
  }

  .path-sign span {
    display: block;
    padding: 8px 10px;
    color: #fff;
    border-radius: 4px;
    background: #2a9aa8;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 rgba(22, 48, 56, 0.18);
  }

  .path-sign span:first-child {
    background: #e8b44a;
    color: var(--ry-ink);
  }

  .path-sign::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 6px;
    height: 54px;
    background: #c9a06a;
    transform: translateX(-50%);
  }

  .unit-banner {
    color: var(--ry-ink);
  }

  .unit-banner-eyebrow,
  .unit-banner-count {
    color: var(--ry-teal-deep);
  }

  .path-index {
    color: var(--ry-ink);
    text-shadow: none;
  }

  .path-card {
    width: min(210px, 28vw);
  }

  .path-inlet {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .path-inlet {
    min-height: 260px;
  }

  .path-card {
    width: min(168px, 46vw);
  }

  .map-intro {
    grid-template-columns: 1fr;
  }

  .next-zero {
    justify-self: end;
    min-width: 140px;
  }

  .zero-figure--next .zero-sprite {
    width: 150px;
  }

  .top-brand span {
    display: none;
  }

  .section-select strong {
    max-width: 18ch;
  }
}

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