/* ============================================================
   BSWEM — Baylor Scott & White Emergency Medicine Residency
   Texas A&M palette · heraldic-professional
   ============================================================ */

:root {
  --maroon: #500000;          /* Aggie maroon */
  --maroon-dark: #3d0000;
  --maroon-tint: #6d1f1f;
  --gold: #b18b4f;            /* heraldic old gold */
  --gold-soft: #c9ad7c;
  --cream: #f7f4ee;           /* parchment */
  --cream-deep: #efe9df;
  --ink: #241f1c;
  --ink-soft: #5a524c;
  --line: #ddd5c9;
  --white: #ffffff;
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-tint); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--maroon);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 46em;
}

/* ornamental rule: — ❖ — */
.orn {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 1.4rem 0 2.2rem;
}
.orn::before, .orn::after {
  content: "";
  height: 1px;
  width: 64px;
  background: var(--gold-soft);
}
.orn svg { width: 14px; height: 14px; fill: var(--gold); }
.orn.center { justify-content: center; }

/* ---------- header / nav ---------- */
.topline { height: 4px; background: linear-gradient(90deg, var(--maroon), var(--gold) 50%, var(--maroon)); }

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img.crest { width: 46px; height: auto; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--maroon);
}
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

nav.primary { display: flex; align-items: center; gap: 4px; }

nav.primary > ul { display: flex; list-style: none; gap: 4px; align-items: center; }

nav.primary a.navlink {
  display: block;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
nav.primary a.navlink:hover, nav.primary a.navlink.active {
  color: var(--maroon);
  border-bottom-color: var(--gold);
}

/* dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--maroon);
  box-shadow: 0 14px 34px rgba(36,31,28,0.12);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.18s ease;
}
.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.drop a {
  display: block;
  padding: 9px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.drop a:hover { background: var(--cream); color: var(--maroon); }

.nav-icons { display: flex; align-items: center; gap: 4px; margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.nav-icons a { display: flex; padding: 8px; color: var(--maroon); transition: 0.2s; }
.nav-icons a:hover { color: var(--gold); transform: translateY(-1px); }
.nav-icons svg { width: 19px; height: 19px; }
@media (max-width: 820px) {
  .nav-icons { border-left: 0; margin: 6px 0 0 18px; }
}

.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--maroon);
  margin: 5px 0;
  transition: 0.25s;
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(177,139,79,0.16), transparent 60%),
    linear-gradient(175deg, rgba(80,0,0,0.93) 0%, rgba(61,0,0,0.95) 100%),
    url("../assets/img/hero-trauma.jpg") center 30%/cover no-repeat;
  color: var(--cream);
  text-align: center;
  padding: 110px 24px 120px;
  position: relative;
  overflow: hidden;
}
.hero::after { /* faint heraldic watermark */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 46' opacity='0.05'%3E%3Cpath fill='%23ffffff' d='M20 1 37 7v14c0 11-7 19-17 24C10 40 3 32 3 21V7Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 20%;
  background-size: 560px;
  opacity: 0.05;
  pointer-events: none;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: var(--white); max-width: 21ch; margin: 0 auto 1.2rem; }
.hero p {
  max-width: 52em;
  margin: 0 auto 2.2rem;
  font-size: 1.14rem;
  color: rgba(247,244,238,0.85);
}
.hero .est {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  margin-top: 2.6rem;
}

/* page hero (interior) */
.page-hero {
  background: linear-gradient(175deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: var(--cream);
  text-align: center;
  padding: 72px 24px;
}
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero p { max-width: 50em; margin: 0.9rem auto 0; color: rgba(247,244,238,0.85); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: 0.2s;
}
.btn-gold { background: var(--gold); color: var(--maroon-dark); }
.btn-gold:hover { background: var(--gold-soft); color: var(--maroon-dark); }
.btn-ghost { border-color: rgba(247,244,238,0.5); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-maroon { background: var(--maroon); color: var(--cream); }
.btn-maroon:hover { background: var(--maroon-tint); color: var(--white); }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- sections ---------- */
section.band { padding: 88px 0; }
section.band.cream { background: var(--cream); }
section.band.deep { background: var(--cream-deep); }
.band-head { text-align: center; max-width: 760px; margin: 0 auto 3.2rem; }
.band-head .lede { margin: 0 auto; }

/* pillar cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--white);
  padding: 38px 26px;
  text-align: center;
}
.pillar h3 {
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.pillar p { font-size: 0.95rem; color: var(--ink-soft); }
.pillar .glyph { width: 30px; height: 30px; margin: 0 auto 1rem; fill: var(--gold); }

/* feature grid (highlights) */
.grid { display: grid; gap: 28px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--maroon);
  padding: 30px 28px;
}
.card h3 { margin-bottom: 0.6rem; }
.card p, .card li { font-size: 0.98rem; color: var(--ink-soft); }
.card ul { padding-left: 1.2em; margin-top: 0.5rem; }
.card li { margin-bottom: 0.35rem; }

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft);
}
.stat { background: var(--maroon); color: var(--cream); text-align: center; padding: 34px 16px; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--gold-soft); line-height: 1; }
.stat .lbl { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.6rem; opacity: 0.85; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .panel {
  background: var(--maroon);
  color: var(--cream);
  padding: 46px 42px;
  border: 1px solid var(--maroon-dark);
  position: relative;
}
.split .panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201,173,124,0.4);
  pointer-events: none;
}
.split .panel h3 { color: var(--gold-soft); font-size: 1.5rem; margin-bottom: 0.8rem; }
.split .panel p { color: rgba(247,244,238,0.88); font-size: 1rem; }

