/*
 * Copyright (c) 2026 Paul Tocatlian. All Rights Reserved.
 * 30-Day AI at Work Challenge is part of Spark•Academy learning materials.
 * Unauthorized copying, redistribution, modification, or reuse is prohibited except as permitted by the Spark•Academy Legal page.
 * Legal: https://www.spark.academy/legal.html
 */
:root {
  color-scheme: light dark;
  --spark-primary: #ee0979;
  --spark-primary-accessible: #d0066d;
  --spark-primary-hover: #bc075f;
  --spark-primary-dark: var(--spark-primary-hover);
  --spark-secondary: #ff6a00;
  --spark-secondary-accessible: #c75300;
  --spark-secondary-dark: var(--spark-secondary-accessible);
  --spark-black: #000000;
  --spark-ink: #212529;
  --label: #212529;
  --secondary-label: rgba(60, 60, 67, 0.72);
  --tertiary-label: rgba(60, 60, 67, 0.5);
  --system-background: #f5f5f7;
  --secondary-system-background: #ffffff;
  --tertiary-system-background: #f2f2f7;
  --grouped-background: #f5f5f7;
  --separator: rgba(60, 60, 67, 0.18);
  --opaque-separator: #d2d2d7;
  --system-fill: rgba(120, 120, 128, 0.12);
  --system-fill-strong: rgba(120, 120, 128, 0.18);
  --selected-fill: rgba(208, 6, 109, 0.12);
  --material: rgba(255, 255, 255, 0.78);
  --material-strong: rgba(255, 255, 255, 0.92);
  --tint: var(--spark-primary-accessible);
  --tint-strong: var(--spark-primary-hover);
  --teal: #30b0c7;
  --green: #28a745;
  --orange: var(--spark-secondary-accessible);
  --teal-accessible: #1a9389;
  --focus-ring: #111111;
  --sidebar-width: 300px;
  --content-width: 760px;
  --rail-width: 224px;
  --page-gap: 44px;
  --control-radius: 999px;
  --card-radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  color: var(--label);
  background: var(--system-background);
  line-height: 1.58;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: auto;
  text-size-adjust: auto;
}
@supports (font: -apple-system-body) {
  html { font: -apple-system-body; }
  body { font-size: 1rem; }
}
a {
  color: var(--tint-strong);
  overflow-wrap: anywhere;
}
a:focus-visible,
select:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --label: #f5f5f7;
    --secondary-label: rgba(235, 235, 245, 0.72);
    --tertiary-label: rgba(235, 235, 245, 0.5);
    --system-background: #000000;
    --secondary-system-background: #1c1c1e;
    --tertiary-system-background: #2c2c2e;
    --grouped-background: #000000;
    --separator: rgba(84, 84, 88, 0.65);
    --opaque-separator: #38383a;
    --system-fill: rgba(120, 120, 128, 0.28);
    --system-fill-strong: rgba(120, 120, 128, 0.38);
    --selected-fill: rgba(255, 90, 166, 0.26);
    --material: rgba(28, 28, 30, 0.78);
    --material-strong: rgba(28, 28, 30, 0.94);
    --tint: #ff5aa6;
    --tint-strong: #ff9bca;
    --orange: #ff8b33;
    --teal-accessible: #6ee7df;
    --focus-ring: #ffffff;
  }
}
@media (prefers-contrast: more) {
  :root {
    --separator: currentColor;
    --system-fill: rgba(238, 9, 121, 0.18);
    --selected-fill: rgba(238, 9, 121, 0.24);
    --focus-ring: currentColor;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.screen-reader-text,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 10;
  transform: translateY(-180%);
  background: #ffffff;
  color: #111111;
  padding: 8px 12px;
  border: 2px solid #111111;
  border-radius: var(--control-radius);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: var(--material-strong);
  border-right: 1px solid var(--separator);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  overflow: auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}
.brand {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 6px 18px;
  border-bottom: 1px solid var(--separator);
  margin-bottom: 12px;
}
.brand-image-link {
  display: inline-flex;
  border-radius: 50%;
  line-height: 0;
}
.brand-image-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
}
.brand strong { display: block; font-size: 1.125rem; }
.brand span { display: block; color: var(--secondary-label); font-size: 0.8125rem; }
.lesson-nav {
  display: grid;
  gap: 8px;
}
.nav-section-title {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding: 12px 6px 0;
  border-top: 1px solid var(--separator);
}
.nav-section-title span {
  color: var(--label);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
}
.nav-section-title small {
  color: var(--secondary-label);
  font-size: 0.75rem;
  line-height: 1.15;
}
.nav-link {
  display: grid;
  gap: 2px;
  min-height: 44px;
  text-decoration: none;
  color: var(--label);
  padding: 10px 10px 11px 3px;
  border-left: 3px solid transparent;
  border-radius: var(--control-radius);
  touch-action: manipulation;
}
.nav-link:hover { background: var(--system-fill); }
.nav-link.active {
  background: var(--selected-fill);
  border-left-color: var(--tint);
  color: var(--tint-strong);
}
.nav-kicker {
  color: var(--secondary-label);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.nav-title {
  color: inherit;
  font-size: 0.8125rem;
  line-height: 1.3;
}
.nav-link.active .nav-kicker,
.nav-link.active .nav-title { color: var(--tint-strong); }
.sidebar-downloads {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--separator);
}
.sidebar-downloads-title {
  display: grid;
  gap: 2px;
  padding: 0 6px 1px;
}
.sidebar-downloads-title span {
  color: var(--label);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
}
.sidebar-downloads-title small {
  color: var(--secondary-label);
  font-size: 0.75rem;
  line-height: 1.15;
}
.sidebar-download-link {
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid var(--separator);
  border-radius: var(--control-radius);
  background: var(--system-fill);
  color: var(--label);
  text-decoration: none;
  touch-action: manipulation;
}
.sidebar-download-link:hover {
  border-color: var(--tint);
  background: var(--selected-fill);
}
.sidebar-download-link span {
  color: var(--secondary-label);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}
.sidebar-download-link strong {
  color: var(--tint-strong);
  font-size: 0.75rem;
  line-height: 1.18;
}
.page-shell {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 58px;
  padding: 10px max(24px, env(safe-area-inset-right)) 10px 24px;
  border-bottom: 1px solid var(--separator);
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--secondary-label);
  font-size: 0.875rem;
}
.topbar-actions {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 44px minmax(300px, 1.55fr) minmax(240px, 0.75fr) max-content 44px;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
.topbar-actions.no-prev {
  grid-template-columns: minmax(360px, 1.55fr) minmax(240px, 0.75fr) max-content 44px;
}
.topbar-actions.no-next {
  grid-template-columns: 44px minmax(360px, 1.55fr) minmax(240px, 0.75fr) max-content;
}
.topbar-actions.no-prev.no-next {
  grid-template-columns: minmax(360px, 1.55fr) minmax(240px, 0.75fr) max-content;
}
.nav-prev {
  grid-column: 1;
}
.nav-page-select {
  grid-column: 2;
}
.nav-section-select {
  grid-column: 3;
}
.tools-menu {
  grid-column: 4;
}
.nav-next {
  grid-column: 5;
}
.topbar-actions.no-prev .nav-prev,
.topbar-actions.no-next .nav-next {
  display: none;
}
.topbar-actions.no-prev .nav-page-select,
.topbar-actions.no-prev.no-next .nav-page-select {
  grid-column: 1;
}
.topbar-actions.no-prev .nav-section-select,
.topbar-actions.no-prev.no-next .nav-section-select {
  grid-column: 2;
}
.topbar-actions.no-prev .tools-menu,
.topbar-actions.no-prev.no-next .tools-menu {
  grid-column: 3;
}
.topbar-actions.no-prev .nav-next {
  grid-column: 4;
}
.topbar-actions.no-next .nav-page-select {
  grid-column: 2;
}
.topbar-actions.no-next .nav-section-select {
  grid-column: 3;
}
.topbar-actions.no-next .tools-menu {
  grid-column: 4;
}
.journey-progress {
  width: min(calc(var(--content-width) + var(--rail-width) + var(--page-gap)), calc(100vw - var(--sidebar-width) - 56px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(360px, 1.45fr) minmax(150px, 220px);
  grid-template-areas: "summary rail next";
  column-gap: 18px;
  row-gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--module-color, var(--tint)) 38%, var(--separator));
  border-radius: var(--card-radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--module-color, var(--tint)) 16%, transparent), transparent 38%),
    var(--secondary-system-background);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}
