﻿/* SoIF R5: launch-ready narrative and unified faculty system. */

:root {
  --r5-shadow: 0 24px 70px rgba(13, 34, 50, .09);
  --r5-soft: color-mix(in srgb, var(--color-primary) 7%, var(--color-surface));
  --intro-space-top: clamp(32px, 3.3vw, 44px);
  --intro-space-bottom: clamp(30px, 3vw, 40px);
  --intro-text-measure: 52rem;
}

main > section[id] { scroll-margin-top: 112px; }

/* Section labels stand on typography alone. Decorative rails and dots are
   intentionally disabled because their fixed width can collide with titles. */
.section-kicker::after {
  content: none !important;
  display: none !important;
}

.r5-nav {
  gap: clamp(12px, 1.6vw, 28px);
}

.r5-nav > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  font: 500 clamp(14px, 1.05vw, 16px) "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .03em;
}

.r5-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  /* Optical correction: bind the active rule to the title glyphs instead of
     letting it read as a line on the bottom edge of the navigation cell. */
  bottom: 23px;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--motion-short) var(--ease);
}

.r5-nav > a:hover::after,
.r5-nav > a:focus-visible::after,
.r5-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.r5-about .story-title .title-phrase {
  display: block;
}

.r5-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, .72fr)) minmax(280px, 1.35fr);
  gap: clamp(20px, 2vw, 28px);
  row-gap: clamp(26.4px, 2.64vw, 36.96px);
  align-items: stretch;
}

.r5-intro-grid article {
  padding-top: var(--s2);
  border-top: 1px solid var(--color-outline);
}

.r5-intro-grid article > span {
  display: block;
  margin-bottom: 21.12px;
  color: var(--color-primary);
  font: 600 11px/1.2 "Avenir Next", sans-serif;
  letter-spacing: .12em;
}

.r5-intro-grid article > b {
  display: block;
  margin-bottom: var(--s2);
  font: 600 22px/1.35 var(--display-font);
}

.r5-intro-grid article > p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.85;
}

.r5-intro-grid figure {
  height: 420px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-surface);
}

.r5-intro-grid figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-tone-b);
}

.mission-band {
  margin: 0;
  padding: clamp(88px, 10vw, 150px) 3vw;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s2);
  color: #fff;
  background:
    linear-gradient(112deg, rgba(4, 37, 66, .97), rgba(0, 109, 184, .9)),
    url("../images/campus-detail.jpg") center / cover;
}

.mission-band .section-kicker {
  grid-column: 1 / 4;
  color: rgba(255,255,255,.72);
}

.mission-band .section-kicker::after {
  background: linear-gradient(currentColor,currentColor) left center/64px 1px no-repeat, radial-gradient(circle,currentColor 0 3px,transparent 3.5px) right center/7px 7px no-repeat;
}

.mission-copy {
  grid-column: 4 / 12;
}

.mission-copy > p {
  max-width: 1050px;
  margin: 0 0 var(--s4);
  font: 500 clamp(30px, 3vw, 48px)/1.55 var(--display-font);
  letter-spacing: -.01em;
  text-wrap: pretty;
}

.mission-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.4);
}

.mission-principles span {
  padding: 18px 12px 0 0;
  font-size: 14px;
  letter-spacing: .08em;
}

/* Education summary: three equal, unranked dimensions with quiet point markers. */
#education .program-summary {
  gap: clamp(18px, 3vw, 42px);
  border: 0;
}

#education .program-summary > div {
  position: relative;
  min-width: 0;
  min-height: 112px;
  padding: 22px 8px 20px 28px;
  border: 0;
}

#education .program-summary > div + div {
  border-left: 0;
}

#education .program-summary > div::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 31px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(0,109,184,.07);
}

#education .program-summary > div::after {
  content: none;
}

#education .program-summary span {
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: .1em;
}

#education .program-summary b {
  display: block;
  font: 600 clamp(17px, 1.45vw, 21px)/1.45 var(--display-font);
  letter-spacing: .01em;
  text-wrap: balance;
}

.section-heading-row {
  margin-bottom: var(--s3);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s3);
  align-items: end;
}

.section-heading-row .story-title {
  margin-bottom: var(--s2) !important;
}

.section-heading-row p {
  max-width: 720px;
  margin: 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.75;
}