/* quote / testimonial */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 30px;
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-soft);
  display: block;
  margin-bottom: -0.6rem;
}
.quote p { font-size: 0.98rem; color: var(--ink-soft); font-style: italic; }
.quote cite {
  display: block;
  margin-top: 1.1rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
}

/* motto band */
.motto {
  background: linear-gradient(175deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: var(--cream);
  text-align: center;
  padding: 76px 24px;
}
.motto .serif {
  color: var(--gold-soft);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-style: italic;
  max-width: 26ch;
  margin: 0 auto;
}
.motto .sub { margin-top: 1rem; font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.75; }

/* ---------- history timeline ---------- */
.timeline { position: relative; max-width: 880px; margin: 0 auto; padding: 20px 0 40px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(var(--gold-soft), var(--maroon), var(--gold-soft));
}
.t-entry {
  position: relative;
  width: 50%;
  padding: 0 44px 56px;
}
.t-entry:nth-child(odd) { left: 0; text-align: right; }
.t-entry:nth-child(even) { left: 50%; text-align: left; }
.t-entry .dot {
  position: absolute;
  top: 6px;
  width: 13px;
  height: 13px;
  background: var(--cream);
  border: 3px solid var(--maroon);
  border-radius: 50%;
  z-index: 2;
}
.t-entry:nth-child(odd) .dot { right: -8px; }
.t-entry:nth-child(even) .dot { left: -8px; }
.t-entry .year {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.t-entry .year small { font-size: 0.9rem; color: var(--gold); font-style: italic; letter-spacing: 0.04em; }
.t-entry p { font-size: 0.96rem; color: var(--ink-soft); }
.t-entry.milestone .year { font-size: 2.1rem; }
.t-entry.milestone p { color: var(--ink); }
.t-entry.milestone .dot { background: var(--gold); border-color: var(--maroon); width: 17px; height: 17px; top: 4px; }
.t-entry:nth-child(odd).milestone .dot { right: -10px; }
.t-entry:nth-child(even).milestone .dot { left: -10px; }

/* era headers inside timeline */
.t-era {
  position: relative;
  text-align: center;
  padding: 10px 0 46px;
  clear: both;
}
.t-era span {
  display: inline-block;
  background: var(--maroon);
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 8px 22px;
  position: relative;
  z-index: 2;
}

/* ---------- alumni ---------- */
.al-tools {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.6rem;
}
.al-tools input, .al-tools select {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  min-width: 240px;
}
.al-tools input:focus, .al-tools select:focus { outline: 2px solid var(--gold-soft); }

.al-year { margin-bottom: 2.8rem; }
.al-year h3 {
  font-size: 1.6rem;
  border-bottom: 2px solid var(--gold-soft);
  padding-bottom: 0.4rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.al-year h3 .count { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.al-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 10px 26px; list-style: none; }
.al-list li {
  font-size: 0.94rem;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
}
.al-list .nm { font-weight: 700; color: var(--ink); }
.al-list .loc { color: var(--maroon); }
.al-list .sch { display: block; font-size: 0.82rem; color: var(--ink-soft); }
.al-list .dagger { color: var(--gold); }

/* ---------- video ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.video-grid .main-video { grid-column: 1 / -1; max-width: 860px; margin: 0 auto; width: 100%; }
figure.video { margin: 0; }
figure.video video, .yt {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
  border: 1px solid var(--line);
  outline: 1px solid var(--gold-soft);
  outline-offset: -6px;
}
figure.video figcaption {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 0.55rem; text-align: center;
}
.yt { position: relative; cursor: pointer; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: 0.25s; }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 46px; background: var(--maroon); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.yt-play::after {
  content: ""; border-style: solid; border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent var(--cream); margin-left: 4px;
}
.yt:hover .yt-play { background: var(--gold); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- alumni map ---------- */
#alumni-map { position: relative; max-width: 980px; margin: 0 auto; }
#alumni-map svg { width: 100%; height: auto; display: block; }
.map-state {
  fill: var(--cream-deep);
  stroke: var(--white);
  stroke-width: 1;
  transition: fill 0.2s;
}
.map-state:hover { fill: #e6dfd2; }
.map-dot {
  fill: var(--maroon);
  fill-opacity: 0.82;
  stroke: var(--gold-soft);
  stroke-width: 1.4;
  cursor: pointer;
  transition: 0.2s;
}
.map-dot:hover, g:hover > .map-dot { fill-opacity: 1; stroke: var(--gold); }
.map-dot.home { fill: var(--gold); stroke: var(--maroon); }
.map-count {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  fill: var(--cream);
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}
.map-tip {
  position: absolute;
  max-width: 250px;
  background: var(--maroon-dark);
  color: var(--cream);
  border: 1px solid var(--gold-soft);
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 5;
}
.map-tip.on { opacity: 1; }
.map-tip strong { color: var(--gold-soft); }

/* ---------- contact / footer ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }

footer.site {
  background: var(--maroon-dark);
  color: rgba(247,244,238,0.8);
  padding: 70px 0 0;
  font-size: 0.92rem;
}
footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 50px;
}
footer h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
}
footer a { color: rgba(247,244,238,0.8); }
footer a:hover { color: var(--gold-soft); }
footer ul { list-style: none; }
footer li { margin-bottom: 0.5rem; }
footer .brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
footer .brandline img.crest { width: 38px; height: auto; }
footer .brandline .brand-name { color: var(--cream); font-size: 1.3rem; }
footer .motto-sm { font-family: var(--serif); font-style: italic; color: var(--gold-soft); margin-top: 0.6rem; }
footer .legal {
  border-top: 1px solid rgba(247,244,238,0.15);
  padding: 22px 0;
  font-size: 0.78rem;
  color: rgba(247,244,238,0.5);
  text-align: center;
}
footer .legal .disclaimer { max-width: 70em; margin: 0.5rem auto 0; }

/* ---------- photos ---------- */
figure.photo { margin: 0; }
figure.photo img {
  width: 100%;
  border: 1px solid var(--line);
  outline: 1px solid var(--gold-soft);
  outline-offset: -6px;
}
figure.photo figcaption, .gallery figcaption, .t-photo figcaption {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.55rem;
  text-align: center;
}
figure.photo.wide { max-width: 860px; margin: 0 auto; }
.card .card-photo { margin: -30px -28px 22px; }
.card .card-photo img { outline: none; border: 0; border-bottom: 3px solid var(--gold-soft); aspect-ratio: 16/9; object-fit: cover; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.94);
  transition: 0.25s;
}
.gallery figure:hover img { filter: none; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(36,31,28,0.16); }

.portrait {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-soft);
  box-shadow: 0 0 0 3px var(--maroon);
  margin: 0 auto 1.2rem;
  display: block;
}
.sig-row { display: flex; align-items: center; gap: 22px; margin-top: 2rem; }
.sig-row .portrait { margin: 0; width: 96px; height: 96px; }

.quote cite { display: flex; align-items: center; gap: 12px; }
.quote cite img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold-soft);
}