.module-orientation { --module-color: #c75300; --module-text-color: #c75300; }
.module-chatgpt { --module-color: #1a9389; --module-text-color: #0f6f68; }
.module-notebooklm { --module-color: #3f8f34; --module-text-color: #2f7627; }
.module-gemini { --module-color: #216fe8; --module-text-color: #216fe8; }
.module-chatgpt-work { --module-color: #7b4be8; --module-text-color: #7b4be8; }
.module-capstone { --module-color: #9a6800; --module-text-color: #9a6800; }
.module-guide { --module-color: #d0066d; --module-text-color: #d0066d; }
.page-shell.module-orientation { --module-color: #c75300; --module-text-color: #c75300; }
.page-shell.module-chatgpt { --module-color: #1a9389; --module-text-color: #0f6f68; }
.page-shell.module-notebooklm { --module-color: #3f8f34; --module-text-color: #2f7627; }
.page-shell.module-gemini { --module-color: #216fe8; --module-text-color: #216fe8; }
.page-shell.module-chatgpt-work { --module-color: #7b4be8; --module-text-color: #7b4be8; }
.page-shell.module-capstone { --module-color: #9a6800; --module-text-color: #9a6800; }
.page-shell.module-guide { --module-color: #d0066d; --module-text-color: #d0066d; }
@media (prefers-color-scheme: dark) {
  .module-orientation { --module-color: #ffb56b; --module-text-color: #ffb56b; }
  .module-chatgpt { --module-color: #6ee7df; --module-text-color: #6ee7df; }
  .module-notebooklm { --module-color: #9be782; --module-text-color: #9be782; }
  .module-gemini { --module-color: #86b7ff; --module-text-color: #86b7ff; }
  .module-chatgpt-work { --module-color: #b99bff; --module-text-color: #b99bff; }
  .module-capstone { --module-color: #ffd36a; --module-text-color: #ffd36a; }
  .module-guide { --module-color: #ff9bca; --module-text-color: #ff9bca; }
}
.journey-summary {
  grid-area: summary;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.journey-eyebrow {
  color: var(--secondary-label);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}
.journey-summary strong {
  color: var(--label);
  font-size: 1.0625rem;
  line-height: 1.35;
}
.journey-module,
.journey-title {
  color: var(--secondary-label);
  font-size: 0.8125rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.journey-module {
  font-weight: 800;
}
.journey-rail {
  grid-area: rail;
  min-width: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.journey-meter {
  position: relative;
  display: grid;
  grid-template-columns: repeat(30, minmax(6px, 1fr));
  gap: 4px;
  align-items: center;
  min-height: 26px;
  padding: 8px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--module-color, var(--tint)) 12%, var(--system-fill));
  overflow: hidden;
}
.journey-meter::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  border-radius: inherit;
  background: color-mix(in srgb, var(--module-color, var(--tint)) 28%, transparent);
}
.journey-dot {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  min-width: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--label) 32%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
}
.journey-dot.complete {
  background: color-mix(in srgb, var(--module-color, var(--tint)) 82%, #ffffff);
}
.journey-dot.current {
  background: #ffffff;
  transform: scale(1.25);
  box-shadow:
    0 0 0 3px var(--module-color, var(--tint)),
    0 0 0 6px color-mix(in srgb, var(--module-color, var(--tint)) 22%, transparent);
}
.journey-percent {
  min-width: 46px;
  color: var(--module-text-color, var(--module-color, var(--tint-strong)));
  font-size: 0.8125rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
}
.journey-next {
  grid-area: next;
  justify-self: stretch;
  min-width: 0;
  display: grid;
  gap: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--separator);
  font-size: 0.75rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.journey-next a,
.journey-next span {
  color: var(--module-text-color, var(--module-color, var(--tint-strong)));
  font-weight: 700;
  text-decoration: none;
}
.journey-next .journey-next-label {
  color: var(--secondary-label);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}
.journey-next span:not(.journey-next-label) {
  color: var(--secondary-label);
}
.journey-next a:hover {
  text-decoration: underline;
}
.nav-menu {
  position: relative;
  min-width: 0;
}
.mobile-menu {
  display: none;
}
.nav-menu summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--separator);
  border-radius: var(--control-radius);
  background: var(--secondary-system-background);
  color: var(--label);
  font-weight: 700;
  cursor: default;
  list-style: none;
  user-select: none;
  touch-action: manipulation;
}
.tools-menu summary {
  width: 100%;
  min-width: 86px;
  justify-content: center;
}
.nav-menu summary::-webkit-details-marker {
  display: none;
}
.nav-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-menu[open] summary {
  border-color: var(--tint);
  background: var(--selected-fill);
  color: var(--tint-strong);
}
.nav-menu:not([open]) > .menu-panel {
  display: none;
}
.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 4;
  width: min(560px, calc(100vw - 32px));
  max-height: min(70vh, 640px);
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  background: var(--material-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.menu-panel.compact {
  width: min(320px, calc(100vw - 32px));
  grid-template-columns: minmax(0, 1fr);
}
.menu-section {
  min-width: 0;
}
.appendix-menu-section {
  padding-top: 10px;
  border-top: 1px solid var(--separator);
}
.menu-section-title {
  display: grid;
  gap: 2px;
  margin: 0 0 5px;
  padding: 0 6px;
}
.menu-section-title span {
  color: var(--label);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.menu-section-title small {
  color: var(--secondary-label);
  font-size: 0.75rem;
  line-height: 1.2;
}
.menu-link {
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 9px;
  border-radius: var(--control-radius);
  color: var(--label);
  text-decoration: none;
}
.menu-link:hover,
.menu-link.active {
  background: var(--selected-fill);
  color: var(--tint-strong);
}
.menu-link span {
  color: var(--secondary-label);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}
.menu-link strong {
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 620;
  line-height: 1.22;
}
.section-menu-link {
  grid-template-columns: 10px minmax(0, 1fr);
  column-gap: 8px;
}
.section-menu-mark {
  grid-row: 1 / span 2;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--section-link-accent, var(--separator));
}
.menu-link .section-menu-kicker,
.section-menu-link strong {
  grid-column: 2;
}
.menu-link .section-menu-kicker {
  color: color-mix(in srgb, var(--section-link-accent, var(--tint)) 72%, var(--secondary-label));
}
.menu-empty {
  margin: 0;
  padding: 8px 9px;
  color: var(--secondary-label);
  font-size: 0.8125rem;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  justify-self: center;
  align-self: center;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: var(--system-fill);
  color: var(--tint);
  text-decoration: none;
  font-weight: 700;
  touch-action: manipulation;
}
.icon-link:hover {
  border-color: var(--separator);
  background: var(--system-fill-strong);
}
.icon-link.disabled {
  visibility: hidden;
  pointer-events: none;
}
.nav-select {
  position: relative;
  min-width: 0;
}
.nav-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--secondary-label);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.nav-select-label {
  position: absolute;
  top: 6px;
  left: 14px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.nav-select:focus-within .nav-select-label {
  color: #ffffff;
}
.page-select,
.section-select {
  min-width: 0;
  width: 100%;
  height: 52px;
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  background: var(--secondary-system-background);
  color: var(--label);
  font: inherit;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  padding: 24px 36px 4px 14px;
}
.reading-layout {
  width: min(calc(var(--content-width) + var(--rail-width) + var(--page-gap)), calc(100vw - var(--sidebar-width) - 56px));
  margin: 0 auto;
  padding: 42px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, var(--content-width)) var(--rail-width);
  gap: var(--page-gap);
  align-items: start;
}
.content {
  min-width: 0;
  overflow-wrap: anywhere;
}
.content img,
.content video {
  max-width: 100%;
  height: auto;
}
.audio-intro {
  margin: 18px 0 28px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--module-color, var(--tint)) 28%, var(--separator));
  border-radius: var(--card-radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--module-color, var(--tint)) 9%, transparent), transparent 54%),
    var(--secondary-system-background);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}
.audio-intro-copy {
  display: grid;
  gap: 4px;
}
.audio-intro-copy h2 {
  margin: 0;
  color: var(--label);
  font-size: 1.24rem;
  line-height: 1.45;
}
.audio-intro-copy p {
  margin: 0;
  color: var(--secondary-label);
}
.audio-intro-player {
  width: 100%;
}
.audio-transcript {
  border-top: 1px solid var(--separator);
  padding-top: 10px;
}
.audio-transcript summary {
  cursor: pointer;
  color: var(--tint-strong);
  font-weight: 800;
}
.audio-transcript-body {
  margin-top: 12px;
  color: var(--secondary-label);
}
.audio-transcript-body > :last-child { margin-bottom: 0; }
.lesson-answer {
  margin: 20px 0 24px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--module-color, var(--tint)) 34%, var(--separator));
  border-radius: var(--card-radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--module-color, var(--tint)) 12%, transparent), transparent 72%), var(--secondary-system-background);
}
.lesson-answer-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--module-color, var(--tint-strong));
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lesson-answer h2 { margin: 0 0 8px; font-size: 1.32rem; }
.lesson-answer p { margin: 8px 0; }
.course-progress { margin: 16px 0; padding-top: 12px; border-top: 1px solid var(--separator); }
.course-progress button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--separator); border-radius: 12px; background: var(--system-fill); color: var(--label); font: inherit; cursor: pointer; }
.course-progress button[aria-pressed="true"] { border-color: var(--tint); }
.course-progress button:focus-visible, .lesson-roadmap summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.course-progress a { display: inline-block; padding: 10px; }
.course-progress [hidden] { display: none; }
.lesson-roadmap { margin: 16px 0; border: 1px solid var(--separator); border-radius: 12px; padding: 8px 14px; }
.lesson-roadmap summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 650; }
.lesson-source-note { color: var(--secondary-label); font-size: 0.94rem; }
.cover-comic-figure {
  position: relative;
  margin: 24px auto 40px;
  width: min(100%, 720px);
}
.cover-comic-figure img {
  display: block;
  width: 100%;
  border: 4px solid #18212f;
  border-radius: var(--card-radius);
  background: #fff8e8;
  box-shadow: 0 18px 38px rgba(24, 33, 47, 0.14);
}
.comic-strip-figure,
.guide-image-figure {
  position: relative;
  margin: 18px 0 28px;
}
.comic-strip-figure img,
.guide-image-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  background: var(--secondary-system-background);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 16px 0 22px;
  overflow: hidden;
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  background: #000000;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.video-resource {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 16px 0 22px;
  padding: 14px;
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tint) 10%, transparent), transparent 46%),
    var(--secondary-system-background);
}
.video-resource-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--label);
  color: var(--secondary-system-background);
  font-size: 1.0625rem;
  line-height: 1;
  text-indent: 2px;
}
.video-resource-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.video-resource-copy span {
  color: var(--secondary-label);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}
.video-resource-copy strong {
  color: var(--label);
  font-size: 1rem;
  line-height: 1.25;
}
.video-resource-copy small {
  color: var(--secondary-label);
  font-size: 0.8125rem;
  line-height: 1.25;
}
.video-resource-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--separator);
  border-radius: var(--control-radius);
  background: var(--system-fill);
  color: var(--tint-strong);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}
