/*
 * Inter 4.1, rsms, OFL 1.1. Self-hosted, exactly as in the application.
 * docs/brand/README.md forbids a third-party font host at runtime: it is a request to
 * somebody else's server on every first load, for families who did not choose it. The
 * license travels with the file, in assets/fonts/OFL-Inter.txt.
 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/InterVariable.woff2') format('woff2');
}

/*
 * The Expedition palette (docs/brand/README.md). The five brand colors, then the
 * semantic tokens derived from them. Same values and same names as the application in
 * apps/web/app/globals.css, so the site and the product cannot drift apart. Nothing
 * below hard-codes a hex value.
 *
 * Teal and canvas do most of the work. Clay is intentional, never dominant. Gold is the
 * smallest and brightest signal, used like actual light: never text on canvas (1.6:1),
 * only rays, marks and highlights.
 */
:root {
  --hl-brand-teal: #315c5b;
  --hl-brand-clay: #c8754f;
  --hl-brand-gold: #e8b94f;
  --hl-brand-canvas: #f7f1e4;
  --hl-brand-pine: #293735;

  --hl-ink: var(--hl-brand-pine);
  --hl-ink-muted: #56635f;
  --hl-surface: var(--hl-brand-canvas);
  --hl-surface-raised: #fffcf6;
  --hl-surface-sunk: #efe7d5;
  --hl-border: #e0d6c2;
  --hl-accent: var(--hl-brand-teal);
  --hl-accent-contrast: #ffffff;
  --hl-highlight: var(--hl-brand-gold);
  /* A deepened clay. Clay itself is 3.0:1 on canvas, so small text uses this. */
  --hl-clay-text: #a24a26;

  --hl-font-ui:
    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --hl-measure: 42rem;
  --hl-wrap: 68rem;
  --hl-radius: 14px;
  --hl-touch-target: 2.75rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hl-ink: var(--hl-brand-canvas);
    --hl-ink-muted: #b7c0bb;
    --hl-surface: #1f2927;
    --hl-surface-raised: var(--hl-brand-pine);
    --hl-surface-sunk: #17211f;
    --hl-border: #3e4f4b;
    --hl-accent: #8fc9c2;
    --hl-accent-contrast: #17211f;
    --hl-clay-text: #eda17f;
  }
}

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

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

body {
  margin: 0;
  overflow-wrap: anywhere;
  background: var(--hl-surface);
  color: var(--hl-ink);
  font-family: var(--hl-font-ui);
  font-size: 1rem;
  line-height: 1.65;
}

.wrap {
  max-width: var(--hl-wrap);
  margin-inline: auto;
  padding-inline: max(1.25rem, env(safe-area-inset-left));
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.1rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--hl-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

/* Focus must always be visible. Never remove the outline without replacing it. */
:focus-visible {
  outline: 3px solid var(--hl-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--hl-surface-raised);
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hl-surface-raised);
  color: var(--hl-ink);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--hl-radius) 0;
  z-index: 50;
}

.skip:focus {
  left: 0;
}

/* ------------------------------------------------------------------ header */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--hl-surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hl-border);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--hl-ink);
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.brand-hill {
  color: var(--hl-accent);
}

.brand-light {
  color: var(--hl-clay-text);
}

.brand-sub {
  display: block;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hl-ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9375rem;
}

.nav-links a:not(.btn) {
  color: var(--hl-ink-muted);
  text-decoration: none;
}

.nav-links a:not(.btn):hover {
  color: var(--hl-ink);
  text-decoration: underline;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hl-touch-target);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--hl-accent);
  background: var(--hl-accent);
  color: var(--hl-accent-contrast);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: color-mix(in srgb, var(--hl-accent) 88%, var(--hl-brand-pine));
}

.btn.ghost {
  background: transparent;
  color: var(--hl-accent);
}

.btn.ghost:hover {
  background: color-mix(in srgb, var(--hl-accent) 10%, transparent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------- sections */

section {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--hl-border);
}

section:first-of-type {
  border-top: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hl-ink-muted);
}

/* Gold as a mark beside a label, never as the label. */
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--hl-highlight);
  flex: none;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--hl-ink-muted);
  max-width: var(--hl-measure);
}

.prose {
  max-width: var(--hl-measure);
}

.note {
  max-width: var(--hl-measure);
  color: var(--hl-ink-muted);
  font-size: 0.9375rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

/* The four groups inside the library. They have to out-rank the card titles
   underneath them, or the section reads as one flat list of sixteen things. */
.group-head {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hl-border);
  color: var(--hl-accent);
}

