:root {
  color-scheme: light;
  --graphite-950: #111513;
  --graphite-900: #181e1b;
  --graphite-800: #252d29;
  --graphite-700: #3b4540;
  --graphite-600: #59635e;
  --graphite-500: #737c77;
  --paper: #f7f5ef;
  --paper-strong: #fffefa;
  --line: #d9ddd7;
  --line-dark: #414b46;
  --green-800: #103f2c;
  --green-700: #18533a;
  --green-600: #23704e;
  --green-100: #e5f0e9;
  --gold: #c8a33d;
  --gold-soft: #eee3bf;
  --gold-text: #735f2d;
  --danger: #9e3f39;
  --danger-soft: #faebe8;
  --focus: #2769aa;
  --shadow: 0 18px 45px rgba(17, 21, 19, 0.08);
  --header-height: 72px;
  --reading: 72ch;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--graphite-900);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

button,
select,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: white;
  background: var(--green-700);
}

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

.preview-rail {
  min-height: 38px;
  padding: 6px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #d9dfdb;
  background: var(--graphite-950);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.preview-state,
.context-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 163, 61, 0.17);
}

.context-control select {
  min-height: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 2px 28px 2px 8px;
  color: white;
  background: var(--graphite-800);
}

.academy-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: var(--header-height);
  padding: 0 clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  background: var(--graphite-900);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 28px;
  display: flex;
  align-items: end;
  gap: 3px;
}

.brand-mark i {
  width: 5px;
  border-radius: 3px 3px 0 0;
  background: var(--gold);
}

