/* ============================================================
   FACULTY PAGE — "Compact" layout
   Loaded after shared.css. Cherry identity bar over a navy nav
   bar, then a short banner that carries portrait, title, and
   contact facts instead of a decorative hero.
   ============================================================ */

:root { --shell: 1180px; --gutter: 28px; }

html { scroll-padding-top: 96px; }

.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }

/* ---------- Masthead ---------- */

.masthead { position: sticky; top: 0; z-index: 100; }

.masthead-top { background: var(--cherry); color: #fff; border-bottom: 1px solid rgba(255,255,255,.18); }
.masthead-top .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none;
  border: 1.5px solid rgba(255,255,255,.75); font: 700 11px/1 var(--serif); letter-spacing: .06em;
}
.brand-name { font-size: var(--fs-med); font-weight: 600; }
.masthead-top .inst { color: rgba(255,255,255,.85); }
.masthead-top .inst a:hover { color: #fff; }

.masthead-nav { background: var(--navy); }
.masthead-nav .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.masthead-nav nav { display: flex; flex-wrap: wrap; gap: 2px; }
.masthead-nav nav a {
  display: block; padding: 9px 12px; color: rgba(255,255,255,.88); text-decoration: none;
  font-size: var(--fs-small); font-weight: 500; border-bottom: 2px solid transparent;
}
.masthead-nav nav a:hover, .masthead-nav nav a[aria-current="page"] {
  color: #fff; background: rgba(255,255,255,.07); border-bottom-color: var(--cherry);
}
.nav-aside { font-size: var(--fs-small); }
.nav-aside a { color: rgba(255,255,255,.8); text-decoration: none; }
.nav-aside a:hover { color: #fff; text-decoration: underline; }

/* ---------- Banner ---------- */

.banner { background: var(--navy); color: #fff; border-bottom: 4px solid var(--cherry); position: relative; overflow: hidden; }
.banner::after {
  content: ""; position: absolute; inset: 0; left: 55%; pointer-events: none;
  background:
    radial-gradient(circle at 70% 40%, rgba(158,27,52,.55), transparent 58%),
    repeating-radial-gradient(circle at 78% 46%, rgba(255,255,255,.08) 0 1px, transparent 1px 13px);
}
.banner .shell { position: relative; z-index: 1; padding: 24px 0 22px; }
.banner-profile { display: grid; grid-template-columns: 116px minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.portrait { width: 116px; height: 116px; object-fit: cover; display: block; border-radius: 50%; }
.banner .kicker { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.72); margin-bottom: 6px; }
.banner h1 { font: 600 var(--fs-xl)/1.15 var(--serif); }
.banner .title-lines { margin-top: 8px; font-size: var(--fs-small); color: rgba(255,255,255,.85); line-height: 1.5; }
.banner .standfirst { margin-top: 10px; font-size: var(--fs-med); line-height: 1.45; color: rgba(255,255,255,.92); max-width: 44em; }

.inline-links { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; }
.inline-links a {
  display: inline-block; padding: 4px 10px; border: 1px solid rgba(255,255,255,.4);
  color: #fff; text-decoration: none; font-size: var(--fs-small);
}
.inline-links a:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.banner-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; }
.banner-facts div { border-top: 1px solid rgba(255,255,255,.28); padding-top: 7px; }
.banner-facts dt { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.66); }
.banner-facts dd { margin: 2px 0 0; font-size: var(--fs-small); color: #fff; }
.banner-facts dd a { color: #fff; }
.banner .inst { margin-top: 14px; color: rgba(255,255,255,.7); }
.banner .inst a:hover { color: #fff; }

/* ---------- Bands ---------- */

.band { padding: 28px 0; border-bottom: 1px solid var(--line); }
.band.tint { background: var(--panel); }
.band.warm { background: var(--white); }

.band-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; border-bottom: 2px solid var(--cherry); flex-wrap: wrap; }
.band-head h2 { background: var(--cherry); color: #fff; font: 600 var(--fs-med)/1 var(--sans); padding: 9px 16px; }
.band-head .band-note { font-size: var(--fs-small); color: var(--muted); padding-bottom: 8px; }

.subsection { margin-top: 22px; }
.subsection:first-of-type { margin-top: 0; }

.with-rail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.callout { border-left: 4px solid var(--cherry); background: var(--white); padding: 12px 16px; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-soft); }
.callout strong { color: var(--ink); }
.band.warm .callout { background: var(--panel); }

.site-footer { background: var(--navy); color: rgba(255,255,255,.78); font-size: var(--fs-small); }
.site-footer .shell { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px 28px; padding: 20px 0; }
.site-footer strong { color: #fff; font-weight: 600; }
.site-footer a { color: #fff; }
.site-footer .inst { color: rgba(255,255,255,.8); }
.footer-bar { border-top: 1px solid rgba(255,255,255,.16); }
.footer-bar .shell { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; font-size: var(--fs-micro); color: rgba(255,255,255,.6); grid-template-columns: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .banner-profile { grid-template-columns: 96px minmax(0, 1fr); }
  .banner-profile .banner-facts { grid-column: 1 / -1; }
  .portrait { width: 96px; height: 96px; }
  .with-rail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  :root { --gutter: 18px; }
  .masthead { position: static; }
  .masthead-top .shell { flex-wrap: wrap; padding: 8px 0; }
  .masthead-nav .shell { flex-wrap: wrap; }
  .masthead-nav nav { gap: 0; }
  .masthead-nav nav a { padding: 8px 10px; }
  .banner-profile { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .highlights li { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  details.pub > summary, p.pub-flat { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pub-abs { padding-left: 0; }
  .footer-bar .shell { flex-direction: column; gap: 6px; }
}

@media print {
  .masthead { display: none; }
  .banner { background: #fff !important; color: #000; }
  .banner::after { display: none; }
  .banner .kicker, .banner .title-lines, .banner .standfirst, .banner-facts dd, .banner-facts dd a { color: #000; }
  .site-footer { background: #fff; color: #000; }
  .band { page-break-inside: avoid; border-bottom: 1px solid #999; }
}
