:root {
  --paper: #fafaf7;
  --paper-deep: #f3f1ed;
  --surface: #fff;
  --ink: #111216;
  --ink-2: #625f59;
  --ink-3: #8d8982;
  --line: #e4e0d9;
  --line-strong: #c9c3b9;
  --blue: #244cff;
  --blue-ink: #17368f;
  --blue-pale: #eef1ff;
  --green: #26634b;
  --max: 1420px;
  --radius-control: 5px;
  --radius-surface: 9px;
  --radius-dialog: 14px;
  --shadow-surface: 0 1px 2px rgba(17, 18, 22, 0.06), 0 18px 44px rgba(17, 18, 22, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("assets/field-grid.png");
  background-position: top center;
  background-repeat: repeat;
  background-size: 620px 620px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { color: #fff; background: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 { max-width: 820px; margin-bottom: 22px; color: var(--blue); font-size: clamp(3.2rem, 6.4vw, 6.65rem); font-weight: 700; letter-spacing: -0.073em; line-height: 0.86; }
h2 { margin-bottom: 17px; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 550; letter-spacing: -0.052em; line-height: 1; }
h3 { margin-bottom: 12px; font-size: clamp(1.12rem, 1.7vw, 1.42rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.08; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-control); color: #fff; background: var(--ink); transform: translateY(-160%); transition: transform 150ms ease; }
.skip-link:focus { transform: translateY(0); }
.section-frame, .site-header, .site-footer { width: min(100%, calc(var(--max) + 64px)); margin-inline: auto; padding-inline: 32px; }

.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; min-height: 68px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: rgba(250, 250, 247, 0.97); transition: box-shadow 150ms ease; backdrop-filter: blur(14px); }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(17, 18, 22, 0.05); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; padding: 5px 0; color: var(--ink); }
.brand-mark { width: 31px; height: 31px; object-fit: contain; }
.brand-lockup { display: flex; align-items: baseline; gap: 8px; }
.brand-name { font-size: 1.03rem; font-weight: 750; letter-spacing: -0.048em; }
.brand-school { color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.68rem; font-weight: 650; letter-spacing: 0.075em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 24px; color: var(--ink-2); font-size: 0.82rem; font-weight: 550; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; transition: color 150ms ease, border-color 150ms ease; }
.site-nav a:hover { color: var(--ink); border-color: currentColor; }
.site-nav .nav-cta { min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--radius-control); color: #fff; background: var(--ink); font-size: 0.8rem; font-weight: 650; cursor: pointer; }
.site-nav .nav-cta:hover { background: #000; }
.nav-toggle { display: none; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--ink); background: var(--surface); cursor: pointer; }

.section-label, .panel-label, .mission-index, .mission-meta span, .footer-mark, .detail-label, .curriculum-map span, .timer { color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.68rem; font-weight: 650; letter-spacing: 0.075em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr); gap: clamp(44px, 7vw, 110px); min-height: 492px; padding-top: clamp(52px, 7vw, 82px); padding-bottom: clamp(50px, 6vw, 74px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: rgba(250, 250, 247, 0.88); }
.hero-copy { align-self: center; }
.hero-lede { max-width: 660px; margin-bottom: 25px; color: var(--ink-2); font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 23px; }
.hero-note { margin: 22px 0 0; color: var(--ink-2); font-size: 0.76rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-control); font-size: 0.87rem; font-weight: 650; cursor: pointer; transition: background 150ms ease, border-color 150ms ease, color 150ms ease; }
.button.primary { color: #fff; background: var(--ink); }
.button.primary:hover { background: #000; }
.button.secondary { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.button.secondary:hover { border-color: var(--ink); }
.button.quiet { min-height: 36px; padding: 0; color: var(--blue-ink); background: transparent; text-decoration: underline; text-decoration-color: rgba(23, 54, 143, 0.35); text-underline-offset: 4px; }
.button.quiet:hover { color: var(--blue); }
.text-link { color: var(--blue-ink); font-size: 0.89rem; font-weight: 550; text-decoration: underline; text-decoration-color: rgba(23, 54, 143, 0.34); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { color: var(--blue); text-decoration-color: currentColor; }

.first-ten-panel { align-self: center; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line-strong); border-radius: var(--radius-surface); background: var(--surface); box-shadow: var(--shadow-surface); }
.panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.timer { color: var(--ink); font-variant-numeric: tabular-nums; }
.first-ten-panel h2 { max-width: 430px; margin-bottom: 20px; font-size: clamp(1.52rem, 2.3vw, 2.2rem); }
.starter-options { border-top: 1px solid var(--line); }
.starter-option { display: grid; grid-template-columns: 28px minmax(0, 1fr) 22px; align-items: center; width: 100%; gap: 11px; min-height: 76px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; text-align: left; cursor: pointer; }
.starter-option:hover strong, .starter-option:focus-visible strong { color: var(--blue); }
.option-number { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem; font-weight: 650; }
.starter-option strong, .starter-option small { display: block; }
.starter-option strong { margin-bottom: 2px; font-size: 0.9rem; font-weight: 650; }
.starter-option small { color: var(--ink-2); font-size: 0.76rem; line-height: 1.38; }
.option-arrow { color: var(--blue); font-size: 1.25rem; }
.panel-link { margin-top: 15px; padding: 0; border: 0; color: var(--blue); background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.67rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; }

.maintainer-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 98px; padding-top: 20px; padding-bottom: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.maintainer-copy .section-label { margin-bottom: 5px; }
.maintainer-copy p:last-child { margin: 0; color: var(--ink-2); font-size: 0.87rem; }
.maintainer-copy a { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.maintainer-copy a:hover { color: var(--blue-ink); text-decoration-color: currentColor; }
.maintainer-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; }
.maintainer-actions .button { min-height: 42px; font-size: 0.82rem; }
.study-status { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 86px; padding-top: 18px; padding-bottom: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--paper-deep); }
.study-status .section-label { margin-bottom: 4px; }
.study-status-copy { margin: 0; font-size: 0.87rem; font-weight: 550; }
.study-status-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }

.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; padding-top: 44px; padding-bottom: 62px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: rgba(250, 250, 247, 0.92); }
.catalog-side { align-self: start; position: sticky; top: 96px; }
.catalog-side h2 { margin-bottom: 14px; font-size: clamp(1.52rem, 2.5vw, 2.3rem); }
.catalog-intro { margin-bottom: 25px; color: var(--ink-2); font-size: 0.86rem; }
.catalog-filters { padding: 19px; border: 1px solid var(--line-strong); border-radius: var(--radius-surface); background: var(--surface); }
.catalog-filters fieldset { display: grid; gap: 10px; margin: 18px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); }
.catalog-filters legend, .search-field > span { margin-bottom: 10px; color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.67rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.catalog-filters label { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 0.8rem; }
.catalog-filters input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.search-field { display: grid !important; gap: 0 !important; }
.search-field input { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--ink); background: var(--surface); }
.catalog-filters .quiet { margin-top: 14px; }
.catalog-count { margin-top: 17px; color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem; font-variant-numeric: tabular-nums; }