.text-action {
  min-height: 46px;
  padding: 0 0 8px;
  display: inline-flex;
  align-items: flex-end;
  gap: 14px;
  border-bottom: 1px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.text-action span {
  transition: transform var(--motion-short) var(--ease);
}

.text-action:hover span { transform: translateX(5px); }

.faculty-home-grid {
  display: block;
}

.division-list {
  border-top: 1px solid var(--color-outline);
}

.division-entry {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  border-bottom: 1px solid var(--color-outline);
  text-decoration: none;
  box-shadow: inset 2px 0 transparent;
  transition: background var(--motion-short) var(--ease), box-shadow var(--motion-short) var(--ease);
}

.division-entry > div {
  transition: transform var(--motion-short) var(--ease);
}

.division-entry:hover,
.division-entry:focus-visible {
  background: var(--state-hover);
  box-shadow: inset 2px 0 var(--color-primary);
}

.division-entry:hover > div,
.division-entry:focus-visible > div {
  transform: translateX(var(--s1));
}

.division-entry b,
.division-entry span {
  display: block;
}

.division-entry b {
  margin-bottom: 8px;
  font: 600 clamp(18px, 1.4vw, 22px)/1.35 var(--display-font);
}

.division-entry span {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
}

.portrait-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 10px;
}

.portrait-mosaic a {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-surface-dim);
}

.portrait-mosaic a:nth-child(2),
.portrait-mosaic a:nth-child(5) { transform: translateY(34px); }

.portrait-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(.7) contrast(1.03);
  transition: transform var(--motion-medium) var(--ease), filter var(--motion-medium) var(--ease);
}

.portrait-mosaic a:hover img { transform: scale(1.025); filter: none; }

.portrait-mosaic span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  background: rgba(255,255,255,.9);
  color: var(--color-on-surface);
  font-size: 12px;
}

.r5-partner .partner-plate p {
  grid-column: 4 / 10;
  grid-row: 2;
  max-width: 640px;
  margin: var(--s3) 0 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.8;
}

.r5-partner .partner-table {
  grid-template-columns: repeat(4, 1fr);
}

.social-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-note {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 18px var(--gutter) 20px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s2);
  align-items: baseline;
  border-top: 1px solid var(--color-outline);
  border-bottom: 1px solid var(--color-outline);
  background: color-mix(in srgb, var(--color-surface-panel) 88%, var(--color-surface));
  color: var(--color-muted);
}

.site-note b {
  grid-column: 1 / 4;
  margin: 0;
  color: var(--color-primary);
  font: 600 12px/1.65 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .1em;
  white-space: nowrap;
}

.site-note span {
  grid-column: 4 / 13;
  margin: 0;
  font: 400 15px/1.65 "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Shared subpage shell */
.subpage-hero {
  min-height: 520px;
  padding: 190px 3vw 90px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s2);
  align-content: end;
  background:
    linear-gradient(90deg, rgba(4, 37, 66, .96), rgba(0, 109, 184, .72)),
    url("../images/gallery-finance-sunset-pexels-34647783.jpg") center 48% / cover;
  color: #fff;
}

.subpage-kicker { grid-column: 1 / 4; font: 600 12px/1.2 "Avenir Next", sans-serif; letter-spacing: .14em; opacity: .7; }
.subpage-hero h1 { grid-column: 4 / 11; margin: 0; font: 600 clamp(50px, 6vw, 84px)/1.04 var(--display-font); }
.subpage-hero > p { grid-column: 4 / 10; max-width: 760px; margin: var(--s2) 0 0; font-size: 18px; line-height: 1.85; color: rgba(255,255,255,.82); }

.faculty-directory {
  max-width: 1500px;
  margin: auto;
  padding: clamp(54px, 6vw, 76px) 3vw 0;
}

.directory-tools {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: var(--s4);
  align-items: end;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--color-outline);
}

.directory-label,
.faculty-search > span {
  display: block;
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--color-outline);
  border-radius: 999px;
  background: transparent;
  color: var(--color-on-surface);
  cursor: pointer;
  font: 14px/1.35 "PingFang SC", sans-serif;
}

.filter-count {
  min-width: 24px;
  height: 24px;
  margin-left: 9px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,109,184,.24);
  border-radius: 999px;
  color: var(--color-primary);
  font: 600 11px/1 "Avenir Next", sans-serif;
  letter-spacing: .02em;
  vertical-align: middle;
}

.filter-button.is-active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.filter-button.is-active .filter-count {
  border-color: rgba(255,255,255,.42);
  color: #fff;
  background: rgba(255,255,255,.1);
}
.filter-button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.faculty-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--color-on-surface);
  border-radius: 0;
  background: transparent;
  color: var(--color-on-surface);
  font: 16px "PingFang SC", sans-serif;
}

.faculty-search input:focus { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.results-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.faculty-divisions {
  display: grid;
  gap: clamp(56px, 6vw, 88px);
  margin-top: clamp(34px, 4vw, 54px);
}

.faculty-division[hidden] { display: none; }
.faculty-division-header {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-on-surface);
}
.faculty-division-header h2 {
  margin: 0;
  font: 600 clamp(25px, 2vw, 32px)/1.28 var(--display-font);
}
.faculty-division-header p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
}