.brand-mark i:nth-child(1) { height: 14px; }
.brand-mark i:nth-child(2) { height: 25px; background: #4e8d6d; }
.brand-mark i:nth-child(3) { height: 20px; background: #f2c24b; }
.brand-mark i:nth-child(4) { height: 28px; background: #2b6c4d; }

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.brand-section {
  padding-left: 12px;
  border-left: 1px solid var(--line-dark);
  color: #cfd5d1;
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.context-badge {
  padding: 5px 9px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: #dce3de;
  font-size: 12px;
}

.contents-button {
  display: none;
  min-height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 8px 13px;
  color: white;
  background: transparent;
  cursor: pointer;
}

.contents-button[hidden] {
  display: none !important;
}

.academy-footer {
  min-height: 88px;
  padding: 28px clamp(18px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #303833;
  color: #adb6b1;
  background: var(--graphite-950);
  font-size: 13px;
}

.academy-access-band {
  margin: clamp(56px, 7vw, 96px) 0;
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border-top: 3px solid var(--gold);
  color: white;
  background: var(--graphite-900);
}

.academy-access-band h2 {
  margin: 0 0 20px;
  max-width: 18ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.academy-access-band p {
  max-width: 78ch;
  color: #d7ddd9;
}

.academy-access-band .lifetime-scope {
  color: #aeb8b2;
  font-size: 14px;
}

.academy-offer {
  padding: 26px;
  display: grid;
  gap: 13px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.025);
}

.academy-offer strong {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.1;
}

.academy-offer > span:not(.offer-audience) {
  color: #c8d0cb;
  font-size: 14px;
}

.offer-audience {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.academy-access-band.owned,
.academy-access-band.included {
  grid-template-columns: 1fr;
}

.loading-shell {
  min-height: 70vh;
  padding: clamp(48px, 8vw, 112px) clamp(18px, 7vw, 104px);
}

.loading-shell p {
  color: var(--graphite-600);
}

.loading-line {
  display: block;
  width: min(620px, 85%);
  height: 28px;
  margin-bottom: 14px;
  background: #e1e4df;
  animation: loading-pulse 1.1s ease-in-out infinite alternate;
}

.loading-line.short {
  width: min(380px, 62%);
}

@keyframes loading-pulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

.dashboard-hero {
  padding: clamp(56px, 7vw, 96px) clamp(18px, 6vw, 92px) clamp(48px, 6vw, 80px);
  color: white;
  background: var(--graphite-900);
  border-bottom: 4px solid var(--gold);
}

.dashboard-hero-inner {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: clamp(36px, 7vw, 104px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.dashboard-hero h1,
.page-heading h1,
.lesson-title h1,
.project-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.dashboard-hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 6vw, 84px);
}

.hero-subtitle {
  max-width: 720px;
  margin: 24px 0 0;
  color: #d2d9d5;
  font-size: clamp(17px, 1.6vw, 21px);
}

.progress-panel {
  padding-left: clamp(0px, 4vw, 48px);
  border-left: 1px solid var(--line-dark);
}

.progress-numbers {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.progress-percent {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6vw, 82px);
  line-height: 1;
}

.progress-count {
  color: #bcc6c0;
  font-size: 14px;
}

.progress-track {
  height: 6px;
  margin: 22px 0 24px;
  overflow: hidden;
  border-radius: 99px;
  background: #3a443f;
}

.progress-fill {
  height: 100%;
  width: var(--progress, 0%);
  border-radius: inherit;
  background: var(--gold);
}

.current-copy {
  margin: 0 0 18px;
  color: #dbe0dd;
  font-size: 14px;
}

.current-copy strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: 16px;
}

.button,
.button-secondary,
.button-quiet {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  padding: 10px 18px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.button {
  border: 1px solid var(--green-700);
  color: white;
  background: var(--green-700);
}

.button:hover {
  background: var(--green-800);
}

.button-secondary {
  border: 1px solid var(--green-700);
  color: var(--green-800);
  background: transparent;
}

.button-quiet {
  border: 1px solid var(--line);
  color: var(--graphite-800);
  background: var(--paper-strong);
}

.button[disabled],
.button-secondary[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.dashboard-main {
  width: min(1320px, calc(100% - clamp(36px, 9vw, 128px)));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) 0 88px;
}

.section-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--graphite-600);
}

.module-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--graphite-800);
}

.module-row {
  min-height: 124px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px 20px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.module-row:nth-child(odd) {
  margin-right: 28px;
}

.module-number {
  color: var(--green-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.module-row h3 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.25;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--graphite-600);
  font-size: 12px;
}

.module-mini-progress {
  width: 54px;
  height: 3px;
  margin-top: 11px;
  background: #d9ddd7;
}

.module-mini-progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--green-600);
}

.state-label,
.lock-label,
.type-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.state-label {
  color: var(--green-800);
  background: var(--green-100);
}

.state-label.not-started {
  color: var(--graphite-600);
  background: #eceeea;
}

.state-label.complete {
  color: white;
  background: var(--green-700);
}

.state-label.submitted {
  color: #5f4814;
  background: #f1e4bb;
}

.activity-link {
  color: inherit;
  text-decoration: none;
}

.component-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: -8px 0 22px;
  padding: 14px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.14);
}

.component-progress > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #bcc6c0;
  font-size: 12px;
}

.component-progress strong {
  color: white;
  font-size: 13px;
}

.lock-label {
  color: #6a5522;
  background: #f3ead0;
}

.lock-copy-short {
  display: none;
}

.lock-label::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
}

.learning-zones {
  margin-top: clamp(72px, 9vw, 116px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
}

.learning-zone {
  grid-column: span 6;
  padding-top: 24px;
  border-top: 3px solid var(--graphite-800);
}

.learning-zone.full {
  grid-column: 1 / -1;
}

.learning-zone h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
}

