/* Interior pages use the same deep navy backdrop and blue surfaces as the homepage. */
.interior-page {
  color-scheme: dark;
  --ink: var(--text-light);
  --muted: var(--text-soft);
  --blue: var(--text-link);
  --line: var(--outline-blue);
  color: var(--ink);
  background: linear-gradient(var(--navy-top) 65px, var(--navy-mid) 300px, var(--navy-low) 680px, var(--navy-footer));
}
.interior-page [hidden] { display: none !important; }
.interior-page main { min-height: 65vh; }
.interior-page a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.page-hero { padding: clamp(48px, 6.2vw, 92px) 0 clamp(23px, 3.5vw, 49px); }
.page-hero h1 { margin: 0; max-width: 14ch; font-size: clamp(64px, 8.4vw, 116px); font-weight: 650; line-height: .98; letter-spacing: -.065em; text-wrap: balance; }
.page-hero-lead { margin: 0; max-width: 34ch; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; letter-spacing: -.015em; }
.page-content { padding: 6px 0 clamp(56px, 7vw, 96px); }
.member-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.member-card { display: flex; min-width: 0; flex-direction: column; background: var(--surface-blue); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.member-card:hover { border-color: #7b94b9; box-shadow: 0 12px 32px #05091438; }
.member-card:focus-within { border-color: var(--blue); }
.member-portrait { position: relative; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; isolation: isolate; background: #344e70; }
.member-card .member-portrait { width: 78px; height: 78px; margin: 30px 28px 22px; border-radius: 50%; }
.member-initials { color: #e0ecff; font-size: 24px; font-weight: 500; letter-spacing: -.055em; }
.member-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; }
.member-card-body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 0 28px 30px; }
.member-card-name { margin: 0 0 10px; font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -.035em; }
.member-card-name a { color: var(--ink); text-decoration: none; }
.member-card-name a:hover { color: var(--blue); }
.member-card-role { margin: 0 0 12px; color: var(--blue); font-size: 11px; font-weight: 600; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; }
.member-card-affiliation { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.member-card-bio { margin: 0 0 26px; color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.member-profile-link, .interior-text-link { display: inline-block; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.6; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #a8b4c5; }
.member-card .member-profile-link { margin-top: auto; padding-top: 8px; }
.member-profile-link:hover, .interior-text-link:hover { color: var(--blue); text-decoration-color: currentColor; }
.research-hero h1 { max-width: 10ch; font-size: clamp(62px, 7.4vw, 102px); }
.work-list { border-top: 1px solid var(--line); }
.work-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 34px; padding: 35px 0; border-bottom: 1px solid var(--line); }
.work-year { margin: 0; padding-top: .65em; color: var(--muted); font-size: .86rem; line-height: 1.7; font-variant-numeric: tabular-nums; }
.work-details { min-width: 0; }
.work-title { margin: 0 0 16px; max-width: 38ch; font-size: clamp(24px, 2.5vw, 33px); font-weight: 500; line-height: 1.3; letter-spacing: -.035em; overflow-wrap: anywhere; }
.work-authors { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.work-member-author { color: var(--ink); text-decoration: underline; text-decoration-color: #bac5d3; text-underline-offset: 4px; }
.work-member-author:hover { color: var(--blue); text-decoration-color: currentColor; }
.work-venue { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.work-summary { margin: 0 0 22px; max-width: 72ch; color: var(--muted); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.work-link { display: inline-block; color: var(--blue); font-size: 13px; font-weight: 500; line-height: 1.7; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #b8cbee; }
.work-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.member-profile-hero { padding-block: 44px 53px; }
.profile-back { display: inline-block; margin-bottom: 26px; color: var(--blue); font-size: .86rem; line-height: 1.6; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #7893b8; }
.profile-back:hover { color: var(--ink); }
.member-profile-hero h1 { max-width: 20ch; font-size: clamp(50px, 6.4vw, 90px); overflow-wrap: break-word; }
.member-profile-hero .page-hero-lead { max-width: 55ch; margin-top: 24px; font-size: 17px; }
.member-profile { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 56px 72px; }
.member-profile-sidebar { min-width: 0; padding: 24px; background: var(--surface-blue); border: 1px solid var(--line); border-radius: 16px; }
.member-portrait-large { width: 100%; aspect-ratio: 1 / 1; margin-bottom: 24px; border-radius: 4px; }
.member-portrait-large .member-initials { font-size: 64px; }
.profile-affiliation { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.member-profile-details { min-width: 0; }
.profile-section + .profile-section { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.profile-section h2, .profile-html-section h2 { margin: 0 0 18px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.6; letter-spacing: .065em; text-transform: uppercase; }
.profile-text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.profile-html-section { grid-column: 1 / -1; min-width: 0; padding-top: 32px; border-top: 1px solid var(--line); }
.profile-html-frame { display: block; width: 100%; min-height: 700px; background: var(--surface-blue); border: 1px solid var(--line); border-radius: 5px; }
.empty-panel { padding: 30px; background: var(--surface-blue); border: 1px solid var(--line); border-radius: 8px; }
.empty-panel h2 { margin: 0 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.empty-panel p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
@media (max-width: 1040px) {
  .member-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-profile { grid-template-columns: 240px minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 760px) {
  .member-profile { grid-template-columns: 1fr; gap: 40px; }
  .member-profile-sidebar { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 15px 24px; }
  .member-portrait-large { grid-row: span 2; margin: 0; }
  .member-portrait-large .member-initials { font-size: 38px; }
  .profile-affiliation { margin: 0; }
  .member-profile-sidebar .member-profile-link { justify-self: start; }
  .work-card { grid-template-columns: 82px minmax(0, 1fr); gap: 24px; }
  .profile-html-frame { min-height: 580px; }
}
@media (max-width: 560px) {
  .page-hero { padding-block: 42px 26px; }
  .page-hero h1 { font-size: clamp(56px, 14vw, 76px); }
  .page-hero-lead { font-size: 17px; }
  .member-directory { grid-template-columns: 1fr; gap: 18px; }
  .member-card .member-portrait { margin: 26px 24px 20px; }
  .member-card-body { padding-inline: 24px; padding-bottom: 26px; }
  .research-hero h1 { font-size: clamp(54px, 13vw, 70px); }
  .work-card { display: block; padding: 28px 0; }
  .work-year { margin-bottom: 16px; padding: 0; font-size: 11px; }
  .work-title { margin-bottom: 16px; font-size: 23px; }
  .work-authors { font-size: 13px; }
  .work-summary { font-size: 14px; }
  .member-profile-hero { padding-block: 36px 52px; }
  .member-profile-hero h1 { font-size: clamp(42px, 10.8vw, 62px); }
  .profile-back { margin-bottom: 32px; }
  .member-profile-sidebar { grid-template-columns: 90px minmax(0, 1fr); padding: 20px; gap: 14px 20px; }
  .profile-affiliation, .member-profile-sidebar .member-profile-link { font-size: 12px; }
  .member-portrait-large .member-initials { font-size: 30px; }
  .profile-text { font-size: 15px; line-height: 1.85; }
}
@media (prefers-reduced-motion: reduce) {
  .member-card { transition: none; }
}