.faculty-card[hidden] { display: none; }
.faculty-card { min-width: 0; }
.faculty-card a {
  min-height: 104px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--color-outline);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--motion-short) var(--ease), border-color var(--motion-short) var(--ease);
}
.faculty-card figure { width: 82px; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; background: var(--color-surface-dim); }
.faculty-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-position, 50% 28%);
  filter: var(--img-tone-b);
  transform: scale(var(--portrait-scale, 1));
  transition: transform var(--motion-medium) var(--ease);
}
.faculty-card a:hover img { transform: scale(calc(var(--portrait-scale, 1) + .015)); }
.faculty-card a:hover { border-color: var(--color-primary); background: var(--color-surface-dim); }
.faculty-card a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.faculty-card > a > div {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-rows: 26px 20px;
  align-content: center;
}
.faculty-card h2 {
  margin: 0;
  font: 600 19px/26px "PingFang SC", "Microsoft YaHei", sans-serif;
}
.faculty-card p { margin: 0; color: var(--color-muted); font-size: 13px; line-height: 20px; }
.empty-state { padding: var(--s4); text-align: center; color: var(--color-muted); background: var(--color-surface-dim); }

/* Use the same 1120px shell, typography and vertical rhythm as other secondary pages. */
.faculty-return-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 44px) var(--gutter) clamp(62px, 7vw, 88px);
}

.faculty-return-shell .overview-return {
  margin: 0;
  text-align: right;
}

.faculty-return-shell .overview-return a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--color-primary);
  font-size: 15px;
  line-height: 1.85;
  text-decoration: none;
}

/* Faculty profiles */
.faculty-profile {
  max-width: 1340px;
  margin: auto;
  padding: 140px 3vw clamp(80px, 9vw, 140px);
}

.profile-breadcrumb {
  margin-bottom: var(--s4);
  display: flex;
  gap: 10px;
  color: var(--color-muted);
  font-size: 13px;
}

.profile-breadcrumb a { color: var(--color-primary); text-underline-offset: 4px; }
.profile-header { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: clamp(44px, 7vw, 100px); align-items: end; padding-bottom: clamp(64px, 8vw, 110px); }
.profile-header figure {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-outline) 72%, transparent);
  background: var(--color-surface-dim);
  box-shadow: 0 16px 42px rgba(13, 34, 50, .07);
}
.profile-header figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-position, 50% 28%);
  filter: var(--img-tone-b);
  transform: scale(var(--portrait-scale, 1));
}
.profile-division { margin: 0 0 var(--s2); color: var(--color-primary); font-size: 13px; letter-spacing: .06em; }
.profile-intro h1 { margin: 0; font: 600 clamp(58px, 7vw, 96px)/1 var(--display-font); letter-spacing: -.02em; }
.profile-title { margin: var(--s2) 0 var(--s3); color: var(--color-muted); font-size: 20px; }
.profile-summary { max-width: 720px; margin: 0; font-size: 18px; line-height: 1.95; }
.profile-tags { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: 8px; }
.profile-tags span { padding: 7px 11px; border: 1px solid var(--color-outline); border-radius: 999px; color: var(--color-muted); font-size: 12px; }
.profile-sections { border-top: 1px solid var(--color-on-surface); }

.profile-section {
  display: grid;
  grid-template-columns: minmax(230px, 3fr) minmax(0, 9fr);
  gap: var(--s3);
  padding: clamp(38px, 4vw, 58px) 0;
  border-bottom: 1px solid var(--color-outline);
}

.profile-section > div { display: grid; grid-template-columns: 42px 1fr; align-items: start; }
.profile-section h2 { grid-column: 2; margin: 0; font: 600 clamp(24px, 2.3vw, 32px)/1.3 var(--display-font); }
.profile-section ul { margin: 0; padding: 0; list-style: none; }
.profile-section li { position: relative; padding: 0 0 16px 22px; color: var(--color-muted); font-size: 16px; line-height: 1.8; }
.profile-education .education-period {
  display: inline;
  white-space: nowrap;
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.profile-section li:last-child { padding-bottom: 0; }
.profile-section li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--color-primary); }
.profile-publications ul,
.profile-working-papers ul,
.profile-books-reports ul { counter-reset: faculty-work; }
.profile-publications li,
.profile-working-papers li,
.profile-books-reports li {
  counter-increment: faculty-work;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-outline) 72%, transparent);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.profile-publications li + li,