.video-resource-link:hover {
  border-color: var(--tint);
  background: var(--selected-fill);
}
.video-embed-note {
  margin: 10px 0 20px;
  color: var(--secondary-label);
  font-size: 0.94rem;
}
.section-nav {
  position: sticky;
  top: 74px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  border-left: 1px solid var(--separator);
  padding-left: 14px;
}
.section-nav-title {
  margin-bottom: 8px;
  color: var(--secondary-label);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.section-link {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 0 6px 10px;
  box-shadow: inset 3px 0 transparent;
  color: var(--secondary-label);
  font-size: 0.8125rem;
  line-height: 1.25;
  text-decoration: none;
}
.section-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--section-link-accent, var(--separator));
  opacity: 0.82;
}
.section-link span {
  min-width: 0;
}
.section-link.level-4 { padding-left: 22px; }
.section-link:hover {
  color: var(--tint-strong);
}
.section-link.active {
  box-shadow: inset 3px 0 var(--tint);
  color: var(--tint-strong);
  font-weight: 700;
}
.section-link.active::before {
  opacity: 1;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--section-link-accent, var(--tint)) 16%, transparent);
}
.section-kind-spark,
.section-kind-prompt,
.section-kind-portfolio {
  --section-link-accent: var(--spark-primary-accessible);
}
.section-kind-learn,
.section-kind-practice,
.section-kind-setup,
.section-kind-shortcut {
  --section-link-accent: var(--module-color, var(--tint));
}
.section-kind-checkpoint,
.section-kind-use,
.section-kind-review,
.section-kind-example {
  --section-link-accent: var(--teal-accessible);
}
.section-kind-create,
.section-kind-alert,
.section-kind-video {
  --section-link-accent: var(--orange);
}
.section-kind-confirm {
  --section-link-accent: var(--green);
}
h1 {
  font-size: 2.8rem;
  line-height: 1.02;
  margin: 0 0 18px;
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 760;
}
h2 {
  margin: 44px 0 16px;
  font-size: 1.74rem;
  line-height: 1.15;
  scroll-margin-top: 92px;
}
h3 {
  margin: 30px 0 10px;
  font-size: 1.12rem;
  color: var(--tint-strong);
  scroll-margin-top: 92px;
}
h4 {
  margin: 22px 0 8px;
  font-size: 0.98rem;
  color: var(--green);
  scroll-margin-top: 92px;
}
p, li { font-size: 1rem; }
.learning-component {
  margin: 30px 0 0;
}
.learning-component h3,
.rhythm-section h3 {
  margin: 0;
  color: var(--label);
}
.component-heading,
.dashboard-head,
.alert-head,
.spark-card-head,
.rhythm-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.component-heading {
  margin: 0 0 12px;
}
.component-heading > div,
.dashboard-head > div,
.alert-head > div,
.spark-card-head > div,
.rhythm-heading > div {
  min-width: 0;
}
.component-kicker,
.component-label-stack span {
  display: block;
  color: var(--tint-strong);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}
.component-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--tint-strong);
  background: var(--secondary-system-background);
}
.component-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.spark-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.spark-card,
.dashboard-callout,
.alert-callout {
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  background: var(--secondary-system-background);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}
.spark-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border-color: color-mix(in srgb, var(--component-accent) 34%, var(--separator));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--component-accent) 9%, transparent), transparent 58%),
    var(--secondary-system-background);
}
.spark-card.fact {
  --component-accent: var(--tint-strong);
}
.spark-card.progress {
  --component-accent: var(--teal-accessible);
}
.spark-card.practice {
  --component-accent: var(--orange);
}
.spark-card .component-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  color: var(--component-accent);
  background: color-mix(in srgb, var(--component-accent) 8%, var(--secondary-system-background));
}
.spark-card .component-icon svg {
  width: 17px;
  height: 17px;
}
.component-label-stack {
  display: grid;
  gap: 2px;
}
.component-label-stack span {
  color: var(--secondary-label);
}
.component-label-stack strong {
  color: var(--label);
  font-size: 1.02rem;
  line-height: 1.15;
}
.spark-card p {
  margin: 0;
}
.dashboard-callout {
  overflow: hidden;
  border-color: color-mix(in srgb, var(--tint) 34%, var(--separator));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tint) 8%, transparent), transparent 52%),
    var(--secondary-system-background);
}
.dashboard-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 16px 18px;
  border-bottom: 1px solid var(--separator);
}
.dashboard-head .component-icon,
.dashboard-row .component-icon {
  color: var(--teal-accessible);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--teal-accessible) 34%, var(--separator));
  border-radius: var(--control-radius);
  color: var(--teal-accessible);
  background: color-mix(in srgb, var(--teal-accessible) 8%, var(--secondary-system-background));
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.dashboard-row-list {
  margin: 0;
  padding: 4px 18px 14px;
  list-style: none;
}
.dashboard-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--separator);
}
.dashboard-row:last-child {
  border-bottom: 0;
}
.dashboard-row .component-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border: 0;
  background: color-mix(in srgb, var(--teal-accessible) 10%, var(--tertiary-system-background));
}
.dashboard-row .component-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
.dashboard-row p,
.dashboard-copy > :first-child,
.alert-copy > :first-child {
  margin-top: 0;
}
.dashboard-row p,
.dashboard-copy > :last-child,
.alert-copy > :last-child {
  margin-bottom: 0;
}
.dashboard-copy {
  padding: 16px 18px 18px;
}
.alert-callout {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  overflow: hidden;
  border-color: color-mix(in srgb, var(--orange) 34%, var(--separator));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--orange) 8%, transparent), transparent 62%),
    var(--secondary-system-background);
}
.alert-accent {
  background: linear-gradient(180deg, var(--spark-primary-accessible), var(--spark-secondary-accessible));
}
.alert-content {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}
.alert-head .component-icon {
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 8%, var(--secondary-system-background));
}
.alert-copy {
  display: grid;
  gap: 10px;
}
.alert-copy p {
  margin: 0;
}
.rhythm-section {
  margin: 30px 0 0;
  --section-accent: var(--module-color, var(--tint));
}
.rhythm-shell {
  min-width: 0;
}
.rhythm-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}
.rhythm-section .component-icon {
  color: var(--section-accent);
  background: color-mix(in srgb, var(--section-accent) 8%, var(--secondary-system-background));
}
.rhythm-title-stack {
  display: grid;
  gap: 2px;
}
.rhythm-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.section-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--section-accent) 34%, var(--separator));
  border-radius: var(--control-radius);
  color: var(--section-accent);
  background: color-mix(in srgb, var(--section-accent) 8%, var(--secondary-system-background));
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.rhythm-body > :first-child {
  margin-top: 0;
}
.rhythm-body > :last-child {
  margin-bottom: 0;
}
.flow-section .rhythm-heading {
  margin: 0 0 8px;
}
.flow-section .rhythm-body {
  margin-left: 17px;
  padding-left: 28px;
  border-left: 2px solid color-mix(in srgb, var(--section-accent) 26%, var(--separator));
}
.setup-section,
.purpose-section,
.shortcut-section {
  --section-accent: var(--module-color, var(--tint));
}
.example-section {
  --section-accent: var(--green);
}
.concept-section {
  --section-accent: var(--tint-strong);
}
.use-section {
  --section-accent: var(--teal-accessible);
}
.video-section {
  --section-accent: var(--orange);
}
.task-panel .rhythm-shell,
.review-card .rhythm-shell,
.portfolio-card .rhythm-shell,
.completion-card .rhythm-shell {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--section-accent) 34%, var(--separator));
  border-radius: var(--card-radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--section-accent) 8%, transparent), transparent 56%),
    var(--secondary-system-background);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}