.zone-intro {
  margin: 0 0 22px;
  color: var(--graphite-600);
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.plain-list li,
.resource-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.plain-list strong,
.resource-row strong {
  font-size: 14px;
}

.plain-list small,
.resource-row small {
  display: block;
  color: var(--graphite-600);
}

.project-band {
  margin-top: clamp(72px, 9vw, 116px);
  padding: clamp(32px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 40px;
  align-items: center;
  color: white;
  background: var(--green-800);
  border-left: 7px solid var(--gold);
}

.project-band h2 {
  margin: 4px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
}

.project-band p {
  margin: 0;
  color: #d5e2da;
}

.project-band .lock-label {
  justify-self: end;
}

.page-shell {
  min-height: calc(100vh - 198px);
}

.page-heading,
.project-heading {
  padding: clamp(44px, 6vw, 78px) clamp(18px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.page-heading-inner,
.project-heading-inner,
.module-content,
.project-content,
.resource-content {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--green-700);
  font-size: 13px;
}

.breadcrumb a {
  text-underline-offset: 3px;
}

.page-heading h1,
.project-heading h1 {
  max-width: 820px;
  font-size: clamp(38px, 5vw, 64px);
}

.heading-description {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--graphite-600);
  font-size: 17px;
}

.module-progress-line {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.module-progress-line .progress-track {
  width: min(460px, 65vw);
  margin: 0;
  background: #dfe3dd;
}

.module-content,
.project-content,
.resource-content {
  padding: 54px 0 88px;
}

.prerequisite-note {
  margin-bottom: 34px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: #f1eee3;
  color: var(--graphite-700);
  font-size: 14px;
}

.demo-flow {
  max-width: var(--reading);
  margin: 0 0 34px;
  padding: 18px 20px;
  border-left: 3px solid var(--green-700);
  background: var(--green-100);
}

.module-content > .demo-flow {
  max-width: none;
}

.demo-flow .eyebrow {
  margin: 0 0 12px;
  color: var(--gold-text);
}

.lesson-title > .eyebrow {
  color: var(--gold-text);
}

.demo-flow ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-flow li {
  display: flex;
  gap: 9px;
  align-items: baseline;
  color: var(--graphite-800);
  font-size: 14px;
  font-weight: 700;
}

.demo-flow li > span {
  color: var(--green-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.demo-flow li a {
  color: var(--green-800);
  text-decoration-color: color-mix(in srgb, var(--green-700) 45%, transparent);
  text-underline-offset: 3px;
}

.demo-flow li a:hover,
.demo-flow li a:focus-visible {
  color: var(--green-700);
  text-decoration-color: currentColor;
}

#lesson-article,
#quiz-block,
#demo-mission,
#demo-lab {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.demo-completion[hidden] {
  display: none;
}

.demo-completion .activity-panel {
  border-color: var(--green-700);
  background: var(--green-100);
}

.lesson-list {
  margin: 0 0 64px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--graphite-800);
}

.lesson-list-item {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.lesson-list-item a {
  text-decoration: none;
}

.lesson-list-item a:hover h3 {
  color: var(--green-700);
}

.lesson-list-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.lesson-list-item p {
  margin: 0;
  color: var(--graphite-600);
  font-size: 12px;
}

.lesson-sequence {
  color: var(--green-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

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

.supplement-block {
  padding-top: 20px;
  border-top: 3px solid var(--graphite-800);
}

.supplement-block.wide {
  grid-column: 1 / -1;
}

.supplement-block > h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.activity-panel {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.activity-panel h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.activity-panel p {
  margin: 7px 0;
  color: var(--graphite-700);
}

.activity-panel dl {
  margin: 18px 0 0;
}

.activity-panel dt {
  margin-top: 14px;
  color: var(--graphite-500);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.activity-panel dd {
  margin: 4px 0 0;
}

.activity-panel ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

.lesson-layout {
  min-height: calc(100vh - 198px);
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
}

.curriculum-sidebar {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: auto;
  border-right: 1px solid #344039;
  color: #d7ded9;
  background: var(--graphite-900);
}

.curriculum-sidebar.mobile-only {
  display: none;
}

.sidebar-header {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #344039;
  background: var(--graphite-900);
}

.sidebar-header a {
  color: white;
  font-weight: 750;
  text-decoration: none;
}

.sidebar-header p {
  margin: 6px 0 0;
  color: #9daba3;
  font-size: 12px;
}

.drawer-close {
  display: none;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #4a5750;
  border-radius: 4px;
  padding: 7px 10px;
  color: white;
  background: transparent;
  cursor: pointer;
}

.curriculum-list {
  margin: 0;
  padding: 10px 0 34px;
  list-style: none;
}

.curriculum-module > button {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  border: 0;
  padding: 12px 18px;
  color: #d7ded9;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.curriculum-module > button:hover,
.curriculum-module.active > button {
  color: white;
  background: #222c27;
}

.curriculum-module-number {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.curriculum-module-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.curriculum-chevron {
  color: #96a39c;
  font-size: 12px;
}

.curriculum-lessons {
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
}

.curriculum-lessons[hidden] {
  display: none;
}

.curriculum-lessons a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 8px 18px 8px 28px;
  color: #aebbb4;
  font-size: 12px;
  text-decoration: none;
}

.curriculum-lessons a:hover,
.curriculum-lessons a[aria-current="page"] {
  color: white;
  background: #2a352f;
}

.curriculum-lessons .lesson-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.curriculum-lessons .done .lesson-dot {
  border-color: var(--gold);
  background: var(--gold);
}

.lesson-workspace {
  min-width: 0;
  background: var(--paper-strong);
}

.lesson-compact-header {
  min-height: 74px;
  padding: 14px clamp(20px, 4.5vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #faf9f5;
}

.lesson-compact-header p {
  margin: 0;
  color: var(--graphite-600);
  font-size: 12px;
}

.lesson-compact-header strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.compact-progress {
  min-width: 170px;
  text-align: right;
}

.compact-progress .progress-track {
  width: 170px;
  margin: 7px 0 0 auto;
  background: #dfe3dd;
}

.lesson-body {
  width: min(calc(var(--reading) + 96px), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 0 82px;
}

.lesson-title {
  margin-bottom: 42px;
}

.lesson-title h1 {
  max-width: 800px;
  font-size: clamp(38px, 5vw, 62px);
}

.lesson-title-meta {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--graphite-600);
  font-size: 13px;
}

.lesson-article {
  max-width: var(--reading);
  color: #252b28;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.78;
}

.lesson-article h1 {
  display: none;
}

.lesson-article h2 {
  margin: 52px 0 16px;
  color: var(--graphite-900);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 25px;
  line-height: 1.25;
}

.lesson-article h3 {
  margin: 38px 0 13px;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 19px;
}

.lesson-article p {
  margin: 0 0 1.25em;
}

.lesson-article ul,
.lesson-article ol {
  margin: 0 0 1.5em;
  padding-left: 1.35em;
}

.lesson-article strong {
  color: #111513;
}

.lesson-visual {
  max-width: 100%;
  min-width: 0;
  margin: 44px 0 0;
  overflow: hidden;
  padding: clamp(14px, 2.5vw, 22px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfaf6;
}

.lesson-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.lesson-visual figcaption {
  margin-top: 14px;
  color: var(--graphite-600);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.lesson-visual-secondary {
  margin-top: 24px;
}

.learning-activity {
  max-width: var(--reading);
  margin-top: 60px;
  padding-top: 28px;
  border-top: 4px solid var(--graphite-800);
}

.learning-activity > h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.mission-runtime,
.lab-runtime {
  max-width: 900px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  background: #fbfaf6;
}

.mission-runtime-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.mission-runtime-header .eyebrow {
  margin: 0 0 7px;
}

.mission-runtime-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
}

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

.mission-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.mission-field > span,
.mission-field > legend,
.mission-money label > span {
  color: var(--graphite-800);
  font-size: 13px;
  font-weight: 750;
}

.mission-field > span small,
.mission-field > legend small {
  margin-left: 5px;
  color: var(--graphite-500);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mission-field-wide {
  grid-column: 1 / -1;
}

.mission-field input[type="text"],
.mission-field input[type="number"],
.mission-field textarea,
.mission-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bfc6c1;
  border-radius: 3px;
  padding: 10px 11px;
  color: var(--graphite-900);
  background: white;
  font: inherit;
}

.mission-field textarea {
  min-height: 104px;
  resize: vertical;
}

.mission-field input:focus,
.mission-field textarea:focus,
.mission-field select:focus {
  outline: 3px solid rgba(182, 145, 55, 0.23);
  border-color: #806622;
}

.mission-field input:disabled,
.mission-field textarea:disabled,
.mission-field select:disabled {
  color: #414844;
  background: #eff0ec;
  opacity: 1;
}

.mission-input-with-suffix {
  position: relative;
  display: block;
}

.mission-input-with-suffix .mission-input-suffix {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--graphite-600);
}

.mission-money > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
}

.mission-money label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mission-checklist > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mission-checklist label {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  background: white;
}

.mission-checklist input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--green-700);
}

.mission-repeater-items,
.mission-matrix-rows,
.mission-matrix-groups {
  display: grid;
  gap: 14px;
}

.mission-matrix-group {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #f6f5ef;
}

.mission-matrix-group > h3 {
  margin: 0 0 12px;
  font: 650 18px/1.3 Georgia, "Times New Roman", serif;
}

.mission-repeater-card,
.mission-matrix-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-600);
  background: white;
}

.mission-repeater-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lab-tool-workflow,
.lab-evidence {
  margin-top: 30px;
}

.lab-tool-workflow > h3,
.lab-evidence > h3 {
  margin: 0 0 12px;
  font: 650 20px/1.3 Georgia, "Times New Roman", serif;
}

.lab-tool-workflow {
  display: grid;
  gap: 12px;
}

.lab-tool-action {
  display: grid;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: white;
}

.lab-tool-action.is-returned {
  border-left-color: var(--green-700);
}

.lab-tool-action > header,
.lab-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lab-tool-action > header > div {
  display: grid;
  gap: 3px;
}

.lab-tool-action > header > div > span,
.lab-tool-action > small {
  color: var(--graphite-600);
  font-size: 12px;
}

.lab-tool-action > p {
  margin: 0;
  color: var(--graphite-700);
  font-size: 13px;
}

.lab-tool-action > .button-secondary {
  justify-self: start;
}

.lab-collection,
.lab-object {
  padding: 18px;
  border: 1px solid var(--line);
  background: #f6f5ef;
}

.lab-collection > legend,
.lab-object > legend {
  padding: 0 7px;
}

.lab-list-row + .lab-list-row,
.lab-repeater > article + article {
  margin-top: 10px;
}

.lab-list-row input {
  flex: 1 1 auto;
}

.lab-list-row .button-quiet {
  flex: 0 0 auto;
}

.lab-add-row {
  margin-top: 12px;
}

.mission-matrix-card h4 {
  margin: 0;
  font-size: 16px;
}

.mission-remove {
  border: 0;
  color: #7f302c;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.mission-add {
  margin-top: 12px;
}

.mission-notice,
.mission-validation {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: #f3ecd8;
}

.mission-notice.complete {
  border-left-color: var(--green-700);
  background: var(--green-100);
}

.mission-notice.error,
.mission-validation {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.mission-notice p,
.mission-validation ul {
  margin: 5px 0 0;
}

.mission-validation code {
  overflow-wrap: anywhere;
}

.mission-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.mission-actions p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--graphite-600);
  font-size: 13px;
}

.mission-actions p.error {
  color: var(--danger);
  font-weight: 700;
}

.mission-field-error {
  display: block;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.mission-derived {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--green-700);
  background: var(--green-100);
}

.mission-derived p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.quiz-form {
  margin-top: 26px;
}

.quiz-question {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.quiz-question legend {
  width: 100%;
  margin-bottom: 14px;
  font-weight: 750;
}

.quiz-option {
  position: relative;
  min-height: 50px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fbfbf8;
  cursor: pointer;
}

.quiz-option:hover {
  border-color: #9eaaa3;
}

.quiz-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green-700);
}

.quiz-result {
  margin-top: 30px;
  padding: 22px;
  border-left: 5px solid var(--green-700);
  background: var(--green-100);
}

.quiz-result.retry {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.quiz-result h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.feedback-item {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(17, 21, 19, 0.15);
}

.feedback-item p {
  margin: 4px 0;
}

.locked-panel {
  max-width: 680px;
  margin: clamp(48px, 7vw, 90px) auto;
  padding: clamp(28px, 5vw, 48px);
  border-top: 4px solid var(--gold);
  background: #f0eee6;
}

.locked-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.locked-actions .button,
.locked-actions .button-quiet {
  margin: 0;
}

@media (max-width: 560px) {
  .locked-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .locked-actions .button,
  .locked-actions .button-quiet {
    width: 100%;
    text-align: center;
  }
}

.locked-panel h1,
.locked-panel h2 {
  margin: 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 500;
}

.locked-panel p {
  color: var(--graphite-600);
}

.lesson-navigation {
  max-width: var(--reading);
  margin-top: 64px;
  padding-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
}

.lesson-navigation a,
.lesson-navigation button {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: white;
  cursor: pointer;
}

.lesson-navigation .next {
  align-items: flex-end;
  text-align: right;
}

.lesson-navigation small {
  color: var(--graphite-500);
}

.save-status {
  min-height: 20px;
  margin-top: 20px;
  color: var(--graphite-500);
  font-size: 12px;
}

.project-content {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(36px, 7vw, 92px);
}

.project-intro {
  position: sticky;
  top: 110px;
  align-self: start;
}

.project-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--graphite-800);
}

.project-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.project-step span {
  color: var(--green-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.project-step h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.project-step p {
  margin: 0;
  color: var(--graphite-600);
}

.tool-preview {
  width: min(760px, calc(100% - 40px));
  min-height: 55vh;
  margin: 0 auto;
  padding: 78px 0;
}

.tool-preview h1 {
  margin: 16px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 500;
}

.tool-contract {
  margin: 30px 0;
  padding: 20px;
  border-left: 4px solid var(--gold);
  background: #efede5;
}

.tool-contract code {
  overflow-wrap: anywhere;
}

.error-panel {
  width: min(720px, calc(100% - 40px));
  min-height: 55vh;
  margin: 0 auto;
  padding: 78px 0;
}

.drawer-backdrop {
  position: fixed;
  z-index: 39;
  inset: 0;
  background: rgba(17, 21, 19, 0.55);
  overscroll-behavior: contain;
  touch-action: none;
}

.drawer-backdrop[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .dashboard-hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  }

  .lesson-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .curriculum-module > button {
    padding-inline: 14px;
  }

  .curriculum-lessons a {
    padding-left: 20px;
  }
}

@media (max-width: 900px) {
  :root { --header-height: 66px; }

  .contents-button {
    display: inline-flex;
  }

  .dashboard-hero-inner,
  .project-band,
  .project-content {
    grid-template-columns: 1fr;
  }

  .progress-panel {
    padding: 28px 0 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .progress-numbers {
    justify-content: flex-start;
  }

  .module-index {
    grid-template-columns: 1fr;
  }

  .module-row:nth-child(odd) {
    margin-right: 0;
  }

  .lesson-layout {
    display: block;
  }

  .curriculum-sidebar {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    width: min(340px, calc(100vw - 44px));
    height: 100vh;
    height: 100dvh;
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: transform 180ms ease, visibility 0s linear 180ms;
    box-shadow: 16px 0 34px rgba(0, 0, 0, 0.24);
  }

  .curriculum-sidebar.mobile-only {
    display: block;
  }

  .curriculum-sidebar.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 180ms ease;
  }

  .drawer-close {
    display: inline-flex;
  }

  body.curriculum-drawer-open {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
  }

  .project-intro {
    position: static;
  }

  .project-band .lock-label {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 52px;
  }

  .preview-rail {
    align-items: flex-start;
  }

  .context-control > span,
  .context-badge,
  .brand-section {
    display: none;
  }

  .brand-name {
    font-size: 19px;
  }

  .demo-flow ol {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .academy-header {
    min-height: var(--header-height);
    padding-inline: 14px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .contents-button {
    min-height: 44px;
    padding: 5px 12px;
  }

  .dashboard-hero {
    padding-inline: 20px;
  }

  .academy-access-band {
    grid-template-columns: 1fr;
    margin: 44px 0;
    padding: 30px 22px;
  }

  .academy-access-band h2 {
    font-size: 38px;
  }

  .academy-offer {
    padding: 22px;
  }

  .dashboard-hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .dashboard-main {
    width: calc(100% - 36px);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .module-row {
    grid-template-columns: 38px minmax(0, 1fr);
    padding-right: 0;
  }

  .module-row > .status-stack {
    grid-column: 2;
    justify-self: start;
  }

  .status-stack {
    gap: 3px;
  }

  .lock-label-compact {
    min-height: 20px;
    padding: 1px 0;
    color: #735f2d;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .lock-label-compact::before {
    width: 6px;
    height: 6px;
    margin-right: 4px;
    border-width: 1px;
  }

  .lock-label-compact .lock-copy-long {
    display: none;
  }

  .lock-label-compact .lock-copy-short {
    display: inline;
  }

  .plain-list li,
  .resource-row {
    min-height: 52px;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
  }

  .plain-list li > .lock-label-compact,
  .resource-row > .lock-label-compact {
    flex: 0 0 auto;
    margin-top: 2px;
  }

  .learning-zones,
  .module-supplements {
    grid-template-columns: 1fr;
  }

  .learning-zone,
  .learning-zone.full,
  .supplement-block,
  .supplement-block.wide {
    grid-column: 1;
  }

  .page-heading,
  .project-heading {
    padding-inline: 20px;
  }

  .module-content,
  .project-content,
  .resource-content {
    width: calc(100% - 40px);
  }

  .lesson-list-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .lesson-list-item > .status-stack {
    grid-column: 2;
    justify-self: start;
  }

  .lesson-compact-header {
    padding-inline: 16px;
  }

  .compact-progress {
    min-width: 105px;
  }

  .compact-progress .progress-track {
    width: 105px;
  }

  .lesson-body {
    width: calc(100% - 32px);
  }

  .lesson-title h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .lesson-article {
    font-size: 17px;
    line-height: 1.72;
  }

  .lesson-visual {
    margin-top: 32px;
    padding: 10px;
    border-radius: 14px;
  }

  .component-progress,
  .mission-grid,
  .mission-checklist > div,
  .mission-money > div {
    grid-template-columns: 1fr;
  }

  .mission-runtime,
  .lab-runtime {
    padding: 22px 16px;
  }

  .mission-runtime-header {
    flex-direction: column;
    gap: 10px;
  }

  .mission-repeater-card,
  .mission-matrix-card {
    padding: 15px 12px;
  }

  .mission-repeater-card .mission-grid,
  .mission-matrix-card .mission-grid {
    grid-template-columns: 1fr;
  }

  .lab-tool-action > header,
  .lab-list-row {
    align-items: stretch;
    flex-direction: column;
  }

  .lab-list-row .button-quiet,
  .lab-tool-action > .button-secondary {
    width: 100%;
  }

  .mission-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mission-actions .button,
  .mission-actions .button-secondary {
    width: 100%;
  }

  .lesson-navigation {
    grid-template-columns: 1fr;
  }

  .lesson-navigation .next {
    align-items: flex-start;
    text-align: left;
  }

  .academy-footer {
    flex-direction: column;
  }
}

@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;
  }
}
