
/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  /* Brand */
  --navy:      #042B49;
  --navy-dark: #021E33;
  --gold:      #C9A84C;
  --gold-lt:   #E8CB7A;
  --gold-pale: #FBF4E0;
  --green:     #549648;
  --green-dk:  #3E7035;
  --green-lt:  #EDF5EB;

  /* Neutral */
  --white:     #FFFFFF;
  --off:       #F7F9FC;
  --border:    #E3E8F0;
  --border-md: #CDD5E0;
  --text:      #0D2235;
  --muted:     #546070;
  --subtle:    #8A97A6;

  /* Utility */
  --r-xs: 3px;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --sh-xs: 0 1px 3px rgba(4,43,73,.06);
  --sh-sm: 0 2px 8px rgba(4,43,73,.08);
  --sh:    0 4px 20px rgba(4,43,73,.10);
  --sh-lg: 0 12px 36px rgba(4,43,73,.14);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, select, input { font-family: var(--sans); }
button { cursor: pointer; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ═══════════════════════════════════════════════
   DEMO NAVIGATOR
═══════════════════════════════════════════════ */
.demo-nav {
  position: fixed; bottom: 18px; right: 18px; z-index: 9999;
  display: flex; gap: 5px;
  background: var(--navy-dark);
  border-radius: 50px; padding: 4px;
  box-shadow: var(--sh-lg);
}
.dnav-btn {
  border: none; border-radius: 50px;
  padding: 7px 16px; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; white-space: nowrap;
  background: transparent; color: rgba(255,255,255,.5);
  transition: all .2s;
}
.dnav-btn.on { background: var(--gold); color: var(--navy-dark); }

/* ═══════════════════════════════════════════════
   PAGES
═══════════════════════════════════════════════ */
.page { display: none; flex-direction: column; min-height: 100vh; }
.page.on { display: flex; }

/* ═══════════════════════════════════════════════
   TOP-BAR (university utility bar)
═══════════════════════════════════════════════ */
.topbar {
  background: var(--navy-dark);
  height: 32px; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-left  { font-size: 11px; color: rgba(255,255,255,.38); letter-spacing: .02em; }
.topbar-right { display: flex; gap: 16px; }
.topbar-right a {
  font-size: 11px; color: rgba(255,255,255,.38);
  transition: color .15s;
}
.topbar-right a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   MAIN HEADER / NAVBAR
═══════════════════════════════════════════════ */
.site-header {
  background: var(--green);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 12px rgba(4,43,73,.18);
}
.header-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 2rem; height: 62px;
  display: flex; align-items: center; gap: 0;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 11px; margin-right: 32px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-name {
  font-family: var(--serif); font-size: 18px;
  font-weight: 700; color: var(--white);
  letter-spacing: .01em; line-height: 1;
}
.logo-sub {
  font-size: 9.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
  line-height: 1; margin-top: 2px;
}

/* Nav links */
.nav-links { display: flex; align-items: center; height: 62px; flex: 1; }
.nav-a {
  display: flex; align-items: center; height: 62px;
  padding: 0 13px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.78);
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s; white-space: nowrap;
}
.nav-a:hover  { color: var(--white); }
.nav-a.active { color: var(--white); border-bottom-color: var(--gold); font-weight: 600; }

/* Nav search */
.nav-search {
  display: flex; align-items: center; gap: 7px;
  margin-left: 14px; padding: 6px 14px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px; min-width: 194px;
  transition: background .2s, border-color .2s;
}
.nav-search:focus-within { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.45); }
.nav-search svg { color: rgba(255,255,255,.55); flex-shrink: 0; }
.nav-search input {
  border: none; background: transparent; outline: none;
  font-size: 13px; color: var(--white); width: 100%;
}
.nav-search input::placeholder { color: rgba(255,255,255,.45); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.hamburger span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--green-dk); padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 11px 2rem; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.82); border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.mobile-menu a:hover { background: rgba(255,255,255,.08); }
.mobile-menu .mm-search {
  margin: 10px 2rem 6px;
  display: flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px; padding: 8px 12px;
}
.mobile-menu .mm-search input {
  border: none; background: transparent; outline: none;
  font-size: 13.5px; color: var(--white); width: 100%;
}
.mobile-menu .mm-search input::placeholder { color: rgba(255,255,255,.4); }

