:root {
  --ink: #17242a;
  --ink-soft: #526166;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #dedbd2;
  --navy: #15333a;
  --teal: #16756f;
  --blue: #446f92;
  --gold: #c49b3f;
  --coral: #b85845;
  --mint: #edf5f2;
  --sky: #edf3f8;
  --shadow: 0 12px 28px rgba(23, 36, 42, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
  padding: 0.85rem 2rem;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-weight: 900;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
  margin-top: 0.08rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.55rem 0.72rem;
  border-radius: 4px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--navy);
  background: var(--mint);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
}

.offer-banner {
  max-width: calc(var(--max) + 64px);
  margin: 0.6rem auto 0;
  padding: 0.75rem 2rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  background: #f3efe2;
  border: 1px solid #e2d5af;
  color: var(--ink);
}

.offer-banner span {
  color: var(--ink-soft);
}

main {
  overflow: hidden;
  scroll-margin-top: 6rem;
}

.home-hero,
.page-hero,
.section,
.site-footer,
.article-page {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 2rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 3.2rem;
  align-items: start;
  padding-block: 4.8rem 3.2rem;
  border-bottom: 1px solid var(--line);
}

.editorial-hero {
  min-height: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  color: var(--ink);
}

.hero-copy .kicker {
  color: var(--teal);
}

.kicker {
  margin: 0 0 0.65rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 680;
  line-height: 1.07;
  letter-spacing: 0;
}

.hero-copy h1 {
  color: var(--navy);
  font-size: 3.45rem;
  max-width: 720px;
}

h1 {
  font-size: 3rem;
  max-width: 780px;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  margin-top: 1.25rem;
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.plain-intro {
  max-width: 660px;
  color: var(--ink);
  font-size: 1.02rem;
}

.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.76rem 1rem;
  border: 2px solid var(--teal);
  border-radius: 4px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  white-space: nowrap;
}

.button:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.button.secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.quiet-actions {
  align-items: baseline;
}

.quiet-actions .text-link {
  font-size: 1rem;
}

.text-link.strong {
  color: var(--navy);
}

.button.small {
  min-height: 2.2rem;
  padding: 0.45rem 0.68rem;
  font-size: 0.86rem;
}

.button.full {
  width: 100%;
}

.text-link {
  color: var(--teal);
  font-weight: 850;
  text-decoration-color: rgba(8, 118, 111, 0.35);
  text-underline-offset: 0.22em;
}

