/* ACCESS Learning Journey — pages: the Continue My Journey hero, the journey map, the mission overview.
   Tokens come from ds.css; this file only adds layout and the journey's own --jr-* variables.
   Unit palettes reuse the four studio colours (teal, blue, rose-garnet, amber-brown). Hues stay inside the studio palette.
   Mobile first: a vertical trail at 375px, a winding trail from 900px. Band look: [data-band="3-5"] is warmer and
   rounder, [data-band="6-8"] is calmer and more editorial. */

/* ── unit palettes ─────────────────────────────────────────────────────── */
.jr-page,
.jr-legend,
.jr-hero {
  --jr-unit: var(--brand);
  --jr-ink: var(--brand-ink);
  --jr-soft: var(--brand-soft);
  --jr-glow: var(--mi-300);
}
.jr-u1 {
  --jr-unit: var(--listening);
  --jr-ink: var(--listening-ink);
  --jr-soft: var(--listening-soft);
  --jr-glow: #91e2d6;
}
.jr-u2 {
  --jr-unit: var(--reading);
  --jr-ink: var(--reading-ink);
  --jr-soft: var(--reading-soft);
  --jr-glow: #b9c6ee;
}
.jr-u3 {
  --jr-unit: var(--speaking);
  --jr-ink: var(--speaking-ink);
  --jr-soft: var(--speaking-soft);
  --jr-glow: #dba3b9;
}
.jr-u4 {
  --jr-unit: var(--writing);
  --jr-ink: var(--writing-ink);
  --jr-soft: var(--writing-soft);
  --jr-glow: #f5d6a8;
}
.jr-page {
  --jr-radius: var(--r-lg);
  --jr-card: linear-gradient(180deg, var(--ivory), #f7f1e8);
  display: grid;
  gap: var(--s-6);
  min-width: 0;
}
.jr-page[data-band="3-5"] {
  --jr-radius: 28px;
}
.jr-page[data-band="6-8"] {
  --jr-radius: 16px;
  --jr-card: linear-gradient(180deg, #fff, #faf8f4);
}
.jr-page > * {
  min-width: 0;
}
.jr-section > h2,
.jr-panel > h2 {
  margin: 0 0 var(--s-3);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
}
.jr-foot {
  margin: 0;
  max-width: 62ch;
}

/* ── shared marks: step pips, environment chip, status, here marker ───── */
.jr-pips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jr-pips li {
  margin: 0;
}
.jr-pip {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
}
span.jr-pip {
  min-width: 2.35rem;
  min-height: 2.35rem;
}
.jr-pip-dot {
  display: grid;
  place-items: center;
  width: 1.95rem;
  height: 1.95rem;
  border: 2px dashed var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  font: 700 0.8125rem/1 var(--font);
  transition: transform var(--dur-2) var(--ease-out);
}
.jr-pip-dot .ico {
  width: 1.05rem;
  height: 1.05rem;
}
.jr-pip.is-started .jr-pip-dot,
.jr-pip-dot.is-started {
  border: 2px solid var(--jr-ink);
  background: linear-gradient(90deg, var(--jr-soft) 50%, var(--surface) 50%);
  color: var(--jr-ink);
}
.jr-pip.is-done-supported .jr-pip-dot,
.jr-pip-dot.is-done-supported {
  border: 2px solid var(--jr-unit);
  background: var(--jr-unit);
  color: #fff;
}
.jr-pip.is-done-independent .jr-pip-dot,
.jr-pip-dot.is-done-independent {
  border: 2px solid var(--jr-unit);
  background: var(--jr-unit);
  color: #fff;
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--jr-unit);
}
.jr-pip-dot.is-revisited {
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
}
.jr-pip-rev {
  position: absolute;
  inset: 0.15rem 0.15rem auto auto;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.jr-pip-rev .ico {
  width: 0.65rem;
  height: 0.65rem;
}
.jr-pip.is-here .jr-pip-dot {
  outline: 3px solid var(--jr-unit);
  outline-offset: 3px;
}
a.jr-pip:hover .jr-pip-dot {
  transform: scale(1.08);
}
.jr-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.jr-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}
.jr-legend .jr-pip-dot {
  width: 1.6rem;
  height: 1.6rem;
}
.jr-env {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--jr-soft);
  color: var(--jr-ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}
.jr-env-glyph {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
}
.jr-klu {
  display: inline-block;
  padding: 0.05rem 0.6rem;
  border: 1.5px solid currentcolor;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.jr-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.45rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.jr-status .ico {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--jr-ink);
}
.jr-status strong {
  color: var(--ink);
}
.jr-here {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
  padding: 0.2rem 0.7rem 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--jr-unit);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}
.jr-here .ico {
  width: 1rem;
  height: 1rem;
}

