:root {
  color-scheme: light;
  --ink: #3c4043;
  --ink-strong: #202124;
  --ink-soft: #5f6368;
  --paper: #f8f9fa;
  --surface: #ffffff;
  --surface-muted: #f1f3f4;
  --forest: #1a73e8;
  --forest-2: #1558b0;
  --mint: #aecbfa;
  --mint-pale: #e8f0fe;
  --acid: #8ab4f8;
  --green: #1e8e3e;
  --green-l: #e6f4ea;
  --amber: #f9ab00;
  --rose: #d93025;
  --line: #dadce0;
  --line-dark: rgba(255, 255, 255, .16);
  --shadow: 0 1px 3px rgba(32, 33, 36, .12), 0 20px 50px rgba(32, 33, 36, .12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --sidebar: 244px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Roboto', Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #7fb7ff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-strong);
  box-shadow: var(--shadow);
  transform: translateY(-160%);
}

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

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 26px 18px 20px;
  background: var(--ink-strong);
  color: #fff;
}

.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand {
  margin: 0 10px 38px;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.brand-mark span {
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  transform: translate(-1px, -6px);
}

.primary-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 11px;
  color: #9aa0a6;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.nav-item:hover,
.nav-item.is-active {
  background: rgba(255, 255, 255, .10);
  color: #fff;
}

.nav-item.is-active {
  box-shadow: inset 3px 0 var(--acid);
}

.nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  font-size: 18px;
}

.sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: auto 8px 18px;
  padding: 14px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.sidebar-note strong,
.sidebar-note span,
.profile-card strong,
.profile-card span {
  display: block;
}

.sidebar-note strong,
.profile-card strong {
  font-size: 12px;
}

.sidebar-note span,
.profile-card span {
  margin-top: 2px;
  color: #9aa0a6;
  font-size: 11px;
}

.status-dot,
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(138, 180, 248, .2);
}

.status-dot {
  margin-top: 5px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 8px 0;
  border-top: 1px solid var(--line-dark);
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.workspace {
  min-width: 0;
  margin-left: var(--sidebar);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 249, 250, .92);
  backdrop-filter: blur(12px);
}

.mobile-brand {
  display: none;
}

.topbar-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.section-wrap {
  width: min(calc(100% - 80px), var(--content));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  min-height: 530px;
  padding-block: 70px;
}

.eyebrow,
.kicker,
.path-label {
  margin: 0 0 13px;
  color: var(--forest-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink-strong);
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: clamp(48px, 6.3vw, 88px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: .98;
}

.hero h1 em {
  color: var(--forest-2);
  font-weight: 400;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 12px 26px rgba(26, 115, 232, .28);
}

.button-dark {
  background: var(--ink-strong);
  color: #fff;
}

.button-ghost {
  border-color: var(--line);
  background: var(--surface);
}

.button-small {
  min-height: 44px;
  padding: 9px 16px;
  font-size: 12px;
}

.text-link,
.card-link {
  color: var(--forest-2);
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 27px;
  border: 1px solid rgba(26, 115, 232, .14);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel::after {
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.hero-panel-head,
.resume-topline,
.resume-footer,
.module-meta-row,
.lesson-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-panel .kicker {
  margin: 0;
}

.evidence-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
}

.evidence-limited,
.evidence-mixed {
  background: #fef7e0;
  color: #7a5900;
}

.evidence-high {
  background: var(--green-l);
  color: var(--green);
}

.evidence-open {
  background: var(--surface-muted);
  color: var(--ink-soft);
}

.molecule {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  margin: 32px auto 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.molecule::before,
.molecule::after {
  position: absolute;
  width: 105%;
  height: 44%;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  transform: rotate(55deg);
}

.molecule::after {
  transform: rotate(-55deg);
}

.molecule-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 61px;
  height: 61px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 23px;
}

.orb {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 12px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--acid);
}

.orb-a { top: 9px; left: 69px; }
.orb-b { right: 3px; bottom: 44px; }
.orb-c { bottom: 20px; left: 19px; }

.hero-panel h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--ink-strong);
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.hero-panel > p {
  position: relative;
  z-index: 2;
  margin: 9px 0 21px;
  color: var(--ink-soft);
}

.panel-meta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.panel-meta span + span::before {
  margin-right: 18px;
  color: #9aa0a6;
  content: "·";
}

.safety-strip {
  border-block: 1px solid #c6dafc;
  background: var(--mint-pale);
}