.profile-working-papers li + li,
.profile-books-reports li + li { padding-top: 18px; }
.profile-publications li::before,
.profile-working-papers li::before,
.profile-books-reports li::before {
  content: counter(faculty-work, decimal-leading-zero);
  position: static;
  width: auto;
  height: auto;
  padding-top: .28em;
  background: transparent;
  color: var(--color-primary);
  font: 11px/1.4 "Avenir Next", sans-serif;
  letter-spacing: .08em;
}
.profile-publications li:last-child,
.profile-working-papers li:last-child,
.profile-books-reports li:last-child { border-bottom: 0; }
.profile-directions ul, .profile-expertise ul { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-directions li, .profile-expertise li { padding: 9px 13px; border: 1px solid var(--color-outline); border-radius: 999px; line-height: 1.4; }
.profile-directions li::before, .profile-expertise li::before { display: none; }
.profile-actions { margin-top: var(--s4); display: flex; justify-content: space-between; gap: var(--s2); }
.profile-actions a { min-height: 46px; display: inline-flex; align-items: center; border-bottom: 1px solid var(--color-primary); color: var(--color-primary); text-decoration: none; }

@media (min-width: 901px) {
  .profile-section > div {
    position: sticky;
    top: 122px;
    align-self: start;
  }

  .profile-publications ul,
  .profile-working-papers ul,
  .profile-books-reports ul {
    width: min(100%, 760px);
  }
}

@media (max-width: 1100px) {
  .faculty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faculty-home-grid { grid-template-columns: 1fr; }
  .portrait-mosaic { max-width: 680px; }
  .r5-intro-grid { grid-template-columns: 1fr 1fr; }
  .r5-intro-grid figure { grid-column: 1 / -1; height: 360px; min-height: 0; }
}

@media (max-width: 900px) {
  .r5-nav { display: none; }
  .mast.menu-open { height: auto; min-height: 66px; background: rgba(var(--color-surface-rgb),.99); }
  .mast.menu-open .a-header-main { align-items: start; padding-top: 6px; }
  .mast.menu-open .r5-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 96px;
    height: calc(100dvh - 96px);
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
    display: grid;
    gap: 0;
    grid-auto-rows: minmax(48px, auto);
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--color-outline);
    background: rgba(var(--color-surface-rgb),.99);
  }
  .mast.menu-open .r5-nav > a { min-height: 48px; border-bottom: 1px solid var(--color-outline); }
  .mast.menu-open .r5-nav > a::after { display: none; }
  .mission-copy { grid-column: 4 / 13; }
  .directory-tools { grid-template-columns: 1fr; gap: var(--s3); }
  .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  main > section[id] { scroll-margin-top: 98px; }
  .r5-intro-grid { grid-template-columns: 1fr; }
  .r5-intro-grid figure { grid-column: auto; height: 74vw; min-height: 0; }
  .mission-band { display: block; padding: 74px 16px; }
  .mission-band .section-kicker { margin-bottom: var(--s3); }
  .mission-copy > p { font-size: clamp(27px, 7.5vw, 38px); line-height: 1.55; }
  .mission-principles { grid-template-columns: 1fr 1fr; gap: 18px; }
  .section-heading-row { grid-template-columns: 1fr; }
  .division-entry { min-height: 102px; }
  .r5-partner {
    display: block;
    overflow: hidden;
    background: var(--color-surface);
  }
  .r5-partner .partner-band {
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-surface);
  }
  .r5-partner .partner-band::after { display: none; }
  .r5-partner .partner-band > img {
    position: static;
    inset: auto;
    order: 1;
    width: 100%;
    height: clamp(220px, 62vw, 330px);
    object-fit: cover;
    object-position: center;
    transform: none;
  }
  .r5-partner .partner-plate {
    position: static;
    inset: auto;
    order: 2;
    width: auto;
    padding: 36px var(--gutter) 30px;
    display: block;
    transform: none;
    background: var(--color-surface);
  }
  .r5-partner .partner-plate .section-kicker { margin-bottom: 22px; }
  .r5-partner .partner-plate p {
    max-width: 34rem;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.75;
  }
  .r5-partner .partner-table {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    margin: 0 var(--gutter) 38px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    border-top: 1px solid var(--color-on-surface);
  }
  .r5-partner .partner-table > div {
    --rail-start: 0 !important;
    min-height: 78px;
    padding: 16px 10px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid var(--color-outline);
  }
  .r5-partner .partner-table > div:nth-child(odd) { border-right: 1px solid var(--color-outline); }
  .r5-partner .partner-table > div::before,
  .r5-partner .partner-table > div::after { display: none; }
  .r5-partner .partner-table b { white-space: normal; font-size: 16px; }
  .social-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-note {
    padding: 16px var(--gutter) 18px;
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: start;
  }
  .site-note b,
  .site-note span { grid-column: 1; }
  .subpage-hero { min-height: 440px; padding: 150px 16px 62px; display: block; }
  .faculty-hero {
    min-height: clamp(350px, 62svh, 400px);
    padding: 56px 16px 52px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .subpage-kicker { margin-bottom: var(--s2); }
  .subpage-hero h1 { font-size: 52px; }
  .subpage-hero > p { font-size: 16px; }
  .faculty-directory { padding: 54px 16px 0; }
  #education .program-summary {
    gap: 4px;
    border: 0;
  }
  #education .program-summary > div {
    min-height: 88px;
    padding: 18px 12px 16px 28px;
    border: 0;
  }
  #education .program-summary > div + div { border-left: 0; }
  #education .program-summary > div::before { left: 3px; top: 27px; }
  .faculty-divisions { gap: 54px; }
  .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .faculty-card a { grid-template-columns: 68px minmax(0, 1fr); min-height: 86px; }
  .faculty-card figure { width: 68px; }
  .faculty-card > a > div { padding: 9px 10px; }
  .faculty-card h2 { font-size: 18px; }
  .faculty-profile { padding: 104px 16px 80px; }
  .profile-breadcrumb { margin-bottom: 26px; }
  .profile-header { grid-template-columns: 1fr; gap: 34px; padding-bottom: 66px; align-items: start; }
  .profile-header figure { width: min(82vw, 430px); }
  .profile-intro h1 { font-size: 58px; }
  .profile-summary { font-size: 16px; }
  .profile-section { grid-template-columns: 1fr; gap: 24px; padding: 38px 0; }
  .profile-section li { font-size: 15px; }
  .profile-publications li,
  .profile-working-papers li,
  .profile-books-reports li { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .profile-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) and (max-height: 560px) {
  .faculty-hero {
    min-height: 250px;
    padding: 30px var(--gutter) 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .faculty-hero .subpage-kicker { margin-bottom: 16px; }
  .faculty-directory { padding-top: 40px; }
}

@media (max-width: 430px) {
  .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faculty-card a { grid-template-columns: 56px minmax(0, 1fr); min-height: 72px; }
  .faculty-card figure { width: 56px; }
  .faculty-card > a > div { padding: 7px 8px; }
  .faculty-card h2 { font-size: 16px; }
  .faculty-card p { font-size: 12px; }
  .filter-button { font-size: 13px; padding-inline: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .faculty-card img, .portrait-mosaic img, .division-entry, .text-action span { transition: none; }
}

/* R5 typography contract: one editorial display face and one interface face. */
:root {
  --body-font: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body,
body :where(*),
body :where(*)::before,
body :where(*)::after {
  font-family: var(--body-font) !important;
}

body :where(
  .a-title-line.a-accent,
  .story-title,
  .story-title *,
  .story-intro,
  .r5-intro-grid article b,
  .mission-copy p,
  #education .program-summary b,
  .division-entry b,
  .partner-title,
  .partner-title *,
  .video-title,
  .fact b,
  .final-cta h2,
  .subpage-hero h1,
  .faculty-division-header h2,
  .profile-intro h1,
  .profile-section h2
) {
  font-family: var(--display-font) !important;
}

#about .mission-quote-open::before,
#about .mission-quote-close::before {
  font-family: var(--display-font) !important;
}

/* ============================================================================
   R5-FIX-01 路 涓枃灞曠ず瀛椾綋淇锛堣矾绾� M 路 浠� CSS锛�
   鍔犲叆 2026-08-16 路 渚濇嵁銆奡oIF 棣栭〉涓枃灞曠ず瀛椾綋瀹¤銆�
   ----------------------------------------------------------------------------
   鏍瑰洜锛歋oIF Editorial Serif 鏄� Source Han Serif SC 2.003 鐨勫瓙闆嗭紝鍙惈 372 涓�
   姹夊瓧锛涘叏绔� 1317 涓笉鍚屾眽瀛椾腑 976 涓紙74%锛変笉鍦ㄥ瓙闆嗗唴锛屾祻瑙堝櫒鍥犳鍦ㄥ悓涓�鍙ヨ瘽
   鍐呴儴閫愬瓧鍥為��銆傚弬瑙� docs/font-production-r9.md 绗� 33鈥�35 琛岋紙鍚屼竴澶辨晥妯″紡鐨�
   棰勫憡涓� 2026-07-17 鍏堜緥锛夈��
   鏈潡涓嶆柊澧炪�佷笉鏇挎崲浠讳綍瀛椾綋浜岃繘鍒讹紝鍙皟鏁村瓧浣撹鑹蹭笌鎺掔増鍙傛暟銆�
   鍥炴粴锛氭暣鍧楀垹闄ゅ嵆鍙紱soif-home.css 涓庝袱涓� woff2 鍧囨湭琚慨鏀广��
   ============================================================================ */

/* 鈶� 瀛椾綋瑙掕壊鎷嗗垎銆�
   SoIF Editorial Serif 浠嶆槸灞曠ず灞傞閫夛紝decision-log 2026-07-16 鍐荤粨鐨�
   銆屽畫浣撲笁瑙掕壊 + 鏃犺‖绾垮姛鑳藉眰銆嶇З搴忎笉鍙橈紱鏈潯鍙敼銆孲oIF 缂哄瓧鏃剁敱璋佸厹搴曘�嶃��
   瀹炴祴姹夊瓧瑙嗚閲嶅績锛堝ⅷ杩圭洅涓績璺濆熀绾匡紝em锛夛細
       SoIF 0.390 路 PingFang SC 0.370 路 Songti SC 0.305 路 STSong 0.310
   鍏滃簳鐢� Songti SC 鎹㈡垚 PingFang SC 鍚庯紝鍥為��瀛椾笌姝ｅ父瀛楃殑鍨傜洿閿欎綅
   浠� 0.080em 闄嶅埌 0.015em锛�35.2px 鏍囬涓婂嵆 2.8px 鈫� 0.5px锛夈��
   鏈綅蹇呴』鏄� sans-serif锛欰ndroid 涓嶅惈 Songti SC / STSong / SimSun锛�
   鑻ュ啓 serif 浼氳惤鍒� Noto Serif CJK锛岃法绔竴鑷存�у弽鑰屾洿宸�� */
:root{
  --display-latin: "SoIF Editorial Serif", Georgia, "Times New Roman", serif;
  --display-cjk:   "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                   system-ui, sans-serif;
  --display-font:  "SoIF Editorial Serif", var(--display-cjk);
}

/* 鈶� 涓枃灞曠ず鏂囧瓧锛氳礋瀛楄窛褰掗浂銆傘�怣1 淇銆�
   鍘熷啓娉曠敤浜� body :where(鈥�)锛岀壒鎸囧害鍙湁 (0,0,1)锛屽帇涓嶈繃 soif-home.css:10
   鐨� .story-title{letter-spacing:-.015em}锛�(0,1,0)锛夛紝瑙勫垯浠庢湭鐢熸晥銆�
   鏀逛负涓嶅甫 :where() 鐨勬櫘閫氶�夋嫨鍣ㄥ垪琛細姣忎釜閫夋嫨鍣ㄥ彇鑷韩鐨勮嚜鐒剁壒鎸囧害锛�
   涓� soif-home.css 涓殑鍚屽悕瑙勫垯鎵撳钩锛岃�� r5.css 鍦ㄥ叾鍚庡姞杞斤紝鍚庡啓鑰呰儨銆�
   #education .program-summary b 涓� r5.css:191 鐨� (1,1,1) 鍚岀壒鎸囧害锛屽悓鐞嗚儨鍑恒��

   棣栧睆 .a-title-line / .a-title-line.a-accent 宸蹭粠鏈垪琛ㄧЩ闄わ紝鍘熷洜锛�
   涓よ鍏卞悓浠� .a-hero-copy h1 缁ф壙 letter-spacing:-.045em锛涜嫢鍙妸 .a-accent
   褰掗浂锛岄灞忎袱琛屽瓧璺濅細涓�涓� 0銆佷竴涓� -0.045em锛屽弽鑰屼笉榻愩�傞灞忔枃瀛楀綋鍓� 100%
   鍛戒腑瀛椾綋瀛愰泦銆佹湭鍑虹幇鍥為��锛岀淮鎸佸師鏍枫�傝椤圭櫥璁颁负閬楃暀 L4锛屽緟璺嚎 S 鍚庡璇勩�� */
.story-title,
.story-title *,
.story-intro,
.r5-intro-grid article b,
.mission-copy p,
#education .program-summary b,
.division-entry b,
.partner-title,
.partner-title *,
.video-title,
.fact b,
.final-cta h2,
.subpage-hero h1,
.faculty-division-header h2,
.profile-intro h1,
.profile-section h2 {
  letter-spacing: 0;
}

/* 鈶� font-synthesis 缁熶竴銆�
   鍘熺姸鎬佹槸鍒嗚鐨勶細soif-home.css 鍙粰 .story-title / .story-intro /
   .partner-title / .final-cta h2 / .a-title-line.a-accent 鍐欎簡
   font-synthesis:none锛岃�屽悓鏍峰悆 --display-font 鐨� .r5-intro-grid article b銆�
   .division-entry b銆�#education .program-summary b 浠嶆槸 auto锛堝凡绾夸笂瀹炴祴纭锛夈��
   鏈潯琛ラ綈锛屼娇灞曠ず灞備笉瀛樺湪涓ょ鍚堟垚琛屼负銆� */
body :where(
  .a-title-line,
  .a-title-line.a-accent,
  .story-title,
  .story-title *,
  .story-intro,
  .r5-intro-grid article b,
  .mission-copy p,
  #education .program-summary b,
  .division-entry b,
  .partner-title,
  .partner-title *,
  .video-title,
  .fact b,
  .final-cta h2,
  .subpage-hero h1,
  .faculty-division-header h2,
  .profile-intro h1,
  .profile-section h2
){
  font-synthesis: none;
}

/* 鈶� 瀛楅噸褰掍綅銆�.a-title-line 鍘熻姹� 500锛岃�屽瓧鏃忓彧鏈� 400/600锛屽疄娴嬭惤鍒� 400銆�
   鏄惧紡鍐欐锛屾秷闄ら殣鎬т緷璧栵紙SoIF 鐨� 600 姣� 400 閲� 31%锛屽尮閰嶄竴鍙樹細闈炲父鏄庢樉锛夈�� */
.a-title-line{ font-weight: 400; }

/* 鈶� 娓呴櫎瀛ゅ効缂╄繘銆�
   soif-home.css:185 鐨� padding-left:88px锛�:226 绉诲姩绔� 66px锛夋槸涓�
   .mission-quote-open 澶у紩鍙烽鐣欑殑锛岃�岃鍏冪礌鍦ㄥ叏绔� HTML/JSP 涓笉瀛樺湪
   锛堝凡鏍稿疄锛歮ission-quote 浠呭嚭鐜板湪涓や唤 CSS 鍐咃級銆�
   r5.css 鍦� soif-home.css 涔嬪悗鍔犺浇锛屽悓鐗规寚搴﹀悗鍐欒�呰儨锛屽獟浣撴煡璇笉澧炲姞鐗规寚搴︼紝
   鍥犳鏈潯涓�娆¤鐩栨闈笌绉诲姩涓や釜鏂偣銆� */
#about .story-intro{ padding-left: 0; }

/* 浜岀骇椤甸潰鏍忕洰鏍囬锛氫笌涓婚〉鍚屽眰绾ф爣棰樺叡鐢ㄥ瓧鍙峰彉閲忓拰琛岄珮銆� */
.secondary-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--color-primary);
  font-family: var(--body-font) !important;
  font-size: var(--title-level-one-size);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .1em;
  font-synthesis: none;
}