/* ═══════════════════════════════════════════════
   GOLD ACCENT LINE (under header)
═══════════════════════════════════════════════ */
.gold-line {
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 55%, transparent 100%);
}

/* ═══════════════════════════════════════════════
   SHARED FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.4);
  padding: 26px 2rem; margin-top: auto;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-brand { font-family: var(--serif); font-size: 15px; font-weight: 600; color: rgba(255,255,255,.7); }
.footer-brand em { font-style: normal; color: var(--gold); }
.footer-copy  { font-size: 11.5px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 11.5px; transition: color .15s; }
.footer-links a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   PAGE 1 — DIRECTORY: HERO
═══════════════════════════════════════════════ */
.dir-hero {
  background: var(--navy);
  padding: 40px 2rem 0; position: relative; overflow: hidden;
}
.dir-hero::before {
  content: ''; pointer-events: none;
  position: absolute; right: -50px; top: -50px;
  width: 260px; height: 260px;
  border: 32px solid rgba(201,168,76,.10); border-radius: 50%;
}
.dir-hero::after {
  content: ''; pointer-events: none;
  position: absolute; right: 140px; bottom: -90px;
  width: 160px; height: 160px;
  border: 20px solid rgba(201,168,76,.06); border-radius: 50%;
}
.dir-hero-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 18px;
}
.hero-eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 7px;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(28px,4vw,42px);
  font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 4px;
}
.hero-sub { font-size: 13.5px; color: rgba(255,255,255,.48); font-weight: 300; }

.hero-stats { display: flex; gap: 26px; padding-bottom: 4px; }
.hs-item { text-align: right; }
.hs-num  { font-family: var(--serif); font-size: 27px; font-weight: 700; color: var(--gold); line-height: 1; }
.hs-lbl  { font-size: 9.5px; color: rgba(255,255,255,.38); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

/* Search strip (inside hero) */
.hero-search-strip {
  background: rgba(255,255,255,.06); border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 2rem;
}
.hero-search-inner { max-width: 1240px; margin: 0 auto; }
.hero-search-bar {
  display: flex; max-width: 620px;
  background: var(--white); border-radius: var(--r);
  box-shadow: var(--sh); overflow: hidden;
}
.hero-search-bar input {
  flex: 1; border: none; outline: none;
  padding: 10px 16px; font-family: var(--sans);
  font-size: 14px; color: var(--text);
}
.hero-search-bar input::placeholder { color: var(--subtle); }
.hero-search-btn {
  background: var(--green); color: var(--white); border: none;
  padding: 10px 22px; font-size: 13.5px; font-weight: 600;
  letter-spacing: .02em; flex-shrink: 0; transition: background .2s;
}
.hero-search-btn:hover { background: var(--green-dk); }

/* ═══════════════════════════════════════════════
   PAGE 1 — LETTER STRIP
═══════════════════════════════════════════════ */
.letter-strip {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 9px 2rem; overflow-x: auto;
}
.ls-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 4px; min-width: max-content;
}
.ls-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--subtle); margin-right: 6px; flex-shrink: 0;
}
.l-btn {
  width: 28px; height: 28px; border-radius: var(--r-xs);
  border: 1px solid var(--border); background: transparent;
  font-size: 12px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all .14s; flex-shrink: 0;
}
.l-btn:hover      { border-color: var(--green); color: var(--green); background: var(--green-lt); }
.l-btn.on         { background: var(--green); color: var(--white); border-color: var(--green); }
.l-btn.dim        { opacity: .25; pointer-events: none; }

/* ═══════════════════════════════════════════════
   PAGE 1 — BODY LAYOUT
═══════════════════════════════════════════════ */
.dir-body {
  max-width: 1240px; margin: 0 auto;
  padding: 22px 2rem 52px;
}

