/* Research-group visual system shared by the homepage and subpages. */

.home {
  --home-navy: #003660;
  --home-navy-soft: #002b4c;
  --home-ivory: #f1eeea;
  --home-paper: #edeadf;
  --home-aqua: #83d3cc;
  --home-gold: #febc11;
  --home-text: #002b4c;
  --home-muted: #3d4952;
  --home-rule: rgba(0, 54, 96, 0.18);
  --home-serif: "Sentient", Georgia, serif;
  --home-sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  overflow-x: clip;
  background: var(--home-ivory);
  color: var(--home-text);
  font-family: var(--home-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: normal;
}

.home::before { display: none; }
.home * { box-sizing: border-box; }
.home a { color: inherit; }
.home h1,
.home h2,
.home h3,
.home h4 {
  color: inherit;
  font-family: var(--home-serif);
  font-weight: 400;
}

.site-shell {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

/* `.home a { color: inherit }` (0,1,1) outranks a bare `.application-notice`
   (0,1,0), so this bar inherited the page text colour instead of navy. In light
   mode that coincidentally looked right; in dark mode it produced #e3ebe8 on
   gold at 1.39:1. The `.home` prefix restores the intended navy in both. */
.home .application-notice {
  position: relative;
  z-index: 70;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--home-gold);
  color: var(--home-navy);
  font-family: var(--home-sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.home .application-notice:hover {
  color: var(--home-navy);
  text-decoration: none;
  background: #d0990c;
}
.application-notice__detail { font-weight: 500; }

.home-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  isolation: isolate;
  background: transparent;
  border-bottom: 0;
}
.home-nav::before,
.home-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.home-nav::before {
  z-index: 0;
  border-bottom: 1px solid rgba(0, 54, 96, 0.16);
  background:
    linear-gradient(
      112deg,
      rgba(255, 255, 255, 0.56) 0%,
      rgba(241, 238, 234, 0.38) 38%,
      rgba(131, 211, 204, 0.13) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24),
    0 10px 30px rgba(0, 54, 96, 0.055);
  -webkit-backdrop-filter: blur(14px) saturate(120%) contrast(1.03);
  backdrop-filter: blur(14px) saturate(120%) contrast(1.03);
}
.home-nav::after {
  z-index: 1;
  opacity: 0.72;
  background:
    radial-gradient(
      70% 160% at 14% -70%,
      rgba(255, 255, 255, 0.62),
      transparent 62%
    ),
    linear-gradient(
      100deg,
      transparent 0 58%,
      rgba(255, 255, 255, 0.14) 72%,
      transparent 88%
    );
}
.home-nav__inner {
  position: relative;
  z-index: 2;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--home-navy);
  font-family: var(--home-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.home-brand:hover { color: var(--home-navy); text-decoration: none; }
.home-brand img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: cover;
}
.home-nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 29px;
}
.home-nav__links a {
  color: var(--home-navy);
  font-family: var(--home-sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.home-nav__links a:hover { color: #396d70; }
.home-nav__apply {
  padding: 10px 17px;
  border: 1px solid var(--home-navy);
}
.home-nav__apply:hover {
  color: var(--home-ivory) !important;
  background: var(--home-navy);
}
.home .theme-toggle {
  border-color: var(--home-rule);
  color: var(--home-navy);
  font-family: var(--home-sans);
}
.home .theme-toggle:hover {
  border-color: var(--home-navy);
  color: var(--home-navy);
}

.home-hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, #f1eeea 0, #edeadf 58%, #dcd6cc 100%);
  color: var(--home-navy);
  overflow: hidden;
  transition: opacity 180ms ease;
}
:root.field-loading body.home {
  opacity: 0;
  visibility: hidden;
}
:root.field-ready body.home {
  opacity: 1;
  visibility: visible;
  transition: opacity 160ms ease;
}
.hero-signal-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.56;
  background-image:
    linear-gradient(rgba(0, 54, 96, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 54, 96, 0.065) 1px, transparent 1px),
    linear-gradient(rgba(57, 109, 112, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 109, 112, 0.035) 1px, transparent 1px);
  /* Coarse lines every 8 digit cells (8 × 6.8px), fine lines every 2; the
     origin is aligned to the canvas lattice by binary-field.js via
     background-position. */
  background-size: 54.4px 54.4px, 54.4px 54.4px, 13.6px 13.6px, 13.6px 13.6px;
}
.hero-signal-field::before {
  content: none;
}
.home-hero__grid {
  position: relative;
  z-index: 2;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 104px 92px;
}
.home-hero__copy {
  position: relative;
  isolation: isolate;
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}
.home-kicker {
  margin: 0 0 24px;
  color: #036b7d;
  font-family: var(--home-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Kickers sit on light surfaces in light mode and dark surfaces in dark mode,
   so the label colour has to flip. Light: #036b7d (UCSB @aqua-darken-6) at
   5.34:1 on ivory. Dark: #83d3cc (--home-aqua) at 10.2:1 on the dark surface.
   The previous single value, #4b686f, sat at 2.94:1 in dark mode and failed. */
:root[data-theme="dark"] .home-kicker { color: var(--home-aqua); }
.home-hero .home-kicker { color: var(--home-aqua); }
.home-hero h1 {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0;
  color: var(--home-navy);
  font-size: clamp(64px, 7vw, 106px);
  line-height: 0.9;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.home-hero__summary {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  color: rgba(0, 54, 96, 0.88);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}
.home-actions {
  position: relative;
  z-index: 2;
  margin-top: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 220px;
  gap: 28px;
  padding: 15px 18px;
  font-family: var(--home-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.home-hero .home-button {
  min-width: 0;
  justify-content: center;
  gap: 18px;
}
.home-button--light {
  background: var(--home-navy);
  color: var(--home-ivory) !important;
  border: 1px solid var(--home-navy);
  -webkit-text-fill-color: var(--home-ivory);
  text-decoration: none;
}
.home-button--light:hover {
  background: var(--home-aqua);
  border-color: var(--home-aqua);
  color: var(--home-navy) !important;
  -webkit-text-fill-color: var(--home-navy);
  text-decoration: none;
}
.home-text-link {
  color: var(--home-navy) !important;
  font-family: var(--home-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration-color: rgba(0, 54, 96, 0.4) !important;
}
.home-text-link:hover { text-decoration-color: var(--home-aqua) !important; }

.home-section {
  position: relative;
  z-index: 1;
  padding: 110px 0;
  border-top: 1px solid var(--home-rule);
}
.section-intro {
  max-width: 760px;
  margin-bottom: 62px;
}
.section-intro h2,
.question-section h2,
.campus-section h2 {
  margin: 0;
  color: var(--home-navy);
  font-size: clamp(43px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.038em;
}
.section-intro > p:last-child {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--home-muted);
  font-size: 17px;
}
.section-intro--split {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.section-intro--split > p:last-child {
  margin: 40px 0 0;
  max-width: 420px;
}

.programs-section { background: var(--home-ivory); }
.program-list { border-top: 1px solid var(--home-navy); }
.program {
  display: grid;
  grid-template-columns:
    minmax(120px, 0.55fr)
    minmax(210px, 0.9fr)
    minmax(280px, 1.35fr)
    minmax(180px, 0.8fr)
    minmax(140px, auto);
  gap: 28px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--home-rule);
}
.program__level {
  margin: 4px 0 0;
  color: #477276;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.45;
  text-transform: uppercase;
}
.program__title p {
  margin: 0 0 8px;
  color: #477276;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.program__title h3 {
  margin: 0;
  color: var(--home-navy);
  font-size: 29px;
  line-height: 1.05;
}
.program__description {
  margin: 0;
  color: #3b4d5d;
  font-size: 15px;
  line-height: 1.65;
}
.program__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(80px, 1fr));
  gap: 14px 20px;
  margin: 0;
}
.program__facts div { min-width: 0; }
.program__facts dt {
  margin-bottom: 3px;
  color: #7a8490;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.program__facts dd {
  margin: 0;
  color: var(--home-navy);
  font-family: var(--home-serif);
  font-size: 15px;
  line-height: 1.3;
}
.program__link {
  color: var(--home-navy) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration-color: var(--home-aqua) !important;
  white-space: nowrap;
}
.program__link:hover { color: #376b6e !important; }

.question-section {
  padding-block: 82px;
  background: var(--home-paper);
  color: var(--home-navy);
}
.question-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(54px, 8vw, 112px);
  align-items: start;
}
.question-overview__title .home-kicker { margin-bottom: 18px; }
.question-overview__heading {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  color: var(--home-navy);
  text-decoration: none;
}
.question-overview__heading h2 { margin: 0; }
.question-overview__heading > span {
  padding-bottom: 5px;
  color: #477276;
  font-family: var(--home-sans);
  font-size: 28px;
  transition: transform 150ms ease;
}
.question-overview__heading:hover { color: #396d70; }
.question-overview__heading:hover > span { transform: translateX(5px); }
.question-overview__body {
  max-width: 700px;
  padding: 8px 0 4px clamp(28px, 4vw, 58px);
  border-left: 1px solid var(--home-rule);
}
.question-overview__lede {
  margin: 0;
  color: #3d4e5c;
  font-family: var(--home-sans);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.43;
  letter-spacing: -0.012em;
}
.question-overview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.question-button {
  min-width: 156px;
  justify-content: center;
  gap: 22px;
  padding: 13px 16px;
  border: 1px solid var(--home-navy);
  color: var(--home-navy);
}
.question-button:hover {
  border-color: var(--home-aqua);
  background: var(--home-aqua);
  color: var(--home-navy);
  text-decoration: none;
}
.question-button--primary {
  background: var(--home-navy);
  color: var(--home-ivory) !important;
  -webkit-text-fill-color: var(--home-ivory);
}
.research-questions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 86px;
  border-top: 1px solid var(--home-navy);
}
.research-questions p {
  min-height: 150px;
  margin: 0;
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--home-rule);
  color: var(--home-navy);
  font-family: var(--home-serif);
  font-size: 20px;
  line-height: 1.35;
}
.research-questions p + p { padding-left: 24px; }
.research-questions p:last-child { border-right: 0; }

.events-section { background: var(--home-ivory); }
.home-calendar {
  border: 1px solid var(--home-navy);
  background: white;
}
.home-calendar__bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--home-navy);
  color: var(--home-ivory);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.home-calendar iframe {
  width: 100%;
  height: 510px;
  display: block;
  border: 0;
  background: white;
}

.campus-section { background: var(--home-ivory); }
.campus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 96px);
}
.campus-copy {
  max-width: 560px;
  margin: 37px 0 34px;
  color: var(--home-muted);
  font-size: 15px;
}
.campus-links { border-top: 1px solid var(--home-navy); }
.campus-links a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--home-rule);
  color: var(--home-navy);
  font-family: var(--home-serif);
  font-size: 20px;
  text-decoration: none;
}
.campus-links a:hover { color: #3f7679; }

.home-faq-section { background: var(--home-paper); }
.home-faq-list {
  max-width: 940px;
  border-top: 1px solid var(--home-navy);
}
.home-faq-item {
  border-bottom: 1px solid var(--home-rule);
}
.home-faq-item summary {
  position: relative;
  padding: 24px 52px 24px 0;
  color: var(--home-navy);
  font-family: var(--home-serif);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
  transition: color 260ms ease;
}
.home-faq-item[open] summary { color: #396d70; }
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 22px;
  right: 4px;
  color: #477276;
  font-family: var(--home-sans);
  font-size: 24px;
  font-weight: 400;
  transform-origin: 50% 52%;
  transition:
    color 260ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.home-faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg) scale(1.04);
}
.home-faq-item p {
  max-width: 780px;
  margin: -5px 0 26px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.7;
  transform-origin: top left;
  will-change: opacity, transform;
}
.home-faq-item p a {
  color: var(--home-navy);
  text-decoration-color: var(--home-aqua);
}
.home-faq-item p a:hover { color: #376b6e; }

@media (prefers-reduced-motion: reduce) {
  .home-faq-item summary,
  .home-faq-item summary::after {
    transition: none;
  }
}

.home-footer {
  padding: 68px 0 30px;
  background: #041524;
  color: var(--home-ivory);
  border-top: 4px solid var(--home-gold);
}
.home-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
}
.home-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--home-ivory);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.home-footer__brand:hover { color: var(--home-ivory); text-decoration: none; }
.home-footer__brand img { width: 52px; height: 52px; }
.home-footer__grid p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(241, 238, 234, 0.52);
  font-size: 14px;
}
.home-footer__links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 34px;
}
.home-footer__links a {
  color: rgba(241, 238, 234, 0.75);
  font-size: 13px;
  text-decoration-color: rgba(241, 238, 234, 0.25);
}
.home-footer__links a:hover { color: var(--home-aqua); }
.home-footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(241, 238, 234, 0.13);
  color: rgba(241, 238, 234, 0.36);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* Dark theme keeps the navy identity while changing the paper surfaces. */
