:root {
  --ink: #172127;
  --muted: #5d6a70;
  --soft: #eef3f4;
  --paper: #f7f9f8;
  --surface: #ffffff;
  --surface-2: #f0f5f4;
  --line: #d9e2e1;
  --teal: #087f74;
  --teal-dark: #075f58;
  --blue: #2563a8;
  --amber: #b66a12;
  --red: #b64343;
  --green: #267a4a;
  --violet: #76539b;
  --hero: #0f1e22;
  --shadow: 0 16px 40px rgba(23, 33, 39, .10);
  --shadow-soft: 0 6px 18px rgba(23, 33, 39, .07);
  --radius: 8px;
  --max: 1260px;
  --header-h: 66px;
}

[data-theme="dark"] {
  --ink: #edf5f3;
  --muted: #aebbb8;
  --soft: #243033;
  --paper: #101719;
  --surface: #182124;
  --surface-2: #1d292b;
  --line: #334246;
  --teal: #61c8bb;
  --teal-dark: #8adbd0;
  --blue: #75a9e5;
  --amber: #e6a24f;
  --red: #e17a7a;
  --green: #72bf91;
  --violet: #b899da;
  --hero: #081113;
  --shadow: 0 18px 44px rgba(0, 0, 0, .30);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.72;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(8, 127, 116, .2); }

.wrap { width: min(var(--max), calc(100% - 42px)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: #111;
  border-radius: 6px;
}
.skip-link:focus { top: 10px; }

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: var(--amber);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--teal-dark);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  font-size: 12px;
  font-weight: 900;
}
.nav-links {
  min-width: 0;
  flex: 1;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  flex: 0 0 auto;
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal-dark); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 7px; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-weight: 800;
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal-dark); }

.hero {
  min-height: min(900px, calc(100vh - var(--header-h)));
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--hero);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,12,14,.90) 0%, rgba(4,12,14,.68) 42%, rgba(4,12,14,.16) 100%),
    linear-gradient(0deg, rgba(4,12,14,.94) 0%, rgba(4,12,14,.18) 54%, rgba(4,12,14,.28) 100%),
    url("assets/ai-learning-map.webp") center / cover no-repeat;
  transform: scale(1.015);
}
.hero-inner { position: relative; z-index: 1; padding: 106px 0 42px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .55fr);
  align-items: end;
  gap: 46px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #bde9e3;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: #efb45c; }
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 7.2vw, 96px);
  line-height: 1;
  letter-spacing: 0;
}
.hero-subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
}
.hero-copy {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.70);
  font-size: 15px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #fff;
  background: var(--teal-dark);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}
.btn:hover { filter: brightness(1.06); }
.btn.secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,.30); background: rgba(255,255,255,.08); }
.btn.small { min-height: 36px; padding: 7px 10px; font-size: 13px; }
.hero-panel {
  padding: 19px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(8,18,20,.70);
  box-shadow: var(--shadow);
  backdrop-filter: blur(13px);
}
.hero-panel h2 { margin: 0 0 13px; font-size: 17px; }
.hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hero-metric {
  min-height: 102px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: rgba(255,255,255,.07);
}
.hero-metric strong { display: block; font-size: 24px; line-height: 1.1; }
.hero-metric span { display: block; margin-top: 7px; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.45; }
.hero-note { margin: 13px 0 0; color: rgba(255,255,255,.58); font-size: 11px; }

