/* Complex Systems Engineering 2026 */
.course-page {
  --course-ink: #111;
  --course-muted: #6e6e73;
  --course-line: #d8d8dc;
  --course-soft: #f5f5f7;
  --course-blue: #173b4d;
  --course-blue-deep: #102d3c;
  --course-blue-soft: #e8eff2;
  background: #fff;
}

.course-page main {
  padding-top: var(--nav-height);
}

.course-page .container {
  width: 100%;
}

.course-nav .lab-nav-inner {
  max-width: var(--max-width);
}

.course-nav .lab-nav-links {
  margin-left: auto;
}

.course-page .course-nav,
.course-page .course-nav.scrolled {
  background: var(--course-blue-deep);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.eyebrow,
.archive-label,
.section-number {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-v2 {
  padding: clamp(64px, 8vw, 116px) 0 clamp(60px, 7vw, 96px);
  background: var(--course-blue-soft);
  color: var(--course-blue-deep);
}

.hero-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.7fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: center;
}

.hero-v2-copy .eyebrow {
  color: #5c7783;
}

.archive-label {
  margin-top: 32px;
  color: var(--course-blue);
}

.hero-v2 h1 {
  max-width: 820px;
  margin: 12px 0 0;
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: #435f6b;
  font-size: 18px;
  line-height: 1.72;
}

.hero-facts {
  display: grid;
  grid-template-columns: 0.55fr 1.15fr 1.3fr;
  margin: 48px 0 0;
  border-top: 1px solid rgba(23, 59, 77, 0.22);
}

.hero-facts > div {
  min-width: 0;
  padding: 18px 20px 0 0;
}

.hero-facts > div + div {
  padding-left: 20px;
  border-left: 1px solid rgba(23, 59, 77, 0.15);
}

.hero-facts dt {
  margin-bottom: 6px;
  color: #617a85;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: var(--course-blue-deep);
  font-size: 14px;
  line-height: 1.45;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 42%;
  border: 1px solid rgba(23, 59, 77, 0.16);
}

.hero-figure figcaption,
.media-frame figcaption {
  margin-top: 11px;
  color: var(--course-muted);
  font-size: 11px;
  line-height: 1.5;
}

.hero-figure figcaption {
  color: #5c7783;
}

.section-v2 {
  padding: clamp(72px, 8vw, 112px) 0;
  background: #fff;
}

.section-v2 + .section-v2 {
  border-top: 1px solid var(--course-line);
}

.section-system {
  background: var(--course-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 46px;
}

.section-number {
  padding-top: 5px;
  color: var(--course-muted);
}

.section-heading .eyebrow,
.notes-grid .eyebrow {
  margin-bottom: 12px;
  color: var(--course-muted);
}

.section-heading h2,
.notes-grid h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.course-visual-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.media-frame {
  margin: 0;
}

.media-frame img,
.diagram-card img {
  display: block;
  width: 100%;
  border: 1px solid var(--course-line);
  background: #fff;
}

.media-zoom {
  display: block;
  cursor: zoom-in;
}

.media-zoom:hover img {
  opacity: 0.86;
}

.course-copy {
  padding-top: 8px;
}

.course-copy p,
.notes-copy p {
  margin: 0;
  color: var(--course-muted);
  font-size: 16px;
  line-height: 1.72;
}

.course-copy p + p {
  margin-top: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--course-ink);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
}

.diagram-card {
  margin: 0;
}

.diagram-card figcaption {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
  gap: 20px;
  padding-top: 16px;
}

.diagram-card figcaption strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.diagram-card figcaption > span {
  color: var(--course-muted);
  font-size: 13px;
  line-height: 1.6;
}

.study-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 54px;
  border-top: 1px solid var(--course-line);
  border-bottom: 1px solid var(--course-line);
}

.study-stages div {
  min-height: 112px;
  padding: 18px 16px 18px 0;
}

.study-stages div + div {
  padding-left: 16px;
  border-left: 1px solid var(--course-line);
}

