@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg: #0d0d0b;
  --surface: #0d0d0b;
  --surface-soft: #171713;
  --surface-accent: #d7ff2f;
  --text: #f3f0e8;
  --muted: #b6b0a1;
  --line: #2b2b24;
  --accent: #d7ff2f;
  --accent-strong: #ecff87;
  --interaction-fill: #ecff87;
  --interaction-fill-text: #0d0d0b;
  --shadow: none;
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 72px;
  --topbar-height: 92px;
  --topbar-offset-x: 40px;
  --topbar-top-gap: 14px;
  --header-glass-bg: rgb(25 23 25 / 0.88);
  --header-glass-border: rgb(255 255 255 / 0.08);
  --header-glass-blur: blur(20px) saturate(1.2);
  --header-glass-noise-opacity: 0.06;
  --header-glass-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --menu-enter-duration: 240ms;
  --menu-item-duration: 220ms;
  --menu-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  --bg: #f4f0e7;
  --surface: #f4f0e7;
  --surface-soft: #ebe4d8;
  --surface-accent: #a6a29a;
  --text: #2f2b25;
  --muted: #6a645a;
  --line: #c8bfaf;
  --accent: #8e887e;
  --accent-strong: #787267;
  --interaction-fill: #d7ff2f;
  --interaction-fill-text: #0d0d0b;
  --light-primary-bg: #1f1d19;
  --light-primary-text: #f7f4ee;
  --header-glass-bg: rgb(255 255 255 / 0.52);
  --header-glass-border: rgb(255 255 255 / 0.55);
  --header-glass-blur: blur(20px) saturate(1.45);
  --header-glass-noise-opacity: 0.09;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: calc(var(--topbar-height) + var(--topbar-top-gap) + env(safe-area-inset-top, 0px) + 18px);
}

a { color: inherit; text-decoration: none; }

main p a,
main li a,
main .section-copy a,
main .hero-copy a,
main .level-status a,
main .survey-copy a,
main .survey-status a,
main .muted a {
  display: inline-block;
  padding: 0 6px;
  background: var(--accent);
  color: #0d0d0b;
}

main p a:hover,
main p a:focus-visible,
main li a:hover,
main li a:focus-visible,
main .section-copy a:hover,
main .section-copy a:focus-visible,
main .hero-copy a:hover,
main .hero-copy a:focus-visible,
main .level-status a:hover,
main .level-status a:focus-visible,
main .survey-copy a:hover,
main .survey-copy a:focus-visible,
main .survey-status a:hover,
main .survey-status a:focus-visible,
main .muted a:hover,
main .muted a:focus-visible {
  background: var(--accent-strong);
  color: #0d0d0b;
  outline: none;
}

:root[data-theme="light"] main p a,
:root[data-theme="light"] main li a,
:root[data-theme="light"] main .section-copy a,
:root[data-theme="light"] main .hero-copy a,
:root[data-theme="light"] main .level-status a,
:root[data-theme="light"] main .survey-copy a,
:root[data-theme="light"] main .survey-status a,
:root[data-theme="light"] main .muted a {
  background: #11100d;
  color: #f7f4ee;
}

:root[data-theme="light"] main p a:hover,
:root[data-theme="light"] main p a:focus-visible,
:root[data-theme="light"] main li a:hover,
:root[data-theme="light"] main li a:focus-visible,
:root[data-theme="light"] main .section-copy a:hover,
:root[data-theme="light"] main .section-copy a:focus-visible,
:root[data-theme="light"] main .hero-copy a:hover,
:root[data-theme="light"] main .hero-copy a:focus-visible,
:root[data-theme="light"] main .level-status a:hover,
:root[data-theme="light"] main .level-status a:focus-visible,
:root[data-theme="light"] main .survey-copy a:hover,
:root[data-theme="light"] main .survey-copy a:focus-visible,
:root[data-theme="light"] main .survey-status a:hover,
:root[data-theme="light"] main .survey-status a:focus-visible,
:root[data-theme="light"] main .muted a:hover,
:root[data-theme="light"] main .muted a:focus-visible {
  background: #000;
  color: #fff;
}
p, li { max-width: 72ch; }
img { max-width: 100%; height: auto; }

main,
section,
article,
aside,
.hero-copy-block,
.section-heading,
.list-body,
.list-side,
.chapter-main,
.lesson-card,
.quiz-question {
  min-width: 0;
}

