.course-overview .section-heading { margin: 0; }
.overview-grid, .curriculum-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: stretch; }
.course-text-link { display: inline-block; margin-top: 1rem; font-weight: 700; }
.overview-path, .outcomes-panel, .syllabus-nav {
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
}
.overview-path { background: #e9ecd9; border-color: #cdd1bc; }
.overview-path h3, .outcomes-panel h3, .syllabus-nav h3, .lab-help h3 { margin: 0; font-size: 1.27rem; }
.overview-path ol, .syllabus-nav ol { margin: 0.7rem 0 0; padding-inline-start: 1.5rem; }
.overview-path li, .syllabus-nav li { padding-block: 0.52rem; line-height: 1.45; }
.overview-path li + li, .syllabus-nav li + li { border-top: 1px solid #d0d5c0; }
.overview-path li::marker, .syllabus-nav li::marker { color: var(--accent-ink); font-weight: 750; }
.overview-path a, .syllabus-nav a { font-weight: 650; }
.student-entry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-top: clamp(1.4rem, 4vw, 2.4rem); }
.student-entry a { display: flex; flex-direction: column; gap: 0.45rem; padding: 1rem; border: 1px solid var(--line); border-radius: 0.6rem; background: var(--white); text-decoration: none; line-height: 1.47; }
.student-entry a:hover { border-color: var(--accent-ink); background: #edf3df; }
.student-entry strong { text-decoration: underline; text-underline-offset: 0.2em; }
.student-entry span { color: var(--muted); }

.curriculum-intro { padding-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.outcomes-panel ul, .course-module ol { margin: 0.8rem 0 0; padding-inline-start: 1.4rem; }
.outcomes-panel li, .course-module li { margin-top: 0.5rem; line-height: 1.53; }
.outcomes-panel p { margin: 1rem 0 0; color: var(--muted); line-height: 1.55; }
.syllabus-nav { background: #f0edef; }
.syllabus-nav > a { display: inline-block; margin-top: 0.76rem; }
.course-section { padding-block: clamp(2.35rem, 5vw, 4.1rem); }
#foundations { border-top: 1px solid var(--line); }
.applied-course { padding-top: 0; }
.module-stack { display: grid; gap: 1rem; }
.course-module { padding: clamp(1.12rem, 3vw, 1.85rem); border: 1px solid var(--line); border-inline-start: 4px solid #88647e; border-radius: 0.68rem; background: #fff; scroll-margin-top: 1.15rem; }
.course-module h3 { margin: 0 0 0.8rem; font-size: clamp(1.25rem, 2.3vw, 1.55rem); letter-spacing: -0.026em; }
.course-module p { margin: 0.65rem 0; max-width: 86ch; line-height: 1.62; }
.course-module > p:not(.module-practice), .course-module dd { color: var(--muted); }
.course-module strong { color: var(--ink); }
.course-module .answer-guide { max-width: 82ch; margin-top: 1rem; }
.course-module .module-practice { margin: 0.95rem 0 0; font-weight: 660; line-height: 1.55; }
.course-definition-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 0.95rem 0; }
.course-definition-list div { padding: 0.8rem; background: #f2efeb; border-radius: 0.45rem; }
.course-definition-list dt { font-weight: 710; }
.course-definition-list dd { margin: 0.35rem 0 0; line-height: 1.53; }

.lab-quick-links, .section-jumps { display: flex; flex-wrap: wrap; gap: 0.55rem 1.4rem; line-height: 1.5; }
.lab-quick-links { padding-top: 1.1rem; }
.lab-quick-links a { color: #f7f1f5; font-weight: 620; }
.section-jumps { margin: -0.35rem 0 1.3rem; }
.section-jumps a { font-weight: 650; }
.lab-help { margin-top: 1.35rem; }
.lab-help h3 { margin-bottom: 0.75rem; }
.paper-guide li { margin-top: 0.5rem; color: var(--muted); line-height: 1.55; }
.paper-guide ol { max-width: 77ch; padding-inline-start: 1.4rem; }

.research-projects { border-top: 1px solid var(--line); }
.research-process { padding: clamp(1rem, 3vw, 1.45rem); background: #eeecdf; border: 1px solid var(--line); border-radius: 0.65rem; }
.research-process h3, .rubric-panel h3 { margin: 0; font-size: 1.23rem; }
.research-process ol { margin: 0.75rem 0 0; padding-inline-start: 1.35rem; display: grid; gap: 0.65rem; }
.research-process li, .rubric-panel li, .rubric-panel p { color: var(--muted); line-height: 1.56; }
.research-process strong, .rubric-panel strong { color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-top: 1.1rem; }
.research-project { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-top: 3px solid #88647e; border-radius: 0.65rem; padding: 1.15rem; }
.research-project h3 { margin: 0; font-size: 1.16rem; line-height: 1.33; }
.research-project dl { margin: 0.7rem 0 1.05rem; }
.research-project dt { margin-top: 0.62rem; font-weight: 720; }
.research-project dd { margin: 0.22rem 0 0; color: var(--muted); line-height: 1.52; }
.research-project .project-links { margin: auto 0 0; border-top: 1px solid var(--line); padding-top: 0.7rem; line-height: 1.57; }
.rubric-panel { margin-top: 1.1rem; padding: clamp(1rem, 3vw, 1.45rem); border: 1px solid var(--line); border-radius: 0.63rem; background: #fff; }
.rubric-panel ul { margin: 0.65rem 0; padding-inline-start: 1.35rem; }
.rubric-panel li + li { margin-top: 0.4rem; }
.rubric-panel p:last-child { margin-bottom: 0; }

@media (min-width: 64rem) {
  html { scroll-padding-top: 5rem; }
}
@media (max-width: 63.99rem) {
  html { scroll-padding-top: 0; }
  .site-header { position: static; }
  .header-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 0.65rem; }
}
@media (max-width: 52rem) {
  .project-grid { grid-template-columns: 1fr; }
  .course-definition-list { grid-template-columns: 1fr; }
}
@media (max-width: 43rem) {
  .overview-grid, .curriculum-layout, .student-entry { grid-template-columns: 1fr; }
  .header-inner .course-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.18rem 0.3rem; width: 100%; }
  .course-navigation a { min-height: 2.35rem; padding-inline: 0.2rem; }
  .scope-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-stat { flex-direction: row; justify-content: start; align-items: center; gap: 0.65rem; min-height: 4.25rem; padding-inline: 0.6rem; }
  .scope-stat:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .scope-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.site-header { background: var(--paper); border-bottom: 1px solid #cfc8ce; box-shadow: none; }
.header-inner { min-height: 4.7rem; gap: 0.65rem 1rem; }
.brand { color: var(--ink); gap: 0.65rem; font-family: var(--heading-font); font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 400; letter-spacing: -0.035em; }
.brand em { font-weight: 400; }
.brand-mark { width: 2.15rem; flex-basis: 2.15rem; background: #45273d; border-radius: 50%; }
.brand-mark::before, .brand-mark::after { inset: 16% 31%; border: 1px solid #dcf4aa; border-radius: 50%; transform: rotate(38deg); }
.brand-mark::after { transform: rotate(-38deg); }
.header-inner .course-navigation { gap: 0.25rem; }
.course-navigation a { padding: 0.45rem 0.68rem; border-radius: 2rem; line-height: 1.3; }
.header-inner .course-navigation a[aria-current] { background: #47283f; color: #fffcfa; }
.header-inner .course-navigation a:hover { text-decoration: underline; text-underline-offset: 0.22rem; }

.course-hero { padding-block: clamp(1.6rem, 5.1vw, 4.8rem); }
.course-hero .hero-inner { min-height: 0; padding-block: 0; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.2rem, 4.5vw, 4.4rem); }
.course-hero .course-kicker { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 1.2rem; color: var(--accent-ink); font: 650 0.83rem/1.4 Consolas, 'Courier New', monospace; letter-spacing: 0.105em; text-transform: uppercase; }
.course-kicker::before { content: ''; width: 1.75rem; height: 2px; background: currentColor; }
.course-hero h1 { font-family: var(--heading-font); font-size: clamp(3.2rem, 7.6vw, 7.05rem); font-weight: 400; line-height: 0.91; letter-spacing: -0.034em; }
.course-hero h1 em { display: block; color: #663951; font-style: italic; font-weight: 400; }
.course-hero .hero-copy > p:not(.course-kicker) { max-width: 42ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.13rem); line-height: 1.62; }
.hero-actions .button { border-radius: 99rem; min-height: 2.85rem; padding-inline: 1.15rem; }
.hero-actions .button-primary { color: #fff; background: #482741; border-color: #482741; }
.hero-actions .button-primary:hover { background: #683e5d; }
.hero-actions .button-secondary { background: transparent; color: #45273d; border-color: #a1919e; }
.hero-actions .button-secondary:hover { background: #eee6ec; }
.hero-actions a:focus-visible { outline-color: #8b406e; }
.hero-specimen { position: relative; min-width: 0; overflow: hidden; background: #211b20; border-radius: 0.6rem clamp(2.5rem, 9vw, 7rem) 0.6rem 0.6rem; }
.hero-specimen img { display: block; width: 100%; height: clamp(16rem, 32vw, 27rem); object-fit: cover; object-position: 49% 50%; }
.specimen-link { position: absolute; bottom: 0.85rem; left: 0.85rem; padding: 0.52rem 0.8rem; color: #232421; background: #e1f3b4; border-radius: 2rem; font-size: 0.89rem; font-weight: 650; text-decoration: none; }
.specimen-link:hover { background: #f2ffce; text-decoration: underline; }

.scope-strip { background: #392535; border-bottom: 0; }
.scope-stat { color: #f4eef1; text-decoration: none; }
.scope-stat strong { color: #d5f38c; font-family: var(--heading-font); font-size: clamp(2.5rem, 4.75vw, 3.65rem); }
.scope-stat + .scope-stat { border-color: #62475b; }
.scope-stat:focus-visible { outline-offset: -4px; outline-color: #d5f38c; }
.scope-stat:hover span { text-decoration: underline; }
.scope-stat span { line-height: 1.35; }
.section-heading h2 { font-size: clamp(2.75rem, 5.5vw, 4.7rem); line-height: 1.04; }
.overview-path { background: #e8eddc; border: 0; border-top: 3px solid #7b8c63; border-radius: 0 0 0.55rem 0.55rem; }
.overview-path h3, .syllabus-nav h3, .outcomes-panel h3 { font-family: var(--heading-font); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.student-entry a { padding: 1.15rem; border-top: 3px solid #7e5b76; }
.student-entry a:nth-child(2) { border-top-color: #788956; }
.student-entry a:nth-child(3) { border-top-color: #ad7851; }
.student-entry strong { font-size: 1.08rem; }
.site-footer { background: #392535; }
.footer-links a { color: #f8f1f6; }

@media (min-width: 49rem) and (max-width: 63.99rem) {
  .header-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .course-navigation a { padding-inline: 0.35rem; }
}
@media (max-width: 48.99rem) {
  .header-inner { gap: 0.5rem; min-height: 0; padding-block: 0.72rem; }
  .header-inner .course-navigation { display: flex; flex-wrap: wrap; width: 100%; justify-content: flex-start; gap: 0.2rem; }
  .course-navigation a { padding: 0.42rem 0.58rem; min-height: 2.2rem; }
  .hero-actions { margin-top: 1.05rem; }
}
@media (max-width: 36rem) {
  .course-hero .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .course-hero h1 { font-size: clamp(3.45rem, 12vw, 4.55rem); }
  .course-hero .course-kicker { margin-bottom: 0.8rem; }
  .course-hero .hero-copy > p:not(.course-kicker) { margin-top: 1rem; }
  .hero-specimen img { height: clamp(10.5rem, 46vw, 15rem); }
  .scope-stat:nth-child(n+3) { border-top-color: #62475b; }
}
@media (max-width: 27rem) {
  .header-inner .course-navigation { display: grid; grid-template-columns: repeat(3, 1fr); }
}

.field-gallery { padding-block: clamp(2.2rem, 5.1vw, 4.6rem) clamp(1.75rem, 3.5vw, 2.95rem); border-bottom: 1px solid var(--line); }
.field-gallery-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1.18rem; }
.field-gallery-heading h2 { margin: 0; color: var(--ink); font-size: clamp(2.45rem, 4.4vw, 3.85rem); line-height: 1.04; }
.field-gallery-heading a { font-weight: 650; }
.field-gallery-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.65rem, 1.7vw, 1.3rem); }
.field-gallery-grid a { display: flex; flex-direction: column; gap: 0.6rem; color: var(--ink); font-weight: 650; text-decoration: none; line-height: 1.35; }
.field-gallery-grid a:hover span, .field-gallery-grid a:focus-visible span { text-decoration: underline; }
.field-gallery-grid img { width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; border-radius: 0.45rem; background: #392535; }
@media (max-width: 51rem) { .field-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.05rem; } }
@media (max-width: 28rem) { .field-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