.study-stages span {
  display: block;
  margin-bottom: 24px;
  color: var(--course-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.study-stages p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.section-intro {
  max-width: 780px;
  margin: -18px 0 40px 82px;
  color: var(--course-muted);
  font-size: 16px;
  line-height: 1.7;
}

.roster-legend {
  margin: 0 0 9px;
  color: var(--course-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-align: right;
  text-transform: uppercase;
}

.student-roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--course-line);
  border-left: 1px solid var(--course-line);
}

.student-roster a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 15px;
  gap: 8px;
  align-items: center;
  min-height: 70px;
  padding: 12px 14px;
  border-right: 1px solid var(--course-line);
  border-bottom: 1px solid var(--course-line);
  color: var(--course-ink);
  text-decoration: none;
  transition: background 0.18s ease;
}

.student-roster a:hover,
.student-roster a:focus-visible {
  background: var(--course-soft);
  opacity: 1;
}

.student-roster span,
.student-roster small {
  color: var(--course-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.student-roster strong {
  font-size: 15px;
  font-weight: 600;
}

.student-roster i {
  color: var(--course-muted);
  font-style: normal;
}

.notes-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(44px, 7vw, 100px);
}

.notes-copy p + p {
  margin-top: 20px;
}

.notes-copy .image-credit {
  padding-top: 24px;
  border-top: 1px solid var(--course-line);
  font-size: 11px;
}

.course-footer {
  padding: 28px 0;
  background: var(--course-blue-deep);
  color: rgba(255, 255, 255, 0.62);
}

.course-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.course-footer a,
.course-footer p {
  margin: 0;
  color: inherit;
  font-size: 11px;
}

.course-footer a {
  text-decoration: none;
}

.course-footer a:hover {
  color: #fff;
}

/* Student portfolio page */
.student-nav-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: auto;
}

.student-nav-actions a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  text-decoration: none;
}

.student-nav-actions a:hover {
  color: #fff;
}

.student-header {
  padding: 88px 0 64px;
  background: var(--course-blue-soft);
  color: var(--course-blue-deep);
}

.student-back {
  display: inline-block;
  margin-bottom: 56px;
  color: #58717d;
  font-size: 12px;
  text-decoration: none;
}

.student-header .eyebrow {
  color: #5c7783;
}

.student-header h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 4.4vw, 56px);
  letter-spacing: -0.045em;
}

.student-meta {
  margin: 0;
  color: #5c7783;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.student-work {
  min-height: 54vh;
  padding: 90px 0 110px;
}

.student-work-grid {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 24px;
}

.student-work h2 {
  margin: 0 0 28px;
  font-size: 30px;
}

.empty-portfolio {
  min-height: 280px;
  padding: 36px;
  border: 1px solid var(--course-line);
  background: var(--course-soft);
}

.empty-portfolio p {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.empty-portfolio span {
  color: var(--course-muted);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .hero-v2-grid,
  .course-visual-row {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    max-width: 560px;
  }

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

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

  .study-stages div:nth-child(4) {
    border-left: 0;
  }
}

@media (max-width: 768px) {
  .course-nav .lab-nav-links {
    background: var(--course-blue-deep);
  }

  .hero-v2 {
    padding: 54px 0 64px;
  }

  .hero-v2 h1 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts > div,
  .hero-facts > div + div {
    padding: 14px 0;
    border-top: 1px solid rgba(23, 59, 77, 0.15);
    border-left: 0;
  }

  .section-v2 {
    padding: 64px 0;
  }

  .section-heading,
  .student-work-grid {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 34px;
  }

  .section-heading h2,
  .notes-grid h2 {
    font-size: clamp(27px, 7.5vw, 34px);
  }

  .diagram-grid,
  .notes-grid,
  .student-roster {
    grid-template-columns: 1fr;
  }

  .diagram-card figcaption {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .study-stages {
    grid-template-columns: 1fr;
  }

  .study-stages div,
  .study-stages div + div {
    min-height: 0;
    padding: 16px 0;
    border-top: 1px solid var(--course-line);
    border-left: 0;
  }

  .study-stages span {
    margin-bottom: 8px;
  }

  .section-intro {
    margin: -6px 0 30px 50px;
  }

  .roster-legend {
    margin-left: 50px;
  }

  .student-roster a {
    min-height: 64px;
  }

  .course-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-header {
    padding: 62px 0 48px;
  }

  .student-back {
    margin-bottom: 40px;
  }

  .student-header h1 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .student-work {
    padding: 64px 0 80px;
  }

  .empty-portfolio {
    min-height: 240px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-figure img {
    aspect-ratio: 4 / 4.4;
  }

  .student-nav-actions {
    gap: 14px;
  }

  .student-nav-actions a {
    font-size: 12px;
  }
}
