/* ============================================================
   NMSRC — Editorial Redesign
   Type: Source Serif 4 (display) + Source Sans 3 (text/labels)
   ============================================================ */

:root {
  /* palette — neutral paper + ink, one restrained accent */
  --paper:      #f4f1ea;   /* warm off-white background */
  --paper-2:    #ebe7dd;   /* slightly deeper panel */
  --card:       #faf8f3;   /* raised card */
  --ink:        #1a1916;   /* near-black text */
  --ink-soft:   #4a4842;   /* secondary text */
  --ink-faint:  #8c887d;   /* tertiary / meta */
  --rule:       #d4cfc2;   /* hairline rules */
  --rule-soft:  #e2ddd1;
  --accent:     #2f4a6b;   /* deep academic blue (tweakable) */
  --accent-ink: #21384f;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 4.5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- shared layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.num {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* section heading block */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 18ch;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 28px;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.brand .brand-dot { color: var(--accent); }
.brand small {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav a .num { font-size: 10.5px; color: var(--accent); font-weight: 600; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  background: var(--accent);
  padding: 9px 16px !important;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent-ink); }

.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  border-bottom: 1px solid var(--rule);
  padding-top: clamp(48px, 8vw, 104px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: end;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 22px 0 0;
}
.hero-title .ht-lead {
  display: block;
  font-size: clamp(44px, 8.4vw, 112px);
  line-height: 0.95;
}
.hero-title .ht-sub {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  margin-top: clamp(18px, 2vw, 28px);
  font-size: clamp(19px, 2.7vw, 34px);
  font-style: italic;
  line-height: 1;
  color: var(--ink-faint);
  letter-spacing: -0.01em;
}
.hero-title .ht-sub::before {
  content: "";
  width: clamp(28px, 5vw, 68px);
  height: 2px;
  background: var(--accent);
  flex: none;
}
/* variant: accent on the field name */
.hero[data-hero="accent"] .ht-lead .nm { color: var(--accent); }
/* variant: unified — Research Community matches the field, no italic */
.hero[data-hero="unified"] .ht-sub {
  font-style: normal;
  color: var(--ink);
  font-size: clamp(44px, 8.4vw, 112px);
  line-height: 0.95;
  margin-top: 0;
  letter-spacing: -0.025em;
}
.hero[data-hero="unified"] .ht-sub::before { display: none; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.hero-meta div { display: flex; flex-direction: column; gap: 3px; }
.hero-meta dt {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.hero-meta dd {
  margin: 0; font-family: var(--serif); font-size: 19px; color: var(--ink);
}
.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero-lede strong { color: var(--ink); font-weight: 600; }
.hero-acronym {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
}
.hero-acronym span {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--card);
}
.hero-acronym span b { color: var(--accent); }

/* ============================================================
   INTRO
   ============================================================ */
.intro { padding-block: clamp(56px, 8vw, 110px); }
.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 5vw, 80px);
}
.intro-body p {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.5;
  margin: 0 0 1em;
  color: var(--ink);
}
.intro-body p:last-child { margin-bottom: 0; }
.intro-body p.secondary {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.intro-aside { position: sticky; top: 100px; align-self: start; }

/* ============================================================
   RESEARCH TOPICS  (the editorial program grid)
   ============================================================ */
.topics { background: var(--paper-2); border-block: 1px solid var(--rule); padding-block: clamp(56px, 8vw, 110px); }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}
.topic {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 104px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.2s, padding 0.2s;
}
.topics-grid .topic:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 28px; }
.topics-grid .topic:nth-child(even) { padding-left: 28px; }
.topic:hover { background: var(--card); }
.topic .t-num {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
}
.topic h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.01em;
}
.topic .t-arrow {
  font-size: 18px;
  color: var(--ink-faint);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.22s;
  padding-top: 2px;
}
.topic:hover .t-arrow { opacity: 1; transform: translateX(0); color: var(--accent); }

/* ============================================================
   FEATURE BLOCKS  (Members / Academic Work / Activities)
   ============================================================ */
