/* =============================================================
   roadmap.css — parent-facing career pathway roadmaps (/roadmap)
   Sits on top of the tokens in styles.css.
   ============================================================= */

.rm {
  --rm-game: #EC4899;
  --rm-game-soft: #FDF2F8;
  --rm-software: #3B82F6;
  --rm-software-soft: #EFF6FF;
  --rm-robotics: #F59E0B;
  --rm-robotics-soft: #FFFBEB;

  background: var(--bg, #F7F8FC);
  color: var(--ink, #0F172A);
  font-family: var(--font-ui);
}

.rm-container {
  margin: 0 auto;
  max-width: 76rem;
  padding: 0 1.25rem;
}

.rm h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.rm h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}

/* ---------- Hero ---------- */

.rm-hero {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(236, 72, 153, 0.35), transparent 60%),
    radial-gradient(1000px 500px at 85% 0%, rgba(245, 158, 11, 0.28), transparent 60%),
    linear-gradient(135deg, #0B1120 0%, #1E1B4B 55%, #312E81 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.rm-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.9rem;
  text-transform: uppercase;
}

.rm-hero h1 {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0.8rem 0 0.6rem;
}

.rm-hero-accent {
  background: linear-gradient(90deg, #F472B6, #FBBF24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rm-hero-tagline {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.7rem;
}

.rm-hero-blurb {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto;
  max-width: 44rem;
}

.rm-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.rm-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rm-pill:hover { background: rgba(255, 255, 255, 0.2); }

.rm-pill--game:hover     { border-color: var(--rm-game); }
.rm-pill--software:hover { border-color: var(--rm-software); }
.rm-pill--robotics:hover { border-color: var(--rm-robotics); }

/* ---------- Which path ---------- */

.rm-choose {
  padding: 3rem 0 1rem;
  text-align: center;
}

.rm-choose-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 1.5rem;
}

.rm-choose-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius, 16px);
  border-top: 4px solid var(--border, #E2E8F0);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1.3rem 1.25rem;
  text-align: left;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rm-choose-card:hover {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.rm-choose-card--game     { border-top-color: var(--rm-game); }
.rm-choose-card--software { border-top-color: var(--rm-software); }
.rm-choose-card--robotics { border-top-color: var(--rm-robotics); }

.rm-choose-when {
  color: var(--ink-soft, #334155);
  font-size: 1.02rem;
  line-height: 1.4;
}

.rm-choose-then {
  font-size: 1.15rem;
  font-weight: 700;
}

.rm-choose-card--game .rm-choose-then     { color: var(--rm-game); }
.rm-choose-card--software .rm-choose-then { color: var(--rm-software); }
.rm-choose-card--robotics .rm-choose-then { color: var(--rm-robotics); }

.rm-choose-note {
  color: var(--muted, #64748B);
  margin: 1.4rem auto 0;
  max-width: 46rem;
}

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

.rm-path {
  padding: 3rem 0;
}

.rm-path--game     { background: var(--rm-game-soft); }
.rm-path--software { background: var(--rm-software-soft); }
.rm-path--robotics { background: var(--rm-robotics-soft); }

.rm-path-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.rm-path-eyebrow {
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem;
  text-transform: uppercase;
}

.rm-path--game .rm-path-eyebrow     { background: var(--rm-game); }
.rm-path--software .rm-path-eyebrow { background: var(--rm-software); }
.rm-path--robotics .rm-path-eyebrow { background: var(--rm-robotics); }

.rm-path-head h2 { margin-top: 0.55rem; }

.rm-path-tagline {
  color: var(--ink-soft, #334155);
  font-size: 1.05rem;
  font-style: italic;
  margin: 0 0 0.6rem;
}

.rm-path-blurb {
  color: var(--ink-soft, #334155);
  margin: 0;
}

/* ---------- Stage rail ---------- */

.rm-stages {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
}

.rm-stages-item { display: flex; }

.rm-stage {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius, 16px);
  color: inherit;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem 1.2rem;
  text-decoration: none;
}

.rm-stage--elective {
  border-style: dashed;
}

.rm-stage--link {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rm-stage--link:hover {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.rm-stage-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rm-stage-num {
  align-items: center;
  background: var(--ink, #0F172A);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  height: 1.5rem;
  justify-content: center;
  width: 1.5rem;
}

.rm-path--game .rm-stage-num     { background: var(--rm-game); }
.rm-path--software .rm-stage-num { background: var(--rm-software); }
.rm-path--robotics .rm-stage-num { background: var(--rm-robotics); }

.rm-stage-label {
  color: var(--muted, #64748B);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rm-avail {
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-left: auto;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}

.rm-avail--now     { background: #DCFCE7; color: #166534; }
.rm-avail--soon    { background: #DBEAFE; color: #1E40AF; }
.rm-avail--planned { background: #F1F5F9; color: #64748B; }

.rm-stage-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
}

.rm-stage-ages {
  color: var(--muted, #64748B);
  font-size: 0.85rem;
  font-weight: 600;
}

.rm-stage-points {
  color: var(--ink-soft, #334155);
  font-size: 0.92rem;
  margin: 0.4rem 0 0;
  padding-left: 1.05rem;
}

.rm-stage-points li { margin-bottom: 0.18rem; }

.rm-stage-highlight,
.rm-stage-branch {
  border-radius: 8px;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.5rem;
  padding: 0.25rem 0.6rem;
  width: fit-content;
}

.rm-stage-highlight {
  background: #FEF3C7;
  color: #92400E;
}

.rm-stage-branch {
  background: #E0E7FF;
  color: #3730A3;
}

.rm-stage-cta {
  color: var(--brand, #6366F1);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: auto;
  padding-top: 0.7rem;
}

/* ---------- Progression rail ---------- */

.rm-progression {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: var(--radius, 16px);
  margin-top: 1.5rem;
  padding: 1.2rem 1.25rem 1.35rem;
}

.rm-progression-caption {
  color: var(--muted, #64748B);
  margin: 0 0 1rem;
}

.rm-progression-steps {
  counter-reset: prog;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.rm-progression-steps li {
  background: var(--bg, #F7F8FC);
  border-radius: var(--radius-sm, 10px);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.7rem 0.85rem;
  position: relative;
}

.rm-progression-steps strong { font-size: 0.98rem; }

.rm-progression-steps span {
  color: var(--ink-soft, #334155);
  font-size: 0.85rem;
}

.rm-progression-steps em {
  color: var(--muted, #64748B);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
}

/* ---------- Milestone timeline ---------- */

.rm-milestones {
  margin-top: 1.75rem;
}

.rm-timeline {
  display: grid;
  gap: 1.2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

/* The rule lives on each item, not the list, so a timeline that wraps onto a
   second row still draws its axis under that row. */
.rm-timeline li {
  border-top: 3px solid rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 0.85rem 0 0;
  position: relative;
}

.rm-timeline-dot {
  background: var(--ink, #0F172A);
  border: 3px solid var(--bg, #F7F8FC);
  border-radius: 50%;
  height: 13px;
  left: 0;
  position: absolute;
  top: -8px;
  width: 13px;
}

.rm-path--game .rm-timeline-dot     { background: var(--rm-game); }
.rm-path--software .rm-timeline-dot { background: var(--rm-software); }
.rm-path--robotics .rm-timeline-dot { background: var(--rm-robotics); }

.rm-timeline-age {
  color: var(--muted, #64748B);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rm-timeline-label {
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Careers ---------- */

.rm-careers {
  margin-top: 1.75rem;
}

.rm-careers ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}

.rm-careers li {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
}

/* ---------- Side-by-side table ---------- */

.rm-compare {
  padding: 3rem 0;
}

.rm-compare-sub {
  color: var(--muted, #64748B);
  margin: 0 0 1.2rem;
}

.rm-compare-wrap { overflow-x: auto; }

.rm-compare-table {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #E2E8F0);
  border-collapse: separate;
  border-radius: var(--radius, 16px);
  border-spacing: 0;
  min-width: 44rem;
  overflow: hidden;
  width: 100%;
}

.rm-compare-table th,
.rm-compare-table td {
  border-bottom: 1px solid var(--border, #E2E8F0);
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.rm-compare-table thead th {
  font-size: 1rem;
  font-weight: 700;
}

.rm-compare-table thead th a {
  color: inherit;
  text-decoration: none;
}

.rm-compare-head--game a     { color: var(--rm-game); }
.rm-compare-head--software a { color: var(--rm-software); }
.rm-compare-head--robotics a { color: var(--rm-robotics); }

.rm-compare-table tbody th {
  color: var(--muted, #64748B);
  font-weight: 700;
  width: 3.5rem;
}

.rm-compare-step {
  display: block;
  font-weight: 600;
}

.rm-compare-ages {
  color: var(--muted, #64748B);
  display: block;
  font-size: 0.82rem;
}

.rm-compare-empty { color: var(--border, #E2E8F0); }

.rm-compare-outcomes th,
.rm-compare-outcomes td {
  background: var(--bg, #F7F8FC);
  border-bottom: 0;
  font-size: 0.9rem;
}

/* ---------- Close ---------- */

.rm-close {
  background: linear-gradient(135deg, #0B1120 0%, #1E1B4B 60%, #312E81 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.rm-close p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto;
  max-width: 38rem;
}

.rm-close-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.rm-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
}

.rm-btn:hover { background: rgba(255, 255, 255, 0.2); }

.rm-btn--primary {
  background: linear-gradient(90deg, #F472B6, #FBBF24);
  border-color: transparent;
  color: #0B1120;
}

.rm-btn--primary:hover { filter: brightness(1.06); }

.rm-close-foot {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.85rem;
  margin-top: 1.8rem !important;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .rm-hero { padding: 2.5rem 0 2.25rem; }
  .rm-path { padding: 2.25rem 0; }
  .rm-timeline {
    border-left: 3px solid rgba(15, 23, 42, 0.1);
    border-top: 0;
    grid-template-columns: 1fr;
    padding-left: 1.1rem;
  }
  .rm-timeline li { padding-top: 0; }
  .rm-timeline-dot { left: -1.5rem; top: 0.35rem; }
}