.secondary-page-title::before {
  flex: 0 0 32px;
  width: 32px;
  height: 1px;
  background: currentColor;
  content: "";
}

/* 甯堣祫椤甸噰鐢ㄤ笌鍏朵粬浜岀骇椤甸潰鐩稿悓鐨勭函鏍囬甯︼紱涓嶅啀淇濈暀瑁呴グ鎬фí骞呭奖鍍忋�� */
.faculty-hero {
  min-height: 0;
  padding:
    var(--intro-space-top)
    max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)))
    var(--intro-space-bottom);
  border-bottom: 1px solid var(--color-outline);
  background: linear-gradient(96deg, var(--color-surface-dim) 0%, var(--color-surface) 62%);
  color: var(--color-on-surface);
}

.faculty-hero::before {
  content: none;
}

.faculty-hero .secondary-page-title {
  position: static;
  margin-bottom: 14px;
  font-size: var(--title-level-one-size);
  font-weight: 700;
}

.faculty-hero p {
  width: 100%;
  max-width: var(--intro-text-measure);
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(17px, 1.4vw, 18px);
  line-height: 1.95;
}

@media (max-width: 760px) {
  .faculty-hero {
    min-height: 0;
    padding: var(--intro-space-top) 16px var(--intro-space-bottom);
  }
}