.features { padding-block: clamp(40px, 6vw, 80px); }
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 68px);
  border-bottom: 1px solid var(--rule);
}
.features .feature:last-child { border-bottom: 0; }
.feature--reverse .feature-media { order: 2; }
.feature-media {
  display: block;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.feature-media:hover img { transform: scale(1.04); }
.feature-body { max-width: 52ch; }
.feature-index {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.feature-body h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.feature-body p { margin: 0 0 24px; font-size: 16px; color: var(--ink-soft); line-height: 1.65; }
.feature-link {
  font-size: 13.5px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.feature-link span { transition: transform 0.2s; }
.feature-link:hover span { transform: translateX(4px); }

.pillars { padding-block: clamp(56px, 8vw, 110px); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
.pillar {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  transition: transform 0.25s, box-shadow 0.25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(26,25,22,0.45); }
.pillar image-slot, .pillar .pillar-img { height: 200px; width: 100%; }
.pillar-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.pillar .p-index {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 400; font-size: 27px; margin: 0 0 12px; letter-spacing: -0.01em;
}
.pillar p { margin: 0 0 22px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.pillar .p-link {
  margin-top: auto;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.02em;
}
.pillar .p-link span { transition: transform 0.2s; }
.pillar:hover .p-link span { transform: translateX(4px); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 8vw, 110px); }
.timeline .eyebrow { color: #b3ae9f; }
.timeline .eyebrow::before { background: #9db4cd; }
.timeline .section-head h2 { color: var(--paper); }
.tl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.tl-item {
  padding: 30px 24px 30px 0;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.tl-item:last-child { border-right: 0; }
.tl-item:not(:first-child) { padding-left: 24px; }
.tl-year {
  font-family: var(--serif);
  font-size: 40px; line-height: 1; color: #9db4cd; margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.tl-item h4 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.tl-item p { margin: 0; font-size: 14px; color: #b9b4a6; line-height: 1.55; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding-block: clamp(56px, 8vw, 110px); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.contact h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.02em; margin: 16px 0 0;
}
.contact .contact-lede { font-size: 18px; color: var(--ink-soft); margin-top: 24px; max-width: 38ch; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
}
.field input, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  justify-self: start;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  color: #fff; background: var(--accent);
  border: none; padding: 13px 28px; border-radius: 2px; cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--accent-ink); }
.btn-submit:disabled { opacity: 0.6; cursor: default; }
.form-status { margin: 4px 0 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #9a3b2f; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--rule); padding-block: 48px 40px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer .brand { font-size: 26px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .fc-head { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--ink-soft); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-base {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-faint);
}

/* ============================================================
   SUBPAGE — shared page hero
   ============================================================ */
.page-hero {
  border-bottom: 1px solid var(--rule);
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.page-hero .crumbs {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 26px;
}
.page-hero .crumbs a { color: var(--ink-faint); transition: color .2s; }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero .crumbs .sep { color: var(--rule); }
.page-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.025em; margin: 0;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .page-lede {
  margin: 26px 0 0; max-width: 60ch; font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55; color: var(--ink-soft);
}

/* ---------- Leadership block ---------- */
.leadership {
  padding-block: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.lead-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.lead-grid .lead-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint);
}
.lead-rows { display: grid; gap: 28px; }
.lead-row { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: baseline; padding-bottom: 24px; border-bottom: 1px solid var(--rule-soft); }
.lead-row:last-child { border-bottom: 0; padding-bottom: 0; }
.lead-role { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); padding-top: 6px; }
.lead-names { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lead-names .nm { font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); line-height: 1.2; }
.lead-names .nm.chair { font-size: clamp(24px, 2.6vw, 32px); }

/* ---------- Members roster ---------- */
.roster { padding-block: clamp(44px, 6vw, 80px); }
.roster-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.roster-head h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.01em; margin: 0;
}
.roster-head .count {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); font-variant-numeric: tabular-nums;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 34px) clamp(18px, 2vw, 28px);
}
.member { display: flex; flex-direction: column; }
.member-photo {
  width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--rule);
  margin-bottom: 14px;
}
.member-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.member:hover .member-photo img { transform: scale(1.04); }
.member-name {
  font-family: var(--serif); font-size: 19px; line-height: 1.15; letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 7px;
}
.member-name .dash { color: var(--accent); opacity: 0; transform: translateX(-5px); transition: all .2s; }
.member:hover .member-name .dash { opacity: 1; transform: translateX(0); }
.member-inst { margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }

@media (max-width: 980px) {
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .lead-grid { grid-template-columns: 1fr; gap: 22px; }
  .lead-row { grid-template-columns: 160px 1fr; }
}
@media (max-width: 720px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Academic Work index page ---------- */
.aw { padding-block: clamp(44px, 6vw, 80px); }
.aw-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.aw-count {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.aw-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); }
.aw-topic {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 22px; align-items: start;
  min-height: 172px; padding: 30px 8px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s, padding 0.2s;
}
.aw-grid .aw-topic:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 32px; }
.aw-grid .aw-topic:nth-child(even) { padding-left: 32px; }
.aw-topic:hover { background: var(--card); }
.aw-num { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 5px; }
.aw-text h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.14; letter-spacing: -0.01em; margin: 0 0 10px;
}
.aw-text p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.aw-arrow { font-size: 18px; color: var(--ink-faint); opacity: 0; transform: translateX(-6px); transition: all .22s; padding-top: 4px; }
.aw-topic:hover .aw-arrow { opacity: 1; transform: translateX(0); color: var(--accent); }
@media (max-width: 720px) {
  .aw-grid { grid-template-columns: 1fr; }
  .aw-grid .aw-topic:nth-child(odd) { border-right: 0; padding-right: 8px; }
  .aw-grid .aw-topic:nth-child(even) { padding-left: 8px; }
}

/* ---------- Single topic page ---------- */
.topic-page { padding-block: clamp(44px, 6vw, 80px); }
.topic-lead {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px);
  align-items: start; padding-bottom: clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--rule);
}
.topic-lead .intro-text p {
  font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.5; margin: 0 0 1em; color: var(--ink);
}
.topic-lead .intro-text p:last-child { margin-bottom: 0; }
.pub-card {
  background: var(--card); border: 1px solid var(--rule); padding: clamp(26px, 3vw, 38px);
}
.pub-card .pc-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.pub-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 14px; letter-spacing: -0.01em; }
.pub-card p { margin: 0 0 24px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.pub-card .pc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pub-card .pc-tags span {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft);
  border: 1px solid var(--rule); padding: 6px 11px; border-radius: 2px; background: var(--paper);
}
.pub-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  color: #fff; background: var(--accent); padding: 13px 24px; border-radius: 2px;
  transition: background 0.2s;
}
.pub-btn:hover { background: var(--accent-ink); }
.pub-btn span { transition: transform 0.2s; }
.pub-btn:hover span { transform: translateX(4px); }