.page-shell {
  width: min(1400px, 100%);
  margin: 0;
  padding: 0 20px 80px;
}

.topbar {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--topbar-top-gap));
  left: max(env(safe-area-inset-left, 0px), var(--topbar-offset-x));
  right: max(env(safe-area-inset-right, 0px), var(--topbar-offset-x));
  z-index: 80;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  min-height: var(--topbar-height);
  padding: 18px 22px;
  border: 1px solid var(--header-glass-border);
  border-radius: 24px;
  background: var(--header-glass-bg);
  -webkit-backdrop-filter: var(--header-glass-blur);
  backdrop-filter: var(--header-glass-blur);
  isolation: isolate;
  transition: background .35s ease, border-color .35s ease;
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--header-glass-noise-opacity);
  mix-blend-mode: overlay;
  background-image: var(--header-glass-noise);
  background-repeat: repeat;
  background-size: 128px 128px;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topbar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  :root[data-theme="light"] .topbar {
    background: rgb(255 255 255 / 0.94);
  }

  :root:not([data-theme="light"]) .topbar {
    background: #191719;
  }
}

.brand,
.lesson-label,
.eyebrow,
.button,
.topbar nav,
.text-link,
.survey-legend,
.survey-label,
.manifesto-kicker,
.list-index,
.list-meta,
.tag {
  font-family: 'Space Grotesk', Arial, sans-serif;
}

.brand {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
}

:root[data-theme="light"] .brand-logo {
  opacity: 0.8;
}

.brand-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 30ch;
}

.brand-block {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: center;
  justify-content: flex-start;
  gap: 14px;
  transform: translateY(2px);
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  padding: 0;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--accent);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: currentColor;
  border-radius: 999px;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.site-nav a:hover {
  color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-family: 'Space Grotesk', Arial, sans-serif;
  letter-spacing: 0.06em;
  text-align: left;
}

.theme-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.theme-toggle-title,
.theme-toggle-option {
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.theme-toggle-status {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.theme-toggle-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: 128px;
  min-width: 128px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.theme-toggle-option {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  color: var(--muted);
  transition: color 160ms ease;
}

.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--accent);
  transition: transform 180ms ease;
}

.theme-toggle[data-theme='light'] .theme-toggle-thumb {
  transform: translateX(100%);
}

.theme-toggle[data-theme='dark'] .theme-toggle-option:first-child,
.theme-toggle[data-theme='light'] .theme-toggle-option:last-of-type {
  color: var(--bg);
}