/* R38 precision layer: restore the documented line-and-dot section terminal,
   remove menu translucency, and keep interaction motion optical rather than
   structural. These rules deliberately sit after the R5 migration fixes. */
.section-kicker::after {
  content: "" !important;
  display: block !important;
  flex: 0 0 48px;
  width: 48px;
  height: 5px;
  background:
    linear-gradient(currentColor, currentColor) left center / 40px 1px no-repeat,
    radial-gradient(circle, currentColor 0 2px, transparent 2.5px) right center / 5px 5px no-repeat !important;
  opacity: .72;
}

@media (max-width: 900px) {
  .mast.menu-open,
  .mast.menu-open .r5-nav {
    background: rgb(var(--color-surface-rgb));
  }

  .mast.menu-open .r5-nav {
    animation: r38-menu-in var(--motion-medium) var(--ease) both;
  }

  .section-kicker::after {
    flex-basis: 32px;
    width: 32px;
    background-size: 24px 1px, 5px 5px !important;
  }
}

@keyframes r38-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .division-entry > div { transition: none; }
}

/* Homepage chapter continuity: full-bleed and tinted chapters already provide
   their own visual transitions, so adjacent unframed chapters do not repeat a
   second full-width rule. */
#faculty.story-section,
#updates.story-section {
  border-top: 0;
}