/* related streams */
.related { padding-block: clamp(36px, 5vw, 64px); }
.related .rel-head { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 24px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.rel-item { background: var(--paper); padding: 20px 22px; display: flex; align-items: center; gap: 14px; transition: background 0.2s; }
.rel-item:hover { background: var(--card); }
.rel-item .rn { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; color: var(--accent); }
.rel-item .rname { font-family: var(--serif); font-size: 17px; line-height: 1.15; }

/* prev / next */
.topic-nav { display: flex; justify-content: space-between; gap: 16px; padding-block: clamp(32px, 4vw, 52px); border-top: 1px solid var(--rule); }
.topic-nav a { display: flex; flex-direction: column; gap: 6px; max-width: 45%; }
.topic-nav .tn-dir { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.topic-nav .tn-name { font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); color: var(--ink); transition: color 0.2s; }
.topic-nav a:hover .tn-name { color: var(--accent); }
.topic-nav .tn-next { text-align: right; margin-left: auto; }

@media (max-width: 820px) {
  .topic-lead { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr; }
}

/* ---------- Publications list (topic pages) ---------- */
.pubs { padding-block: clamp(40px, 5vw, 72px); }
.pub-section { margin-bottom: clamp(40px, 5vw, 64px); }
.pub-section:last-child { margin-bottom: 0; }
.pub-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; margin-bottom: 4px; border-bottom: 2px solid var(--ink);
}
.pub-section-head h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.01em; margin: 0;
}
.pub-section-head .pcount {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pub-row {
  display: grid; grid-template-columns: 76px 1fr; gap: 24px; align-items: start;
  padding: 22px 8px; border-bottom: 1px solid var(--rule);
  transition: background .2s, padding .2s;
}
.pub-row:hover { background: var(--card); padding-inline: 16px 8px; }
.pub-year {
  font-family: var(--serif); font-size: 20px; color: var(--accent);
  font-variant-numeric: tabular-nums; padding-top: 2px;
}
.pub-year.wp {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--rule);
  padding: 4px 7px; display: inline-block; border-radius: 2px;
}
.pub-title {
  font-family: var(--serif); font-size: clamp(17px, 1.9vw, 20px); line-height: 1.32;
  letter-spacing: -0.01em; color: var(--ink); display: inline;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s, color .2s;
}
.pub-row a:hover .pub-title,
.pub-title-link:hover .pub-title { background-size: 100% 1px; color: var(--accent); }
.pub-meta { margin-top: 8px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.pub-meta .authors { color: var(--ink-soft); }
.pub-meta .journal { font-style: italic; }
.pub-meta .sep { color: var(--rule); margin-inline: 8px; }
@media (max-width: 600px) {
  .pub-row { grid-template-columns: 1fr; gap: 8px; }
  .pub-year { padding-top: 0; }
}

/* ---------- Member profile page ---------- */
.member-profile { padding-block: clamp(36px, 5vw, 64px); }
.mp-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.mp-photo {
  width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--rule);
  position: sticky; top: 96px;
}
.mp-photo img { width: 100%; height: 100%; object-fit: cover; }
.mp-crumbs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 28px;
}
.mp-crumbs a { color: var(--ink-faint); transition: color .2s; }
.mp-crumbs a:hover { color: var(--accent); }
.mp-crumbs .sep { color: var(--rule); }
.mp-role {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.mp-name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.5vw, 76px); line-height: 0.98; letter-spacing: -0.025em; margin: 0;
}
.mp-inst {
  margin: 22px 0 0; font-family: var(--serif); font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35; color: var(--ink-soft);
}
.mp-contact {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  margin-top: 22px; font-size: 14px;
}
.mp-contact a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-weight: 600;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.mp-contact a:hover { border-color: var(--accent); }
.mp-contact .mc-email { color: var(--ink-soft); font-weight: 500; }
/* publication topic chips */
.pub-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pub-topics a {
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--ink-soft); background: var(--paper-2);
  border: 1px solid var(--rule); padding: 4px 9px; border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s;
}
.pub-topics a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.mp-card {
  margin-top: clamp(32px, 4vw, 48px); background: var(--card);
  border: 1px solid var(--rule); padding: clamp(24px, 3vw, 34px);
}
.mp-card .pc-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.mp-card h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.2vw, 26px);
  margin: 0 0 12px; letter-spacing: -0.01em;
}
.mp-card p { margin: 0 0 22px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.mp-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--rule);
}
.mp-nav a { display: flex; flex-direction: column; gap: 6px; max-width: 46%; }
.mp-nav .mn-dir { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.mp-nav .mn-name { font-family: var(--serif); font-size: clamp(17px, 1.8vw, 21px); color: var(--ink); transition: color .2s; }
.mp-nav a:hover .mn-name { color: var(--accent); }
.mp-nav .mn-next { text-align: right; margin-left: auto; }
@media (max-width: 820px) {
  .mp-grid { grid-template-columns: 1fr; gap: 28px; }
  .mp-photo { position: static; max-width: 340px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-aside { position: static; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature--reverse .feature-media { order: 0; }
  .pillars-grid { grid-template-columns: 1fr; }
  .tl-grid { grid-template-columns: 1fr 1fr; }
  .tl-item:nth-child(2) { border-right: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .topics-grid { grid-template-columns: 1fr; }
  .topics-grid .topic:nth-child(odd) { border-right: 0; padding-right: 8px; }
  .topics-grid .topic:nth-child(even) { padding-left: 8px; }
  .tl-grid { grid-template-columns: 1fr; }
  .tl-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); padding-left: 0 !important; }
  .form-row { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}