.snapshot-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.snapshot-line span {
  padding: 0.45rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.unit-jump {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 680px;
  margin-top: 1.35rem;
}

.unit-jump a {
  display: flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.65rem;
  background: var(--mint);
  border: 1px solid #c7ded8;
  color: var(--navy);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.unit-jump a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.teacher-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: none;
}

.teacher-intro img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.teacher-intro div {
  padding: 1.25rem;
}

.teacher-intro h2 {
  font-size: 1.32rem;
  margin-bottom: 0.7rem;
}

.editorial-card {
  margin-top: 0.45rem;
}

.teacher-intro p:not(.kicker) {
  color: var(--ink-soft);
}

.section {
  padding-block: 3.2rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  max-width: 760px;
}

.unit-groups {
  display: grid;
  gap: 0.85rem;
}

.unit-group {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  background: transparent;
  border: 1px solid var(--line);
  border-width: 1px 0 0;
}

.unit-group:nth-child(2) {
  border-left-color: transparent;
}

.unit-group:nth-child(3) {
  border-left-color: transparent;
}

.unit-group:nth-child(4) {
  border-left-color: transparent;
}

.unit-group h3 {
  margin-bottom: 0.35rem;
}

.unit-group p {
  color: var(--ink-soft);
  margin: 0;
}

.unit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.unit-links a,
.compact-list a,
.tag-row span,
.filter-button {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(19, 35, 42, 0.15);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.unit-links a:hover,
.compact-list a:hover,
.filter-button:hover,
.filter-button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.contrast-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: center;
  max-width: none;
  padding-inline: max(2rem, calc((100vw - var(--max)) / 2 + 2rem));
  background: var(--navy);
  color: #fff;
}

.contrast-band h2 {
  color: #fff;
}

.contrast-band p:not(.kicker) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.contrast-band .kicker {
  color: var(--gold);
}

.compact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.compact-list a {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.page-hero {
  padding-block: 3.1rem 2.2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact h1 {
  font-size: 2.7rem;
}

.page-hero p:not(.kicker) {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 1.5rem;
  align-items: center;
}

.about-hero img {
  width: 230px;
  height: 230px;
  object-fit: cover;
  border: 8px solid var(--surface);
  box-shadow: var(--shadow);
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.filter-button {
  cursor: pointer;
  font: inherit;
}

.course-grid,
.blog-grid,
.resource-grid,
.related-grid,
.two-column {
  display: grid;
  gap: 1rem;
}

.course-grid {
  grid-template-columns: 1fr;
}

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

.course-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem 0;
  background: transparent;
  border: 1px solid var(--line);
  border-width: 1px 0 0;
  box-shadow: none;
}

.course-card.rotation {
  border-top-color: var(--gold);
}

.course-card.fluids {
  border-top-color: var(--blue);
}

.course-card.electricity {
  border-top-color: var(--coral);
}

.course-card.waves {
  border-top-color: #6f7bb7;
}

.course-card.modern {
  border-top-color: #8b4f9f;
}

.course-card[hidden] {
  display: none;
}

.course-card-image-link {
  display: block;
  overflow: hidden;
  align-self: start;
  border: 1px solid var(--line);
  background: var(--sky);
  text-decoration: none;
}

.course-image {
  width: 100%;
  object-fit: cover;
  background: var(--sky);
}

.course-image.card {
  aspect-ratio: 16 / 9;
}

.course-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.course-label {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-card h3 {
  margin-top: 0.35rem;
}

.course-card h3 a {
  text-decoration: none;
}

.course-card p {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  max-width: 760px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.85rem;
}

.tag-row span {
  min-height: 1.75rem;
  padding: 0.28rem 0.48rem;
  font-size: 0.74rem;
  background: var(--mint);
}

.course-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
  padding-top: 0.75rem;
}

.course-facts span,
.course-stat-grid span {
  display: inline-flex;
  gap: 0.28rem;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.course-facts strong,
.course-stat-grid strong {
  color: var(--navy);
  font-size: 1rem;
}

.card-actions {
  align-items: flex-start;
  margin-top: 0.15rem;
}

.course-exit-button {
  background: var(--navy);
  border-color: var(--navy);
}

.offer-note {
  flex-basis: 100%;
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.blog-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.blog-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 0.7fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.blog-row span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-row h3 {
  font-size: 1.22rem;
}

.blog-row h3 a {
  text-decoration: none;
}

.blog-row p {
  margin: 0;
  color: var(--ink-soft);
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
  max-width: var(--max);
  margin-inline: auto;
  padding: 2.6rem 2rem;
  border-bottom: 1px solid var(--line);
}

.course-hero-copy {
  padding: 1.25rem 0;
}

.course-hero h1 {
  font-size: 2.55rem;
  max-width: 900px;
}

.course-hero p:not(.kicker) {
  max-width: 760px;
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.course-action-panel {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: none;
}

.course-hero.rotation .course-action-panel {
  border-top-color: var(--gold);
}

.course-hero.fluids .course-action-panel {
  border-top-color: var(--blue);
}

.course-hero.electricity .course-action-panel {
  border-top-color: var(--coral);
}

.course-hero.waves .course-action-panel {
  border-top-color: #6f7bb7;
}

.course-hero.modern .course-action-panel {
  border-top-color: #8b4f9f;
}

.instructor {
  margin: 0.85rem 0;
  font-weight: 850;
}

.course-stat-grid {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.course-main {
  padding-block: 2.25rem 3rem;
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.25rem;
  align-items: start;
}

.course-primary {
  display: grid;
  gap: 1.5rem;
}

.course-primary h2,
.course-sidebar h2,
.related-section h2,
.learn-box h2 {
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}

.learn-box,
.side-panel,
.resource-card,
.blog-card,
.article-next,
.two-column article {
  background: var(--surface);
  border: 1px solid var(--line);
}

.learn-box {
  padding: 1rem;
  border-left: 0;
}

.clean-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.clean-list li + li {
  margin-top: 0.35rem;
}

.curriculum-list {
  display: grid;
  gap: 0.55rem;
}

.curriculum-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 0;
}

.curriculum-section:nth-child(3n + 2) {
  border-left-color: var(--blue);
}

.curriculum-section:nth-child(3n) {
  border-left-color: var(--gold);
}

.curriculum-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.78rem 0.9rem;
  cursor: pointer;
}

.curriculum-section summary strong {
  color: var(--navy);
}

.curriculum-section summary span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.curriculum-section ol {
  margin: 0;
  padding: 0 1rem 0.9rem 2.1rem;
  color: var(--ink-soft);
}

.curriculum-section li + li {
  margin-top: 0.2rem;
}

.course-sidebar {
  display: grid;
  gap: 1rem;
}

.side-panel {
  padding: 0.9rem;
  border-left: 0;
}

.side-panel p {
  color: var(--ink-soft);
}

.compact-head {
  margin-bottom: 0.85rem;
}

.review-section {
  margin: 0;
}

.review-controls {
  display: inline-flex;
  gap: 0.45rem;
}

.review-controls button {
  min-height: 2.1rem;
  padding: 0.35rem 0.62rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.review-controls button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.review-carousel {
  display: grid;
}

.student-review {
  display: none;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  color: inherit;
  text-decoration: none;
}

.student-review.active {
  display: block;
}

.student-review div {
  display: flex;
  align-items: baseline;
  gap: 0.32rem;
  margin-bottom: 0.55rem;
}

.student-review strong {
  color: var(--navy);
  font-size: 1.45rem;
}

.student-review span,
.student-review small {
  color: var(--ink-soft);
}

.student-review p {
  color: var(--ink-soft);
  line-height: 1.45;
}

.student-review small {
  font-weight: 850;
}

.related-section {
  margin-top: 2rem;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card,
.two-column article {
  padding: 1rem;
  text-decoration: none;
  border-top: 0;
}

.blog-card {
  overflow: hidden;
  padding: 0;
}

.blog-card-image {
  display: block;
  border-bottom: 1px solid var(--line);
}

.blog-card-image .course-image {
  aspect-ratio: 16 / 9;
}

.blog-card-body {
  padding: 1rem;
}

.resource-card:nth-child(2),
.blog-card:nth-child(2),
.two-column article:nth-child(2) {
  border-top-color: var(--blue);
}

.resource-card:nth-child(3),
.blog-card:nth-child(3) {
  border-top-color: var(--coral);
}

.resource-card span,
.blog-card span,
.article-next span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-card h2,
.blog-card h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.55rem;
}

.blog-card h2 a {
  text-decoration: none;
}

.resource-card p,
.blog-card p {
  color: var(--ink-soft);
}

.blog-grid,
.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-page {
  max-width: 860px;
  padding-block: 2.4rem 3.5rem;
}

.article-page header {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}

.article-hero-figure {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(20, 42, 56, 0.09);
}

.article-page .course-image.article-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.article-hero-figure figcaption {
  padding: 0.8rem 1rem 0.9rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.article-hero-figure figcaption span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.article-visual-prototype {
  background: var(--paper);
}

.article-visual-prototype main {
  padding: clamp(1rem, 3vw, 2.2rem);
  background: var(--paper);
}

.article-prototype-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.prototype-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  background: var(--surface);
  color: var(--ink);
}

.prototype-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.prototype-hero .breadcrumb-link {
  color: var(--teal);
}

.prototype-hero .kicker {
  margin-top: 2rem;
  color: var(--teal);
}

.prototype-hero h1 {
  max-width: 10ch;
  margin-top: 0.7rem;
  color: var(--navy);
  font-size: clamp(2.75rem, 5vw, 4.35rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.prototype-deck {
  max-width: 48ch;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.62;
}

.prototype-hero .article-detail-meta {
  margin-top: 1.5rem;
}

.prototype-hero .article-detail-meta span {
  color: var(--ink-soft);
}

.prototype-hero-figure {
  display: grid;
  grid-template-rows: minmax(330px, 1fr) auto;
  min-height: 440px;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--sky);
}

.prototype-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prototype-hero-figure::after {
  display: none;
}

.prototype-hero-figure figcaption {
  position: static;
  padding: 0.8rem 1rem 0.9rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.prototype-hero-figure figcaption span {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.prototype-chain {
  display: grid;
  grid-template-columns: 0.7fr 1.6fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--mint);
}

.prototype-chain h2 {
  margin-top: 0.3rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.prototype-chain ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.prototype-chain li {
  position: relative;
  min-height: 8.5rem;
  padding: 1.1rem;
  border: 1px solid rgba(21, 51, 58, 0.14);
  border-radius: 0.85rem;
  background: #fffdfa;
  box-shadow: 0 8px 22px rgba(21, 51, 58, 0.07);
}

.prototype-chain li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -0.69rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  content: "→";
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  transform: translateY(-50%);
}

.prototype-chain li span {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 1.3rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.prototype-chain li strong {
  display: block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.2;
}

.prototype-takeaway {
  margin: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 8vw, 8rem) 0;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border: 1px solid rgba(22, 117, 111, 0.25);
  border-left: 8px solid var(--teal);
  border-radius: 0 1rem 1rem 0;
  background: var(--mint);
}

.prototype-takeaway > p:last-child {
  max-width: 72ch;
  margin: 0.35rem 0 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.45;
}

.prototype-reading-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: clamp(2rem, 5vw, 4.5rem);
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}

.prototype-toc {
  position: sticky;
  top: 7rem;
  align-self: start;
  padding: 1.15rem;
  border-top: 4px solid var(--gold);
  background: #f5f0e6;
}

.prototype-toc > strong {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.prototype-toc ol {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
}

.prototype-toc li + li {
  margin-top: 0.55rem;
}

.prototype-toc a {
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.35;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prototype-story {
  min-width: 0;
}

.prototype-story-section {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 1rem;
  scroll-margin-top: 7rem;
}

.prototype-story-section + .prototype-story-section {
  margin-top: 4.2rem;
  padding-top: 4.2rem;
  border-top: 1px solid var(--line);
}

.prototype-section-number {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.prototype-story-section h2 {
  max-width: 20ch;
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.prototype-story-section p {
  max-width: 66ch;
  color: #3f5055;
  font-size: 1.05rem;
  line-height: 1.78;
}

.prototype-story-section p + p {
  margin-top: 1rem;
}

.prototype-story-section .article-notation {
  margin: 1.4rem 0;
  padding: 1.15rem 1.3rem;
  border: 1px solid rgba(196, 155, 63, 0.35);
  border-left: 5px solid var(--gold);
  border-radius: 0 0.75rem 0.75rem 0;
  background: #f9f3e5;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(21, 51, 58, 0.06);
}

.article-inline-figure {
  margin: 2.2rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #f7f4ed;
  box-shadow: 0 14px 34px rgba(21, 51, 58, 0.1);
}

.article-inline-figure img {
  width: 100%;
  max-height: 34rem;
  object-fit: contain;
  background: #fff;
}

.article-inline-figure figcaption {
  padding: 1rem 1.15rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.article-inline-figure figcaption span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.76rem;
}

.prototype-course-panel,
.prototype-sources {
  margin-top: 4.5rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: 1rem;
}

.prototype-course-panel {
  background: var(--navy);
  color: #fff;
}

.prototype-course-panel h2 {
  color: #fff;
}

.prototype-course-panel .kicker {
  color: #f2c96b;
}

.prototype-course-panel .review-link-list a {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.prototype-course-panel .review-link-list span {
  color: rgba(255, 255, 255, 0.72);
}

.prototype-sources {
  border: 1px solid var(--line);
  background: #f5f0e6;
}

.prototype-sources ol {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.prototype-sources li + li {
  margin-top: 0.8rem;
}

.prototype-sources li span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .prototype-hero {
    grid-template-columns: 1fr;
  }

  .prototype-hero-figure {
    min-height: 420px;
  }

  .prototype-chain {
    grid-template-columns: 1fr;
  }

  .prototype-reading-layout {
    grid-template-columns: 1fr;
  }

  .prototype-toc {
    position: static;
  }

  .prototype-toc ol {
    columns: 2;
    column-gap: 2rem;
  }
}

@media (max-width: 620px) {
  .article-visual-prototype main {
    padding: 0;
  }

  .article-prototype-shell {
    border-width: 0;
    border-radius: 0;
  }

  .prototype-hero-copy {
    padding: 2rem 1.25rem 2.5rem;
  }

  .prototype-hero h1 {
    font-size: clamp(2.9rem, 15vw, 4.4rem);
  }

  .prototype-hero-figure {
    min-height: 360px;
  }

  .prototype-chain {
    padding: 2rem 1.25rem;
  }

  .prototype-chain ol {
    grid-template-columns: 1fr 1fr;
  }

  .prototype-chain li:nth-child(2)::after {
    display: none;
  }

  .prototype-takeaway {
    margin-inline: 1.25rem;
  }

  .prototype-reading-layout {
    padding-inline: 1.25rem;
  }

  .prototype-toc ol {
    columns: 1;
  }

  .prototype-story-section {
    grid-template-columns: 1fr;
  }

  .prototype-story-section + .prototype-story-section {
    margin-top: 3rem;
    padding-top: 3rem;
  }
}

.article-page header p:not(.kicker) {
  max-width: 760px;
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.article-page section + section {
  margin-top: 1.6rem;
}

.article-page section h2 {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

.article-page section p {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.article-page section .article-notation {
  max-width: 100%;
  padding: 0.8rem 1rem;
  overflow-wrap: anywhere;
  border-left: 4px solid var(--gold);
  background: var(--paper);
  color: var(--navy);
  font-family: "Cambria Math", Cambria, Georgia, serif;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  line-height: 1.55;
}

.article-inline-notation {
  padding: 0.08em 0.28em;
  border-radius: 0.25rem;
  background: var(--paper);
  color: var(--navy);
  font-family: "Cambria Math", Cambria, Georgia, serif;
  white-space: break-spaces;
}

.article-next {
  margin-top: 2rem;
  padding: 1rem;
  border-left: 5px solid var(--gold);
}

.article-next h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.55rem;
}

.article-next p {
  color: var(--ink-soft);
}

.magazine-hero {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.magazine-hero p:last-child {
  max-width: 560px;
}

.magazine-section {
  padding-top: 1.5rem;
}

.article-taxonomy {
  display: grid;
  gap: 0.65rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.article-filter-toggle {
  display: none;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.article-filter-groups {
  display: grid;
  gap: 0.65rem;
}

.taxonomy-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.taxonomy-row > strong {
  padding-top: 0.35rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.taxonomy-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.article-filter {
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
}

.article-filter:hover {
  color: var(--teal);
  border-color: var(--line);
}

.article-filter.active {
  color: var(--navy);
  background: var(--mint);
  border-color: #cadeda;
}

.magazine-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.6rem 0 1rem;
}

.magazine-heading h2 {
  font-size: 1.75rem;
}

.magazine-heading span {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.magazine-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.magazine-grid .blog-card {
  display: flex;
  flex-direction: column;
  border-top: 0;
}

.magazine-grid .blog-card[hidden] {
  display: none;
}

.magazine-grid .blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.magazine-grid .blog-card h3 {
  margin: 0.45rem 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.magazine-grid .blog-card h3 a {
  text-decoration: none;
}

.magazine-grid .blog-card p {
  margin: 0 0 0.85rem;
}

.magazine-grid .blog-card .text-link {
  margin-top: auto;
}

.article-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.article-card-meta time {
  color: var(--ink-soft);
  font-size: 0.72rem;
  white-space: nowrap;
}

.article-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.article-topic-list span {
  padding: 0.2rem 0.38rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: none;
}

.article-empty {
  padding: 2rem 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.article-detail-meta > * {
  padding-right: 0.55rem;
  border-right: 1px solid var(--line);
}

.article-detail-meta > *:last-child {
  border-right: 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.article-learning {
  margin-top: 2.2rem;
  padding: 1.1rem 0 0;
  border-top: 3px solid var(--gold);
}

.article-learning h2 {
  margin: 0.25rem 0 0.9rem;
  font-size: 1.65rem;
}

.article-course-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.article-course-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  min-height: 78px;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.article-course-item strong a:hover,
.article-course-item strong a:focus-visible {
  color: var(--teal);
}

.article-course-image {
  display: block;
}

.course-image.article-course {
  width: 112px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.article-course-list span {
  display: grid;
  gap: 0.18rem;
}

.article-course-list strong {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.article-course-list strong a {
  text-decoration: none;
}

.article-course-list small {
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.article-course-exit {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.related-articles {
  padding-top: 0.4rem;
}

.related-articles > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.related-articles a {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.related-articles span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.article-sources {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.article-sources h2 {
  font-size: 1.2rem;
}

.article-sources ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.7rem 0;
  padding: 0;
  list-style: none;
}

.article-sources li {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.article-sources a {
  color: var(--teal);
  font-weight: 750;
}

.article-sources li span,
.article-sources p {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.muted-note {
  color: var(--ink-soft);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0.35rem 0 0;
}

.footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  font-weight: 750;
}

/* Unified editorial/course system */
.nav-item {
  position: relative;
}

.course-nav-item {
  display: inline-flex;
  align-items: stretch;
}

.course-nav-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -1rem;
  right: -1rem;
  height: 1rem;
}

.site-nav .course-nav-item .nav-menu-link {
  border-radius: 4px 0 0 4px;
  padding-right: 0.45rem;
}

.nav-menu-button {
  border: 0;
  border-radius: 0 4px 4px 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  padding: 0.55rem 0.62rem;
}

.nav-menu-button::after {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.site-nav .course-nav-item .nav-menu-link:hover,
.site-nav .course-nav-item .nav-menu-link.active,
.nav-menu-button:hover,
.nav-menu-button.active,
.nav-menu-button[aria-expanded="true"] {
  color: var(--navy);
  background: var(--mint);
}

.course-mega {
  position: absolute;
  top: 100%;
  right: -8rem;
  width: min(760px, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(23, 36, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.35rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.course-mega.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem 1rem;
}

.mega-unit-block {
  min-width: 0;
  padding: 0 0 0.45rem;
}

.catalog-sidebar .filter-heading,
.home-sidebar h2,
.filter-group .filter-group-heading {
  color: var(--teal);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.mega-unit-title {
  display: inline-flex;
  align-items: baseline;
  min-height: 1.55rem;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 900;
}

.mega-unit-title span:last-child {
  border-bottom: 2px solid rgba(8, 118, 111, 0.22);
}

.mega-unit-title:hover span:last-child {
  border-color: var(--teal);
}

.mega-course-list {
  display: grid;
  gap: 0.1rem;
  margin: 0.28rem 0 0;
  padding-left: 0.55rem;
  border-left: 2px solid rgba(222, 219, 210, 0.95);
}

.mega-course-list a {
  min-height: 1.45rem;
  padding: 0.04rem 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 750;
}

.mega-course-list a:hover {
  color: var(--navy);
}

.mega-footer span,
.panel-note {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.mega-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.mega-footer a {
  color: var(--teal);
  font-weight: 850;
}

.front-page,
.catalog-shell,
.course-detail-hero,
.course-section {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 2rem;
}

.front-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 4rem;
  padding-block: 4rem 3rem;
}

.front-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 2rem;
  align-items: center;
  max-width: 820px;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.front-title img {
  width: 210px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
}

.front-title h1 {
  font-size: 2.75rem;
}

.front-title p:not(.kicker) {
  max-width: 680px;
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.article-index {
  padding-top: 2.2rem;
}

.article-index > h2 {
  max-width: 680px;
  font-size: 1.9rem;
}

.article-list {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.article-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0.45rem 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.article-row .article-meta {
  grid-row: span 4;
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-row h2 {
  font-size: 1.36rem;
}

.article-row h2 a {
  text-decoration: none;
}

.article-row p:not(.article-meta) {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
}

.home-sidebar {
  display: grid;
  align-content: start;
  gap: 2rem;
  padding-top: 6.9rem;
}

.home-sidebar section {
  padding-left: 1.35rem;
  border-left: 1px solid var(--line);
}

.side-link-list {
  display: grid;
  gap: 0.55rem;
}

.side-link-list a {
  color: var(--ink);
  font-weight: 750;
  text-decoration-color: rgba(82, 97, 102, 0.24);
  text-underline-offset: 0.22em;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2.4rem;
  padding-block: 0 3.5rem;
}

.catalog-sidebar {
  position: sticky;
  top: 5.1rem;
  align-self: start;
  padding: 2rem 1.4rem 1.4rem 0;
  border-right: 1px solid var(--line);
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.sidebar-title-row .filter-heading {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  letter-spacing: 0;
  text-transform: none;
}

.filter-reset {
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.filter-panel-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.filter-group {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.filter-list {
  display: grid;
  gap: 0.45rem;
}

.filter-button {
  justify-content: flex-start;
  width: 100%;
  min-height: 2.15rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0.35rem 0;
  color: var(--ink);
  text-align: left;
}

.filter-button span {
  width: 0.72rem;
  height: 0.72rem;
  margin-right: 0.55rem;
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
  background: transparent;
}

.filter-button.active,
.filter-button:hover {
  background: transparent;
  color: var(--teal);
}

.filter-button.active span {
  background: var(--teal);
  border-color: var(--teal);
}

.catalog-main {
  min-width: 0;
}

.catalog-hero {
  padding-inline: 0;
}

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.catalog-tools span {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.25rem;
}

.catalog-grid .course-card,
.related-grid .course-card {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(23, 36, 42, 0.05);
}

.related-grid .course-card {
  grid-template-columns: 1fr;
}

.catalog-grid .course-card {
  min-height: 0;
}

.catalog-grid .course-card h2,
.catalog-grid .course-card h3 {
  font-size: 1.58rem;
}

.course-detail-hero {
  padding-block: 2rem 2.8rem;
  border-bottom: 1px solid var(--line);
}

.breadcrumb-link {
  color: var(--teal);
  font-weight: 850;
  text-decoration-color: rgba(8, 118, 111, 0.28);
  text-underline-offset: 0.22em;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.course-detail-copy h1 {
  font-size: 3.5rem;
  max-width: 820px;
}

.course-detail-copy p:not(.kicker) {
  max-width: 700px;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.course-action-panel {
  padding: 1.15rem;
  border-radius: 6px;
}

.course-action-panel .course-image.hero {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.course-action-panel .button {
  margin-top: 0.35rem;
}

.panel-note {
  margin: 0.8rem 0 0;
}

.course-section {
  padding-block: 2.8rem;
  border-bottom: 1px solid var(--line);
}

.course-section > h2,
.course-section > div > h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.learn-section .clean-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2rem;
  padding-left: 1.1rem;
}

.about-unit-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.2rem;
}

.about-unit-section p:not(.kicker),
.instructor-section p {
  max-width: 760px;
  color: var(--ink-soft);
}

.about-unit-section .course-sidebar {
  display: grid;
  gap: 1rem;
}

.course-section .curriculum-list {
  max-width: 920px;
}

.course-section .curriculum-section {
  border-radius: 4px;
}

.instructor-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: start;
}

.instructor-section .kicker {
  grid-row: span 2;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .front-page,
  .course-detail-grid,
  .about-unit-section {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 0;
  }

  .home-sidebar section {
    padding-left: 0;
    border-left: 0;
  }

  .course-mega {
    right: -8rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .teacher-intro {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
  }

  .teacher-intro img {
    height: 100%;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 8px solid var(--gold);
  }

  .course-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    padding: 0.85rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    max-height: calc(100dvh - 5.5rem);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav > * {
    flex: 0 0 auto;
  }

  .nav-item {
    display: block;
  }

  .course-nav-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .course-nav-item::after {
    display: none;
  }

  .site-nav .course-nav-item .nav-menu-link {
    border-radius: 4px 0 0 4px;
  }

  .nav-menu-button {
    min-width: 2.75rem;
    text-align: center;
  }

  .course-mega {
    position: static;
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 0.35rem;
    padding: 0.8rem;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .course-mega.open {
    display: block;
  }

  .course-nav-item .course-mega.open {
    display: block;
  }

  .mega-unit-grid {
    grid-template-columns: 1fr;
  }

  .mega-unit-block {
    grid-column: auto;
  }

  .mega-footer {
    display: grid;
  }

  .home-hero,
  .page-hero,
  .section,
  .site-footer,
  .article-page,
  .offer-banner,
  .front-page,
  .catalog-shell,
  .course-detail-hero,
  .course-section {
    padding-inline: 1rem;
  }

  .hero-copy h1 {
    font-size: 2.9rem;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .unit-group,
  .contrast-band,
  .about-hero,
  .course-hero,
  .course-layout,
  .front-page,
  .catalog-shell,
  .course-detail-grid,
  .about-unit-section,
  .learn-section .clean-list,
  .instructor-section,
  .blog-row,
  .blog-grid,
  .resource-grid,
  .two-column,
  .related-grid,
  .review-carousel {
    grid-template-columns: 1fr;
  }

  .taxonomy-row {
    grid-template-columns: 1fr;
  }

  .front-page {
    padding-block: 2.4rem;
  }

  .front-title h1,
  .course-detail-copy h1 {
    font-size: 2.35rem;
  }

  .front-title {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 1.25rem;
  }

  .front-title img {
    width: 170px;
  }

  .article-row {
    grid-template-columns: 1fr;
  }

  .article-row .article-meta {
    grid-row: auto;
  }

  .home-sidebar {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filter-panel-toggle {
    display: inline-flex;
  }

  .filter-groups {
    display: none;
  }

  .catalog-sidebar.filters-open .filter-groups {
    display: block;
  }

  .catalog-hero {
    padding-top: 1.5rem;
  }

  .contrast-band {
    padding-inline: 1rem;
  }

  .course-hero {
    padding: 1.25rem 1rem;
  }

  .course-hero h1 {
    font-size: 2.2rem;
  }

  .about-hero img {
    width: 180px;
    height: 180px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .site-header {
    gap: 0.5rem;
    padding-inline: 0.75rem;
  }

  .brand {
    gap: 0.45rem;
    min-width: 0;
  }

  .brand-mark {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
  }

  .brand strong {
    font-size: 1rem;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    flex: 0 0 auto;
    padding-inline: 0.55rem;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .front-title {
    grid-template-columns: 1fr;
  }

  .front-title img {
    width: 160px;
  }

  .unit-jump {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1,
  .page-hero.compact h1 {
    font-size: 2.15rem;
  }

  .catalog-grid .course-card {
    min-height: 0;
  }

  .course-card {
    grid-template-columns: 1fr;
  }

  .course-card-image-link {
    max-width: 100%;
  }

  .course-detail-copy h1 {
    font-size: 2.05rem;
  }

  .teacher-intro {
    display: block;
  }

  .teacher-intro img {
    height: auto;
    aspect-ratio: 1 / 1;
    border-right: 0;
    border-bottom: 8px solid var(--gold);
  }

  .course-grid,
  .featured-grid,
  .magazine-grid,
  .related-articles > div {
    grid-template-columns: 1fr;
  }

  .article-course-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .course-image.article-course {
    width: 88px;
  }

  .article-course-exit {
    grid-column: 2;
  }

  .article-filter-toggle {
    display: block;
  }

  .article-filter-groups {
    display: none;
  }

  .article-taxonomy.filters-open .article-filter-groups {
    display: grid;
  }

  .section-head {
    display: block;
  }

  .section-head .text-link {
    display: inline-flex;
    margin-top: 0.75rem;
  }

  .curriculum-section summary {
    grid-template-columns: 1fr;
  }
}

.toolbox-prototype-hero {
  border-bottom: 1px solid var(--line);
}

.toolbox-prototype-shell {
  padding-top: 1.5rem;
}

.tool-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.tool-filter-bar label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tool-filter-bar select {
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 2rem 0.5rem 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.tool-stage {
  margin: 0 0 2.5rem;
}

.tool-stage > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.tool-stage > header h2 {
  margin: 0 0 0.65rem;
}

.tool-stage > header span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

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

.tool-card {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  background: #fff;
}

.tool-card h2,
.tool-card h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.25rem;
}

.tool-card p {
  margin: 0;
}

.tool-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tool-tags span {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  background: var(--mint);
  color: var(--ink);
  font-size: 0.76rem;
}

.tool-card .tool-qa {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.local-tool-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0 5rem;
}

.local-tool-header {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.local-tool-header h1 {
  margin: 0.55rem 0 0.75rem;
}

.local-tool-header > p:last-child {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.local-tool-status {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--gold);
  background: #fff;
}

.local-tool-status[data-state="error"] {
  border-left-color: #b43f36;
}

.local-tool-mount {
  min-height: 420px;
  margin-top: 1rem;
}

.knowledge-index,
.knowledge-detail,
.knowledge-page-list {
  width: min(960px, calc(100% - 2rem));
  margin-inline: auto;
}

.knowledge-index > section {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.knowledge-page-list {
  display: grid;
  gap: 0;
}

.knowledge-page-list article {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.knowledge-page-list h2,
.knowledge-page-list h3 {
  margin: 0 0 0.35rem;
}

.knowledge-page-list p {
  margin: 0;
  color: var(--ink-soft);
}

.knowledge-detail {
  padding: clamp(2rem, 5vw, 4.5rem) 0 5rem;
}

.knowledge-detail > header,
.knowledge-body,
.knowledge-dependencies,
.knowledge-courses {
  max-width: 760px;
}

.knowledge-detail > header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.knowledge-body > section,
.knowledge-body > aside,
.knowledge-dependencies,
.knowledge-courses {
  padding-top: 2rem;
}

.knowledge-math {
  margin: 0.75rem 0;
  padding: 1rem;
  border-left: 4px solid var(--teal);
  background: #fff;
  font-family: "Cambria Math", "STIX Two Math", Georgia, serif;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.knowledge-definition,
.knowledge-common-error,
.knowledge-check {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--gold);
  background: #fff;
}

.knowledge-definition p:last-child,
.knowledge-common-error p:last-child {
  margin-bottom: 0;
}

.knowledge-focus-card {
  margin: 2rem 0 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 0.9rem;
}

.knowledge-ap-focus {
  border-left-color: var(--blue);
  background: var(--sky);
}

.knowledge-mousseau-emphasis {
  border-left-color: var(--gold);
  background: #fff8e8;
}

.knowledge-focus-label {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.knowledge-focus-card h2 {
  margin-top: 0;
}

.knowledge-focus-sources {
  margin-bottom: 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.knowledge-focus-sources a {
  color: var(--blue);
  font-weight: 750;
}

.knowledge-detail-note {
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-transform: capitalize;
}

.knowledge-variables > div {
  display: grid;
  grid-template-columns: minmax(3rem, auto) 1fr;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.knowledge-variables dt {
  font-family: "Cambria Math", "STIX Two Math", Georgia, serif;
  font-weight: 800;
}

.knowledge-variables dd {
  margin: 0;
}

.knowledge-worked-example,
.knowledge-table {
  margin: 2rem 0 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: #fff;
}

.knowledge-result {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.knowledge-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.knowledge-table-scroll-hint {
  display: none;
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.knowledge-table table {
  width: 100%;
  border-collapse: collapse;
}

.knowledge-table caption {
  padding-bottom: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: left;
}

.knowledge-table th,
.knowledge-table td {
  padding: 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

@media (max-width: 700px) {
  .knowledge-table-scroll-hint {
    display: block;
  }
}

.knowledge-table figcaption {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

.knowledge-figure {
  margin: 2rem 0;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--sky);
}

.knowledge-figure img {
  display: block;
  width: auto;
  max-width: min(100%, 32rem);
  max-height: 20rem;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 0.65rem;
}

.knowledge-figure figcaption {
  margin-top: 0.85rem;
  color: var(--ink-soft);
}

.knowledge-figure-credit {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.knowledge-inline-animation {
  display: grid;
  gap: 0.65rem;
  width: min(100%, 28rem);
  margin: 1.25rem auto 0;
}

.knowledge-inline-animation-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
}

.knowledge-inline-animation img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 20rem;
  margin-inline: auto;
  object-fit: contain;
}

.knowledge-inline-animation-toggle {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(13, 68, 65, 0.94);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.knowledge-inline-animation-toggle:focus-visible {
  outline: 3px solid #f1b84b;
  outline-offset: 2px;
}

.knowledge-inline-animation figcaption {
  display: grid;
  gap: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.knowledge-inline-animation figcaption small {
  color: #61747a;
}

.knowledge-resource-links {
  margin: 2rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 0.9rem;
  background: #f4fbfa;
}

.knowledge-resource-links h2 {
  margin-top: 0;
}

.knowledge-resource-links ul {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.knowledge-resource-links a {
  color: var(--blue);
  font-weight: 800;
}

.knowledge-resource-links span {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.knowledge-course-list {
  display: grid;
  gap: 1rem;
}

.knowledge-course-list article {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.knowledge-sequence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 760px;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.knowledge-sequence a:last-child {
  text-align: right;
}

.knowledge-related-link {
  margin: 0.45rem 0;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 2rem;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.local-tool-mount .mp-layout {
  align-items: start;
}

@media (max-width: 800px) {
  .tool-filter-bar,
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.review-hero {
  border-bottom: 4px solid var(--gold);
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0 2rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.review-summary div {
  min-width: 0;
  padding: 1rem;
  background: var(--surface);
}

.review-summary strong,
.review-summary span {
  display: block;
}

.review-summary strong {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.review-summary span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.review-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.review-muted-band {
  background: var(--sky);
  box-shadow: 0 0 0 100vmax var(--sky);
  clip-path: inset(0 -100vmax);
}

.review-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--navy);
}

.review-section-heading h2,
.review-section-heading p {
  margin: 0;
}

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

.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.45fr);
  gap: 1rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.review-row h3 {
  margin: 0.45rem 0;
}

.review-row p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
}

.review-row dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.review-row dl div {
  padding-left: 0.75rem;
  border-left: 2px solid var(--gold);
}

.review-row dt {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.review-row dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.review-row details {
  grid-column: 1 / -1;
}

.review-status {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-status.ready {
  color: #176148;
  background: #edf7f2;
}

.review-status.pending {
  color: #6a531d;
  background: #fff8e8;
}

.review-status.blocked {
  color: #874c1a;
  background: #fff2e7;
}

.review-status.rejected {
  color: #8c342b;
  background: #fff0ed;
}

.review-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.review-tool {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  background: var(--surface);
}

.review-tool:has(.review-status.ready) {
  border-top-color: var(--teal);
}

.review-tool:has(.review-status.rejected) {
  border-top-color: var(--coral);
}

.review-tool h3 {
  margin: 0.75rem 0 0.45rem;
}

.review-tool > p {
  color: var(--ink-soft);
}

.review-tool-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.review-tool-topline > span:first-child {
  color: var(--ink-soft);
  font-weight: 800;
}

.review-facts {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.review-blocker {
  padding: 0.9rem;
  border-left: 4px solid var(--coral);
  background: #fff4f1;
}

.review-blocker p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.review-tool details,
.review-row details,
.review-failures {
  margin-top: 0.9rem;
}

.review-tool code,
.review-row code,
.review-failures code {
  display: block;
  margin-top: 0.5rem;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.review-history-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.review-history-summary span {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.review-failures {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.review-failures li {
  margin: 1rem 0;
}

.review-draft-warning {
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  font-weight: 700;
}

.local-review-hero {
  border-bottom: 4px solid var(--teal);
}

.local-review-hero.rejected {
  border-bottom-color: var(--coral);
}

.local-review-hero .review-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 1.5rem 0 0;
  padding: 0;
}

.local-review-section {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.local-review-section .section-head {
  align-items: end;
}

.local-review-section .section-head > span {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.review-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.review-link-list.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-link-list > a,
.review-link-list > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: var(--surface);
  text-decoration: none;
}

.review-link-list > a:hover {
  background: var(--mint);
}

.review-link-list span,
.review-context {
  color: var(--ink-soft);
}

.rejected-card {
  border-top-color: var(--coral);
}

.review-empty,
.review-context {
  max-width: 760px;
}

.review-record-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.review-record {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.review-record > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.review-record h3 {
  margin: 0.5rem 0 0.35rem;
}

.review-record p {
  max-width: 860px;
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .local-review-hero .review-summary,
  .review-link-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .review-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .review-row {
    grid-template-columns: 1fr;
  }

  .review-row dl {
    grid-template-columns: 1fr;
  }

  .review-link-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .local-review-hero .review-summary,
  .review-link-list.compact {
    grid-template-columns: 1fr;
  }
}

/* Site-wide approved whiteboard direction.
   This brings non-lesson pages into the same visual family as the accepted
   Free Fall whiteboard route without changing page content. */
@font-face {
  font-family: "Handlee Local";
  src: url("/assets/fonts/handlee/Handlee-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

body:not(.free-fall-whiteboard-preview) {
  --wb-ink: #11191d;
  --wb-blue: #064fd1;
  --wb-red: #e0201e;
  --wb-green: #087a3c;
  --wb-yellow: #f2b900;
  --wb-hand: "Handlee Local", "Segoe Print", cursive;
  background:
    linear-gradient(96deg, #636d70 0%, #e5e9e8 9%, #7f898b 24%, #f2f4f3 49%, #788184 73%, #dfe4e3 91%, #626b6d 100%);
  color: var(--wb-ink);
}

body:not(.free-fall-whiteboard-preview) .site-header {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background:
    radial-gradient(ellipse at 20% 12%, rgba(39, 89, 74, 0.035), transparent 35%),
    repeating-linear-gradient(1deg, rgba(39, 74, 65, 0.012) 0 1px, transparent 1px 16px),
    #fbfcf8;
  box-shadow: 0 0.25rem 0.8rem rgba(18, 39, 43, 0.13);
  font-family: var(--wb-hand);
}

body:not(.free-fall-whiteboard-preview) .site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 11px;
  background:
    linear-gradient(96deg, #667073 0%, #e8eceb 8%, #7f898b 21%, #f4f6f5 46%, #788184 72%, #dfe4e3 91%, #626b6d 100%);
  content: "";
}

body:not(.free-fall-whiteboard-preview) .brand {
  min-height: 78px;
  width: 232px;
  padding: 0.75rem 1rem;
  border-right: 11px solid #7e888a;
  color: var(--wb-green);
  font-family: var(--wb-hand);
}

body:not(.free-fall-whiteboard-preview) .brand-mark,
body:not(.free-fall-whiteboard-preview) .brand small {
  display: none;
}

body:not(.free-fall-whiteboard-preview) .brand strong {
  color: var(--wb-green);
  font-family: var(--wb-hand);
  font-size: 1.55rem;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22rem;
}

body:not(.free-fall-whiteboard-preview) .site-nav {
  flex: 1;
  justify-content: center;
  gap: clamp(0.65rem, 1.75vw, 2rem);
  padding: 0.55rem 1.5rem;
}

body:not(.free-fall-whiteboard-preview) .site-nav a,
body:not(.free-fall-whiteboard-preview) .nav-menu-link {
  position: relative;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  color: #294950;
  font-family: var(--wb-hand);
  font-size: clamp(1rem, 1.2vw, 1.24rem);
  font-weight: 400;
}

body:not(.free-fall-whiteboard-preview) .site-nav a:hover,
body:not(.free-fall-whiteboard-preview) .site-nav a:focus-visible,
body:not(.free-fall-whiteboard-preview) .site-nav a.active,
body:not(.free-fall-whiteboard-preview) .nav-menu-link.active {
  color: var(--wb-blue);
}

body:not(.free-fall-whiteboard-preview) .site-nav a.active::after,
body:not(.free-fall-whiteboard-preview) .nav-menu-link.active::after {
  position: absolute;
  right: -0.2rem;
  bottom: -0.38rem;
  left: -0.2rem;
  height: 2px;
  border-radius: 50%;
  background: var(--wb-blue);
  content: "";
  transform: rotate(-1deg);
}

body:not(.free-fall-whiteboard-preview) main {
  min-height: calc(100vh - 78px);
  overflow: visible;
  padding: 12px;
}

body:not(.free-fall-whiteboard-preview) :where(.front-page, .home-hero, .page-hero, .section, .article-page, .course-detail-hero, .course-section, .learn-unit-library, .local-tool-shell, .site-footer) {
  position: relative;
  width: min(100%, 1440px);
  max-width: none;
  margin: 0 auto 12px;
  padding: clamp(1.4rem, 3vw, 3rem);
  border: 12px solid transparent;
  border-image: linear-gradient(96deg, #6b7376 0%, #e9eded 7%, #878f92 18%, #f3f5f5 38%, #737b7e 57%, #e0e4e5 77%, #656d70 100%) 12;
  background:
    radial-gradient(ellipse at 16% 11%, rgba(72, 104, 96, 0.035), transparent 28%),
    radial-gradient(ellipse at 83% 45%, rgba(30, 75, 114, 0.025), transparent 30%),
    repeating-linear-gradient(2deg, rgba(51, 84, 78, 0.01) 0 1px, transparent 1px 15px),
    #fcfdfa;
  box-shadow:
    0 0.6rem 1.4rem rgba(18, 39, 43, 0.2),
    0 0.2rem 0.4rem rgba(18, 39, 43, 0.18),
    inset 0 0 2.8rem rgba(45, 67, 62, 0.11);
}

body:not(.free-fall-whiteboard-preview) :where(.front-page, .course-detail-grid, .course-layout, .learn-unit-grid, .course-grid, .article-list, .tool-grid, .review-tool-grid, .review-link-list) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
}

body:not(.free-fall-whiteboard-preview) .front-main,
body:not(.free-fall-whiteboard-preview) .article-page,
body:not(.free-fall-whiteboard-preview) .course-primary,
body:not(.free-fall-whiteboard-preview) .local-tool-mount {
  grid-column: span 2;
}

body:not(.free-fall-whiteboard-preview) :where(.front-title, .hero-copy, .page-hero, .article-page header, .course-detail-copy, .learn-unit-summary, .local-tool-header) {
  color: var(--wb-ink);
  font-family: var(--wb-hand);
}

body:not(.free-fall-whiteboard-preview) :where(h1, h2, h3, .kicker, .article-meta, .course-label) {
  font-family: var(--wb-hand);
  font-weight: 400;
}

body:not(.free-fall-whiteboard-preview) :where(h1) {
  width: fit-content;
  max-width: 100%;
  color: var(--wb-blue);
  font-size: clamp(3rem, 6vw, 6.2rem);
  text-decoration: underline;
  text-decoration-thickness: 0.035em;
  text-underline-offset: 0.16em;
  transform: rotate(-0.7deg);
}

body:not(.free-fall-whiteboard-preview) :where(h2) {
  color: var(--wb-blue);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

body:not(.free-fall-whiteboard-preview) :where(.kicker, .article-meta, .course-label) {
  color: var(--wb-green);
  letter-spacing: 0.08em;
}

body:not(.free-fall-whiteboard-preview) :where(.card, .course-card, .article-row, .tool-card, .review-tool, .learn-unit-card, .home-sidebar section, .course-action-panel, .course-sidebar, .student-review, .review-row, .review-summary span, .review-link-list > a, .review-link-list > div) {
  min-width: 0;
  border: 2.5px solid var(--wb-green);
  border-radius: 48% 52% 49% 51% / 4% 3% 5% 4%;
  background: transparent;
  box-shadow: none;
  font-family: var(--wb-hand);
}

body:not(.free-fall-whiteboard-preview) :where(.button, button, .text-link, .course-exit-button, .learn-unit-open) {
  border: 2px solid var(--wb-blue);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.42);
  color: var(--wb-blue);
  box-shadow: none;
  font-family: var(--wb-hand);
  font-weight: 400;
}

body:not(.free-fall-whiteboard-preview) :where(.course-image, .article-hero, .local-tool-mount img, .front-title img) {
  max-height: 340px;
  width: auto;
  margin-inline: auto;
  border: 2px solid var(--wb-blue);
  object-fit: contain;
}

body:not(.free-fall-whiteboard-preview) .site-footer {
  color: #294950;
  font-family: var(--wb-hand);
}

@media (max-width: 1100px) {
  body:not(.free-fall-whiteboard-preview) :where(.front-page, .course-detail-grid, .course-layout, .learn-unit-grid, .course-grid, .article-list, .tool-grid, .review-tool-grid, .review-link-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body:not(.free-fall-whiteboard-preview) .site-header {
    display: block;
  }

  body:not(.free-fall-whiteboard-preview) .brand {
    width: 100%;
    min-height: 0;
    justify-content: center;
    border-right: 0;
    border-bottom: 2px solid rgba(8, 122, 60, 0.4);
  }

  body:not(.free-fall-whiteboard-preview) .site-nav {
    display: none;
  }

  body:not(.free-fall-whiteboard-preview) .nav-toggle {
    display: block;
    margin: 0.5rem auto 0.9rem;
    font-family: var(--wb-hand);
  }

  body:not(.free-fall-whiteboard-preview) .site-nav.open {
    display: flex;
  }

  body:not(.free-fall-whiteboard-preview) :where(.front-page, .course-detail-grid, .course-layout, .learn-unit-grid, .course-grid, .article-list, .tool-grid, .review-tool-grid, .review-link-list) {
    grid-template-columns: 1fr;
  }

  body:not(.free-fall-whiteboard-preview) .front-main,
  body:not(.free-fall-whiteboard-preview) .article-page,
  body:not(.free-fall-whiteboard-preview) .course-primary,
  body:not(.free-fall-whiteboard-preview) .local-tool-mount {
    grid-column: auto;
  }
}

/* Shared whiteboard product shell checkpoint.
   Keep this late in the cascade so all public Astro route families use the
   same classroom surface instead of leaking the older card/template system. */
body.whiteboard-site:not(.free-fall-whiteboard-preview) {
  --wb-board-bg:
    radial-gradient(ellipse at 18% 10%, rgba(72, 104, 96, 0.035), transparent 30%),
    radial-gradient(ellipse at 82% 44%, rgba(30, 75, 114, 0.025), transparent 32%),
    repeating-linear-gradient(2deg, rgba(51, 84, 78, 0.012) 0 1px, transparent 1px 15px),
    #fcfdfa;
  --wb-frame:
    linear-gradient(96deg, #6b7376 0%, #e9eded 7%, #878f92 18%, #f3f5f5 38%, #737b7e 57%, #e0e4e5 77%, #656d70 100%);
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) main {
  padding: 12px;
  background:
    linear-gradient(96deg, #6e787a 0%, #dfe5e4 13%, #8b9496 36%, #f1f4f3 50%, #818b8d 68%, #dce2e1 88%, #687174 100%);
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
  .front-page,
  .page-hero,
  .section,
  .catalog-shell,
  .magazine-section,
  .article-page,
  .course-detail-hero,
  .course-section,
  .learn-unit-library,
  .local-tool-shell,
  .login-page,
  .account-page,
  .site-footer
) {
  width: min(100%, 1440px);
  max-width: none;
  margin: 0 auto 12px;
  padding: clamp(1.35rem, 2.7vw, 2.75rem);
  border: 12px solid transparent;
  border-image: var(--wb-frame) 12;
  background: var(--wb-board-bg);
  box-shadow:
    0 0.6rem 1.4rem rgba(18, 39, 43, 0.2),
    0 0.2rem 0.4rem rgba(18, 39, 43, 0.18),
    inset 0 0 2.8rem rgba(45, 67, 62, 0.11);
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
  .front-page,
  .catalog-shell,
  .course-detail-grid,
  .about-unit-section,
  .two-column,
  .resource-grid,
  .article-course-list,
  .tool-grid,
  .course-grid,
  .blog-grid,
  .magazine-grid,
  .related-grid,
  .review-link-list
) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.6rem);
  align-items: start;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
  .front-main,
  .catalog-main,
  .course-detail-copy,
  .course-primary,
  .article-page,
  .local-tool-mount
) {
  grid-column: span 2;
  min-width: 0;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
  h1,
  h2,
  h3,
  .kicker,
  .article-meta,
  .course-label,
  .filter-heading,
  .filter-group-heading,
  .learn-unit-summary,
  .local-tool-header,
  .account-page,
  .login-page
) {
  font-family: var(--wb-hand);
  font-weight: 400;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(h1) {
  font-size: clamp(2.35rem, 4.2vw, 4.9rem);
  line-height: 0.98;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(.page-hero.compact h1) {
  font-size: clamp(2.25rem, 3.6vw, 4rem);
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(.course-detail-copy h1) {
  max-width: min(24ch, 100%);
  font-size: clamp(1.9rem, 2.55vw, 3rem);
  line-height: 1;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(h2) {
  font-size: clamp(1.55rem, 2.15vw, 2.35rem);
  line-height: 1.05;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(p, li, label, input, button, small, span) {
  line-height: 1.35;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
  .card,
  .course-card,
  .blog-card,
  .article-row,
  .tool-card,
  .resource-card,
  .review-tool,
  .home-sidebar section,
  .catalog-sidebar,
  .course-action-panel,
  .course-sidebar,
  .side-panel,
  .curriculum-section,
  .student-review,
  .account-panel,
  .login-page form,
  .review-row,
  .review-summary span,
  .review-link-list > a,
  .review-link-list > div
) {
  min-width: 0;
  padding: clamp(0.85rem, 1.5vw, 1.25rem);
  border: 2.5px solid var(--wb-green);
  border-radius: 48% 52% 49% 51% / 4% 3% 5% 4%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  font-family: var(--wb-hand);
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
  .course-card-image-link,
  .blog-card-image,
  .article-course-image
) {
  border: 2px solid var(--wb-blue);
  background: rgba(255, 255, 255, 0.35);
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
  .course-image,
  .article-hero,
  .local-tool-mount img,
  .front-title img,
  .about-hero img
) {
  max-height: 260px;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border: 2px solid var(--wb-blue);
  object-fit: contain;
  box-shadow: none;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) .front-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) .home-sidebar {
  display: grid;
  gap: 1rem;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
  .button,
  button,
  .text-link,
  .course-exit-button,
  .learn-unit-open,
  .account-primary,
  .account-actions a
) {
  border: 2px solid var(--wb-blue);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.42);
  color: var(--wb-blue);
  box-shadow: none;
  font-family: var(--wb-hand);
  font-weight: 400;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
  .filter-button,
  .article-filter,
  .filter-panel-toggle,
  .article-filter-toggle
) {
  border: 2px solid rgba(6, 79, 209, 0.8);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.35);
  color: var(--wb-blue);
  font-family: var(--wb-hand);
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
  .filter-button.active,
  .article-filter.active
) {
  border-color: var(--wb-green);
  background: rgba(8, 122, 60, 0.08);
  color: var(--wb-green);
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
  .article-row h2,
  .blog-card h3,
  .course-card h2,
  .course-card h3,
  .tool-card h2,
  .resource-card h2,
  .home-sidebar h2,
  .article-course-item strong
) {
  max-width: 100%;
  font-size: clamp(1.05rem, 1.45vw, 1.55rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.05em;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) .article-row {
  min-height: 0;
  align-self: start;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) .article-list {
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}

body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .article-list {
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
}

body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .article-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .article-row .article-meta {
  grid-row: auto;
  min-height: 0;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(input, textarea, select) {
  border: 2px solid rgba(41, 73, 80, 0.55);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.74);
  color: var(--wb-ink);
  font-family: inherit;
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) .course-mega {
  border: 8px solid transparent;
  border-image: var(--wb-frame) 8;
  background: var(--wb-board-bg);
  box-shadow: 0 0.6rem 1.4rem rgba(18, 39, 43, 0.2);
  font-family: var(--wb-hand);
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) .nav-menu-button {
  min-width: 2rem;
  min-height: 2rem;
  border-color: var(--wb-blue);
  background: rgba(255, 255, 255, 0.35);
}

body.whiteboard-site:not(.free-fall-whiteboard-preview) .site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

@media (max-width: 1100px) {
  body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
    .front-page,
    .catalog-shell,
    .course-detail-grid,
    .about-unit-section,
    .two-column,
    .resource-grid,
    .article-course-list,
    .tool-grid,
    .course-grid,
    .blog-grid,
    .magazine-grid,
    .related-grid,
    .review-link-list
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.whiteboard-site:not(.free-fall-whiteboard-preview),
  body.whiteboard-site:not(.free-fall-whiteboard-preview) * {
    box-sizing: border-box;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) main {
    padding-inline: 6px;
    overflow-x: hidden;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) .brand {
    overflow: hidden;
    padding-inline: 0.75rem;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) .brand span:not(.brand-mark) {
    max-width: 100%;
    text-align: center;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) .brand strong {
    display: block;
    max-width: 100%;
    overflow-wrap: normal;
    font-size: clamp(1.25rem, 8vw, 1.65rem);
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) .brand small {
    display: none;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
    .front-page,
    .catalog-shell,
    .course-detail-grid,
    .about-unit-section,
    .two-column,
    .resource-grid,
    .article-course-list,
    .tool-grid,
    .course-grid,
    .blog-grid,
    .magazine-grid,
    .related-grid,
    .review-link-list,
    .front-title
  ) {
    grid-template-columns: 1fr;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
    .front-main,
    .catalog-main,
    .course-detail-copy,
    .course-primary,
    .article-page,
    .local-tool-mount
  ) {
    grid-column: auto;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
    .front-page,
    .page-hero,
    .section,
    .catalog-shell,
    .magazine-section,
    .article-page,
    .course-detail-hero,
    .course-section,
    .learn-unit-library,
    .local-tool-shell,
    .login-page,
    .account-page,
    .site-footer
  ) {
    width: 100%;
    padding: 1rem;
    border-width: 8px;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(h1) {
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(.course-detail-copy h1) {
    max-width: 100%;
    font-size: clamp(1.75rem, 12vw, 2.55rem);
    line-height: 0.98;
  }

  body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .front-page,
  body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .front-main,
  body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .home-sidebar {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .front-title {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .front-title > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .front-title h1 {
    width: 100%;
    max-width: 9.5ch;
    font-size: clamp(1.9rem, 11vw, 2.35rem);
    line-height: 0.96;
    overflow-wrap: break-word;
  }

  body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .front-title p:not(.kicker) {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .front-title img {
    width: min(100%, 220px);
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    justify-self: start;
  }

  body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .article-list {
    grid-template-columns: 1fr;
  }
}

/* 320px safety checkpoint: every shared whiteboard page must fit the viewport
   without clipping text, cards, images, or the handwritten header. */
@media (max-width: 480px) {
  html,
  body.whiteboard-site:not(.free-fall-whiteboard-preview) {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview),
  body.whiteboard-site:not(.free-fall-whiteboard-preview) * {
    min-width: 0;
    box-sizing: border-box;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) .site-header {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) .brand {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.7rem 0.65rem 0.55rem;
    justify-content: center;
    text-align: center;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) .brand-mark,
  body.whiteboard-site:not(.free-fall-whiteboard-preview) .brand small {
    display: none;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) .brand strong {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: clamp(1.25rem, 7.5vw, 1.55rem);
    line-height: 1.05;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) .nav-toggle {
    max-width: calc(100vw - 1rem);
    margin-inline: auto;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) .site-nav.open {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-inline: 0.75rem;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) main {
    width: 100%;
    max-width: 100vw;
    padding: 6px;
    overflow-x: hidden;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
    .front-page,
    .home-hero,
    .page-hero,
    .section,
    .catalog-shell,
    .magazine-section,
    .article-page,
    .course-detail-hero,
    .course-section,
    .learn-unit-library,
    .local-tool-shell,
    .login-page,
    .account-page,
    .site-footer
  ) {
    width: 100%;
    max-width: calc(100vw - 12px);
    margin-inline: auto;
    padding: 0.9rem;
    border-width: 8px;
    overflow: hidden;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
    .front-page,
    .front-title,
    .catalog-shell,
    .course-detail-grid,
    .course-layout,
    .about-unit-section,
    .two-column,
    .resource-grid,
    .article-course-list,
    .learn-unit-grid,
    .course-grid,
    .article-list,
    .blog-grid,
    .magazine-grid,
    .related-grid,
    .tool-grid,
    .review-tool-grid,
    .review-link-list,
    .home-sidebar
  ) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
  }

  body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .front-title {
    display: grid;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
    .front-main,
    .catalog-main,
    .course-detail-copy,
    .course-primary,
    .article-page,
    .local-tool-mount,
    .learn-unit-card,
    .learn-unit-summary,
    .learn-lesson-list,
    .article-row,
    .blog-card,
    .course-card,
    .tool-card,
    .resource-card,
    .home-sidebar section
  ) {
    width: 100%;
    max-width: 100%;
    grid-column: auto;
    overflow: hidden;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(
    h1,
    h2,
    h3,
    p,
    li,
    a,
    small,
    strong,
    span,
    .article-meta,
    .learn-lesson-list strong,
    .learn-lesson-list small
  ) {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(h1) {
    width: auto;
    font-size: clamp(1.9rem, 10.5vw, 2.55rem);
    line-height: 0.98;
  }

  body.whiteboard-site.home-page:not(.free-fall-whiteboard-preview) .front-title h1 {
    max-width: 10ch;
    font-size: clamp(1.9rem, 11vw, 2.35rem);
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) .learn-lesson-list a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  body.whiteboard-site:not(.free-fall-whiteboard-preview) :where(img, svg, video, iframe) {
    max-width: 100%;
    height: auto;
  }
}
