:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #607080;
  --line: #d6dee8;
  --line-strong: #b7c3d0;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --accent-soft: #e8f1ff;
  --success: #197b55;
  --warn-bg: #fff6df;
}
html[data-theme="workbench-light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #607080;
  --line: #d6dee8;
  --line-strong: #b7c3d0;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --accent-soft: #e8f1ff;
  --success: #197b55;
  --warn-bg: #fff6df;
}
html[data-theme="paper-light"] {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --panel: #ffffff;
  --text: #1f2428;
  --muted: #6f665b;
  --line: #ded8cd;
  --line-strong: #c8bcae;
  --accent: #986c18;
  --accent-ink: #ffffff;
  --accent-soft: #fff1d1;
  --success: #3f7a46;
  --warn-bg: #fff3d7;
}
html[data-theme="shop-dark"] {
  color-scheme: dark;
  --bg: #0e141b;
  --surface: #151d27;
  --panel: #151d27;
  --text: #edf3f9;
  --muted: #9fb0c1;
  --line: #2a3644;
  --line-strong: #3b4b5d;
  --accent: #65a9ff;
  --accent-ink: #06101d;
  --accent-soft: #19314d;
  --success: #65d39a;
  --warn-bg: #2b2415;
}
html[data-theme="blueprint-dark"] {
  color-scheme: dark;
  --bg: #071827;
  --surface: #0c2235;
  --panel: #102a42;
  --text: #eaf6ff;
  --muted: #a8c1d7;
  --line: #24425a;
  --line-strong: #37617f;
  --accent: #7dd3fc;
  --accent-ink: #03111d;
  --accent-soft: #15384e;
  --success: #8be9ba;
  --warn-bg: #27311a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 850; letter-spacing: .01em; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
nav a { text-decoration: none; }
nav a:hover { color: var(--text); }
.theme-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.theme-control select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 8px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 34px;
  align-items: center;
  padding: 58px 0 36px;
}
.hero.compact {
  padding: 42px 0 28px;
}
.eyebrow {
  color: var(--success);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: .96;
  margin: 0 0 22px;
  letter-spacing: -.03em;
}
h2 { font-size: 30px; margin: 0 0 12px; letter-spacing: -.02em; }
h3 { margin: 0 0 10px; font-size: 20px; }
p { color: var(--muted); line-height: 1.58; }
.lead {
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}
.btn:hover { border-color: var(--line-strong); background: var(--accent-soft); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.panel, .card, .cluster, .step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.panel { padding: 22px; box-shadow: 0 16px 40px rgba(15, 23, 42, .08); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 20px 0 44px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 18px 0 44px; }
.clusters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px 0 44px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 12px 0 42px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
.stat strong { display: block; font-size: 28px; color: var(--text); }
.stat span { color: var(--muted); font-size: 14px; }
.card, .cluster { padding: 20px; min-width: 0; }
.card p, .cluster p { margin: 0; }
.path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.path-card { display: grid; gap: 14px; align-content: start; }
.path-card p { margin: 0; }
.path-card .actions { margin-top: 4px; }
.path-links { display: grid; gap: 10px; }
.learning-assets { margin: 18px 0 44px; }
.learning-assets > p { margin-bottom: 18px; }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.asset-grid article {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  min-width: 0;
}
.reference-list { display: grid; gap: 18px; padding: 18px 0 44px; }
.reference-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.reference-jump {
  position: sticky;
  top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 16px;
}
.reference-jump h2 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: 0;
}
.reference-jump p {
  font-size: 14px;
  margin: 0 0 12px;
}
.reference-jump nav {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.reference-jump a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--panel);
}
.reference-jump a:hover {
  border-color: var(--line-strong);
  background: var(--accent-soft);
}
.command-group { display: grid; gap: 14px; }
.command-group h4 { margin: 4px 0 0; font-size: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
main, section, article, .card, .panel, .table-wrap { min-width: 0; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
th { color: var(--text); background: var(--accent-soft); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td:first-child { width: 28%; }
.kicker { color: var(--muted); max-width: 700px; margin-top: 0; }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li, .step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  color: var(--muted);
  line-height: 1.48;
}
.steps li { align-items: start; }
.steps span, .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}
.step { padding: 18px; }
.step div:last-child { min-width: 0; }
.step strong { color: var(--text); display: block; margin-bottom: 4px; }
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding-top: 18px;
}
.section-title p { margin: 0; max-width: 560px; }
.note {
  border: 1px solid #f0c36a;
  background: var(--warn-bg);
  border-radius: 10px;
  padding: 18px;
  color: #5b3a00;
  line-height: 1.55;
  margin: 0 0 44px;
}
.note p { color: #5b3a00; margin: 0; }
.review-note {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 13px;
}
.support-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: #0f1720;
  color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin: 10px 0 44px;
}
.support-strip h2,
.support-strip h3 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: 0;
}
.support-strip p {
  margin: 0;
  color: #c9d4e2;
}
.support-strip .btn {
  border-color: #3b4658;
  color: #ffffff;
  background: #1f6feb;
}
.support-strip .btn:hover { background: #2b7cff; }
.resource-list { display: grid; gap: 10px; padding-left: 0; list-style: none; }
.resource-list a { color: var(--accent); font-weight: 700; }
.resource-list li {
  color: var(--muted);
  line-height: 1.5;
}
.flashcard {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.flashcard:first-of-type { border-top: 0; }
.flashcard summary {
  cursor: pointer;
  font-weight: 750;
}
.flashcard p {
  margin: 10px 0 0;
}
code {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
pre code {
  background: transparent;
  border: 0;
  padding: 0;
  overflow-wrap: normal;
  word-break: normal;
  white-space: pre;
}
pre {
  overflow-x: auto;
  max-width: 100%;
  background: #111827;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  line-height: 1.5;
}
html[data-theme="shop-dark"] pre,
html[data-theme="blueprint-dark"] pre {
  background: #07111d;
}
footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
  font-size: 14px;
}
footer nav {
  margin-top: 12px;
  gap: 14px;
}
footer nav a {
  color: var(--muted);
}
footer nav a:hover {
  color: var(--text);
}
@media (max-width: 820px) {
  header { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; padding-top: 42px; }
  .grid, .two, .clusters, .path-grid, .asset-grid { grid-template-columns: minmax(0, 1fr); }
  .reference-shell { grid-template-columns: minmax(0, 1fr); }
  .reference-jump { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-title { align-items: flex-start; flex-direction: column; }
  .support-strip { grid-template-columns: 1fr; }
  .table-wrap { max-width: 100%; }
  table { min-width: 640px; }
}