main > section { padding: 78px 0; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.band-soft { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, .56fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 30px;
}
.kicker { margin: 0 0 8px; color: var(--teal-dark); font-size: 12px; font-weight: 850; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(30px, 4.2vw, 49px); line-height: 1.12; letter-spacing: 0; }
h3 { letter-spacing: 0; }
.lead { margin: 0; color: var(--muted); font-size: 16px; }
.muted { color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); }
.rule { height: 1px; margin: 24px 0; background: var(--line); }
.grid { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23,33,39,.02);
}
.card.compact { padding: 16px; }
.card.accent-top { border-top: 3px solid var(--teal); }
.card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.32; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 10px; }
.card ul, .card ol { margin: 12px 0 0; padding-left: 19px; color: var(--muted); }
.card li + li { margin-top: 6px; }
.overline { margin: 0 0 7px; color: var(--teal-dark); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--ink);
  background: var(--soft);
  font-size: 11px;
  font-weight: 750;
}
.badge.teal { color: var(--teal-dark); background: color-mix(in srgb, var(--teal) 14%, var(--surface)); }
.badge.blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 13%, var(--surface)); }
.badge.amber { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, var(--surface)); }
.badge.red { color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--surface)); }

.command-center {
  margin-top: -26px;
  position: relative;
  z-index: 4;
}
.command-shell {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.progress-panel { padding: 22px; border-right: 1px solid var(--line); background: var(--surface-2); }
.progress-panel h2 { font-size: 18px; }
.progress-number { margin: 14px 0 4px; font-size: 37px; font-weight: 850; line-height: 1; }
.progress-track { height: 8px; margin-top: 13px; overflow: hidden; border-radius: 5px; background: var(--line); }
.progress-fill { width: 0; height: 100%; background: var(--teal); transition: width .25s ease; }
.chapter-launcher { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.chapter-link {
  min-height: 102px;
  padding: 15px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}
.chapter-link:nth-child(5n) { border-right: 0; }
.chapter-link:nth-child(n+6) { border-bottom: 0; }
.chapter-link:hover { background: var(--surface-2); }
.chapter-link b { display: block; font-size: 14px; }
.chapter-link span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; }

.curriculum-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.curriculum-card {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr);
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.chapter-no {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 850;
}
.curriculum-card h3 { margin: 0 0 6px; font-size: 20px; }
.curriculum-card p { margin: 0; color: var(--muted); }
.curriculum-card .outcome { margin-top: 9px; color: var(--ink); font-size: 13px; }

.three-lines { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 30px; }
.line-card { padding: 18px; border-top: 3px solid var(--teal); background: var(--surface); }
.line-card:nth-child(2) { border-top-color: var(--blue); }
.line-card:nth-child(3) { border-top-color: var(--amber); }
.line-card h3 { margin: 0 0 7px; font-size: 19px; }
.line-card p { margin: 0; color: var(--muted); }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 141px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.era { position: relative; display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 50px; margin-bottom: 14px; }
.era-year { padding-top: 18px; color: var(--teal-dark); text-align: right; font-weight: 850; }
.era-card { position: relative; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.era-card::before {
  content: "";
  position: absolute;
  left: -58px;
  top: 24px;
  width: 12px;
  height: 12px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--line);
}
.band .era-card::before { border-color: var(--surface); }
.era-card h3 { margin: 0 0 7px; font-size: 20px; }
.era-card p { margin: 0; color: var(--muted); }
.era-card .lesson { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); }