.task-panel .rhythm-heading,
.review-card .rhythm-heading,
.portfolio-card .rhythm-heading,
.completion-card .rhythm-heading {
  padding: 16px 18px;
  border-bottom: 1px solid var(--separator);
}
.task-panel .rhythm-body,
.review-card .rhythm-body,
.portfolio-card .rhythm-body,
.completion-card .rhythm-body {
  margin: 0;
  padding: 16px 18px 18px;
}
.practice-panel {
  --section-accent: var(--module-color, var(--tint));
}
.prompt-panel {
  --section-accent: var(--tint-strong);
}
.create-panel {
  --section-accent: var(--orange);
}
.judgment-card {
  --section-accent: var(--teal-accessible);
}
.portfolio-card {
  --section-accent: var(--spark-primary-accessible);
}
.completion-card {
  --section-accent: var(--green);
}
.prompt-panel .rhythm-body {
  padding: 0;
}
.prompt-panel .rhythm-body > p {
  margin: 0;
  padding: 14px 18px 10px;
  color: var(--secondary-label);
}
.prompt-panel .rhythm-body > p:first-child {
  padding-top: 16px;
}
.prompt-panel .rhythm-body > p strong {
  color: var(--label);
}
.prompt-panel .copyable-code {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.prompt-panel .copyable-code + p {
  border-top: 1px solid var(--separator);
}
.prompt-panel .copyable-code pre {
  max-height: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt-panel .copyable-code pre code {
  overflow-wrap: anywhere;
  word-break: normal;
}
.prompt-choice-list {
  display: grid;
}
.prompt-choice {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--separator);
}
.prompt-choice:first-child {
  border-top: 0;
}
.prompt-choice-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}
.prompt-choice-title h3 {
  margin: 0 0 4px;
  color: var(--label);
  font-size: 1rem;
}
.prompt-choice-title p {
  margin: 0;
  color: var(--secondary-label);
  font-size: 0.93rem;
}
.prompt-choice-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.prompt-version-toggle {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  width: min(100%, 24rem);
  align-items: center;
  padding: 3px;
  border: 1px solid var(--separator);
  border-radius: var(--control-radius);
  background: var(--tertiary-system-background);
}
.prompt-version-button {
  min-width: min-content;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: calc(var(--control-radius) - 3px);
  background: transparent;
  color: var(--secondary-label);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.25;
  cursor: pointer;
}
.prompt-version-button:hover {
  color: var(--label);
  background: var(--system-fill);
}
.prompt-version-button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.prompt-version-button.is-active {
  background: var(--spark-primary-accessible);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}
.prompt-version-panel[hidden] {
  display: none;
}
.prompt-version-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  background: #1f1f24;
}
.prompt-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #17171c;
}
.prompt-panel-toolbar .copy-button {
  background: #ffffff;
  color: #212529;
}
.prompt-version-label {
  display: block;
  margin: 0;
  color: rgba(245, 245, 247, 0.72);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}
.prompt-choice.is-comparing .prompt-version-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.worked-example {
  margin: 24px 0;
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  background: var(--secondary-system-background);
}
.worked-example summary {
  padding: 16px 18px;
  cursor: pointer;
}
.worked-example summary h2,
.worked-example summary h3 {
  display: inline;
  margin: 0;
  font-size: 1.1rem;
}
.worked-example-body {
  padding: 0 18px 12px;
}
@media (max-width: 700px) {
  .prompt-choice.is-comparing .prompt-version-panels {
    grid-template-columns: minmax(0, 1fr);
  }
}
.prompt-version-panel pre {
  max-height: none;
  margin: 0;
  border-radius: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: none;
}
.prompt-version-panel pre code {
  overflow-wrap: anywhere;
  word-break: normal;
}
.portfolio-card .rhythm-shell {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--spark-primary-accessible) 8%, transparent), color-mix(in srgb, var(--spark-secondary-accessible) 5%, transparent) 56%, transparent),
    var(--secondary-system-background);
}
.completion-card .checklist {
  margin: 0;
}
.completion-card .checklist li {
  padding: 8px 0;
  border-bottom: 1px solid var(--separator);
}
.completion-card .checklist li:last-child {
  border-bottom: 0;
}
@media (max-width: 720px) {
  .spark-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .spark-card,
  .dashboard-callout,
  .alert-callout,
  .task-panel .rhythm-shell,
  .review-card .rhythm-shell,
  .portfolio-card .rhythm-shell,
  .completion-card .rhythm-shell {
    box-shadow: none;
  }
  .rhythm-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .rhythm-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 44px;
  }
  .prompt-choice-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .prompt-choice-controls {
    justify-content: flex-start;
  }
  .flow-section .rhythm-body {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}
.copyable-section {
  margin: 30px 0 0;
}
.copyable-section-heading,
.copyable-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.copyable-section-heading {
  margin: 0 0 10px;
}
.copyable-section-heading h3,
.copyable-section-heading h4 {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
}
.copyable-section-body > :first-child {
  margin-top: 0;
}
.copyable-section-body > :last-child {
  margin-bottom: 0;
}
.copy-button {
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid var(--separator);
  border-radius: var(--control-radius);
  background: var(--secondary-system-background);
  color: var(--tint-strong);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  touch-action: manipulation;
}
.copy-button:hover {
  border-color: var(--tint);
  background: var(--selected-fill);
}
.copy-button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.copy-button[data-copy-state="copied"] {
  border-color: color-mix(in srgb, var(--green) 70%, var(--separator));
  background: color-mix(in srgb, var(--green) 16%, var(--secondary-system-background));
  color: var(--label);
}
.copy-button[data-copy-state="error"] {
  border-color: color-mix(in srgb, var(--orange) 70%, var(--separator));
  background: color-mix(in srgb, var(--orange) 16%, var(--secondary-system-background));
  color: var(--label);
}
blockquote {
  border-left: 4px solid var(--teal);
  background: var(--tertiary-system-background);
  margin: 24px 0;
  padding: 14px 18px;
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
}
blockquote p {
  margin: 0 0 12px;
}
blockquote p:last-child {
  margin-bottom: 0;
}
.copyable-code {
  margin: 18px 0 24px;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: #1f1f24;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.copyable-toolbar {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #17171c;
}
.copyable-toolbar span {
  color: rgba(245, 245, 247, 0.72);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}
.copyable-toolbar .copy-button {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
}
.copyable-toolbar .copy-button:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
}
pre {
  margin: 22px 0;
  overflow-x: auto;
  max-width: 100%;
  background: #1f1f24;
  color: #f5f5f7;
  padding: 18px;
  border-radius: var(--card-radius);
  line-height: 1.5;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre code {
  overflow-wrap: normal;
  word-break: normal;
}
.copyable-code pre {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
p code, li code {
  background: var(--system-fill);
  color: var(--label);
  padding: 2px 5px;
  border-radius: 5px;
}
.table-wrap { overflow-x: auto; margin: 22px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--secondary-system-background);
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  overflow: hidden;
}
th, td {
  border-bottom: 1px solid var(--separator);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--tertiary-system-background); color: var(--label); }
tr:last-child td { border-bottom: 0; }
ul, ol { padding-left: 24px; }
.checklist { list-style: none; padding-left: 0; }
.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  margin: 8px 0;
}
.box {
  width: 17px;
  height: 17px;
  border: 2px solid var(--tint);
  border-radius: 4px;
  margin-top: 4px;
}
.pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  width: min(calc(var(--content-width) + var(--rail-width) + var(--page-gap)), calc(100vw - var(--sidebar-width) - 56px));
  margin: 0 auto;
  padding: 0;
}
.pager-link {
  display: grid;
  gap: 3px;
  min-height: 70px;
  padding: 14px 16px;
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  background: var(--secondary-system-background);
  text-decoration: none;
  color: var(--label);
  touch-action: manipulation;
}
.pager-link:last-child { text-align: right; }
.pager-link:hover {
  border-color: var(--tint);
  background: var(--selected-fill);
}
.pager-kicker {
  color: var(--secondary-label);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.pager-link strong {
  color: var(--tint-strong);
  font-size: 0.9375rem;
  line-height: 1.25;
}
.pager-spacer {
  min-height: 1px;
}
.site-footer {
  width: min(calc(var(--content-width) + var(--rail-width) + var(--page-gap)), calc(100vw - var(--sidebar-width) - 56px));
  margin: 18px auto 0;
  padding: 0 0 52px;
  color: var(--tertiary-label);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}
.site-footer p {
  margin: 0;
  font: inherit;
}
.footer-line,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  font: inherit;
}
.footer-links::before,
.footer-links a + a::before {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0;
  content: "|";
  background: none;
  opacity: 0.42;
}
.footer-links a + a::before {
  margin-right: 0.25em;
}
.footer-links a {
  font: inherit;
}