/* ── hero: Continue My Journey (also the first section of the lab home) ── */
body[data-lab-band] .jr-hero.ll-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
  align-items: stretch;
  margin-top: var(--s-2);
  padding: clamp(1.25rem, 2.6vw, 2rem);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 160' fill='none'%3E%3Cpath d='M-10 120C70 40 140 40 220 100S380 150 450 70 560 30 620 60' stroke='%23fffdf8' stroke-opacity='.13' stroke-width='3' stroke-dasharray='2 12' stroke-linecap='round'/%3E%3C/svg%3E")
      no-repeat left bottom / 100% auto,
    radial-gradient(
      60% 80% at 100% 0%,
      color-mix(in srgb, var(--jr-glow) 24%, transparent),
      transparent 70%
    ),
    radial-gradient(45% 55% at 0% 100%, rgb(21 150 154 / 20%), transparent 70%),
    var(--grain),
    linear-gradient(160deg, var(--mi-800), var(--mi-950) 78%);
}
body[data-lab-band="3-5"] .jr-hero.ll-hero {
  border-radius: 34px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 160' fill='none'%3E%3Cpath d='M-10 120C70 40 140 40 220 100S380 150 450 70 560 30 620 60' stroke='%23fffdf8' stroke-opacity='.18' stroke-width='4' stroke-dasharray='2 13' stroke-linecap='round'/%3E%3C/svg%3E")
      no-repeat left bottom / 100% auto,
    radial-gradient(55% 70% at 100% 0%, rgb(245 214 168 / 30%), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgb(21 150 154 / 24%), transparent 70%),
    var(--grain),
    linear-gradient(160deg, var(--mi-600), var(--mi-800) 78%);
}
.jr-hero h1 {
  max-width: 26ch;
  margin-block: var(--s-2);
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem);
}
.jr-hero .lead {
  margin-bottom: var(--s-4);
}
.jr-hero-copy {
  display: grid;
  align-content: start;
  gap: 0;
}
.jr-hero-copy > .eyebrow {
  margin-bottom: var(--s-2);
}
.jr-hero .band-switch {
  justify-self: start;
}
.jr-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin: 0;
}
.jr-hero .jr-cta .btn-primary {
  flex: 1 1 100%;
  max-width: 26rem;
  background: linear-gradient(180deg, var(--ivory), #efe6da);
  border-color: transparent;
  color: var(--mi-950);
  box-shadow:
    var(--edge-light),
    0 14px 30px -14px rgb(210 139 88 / 70%),
    0 2px 6px rgb(0 0 0 / 25%);
}
.jr-hero .jr-cta .btn-primary:hover {
  background: linear-gradient(180deg, #fff, var(--copper-200));
  color: var(--mi-950);
}
.jr-time {
  color: #d5dceb;
  font-size: 0.9375rem;
}
.jr-cta .jr-time {
  margin: 0;
}
.jr-why {
  margin: var(--s-3) 0 0;
  max-width: 46ch;
  color: #d5dceb;
  font-size: 0.9375rem;
}
.jr-why strong {
  color: var(--ivory);
}
.jr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-5);
  margin: var(--s-2) 0 0;
}
.jr-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  color: var(--ivory);
  font-weight: 700;
}
.jr-links a:hover {
  color: #fff;
}
.jr-hero-card {
  position: relative;
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border-top: 4px solid var(--jr-unit);
  border-radius: var(--jr-radius, var(--r-lg));
  background: var(--grain), linear-gradient(180deg, var(--ivory), #f5efe6);
  color: var(--ink);
  box-shadow:
    var(--edge-light),
    0 24px 44px -24px rgb(0 0 0 / 65%);
}
.jr-hero-card :focus-visible {
  outline-color: var(--focus);
  box-shadow: 0 0 0 6px #fff;
}
.jr-hero[data-band="6-8"] .jr-hero-card {
  --jr-radius: 14px;
}
.jr-hero[data-band="3-5"] .jr-hero-card {
  --jr-radius: 26px;
}
.jr-facts {
  display: grid;
  gap: var(--s-3) var(--s-4);
  margin: 0;
}
.jr-facts > div {
  min-width: 0;
}
.jr-facts dt {
  margin: 0 0 0.1rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 700;
}
.jr-facts dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}
.jr-facts .is-goal dd {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--jr-ink);
}
.jr-hero-prog {
  display: grid;
  gap: 0.2rem;
}
.jr-trailbar {
  display: grid;
  gap: 0.35rem;
}
.jr-trailbar .fine {
  margin: 0;
}
.jr-segs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
}
.jr-seg {
  height: 0.6rem;
  border-radius: 3px;
  background: color-mix(in srgb, var(--jr-unit) 22%, var(--surface-3));
}
.jr-seg.is-doing {
  background: linear-gradient(
    90deg,
    var(--jr-unit) 50%,
    color-mix(in srgb, var(--jr-unit) 22%, var(--surface-3)) 50%
  );
}
.jr-seg.is-done {
  background: var(--jr-unit);
}
.jr-seg.is-now {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* ── the lab home: the journey leads, everything else is optional practice ── */
.jr-explore {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-strong);
}
.jr-explore > * {
  min-width: 0;
  margin-block: 0;
}
.jr-explore-head {
  display: grid;
  gap: var(--s-2);
  justify-items: start;
  max-width: 62ch;
}
.jr-explore-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}
.jr-explore-head .fine {
  margin: 0;
}
.jr-explore > .ll-hero {
  padding: clamp(1rem, 2.4vw, 1.75rem);
  box-shadow: var(--shadow);
}
.jr-explore > .ll-hero::after {
  display: none;
}
.jr-explore > .ll-hero h2 {
  margin: var(--s-2) 0;
  color: var(--ivory);
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem);
  line-height: 1.1;
}
.jr-explore > .ll-hero .lead {
  margin-bottom: var(--s-3);
}
.jr-explore .ll-growth-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.jr-explore .ll-passport-card {
  grid-column: auto;
}
.jr-review-slot > .panel {
  margin: 0;
}