figure.art {
  margin: 0;
}

figure.art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--hl-radius);
  border: 1px solid var(--hl-border);
}

figure.art figcaption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--hl-ink-muted);
}

/* ----------------------------------------------------------------- notices */

.notice {
  background: var(--hl-surface-raised);
  border: 1px solid var(--hl-border);
  border-left: 4px solid var(--hl-highlight);
  border-radius: var(--hl-radius);
  padding: 1rem 1.15rem;
  margin-top: 2rem;
  max-width: var(--hl-measure);
}

.notice p {
  margin: 0;
  font-size: 0.9375rem;
}

.notice strong {
  display: block;
}

/* -------------------------------------------------------- free-forever panel */

/*
 * Bible Memory. Gold edges it, because gold is the brand's "actual light" and a thing
 * that is permanently free is the one place on this page that earns it. It is a panel
 * rather than a full-width band on purpose: the guide says faith content must stay
 * clearly optional and the neutral core must never look like it depends on it, so this
 * reads as an offer beside the academic library rather than a floor under it.
 */
.free-panel {
  background: var(--hl-surface-raised);
  border: 1px solid var(--hl-border);
  border-top: 4px solid var(--hl-highlight);
  border-radius: var(--hl-radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.free-panel h2 {
  max-width: 22ch;
}

.free-points {
  margin-top: 1.5rem;
  max-width: var(--hl-measure);
}

/* The feature walkthrough inside the panel. Its sub-heads sit under the panel's h2, and
   its cards drop to the page surface so they read as set into the raised panel. */
.free-panel .group-head {
  margin-top: 2.25rem;
}

.free-panel .card {
  background: var(--hl-surface);
}

.free-panel .card h4 {
  margin: 0 0 0.35rem;
}

/* Every group here has four cards, so the grid steps 1 → 2 → 4 rather than letting
   auto-fit strand the fourth card on a row of its own at three columns. */
.free-panel .cards {
  grid-template-columns: 1fr;
}

/* How a verse fades, in order. Numbered because the order is the method. Five steps do
   not divide into rows, so they stack as a list until there is room for all five. */
.stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}

.stages li {
  counter-increment: stage;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  column-gap: 0.75rem;
  align-items: start;
  align-content: start;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  padding: 0.8rem 1rem;
  font-size: 0.9375rem;
}

.stages li::before {
  content: counter(stage);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--hl-accent);
  color: var(--hl-accent-contrast);
  font-size: 0.8125rem;
  font-weight: 700;
}

.stages span {
  color: var(--hl-ink-muted);
}

@media (min-width: 40rem) {
  .free-panel .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .free-panel .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .stages {
    grid-template-columns: repeat(5, 1fr);
  }

  .stages li {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }

  .stages li::before {
    grid-row: auto;
  }
}

/* -------------------------------------------------------------------- band */

.band {
  background: var(--hl-accent);
  color: var(--hl-accent-contrast);
  border-top: 0;
}

.band h2 {
  color: inherit;
}

.band .eyebrow {
  color: inherit;
  opacity: 0.85;
}

.band p {
  max-width: var(--hl-measure);
  opacity: 0.94;
}

.price-figure {
  font-size: clamp(2.5rem, 2rem + 3vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.5rem 0 0.75rem;
  opacity: 1;
}

.price-figure span {
  font-size: 0.32em;
  font-weight: 600;
  letter-spacing: 0;
}

/* ------------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--hl-surface-raised);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  padding: 1.15rem 1.25rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--hl-ink-muted);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hl-border);
  color: var(--hl-ink-muted);
  background: var(--hl-surface-sunk);
}

/* Status is never colour alone: every tag reads as words first. */
.tag.building {
  border-color: var(--hl-accent);
  color: var(--hl-accent);
  background: transparent;
}

.tag.free {
  border-color: var(--hl-clay-text);
  color: var(--hl-clay-text);
  background: transparent;
}

.grades {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hl-ink);
}

/* ------------------------------------------------------------------- lists */

ul.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.plain > li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.9rem;
}

ul.plain > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--hl-highlight);
}

/* ----------------------------------------------------------------- pricing */

.price-scroll {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  min-width: 32rem;
}

.price-table caption {
  text-align: left;
  color: var(--hl-ink-muted);
  font-size: 0.875rem;
  padding-bottom: 0.75rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid var(--hl-border);
  vertical-align: top;
}

.price-table th {
  font-weight: 600;
}