/* Keep the mission copy vertically centered while tightening excess blue field. */
html[lang="en"] #mission .mission-copy > p {
  font-size: clamp(21.25px, 1.7425vw, 27.2px);
}

@media (max-width: 800px) {
  html[lang="en"] #mission .mission-copy > p {
    font-size: clamp(19.55px, 4.93vw, 22.95px);
  }
}

#mission.mission-band {
  align-items: center;
  padding-block: min(var(--s4), 50px);
}

/* Reduce the faculty chapter's vertical field by exactly forty percent. */
#faculty.story-section {
  padding-block: calc(var(--s5) * .6);
}

/* Match the faculty-to-engagement content gap to the preceding chapter rhythm.
   The mobile partner composition has its own stacked spacing and is unchanged. */
@media (min-width: 801px) {
  /* Existing spacing for the remaining homepage chapters. */
  #updates.story-section {
    padding-top: 82px;
    padding-bottom: 66px;
  }

  #faculty.story-section {
    padding-top: 50px;
    /* The last row's bottom rule is the visible chapter endpoint: 74px here
       plus the adjacent 16px section offset yields a fixed 90px to the next title. */
    padding-bottom: 74px;
  }

  #cooperation .partner-plate {
    padding-top: 0;
  }
}

/* Compact the homepage introduction while retaining its type and image sizes. */
#about.story-section {
  padding-block: clamp(58.08px, 5.544vw, 73.92px);
}

