:root {
  --ink: #102234;
  --navy: #0d293f;
  --navy-deep: #071d2e;
  --orange: #f06b45;
  --orange-soft: #ffb08f;
  --sage: #d9e3d9;
  --sage-deep: #44625c;
  --paper: #f4f1ea;
  --paper-light: #fbfaf7;
  --line: rgba(16, 34, 52, 0.18);
  --muted: #62717c;
  --white: #fff;
  --shadow: 0 24px 70px rgba(7, 29, 46, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 34, 52, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 34, 52, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button, a { font: inherit; }

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy-deep);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-decoration: none;
}

.wordmark-mark {
  width: 19px;
  height: 19px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 42% 38%, 42% 100%, 0 100%);
}

.draft-badge,
.hero-meta span,
.track-label {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.draft-badge {
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.header-actions,
.language-switch {
  display: flex;
  align-items: center;
}

.header-actions { gap: 12px; }

.language-switch {
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.language-switch button {
  min-width: 38px;
  min-height: 32px;
  padding: 5px 8px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-switch button[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy-deep);
}

.language-switch button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.7fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
  padding: clamp(72px, 10vw, 128px) 0 88px;
}

.eyebrow,
.section-number {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: balance; }

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(3.5rem, 8vw, 7.3rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

h1 span { color: var(--orange); }

.hero-lead {
  max-width: 680px;
  margin: 34px 0 28px;
  color: #405261;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-meta span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.workshop-loop {
  padding: 28px;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.workshop-loop h2 {
  margin: 0 0 24px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.workshop-loop ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workshop-loop li {
  display: grid;
  grid-template-columns: 34px 1fr;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.workshop-loop li > span {
  grid-row: span 2;
  color: var(--orange-soft);
  font: 700 0.7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.workshop-loop strong { font-size: 0.95rem; }
.workshop-loop small { color: rgba(255, 255, 255, 0.67); }

.tracks { padding: 42px 0 88px; }

.section-heading,
.choice-header {
  display: flex;
  gap: 36px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-heading h2,
.choice-header h2,
.safety h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-heading > p,
.choice-header > p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 570px;
  padding: clamp(30px, 5vw, 54px);
  overflow: hidden;
}

.track-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 280px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.15;
  box-shadow: 0 0 0 42px transparent, 0 0 0 43px currentColor, 0 0 0 84px transparent, 0 0 0 85px currentColor;
  pointer-events: none;
}

.track-card--developer {
  color: var(--white);
  background: var(--navy-deep);
}

.track-card--northstar {
  color: var(--ink);
  background: var(--sage);
}

.track-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.track-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid currentColor;
  font: 700 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.track-icon--compass { font-size: 1.4rem; }

.track-card h3 {
  max-width: 520px;
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.track-card > p {
  max-width: 540px;
  margin: 0 0 28px;
  font-size: 1.05rem;
  opacity: 0.78;
}

.track-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.track-card li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  font-size: 0.92rem;
}

.track-card li::before { content: "—"; color: var(--orange); }

.button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  min-height: 50px;
  margin-top: auto;
  padding: 13px 18px;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-weight: 760;
  text-decoration: none;
}

.button--light { color: var(--navy-deep); background: var(--white); }
.button--dark { color: var(--white); background: var(--navy-deep); }
.button--disabled { color: #6c787f; background: #e4e3de; cursor: not-allowed; }

.button:not(:disabled):hover { transform: translateY(-2px); }

.button:focus-visible,
.role-button:focus-visible,
.team-grid a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.choice-panel {
  scroll-margin-top: 24px;
  margin: 0 0 88px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.choice-panel[hidden] { display: none; }

.choice-panel.is-revealing { animation: panel-in 360ms ease-out both; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.assignment {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 32px;
  margin-bottom: 34px;
  padding: clamp(24px, 4vw, 38px);
  color: var(--white);
  background: var(--navy-deep);
}

.assignment-goal {
  margin: 0;
  font-size: 1.08rem;
}

.assignment-goal strong { color: var(--orange-soft); }

.assignment-brief {
  display: grid;
  gap: 18px;
  align-content: start;
}

.assignment-uncertainty {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.assignment-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.assignment-roles > span {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.assignment-roles strong { color: var(--orange-soft); font-size: 0.82rem; }
.assignment-roles small { color: rgba(255, 255, 255, 0.66); font-size: 0.72rem; }

.assignment-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assignment-timeline li {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.assignment-timeline li:first-child { border-top: 0; padding-top: 0; }

.assignment-timeline .step-number {
  color: var(--orange-soft);
  font: 750 0.78rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.assignment-timeline span { display: grid; gap: 3px; }
.assignment-timeline small { color: rgba(255, 255, 255, 0.7); }

.done-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.done-list span {
  color: var(--orange-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.done-list p { margin: 0; }

.challenge-ladder {
  margin: 0 0 42px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  background: #eef1ed;
}

.challenge-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: 34px 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  background: var(--paper);
}

.challenge-entry h3 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.challenge-entry p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.challenge-entry .button { white-space: nowrap; }

.challenge-page { padding-top: 38px; }

.challenge-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 56px;
  color: var(--muted);
  font-size: .85rem;
}

.challenge-nav a, footer a { color: var(--navy); }

.challenge-intro { max-width: 980px; margin-bottom: 48px; }
.challenge-intro h1 { max-width: 760px; margin: 0 0 18px; font-size: clamp(3rem, 8vw, 6.4rem); letter-spacing: -.06em; line-height: .9; }
.challenge-intro > p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 1.15rem; }
.challenge-intro .first-step { margin-top: 32px; }

.ladder-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.ladder-heading h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.ladder-heading > p {
  margin: 0;
  color: var(--muted);
}

.challenge-levels {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.challenge-levels details {
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.challenge-levels details[open] {
  border-color: rgba(240, 107, 69, 0.65);
  box-shadow: 0 10px 28px rgba(7, 29, 46, 0.07);
}

.challenge-levels summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 24px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.challenge-levels summary::-webkit-details-marker { display: none; }

.challenge-levels summary::after {
  content: "+";
  grid-column: 4;
  color: var(--orange);
  font-size: 1.35rem;
  line-height: 1;
}

.challenge-levels details[open] summary::after { content: "−"; }

.challenge-levels summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.level-number {
  color: var(--orange);
  font: 800 0.8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.challenge-levels summary > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.challenge-levels summary strong { font-size: 1.05rem; }
.challenge-levels summary small { color: var(--muted); }

.level-scope {
  color: var(--sage-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.challenge-body {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(260px, 1fr);
  gap: 22px;
  padding: 0 20px 22px 84px;
  border-top: 1px solid var(--line);
}

.challenge-body > p {
  margin: 20px 0 0;
  color: #405261;
}

.challenge-examples {
  margin-top: 20px;
}

.challenge-examples > span,
.challenge-prompt > span,
.challenge-starter > span,
.challenge-hint > span {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.challenge-examples ul {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding-left: 18px;
}

.challenge-examples li { font-size: 0.86rem; }

.challenge-patches {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}

.challenge-patches > span {
  margin-top: 4px;
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.challenge-patches pre {
  margin: 0 0 8px;
  padding: 18px;
  overflow-x: auto;
  color: var(--white);
  background: var(--navy);
}

.challenge-patches pre code {
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.challenge-prompt {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 18px;
  overflow-wrap: anywhere;
  color: var(--white);
  background: var(--navy);
}

.challenge-prompt code,
.challenge-starter code {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.challenge-starter,
.challenge-hint {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 18px;
  border-left: 4px solid var(--orange);
  overflow-wrap: anywhere;
  background: var(--white);
}

.challenge-starter code {
  padding: 12px;
  color: var(--white);
  background: var(--navy);
}

.challenge-starter p,
.challenge-hint p {
  margin: 8px 0 0;
}

.challenge-starter ul {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.copy-prompt-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.copy-prompt-actions:empty { display: none; }

.copy-prompt-button {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-weight: 760;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}

.copy-prompt-button:not(:disabled):hover { transform: translateY(-2px); }

.copy-prompt-button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.copy-prompt-button:disabled { cursor: wait; opacity: 0.72; }

.copy-status {
  min-width: 0;
  max-width: 100%;
  color: inherit;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.copy-prompt-source--fallback {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 30;
  display: block;
  width: calc(100vw - 28px);
  min-height: 8rem;
  max-height: 50vh;
  padding: 12px;
  border: 2px solid var(--orange);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  font: 0.86rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.challenge-done {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.key-step {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  margin: 0 0 24px;
  padding: 18px;
  border-left: 4px solid var(--orange);
  color: var(--navy-deep);
  background: var(--white);
}

.key-step span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.key-step p { margin: 0; }

.team-heading {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.team-grid a {
  display: grid;
  min-height: 180px;
  padding: 18px;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.team-grid a:hover { border-color: var(--orange); transform: translateY(-2px); }

.team-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.team-code { font-size: 1.4rem; }
.team-open { color: var(--muted); font-size: 0.75rem; font-weight: 650; }

.team-members {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 520;
  line-height: 1.35;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.management-card {
  display: grid;
  min-height: 168px;
  padding: 18px;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

.management-card .team-code {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--orange);
}

.copilot-route {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #eef1ed;
}

.copilot-route-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-weight: 800;
}

.copilot-route h3 { margin: 1px 0 5px; font-size: 1rem; }
.copilot-route p { max-width: 800px; margin: 0; color: var(--muted); }

.management-start {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 18px;
  border-left: 4px solid var(--orange);
  background: var(--white);
}

.management-start p { max-width: 620px; margin: 0; }
.management-start .button { flex: 0 0 auto; }

.first-step {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  margin-top: 22px;
  padding: 18px;
  color: var(--white);
  background: var(--navy);
}

.first-step span {
  color: var(--orange-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.first-step code { font: 0.86rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }

.first-step code {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.first-step > .copy-prompt-actions { grid-column: 2; }

.role-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
}

.role-list { display: grid; align-content: start; gap: 6px; }

.role-button {
  padding: 15px 17px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 720;
  text-align: left;
}

.role-button:hover,
.role-button.is-active { color: var(--white); background: var(--navy); }

.role-preview {
  min-height: 340px;
  padding: clamp(28px, 5vw, 52px);
  color: var(--white);
  background: var(--sage-deep);
}

.role-kicker {
  margin: 0 0 22px;
  color: #dce8df;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.role-preview h3 {
  max-width: 700px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.role-preview > p:not(.role-kicker) { max-width: 760px; color: rgba(255, 255, 255, 0.8); }

.deliverables {
  display: grid;
  gap: 6px;
  margin: 28px 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.deliverables span { color: #dce8df; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }

.role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.role-actions .button { margin-top: 0; }

.safety {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 90px;
  padding: clamp(30px, 5vw, 52px);
  border-top: 4px solid var(--orange);
  background: var(--white);
  box-shadow: var(--shadow);
}

.safety-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  font-size: 1.2rem;
  font-weight: 900;
}

.safety p:last-child { max-width: 800px; margin-bottom: 0; color: var(--muted); }

footer {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

footer p { margin: 0; }

@media (max-width: 860px) {
  .hero, .track-grid, .role-layout, .assignment { grid-template-columns: 1fr; }
  .hero { gap: 48px; padding-top: 72px; }
  .team-grid, .management-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-card { min-height: 520px; }
  .role-list { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
  .done-list { grid-column: auto; }
  .ladder-heading, .challenge-body { grid-template-columns: 1fr; }
  .challenge-prompt, .challenge-starter, .challenge-hint { grid-column: auto; }
  .challenge-entry { grid-template-columns: 1fr; }
  .challenge-entry .button { justify-self: start; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  .draft-badge { display: none; }
  .header-actions { gap: 8px; }
  .hero { padding: 54px 0 64px; }
  .section-heading, .choice-header, footer { display: grid; }
  .team-grid, .management-grid { grid-template-columns: 1fr; }
  .management-start { display: grid; }
  .assignment-roles { grid-template-columns: 1fr; }
  .key-step, .first-step { grid-template-columns: 1fr; }
  .first-step > .copy-prompt-actions { grid-column: 1; }
  .challenge-ladder { padding: 18px; }
  .challenge-levels summary { grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 10px; }
  .challenge-levels summary::after { grid-column: 3; grid-row: 1; justify-self: end; }
  .level-scope { grid-column: 2; }
  .challenge-body { padding: 0 16px 18px; }
  .safety { grid-template-columns: 1fr; }
  .track-card { min-height: auto; }
  .track-card .button { margin-top: 20px; }
}

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