.theme-toggle:hover .theme-toggle-status,
.theme-toggle:focus-visible .theme-toggle-status,
.text-link:hover,
.brand:hover {
  color: var(--accent);
  outline: none;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.subscribe-hero {
  align-items: start;
}

.subscribe-copy-block {
  gap: var(--space-3);
}

.subscribe-bullets {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.subscribe-panel {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  border-left: 0;
  padding-left: 0;
}

.subscribe-panel-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.subscribe-panel-copy {
  margin: 0;
  color: var(--muted);
}

.subscribe-form {
  display: grid;
  gap: var(--space-3);
}

.subscribe-field {
  display: grid;
  gap: 8px;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subscribe-field input {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
}

.subscribe-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.subscribe-optional {
  color: var(--muted);
  font-size: 0.72rem;
}

.subscribe-submit {
  justify-content: center;
}

.subscribe-submit[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.subscribe-status {
  margin: 0;
  min-height: 1.6em;
  color: var(--muted);
}

.subscribe-status[data-tone='success'] {
  color: var(--accent);
}

.subscribe-status[data-tone='error'] {
  color: #ff8f7a;
}

.subscribe-status[data-tone='pending'] {
  color: var(--text);
}

@media (max-width: 980px) {
  .subscribe-hero {
    gap: var(--space-4);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: var(--space-5);
  align-items: end;
  padding: 34px 0 18px;
}

.hero--editorial {
  min-height: min(78vh, 860px);
}

.hero--compact {
  min-height: auto;
}

.hero h1,
.chapter-page-title {
  margin: 0;
  font-size: clamp(3.8rem, 9vw, 8.8rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.06em;
  max-width: 10ch;
}

.chapter-page-title {
  max-width: 12ch;
}

.hero-copy,
.section-copy,
.chapter-summary,
.survey-copy,
.survey-status,
.muted,
.brand-note {
  color: var(--muted);
}

.section-copy {
  font-family: 'Space Grotesk', Arial, sans-serif;
}

.section-copy--display {
  grid-column: 1 / -1;
  margin: -20px 0 0;
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(3.8rem, 9vw, 8.8rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.06em;
  max-width: 10ch;
}

.hero-copy {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-top: 20px;
  max-width: 38ch;
}

.hero-inline-image {
  display: block;
  width: min(100%, 720px);
  margin-top: 26px;
  border: 1px solid color-mix(in srgb, var(--line) 20%, transparent);
}

.hero-panel,
.chapter-sidebar,
.lesson-carousel-shell,
.recap-card,
.checkpoint-card,
.sources-card,
.next-step-card,
.survey-card,
.tip-box,
.lesson-block--example,
.lesson-remember {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding-left: 18px;
}

.hero-panel.subscribe-panel {
  border-left: 0;
  padding-left: 0;
}

.hero-panel--manifesto {
  align-self: start;
  margin-top: 36px;
}

.manifesto-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.manifesto-line {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.1;
  max-width: 18ch;
}

.manifesto-line--accent {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.level-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.assessment-list {
  display: grid;
  gap: 0;
}

.assessment-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-top: 0;
}

.assessment-row:last-child {
  border-bottom: 0;
}

.assessment-index {
  color: var(--accent);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
}

.assessment-body h3 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.assessment-options,
.assessment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.assessment-actions {
  margin-top: 18px;
}

.assessment-option {
  min-width: 96px;
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid var(--line);
  background:
    linear-gradient(135deg, var(--interaction-fill) 0 46%, transparent 58%) left top / 0% 100% no-repeat,
    transparent;
  color: var(--text);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background-size 220ms ease, border-color 180ms ease, color 180ms ease;
}

.assessment-option--active,
.assessment-option:hover,
.assessment-option:focus-visible {
  border-color: var(--accent);
  color: var(--interaction-fill-text);
  background-size: 220% 100%, auto;
  outline: none;
}

.level-option {
  display: grid;
  gap: 8px;
  text-align: left;
  min-height: 120px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  background:
    linear-gradient(135deg, var(--interaction-fill) 0 46%, transparent 58%) left top / 0% 100% no-repeat,
    transparent;
  color: var(--text);
  border-radius: 0;
  transition: background-size 240ms ease, border-color 180ms ease, color 180ms ease;
}

.level-option:hover,
.level-option:focus-visible {
  border-color: var(--accent);
  background-size: 220% 100%, auto;
  outline: none;
}

.level-option--active {
  border-color: var(--accent);
  background-size: 220% 100%, auto;
  color: var(--interaction-fill-text);
}

.level-option-label {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  transition: color 180ms ease;
}

.level-option-description {
  color: var(--muted);
  margin: 0;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.35;
  transition: color 180ms ease;
}

.level-option:hover .level-option-label,
.level-option:focus-visible .level-option-label,
.level-option--active .level-option-label,
.level-option:hover .level-option-description,
.level-option:focus-visible .level-option-description,
.level-option--active .level-option-description {
  color: var(--interaction-fill-text);
}

.level-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gateway-card {
  display: grid;
  gap: 8px;
  min-height: 220px;
  padding: 18px;
  border: 2px solid var(--line);
  color: var(--text);
}

.gateway-card--static {
  cursor: default;
}

.gateway-card h3 {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.gateway-card .eyebrow {
  font-family: 'Space Grotesk', Arial, sans-serif;
}

.gateway-card p {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
}

.gateway-card:hover,
.gateway-card:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.gateway-card--static:hover,
.gateway-card--static:focus-visible {
  border-color: var(--line);
}

.gateway-grid--four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.job-risk-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.job-risk-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 18px;
  border: 2px solid var(--line);
}

.job-risk-kicker {
  margin: 0;
  color: var(--accent);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-risk-card h3 {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.job-risk-label {
  margin: 0;
  color: var(--muted);
  font-family: 'Space Grotesk', Arial, sans-serif;
}

.job-risk-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.job-risk-list li + li {
  margin-top: 10px;
}

.job-risk-note-block {
  margin-top: 18px;
  border-left: 3px solid var(--line);
  padding-left: 18px;
}

.job-risk-disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.helpful-link-card {
  gap: 14px;
}

.helpful-link-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border: 2px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--accent);
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  transition: background-size 220ms ease, border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.button.primary {
  background:
    linear-gradient(135deg, var(--interaction-fill) 0 46%, transparent 58%) left top / 0% 100% no-repeat,
    var(--accent);
  color: #0d0d0b;
}
.button.primary:hover,
.button.primary:focus-visible {
  background-size: 220% 100%, auto;
  background-color: var(--accent-strong);
  border-color: var(--accent-strong);
}
.button.secondary {
  background:
    linear-gradient(135deg, var(--interaction-fill) 0 46%, transparent 58%) left top / 0% 100% no-repeat,
    transparent;
  color: var(--accent);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background-size: 220% 100%, auto;
  color: var(--interaction-fill-text);
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
}

.section-block { padding-top: 42px; }
.is-hidden { display: none !important; }
.section-block--tight { padding-top: 18px; }
.section-block--news-lead { padding-top: 22px; }
.section-block--editorial { border-top: 2px solid color-mix(in srgb, var(--line) 12%, transparent); }
.section-block--no-top-rule { border-top: 0; }

body:has(.hero-copy-block #hero-title) .topbar {
  border-color: color-mix(in srgb, var(--header-glass-border) 100%, rgb(255 255 255 / 0.1) 0%);
}

body:has(.hero-copy-block #hero-title) .section-block--editorial {
  border-top-color: color-mix(in srgb, var(--line) 45%, var(--text) 55%);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: var(--space-4);
  align-items: end;
  margin-bottom: 22px;
}
.section-heading--stack-mobile {
  align-items: start;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.section-title-small {
  font-size: clamp(1.2rem, 2vw, 1.7rem) !important;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.news-community-pulse {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.news-comment-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.news-comment-list li + li {
  margin-top: 12px;
}

.news-comment-meta {
  color: var(--muted);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 0.92rem;
}

.editorial-list {
  display: grid;
  gap: 0;
}

.list-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.5fr) minmax(180px, 0.7fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 12%, transparent);
  align-items: start;
}

.list-row:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 12%, transparent);
}

.list-row--step {
  grid-template-columns: 96px minmax(0, 1.5fr) 120px;
}

.list-row--chapter {
  grid-template-columns: 96px minmax(0, 1.5fr) 140px 120px;
}

.list-index,
.list-meta {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
}

.list-meta-secondary {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.list-body h3,
.lesson-card h3,
.recap-card h3,
.checkpoint-card h3,
.sources-card h3,
.next-step-card h3,
.survey-card h3 {
  margin: 0 0 12px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-block--news-lead .list-body h3 {
  line-height: 1.2;
}

.list-body p,
.list-side p {
  margin: 0 0 8px;
}

.list-side {
  color: var(--muted);
}

.list-link {
  justify-self: end;
  align-self: center;
}

.list-row--active .list-body h3,
.list-row--active .list-link {
  color: var(--accent);
}

.tag {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 0;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

.news-controls,
.news-more-wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.news-more-wrap {
  justify-content: flex-start;
  margin-top: 18px;
}

.news-week-heading {
  margin-bottom: 8px;
}

.news-sources ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.news-sources li {
  margin-bottom: 6px;
}

.sources-list {
  margin: 0;
  padding-left: 1.2rem;
}

.sources-list li + li {
  margin-top: 0.5rem;
}

.chapter-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
}

.chapter-sidebar {
  height: fit-content;
  position: sticky;
  top: 24px;
}

.chapter-main {
  display: grid;
  gap: 26px;
}

.goal-list,
#recap-list {
  padding-left: 18px;
  margin: 0;
}

.goal-list li,
#recap-list li {
  margin-bottom: 10px;
}

.tip-box--editorial {
  margin-top: 24px;
}

.lesson-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.lesson-toolbar h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lesson-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lesson-nav-button {
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 0;
  width: 46px;
  height: 46px;
  font-size: 1rem;
  font-weight: 700;
}
.lesson-nav-button:disabled {
  opacity: 0.3;
  border-color: var(--line);
  color: var(--line);
}

.lesson-position {
  min-width: 62px;
  text-align: center;
  color: var(--muted);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 700;
}

.lesson-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.lesson-slide {
  min-width: 0;
}

.lesson-card {
  padding-bottom: 10px;
}

.lesson-block {
  margin-bottom: 18px;
}

.lesson-block--example,
.lesson-remember {
  margin-top: 18px;
}

.lesson-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.survey-form {
  display: grid;
  gap: 14px;
}

.quiz-form {
  display: grid;
  gap: 16px;
}

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

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-option {
  width: 100%;
  text-align: left;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
}

.quiz-option:hover,
.quiz-option:focus-visible,
.quiz-option--active {
  border-color: var(--accent);
  outline: none;
}

.quiz-explanation {
  margin: 10px 0 0;
  color: var(--muted);
}

.quiz-explanation--correct {
  color: var(--accent);
}

.quiz-explanation--wrong {
  color: #ff9d7a;
}

.quiz-explanation--empty {
  color: var(--muted);
}

.survey-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.survey-legend,
.survey-label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.survey-rating {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.rating-pill {
  min-height: 72px;
  padding: 12px 8px;
  border-radius: 0;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

.rating-pill-number {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.rating-pill-text {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 0.68rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rating-pill--active {
  background: var(--accent);
  color: #0d0d0b;
  border-color: var(--accent);
}

.survey-textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;
  font: inherit;
  resize: vertical;
  background: transparent;
  color: var(--text);
}

.survey-textarea::placeholder {
  color: #8f897b;
}

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

.survey-button {
  min-width: 170px;
}

.survey-skip {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 700;
  min-height: 44px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.survey-status {
  min-height: 24px;
  margin: 0;
}

@media (max-width: 980px) {
  :root {
    --topbar-height: 84px;
    --topbar-offset-x: 28px;
    --topbar-top-gap: 12px;
  }

  .page-shell {
    padding: 0 14px 56px;
  }

  .topbar {
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--header-glass-border);
    border-radius: 20px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    isolation: isolate;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top center;
    transition:
      opacity var(--menu-enter-duration) var(--menu-ease),
      transform var(--menu-enter-duration) var(--menu-ease),
      visibility 0s linear var(--menu-enter-duration);
  }

  .site-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: calc(var(--header-glass-noise-opacity) * 0.78);
    mix-blend-mode: overlay;
    background-image: var(--header-glass-noise);
    background-repeat: repeat;
    background-size: 128px 128px;
  }

  .site-nav > * {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity var(--menu-item-duration) var(--menu-ease),
      transform var(--menu-item-duration) var(--menu-ease);
  }

  .site-nav > *:nth-child(1) { transition-delay: 0ms; }
  .site-nav > *:nth-child(2) { transition-delay: 24ms; }
  .site-nav > *:nth-child(3) { transition-delay: 48ms; }
  .site-nav > *:nth-child(4) { transition-delay: 72ms; }
  .site-nav > *:nth-child(5) { transition-delay: 96ms; }
  .site-nav > *:nth-child(6) { transition-delay: 120ms; }
  .site-nav > *:nth-child(7) { transition-delay: 144ms; }

  :root[data-theme="light"] .site-nav {
    background: #fff;
  }

  :root:not([data-theme="light"]) .site-nav {
    background: #191719;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
      opacity var(--menu-enter-duration) var(--menu-ease),
      transform var(--menu-enter-duration) var(--menu-ease),
      visibility 0s linear 0s;
  }

  body.nav-open .site-nav > * {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a,
  .theme-toggle {
    min-height: 44px;
    width: 100%;
  }

  .site-nav a {
    transition: color 160ms ease, transform 160ms ease;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    transform: translateX(4px);
  }

  .nav-toggle span {
    transform-origin: center;
    transition:
      transform 180ms var(--menu-ease),
      opacity 140ms ease,
      background-color 160ms ease;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.4);
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .theme-toggle {
    justify-content: space-between;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }

  .theme-toggle-track {
    width: 120px;
    min-width: 120px;
  }

  .hero,
  .section-heading,
  .chapter-layout,
  .list-row,
  .list-row--step,
  .list-row--chapter,
  .list-row--news,
  .assessment-row {
    grid-template-columns: 1fr;
  }

  .hero-panel--manifesto,
  .chapter-sidebar,
  .lesson-carousel-shell,
  .recap-card,
  .checkpoint-card,
  .next-step-card,
  .survey-card,
  .tip-box,
  .lesson-block--example,
  .lesson-remember {
    padding-left: 14px;
  }

  .list-link {
    justify-self: start;
  }

  .list-side {
    margin-top: 4px;
  }

  .chapter-sidebar {
    position: static;
  }

  .level-options,
  .gateway-grid,
  .gateway-grid--four-up,
  .job-risk-result-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .site-nav > *,
  .site-nav a,
  .nav-toggle span {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0 12px 48px;
  }

  .hero {
    min-height: auto;
    gap: 22px;
    padding-top: 24px;
  }

  .hero h1,
  .chapter-page-title,
  .section-copy--display {
    font-size: clamp(2.5rem, 14vw, 4rem);
    max-width: 100%;
  }

  .hero-copy,
  .section-copy,
  .chapter-summary {
    font-size: 1rem;
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 18px;
  }

  .section-heading h2,
  .lesson-toolbar h2,
  .list-body h3,
  .lesson-card h3,
  .recap-card h3,
  .checkpoint-card h3,
  .next-step-card h3,
  .survey-card h3 {
    max-width: 100%;
  }

  .hero-actions,
  .survey-actions,
  .assessment-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .survey-button,
  .survey-skip {
    width: 100%;
    justify-content: center;
  }

  .assessment-option,
  .level-option,
  .gateway-card,
  .job-risk-card,
  .quiz-option {
    min-width: 0;
  }

  .assessment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .level-option,
  .gateway-card,
  .job-risk-card {
    min-height: auto;
  }

  .list-row {
    gap: 10px;
    padding: 16px 0;
  }

  .lesson-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .lesson-controls {
    justify-content: space-between;
    width: 100%;
  }

  .lesson-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .lesson-track::-webkit-scrollbar { display: none; }

  .lesson-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .survey-rating {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rating-pill {
    min-height: 58px;
    padding: 12px 10px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
  }

  .rating-pill-text {
    font-size: 0.72rem;
    text-align: left;
  }
}

@media (max-width: 420px) {
  :root {
    --topbar-height: 78px;
    --topbar-top-gap: 10px;
  }

  .topbar {
    align-items: center;
    padding: 14px 16px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .hero h1,
  .chapter-page-title,
  .section-copy--display {
    font-size: clamp(2.2rem, 13vw, 3.2rem);
  }

  .assessment-options {
    grid-template-columns: 1fr;
  }

  .lesson-nav-button {
    width: 42px;
    height: 42px;
  }
}


.gateway-grid--two {
  grid-template-columns: minmax(0, 1fr);
}

.export-shell {
  width: min(1100px, 100%);
}

.export-root {
  display: grid;
  gap: 32px;
  padding-top: 24px;
}

.export-chapter {
  border-top: 2px solid var(--line);
  padding-top: 24px;
  break-inside: avoid;
}

.export-section {
  margin-top: 20px;
}

.export-section h3,
.export-lesson h4 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.export-lesson {
  margin-top: 16px;
}

.export-page .hero {
  min-height: auto;
}

.no-print {
  display: flex;
}

@media print {
  body {
    background: #fff;
    color: #111;
    overflow: visible;
  }

  .no-print {
    display: none !important;
  }

  .page-shell,
  .export-shell {
    width: 100%;
    padding: 0;
  }

  .hero-panel--manifesto,
  .chapter-sidebar,
  .lesson-carousel-shell,
  .recap-card,
  .checkpoint-card,
  .next-step-card,
  .survey-card,
  .tip-box,
  .lesson-block--example,
  .lesson-remember {
    border-left: 0;
    padding-left: 0;
  }

  .eyebrow,
  .tag,
  .text-link,
  .brand {
    color: #111 !important;
  }

  a {
    text-decoration: none;
  }
}


.release-list {
  display: grid;
  gap: 0;
}

.release-row {
  background: rgba(215, 255, 47, 0.03);
  padding-left: 18px;
  padding-right: 18px;
}

@media (max-width: 640px) {
  .release-row {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.special-track-grid {
  margin-top: 6px;
}

:root[data-theme="light"] .button.primary {
  background: var(--light-primary-bg);
  color: var(--light-primary-text);
  border-color: var(--light-primary-bg);
}

:root[data-theme="light"] .button.primary:hover,
:root[data-theme="light"] .button.primary:focus-visible {
  background: #11100d;
  border-color: #11100d;
  color: var(--light-primary-text);
}

:root[data-theme="light"] .level-option--active {
  border-color: var(--light-primary-bg);
  background: var(--light-primary-bg);
  color: var(--light-primary-text);
}

:root[data-theme="light"] .level-option--active .level-option-label,
:root[data-theme="light"] .level-option--active .level-option-description {
  color: var(--light-primary-text);
}

.subscribe-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