h1,
h2,
h3,
h4,
.brand strong,
.home-link,
.journey-summary strong,
.journey-eyebrow,
.journey-next .journey-next-label,
.nav-section-title span,
.nav-kicker,
.nav-menu summary,
.menu-section-title span,
.menu-link span,
.sidebar-downloads-title span,
.sidebar-download-link span,
.copy-button,
.pager-kicker,
.pager-link strong {
  font-family: "Catamaran", "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
}
.sidebar {
  background: rgba(0, 0, 0, 0.92);
  border-right: 0;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.12);
}
.brand {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
.brand img {
  border-color: var(--spark-secondary-accessible);
  box-shadow: 0 0 0 3px rgba(208, 6, 109, 0.28);
}
.brand strong,
.nav-title {
  color: #ffffff;
}
.brand span,
.nav-kicker {
  color: rgba(255, 255, 255, 0.68);
}
.nav-section-title span,
.sidebar-downloads-title span,
.menu-section-title span {
  color: rgba(255, 255, 255, 0.94);
}
.nav-section-title small,
.sidebar-downloads-title small,
.menu-section-title small {
  color: rgba(255, 255, 255, 0.76);
}
.nav-section-title {
  border-top-color: rgba(255, 255, 255, 0.16);
}
.nav-link {
  border-left: 0;
  border-radius: var(--control-radius);
  color: #ffffff;
  padding-left: 13px;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
}
.nav-link.active {
  background: linear-gradient(90deg, var(--spark-primary-accessible) 0%, var(--spark-secondary-accessible) 100%);
  color: #ffffff;
}
.nav-link.active .nav-kicker,
.nav-link.active .nav-title {
  color: #ffffff;
}
.sidebar-downloads {
  border-top-color: rgba(255, 255, 255, 0.16);
}
.sidebar-download-link {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.sidebar-download-link:hover {
  border-color: transparent;
  background: linear-gradient(90deg, var(--spark-primary-accessible) 0%, var(--spark-secondary-accessible) 100%);
}
.sidebar-download-link span,
.sidebar-download-link strong {
  color: #ffffff;
}
.topbar {
  border-bottom: 0;
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255, 255, 255, 0.74);
}
.home-link,
.nav-menu summary,
.page-select,
.section-select,
.icon-link {
  color: #ffffff;
}
.nav-menu summary,
.page-select,
.section-select,
.icon-link {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.09);
}
.nav-menu[open] summary,
.icon-link:hover {
  border-color: transparent;
  background: linear-gradient(90deg, var(--spark-primary-accessible) 0%, var(--spark-secondary-accessible) 100%);
  color: #ffffff;
}
.menu-panel {
  border-color: rgba(208, 6, 109, 0.24);
}
.journey-progress,
.audio-intro {
  border-color: color-mix(in srgb, var(--module-color, var(--tint)) 30%, var(--separator));
}
.journey-progress {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--module-color, var(--tint)) 13%, transparent), transparent 36%),
    var(--secondary-system-background);
}
.journey-meter {
  background: color-mix(in srgb, var(--module-color, var(--tint)) 14%, var(--system-fill));
}
.journey-meter::before {
  background: color-mix(in srgb, var(--module-color, var(--tint)) 32%, transparent);
}
.journey-dot.complete {
  background: color-mix(in srgb, var(--module-color, var(--tint)) 86%, #ffffff);
}
.journey-dot.current {
  box-shadow:
    0 0 0 3px var(--module-color, var(--tint)),
    0 0 0 6px color-mix(in srgb, var(--module-color, var(--tint)) 22%, transparent);
}
.page-home .content > h1:first-child {
  margin-bottom: 22px;
  padding: 28px 30px;
  border-radius: var(--card-radius);
  background: linear-gradient(0deg, var(--spark-secondary-accessible) 0%, var(--spark-primary-accessible) 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(208, 6, 109, 0.24);
}
.audio-intro {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--module-color, var(--tint)) 10%, transparent), transparent 54%),
    var(--secondary-system-background);
}
.cover-comic-figure img {
  border-color: var(--spark-black);
}
h1 {
  font-family: "Catamaran", "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
}
h2 {
  font-family: "Catamaran", "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
}
h3 {
  color: var(--tint-strong);
}
h4 {
  color: var(--orange);
}
blockquote {
  border-left-color: var(--spark-secondary-accessible);
}
.copy-button,
.video-resource-link,
.pager-link {
  border-radius: var(--control-radius);
}
.copy-button {
  padding-inline: 14px;
}
.pager-link:hover,
.copy-button:hover,
.video-resource-link:hover {
  border-color: var(--spark-primary-accessible);
}
.site-footer {
  width: auto;
  margin: 28px 0 0;
  padding: 28px 24px 52px;
  background: #000000;
  color: rgba(255, 255, 255, 0.68);
}
.site-footer a {
  color: #ffffff;
}
.site-footer a:focus-visible {
  outline-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}