/* timeline photos */
.t-photo { margin: 0.9rem 0 0; }
.t-photo img {
  max-width: 100%;
  max-height: 260px;
  border: 1px solid var(--line);
  outline: 1px solid var(--gold-soft);
  outline-offset: -5px;
  background: var(--white);
}
.t-entry:nth-child(odd) .t-photo img { margin-left: auto; }
.t-entry:nth-child(odd) .t-photo { text-align: right; }
.t-entry:nth-child(odd) .t-photo figcaption { text-align: right; }
.t-entry:nth-child(even) .t-photo figcaption { text-align: left; }

/* ---------- carousel ---------- */
.carousel { position: relative; max-width: 860px; margin: 0 auto; padding: 0 56px; }
.c-viewport { overflow: hidden; }
.c-track { display: flex; transition: transform 0.5s cubic-bezier(.22,.61,.36,1); }
.c-slide { flex: 0 0 100%; box-sizing: border-box; }
.carousel .quote { border: 1px solid var(--line); background: var(--white); }
.c-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold-soft); background: var(--white); color: var(--maroon);
  font-size: 1rem; cursor: pointer; transition: 0.2s; z-index: 2;
}
.c-btn:hover { background: var(--maroon); color: var(--cream); }
.c-btn.prev { left: 0; }
.c-btn.next { right: 0; }
.c-dots { display: flex; justify-content: center; gap: 10px; margin-top: 1.6rem; }
.c-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--gold);
  background: transparent; cursor: pointer; padding: 0; transition: 0.2s;
}
.c-dots button.on { background: var(--maroon); border-color: var(--maroon); transform: scale(1.25); }