:root[data-theme="dark"] .home {
  --home-rule: rgba(226, 236, 234, 0.16);
  background: #061828;
  color: #e3ebe8;
}
:root[data-theme="dark"] .home-hero {
  background: linear-gradient(135deg, #09243a 0, #003660 52%, #041524 100%);
  color: var(--home-ivory);
}
:root[data-theme="dark"] .hero-signal-field {
  background-image:
    linear-gradient(rgba(131, 211, 204, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 211, 204, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(241, 238, 234, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 238, 234, 0.022) 1px, transparent 1px);
}
:root[data-theme="dark"] .home-hero h1 {
  color: var(--home-ivory);
}
:root[data-theme="dark"] .home-hero__summary {
  color: rgba(241, 238, 234, 0.88);
}
:root[data-theme="dark"] .home-button--light {
  background: var(--home-ivory);
  color: var(--home-navy) !important;
  border-color: var(--home-ivory);
  -webkit-text-fill-color: var(--home-navy);
}
:root[data-theme="dark"] .home-text-link {
  color: var(--home-ivory) !important;
  text-decoration-color: rgba(241, 238, 234, 0.4) !important;
}
:root[data-theme="dark"] .home-nav {
  background: transparent;
}
:root[data-theme="dark"] .home-nav::before {
  border-bottom-color: rgba(241, 238, 234, 0.16);
  background:
    linear-gradient(
      112deg,
      rgba(4, 21, 36, 0.72) 0%,
      rgba(0, 54, 96, 0.55) 44%,
      rgba(131, 211, 204, 0.12) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(241, 238, 234, 0.18),
    inset 0 -1px 0 rgba(131, 211, 204, 0.08),
    0 12px 34px rgba(0, 0, 0, 0.2);
}
:root[data-theme="dark"] .home-nav::after {
  opacity: 0.42;
  background:
    radial-gradient(
      70% 160% at 14% -70%,
      rgba(241, 238, 234, 0.28),
      transparent 62%
    ),
    linear-gradient(
      100deg,
      transparent 0 58%,
      rgba(131, 211, 204, 0.12) 72%,
      transparent 88%
    );
}
:root[data-theme="dark"] .home-brand,
:root[data-theme="dark"] .home-brand:hover,
:root[data-theme="dark"] .home-nav__links a,
:root[data-theme="dark"] .home .theme-toggle {
  color: var(--home-ivory);
}
:root[data-theme="dark"] .home .theme-toggle,
:root[data-theme="dark"] .home-nav__apply {
  border-color: rgba(241, 238, 234, 0.35);
}
:root[data-theme="dark"] .home-nav__links a:hover,
:root[data-theme="dark"] .home .theme-toggle:hover {
  color: var(--home-aqua);
  border-color: var(--home-aqua);
}
:root[data-theme="dark"] .home-nav__apply:hover {
  color: var(--home-navy) !important;
  background: var(--home-aqua);
}
:root[data-theme="dark"] .programs-section,
:root[data-theme="dark"] .events-section,
:root[data-theme="dark"] .campus-section {
  background: #071a2b;
}
:root[data-theme="dark"] .question-section,
:root[data-theme="dark"] .home-faq-section {
  background: #0a2237;
}
:root[data-theme="dark"] .section-intro h2,
:root[data-theme="dark"] .question-section h2,
:root[data-theme="dark"] .campus-section h2,
:root[data-theme="dark"] .program__title h3,
:root[data-theme="dark"] .program__facts dd,
:root[data-theme="dark"] .question-copy a,
:root[data-theme="dark"] .research-questions p,
:root[data-theme="dark"] .campus-links a,
:root[data-theme="dark"] .home-faq-item summary,
:root[data-theme="dark"] .home-faq-item p a {
  color: #edf2ed;
}
:root[data-theme="dark"] .section-intro > p:last-child,
:root[data-theme="dark"] .program__description,
:root[data-theme="dark"] .question-copy,
:root[data-theme="dark"] .campus-copy,
:root[data-theme="dark"] .home-faq-item p {
  color: #b7c6c9;
}
:root[data-theme="dark"] .program__level,
:root[data-theme="dark"] .program__title > p,
:root[data-theme="dark"] .program__facts dt {
  color: var(--home-aqua);
}
:root[data-theme="dark"] .program-list,
:root[data-theme="dark"] .research-questions,
:root[data-theme="dark"] .campus-links,
:root[data-theme="dark"] .home-faq-list {
  border-color: rgba(237, 242, 237, 0.42);
}
:root[data-theme="dark"] .program,
:root[data-theme="dark"] .campus-links a,
:root[data-theme="dark"] .home-faq-item {
  border-color: rgba(237, 242, 237, 0.16);
}
:root[data-theme="dark"] .program__link {
  color: var(--home-aqua) !important;
}
:root[data-theme="dark"] .program__link:hover,
:root[data-theme="dark"] .campus-links a:hover {
  color: var(--home-ivory) !important;
}
:root[data-theme="dark"] .home-calendar {
  border-color: rgba(237, 242, 237, 0.35);
  background: #0a2237;
}
:root[data-theme="dark"] .home-calendar iframe {
  filter: invert(0.9) hue-rotate(180deg) saturate(0.78);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home-nav::before {
    background: rgba(241, 238, 234, 0.97);
  }

  :root[data-theme="dark"] .home-nav::before {
    background: rgba(4, 21, 36, 0.97);
  }
}

@media (prefers-contrast: more) {
  .home-nav::before {
    background: rgba(241, 238, 234, 0.96);
  }

  :root[data-theme="dark"] .home-nav::before {
    background: rgba(4, 21, 36, 0.96);
  }
}

@media (max-width: 1050px) {
  .home-hero h1 { font-size: clamp(62px, 8vw, 88px); }
  .program {
    grid-template-columns: 120px 220px minmax(0, 1fr);
    row-gap: 18px;
  }
  .program__facts { grid-column: 2; }
  .program__link { grid-column: 3; }
}

@media (max-width: 820px) {
  .site-shell { width: min(100% - 36px, 1240px); }
  .home-nav__inner {
    min-height: 60px;
    gap: 10px;
  }
  .home-brand {
    flex: 0 0 auto;
    gap: 0;
  }
  .home-brand img {
    width: 30px;
    height: 30px;
  }
  .home-brand span { display: none; }
  .home-nav__links {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: clamp(6px, 2.1vw, 10px);
  }
  .home-nav__links a {
    min-height: 36px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: -0.012em;
  }
  .home-nav__events { display: none !important; }
  .home-nav__apply { padding: 7px clamp(6px, 1.8vw, 9px); }

  .home-hero__grid {
    min-height: 650px;
    padding-block: 82px 92px;
  }
  .home-hero h1 {
    max-width: 680px;
    margin-inline: auto;
    font-size: clamp(58px, 12vw, 82px);
  }
  .home-section { padding: 78px 0; }
  .section-intro--split,
  .question-grid,
  .campus-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section-intro--split > p:last-child {
    max-width: 580px;
    margin-top: 0;
  }
  .question-intro,
  .question-copy,
  .question-video {
    grid-column: 1;
    grid-row: auto;
  }
  .question-copy { padding-top: 0; }

  .program {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px 20px;
    padding: 28px 0;
  }
  .program__title { grid-column: 2; }
  .program__description,
  .program__facts,
  .program__link { grid-column: 2; }
  .program__facts { max-width: 430px; }

  .research-questions { grid-template-columns: repeat(2, 1fr); }
  .research-questions p:nth-child(2) { border-right: 0; }
  .research-questions p:nth-child(3),
  .research-questions p:nth-child(4) { border-top: 1px solid var(--home-rule); }

}

@media (max-width: 560px) {
  .application-notice {
    justify-content: space-between;
    padding-inline: 16px;
    font-size: 11px;
  }
  .application-notice__detail { white-space: nowrap; }
  .home-hero__grid {
    min-height: 610px;
    padding-block: 66px 96px;
  }
  .home-hero h1 { font-size: clamp(48px, 14.8vw, 62px); }
  .home-hero__summary { font-size: 16px; }
  .program { grid-template-columns: 1fr; }
  .program__level,
  .program__title,
  .program__description,
  .program__facts,
  .program__link { grid-column: 1; }
  .program__level { margin-bottom: 2px; }

  .section-intro h2,
  .question-section h2,
  .campus-section h2 { font-size: 43px; }
  .research-questions { grid-template-columns: 1fr; }
  .research-questions p,
  .research-questions p + p {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
    border-top: 1px solid var(--home-rule);
  }
  .research-questions p:first-child { border-top: 0; }
  .home-calendar iframe { height: 440px; }
  .campus-grid { grid-template-columns: 1fr; }
  .home-footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .home-footer__bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 350px) {
  .application-notice {
    gap: 8px;
    padding-inline: 12px;
  }

  .application-notice > span:first-child {
    max-width: 168px;
    line-height: 1.2;
  }
}

/* Program cards embedded on the home page reuse the subpage card system. */
.home-programs-embed { background: transparent; }

/* Responsive and dark-mode treatment for the homepage orientation section. */
:root[data-theme="dark"] .question-overview__heading { color: var(--home-ivory); }
:root[data-theme="dark"] .question-button {
  border-color: rgba(241, 238, 234, 0.42);
  color: var(--home-ivory);
}
:root[data-theme="dark"] .question-button--primary {
  border-color: var(--home-ivory);
  background: var(--home-ivory);
  color: var(--home-navy) !important;
  -webkit-text-fill-color: var(--home-navy);
}
:root[data-theme="dark"] .question-overview__heading > span { color: var(--home-aqua); }
:root[data-theme="dark"] .question-overview__body {
  border-left-color: rgba(237, 242, 237, 0.16);
}
:root[data-theme="dark"] .question-overview__lede { color: #b7c6c9; }

@media (max-width: 820px) {
  .question-overview {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .question-overview__body {
    max-width: none;
    padding: 28px 0 0;
    border-top: 1px solid var(--home-rule);
    border-left: 0;
  }
  :root[data-theme="dark"] .question-overview__body {
    border-top-color: rgba(237, 242, 237, 0.16);
  }
}

@media (max-width: 560px) {
  .question-section { padding-block: 62px; }
  .question-overview__heading { align-items: center; }
  .question-overview__heading > span { padding-bottom: 0; font-size: 23px; }
  .question-overview__lede { font-size: 21px; }
  .question-overview__actions { margin-top: 24px; }
  .question-button { min-width: 0; flex: 1 1 150px; }
}