@media (max-width: 1040px) {
  .topbar-actions,
  .topbar-actions.no-next {
    grid-template-columns: 44px minmax(0, 1fr) minmax(96px, 116px);
    width: 100%;
  }
  .topbar-actions.no-prev,
  .topbar-actions.no-prev.no-next {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 116px);
  }
  .nav-prev {
    grid-column: 1;
    grid-row: 1;
  }
  .nav-page-select {
    grid-column: 2;
    grid-row: 1;
  }
  .nav-next {
    grid-column: 3;
    grid-row: 1;
  }
  .nav-section-select {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .tools-menu {
    grid-column: 3;
    grid-row: 2;
  }
  .topbar-actions.no-prev .nav-page-select,
  .topbar-actions.no-prev.no-next .nav-page-select {
    grid-column: 1;
    grid-row: 1;
  }
  .topbar-actions.no-prev .nav-next {
    grid-column: 2;
    grid-row: 1;
  }
  .topbar-actions.no-prev .nav-section-select,
  .topbar-actions.no-prev.no-next .nav-section-select {
    grid-column: 1;
    grid-row: 2;
  }
  .topbar-actions.no-prev .tools-menu,
  .topbar-actions.no-prev.no-next .tools-menu {
    grid-column: 2;
    grid-row: 2;
  }
  .topbar-actions.no-next .nav-section-select {
    grid-column: 1 / 3;
  }
  .topbar-actions.no-next .tools-menu {
    grid-column: 3;
  }
}
@media (max-width: 1180px) {
  .reading-layout {
    width: min(var(--content-width), calc(100vw - var(--sidebar-width) - 48px));
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .section-nav {
    position: static;
    order: -1;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    overflow: visible;
    border-left: 0;
    border-bottom: 1px solid var(--separator);
    padding: 0 0 14px;
  }
  .section-nav-title {
    width: 100%;
    margin-bottom: 0;
  }
  .section-link,
  .section-link.level-4 {
    width: auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 0 4px;
    box-shadow: none;
    border-bottom: 2px solid transparent;
  }
  .section-link.active {
    box-shadow: none;
    border-bottom-color: var(--tint);
  }
  .pager {
    width: min(var(--content-width), calc(100vw - var(--sidebar-width) - 48px));
  }
  .journey-progress {
    width: min(var(--content-width), calc(100vw - var(--sidebar-width) - 48px));
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "summary"
      "rail"
      "next";
  }
  .journey-next {
    justify-self: stretch;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid var(--separator);
  }
}
@media (max-width: 1180px) {
  .sidebar {
    position: static;
    width: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--separator);
    padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  }
  .brand {
    grid-template-columns: 44px 1fr;
    padding: 0 0 10px;
    margin-bottom: 10px;
  }
  .brand-image-link {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .lesson-nav {
    display: none;
  }
  .page-shell { margin-left: 0; }
  .topbar {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  }
  .nav-menu {
    position: static;
  }
  .nav-menu summary {
    width: 100%;
    justify-content: center;
  }
  .menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    width: auto;
    grid-template-columns: minmax(0, 1fr);
    max-height: min(56vh, 480px);
  }
  .mobile-menu-panel {
    max-height: min(68vh, 640px);
    background: var(--secondary-system-background);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .mobile-menu-section {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--separator);
  }
  .mobile-menu-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .reading-layout, .pager, .journey-progress {
    width: min(calc(100% - 32px), var(--content-width));
  }
  .sidebar-downloads {
    display: none;
  }
  .cover-comic-figure {
    display: none;
  }
  .journey-progress {
    margin-top: 14px;
    gap: 10px;
    padding: 12px;
  }
  .journey-rail {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .journey-meter {
    grid-template-columns: repeat(30, minmax(5px, 1fr));
    gap: 2px;
    min-height: 22px;
    padding: 6px 8px;
  }
  .journey-next {
    padding-top: 8px;
  }
  .journey-next a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .reading-layout {
    padding-top: 22px;
    padding-bottom: 44px;
  }
  .copyable-section-heading {
    align-items: flex-start;
  }
  .video-resource {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .video-resource-mark {
    width: 42px;
    height: 42px;
  }
  .video-resource-link {
    grid-column: 1 / -1;
    width: 100%;
  }
  .copy-button,
  .copyable-toolbar .copy-button {
    min-height: 44px;
  }
  .copyable-toolbar {
    padding: 9px 10px;
  }
  .section-nav {
    display: none;
  }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-link:last-child { text-align: left; }
  h1 { font-size: 2.18rem; }
  h2 { font-size: 1.52rem; }
}
@media (max-width: 560px) {
  .topbar-actions,
  .topbar-actions.no-prev,
  .topbar-actions.no-next,
  .topbar-actions.no-prev.no-next {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
  }
  .nav-prev,
  .nav-next,
  .nav-section-select,
  .tools-menu {
    display: none;
  }
  .nav-page-select,
  .topbar-actions.no-prev .nav-page-select,
  .topbar-actions.no-next .nav-page-select,
  .topbar-actions.no-prev.no-next .nav-page-select {
    grid-column: 1;
    grid-row: 1;
  }
  .mobile-menu {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }
  .page-select {
    height: 50px;
    font-size: 0.9375rem;
    padding-left: 12px;
    padding-right: 30px;
  }
  .nav-select::after {
    right: 13px;
  }
  .nav-select-label {
    left: 12px;
    top: 6px;
  }
  .mobile-menu summary {
    width: auto;
    min-width: 74px;
    padding: 0 10px;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 760;
  }
  .mobile-menu[open] summary {
    border-color: transparent;
    background: linear-gradient(90deg, var(--spark-primary-accessible) 0%, var(--spark-secondary-accessible) 100%);
    color: #ffffff;
  }
  .menu-panel {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
  }
  .journey-progress {
    gap: 10px;
    margin-top: 10px;
  }
  .journey-rail {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .journey-percent {
    text-align: left;
    white-space: nowrap;
  }
  .journey-summary strong {
    font-size: 1rem;
  }
  .journey-module,
  .journey-title,
  .journey-next {
    font-size: 0.75rem;
  }
}
/* Shared web adaptations of Apple's accessibility and interaction guidance. */
.topbar, .sidebar, .site-footer { --focus-ring: #ffffff; }
.prompt-version-panel, .copyable-code { --focus-ring: #ffffff; }
.copy-feedback { margin: 12px 0 0; padding: 12px 16px; color: var(--label); }
.prompt-version-panel .copy-feedback, .copyable-code .copy-feedback { color: #f5f5f7; }
.copy-feedback[hidden] { display: none; }
.section-link, .course-progress a, .sidebar-download-link, .menu-link {
  min-height: 44px;
}
.site-footer a { display: inline-block; min-height: 44px; padding-block: 12px; }
.nav-menu summary, .lesson-roadmap summary, .worked-example summary { touch-action: manipulation; }
.nav-menu summary { padding-block: 8px; }
.page-select, .section-select { height: auto; min-height: 3.25rem; padding-top: 1.25rem; padding-bottom: 0.5rem; }
.prompt-choice-controls { min-width: 0; }
.prompt-choice-head { grid-template-columns: minmax(0, 1fr); }
.prompt-choice-controls { justify-content: flex-start; }
.prompt-panel-toolbar, .copyable-toolbar, .copyable-section-heading { flex-wrap: wrap; }
.prompt-version-label { flex: 1 1 8em; }
.copy-button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .sidebar, .topbar { background: #000000; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-panel { background: var(--secondary-system-background); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .lesson-answer, .rhythm-card, .audio-intro { background: var(--secondary-system-background); }
  .nav-link.active, .prompt-version-button.is-active, .nav-menu[open] summary { outline: 2px solid currentColor; outline-offset: -2px; }
}
@media (forced-colors: active) {
  :root { --focus-ring: Highlight; --label: CanvasText; --tint: LinkText; --tint-strong: LinkText; --separator: CanvasText; }
  .sidebar, .topbar, .menu-panel, .site-footer, .prompt-version-panel, .copyable-code, pre { background: Canvas; color: CanvasText; }
  a, button, summary, select { forced-color-adjust: auto; }
  .prompt-version-button.is-active, .nav-link.active { background: Highlight; color: HighlightText; border: 2px solid Highlight; forced-color-adjust: none; }
  .nav-link.active .nav-kicker, .nav-link.active .nav-title { color: HighlightText; }
  :focus-visible { outline: 3px solid Highlight !important; }
}
@media print {
  .sidebar, .topbar, .pager, .section-nav, .journey-progress, .copy-button, .copyable-toolbar { display: none; }
  .page-shell { margin: 0; }
  .reading-layout { display: block; width: auto; padding: 0; }
  .content { width: auto; padding: 0; }
  .copyable-code { box-shadow: none; }
  .spark-card-grid,
  .dashboard-row-list {
    display: block;
    padding: 0;
  }
  .learning-component,
  .rhythm-section,
  .spark-card,
  .dashboard-callout,
  .alert-callout,
  .task-panel .rhythm-shell,
  .review-card .rhythm-shell,
  .portfolio-card .rhythm-shell,
  .completion-card .rhythm-shell {
    break-inside: avoid;
    box-shadow: none;
    background: #ffffff;
  }
  .spark-card,
  .dashboard-callout,
  .alert-callout,
  .task-panel .rhythm-shell,
  .review-card .rhythm-shell,
  .portfolio-card .rhythm-shell,
  .completion-card .rhythm-shell {
    margin: 0 0 10px;
    border: 1px solid #999999;
  }
  .flow-section .rhythm-body {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .rhythm-heading,
  .task-panel .rhythm-heading,
  .review-card .rhythm-heading,
  .portfolio-card .rhythm-heading,
  .completion-card .rhythm-heading {
    padding: 0;
    border-bottom: 0;
  }
  .task-panel .rhythm-body,
  .review-card .rhythm-body,
  .portfolio-card .rhythm-body,
  .completion-card .rhythm-body {
    padding: 0;
  }
  .component-icon,
  .alert-accent,
  .status-pill,
  .section-badge {
    display: none;
  }
}
:root {
  --cue: #946012;
  --cue-fill: #fbf0d9;
  --cue-border: #ddc795;
  --folio: #32655c;
  --folio-fill: #e5f2ee;
  --folio-border: #b4cec5;
  --prism: #695277;
  --prism-fill: #f2edf5;
  --prism-border: #d6cadd;
}
@media (prefers-color-scheme: dark) {
:root {
  --cue: #eec77c;
  --cue-fill: #352f24;
  --cue-border: #776747;
  --folio: #9ccabb;
  --folio-fill: #233c35;
  --folio-border: #527c6c;
  --prism: #c2afdb;
  --prism-fill: #332d40;
  --prism-border: #766586;
}
}
/* Approved Cue, Folio, and Prism course theme. Shared controls retain native behavior. */
:root {
  --label: #243b35;
  --secondary-label: #53645f;
  --tertiary-label: #53645f;
  --system-background: #f7f3e9;
  --secondary-system-background: #fffdf7;
  --tertiary-system-background: #eef1e8;
  --grouped-background: #f7f3e9;
  --separator: #d4dacc;
  --opaque-separator: #d4dacc;
  --material: #fffdf7;
  --material-strong: #fffdf7;
  --system-fill: #e9ede3;
  --system-fill-strong: #dce4d7;
  --selected-fill: #f8e6ed;
  --orange: var(--cue);
  --teal-accessible: var(--folio);
  --teal: var(--folio);
  --green: var(--folio);
  --card-radius: 18px;
  --focus-ring: #243b35;
}
body { line-height: 1.65; }
h1, h2, h3, h4 { color: var(--label); letter-spacing: -.015em; }
h1, h2 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
h1 { font-size: clamp(2rem, 4vw, 2.65rem); font-weight: 750; line-height: 1.14; }
h2 { font-weight: 700; line-height: 1.25; }
.page-home .content > h1:first-child {
  padding: 0;
  margin: 0 0 24px;
  background: none;
  color: var(--label);
  border-radius: 0;
  box-shadow: none;
}
.sidebar, .topbar { background: var(--material); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sidebar { box-shadow: none; border-right: 1px solid var(--separator); }
.topbar, .sidebar, .prompt-version-panel, .copyable-code { --focus-ring: var(--label); }
.site-footer { --focus-ring: #ffffff; }
.brand, .nav-section-title, .sidebar-downloads { border-color: var(--separator); }
.brand strong, .brand span, .nav-title, .nav-kicker, .nav-link,
.nav-section-title span, .sidebar-downloads-title span, .menu-section-title span,
.nav-section-title small, .sidebar-downloads-title small, .menu-section-title small,
.sidebar-download-link span, .sidebar-download-link strong, .home-link { color: var(--label); }
.brand span, .nav-kicker, .nav-section-title small, .sidebar-downloads-title small, .menu-section-title small { color: var(--secondary-label); }
.nav-link:hover { background: var(--tertiary-system-background); }
.nav-link.active, .nav-link.active .nav-title, .nav-link.active .nav-kicker { color: var(--folio); }
.nav-link.active { background: var(--folio-fill); box-shadow: inset 3px 0 0 var(--folio); }
.sidebar-download-link, .sidebar-download-link:hover { color: var(--label); background: var(--tertiary-system-background); border-color: var(--separator); }
.nav-menu summary, .page-select, .section-select, .icon-link {
  color: var(--label); background: var(--secondary-system-background); border-color: var(--separator);
}
.nav-menu[open] summary, .icon-link:hover { color: var(--tint-strong); background: var(--selected-fill); border-color: var(--tint); }
.topbar { color: var(--secondary-label); border-bottom: 1px solid var(--separator); }
.nav-select-label { color: var(--secondary-label); text-shadow: none; }
.nav-select:focus-within .nav-select-label { color: var(--tint-strong); }
.prompt-version-label { color: var(--secondary-label); }
.prompt-version-panel .copy-feedback, .copyable-code .copy-feedback { color: var(--label); background: var(--secondary-system-background); }
.topbar, .sidebar, .section-nav, .journey-progress { border-color: var(--separator); }
.module-orientation, .module-capstone, .page-shell.module-orientation, .page-shell.module-capstone { --module-color: var(--cue); --module-text-color: var(--cue); }
.module-chatgpt, .module-gemini, .module-guide, .page-shell.module-chatgpt, .page-shell.module-gemini, .page-shell.module-guide { --module-color: var(--folio); --module-text-color: var(--folio); }
.module-notebooklm, .module-chatgpt-work, .page-shell.module-notebooklm, .page-shell.module-chatgpt-work { --module-color: var(--prism); --module-text-color: var(--prism); }
.journey-progress, .audio-intro, .lesson-answer, .rhythm-card,
.spark-card, .dashboard-callout, .alert-callout, .video-resource,
.prompt-choice, .prompt-version-panel, .copyable-section, .learning-component {
  background: var(--secondary-system-background);
  border-color: var(--separator);
  box-shadow: none;
}
.lesson-answer { border-inline-start: 4px solid var(--module-color, var(--folio)); padding: 24px; }
.rhythm-section, .learning-component { margin-block: 28px; }
.rhythm-section { border-radius: var(--card-radius); }
.portfolio-card { --section-accent: var(--prism); }
.completion-card { --section-accent: var(--folio); }
.task-panel .rhythm-shell, .review-card .rhythm-shell, .portfolio-card .rhythm-shell, .completion-card .rhythm-shell {
  background: var(--secondary-system-background); box-shadow: none;
}
.rhythm-card { border-radius: 14px; }
.rhythm-card-head, .copyable-toolbar, .prompt-panel-toolbar { background: var(--tertiary-system-background); }
.rhythm-card-head, .prompt-panel-toolbar { border-color: var(--separator); }
.component-icon, .component-kicker, .dashboard-row .component-icon { color: var(--folio); }
.rhythm-section .component-icon { color: var(--prism); }
.alert-head .component-icon, .alert-accent { color: var(--cue); }
.alert-accent { background: var(--cue); }
.status-pill, .rhythm-badge { color: var(--folio); background: var(--folio-fill); border-color: var(--separator); }
.prompt-choice { border-radius: var(--card-radius); }
.prompt-version-panels { gap: 16px; }
pre, .prompt-version-panel pre { background: var(--tertiary-system-background); border-color: var(--separator); color: var(--label); }
blockquote { background: var(--cue-fill); border-left-color: var(--cue); color: var(--label); }
.cover-comic-figure, .teaching-scene { margin: 24px 0; }
.cover-comic-figure img, .teaching-scene img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f7f3e9;
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  box-shadow: none;
}
.teaching-scene figcaption { color: var(--secondary-label); font-size: .9375rem; margin-top: 10px; line-height: 1.5; }
.lesson-roadmap, .worked-example { background: var(--secondary-system-background); border-color: var(--separator); border-radius: var(--card-radius); }
.lesson-roadmap > summary, .worked-example > summary { color: var(--folio); min-height: 44px; padding: 14px 18px; }
.lesson-roadmap .teaching-scene { margin: 0 16px 18px; }
.partner-introduction { margin-block: 42px; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 16px; margin-top: 24px; }
.partner-card { min-width: 0; padding: 20px; border: 1px solid var(--separator); border-radius: var(--card-radius); background: var(--secondary-system-background); }
.partner-card h3 { font-size: 1.125rem; line-height: 1.35; margin: 0 0 16px; color: var(--label); }
.partner-card p { font-size: 1rem; }
.partner-card .character-portrait { margin: 0 0 20px; padding: 14px; border-radius: 14px; background: #f7f3e9; }
.character-portrait img { display: block; width: 100%; height: 160px; object-fit: contain; margin: 0; border: 0; box-shadow: none; }
.partner-cue { border-top: 4px solid var(--cue); }
.partner-folio { border-top: 4px solid var(--folio); }
.partner-prism { border-top: 4px solid var(--prism); }
.character-dialogue { margin-block: 22px; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--separator); background: var(--tertiary-system-background); }
.character-dialogue p { margin: 0; color: var(--label); }
.character-dialogue p + p { margin-top: 16px; }
.character-dialogue [data-speaker="cue"] strong { color: var(--cue); }
.character-dialogue [data-speaker="folio"] strong { color: var(--folio); }
.character-dialogue [data-speaker="prism"] strong { color: var(--prism); }
.partner-card .character-dialogue { padding: 12px 14px; font-size: .9375rem; }
.partner-card > :last-child { margin-bottom: 0; }
.site-footer { background: #1b302b; color: #c9d6ce; }
@media (max-width: 700px) {
  .partner-grid { grid-template-columns: minmax(0, 1fr); }
  .partner-card { padding: 22px; }
  .character-portrait img { height: 150px; }
  .lesson-answer { padding: 20px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --label: #eef2ea;
    --secondary-label: #b7c4bd;
    --tertiary-label: #b7c4bd;
    --system-background: #101a1b;
    --secondary-system-background: #1b2829;
    --tertiary-system-background: #253536;
    --grouped-background: #101a1b;
    --separator: #435652;
    --opaque-separator: #435652;
    --material: #1b2829;
    --material-strong: #1b2829;
    --system-fill: #253536;
    --system-fill-strong: #344a46;
    --selected-fill: #493044;
    --focus-ring: #eef2ea;
  }
}
@media (prefers-contrast: more) {
  :root { --separator: currentColor; --opaque-separator: currentColor; }
  .partner-card, .character-dialogue, .lesson-answer, .rhythm-card { border-width: 2px; }
}
@media (forced-colors: active) {
  :root { --label: CanvasText; --secondary-label: CanvasText; --cue: CanvasText; --folio: CanvasText; --prism: CanvasText; --separator: CanvasText; --focus-ring: Highlight; }
  .partner-card, .character-dialogue, .lesson-answer, .rhythm-card { color: CanvasText; background: Canvas; border: 1px solid CanvasText; }
  a, button, summary { forced-color-adjust: auto; }
}
@media print {
  .partner-grid { display: block; }
  .partner-card { margin-bottom: 16px; break-inside: avoid; }
  .partner-card, .character-dialogue { color: #243b35; background: white; }
}

/* Small, character-led practice moments. Keep the teaching readable without art. */
.partner-avatar { flex: 0 0 64px; width: 64px; height: 80px; object-fit: contain; border: 0; box-shadow: none; background: none; }
.partner-heading, .partner-turn { display: flex; gap: 16px; align-items: center; min-width: 0; }
.partner-heading > div, .partner-turn > p { min-width: 0; }
.partner-heading h2, .partner-heading h3 { margin: 4px 0 8px; }
.partner-heading p { margin: 0; }
.partner-turn + .partner-turn { margin-top: 14px; }
.partner-turn p { flex: 1; }
.partner-card .partner-avatar { display: none; }
.partner-card .character-dialogue { border: 0; background: none; padding: 0; }
.partner-card .character-portrait { padding: 8px; margin-bottom: 16px; }
.partner-card h3 { margin-bottom: 12px; }
.practice-start { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 12px; background: var(--folio); color: var(--secondary-system-background); font-weight: 650; text-decoration: none; }
.practice-start:hover { text-decoration: underline; color: var(--secondary-system-background); }
.practice-permission { display: block; margin-top: 12px; font-size: .9375rem; color: var(--secondary-label); }
.page-lesson .flow-section .rhythm-shell { border: 0; padding-inline: 0; background: none; box-shadow: none; }
.page-lesson .flow-section .rhythm-heading { padding: 0; border: 0; background: none; }
.page-lesson .flow-section .rhythm-body { padding: 0; }
.rhythm-heading .partner-avatar { width: 48px; height: 60px; flex-basis: 48px; }
.rhythm-heading .component-kicker:empty { display: none; }
.wobble-check { margin-block: 28px; padding: 24px; background: var(--prism-fill); border: 1px solid var(--separator); border-radius: var(--card-radius); }
.wobble-check .component-kicker { color: var(--prism); }
.wobble-draft { padding: 14px 16px; background: var(--secondary-system-background); border-radius: 12px; }
.wobble-options { list-style: none; padding: 0; }
.wobble-options li { padding: 8px 0; margin: 0; }
.wobble-answer, .extra-practice, .lesson-source-details { border: 1px solid var(--separator); border-radius: 12px; background: var(--secondary-system-background); }
.wobble-answer summary, .extra-practice summary, .lesson-source-details summary { min-height: 44px; padding: 12px 16px; color: var(--prism); cursor: pointer; font-weight: 600; }
.wobble-answer p, .extra-practice p, .lesson-source-details p { padding-inline: 16px; }
.wobble-encouragement { font-size: .9375rem; color: var(--secondary-label); }
.lesson-finish { border-top: 1px solid var(--separator); padding-block: 28px; margin-block: 32px; }
.lesson-finish .course-progress { margin-top: 20px; }
.lesson-finish .lesson-path, .lesson-finish .lesson-source-details { font-size: .9375rem; }
.extra-practice { margin-top: 16px; }
@media (max-width: 700px) {
  .partner-heading, .partner-turn { gap: 12px; }
  .partner-avatar { width: 48px; height: 60px; flex-basis: 48px; }
  .wobble-check { padding: 18px; }
}
@media (forced-colors: active) {
  .practice-start { color: HighlightText; background: Highlight; }
  .wobble-check, .wobble-answer, .extra-practice, .lesson-source-details { color: CanvasText; background: Canvas; border-color: CanvasText; }
}
.content .partner-avatar { height: 80px; }
.rhythm-section .rhythm-heading { display: flex; align-items: center; gap: 14px; }
.rhythm-title-stack h2, .rhythm-title-stack h3 { margin: 0; font-size: 1.45rem; line-height: 1.3; }
.rhythm-title-stack { gap: 6px; }
.rhythm-heading .component-kicker { margin-bottom: 6px; }
.content .rhythm-heading .partner-avatar { height: 60px; }
.page-lesson .create-panel .rhythm-shell { background: none; border: 0; padding-inline: 0; }
.page-lesson .create-panel .rhythm-heading, .page-lesson .create-panel .rhythm-body { padding-inline: 0; }
.page-lesson .create-panel .rhythm-heading { background: none; border: 0; }
.wobble-check { scroll-margin-top: 110px; }
@media (max-width: 700px) { .content .partner-avatar { height: 60px; } }
.page-lesson .flow-section .rhythm-body { margin-left: 0; border-left: 0; }

/* A pane belongs to its teaching partner, independently of the lesson module. */
[data-partner="cue"], .partner-cue { --partner-accent: var(--cue); --partner-fill: var(--cue-fill); --partner-border: var(--cue-border); }
[data-partner="folio"], .partner-folio { --partner-accent: var(--folio); --partner-fill: var(--folio-fill); --partner-border: var(--folio-border); }
[data-partner="prism"], .partner-prism { --partner-accent: var(--prism); --partner-fill: var(--prism-fill); --partner-border: var(--prism-border); }
.lesson-answer[data-partner] { background: var(--partner-fill); border-color: var(--partner-border); border-inline-start-color: var(--partner-accent); }
.lesson-answer[data-partner] .lesson-answer-kicker { color: var(--partner-accent); }
.lesson-answer[data-partner] .practice-start { background: var(--partner-accent); color: var(--system-background); }
.rhythm-section[data-partner] { --section-accent: var(--partner-accent); --tint: var(--partner-accent); --tint-strong: var(--partner-accent); }
.rhythm-section[data-partner] .rhythm-shell { background: var(--partner-fill); border-color: var(--partner-border); }
.rhythm-section[data-partner] .rhythm-heading { background: none; border-color: var(--partner-border); }
.rhythm-section[data-partner] .component-kicker { color: var(--partner-accent); }
.rhythm-section[data-partner] .prompt-version-button.is-active { color: var(--system-background); background: var(--partner-accent); border-color: var(--partner-accent); }
.lesson-finish[data-partner] { background: var(--partner-fill); border: 1px solid var(--partner-border); border-radius: var(--card-radius); padding: 24px; }
.partner-card { background: var(--partner-fill); border-color: var(--partner-border); }
.partner-card h3 { color: var(--partner-accent); }
.partner-card .character-portrait { background: transparent; }
.character-dialogue { padding: 0; border: 0; background: none; }
.character-dialogue .partner-turn { padding: 14px 16px; border: 1px solid var(--partner-border); border-radius: 14px; background: var(--partner-fill); }
.partner-card .character-dialogue .partner-turn { padding: 0; border: 0; background: transparent; }
.wobble-check[data-partner] { border-color: var(--partner-border); }
@media (max-width: 700px) { .lesson-finish[data-partner] { padding: 20px; } }
@media (prefers-contrast: more) {
  [data-partner], .partner-card { --partner-border: currentColor; }
}
@media (forced-colors: active) {
  :root { --cue-fill: Canvas; --folio-fill: Canvas; --prism-fill: Canvas; --cue-border: CanvasText; --folio-border: CanvasText; --prism-border: CanvasText; }
  [data-partner], .partner-card { --partner-fill: Canvas; --partner-accent: CanvasText; --partner-border: CanvasText; }
  .lesson-answer[data-partner] .practice-start,
  .rhythm-section[data-partner] .prompt-version-button.is-active { background: Highlight; color: HighlightText; border-color: Highlight; }
}

/* Prism keeps the end-of-day quiz small, calm, and easy to operate. */
.lesson-quiz { margin-block: 32px; padding: 24px; background: var(--partner-fill); border: 1px solid var(--partner-border); border-radius: var(--card-radius); scroll-margin-top: 110px; }
.lesson-quiz [hidden] { display: none !important; }
.lesson-quiz .component-kicker, .quiz-progress { color: var(--partner-accent); font-weight: 650; }
.lesson-quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lesson-quiz legend { float: none; width: 100%; padding: 0; margin-bottom: 16px; font-size: 1.125rem; font-weight: 650; line-height: 1.5; color: var(--label); scroll-margin-top: 110px; }
.quiz-choices { display: grid; gap: 10px; }
.quiz-choice { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 12px 16px; border: 1px solid var(--partner-border); border-radius: 12px; background: var(--secondary-system-background); cursor: pointer; line-height: 1.5; }
.quiz-choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: .2em 0 0; accent-color: var(--partner-accent); }
.quiz-choice span { min-width: 0; overflow-wrap: anywhere; }
.quiz-choice:has(input:checked) { border: 2px solid var(--partner-accent); padding: 11px 15px; }
.quiz-choice:has(input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.quiz-choice:has(input:disabled) { cursor: default; }
.quiz-feedback { padding: 12px 16px; border-inline-start: 3px solid var(--partner-accent); background: var(--secondary-system-background); border-radius: 8px; }
.quiz-feedback:empty { display: none; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.quiz-actions button, .quiz-done button { font: inherit; font-weight: 650; min-height: 44px; padding: 10px 18px; background: var(--partner-accent); color: var(--system-background); border: 1px solid var(--partner-accent); border-radius: 12px; cursor: pointer; }
.quiz-actions button:focus-visible, .quiz-done button:focus-visible, .lesson-quiz legend:focus-visible, .quiz-done:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.quiz-permission { margin-bottom: 0; font-size: .9375rem; color: var(--secondary-label); }
@media (max-width: 700px) { .lesson-quiz { padding: 18px; } }

/* Optional official videos share their host's palette and native disclosure behavior. */
.lesson-video { margin-block: 32px; padding: 24px; background: var(--partner-fill); border: 1px solid var(--partner-border); border-radius: var(--card-radius); }
.lesson-video .component-kicker { color: var(--partner-accent); }
.lesson-video .partner-heading h3 { margin-block: 6px 0; }
.video-player-disclosure { border: 1px solid var(--partner-border); border-radius: 14px; background: var(--secondary-system-background); }
.video-player-disclosure summary { min-height: 44px; padding: 16px; color: var(--partner-accent); font-weight: 650; cursor: pointer; overflow-wrap: anywhere; }
.video-player-disclosure summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.video-player-disclosure .video-embed { width: calc(100% - 24px); margin: 0 12px 12px; min-height: 202px; box-shadow: none; }
.lesson-video .video-embed-note { margin-bottom: 0; }
@media (max-width: 700px) { .lesson-video { padding: 18px; } .video-player-disclosure summary { padding: 14px; } .video-player-disclosure .video-embed { width: calc(100% - 16px); margin-inline: 8px; } }
@media (forced-colors: active) { .video-player-disclosure { border-color: CanvasText; } .video-player-disclosure summary { color: LinkText; } }
@media (forced-colors: active) {
  .quiz-choice, .quiz-feedback { color: CanvasText; background: Canvas; border-color: CanvasText; }
  .quiz-choice:has(input:checked) { border-color: Highlight; }
  .quiz-actions button, .quiz-done button { background: Highlight; color: HighlightText; border-color: Highlight; }
}

/* Complete character podcasts keep the learner in control of playback. */
.character-podcast { padding: 24px; background: var(--podcast-fill); }
.podcast-host-cue { --podcast-fill: var(--cue-fill); }
.podcast-host-folio { --podcast-fill: var(--folio-fill); }
.podcast-host-prism { --podcast-fill: var(--prism-fill); }
.podcast-cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 28rem; gap: 12px; }
.podcast-friend { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 12px 6px; border: 2px solid transparent; border-radius: 14px; font-weight: 700; color: var(--secondary-label); text-align: center; }
.podcast-friend img { object-fit: contain; }
.podcast-friend:not(.is-narrator) { background: transparent; color: var(--secondary-label); }
.podcast-friend:not(.is-narrator) img { opacity: .65; filter: saturate(.4); }
.podcast-friend-cue.is-narrator { background: var(--cue-fill); color: var(--cue); border-color: var(--cue); }
.podcast-friend-folio.is-narrator { background: var(--folio-fill); color: var(--folio); border-color: var(--folio); }
.podcast-friend-prism.is-narrator { background: var(--prism-fill); color: var(--prism); border-color: var(--prism); }
.podcast-host-label { font-size: .75rem; line-height: 1.3; }
@media (forced-colors: active) { .podcast-friend.is-narrator { border-color: Highlight; } .podcast-friend:not(.is-narrator) img { opacity: 1; filter: none; } }
.podcast-duration { font-size: .9rem; }
.podcast-chapters summary, .audio-transcript summary { min-height: 44px; padding-block: 10px; cursor: pointer; color: var(--label); }
.podcast-chapter-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.podcast-chapter { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; background: var(--secondary-system-background); color: var(--label); border: 1px solid var(--separator); border-radius: 12px; text-align: left; font: inherit; cursor: pointer; }
.podcast-chapter:hover { background: var(--tertiary-system-background); }
.podcast-chapter time { color: var(--secondary-label); font-variant-numeric: tabular-nums; white-space: nowrap; }
.podcast-status { margin: 0; font-size: .9rem; }
.podcast-status:empty { display: none; }
@media (max-width: 600px) { .character-podcast { padding: 16px; } .podcast-cast { gap: 6px; } .podcast-friend { padding: 10px 4px; font-size: .9rem; } .podcast-friend img { width: 32px; height: 46px; } }