/* ── /journey: units at a glance, other next steps, doors ──────────────── */
.jr-units-glance {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.jr-unit-card {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-4);
  border: 1px solid color-mix(in srgb, var(--jr-unit) 22%, var(--line));
  border-top: 4px solid var(--jr-unit);
  border-radius: var(--jr-radius);
  background: var(--jr-card);
  box-shadow: var(--edge-light), var(--shadow);
}
.jr-unit-top {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}
.jr-unit-top strong,
.jr-unit-top .fine {
  display: block;
}
.jr-unit-n {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--jr-unit);
  color: #fff;
  font: 600 1.35rem/1 var(--font-display);
}
.jr-mini {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jr-mini a {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.1rem 0.6rem;
  align-items: baseline;
  min-height: 2.75rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.jr-mini a:hover {
  background: var(--jr-soft);
}
.jr-mini-n {
  color: var(--jr-ink);
  font: 600 1.15rem/1 var(--font-display);
}
.jr-mini-t {
  font-weight: 700;
}
.jr-mini-s {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.jr-mini-s .ico {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--jr-ink);
}
.jr-alts {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.jr-alts a {
  display: grid;
  gap: 0.1rem;
  min-height: 2.75rem;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--jr-radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.jr-alts a:hover {
  border-color: var(--brand);
}
.jr-doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--s-3);
}
.jr-door {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s-3);
  align-items: center;
  min-height: 3.5rem;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--jr-radius);
  background: var(--jr-card);
  box-shadow: var(--edge-light), var(--shadow);
  color: var(--ink);
  text-decoration: none;
}
.jr-door:hover {
  border-color: var(--brand);
  box-shadow: var(--edge-light), var(--shadow-lift);
}
.jr-door > .ico {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-ink);
}
.jr-door strong,
.jr-door .fine {
  display: block;
}
.jr-door-go {
  color: var(--ink-3);
}

/* ── wider screens ─────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .jr-units-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jr-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jr-facts .is-goal {
    grid-column: 1 / -1;
  }
  .jr-hero-copy {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--s-4);
  }
  .jr-hero-copy > * {
    grid-column: 1 / -1;
  }
  .jr-hero-copy > .eyebrow {
    grid-column: 1;
    grid-row: 1;
  }
  .jr-hero-copy > .band-switch {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
}
@media (min-width: 900px) {
  .jr-explore-head {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--s-6);
    align-items: center;
    max-width: none;
  }
  .jr-explore-head > * {
    grid-column: 1;
    max-width: 62ch;
  }
  .jr-explore-head > .btn {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
  body[data-lab-band] .jr-hero.ll-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .jr-explore > .ll-hero .eyebrow,
  .jr-explore > .ll-hero .lead {
    display: none;
  }
}
@media (min-width: 1100px) {
  .jr-units-glance {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .jr-explore .ll-growth-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .jr-hero .jr-cta .btn-primary {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jr-pip-dot {
    transition: none;
  }
  a.jr-pip:hover .jr-pip-dot {
    transform: none;
  }
}
@media (forced-colors: active) {
  .jr-pip-dot,
  .jr-door,
  .jr-env,
  .jr-unit-card,
  .jr-hero-card {
    border: 2px solid CanvasText;
  }
  .jr-pip.is-here .jr-pip-dot {
    outline: 3px solid Highlight;
  }
}