#about .story-title {
  margin-bottom: 42.24px;
}

#about .story-intro {
  max-width: 780px;
  padding-block: 0;
  margin-bottom: 42.24px;
}

@media (max-width: 800px) {
  #about .story-title { margin-bottom: 31.68px; }
  #about .story-intro { margin-bottom: 36.96px; }
}

/* Keep artwork within the page measure, with room around its content rails. */
#cooperation.partner-section {
  min-height: 0;
  --partner-art-inset: clamp(8px, 1vw, 12px);
  --partner-content-inset: clamp(20px, 2.2vw, 32px);
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--shell) - 2 * var(--gutter)));
  margin-inline: auto;
}

#cooperation .partner-band {
  height: auto;
  background: var(--color-surface);
}

#cooperation .partner-band > img {
  position: relative;
  display: block;
  inset: auto;
  width: calc(100% - 2 * var(--partner-art-inset));
  height: auto;
  aspect-ratio: 1915 / 821;
  margin-inline: auto;
  object-fit: contain;
  transform: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

#cooperation .partner-band::after {
  inset-inline: var(--partner-art-inset);
  background: linear-gradient(180deg,
    rgba(var(--color-surface-rgb), .78) 0 14%,
    rgba(var(--color-surface-rgb), .42) 34%,
    rgba(var(--color-surface-rgb), .26) 55%,
    rgba(var(--color-surface-rgb), .74) 100%);
}

/* Put the readability wash over the artwork, avoiding a narrower frosted panel. */
#cooperation .partner-plate,
#cooperation .partner-table {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#cooperation .partner-plate,
#cooperation .partner-table {
  width: calc(100% - 2 * var(--partner-content-inset));
  padding-inline: 0;
}

@media (max-width: 800px) {
  #cooperation .partner-band > img {
    margin-inline: var(--partner-art-inset);
  }

  #cooperation .partner-plate,
  #cooperation .partner-table {
    margin-inline: auto;
  }
}

/* Size each label group to its text so its rail follows the title itself. */
@media (min-width: 801px) {
  #cooperation .partner-table > div {
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    padding-right: 12px;
  }

  #cooperation .partner-table b {
    white-space: normal;
  }
}

#cooperation .partner-table > div::before {
  left: auto;
  right: 0;
}

#cooperation .partner-table > div::after {
  left: auto;
  right: -3px;
}

/* Separate the heading from the artwork when its natural height gets shorter. */
@media (min-width: 801px) and (max-width: 1100px) {
  #cooperation .partner-band {
    display: grid;
    grid-template-columns: 1fr;
  }

  #cooperation .partner-plate {
    position: relative;
    inset: auto;
    transform: none;
    grid-area: 1 / 1;
    margin-inline: auto;
    padding-bottom: 28px;
  }

  #cooperation .partner-band > img {
    grid-area: 2 / 1;
  }
}