/* Horizontal Dropdown Filters */
.filter-dropdowns {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px; align-items: center;
}

.dropdown {
  position: relative;
}

.dropdown-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 7px 12px;
  font-family: var(--sans); font-size: 13px;
  color: var(--text); cursor: pointer;
  transition: all .2s;
  min-width: 180px;
}

.dropdown-btn:hover {
  border-color: var(--border-md);
  box-shadow: var(--sh-xs);
}

.dropdown-btn.open {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(84,150,72,.08);
}

.dropdown-label {
  font-size: 11px;
  color: var(--subtle);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.dropdown-selected {
  flex: 1;
  font-weight: 500;
  color: var(--text);
}

.dropdown-arrow {
  transition: transform .2s;
  color: var(--subtle);
}

.dropdown-btn.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--sh);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
}

/* Custom scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: var(--off);
  border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--border-md);
  border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--subtle);
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 9px 14px;
  border: none; background: transparent;
  font-family: var(--sans); font-size: 13px;
  color: var(--text); text-align: left;
  cursor: pointer; transition: background .13s;
  border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--green-lt);
}

.dropdown-item.active {
  background: var(--green-lt);
  color: var(--green-dk);
  font-weight: 600;
}

.dropdown-item.active .sb-n {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.sb-n {
  font-size: 10px; font-weight: 600; min-width: 22px; text-align: center;
  padding: 1px 5px; border-radius: 20px;
  background: var(--off); border: 1px solid var(--border); color: var(--muted);
}

/* Toolbar */
.dir-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.res-txt { font-size: 13px; color: var(--muted); }
.res-txt strong { color: var(--text); font-weight: 600; }
.sort-sel {
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 6px 26px 6px 10px; font-family: var(--sans);
  font-size: 12.5px; color: var(--text); background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath fill='%238A97A6' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center;
  outline: none;
}

/* Filter chips */
.f-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.f-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-lt); border: 1px solid #B8D9B3;
  color: var(--green-dk); font-size: 12px; font-weight: 500;
  padding: 3px 9px; border-radius: 20px;
}
.f-x { opacity: .55; cursor: pointer; font-size: 13px; line-height: 1; }
.f-x:hover { opacity: 1; }

/* ═══════════════════════════════════════════════
   STAFF GRID
═══════════════════════════════════════════════ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.s-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  display: flex; flex-direction: column;
}
.s-card:hover {
  box-shadow: var(--sh-lg); transform: translateY(-3px);
  border-color: #B8D9B3;
}

.sc-photo {
  height: 148px; position: relative;
  background: linear-gradient(150deg, var(--navy) 0%, #0A3D5E 100%);
  overflow: hidden;
}
.sc-photo img { width: 100%; height: 100%; object-fit: cover; }
.sc-initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 38px; font-weight: 700;
  color: rgba(201,168,76,.32); letter-spacing: .04em;
}
.sc-rank {
  position: absolute; top: 9px; left: 9px;
  background: rgba(4,43,73,.82); color: var(--gold-lt);
  font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: var(--r-xs); backdrop-filter: blur(6px);
}

.sc-body { padding: 12px 13px 11px; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sc-name {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  color: var(--navy); line-height: 1.2;
}
.sc-dept { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.sc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
.sc-tag {
  font-size: 10px; font-weight: 500; color: var(--muted);
  background: var(--off); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 3px;
}

/* Pagination */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 4px; margin-top: 30px; flex-wrap: wrap;
}
.pg-btn {
  min-width: 32px; height: 32px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--white);
  font-size: 13px; font-weight: 500; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  padding: 0 9px; transition: all .14s;
}
.pg-btn:hover  { border-color: var(--green); color: var(--green); }
.pg-btn.on     { background: var(--green); color: var(--white); border-color: var(--green); }
.pg-btn.dots   { border: none; background: transparent; color: var(--subtle); pointer-events: none; }
.pg-btn.wide   { padding: 0 13px; }