/* ---------- accordion ---------- */
.acc { max-width: 820px; margin: 0 auto; }
.acc details { border: 1px solid var(--line); background: var(--white); margin-bottom: 12px; }
.acc summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--maroon);
  display: flex; justify-content: space-between; align-items: center;
  transition: 0.2s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; font-family: var(--sans); font-size: 1.3rem; color: var(--gold);
  transition: transform 0.25s;
}
.acc details[open] summary { border-bottom: 1px solid var(--line); background: var(--cream); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc summary:hover { background: var(--cream); }
.acc .acc-body { padding: 18px 22px 22px; color: var(--ink-soft); font-size: 0.98rem; }

/* clickable cards */
a.card.go { display: block; color: inherit; transition: 0.22s; position: relative; }
a.card.go:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(36,31,28,0.13); border-top-color: var(--gold); }
a.card.go .more {
  display: inline-block; margin-top: 0.9rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); opacity: 0; transform: translateX(-6px); transition: 0.22s;
}
a.card.go:hover .more { opacity: 1; transform: none; }

/* ---------- places (Around Temple) ---------- */
.places {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.place { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--maroon); display: flex; flex-direction: column; }
.place figure { margin: 0; }
.place img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-bottom: 3px solid var(--gold-soft); }
.place .p-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.place h3 { margin-bottom: 0.2rem; }
.place .p-meta { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; }
.place p { font-size: 0.95rem; color: var(--ink-soft); }
.place .p-link {
  margin-top: auto; padding-top: 1rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}

/* publication list — flat layout */
.pubs { max-width: 880px; margin: 0 auto; }
.pub-year { margin-bottom: 2.6rem; }
.pub-year h3 {
  font-size: 1.6rem;
  border-bottom: 2px solid var(--gold-soft);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
  display: flex; align-items: baseline; gap: 12px;
}
.pub-year h3 .count { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.pub-list { list-style: none; padding: 0; }
.pub-list li { padding: 10px 0; border-bottom: 1px dotted var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.pub-list li:last-child { border-bottom: 0; }

/* big-city callout */
.callout {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-style: italic;
  color: var(--maroon);
  text-align: center;
  max-width: 30em;
  margin: 3rem auto 0;
  line-height: 1.5;
}
.callout strong { color: var(--gold); font-style: normal; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(26,8,8,0.93);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: min(86vw, 1200px); max-height: 88vh; margin: 0; text-align: center; }
.lightbox img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  border: 1px solid rgba(201,173,124,0.5);
}
.lightbox figcaption {
  color: var(--gold-soft); font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-top: 14px;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: 0; color: var(--cream);
  cursor: pointer; font-size: 1.6rem; padding: 14px; opacity: 0.8; transition: 0.2s; z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; color: var(--gold-soft); }
.lb-close { top: 12px; right: 18px; font-size: 2.4rem; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- letter page ---------- */
.letter {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 64px 68px;
  position: relative;
}
.letter::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
}
.letter p { margin-bottom: 1.2rem; }
.letter .sig { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--maroon); margin-top: 2rem; }
.letter .sig-title { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- tables ---------- */
table.clean { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.clean th {
  background: var(--maroon);
  color: var(--cream);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}
table.clean td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
table.clean tr:nth-child(even) td { background: var(--cream); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .hamburger { display: block; }
  nav.primary {
    position: fixed;
    top: 80px;
    right: 0;
    width: min(320px, 85vw);
    height: calc(100vh - 80px);
    background: var(--white);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    box-shadow: -18px 0 40px rgba(36,31,28,0.12);
  }
  nav.primary.open { transform: translateX(0); }
  nav.primary > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 18px 0; }
  nav.primary a.navlink { padding: 14px 26px; border-bottom: 0; border-left: 3px solid transparent; }
  nav.primary a.navlink.active { border-left-color: var(--gold); }
  .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    background: var(--cream);
    padding: 0;
  }
  .drop a { padding: 11px 40px; }

  .timeline::before { left: 18px; }
  .t-entry, .t-entry:nth-child(odd), .t-entry:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 44px 52px;
  }
  .t-entry:nth-child(odd) .dot, .t-entry:nth-child(even) .dot { left: 11px; right: auto; }
  .t-entry:nth-child(odd).milestone .dot, .t-entry:nth-child(even).milestone .dot { left: 9px; }
  .letter { padding: 44px 28px; }
}

@media (max-width: 520px) {
  footer .cols { grid-template-columns: 1fr; }
  section.band { padding: 64px 0; }
}