.price-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hl-ink-muted);
}

.price-table td.amount {
  font-weight: 700;
  white-space: nowrap;
}

.offer {
  margin-top: 1.5rem;
  max-width: 40rem;
  background: var(--hl-surface-raised);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  padding: 1.5rem;
}

.offer h3 {
  margin: 0;
}

.offer .offer-price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0;
}

.offer .offer-price span {
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0;
}

.offer-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.offer-modules li {
  border: 1px solid var(--hl-border);
  border-radius: 999px;
  background: var(--hl-surface);
  padding: 0.2rem 0.7rem;
  font-size: 0.9375rem;
}

.offer-promises {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
}

/* --------------------------------------------------------------------- faq */

.faq-item {
  border-bottom: 1px solid var(--hl-border);
  padding: 1.1rem 0;
  max-width: var(--hl-measure);
}

.faq-item h3 {
  margin-bottom: 0.35rem;
}

.faq-item p {
  margin: 0;
  color: var(--hl-ink-muted);
}

/* ------------------------------------------------------------------ footer */

footer.site {
  border-top: 1px solid var(--hl-border);
  background: var(--hl-surface-sunk);
  padding-block: 2.5rem 3rem;
  color: var(--hl-ink-muted);
  font-size: 0.9rem;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

footer.site a {
  color: var(--hl-ink-muted);
}

footer.site p {
  max-width: var(--hl-measure);
}

/* ------------------------------------------------------------------ narrow */

@media (max-width: 62rem) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.signup {
  display: grid;
  gap: 0.35rem;
  max-width: 26rem;
  margin: 1.25rem 0 0.75rem;
}

.signup label {
  font-weight: 600;
}

.signup input[type='text'],
.signup input[type='email'] {
  min-height: var(--hl-touch-target);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--hl-border);
  border-radius: 10px;
  background: var(--hl-surface-raised);
  color: var(--hl-ink);
  font: inherit;
}

.signup .check {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-height: var(--hl-touch-target);
  margin-bottom: 0.6rem;
  font-weight: 400;
}

.signup .check input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--hl-accent);
}

.signup .btn {
  justify-self: start;
}