.safety-inner {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.safety-inner p {
  margin: 0;
}

.safety-inner a {
  margin-left: auto;
  font-weight: 750;
  white-space: nowrap;
  text-underline-offset: 3px;
}

.safety-symbol {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border: 1px solid var(--forest-2);
  border-radius: 50%;
  font-family: 'Google Sans', Roboto, sans-serif;
  font-weight: 700;
}

.continue-section,
.pathways,
.principles {
  padding-block: 94px;
}

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

.section-heading h2,
.evidence-intro h2 {
  margin: 0;
  color: var(--ink-strong);
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.07;
}

.section-aside {
  max-width: 330px;
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 13px;
}

.resume-card {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(210px, .36fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(32, 33, 36, .1);
}

.resume-visual {
  position: relative;
  display: grid;
  min-height: 350px;
  place-items: center;
  background: var(--mint-pale);
}

.resume-visual::before,
.resume-visual::after {
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(26, 115, 232, .2);
  border-radius: 50%;
  content: "";
}

.resume-visual::after {
  width: 240px;
  height: 90px;
  transform: rotate(-36deg);
}

.module-number,
.resume-formula {
  position: absolute;
  z-index: 2;
  color: var(--forest-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
}

.module-number { top: 26px; left: 26px; }
.resume-formula { right: 22px; bottom: 22px; }

.resume-glyph {
  position: relative;
  z-index: 2;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 34px;
  font-weight: 700;
}

.resume-content {
  padding: clamp(28px, 4vw, 50px);
}

.resume-topline .path-label {
  margin: 0;
}

.resume-content h3 {
  max-width: 760px;
  margin: 18px 0 12px;
  color: var(--ink-strong);
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.resume-content > p {
  max-width: 730px;
  margin: 0;
  color: var(--ink-soft);
}

.competency-list {
  display: grid;
  gap: 7px;
  margin: 23px 0 30px;
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  list-style: none;
}

.competency-list li::before {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-l);
  color: var(--green);
  content: "✓";
  font-size: 10px;
  font-weight: 900;
}

.resume-footer {
  align-items: end;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.progress-copy {
  min-width: 190px;
  color: var(--ink-soft);
  font-size: 11px;
}

.progress-copy strong {
  color: var(--ink-strong);
}

.progress-track {
  overflow: hidden;
  width: 100%;
  height: 7px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--line);
}

.progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--forest-2);
  transition: width .35s ease;
}

.pathways {
  border-top: 1px solid var(--line);
}

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

.path-card {
  position: relative;
  display: flex;
  min-height: 345px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.path-card-featured {
  background: var(--forest);
  color: #fff;
}

.path-index {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #80868b;
  font-size: 11px;
  font-weight: 800;
}

.path-card-featured .path-index {
  color: rgba(255, 255, 255, .65);
}

.path-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 50px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--forest-2);
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.path-card-featured .path-icon {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, .08);
  color: var(--acid);
}

.path-card .kicker {
  margin-bottom: 9px;
}

.path-card-featured .kicker {
  color: var(--acid);
}

.path-card h3 {
  margin: 0;
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
}

.path-card p:not(.kicker) {
  margin: 12px 0 25px;
  color: var(--ink-soft);
  font-size: 13px;
}

.path-card-featured p:not(.kicker) {
  color: rgba(255, 255, 255, .75);
}

.card-link,
.card-status {
  margin-top: auto;
}

.path-card-featured .card-link {
  color: #fff;
}