.mission-area { min-width: 0; }
.mission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.mission-card { position: relative; display: flex; min-height: 222px; flex-direction: column; padding: 21px 22px 19px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transition: background 150ms ease, box-shadow 150ms ease; }
.mission-card.is-active { background: var(--blue-pale); box-shadow: inset 3px 0 0 var(--blue); }
.mission-card.is-role-emphasis:not(.is-active) { box-shadow: inset 3px 0 0 var(--line-strong); }
.mission-card.is-role-emphasis .mission-index span:last-child::after { content: " · lens focus"; color: var(--ink-3); font-size: 0.58rem; letter-spacing: 0.04em; text-transform: uppercase; }
.mission-card.is-complete .mission-index { padding-right: 76px; }
.mission-status { position: absolute; top: 19px; right: 20px; color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.63rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mission-card[data-path-order]::before { content: "Path " attr(data-path-order); position: absolute; top: 45px; right: 20px; color: var(--ink-3); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; }
.mission-card.is-filtered-out { display: none; }
.mission-index { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 25px; }
.mission-index span:last-child { color: var(--blue-ink); }
.mission-card h3 { padding-right: 48px; }
.mission-card > p:not(.mission-index) { margin-bottom: 22px; color: var(--ink-2); font-size: 0.85rem; line-height: 1.42; }
.mission-meta { display: grid; gap: 3px; margin-top: auto; }
.mission-meta strong { font-size: 0.79rem; font-weight: 650; }
.mission-open { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 14px; padding: 10px 0 0; border: 0; border-top: 1px dashed var(--line-strong); color: var(--blue-ink); background: transparent; font-size: 0.8rem; font-weight: 650; cursor: pointer; }
.mission-open:hover { color: var(--blue); }
.mission-open span { font-size: 1.1rem; }
.empty-catalog { margin: 0; padding: 25px; border: 1px solid var(--line); border-top: 0; color: var(--ink-2); font-size: 0.88rem; }

.mission-detail { margin-top: 28px; padding: 30px; border: 1px solid var(--ink); border-radius: var(--radius-surface); background: var(--surface); }
.detail-header h2:focus { outline: 3px solid var(--blue); outline-offset: 5px; }
.detail-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.detail-header h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.detail-header p:not(.section-label) { max-width: 760px; margin-bottom: 0; color: var(--ink-2); }
.detail-completion { align-self: start; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--ink-2) !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.66rem; white-space: nowrap; }
.detail-facts { display: grid; grid-template-columns: 1.4fr 1fr 0.55fr; margin: 0; border-bottom: 1px solid var(--line); }
.detail-facts div { padding: 20px 18px 20px 0; }
.detail-facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.detail-facts dt { margin-bottom: 7px; color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.64rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.detail-facts dd { margin: 0; font-size: 0.83rem; font-weight: 550; line-height: 1.42; }
.quick-start { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.quick-start h3 { margin-bottom: 9px; font-size: 1.16rem; }
.quick-start > div:first-child p:last-child { margin-bottom: 0; color: var(--ink-2); font-size: 0.84rem; }
.quick-start ol { margin: 0; padding-left: 21px; color: var(--ink-2); font-size: 0.84rem; }
.quick-start li + li { margin-top: 8px; }
.quick-start-result { grid-column: 1 / -1; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 17px 18px; border-left: 3px solid var(--blue); background: var(--blue-pale); }
.quick-start-result span { color: var(--blue-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.quick-start-result p { margin: 0; font-size: 0.85rem; font-weight: 550; }
.detail-learning { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.detail-learning section { min-width: 0; }
.detail-learning ul, .detail-learning ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 0.84rem; }
.detail-learning li + li { margin-top: 8px; }
.lesson-jumps { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.lesson-jumps a { min-height: 34px; color: var(--blue-ink); font-size: 0.76rem; font-weight: 600; line-height: 34px; text-decoration: underline; text-decoration-color: rgba(23, 54, 143, 0.3); text-underline-offset: 4px; }
.lesson-jumps a:hover { color: var(--blue); }
.lesson-intro { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 36px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.lesson-intro > div:first-child p:last-child { margin-bottom: 0; color: var(--ink-2); font-size: 0.85rem; }
.lesson-intro h3, .lesson-core > h3, .worked-case h3, .practice-lab h3, .lesson-review h3 { margin-bottom: 14px; font-size: 1.2rem; letter-spacing: -0.025em; }
.lesson-intro ul, .worked-case ul, .worked-case ol, .practice-lab ol, .lesson-review ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 0.84rem; }
.lesson-intro li + li, .worked-case li + li, .practice-lab li + li, .lesson-review li + li { margin-top: 8px; }
.lesson-core { padding: 31px 0; border-bottom: 1px solid var(--line); }
.lesson-sections { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--ink); }
.lesson-sections article { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.lesson-sections article > span { grid-row: 1 / 10; color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.68rem; font-weight: 650; }
.lesson-sections h4 { margin: 0 0 12px; font-size: 1rem; font-weight: 650; letter-spacing: -0.02em; }
.lesson-sections p { max-width: 880px; margin-bottom: 11px; color: var(--ink-2); font-size: 0.86rem; line-height: 1.62; }
.lesson-sections p:last-child { margin-bottom: 0; }
.worked-case { margin: 30px 0; border: 1px solid var(--line-strong); border-radius: var(--radius-surface); background: var(--paper-deep); }
.worked-case-heading { padding: 25px; border-bottom: 1px solid var(--line-strong); }
.worked-case-heading p:last-child { max-width: 880px; margin-bottom: 0; color: var(--ink-2); font-size: 0.88rem; }
.worked-case-grid { display: grid; grid-template-columns: 1fr 1fr; }
.worked-case-grid > div { min-width: 0; padding: 24px; }
.worked-case-grid > div + div { border-left: 1px solid var(--line-strong); }
.worked-case h4 { margin: 0 0 12px; font-size: 0.82rem; font-weight: 650; }
.case-outcome { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 19px 24px; border-top: 1px solid var(--line-strong); background: var(--surface); }
.case-outcome span, .practice-deliverable span { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.case-outcome p, .practice-deliverable p { margin: 0; font-size: 0.85rem; font-weight: 550; }
.practice-lab { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 28px; padding: 31px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.practice-lab > div:first-child > p:last-child { margin-bottom: 0; color: var(--ink-2); font-size: 0.86rem; }
.practice-deliverable { grid-column: 1 / -1; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px; border-left: 3px solid var(--green); background: #f1f6f3; }
.lesson-review { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.lesson-review > div { min-width: 0; }
.knowledge-check { padding: 22px; border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.knowledge-check p:last-child { margin-bottom: 0; font-size: 0.92rem; font-weight: 600; }
.detail-label { margin-bottom: 10px; }
.lesson-download { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.lesson-download p:last-child { max-width: 650px; margin-bottom: 0; color: var(--ink-2); font-size: 0.82rem; }
.lesson-download .button { flex: 0 0 auto; }
.download-actions, .asset-actions, .capstone-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.download-actions { justify-content: flex-end; }
.asset-actions { margin-top: auto; padding-top: 20px; }
.capstone-actions { align-items: flex-start; flex-direction: column; }
.detail-resources { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, auto); align-items: center; gap: 14px 24px; padding: 23px 0; }
.detail-resources p { margin-bottom: 0; }
.detail-resources > div p:last-child { max-width: 630px; color: var(--ink-2); font-size: 0.8rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.curriculum, .practice-section, .proof-lab, .capstone, .scenario-strip, .glossary, .reference, .faq, .attribution { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.curriculum { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(40px, 8vw, 135px); padding-top: 76px; padding-bottom: 76px; background: var(--paper-deep); }
.curriculum > div:first-child > p:not(.section-label) { max-width: 580px; margin-bottom: 0; color: var(--ink-2); }
.curriculum-map { border-top: 1px solid var(--ink); }
.curriculum-map article { display: grid; grid-template-columns: 54px 180px minmax(0, 1fr); gap: 17px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.curriculum-map article h3, .curriculum-map article p { margin-bottom: 0; }
.curriculum-map article p { color: var(--ink-2); font-size: 0.86rem; }
.practice-section { padding-top: 80px; padding-bottom: 80px; background: var(--surface); }
.practice-intro { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(40px, 8vw, 135px); margin-bottom: 42px; }
.practice-intro > p:last-child { align-self: end; max-width: 720px; margin-bottom: 17px; color: var(--ink-2); }
.practice-modes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.practice-modes article { min-height: 190px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.practice-modes article > span { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.68rem; font-weight: 650; }
.practice-modes h3 { margin: 25px 0 10px; }
.practice-modes p, .practice-assets p, .technical-lab p { margin-bottom: 0; color: var(--ink-2); font-size: 0.84rem; }
.practice-assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.practice-assets article { display: flex; min-height: 250px; flex-direction: column; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-surface); background: var(--paper-deep); }
.practice-assets article .button { align-self: flex-start; }
.technical-lab { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; margin-top: 38px; padding: 28px; border: 1px solid var(--ink); border-radius: var(--radius-surface); background: var(--paper); }
.lab-controls { display: grid; gap: 11px; }
.lab-controls label { font-size: 0.76rem; font-weight: 650; }
.lab-controls select { min-height: 44px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--ink); background: var(--surface); }
.lab-controls output { min-height: 72px; padding: 16px; border-left: 3px solid var(--green); color: var(--ink-2); background: #f1f6f3; font-size: 0.84rem; }
.proof-lab { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 42px clamp(40px, 7vw, 110px); padding-top: 82px; padding-bottom: 82px; background: var(--ink); color: #fff; }
.proof-lab .section-label, .proof-lab .detail-label { color: #b6b4ae; }
.proof-lab-intro p:not(.section-label) { max-width: 620px; color: #d6d4cf; }
.proof-lab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.proof-lab .button.primary { color: var(--ink); background: #fff; }
.proof-lab .button.primary:hover { background: var(--paper-deep); }
.proof-lab .text-link { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.proof-loop { display: grid; border-top: 1px solid #fff; }
.proof-loop article { display: grid; grid-template-columns: 100px minmax(150px, 0.7fr) minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid #494a4d; }
.proof-loop span { color: #96a7ff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.68rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.proof-loop h3, .proof-loop p { margin-bottom: 0; }
.proof-loop p { color: #c9c7c3; font-size: 0.84rem; }
.proof-contract { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #494a4d; }
.proof-contract > div { padding: 22px; }
.proof-contract > div + div { border-left: 1px solid #494a4d; }
.proof-contract p:last-child { max-width: 680px; margin: 0; color: #c9c7c3; font-size: 0.84rem; }
.field-variants { grid-column: 1 / -1; }
.field-variants > div { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #fff; }
.field-variants article { padding: 20px 22px 4px 0; }
.field-variants article + article { padding-left: 22px; border-left: 1px solid #494a4d; }
.field-variants h3 { margin-bottom: 9px; color: #fff; }
.field-variants article p { margin-bottom: 0; color: #c9c7c3; font-size: 0.82rem; }
.capstone { display: grid; grid-template-columns: 0.64fr 1.36fr; gap: clamp(40px, 7vw, 110px); padding-top: 82px; padding-bottom: 82px; background: var(--surface); }
.capstone-intro { align-self: start; position: sticky; top: 100px; }
.capstone-intro > p:not(.section-label) { max-width: 520px; margin-bottom: 25px; color: var(--ink-2); }
.capstone-phases { border-top: 1px solid var(--ink); }
.capstone-phases article { padding: 23px 0; border-bottom: 1px solid var(--line-strong); }
.capstone-phases article > span { color: var(--blue-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.67rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.capstone-phases h3 { margin: 8px 0 10px; }
.capstone-phases p, .capstone-phases ul { color: var(--ink-2); font-size: 0.86rem; }
.capstone-phases ul { display: flex; flex-wrap: wrap; gap: 5px 18px; margin: 13px 0 0; padding: 0; list-style: none; }
.capstone-phases li::before { content: "→ "; color: var(--blue); }
.capstone-gate { grid-column: 2; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; padding: 22px; border: 1px solid var(--line-strong); border-radius: var(--radius-surface); background: var(--paper-deep); }
.capstone-gate > div > p:last-child { margin-bottom: 0; font-size: 0.9rem; font-weight: 550; }
.capstone-proof-list { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 9px 20px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 0.79rem; }
.capstone-proof-list li { position: relative; padding-left: 15px; }
.capstone-proof-list li::before { position: absolute; left: 0; color: var(--green); content: "✓"; font-weight: 700; }
.scenario-strip { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(40px, 8vw, 135px); padding-top: 76px; padding-bottom: 76px; background: var(--surface); }
.scenario-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.scenario-list li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.scenario-list span { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem; font-weight: 650; }
.scenario-list p { margin: 0; color: var(--ink-2); font-size: 0.89rem; }
.scenario-list strong { color: var(--ink); }
.glossary { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(40px, 8vw, 135px); padding-top: 76px; padding-bottom: 76px; background: var(--paper-deep); }
.glossary > div:first-child > p:last-child { max-width: 540px; color: var(--ink-2); }
.glossary-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--line-strong); }
.glossary-grid div { padding: 20px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.glossary-grid dt { margin-bottom: 8px; font-weight: 650; }
.glossary-grid dd { margin: 0; color: var(--ink-2); font-size: 0.82rem; line-height: 1.5; }
.reference { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(40px, 9vw, 160px); padding-top: 82px; padding-bottom: 82px; background: var(--paper-deep); }
.reference-copy p:not(.section-label) { max-width: 570px; margin-bottom: 0; color: var(--ink-2); }
.reference-links { border-top: 1px solid var(--ink); }
.reference-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; min-height: 62px; padding: 15px 0; border-bottom: 1px solid var(--line-strong); font-size: 0.94rem; font-weight: 550; }
.reference-links a span { color: var(--blue); }
.reference-links a:hover { color: var(--blue); }
.faq { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(40px, 8vw, 135px); padding-top: 76px; padding-bottom: 76px; background: var(--surface); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { min-height: 62px; padding: 18px 32px 18px 0; font-size: 0.94rem; font-weight: 650; cursor: pointer; }
.faq-list details p { max-width: 720px; margin-bottom: 20px; color: var(--ink-2); font-size: 0.87rem; }
.attribution { padding-top: 52px; padding-bottom: 56px; background: var(--paper-deep); }
.attribution h2 { margin-bottom: 13px; font-size: clamp(1.6rem, 2.3vw, 2.3rem); }
.attribution p:not(.section-label) { max-width: 1000px; margin-bottom: 0; color: var(--ink-2); font-size: 0.88rem; }
.attribution a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 4px; }

.lab-page { padding-top: 0; padding-bottom: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.lab-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr); gap: clamp(40px, 8vw, 130px); align-items: center; min-height: 530px; padding: clamp(58px, 8vw, 100px) 0; border-bottom: 1px solid var(--line); }
.lab-hero > * { min-width: 0; }
.lab-hero h1 { max-width: 760px; }
.lab-hero > div > p:last-child { max-width: 680px; margin-bottom: 0; color: var(--ink-2); font-size: 1.08rem; }
.lab-command { padding: 24px; border: 1px solid var(--ink); border-radius: var(--radius-surface); background: var(--paper-deep); }
.lab-command pre { margin: 12px 0; padding: 18px; color: #fff; background: var(--ink); overflow-x: auto; }
.lab-command p:last-child { margin-bottom: 0; color: var(--ink-2); font-size: 0.8rem; }
.lab-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.lab-proof-grid article { min-height: 230px; padding: 28px; border-right: 1px solid var(--line); }
.lab-proof-grid h2 { margin-bottom: 14px; font-size: clamp(1.35rem, 2vw, 1.9rem); }
.lab-proof-grid p:last-child { margin-bottom: 0; color: var(--ink-2); font-size: 0.86rem; }
.lab-boundary, .lab-source, .lab-exercises { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(40px, 8vw, 135px); padding: 76px 0; border-bottom: 1px solid var(--line); }
.lab-boundary { color: #fff; background: var(--ink); box-shadow: 32px 0 0 var(--ink), -32px 0 0 var(--ink); }
.lab-boundary .section-label { color: #b6b4ae; }
.lab-boundary p:last-child { align-self: end; margin-bottom: 6px; color: #d2d0cb; }
.lab-source > div:first-child > p:last-child { max-width: 600px; margin-bottom: 0; color: var(--ink-2); }
.lab-exercises { background: var(--paper-deep); box-shadow: 32px 0 0 var(--paper-deep), -32px 0 0 var(--paper-deep); }
.lab-exercise-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--line-strong); }
.lab-exercise-grid article { padding: 20px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.lab-exercise-grid h3 { margin-bottom: 8px; }
.lab-exercise-grid p { margin-bottom: 0; color: var(--ink-2); font-size: 0.81rem; }
.lab-next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 34px 0 70px; }

.resource-page { padding-top: 44px; padding-bottom: 72px; border-right: 1px solid var(--line); border-left: 1px solid var(--line); background: rgba(250, 250, 247, 0.94); }
.resource-shell { max-width: 1120px; margin-inline: auto; padding: clamp(26px, 4vw, 52px); border: 1px solid var(--line-strong); border-radius: var(--radius-surface); background: var(--surface); box-shadow: var(--shadow-surface); }
.resource-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 28px; padding-bottom: 30px; border-bottom: 1px solid var(--ink); }
.resource-header h1 { max-width: 900px; margin-bottom: 17px; color: var(--ink); font-size: clamp(2.35rem, 5vw, 4.8rem); letter-spacing: -0.035em; line-height: 0.98; }
.resource-header p:not(.section-label) { max-width: 780px; margin-bottom: 0; color: var(--ink-2); font-size: 0.94rem; }
.resource-back { white-space: nowrap; }
.resource-notice { margin: 28px 0; padding: 20px 22px; border-left: 3px solid var(--blue); background: var(--blue-pale); }
.resource-notice-answer { border-left-color: #8a6014; background: #fff8e8; }
.resource-notice-neutral { border-left-color: var(--line-strong); background: var(--paper-deep); }
.resource-notice p:last-child { max-width: 850px; margin: 7px 0 0; color: var(--ink-2); font-size: 0.87rem; }
.resource-sequence { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.resource-body { max-width: 920px; margin: 42px auto 0; color: var(--ink); }
.resource-body > :first-child { margin-top: 0; }
.resource-body h2, .resource-body h3, .resource-body h4 { scroll-margin-top: 94px; }
.resource-body h2 { margin: 46px 0 17px; padding-top: 21px; border-top: 1px solid var(--line); font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -0.025em; }
.resource-body h3 { margin: 31px 0 13px; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
.resource-body h4 { margin: 25px 0 10px; font-size: 1rem; }
.resource-body p, .resource-body li { color: #383735; font-size: 0.94rem; line-height: 1.72; }
.resource-body p { margin-bottom: 19px; }
.resource-body ul, .resource-body ol { margin: 0 0 24px; padding-left: 26px; }
.resource-body li + li { margin-top: 8px; }
.resource-body a { color: var(--blue-ink); text-decoration: underline; text-decoration-color: rgba(23, 54, 143, 0.35); text-underline-offset: 4px; }
.resource-body a:hover { color: var(--blue); text-decoration-color: currentColor; }
.resource-body strong { color: var(--ink); font-weight: 650; }
.resource-body blockquote { margin: 27px 0; padding: 18px 22px; border-left: 3px solid var(--ink); background: var(--paper-deep); }
.resource-body blockquote p:last-child { margin-bottom: 0; color: var(--ink); font-size: 1rem; }
.resource-body code { padding: 0.14em 0.35em; border-radius: 3px; color: #303136; background: var(--paper-deep); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.84em; overflow-wrap: anywhere; }
.resource-body pre { max-width: 100%; margin: 25px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-control); background: #17181c; overflow: auto; }
.resource-body pre code { padding: 0; color: #f5f3ed; background: transparent; font-size: 0.8rem; overflow-wrap: normal; }
.resource-table-wrap { max-width: 100%; margin: 25px 0 30px; overflow-x: auto; }
.resource-table-wrap:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.resource-body table { width: 100%; margin: 0; border-collapse: collapse; font-size: 0.82rem; }
.resource-body th, .resource-body td { min-width: 145px; padding: 12px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.resource-body th { color: var(--ink); background: var(--paper-deep); font-size: 0.75rem; font-weight: 650; }
.resource-body hr { height: 1px; margin: 38px 0; border: 0; background: var(--line); }
.resource-body input[type="checkbox"] { width: 17px; height: 17px; margin: 0 8px 0 -24px; accent-color: var(--blue); }
.resource-footer { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--ink); }
.resource-footer p:last-child { max-width: 620px; margin-bottom: 0; color: var(--ink-2); font-size: 0.84rem; }
.resource-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 18px; }

.path-planner, .completion-dialog { width: min(720px, calc(100vw - 34px)); max-height: calc(100vh - 34px); padding: 0; border: 1px solid var(--ink); border-radius: var(--radius-dialog); color: var(--ink); background: var(--surface); box-shadow: 0 24px 80px rgba(17, 18, 22, 0.22); }
.path-planner::backdrop, .completion-dialog::backdrop { background: rgba(17, 18, 22, 0.52); backdrop-filter: blur(3px); }
.path-planner-shell { padding: 28px; }
.path-planner header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.path-planner header h2 { margin-bottom: 9px; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.path-planner header p:last-child { margin-bottom: 0; color: var(--ink-2); }
.dialog-close { align-self: start; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); cursor: pointer; }
.role-options { display: grid; gap: 10px; padding-top: 22px; }
.role-options button { display: grid; gap: 5px; min-height: 85px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--ink); background: var(--surface); text-align: left; cursor: pointer; }
.role-options button:hover { border-color: var(--blue); background: var(--blue-pale); }
.role-options strong { font-size: 0.93rem; }
.role-options span { color: var(--ink-2); font-size: 0.8rem; }
.completion-shell { padding: 28px; }
.completion-shell header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.completion-shell header h2 { margin-bottom: 9px; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.completion-shell header p:last-child { margin-bottom: 0; color: var(--ink-2); }
.completion-context { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.completion-context > span { color: var(--ink-2); font-size: 0.78rem; }
.completion-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 24px 0; color: var(--ink-2); font-size: 0.9rem; }
.completion-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.completion-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.completion-actions button:disabled { cursor: not-allowed; opacity: 0.45; }

.site-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; min-height: 176px; padding-top: 34px; padding-bottom: 34px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); border-left: 1px solid var(--ink); color: #fff; background: var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.footer-mark { margin-bottom: 5px; color: #fff; }
.site-footer p { margin-bottom: 0; color: #c9c7c3; font-size: 0.82rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 13px 24px; font-size: 0.8rem; }
.footer-links a { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }

.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .first-ten-panel { max-width: 720px; }
  .catalog { grid-template-columns: 230px minmax(0, 1fr); gap: 24px; }
  .mission-grid { grid-template-columns: 1fr; }
  .curriculum, .practice-intro, .proof-lab, .capstone, .scenario-strip, .glossary, .reference, .faq, .lab-hero, .lab-boundary, .lab-source, .lab-exercises { grid-template-columns: 1fr; }
  .practice-modes, .practice-assets { grid-template-columns: 1fr; }
  .technical-lab { grid-template-columns: 1fr; }
  .proof-contract, .field-variants { grid-column: 1; }
  .capstone-intro { position: static; }
  .capstone-gate { grid-column: 1; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  .section-frame, .site-header, .site-footer { padding-inline: 20px; }
  .site-header { min-height: 64px; }
  .brand-mark { width: 29px; height: 29px; }
  .site-header { flex-wrap: wrap; }
  .nav-toggle { display: none; }
  .site-nav { display: grid; flex: 1 0 100%; align-items: stretch; gap: 0; padding: 0 0 12px; }
  .js .site-header { flex-wrap: nowrap; }
  .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .js .site-nav { position: fixed; inset: 64px 0 auto; display: none; max-height: calc(100vh - 64px); padding: 14px 20px 24px; border-bottom: 1px solid var(--ink); background: var(--paper); overflow-y: auto; }
  .js .site-nav.is-open { display: grid; }
  .site-nav a, .site-nav .nav-cta { justify-content: flex-start; width: 100%; min-height: 50px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; }
  .site-nav .nav-cta { padding: 0; }
  .hero { min-height: auto; padding-top: 52px; padding-bottom: 48px; }
  h1 { font-size: clamp(3.1rem, 16vw, 5.3rem); }
  .maintainer-strip { align-items: flex-start; flex-direction: column; }
  .maintainer-actions { width: 100%; }
  .maintainer-actions .button { flex: 1 1 220px; }
  .study-status { align-items: flex-start; flex-direction: column; }
  .catalog { grid-template-columns: 1fr; padding-top: 36px; }
  .catalog-side { position: static; }
  .catalog-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .search-field { grid-column: 1 / -1; }
  .catalog-filters .quiet, .catalog-count { grid-column: 1 / -1; }
  .detail-header { grid-template-columns: 1fr; }
  .detail-completion { justify-self: start; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-facts div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .detail-learning, .quick-start, .lesson-intro, .practice-lab, .lesson-review { grid-template-columns: 1fr; }
  .quick-start-result { grid-column: 1; }
  .practice-deliverable { grid-column: 1; }
  .detail-resources { grid-template-columns: 1fr 1fr; }
  .detail-resources > div { grid-column: 1 / -1; }
  .curriculum-map article { grid-template-columns: 45px minmax(0, 1fr); }
  .curriculum-map article p { grid-column: 2; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .proof-loop article { grid-template-columns: 82px minmax(0, 1fr); }
  .proof-loop p { grid-column: 2; }
  .field-variants > div { grid-template-columns: 1fr; }
  .field-variants article + article { padding-left: 0; border-top: 1px solid #494a4d; border-left: 0; }
  .static-lesson-header { align-items: center; flex-wrap: wrap; padding-bottom: 10px; }
  .static-lesson-header .site-nav { display: flex; flex: 1 0 100%; gap: 8px; padding: 4px 0 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .static-lesson-header .site-nav a { flex: 0 0 auto; width: auto; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); white-space: nowrap; }
  .lab-hero { min-height: auto; }
  .lab-proof-grid { grid-template-columns: 1fr; }
  .lab-proof-grid article { min-height: 0; border-bottom: 1px solid var(--line); }
  .resource-page { padding-top: 24px; padding-bottom: 42px; }
  .resource-shell { padding: 26px 22px; }
  .resource-header { grid-template-columns: 1fr; gap: 15px; }
  .resource-back { justify-self: start; }
  .resource-footer { align-items: flex-start; flex-direction: column; }
  .resource-actions { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .section-frame, .site-header, .site-footer { padding-inline: 16px; }
  .brand-school { display: none; }
  .hero { padding-top: 42px; }
  .hero-lede { font-size: 0.96rem; }
  .maintainer-actions { align-items: stretch; flex-direction: column; }
  .maintainer-actions .button { flex-basis: auto; width: 100%; }
  .first-ten-panel { padding: 20px; }
  .catalog-filters { grid-template-columns: 1fr; }
  .catalog-filters fieldset, .catalog-filters .quiet, .catalog-count { grid-column: 1; }
  .mission-card { min-height: 210px; padding: 20px; }
  .mission-detail { padding: 22px 18px; }
  .lesson-jumps { gap: 4px 14px; }
  .lesson-sections article { grid-template-columns: 30px minmax(0, 1fr); gap: 0 10px; }
  .worked-case-grid { grid-template-columns: 1fr; }
  .worked-case-grid > div + div { border-top: 1px solid var(--line-strong); border-left: 0; }
  .case-outcome, .practice-deliverable { grid-template-columns: 1fr; gap: 7px; }
  .lesson-download { align-items: stretch; flex-direction: column; }
  .lesson-download .button { width: 100%; }
  .download-actions, .asset-actions, .capstone-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .download-actions .button, .asset-actions .button, .capstone-actions .button { width: 100%; }
  .detail-resources { display: grid; }
  .detail-actions .button { width: 100%; }
  .study-status-actions { width: 100%; justify-content: space-between; }
  .path-planner-shell { padding: 22px 18px; }
  .path-planner header { grid-template-columns: 1fr; }
  .dialog-close { justify-self: start; }
  .glossary-grid { grid-template-columns: 1fr; }
  .capstone-gate { grid-template-columns: 1fr; }
  .capstone-proof-list { grid-template-columns: 1fr; }
  .proof-lab-actions { align-items: stretch; flex-direction: column; }
  .proof-lab-actions .button { width: 100%; }
  .proof-contract { grid-template-columns: 1fr; }
  .proof-contract > div + div { border-top: 1px solid #494a4d; border-left: 0; }
  .proof-loop article { grid-template-columns: 1fr; gap: 7px; }
  .proof-loop p { grid-column: 1; }
  .lab-hero h1 { font-size: clamp(2.1rem, 10.5vw, 2.6rem); line-height: 0.9; }
  .lab-exercise-grid { grid-template-columns: 1fr; }
  .lab-next { align-items: stretch; flex-direction: column; }
  .lab-next .button { width: 100%; }
  .completion-shell header { grid-template-columns: 1fr; }
  .completion-context { align-items: flex-start; flex-direction: column; gap: 5px; }
  .resource-sequence { align-items: stretch; flex-direction: column; }
  .resource-sequence .button { width: 100%; }
  .resource-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .resource-actions .button { width: 100%; }
  .resource-body { margin-top: 30px; }
}

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