.signup .trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.split > *,
.signup-layout > *,
.launch-grid > * {
  min-width: 0;
}
section,
#how-it-works {
  scroll-margin-top: 6rem;
}
.btn {
  max-width: 100%;
  text-align: center;
}
.nav-links {
  gap: 1rem;
}
.nav-links a,
footer.site nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hl-touch-target);
}
.mobile-menu {
  display: none;
  position: relative;
  margin-left: auto;
}
summary {
  cursor: pointer;
  min-height: var(--hl-touch-target);
  padding-block: 0.65rem;
  font-weight: 600;
  color: var(--hl-accent);
}
.mobile-menu summary {
  padding-inline: 0.75rem;
  border: 1px solid var(--hl-accent);
  border-radius: 10px;
}
.mobile-menu nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(18rem, calc(100vw - 2.5rem));
  padding: 0.75rem;
  background: var(--hl-surface-raised);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--hl-ink) 15%, transparent);
}
.mobile-menu nav a {
  display: flex;
  min-height: var(--hl-touch-target);
  align-items: center;
  padding: 0.5rem 0.75rem;
}
.hero-free {
  margin-top: 1rem;
}
.availability {
  font-size: 0.9375rem;
  color: var(--hl-accent);
}
.launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
}
.launch-copy {
  display: contents;
}
.launch-course {
  padding-block: 1rem;
  border-bottom: 1px solid var(--hl-border);
}
.launch-copy > .note {
  grid-column: 1 / -1;
  margin: 0;
}
.course-meta {
  color: var(--hl-accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.5rem 0 0.75rem;
}
.product-preview {
  grid-column: 1 / -1;
  margin: 0;
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--hl-border);
  border-radius: 1.5rem;
  background: var(--hl-surface-sunk);
}
.product-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hl-border);
  border-radius: 0.85rem;
}
.preview-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hl-accent);
  margin-bottom: 0.65rem;
}
.product-preview figcaption {
  color: var(--hl-ink-muted);
  font-size: 0.8125rem;
  margin-top: 0.75rem;
}
.learning-sequence {
  margin-top: 2rem;
}
.learning-sequence ol {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}
.learning-sequence li {
  border-top: 1px solid var(--hl-border);
  padding-top: 0.75rem;
  font-size: 0.9375rem;
}
.learning-sequence li strong {
  display: block;
}
.disclosure {
  margin-top: 1.25rem;
  border-top: 1px solid var(--hl-border);
}
.offers {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1rem;
}
.offer {
  max-width: none;
  padding: 1.25rem;
}
.offer .btn {
  margin-top: 0.5rem;
}
.optional-offer {
  background: transparent;
}
.future-prices {
  margin: 0;
}
.future-prices > div {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--hl-border);
}
.future-prices dt {
  font-weight: 600;
}
.future-prices dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--hl-ink-muted);
}
.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 3rem;
  align-items: start;
}
.signup-aside {
  padding: 1.5rem;
  background: var(--hl-surface-sunk);
  border-radius: var(--hl-radius);
}
.signup {
  min-width: 0;
  width: 100%;
}
.signup input[type='text'],
.signup input[type='email'] {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.signup .check {
  align-items: flex-start;
}
.signup .check input {
  flex: none;
  margin-top: 0.3rem;
}
.cf-turnstile {
  min-height: 140px;
  max-width: 100%;
  margin-bottom: 0.65rem;
}
.faq-item {
  max-width: none;
  padding: 0.25rem 0;
}
.faq-item p {
  padding-block: 0.5rem 1rem;
  max-width: var(--hl-measure);
}
.privacy {
  padding-block: 1rem 2rem;
}
@media (max-width: 74rem) {
  .nav-links {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
}
@media (max-width: 46rem) {
  section {
    padding-block: 2rem;
  }
  .hero-art {
    display: none;
  }
  .launch-grid,
  .offers,
  .signup-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .offer {
    margin-top: 0.5rem;
  }
  .signup-aside {
    margin-top: 0.5rem;
  }
}

/* Public curriculum roadmap; shared brand, navigation and cards above. */
.parent-features {
  border-top: 1px solid var(--hl-border);
}
.status-chip {
  display: inline-flex;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--hl-border);
  border-radius: 999px;
  background: var(--hl-surface-raised);
  color: var(--hl-ink-muted);
  font-size: 0.8125rem;
}
.parent-intro {
  max-width: var(--hl-measure);
}
.parent-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}
.parent-tabs button {
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--hl-border);
  border-radius: 999px;
  background: var(--hl-surface-raised);
  color: var(--hl-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.parent-tabs button[aria-selected='true'] {
  background: var(--hl-accent);
  border-color: var(--hl-accent);
  color: var(--hl-accent-contrast);
}
.parent-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
}
.parent-panel[hidden] {
  display: none;
}
.parent-panel h3 {
  margin: 1rem 0 0.75rem;
  font-size: 1.5rem;
}
.parent-panel figure {
  margin: 0;
  min-width: 0;
}
.parent-preview-window {
  display: block;
  max-height: 28rem;
  overflow: hidden;
  border: 1px solid var(--hl-border);
  border-radius: 18px;
  background: var(--hl-surface);
}
.parent-preview-window img {
  display: block;
  width: 100%;
  height: auto;
}
.parent-panel figcaption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
}
.parent-panel figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 46rem) {
  .parent-tabs {
    flex-wrap: nowrap;
  }
  .parent-tabs button {
    flex: 1;
    min-width: 0;
    padding-inline: 0.4rem;
    font-size: 0.875rem;
  }
  .parent-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .parent-preview-window {
    max-height: 26rem;
  }
}

.roadmap-teaser {
  margin-top: 1.5rem;
}
.roadmap-intro {
  padding-block: 3rem 2.5rem;
}
.roadmap-intro h1 {
  max-width: 20ch;
}
.roadmap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
}
.roadmap-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hl-touch-target);
}
.roadmap-updated {
  margin-top: 1rem;
}
.roadmap-section {
  border-top: 1px solid var(--hl-border);
}
.roadmap-page .card h3 {
  font-size: 1.2rem;
  text-wrap: balance;
}
.roadmap-page .card {
  min-width: 0;
}
.roadmap-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.roadmap-page .card .roadmap-grades {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hl-ink);
}
.roadmap-page .card .roadmap-detail {
  margin-top: 0.75rem;
}
.roadmap-membership {
  margin-block: 1.25rem;
  max-width: var(--hl-measure);
}
.roadmap-page .cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.roadmap-page .roadmap-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nav-links a[aria-current='page'],
.mobile-menu a[aria-current='page'] {
  color: var(--hl-ink);
  text-decoration: underline;
}
@media (max-width: 62rem) {
  .roadmap-page .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 46rem) {
  .roadmap-page .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