.taxonomy { display: grid; gap: 12px; }
.taxonomy-row { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 13px; align-items: stretch; }
.taxonomy-name { display: flex; align-items: center; padding: 16px; border-radius: var(--radius); color: #fff; background: var(--teal-dark); font-weight: 850; }
.taxonomy-row:nth-child(2) .taxonomy-name { background: var(--blue); }
.taxonomy-row:nth-child(3) .taxonomy-name { background: var(--violet); }
.taxonomy-row:nth-child(4) .taxonomy-name { background: var(--amber); }
.taxonomy-body { padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.taxonomy-body p { margin: 0; color: var(--muted); }

.flow {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 8px;
  margin: 24px 0;
}
.flow-step { position: relative; min-height: 112px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.flow-step::after { content: "›"; position: absolute; right: -9px; top: 40%; z-index: 2; color: var(--teal-dark); font-size: 22px; font-weight: 900; }
.flow-step:last-child::after { display: none; }
.flow-step b { display: block; font-size: 14px; }
.flow-step span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.42; }

.stepper { margin-top: 24px; }
.stepper-nav { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; }
.step-btn {
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.step-btn.active { color: #fff; border-color: var(--teal-dark); background: var(--teal-dark); }
.step-detail { min-height: 166px; margin-top: 10px; padding: 21px; border-left: 4px solid var(--teal); background: var(--surface); }
.step-detail h3 { margin: 0 0 8px; }
.step-detail p { margin: 0; color: var(--muted); }
.step-detail .example { margin-top: 12px; color: var(--ink); }

.stack-table { display: grid; gap: 9px; }
.stack-row { display: grid; grid-template-columns: 180px minmax(0,1fr) minmax(230px,.48fr); gap: 9px; }
.stack-cell { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); }
.stack-cell:first-child { color: #fff; border-color: var(--hero); background: var(--hero); font-weight: 800; }

.build-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; counter-reset: build; }
.build-step { position: relative; min-height: 174px; padding: 18px 18px 18px 55px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.build-step::before {
  counter-increment: build;
  content: counter(build);
  position: absolute;
  left: 16px;
  top: 17px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}
.build-step h3 { margin: 0 0 7px; font-size: 17px; }
.build-step p { margin: 0; color: var(--muted); font-size: 13px; }
.build-step b { color: var(--ink); }

.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tab {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}
.tab.active { color: #fff; border-color: var(--teal-dark); background: var(--teal-dark); }
.case-panel { display: none; }
.case-panel.active { display: block; }
.case-hero { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1fr); gap: 16px; }
.case-summary { padding: 22px; color: #fff; border-radius: var(--radius); background: var(--hero); }
.case-summary h3 { margin: 0 0 9px; font-size: 27px; }
.case-summary p { margin: 0; color: rgba(255,255,255,.72); }
.case-summary .badge { margin-top: 14px; color: #fff; background: rgba(255,255,255,.12); }
.case-anatomy { display: grid; gap: 9px; }
.case-row { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.case-row:last-child { border-bottom: 0; }
.case-row b { color: var(--teal-dark); }
.case-row span { color: var(--muted); }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink); background: var(--surface-2); font-size: 12px; }
td { color: var(--muted); font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }

.industry-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.industry-card { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.industry-card h3 { margin: 0; font-size: 19px; }
.industry-card p { margin: 0; color: var(--muted); }
.industry-card .risk { margin-top: 7px; color: var(--red); font-size: 12px; }

.search-shell { position: sticky; top: 74px; z-index: 10; margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); }
.search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.search-row input { width: 100%; min-height: 43px; padding: 9px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.filter {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.filter.active { color: #fff; border-color: var(--teal-dark); background: var(--teal-dark); }
.term-count { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.glossary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.term { min-height: 176px; }
.term.hidden { display: none; }
.term .meta { margin-bottom: 6px; color: var(--teal-dark); font-size: 11px; font-weight: 850; }
.term h3 { font-size: 17px; }
.term p { font-size: 13px; }
.empty-state { display: none; padding: 28px; color: var(--muted); text-align: center; border: 1px dashed var(--line); }

.data-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 24px; }
.data-point { padding: 17px; border-top: 3px solid var(--teal); background: var(--surface); }
.data-point:nth-child(2) { border-top-color: var(--amber); }
.data-point:nth-child(3) { border-top-color: var(--blue); }
.data-point:nth-child(4) { border-top-color: var(--red); }
.data-point strong { display: block; font-size: 28px; line-height: 1.1; }
.data-point span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.horizon { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.horizon article { min-height: 218px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.horizon time { color: var(--teal-dark); font-size: 12px; font-weight: 850; }
.horizon h3 { margin: 8px 0; font-size: 17px; }
.horizon p { margin: 0; color: var(--muted); font-size: 13px; }
.certainty { display: inline-block; margin-top: 11px; padding: 3px 7px; border-radius: 5px; background: var(--soft); color: var(--muted); font-size: 10px; font-weight: 750; }

.risk-matrix { display: grid; grid-template-columns: 150px repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.risk-cell { min-height: 93px; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--muted); }
.risk-cell:nth-child(5n) { border-right: 0; }
.risk-cell:nth-last-child(-n+5) { border-bottom: 0; }
.risk-cell.head { min-height: auto; color: var(--ink); background: var(--surface-2); font-weight: 800; }
.risk-cell.level { color: var(--ink); font-weight: 800; }
.risk-cell.high { background: color-mix(in srgb, var(--red) 9%, var(--surface)); }
.risk-cell.medium { background: color-mix(in srgb, var(--amber) 10%, var(--surface)); }
.risk-cell.low { background: color-mix(in srgb, var(--green) 9%, var(--surface)); }

.career-switcher { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 16px; }
.career-nav { display: grid; align-content: start; gap: 7px; }
.career-btn { padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); cursor: pointer; text-align: left; font-weight: 750; }
.career-btn.active { color: #fff; border-color: var(--teal-dark); background: var(--teal-dark); }
.career-panel { min-height: 360px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.career-panel h3 { margin: 0 0 8px; font-size: 25px; }
.career-panel p { color: var(--muted); }
.career-panel .role-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.role { padding: 13px; background: var(--surface-2); }
.role b { display: block; }
.role span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.roadmap { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; margin-top: 24px; }
.month { min-height: 220px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.month h3 { margin: 0; padding: 12px 13px; color: #fff; background: var(--hero); font-size: 15px; }
.month div { padding: 13px; }
.month p { margin: 0; color: var(--muted); font-size: 12px; }
.month b { color: var(--ink); }

.checklist { display: grid; gap: 8px; margin-top: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 5px; accent-color: var(--teal); }
.check.done { color: var(--ink); border-color: color-mix(in srgb,var(--green) 45%,var(--line)); background: color-mix(in srgb,var(--green) 8%,var(--surface)); }

.quiz-shell { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 16px; }
.quiz-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.quiz-card h3 { margin: 0 0 14px; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option { padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); cursor: pointer; text-align: left; }
.quiz-option:hover { border-color: var(--teal); }
.quiz-option.selected { color: var(--ink); border-color: var(--teal); background: color-mix(in srgb,var(--teal) 9%,var(--surface)); }
.quiz-option.correct { border-color: var(--green); background: color-mix(in srgb,var(--green) 10%,var(--surface)); }
.quiz-option.wrong { border-color: var(--red); background: color-mix(in srgb,var(--red) 9%,var(--surface)); }
.quiz-explain { display: none; margin-top: 13px; padding: 12px; color: var(--muted); background: var(--surface-2); }
.quiz-explain.visible { display: block; }
.quiz-sidebar { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.quiz-score { font-size: 43px; font-weight: 850; line-height: 1; }
.quiz-dots { display: grid; grid-template-columns: repeat(6,1fr); gap: 6px; margin: 16px 0; }
.quiz-dot { aspect-ratio: 1; display: grid; place-items: center; border-radius: 5px; color: var(--muted); background: var(--soft); font-size: 10px; font-weight: 800; }
.quiz-dot.done { color: #fff; background: var(--teal-dark); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.source-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.source-list a { display: block; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.source-list a:hover { border-color: var(--teal); }
.source-list b { display: block; color: var(--ink); }
.source-list span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.footer-links a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.filing-line { min-height: 20px; font-size: 12px; }
.filing-line:not(.ready), .filing-line:empty { display: none; }
.filing-line a { margin-right: 14px; text-decoration: none; }
.noscript-note { padding: 12px 18px; color: #fff; background: #8a4b08; text-align: center; font-size: 13px; }

.legal-page { min-height: 100vh; background: var(--paper); }
.legal-topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.legal-nav { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-nav a { text-decoration: none; }
.legal-hero { padding: 68px 0 34px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.legal-hero h1 { max-width: 900px; color: var(--ink); font-size: clamp(38px, 6vw, 68px); }
.legal-hero p { max-width: 780px; margin: 15px 0 0; color: var(--muted); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 820px); gap: 52px; align-items: start; padding: 48px 0 76px; }
.legal-toc { position: sticky; top: 24px; display: grid; gap: 5px; }
.legal-toc b { margin-bottom: 7px; color: var(--ink); }
.legal-toc a { padding: 6px 8px; border-radius: 5px; color: var(--muted); text-decoration: none; font-size: 13px; }
.legal-toc a:hover { color: var(--teal-dark); background: var(--surface-2); }
.legal-body { min-width: 0; }
.legal-section { scroll-margin-top: 30px; padding: 0 0 32px; }
.legal-section + .legal-section { padding-top: 32px; border-top: 1px solid var(--line); }
.legal-section h2 { font-size: 27px; }
.legal-section h3 { margin: 22px 0 7px; font-size: 18px; }
.legal-section p, .legal-section li { color: var(--muted); }
.legal-section ul, .legal-section ol { padding-left: 20px; }
.legal-section li + li { margin-top: 7px; }
.legal-callout { padding: 15px 17px; border-left: 4px solid var(--teal); background: var(--surface-2); }
.legal-callout p { margin: 0; color: var(--ink); }
.pending-field { display: inline-block; padding: 2px 6px; color: #7a4609; border: 1px solid #d6a25e; border-radius: 4px; background: #fff3dc; font-weight: 700; }
.not-found { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 60px 0; }
.not-found-inner { max-width: 680px; text-align: center; }
.not-found-code { color: var(--teal-dark); font-size: clamp(72px, 16vw, 150px); font-weight: 900; line-height: .9; }
.not-found h1 { margin-top: 20px; color: var(--ink); font-size: 34px; }
.not-found p { color: var(--muted); }

details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details + details { margin-top: 9px; }
summary { padding: 14px 16px; cursor: pointer; color: var(--ink); font-weight: 800; }
.details-body { padding: 0 16px 16px; color: var(--muted); }
.details-body p { margin: 0; }

footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); background: var(--surface-2); }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.footer-grid p { max-width: 760px; margin: 5px 0 0; }
.back-top { position: fixed; right: 18px; bottom: 18px; z-index: 30; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.back-top.visible { opacity: 1; pointer-events: auto; }

@media (max-width: 1080px) {
  .hero-grid, .section-head, .case-hero { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; }
  .chapter-launcher { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .chapter-link:nth-child(5n) { border-right: 1px solid var(--line); }
  .chapter-link:nth-child(3n) { border-right: 0; }
  .chapter-link:nth-child(n+6) { border-bottom: 1px solid var(--line); }
  .chapter-link:nth-child(n+7) { border-bottom: 0; }
  .cols-4, .cols-5, .data-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .flow { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .flow-step:nth-child(4)::after { display: none; }
  .stepper-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .horizon { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .roadmap { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  :root { --header-h: 112px; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .nav { min-height: 112px; flex-wrap: wrap; align-content: center; gap: 6px 12px; padding: 7px 0; }
  .nav-links { order: 3; flex-basis: 100%; }
  .nav-actions { margin-left: auto; }
  .hero { min-height: 760px; }
  .hero-inner { padding: 82px 0 32px; }
  .hero-panel { max-width: none; padding: 11px; }
  .hero-panel h2, .hero-metric span, .hero-note { display: none; }
  .hero-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
  .hero-metric { min-height: 64px; display: grid; place-items: center; padding: 8px 4px; text-align: center; }
  .hero-metric strong { font-size: 20px; }
  .command-shell { grid-template-columns: 1fr; }
  .progress-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .curriculum-grid, .three-lines, .cols-3, .glossary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .build-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .industry-card { grid-template-columns: 1fr; }
  .career-switcher { grid-template-columns: 1fr; }
  .career-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .quiz-shell { grid-template-columns: 1fr; }
  .quiz-sidebar { order: -1; }
  .quiz-dots { grid-template-columns: repeat(12,1fr); }
  .search-shell { top: 120px; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .legal-toc b { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .brand span:last-child { font-size: 14px; }
  .nav-actions .print-action { display: none; }
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero-inner { padding: 48px 0 24px; }
  h1 { font-size: clamp(44px, 16vw, 66px); }
  .hero-subtitle { font-size: 18px; }
  .hero-copy { font-size: 14px; }
  .hero-grid { gap: 18px; }
  .hero-actions { margin-top: 20px; gap: 7px; }
  .hero-actions .btn { min-height: 38px; padding: 7px 10px; font-size: 12px; }
  .hero-panel { padding: 10px; }
  .hero-panel h2, .hero-metric span, .hero-note { display: none; }
  .hero-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  .hero-metric { min-height: 58px; display: grid; place-items: center; padding: 7px 3px; text-align: center; }
  .hero-metric strong { font-size: 17px; }
  main > section { padding: 56px 0; }
  .section-head { gap: 13px; margin-bottom: 22px; }
  .chapter-launcher { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .chapter-link:nth-child(3n) { border-right: 1px solid var(--line); }
  .chapter-link:nth-child(2n) { border-right: 0; }
  .chapter-link:nth-child(n+7) { border-bottom: 1px solid var(--line); }
  .chapter-link:nth-child(n+9) { border-bottom: 0; }
  .curriculum-grid, .three-lines, .cols-2, .cols-3, .cols-4, .cols-5, .glossary, .data-strip, .source-list, .industry-grid { grid-template-columns: 1fr; }
  .curriculum-card { grid-template-columns: 48px minmax(0,1fr); padding: 16px; }
  .chapter-no { width: 48px; height: 48px; }
  .timeline::before { left: 11px; }
  .era { grid-template-columns: 1fr; gap: 5px; padding-left: 31px; }
  .era-year { padding-top: 0; text-align: left; }
  .era-card::before { left: -27px; top: 21px; }
  .taxonomy-row, .stack-row { grid-template-columns: 1fr; }
  .taxonomy-name { min-height: 52px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(2n)::after { display: none; }
  .flow-step:nth-child(4)::after { display: none; }
  .stepper-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .build-grid { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .tab { flex: 0 0 auto; }
  .case-row { grid-template-columns: 1fr; gap: 3px; }
  .search-shell { position: static; }
  .search-row { grid-template-columns: 1fr; }
  .horizon { grid-template-columns: 1fr; }
  .risk-matrix { grid-template-columns: 95px repeat(4,140px); overflow-x: auto; }
  .career-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .career-panel .role-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .month { min-height: auto; }
  .quiz-dots { grid-template-columns: repeat(6,1fr); }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .legal-hero { padding-top: 48px; }
  .legal-layout { padding-top: 34px; }
  .legal-toc { grid-template-columns: 1fr; }
}

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

@media print {
  .topbar, .scroll-progress, .hero-actions, .command-center, .search-shell, .back-top, .quiz-actions { display: none !important; }
  body { color: #111; background: #fff; font-size: 10pt; }
  .hero { min-height: auto; color: #111; background: #fff; }
  .hero::before { display: none; }
  .hero-inner { padding: 30px 0; }
  .hero-panel { color: #111; background: #fff; border-color: #bbb; }
  .hero-subtitle, .hero-copy, .hero-note, .hero-metric span { color: #333; }
  main > section { padding: 28px 0; break-inside: avoid; }
  .card, .era-card, .curriculum-card, .term { break-inside: avoid; box-shadow: none; }
  a { text-decoration: none; }
}
