:root {
  --background: #f3f7f6;
  --surface: #ffffff;
  --text: #0b2630;
  --muted: #526a70;
  --line: #ceddda;
  --button: #e2ece9;
  --button-hover: #d4e4df;
  --teal: #087e7b;
  --teal-dark: #075e60;
  --navy: #071f2a;
  --gold: #e1a93d;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

#smoke-canvas {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease;
  mix-blend-mode: multiply;
  filter: saturate(1.05) contrast(1.05);
}

html.kc-smoke-ready #smoke-canvas {
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  #smoke-canvas {
    display: none !important;
  }
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 70;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--background);
  transform: translateY(0);
  transition: transform 180ms ease;
  will-change: transform;
}

.site-header.header-hidden {
  transform: translateY(calc(-100% - 1px));
}

.header-inner,
.page {
  width: 100%;
  padding-inline: clamp(1.5rem, 5vw, 5.5rem);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  min-height: 5.25rem;
}

.brand {
  flex: 0 0 auto;
  font-size: 1.15rem;
  color: var(--teal);
  font-weight: 780;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  min-width: 0;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 0.65rem;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 680;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.primary-nav a:hover {
  color: var(--teal-dark);
  background: var(--button-hover);
}

.primary-nav a[aria-current="page"] {
  color: var(--teal);
  box-shadow: inset 0 -2px var(--teal);
  background: transparent;
}

.kc-logo {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  text-decoration: none;
}

.kc-logo img {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
}

.page {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 8rem;
}

.page-heading {
  max-width: 48rem;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.landing-page {
  padding-top: 0;
}

.landing-hero {
  display: grid;
  align-content: start;
  padding-block: clamp(4rem, 7vw, 6.5rem) clamp(5rem, 9vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.landing-kicker {
  margin: 0 0 1.25rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.4rem, 8.2vw, 8.5rem);
  font-weight: 730;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.landing-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 55rem;
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
}

.landing-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.62;
}

.landing-copy p:first-child {
  color: var(--text);
}

.landing-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.landing-actions a {
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 720;
  text-decoration: none;
}

.landing-actions a + a {
  border-left: 1px solid var(--line);
}

.landing-actions a:hover,
.landing-actions a:focus-visible {
  color: var(--teal-dark);
  background: var(--button-hover);
}

.landing-actions .landing-primary-action {
  gap: 2.5rem;
  padding-inline: 1.25rem;
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
}

.landing-actions .landing-primary-action:hover,
.landing-actions .landing-primary-action:focus-visible {
  color: var(--navy);
  background: var(--gold);
}

.landing-primary-action span {
  font-size: 1.15rem;
  font-weight: 500;
}

.landing-directory {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.7fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(5rem, 9vw, 9rem);
}

.landing-directory > header p {
  margin: 0 0 0.85rem;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-directory h2 {
  max-width: 17ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4.2vw, 4.25rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.landing-destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
}

.landing-destinations a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.35rem 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.landing-destinations a:hover,
.landing-destinations a:focus-visible {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.landing-destinations span {
  grid-row: 1 / 3;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 760;
}

.landing-destinations strong {
  font-size: 1rem;
  line-height: 1.3;
}

.landing-destinations p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.study-page {
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

.curriculum-page {
  padding-bottom: 0;
}

.study-intro {
  display: block;
  width: 100%;
  max-width: none;
}

.study-intro .page-heading {
  max-width: none;
}

.study-intro .page-heading h1 {
  max-width: none;
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.study-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4.5rem);
  width: 100%;
  max-width: 86rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.study-layout::after {
  grid-column: 1 / -1;
  height: 8rem;
  content: "";
}

[data-study-sidebar] {
  width: 20rem;
  min-width: 0;
  background: var(--button);
  transition: width 180ms ease;
}

[data-study-sidebar].sidebar-collapsed {
  width: 3rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  gap: 0.85rem;
  padding: 0.25rem;
}

.sidebar-header strong {
  color: var(--navy);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.sidebar-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  align-content: center;
  gap: 0.27rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  padding: 0.78rem;
  color: var(--surface);
  background: var(--navy);
  cursor: pointer;
}

.sidebar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  background: var(--teal-dark);
}

.study-sidebar {
  max-height: 22rem;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: var(--button);
  scrollbar-width: none;
}

.study-sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-subjects {
  display: grid;
}

.sidebar-subjects a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.sidebar-subjects a:hover,
.sidebar-subjects a:focus-visible,
.sidebar-subjects a[aria-current="location"] {
  color: var(--teal-dark);
  background: var(--surface);
}

.sidebar-subjects a[aria-current="location"] {
  box-shadow: inset 3px 0 var(--teal);
}

.sidebar-subjects a span {
  color: var(--teal-dark);
  font-size: 0.74rem;
  padding-top: 0.12rem;
}

.sidebar-collapsed .sidebar-header strong,
.sidebar-collapsed .study-sidebar {
  display: none;
}

.curriculum {
  max-width: 76rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.study-layout > .curriculum,
.study-layout > .index-list {
  margin-top: 0;
}

.topic-pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.topic-pagination a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 1rem;
  min-width: min(24rem, 100%);
  padding: 1rem 1.15rem;
  color: var(--text);
  background: var(--button);
  text-decoration: none;
}

.topic-pagination a:hover,
.topic-pagination a:focus-visible {
  color: var(--teal-dark);
  background: var(--button-hover);
}

.topic-pagination span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topic-pagination strong {
  grid-column: 1;
  font-size: 0.95rem;
  line-height: 1.35;
}

.topic-pagination b {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 1.25rem;
  font-weight: 500;
}

.module {
  padding-block: 2.6rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 7rem;
}

.module-heading {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.module-number {
  padding-top: 0.15rem;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 720;
}

.module h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-weight: 710;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 4rem;
  padding-left: 4rem;
}

.lesson {
  scroll-margin-top: 7rem;
}

.lesson h3 {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.lesson-link {
  text-decoration-color: rgba(8, 126, 123, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22rem;
}

.lesson-link:hover {
  text-decoration-color: var(--text);
}

.topic-list,
.linked-list {
  display: grid;
  gap: 0.48rem;
  margin: 0;
  padding-left: 1.15rem;
}

.topic {
  color: var(--muted);
  font-size: 1rem;
}

.demonstration-note {
  grid-column: 1 / -1;
  padding-left: 4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.demonstration-note strong {
  color: var(--text);
}

.index-list {
  max-width: 54rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.index-group {
  padding-block: 1.5rem;
  border-top: 1px solid var(--button-hover);
}

.index-group h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.index-group h2 a {
  text-underline-offset: 0.2rem;
}

.module-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 72rem;
  margin-top: 2.75rem;
}

.module-picker button {
  min-height: 2.45rem;
  border: 1px solid transparent;
  padding: 0.55rem 0.85rem;
  color: var(--text);
  background: var(--button);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 680;
  cursor: pointer;
}

.module-picker button:hover {
  border-color: #afcbc6;
  background: var(--button-hover);
}

.module-picker button[aria-pressed="true"] {
  color: var(--surface);
  background: var(--teal);
}

.module-stage {
  max-width: 72rem;
  margin-top: 1.25rem;
  border-top: 3px solid var(--teal);
  background: var(--background);
}

.module-frame {
  display: block;
  width: 100%;
  min-height: 42rem;
  border: 0;
  background: var(--background);
}

.answer-key {
  max-width: 72rem;
  margin-top: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--button-hover);
  border-bottom: 1px solid var(--button-hover);
}

.answer-key summary {
  font-weight: 700;
  cursor: pointer;
}

.answer-key p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.linked-list li {
  color: var(--muted);
  font-size: 0.92rem;
}

.biolab-notes-window {
  position: fixed;
  z-index: 80;
  min-width: 0;
  min-height: 0;
  color: var(--text);
  filter: drop-shadow(0 18px 30px rgba(7, 31, 42, 0.18));
}

.biolab-notes-panel {
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 1px solid #aec7c2;
  background: var(--surface);
  flex-direction: column;
}

.biolab-notes-header {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 3.65rem;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem 0.55rem 0.75rem;
  color: #fff;
  background: var(--navy);
  cursor: move;
  touch-action: none;
  user-select: none;
}

.biolab-notes-grip {
  display: grid;
  grid-template-columns: repeat(2, 3px);
  gap: 3px;
  opacity: 0.65;
}

.biolab-notes-grip i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.biolab-notes-header > div {
  display: grid;
  min-width: 0;
}

.biolab-notes-header strong {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.biolab-notes-context {
  overflow: hidden;
  color: #bcd5d1;
  font-size: 0.72rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.biolab-notes-help,
.biolab-notes-collapse {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

.biolab-notes-help {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
  font-weight: 800;
}

.biolab-notes-help:hover,
.biolab-notes-help:focus-visible,
.biolab-notes-collapse:hover,
.biolab-notes-collapse:focus-visible {
  color: var(--navy);
  background: var(--gold);
}

.biolab-notes-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.biolab-notes-editor {
  display: block;
  flex: 1 1 auto;
  overflow-y: auto;
  width: 100%;
  min-height: 0;
  border: 0;
  padding: 1rem 1.05rem;
  color: var(--text);
  outline: 0;
  background: #fbfdfc;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  word-wrap: break-word;
  cursor: text;
}

.biolab-notes-editor:empty::before,
.biolab-notes-editor.placeholder-show::before {
  color: var(--muted);
  content: attr(data-placeholder);
  opacity: 0.72;
  pointer-events: none;
}

.biolab-notes-editor:focus {
  box-shadow: inset 3px 0 var(--teal);
}

.biolab-notes-window.notes-locked .biolab-notes-editor {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.biolab-notes-editor .md-line {
  display: block;
  min-height: 1.6em;
}

.biolab-notes-editor .md-h1 {
  margin: 0.25em 0 0.15em;
  color: var(--teal-dark);
  font-size: 1.5em;
  font-weight: 740;
  line-height: 1.3;
}

.biolab-notes-editor .md-h2 {
  margin: 0.2em 0 0.12em;
  font-size: 1.25em;
  font-weight: 720;
  line-height: 1.3;
}

.biolab-notes-editor .md-h3 {
  margin: 0.18em 0 0.1em;
  font-size: 1.08em;
  font-weight: 700;
  line-height: 1.35;
}

.biolab-notes-editor .md-bullet.inactive,
.biolab-notes-editor .md-numbered.inactive {
  position: relative;
}

.biolab-notes-editor .md-bullet.inactive {
  padding-left: 1.25em;
}

.biolab-notes-editor .md-bullet.inactive::before {
  position: absolute;
  left: 0.35em;
  color: var(--teal);
  content: "•";
  font-weight: 800;
}

.biolab-notes-editor .md-numbered.inactive {
  padding-left: 1.7em;
}

.biolab-notes-editor .md-numbered.inactive::before {
  position: absolute;
  left: 0.25em;
  color: var(--teal);
  content: attr(data-num);
  font-weight: 700;
}

.biolab-notes-editor .md-quote {
  margin: 0.1em 0;
  padding-left: 0.7em;
  border-left: 3px solid var(--teal);
  color: var(--muted);
}

.biolab-notes-editor .md-hr.inactive {
  overflow: hidden;
  height: 0;
  margin: 0.5em 0;
  border-top: 1px solid var(--line);
}

.biolab-notes-editor strong {
  font-weight: 750;
}

.biolab-notes-editor em {
  font-style: italic;
}

.biolab-notes-editor code,
.biolab-markdown-help code {
  padding: 0.05em 0.3em;
  color: var(--text);
  background: var(--button);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
}

.biolab-notes-editor del {
  color: var(--muted);
  text-decoration: line-through;
}

.biolab-notes-editor .md-line.inactive .md-syntax {
  display: none;
}

.biolab-notes-editor .md-line.active .md-syntax {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
  opacity: 0.58;
}

.biolab-notes-editor .md-h1 .md-syntax,
.biolab-notes-editor .md-h2 .md-syntax,
.biolab-notes-editor .md-h3 .md-syntax {
  font-size: 0.7em;
}

.biolab-notes-editor .md-line.inactive .md-arrow::after {
  color: var(--text);
  content: "➜";
  font-weight: 900;
}

.biolab-notes-body footer {
  display: flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.35rem 2rem 0.35rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--button);
  font-size: 0.7rem;
  font-weight: 650;
}

.biolab-notes-resize {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  padding: 0;
  background: linear-gradient(135deg, transparent 45%, var(--teal) 46%, var(--teal) 54%, transparent 55%, transparent 67%, var(--teal) 68%, var(--teal) 76%, transparent 77%);
  cursor: nwse-resize;
  touch-action: none;
}

.biolab-notes-mini {
  display: none;
  width: 4.875rem;
  height: 3rem;
  border: 1px solid #aec7c2;
  color: #fff;
  background: var(--navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: move;
  touch-action: none;
}

.biolab-notes-mini:hover,
.biolab-notes-mini:focus-visible {
  color: var(--navy);
  background: var(--gold);
}

.biolab-notes-window.is-collapsed {
  width: 4.875rem !important;
  height: 3rem !important;
}

.biolab-notes-window.is-collapsed .biolab-notes-panel {
  display: none;
}

.biolab-notes-window.is-collapsed .biolab-notes-mini {
  display: block;
}

.biolab-notes-window.is-collapsed.is-compact {
  width: 1.75rem !important;
  height: 4rem !important;
}

.biolab-notes-window.is-compact .biolab-notes-mini {
  width: 1.75rem;
  height: 4rem;
  padding: 0;
  border-radius: 2px;
  font-size: 0.68rem;
  writing-mode: vertical-rl;
  cursor: pointer;
}

.biolab-markdown-help {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 31, 42, 0.62);
}

.biolab-markdown-help.is-open {
  display: flex;
}

.biolab-markdown-help-card {
  display: flex;
  overflow: hidden;
  width: min(27rem, 100%);
  max-height: min(42rem, 88vh);
  border: 1px solid #aec7c2;
  background: var(--surface);
  box-shadow: 0 22px 50px rgba(7, 31, 42, 0.28);
  flex-direction: column;
}

.biolab-markdown-help-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  color: #fff;
  background: var(--navy);
}

.biolab-markdown-help-card h2 {
  margin: 0;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.biolab-markdown-help-card header button {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.biolab-markdown-help-card header button:hover,
.biolab-markdown-help-card header button:focus-visible {
  color: var(--navy);
  background: var(--gold);
}

.biolab-markdown-help-body {
  overflow-y: auto;
  padding: 0.45rem;
}

.biolab-markdown-help-body > div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.52rem 0.65rem;
}

.biolab-markdown-help-body > div + div {
  border-top: 1px solid var(--line);
}

.biolab-markdown-help-body > div > code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.biolab-markdown-help-body .help-h1 {
  color: var(--teal-dark);
  font-size: 1.05rem;
}

.biolab-markdown-help-body .help-h2 {
  font-size: 0.96rem;
}

.biolab-markdown-help-body .help-quote {
  padding-left: 0.55rem;
  border-left: 3px solid var(--teal);
  color: var(--muted);
}

.biolab-markdown-help-body .help-rule {
  display: block;
  border-top: 1px solid var(--line);
}

@media (min-width: 721px) {
  [data-study-sidebar] {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow: hidden;
  }

  .study-sidebar {
    max-height: calc(100vh - 3.5rem);
  }
}

@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.9rem 1.25rem;
    padding-block: 1.1rem;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .kc-logo {
    grid-column: 2;
    grid-row: 1;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .kc-logo img {
    width: 3rem;
    height: 3rem;
  }

  .primary-nav a {
    white-space: nowrap;
  }

  .page {
    padding-top: 2.75rem;
  }

  .landing-page {
    padding-top: 0;
  }

  .landing-hero {
    min-height: auto;
    padding-block: 4.5rem 5rem;
  }

  .landing-hero h1 {
    max-width: none;
    font-size: clamp(3rem, 12.5vw, 4.8rem);
  }

  .landing-copy,
  .landing-directory,
  .landing-destinations {
    grid-template-columns: 1fr;
  }

  .landing-copy {
    gap: 1.5rem;
  }

  .landing-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-actions a + a {
    border-left: 0;
  }

  .landing-actions a:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .landing-actions .landing-primary-action {
    grid-column: 1 / -1;
  }

  .landing-directory {
    gap: 3.5rem;
  }

  .landing-destinations {
    gap: 2rem;
  }

  .study-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  [data-study-sidebar] {
    width: 100%;
  }

  [data-study-sidebar].sidebar-collapsed {
    width: 2.75rem;
  }

  .sidebar-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .lesson-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .demonstration-note {
    padding-left: 0;
  }

  .module-heading {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .biolab-notes-resize {
    display: none;
  }
}