.card-status {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.is-planned {
  background-image: linear-gradient(135deg, transparent 0 92%, var(--mint-pale) 92%);
}

.evidence-section {
  padding-block: 96px;
  background: var(--ink-strong);
  color: #fff;
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.evidence-intro .eyebrow {
  color: var(--acid);
}

.evidence-intro h2 {
  color: #fff;
}

.evidence-intro > p:not(.eyebrow) {
  max-width: 540px;
  margin: 24px 0;
  color: #bdc1c6;
}

.text-link-light {
  color: #fff;
}

.evidence-scale {
  display: grid;
  gap: 2px;
}

.evidence-scale article {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .035);
}

.evidence-scale article:first-child { border-radius: 16px 16px 0 0; }
.evidence-scale article:last-child { border-radius: 0 0 16px 16px; }

.scale-mark {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
}

.scale-high { background: var(--acid); }
.scale-mixed { background: var(--amber); }
.scale-open { background: #a5abb6; }
.scale-no { background: var(--rose); }

.evidence-scale strong {
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.evidence-scale p {
  margin: 4px 0 0;
  color: #9aa0a6;
  font-size: 12px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.principle-grid li {
  min-height: 220px;
  padding: 25px 25px 30px;
  border-right: 1px solid var(--line);
}

.principle-grid li:last-child {
  border-right: 0;
}

.principle-grid span {
  display: block;
  margin-bottom: 55px;
  color: var(--forest-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

.principle-grid strong {
  display: block;
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.principle-grid p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 34px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 48px));
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ink-strong);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Module */
.module-workspace {
  background: var(--paper);
}

.module-page {
  padding-bottom: 100px;
}

.module-hero {
  padding-block: 58px 46px;
}

.breadcrumb {
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: 12px;
}

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

.module-title-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.module-title-grid > *,
.module-layout > * {
  min-width: 0;
}

.module-title-grid h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ink-strong);
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
}

.module-deck {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.module-progress-ring {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--forest-2) var(--progress-angle, 0deg), #dadce0 0);
}

.module-progress-ring::before {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.module-progress-ring span {
  position: relative;
  z-index: 1;
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 850;
}

.module-meta-row {
  margin-top: 34px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}

.module-tags,
.module-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.module-facts {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.module-facts span + span::before {
  margin-right: 9px;
  content: "·";
}

.module-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px) minmax(190px, 1fr);
  gap: clamp(30px, 4vw, 58px);
  align-items: start;
}

.step-nav,
.source-aside {
  position: sticky;
  top: 24px;
}

.step-nav {
  display: grid;
  gap: 8px;
}

.step-nav-title,
.source-aside-title {
  margin: 0 0 13px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.step-button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 7px 10px;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.step-button:hover,
.step-button.is-active {
  background: var(--surface);
  color: var(--ink-strong);
}

.step-button.is-complete .step-number {
  background: var(--forest-2);
  color: #fff;
}

.step-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 10px;
}

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

.lesson-card {
  margin-bottom: 24px;
  padding: clamp(26px, 4vw, 45px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 24px;
}

.lesson-card h2 {
  margin: 0 0 17px;
  color: var(--ink-strong);
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.lesson-card h3 {
  margin: 30px 0 10px;
  color: var(--ink-strong);
  font-size: 16px;
}

.lesson-card > p,
.lesson-card li {
  color: var(--ink);
}

.lesson-card a {
  color: var(--forest-2);
  font-weight: 700;
  text-underline-offset: 3px;
}

.lesson-label {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--forest-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.case-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #c6dafc;
  border-radius: 14px;
  background: var(--mint-pale);
}

.case-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-family: 'Google Sans', Roboto, sans-serif;
  font-weight: 700;
}

.case-banner strong,
.case-banner span {
  display: block;
}

.case-banner span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.clinical-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.clinical-grid div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.clinical-grid dt {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.clinical-grid dd {
  margin: 4px 0 0;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 700;
}

.callout {
  margin: 24px 0;
  padding: 18px 19px;
  border-left: 4px solid var(--forest-2);
  border-radius: 4px 12px 12px 4px;
  background: var(--mint-pale);
}

.callout-warning {
  border-left-color: var(--amber);
  background: #fef7e0;
}

.callout-critical {
  border-left-color: var(--rose);
  background: #fce8e6;
}

.callout strong {
  color: var(--ink-strong);
}

.callout p {
  margin: 5px 0 0;
  font-size: 13px;
}

.evidence-table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.evidence-table th,
.evidence-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.evidence-table th {
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.evidence-table td:first-child {
  width: 30%;
  color: var(--ink-strong);
  font-weight: 700;
}

.decision-list {
  display: grid;
  gap: 12px;
  margin: 23px 0;
  padding: 0;
  list-style: none;
}

.decision-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 13px;
  align-items: start;
}

.decision-list span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint-pale);
  color: var(--forest-2);
  font-size: 11px;
  font-weight: 850;
}

.decision-list strong {
  display: block;
  color: var(--ink-strong);
}

.decision-list p {
  margin: 3px 0 0;
  font-size: 13px;
}

.lesson-footer {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.lesson-footer small {
  color: var(--ink-soft);
}

.complete-button {
  min-height: 44px;
  padding: 9px 16px;
  cursor: pointer;
  border: 1px solid var(--forest-2);
  border-radius: 999px;
  background: transparent;
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 800;
}

.complete-button.is-complete {
  background: var(--forest-2);
  color: #fff;
}

.source-aside {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .56);
}

.source-aside ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
  font-size: 11px;
}

.source-aside a {
  color: var(--forest-2);
  font-weight: 750;
  text-underline-offset: 3px;
}

.source-aside .review-date {
  margin: 18px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
}

.quiz-form {
  display: grid;
  gap: 24px;
  margin-top: 25px;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr);
  gap: 18px;
  margin: 26px 0;
}