/* ═══════════════════════════════════════════════
   PAGE 2 — PROFILE: BREADCRUMB
═══════════════════════════════════════════════ */
.breadcrumb {
  background: var(--off); border-bottom: 1px solid var(--border);
  padding: 9px 2rem;
}
.bc-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted); flex-wrap: wrap;
}
.bc-a { transition: color .14s; }
.bc-a:hover { color: var(--green); }
.bc-sep { color: var(--border); }
.bc-cur { color: var(--text); font-weight: 500; }

/* ═══════════════════════════════════════════════
   PAGE 2 — PROFILE: HERO
═══════════════════════════════════════════════ */
.prof-hero {
  background: var(--navy);
  padding: 40px 2rem 0;
  position: relative; overflow: hidden;
}
.prof-hero::before {
  content: ''; pointer-events: none;
  position: absolute; right: -40px; top: -40px;
  width: 230px; height: 230px;
  border: 28px solid rgba(201,168,76,.08); border-radius: 50%;
}
.prof-hero-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr;
  gap: 26px; align-items: flex-end;
}

/* Profile photo */
.prof-photo {
  width: 136px; height: 136px; border-radius: var(--r);
  border: 3px solid var(--gold); overflow: hidden;
  background: linear-gradient(150deg, #0A3D5E 0%, var(--navy-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 44px; font-weight: 700;
  color: rgba(201,168,76,.38); flex-shrink: 0;
}
.prof-photo img { width: 100%; height: 100%; object-fit: cover; }

.prof-meta { padding-bottom: 24px; }
.prof-rank-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(84,150,72,.20); border: 1px solid rgba(84,150,72,.35);
  color: #8FD485; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--r-xs); margin-bottom: 8px;
}
.prof-rank-dot { width: 5px; height: 5px; background: #8FD485; border-radius: 50%; flex-shrink: 0; }
.prof-name {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700; color: var(--white);
  line-height: 1.12; margin-bottom: 5px;
}
.prof-dept { font-size: 13.5px; color: rgba(255,255,255,.52); margin-bottom: 13px; }
.prof-contacts { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.prof-ci {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: rgba(255,255,255,.52);
}
.prof-ci svg { width: 13px; height: 13px; flex-shrink: 0; opacity: .6; }

/* ═══════════════════════════════════════════════
   PAGE 2 — PROFILE BODY
═══════════════════════════════════════════════ */
.prof-body {
  max-width: 1240px; margin: 0 auto;
  padding: 26px 2rem 52px;
  display: grid; grid-template-columns: 1fr 292px;
  gap: 22px; align-items: start;
}

/* Back button */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--border);
  padding: 7px 13px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: var(--green-dk);
  margin-bottom: 16px; transition: background .14s, border-color .14s;
}
.back-btn:hover { background: var(--green-lt); border-color: var(--green); }