.dose-calculator,
.calculator-result {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.dose-calculator {
  background: var(--paper);
}

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

.calculator-field {
  display: grid;
  gap: 7px;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 800;
}

.calculator-field:last-child {
  grid-column: 1 / -1;
}

.calculator-field > span > small {
  color: var(--ink-soft);
  font-weight: 600;
}

.calculator-field input,
.calculator-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-strong);
}

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

.input-with-unit input {
  padding-right: 58px;
}

.input-with-unit small {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  transform: translateY(-50%);
}

.calculator-safety {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.calculator-safety legend {
  padding-inline: 6px;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 800;
}

.check-option {
  display: grid;
  grid-template-columns: 19px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--ink);
  font-size: 12px;
}

.check-option input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--forest-2);
}

.calculator-submit {
  width: 100%;
  cursor: pointer;
}

.calculator-error {
  margin: 0 0 14px;
  padding: 11px 12px;
  border-radius: 9px;
  background: #fce8e6;
  color: #c5221f;
  font-size: 12px;
  font-weight: 700;
}

.privacy-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.calculator-result {
  align-content: start;
  background: var(--forest);
  color: #e8f0fe;
}

.calculator-result:focus {
  outline: none;
}

.calculator-result:focus-visible {
  outline: 3px solid #7fb7ff;
  outline-offset: 3px;
}

.calculator-result h3 {
  margin: 7px 0 10px;
  color: #fff;
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.12;
}

.calculator-result p {
  margin: 0;
  color: #cfe0fc;
  font-size: 12px;
}