/* Section cards */
.pc {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; margin-bottom: 14px;
  box-shadow: var(--sh-xs);
}
.pc-head {
  padding: 10px 18px; background: var(--off);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.pc-dot { width: 3px; height: 16px; background: var(--green); border-radius: 2px; flex-shrink: 0; }
.pc-head h3 { font-family: var(--serif); font-size: 15.5px; font-weight: 600; color: var(--navy); }
.pc-body { padding: 18px; }
.pc-body p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.pc-body p + p { margin-top: 10px; }

/* Research tags */
.r-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.r-tag {
  font-size: 13px; font-weight: 500; color: var(--green-dk);
  background: var(--green-lt); border: 1px solid #B8D9B3;
  padding: 5px 12px; border-radius: var(--r-sm);
  transition: background .14s;
}
.r-tag:hover { background: #D0EBCC; }

/* Publications */
.pub-list { display: flex; flex-direction: column; gap: 11px; }
.pub {
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--off);
}
.pub-title  { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 5px; line-height: 1.4; }
.pub-meta   { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 12px; color: var(--muted); }
.pub-badge  {
  font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px; flex-shrink: 0;
}
.pub-badge.j { background: #DCFCE7; color: #166534; }
.pub-badge.c { background: #DBEAFE; color: #1E40AF; }
.pub-badge.b { background: #FEF9C3; color: #713F12; }
.pub-doi { color: var(--green-dk); text-decoration: underline; text-underline-offset: 2px; font-size: 11.5px; }

/* Courses table */
.ct { width: 100%; border-collapse: collapse; font-size: 13px; }
.ct th {
  text-align: left; padding: 8px 12px;
  background: var(--off); border-bottom: 2px solid var(--border);
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--subtle);
}
.ct td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.ct tr:last-child td { border-bottom: none; }
.ct tr:hover td { background: var(--green-lt); }
.c-bdg {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 2px 7px; border-radius: 3px;
}
.c-bdg.ug { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.c-bdg.pg { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }

/* Aside cards */
.ac {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; margin-bottom: 12px;
  box-shadow: var(--sh-xs);
}
.ac-head {
  padding: 9px 14px; background: var(--off);
  border-bottom: 1px solid var(--border);
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--subtle);
}
.ac-body { padding: 14px; }
.ac-row {
  display: flex; gap: 9px; padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px; align-items: flex-start;
}
.ac-row:first-child { padding-top: 0; }
.ac-row:last-child  { border-bottom: none; padding-bottom: 0; }
.ac-lbl { font-size: 11.5px; color: var(--subtle); min-width: 76px; padding-top: 1px; flex-shrink: 0; }
.ac-val { color: var(--text); font-weight: 500; }

/* External links */
.ext-links { display: flex; flex-direction: column; gap: 7px; }
.ext-link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 11px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--off);
  font-size: 13px; font-weight: 500; color: var(--navy);
  transition: border-color .14s, background .14s;
}
.ext-link:hover { border-color: var(--green); background: var(--green-lt); color: var(--green-dk); }
.ext-ico {
  width: 26px; height: 26px; border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; flex-shrink: 0;
}
.ext-ico.gs  { background: #EEF2F8; color: #1E40AF; }
.ext-ico.rg  { background: #F0FDF4; color: #15803D; }
.ext-ico.li  { background: #EFF6FF; color: #0369A1; }
.ext-ico.web { background: var(--gold-pale); color: #7A5200; }
.ext-ico.cv  { background: #FEF2F2; color: #991B1B; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .prof-body { grid-template-columns: 1fr 268px; }
}
@media (max-width: 820px) {
  .nav-links, .nav-search { display: none; }
  .hamburger { display: flex; }
  .prof-body { grid-template-columns: 1fr; }
  .prof-hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .prof-photo { width: 108px; height: 108px; font-size: 34px; }
  .topbar-right { display: none; }
  .hero-stats { gap: 16px; }
  .filter-dropdowns { gap: 8px; }
  .dropdown { flex: 1; min-width: 140px; }
  .dropdown-btn { min-width: 100%; }
}
@media (max-width: 600px) {
  .dir-hero, .prof-hero { padding: 26px 1.25rem 0; }
  .hero-search-strip, .hero-search-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .letter-strip  { padding: 8px 1.25rem; }
  .dir-body      { padding: 14px 1.25rem 40px; }
  .prof-body     { padding: 16px 1.25rem 44px; }
  .breadcrumb    { padding: 8px 1.25rem; }
  .topbar, .header-inner, .footer-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .dir-hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-direction: row; }
  .hs-item { text-align: left; }
  .staff-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .prof-contacts { flex-direction: column; gap: 7px; }
  .filter-dropdowns { flex-direction: column; }
  .dropdown { width: 100%; }
  .dropdown-btn { min-width: 100%; font-size: 12.5px; }
  .dropdown-label { font-size: 10px; }
  .dropdown-menu { width: 100%; max-width: 100%; }
}
@media (max-width: 360px) {
  .staff-grid { grid-template-columns: 1fr 1fr; }
}