.result-kicker,
.result-status,
.result-dose > span {
  color: var(--acid);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.result-dose {
  margin-bottom: 21px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}

.result-dose strong {
  display: block;
  margin: 7px 0 8px;
  color: #fff;
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  line-height: 1;
}

.result-dose strong small {
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.calculator-result.is-stop {
  background: #8c1d18;
}

.calculator-result.is-stop .result-status {
  color: #ffb4a8;
}

.dose-context {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.dose-context article {
  padding: 17px;
  background: var(--paper);
}

.dose-context article + article {
  border-left: 1px solid var(--line);
}

.dose-context span,
.dose-context strong {
  display: block;
}

.dose-context span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dose-context strong {
  margin: 5px 0;
  color: var(--ink-strong);
  font-size: 14px;
}

.dose-context p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.quiz-question {
  margin: 0;
  padding: 0 0 23px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.quiz-question legend {
  margin-bottom: 13px;
  color: var(--ink-strong);
  font-weight: 750;
}

.quiz-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 8px 0;
  padding: 13px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  font-size: 13px;
}

.quiz-option:hover {
  border-color: var(--mint);
  background: var(--mint-pale);
}

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

.quiz-submit {
  justify-self: start;
  cursor: pointer;
}

.quiz-result {
  display: none;
  padding: 18px;
  border-radius: 12px;
  background: var(--green-l);
  color: var(--ink-strong);
}

.quiz-result.is-visible {
  display: block;
}

.quiz-result.is-retry {
  background: #fef7e0;
}

.references {
  display: grid;
  gap: 15px;
  margin: 23px 0 0;
  padding: 0;
  counter-reset: refs;
  list-style: none;
}

.references li {
  position: relative;
  padding: 0 0 15px 37px;
  border-bottom: 1px solid var(--line);
  counter-increment: refs;
  font-size: 13px;
}

.references li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: counter(refs);
  font-size: 9px;
  font-weight: 850;
}

.references cite {
  display: block;
  color: var(--ink-strong);
  font-style: normal;
  font-weight: 650;
}

.references span {
  display: block;
  margin: 3px 0 7px;
  color: var(--ink-soft);
  font-size: 11px;
}

@media (max-width: 1120px) {
  :root { --sidebar: 86px; }

  .brand { margin-inline: 6px; }
  .brand > span:last-child,
  .nav-item > span:last-child,
  .sidebar-note,
  .profile-card > div {
    display: none;
  }
  .nav-item { justify-content: center; }
  .nav-item.is-active { box-shadow: inset 0 -3px var(--acid); }
  .profile-card { justify-content: center; }
  .module-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .source-aside { position: static; grid-column: 2; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: 54px; }
  .hero-panel { min-height: 340px; }
  .molecule { width: 130px; height: 130px; margin-block: 25px 18px; }
  .resume-card { grid-template-columns: 190px 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 285px; }
  .path-icon { margin-bottom: 35px; }
  .evidence-layout { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid li:nth-child(2) { border-right: 0; }
  .principle-grid li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .module-layout { grid-template-columns: 1fr; }
  .step-nav { position: static; grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; }
  .step-nav-title { grid-column: 1 / -1; }
  .source-aside { grid-column: auto; }
}

@media (max-width: 700px) {
  :root { --sidebar: 0px; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 64px; padding-inline: 18px; }
  .topbar-context { display: none; }
  .mobile-brand { display: inline-flex; }
  .mobile-brand .brand-mark { width: 34px; height: 34px; flex-basis: 34px; font-size: 19px; }
  .topbar-actions .icon-button { display: none; }
  .section-wrap { width: min(calc(100% - 36px), var(--content)); }
  .hero { gap: 34px; min-height: auto; }
  .hero h1 { font-size: clamp(43px, 14vw, 65px); }
  .hero-panel { padding: 22px; }
  .safety-inner { align-items: flex-start; padding-block: 16px; }
  .safety-inner a { display: none; }
  .continue-section,
  .pathways,
  .principles,
  .evidence-section { padding-block: 68px; }
  .section-heading { display: block; }
  .section-aside { margin-top: 13px; }
  .resume-card { grid-template-columns: 1fr; }
  .resume-visual { min-height: 210px; }
  .resume-footer { align-items: stretch; flex-direction: column; }
  .progress-copy { width: 100%; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid li { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-grid li:last-child { border-bottom: 0; }
  .principle-grid span { margin-bottom: 30px; }
  .site-footer { flex-direction: column; }
  .module-title-grid { grid-template-columns: 1fr; }
  .module-progress-ring { width: 88px; height: 88px; }
  .module-meta-row { align-items: flex-start; flex-direction: column; }
  .step-nav { display: flex; overflow-x: auto; padding-bottom: 8px; }
  .step-nav { width: 100%; max-width: 100%; min-width: 0; }
  .step-nav-title { display: none; }
  .step-button { min-width: 145px; }
  .clinical-grid { grid-template-columns: 1fr; }
  .evidence-table { display: block; overflow-x: auto; }
  .calculator-shell { grid-template-columns: 1fr; }
  .dose-context { grid-template-columns: 1fr; }
  .dose-context article + article { border-top: 1px solid var(--line); border-left: 0; }
  .lesson-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .calculator-grid { grid-template-columns: 1fr; }
  .calculator-field:last-child { grid-column: auto; }
}

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

@media print {
  .sidebar,
  .topbar,
  .step-nav,
  .complete-button,
  .quiz-submit,
  .calculator-submit,
  .toast { display: none !important; }
  .workspace { margin: 0; }
  .section-wrap { width: 100%; }
  .module-layout { display: block; }
  .lesson-card { break-inside: avoid; box-shadow: none; }
}

/* Login / Landing */
.login-body {
  background: var(--paper);
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.login-grid {
  width: min(calc(100% - 80px), var(--content));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  padding-block: 60px;
}

.login-brand {
  margin: 0 0 34px;
}

.login-title {
  max-width: 620px;
  margin: 0;
  color: var(--ink-strong);
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.02;
}

.login-title em {
  color: var(--forest-2);
  font-weight: 400;
  font-style: normal;
}

.login-lead {
  max-width: 480px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}

.login-note {
  margin: 28px 0 0;
}

.login-note a {
  color: var(--forest-2);
  font-size: 13px;
  font-weight: 750;
  text-underline-offset: 3px;
}

.login-panel {
  display: flex;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: clamp(28px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-card-title {
  margin: 0 0 6px;
  color: var(--ink-strong);
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.login-card-lead {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 13px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field label {
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 800;
}

.login-field input {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-strong);
  font-size: 14px;
}

.login-submit {
  width: 100%;
  margin-top: 6px;
}

.login-error {
  margin: 0 0 18px;
  padding: 11px 12px;
  border-radius: 9px;
  background: #fce8e6;
  color: #c5221f;
  font-size: 12px;
  font-weight: 700;
}

.profile-card [data-logout-link] {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.profile-card [data-logout-link]:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .login-grid { grid-template-columns: 1fr; padding-block: 48px; }
  .login-panel { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .login-grid { width: min(calc(100% - 36px), var(--content)); }
}

/* Gruppierte Sidebar-Navigation (Aminosäuren-Lernpfad) */
.sidebar { overflow-y: auto; }
.primary-nav { flex: 0 0 auto; }

.nav-group-label {
  margin: 18px 12px 4px;
  color: #6f757a;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-group-label:first-child { margin-top: 0; }

@media (max-width: 1120px) {
  .nav-group-label {
    height: 1px;
    margin: 12px 14px;
    padding: 0;
    overflow: hidden;
    background: var(--line-dark);
    color: transparent;
  }
}
