/* =========================================================
   UIMA — Theme B: Kinetic Contemporary
   Bold, graphic, red-and-black-forward design system.
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, dl, dd, dt, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

/* ---------- Design tokens ---------- */
:root {
  --paper: #f7f2ea;
  --paper-soft: #ede3d1;
  --ink: #1e1a14;
  --ink-soft: rgba(30, 26, 20, 0.72);
  --red: #b02a1c;
  --red-dark: #8c2015;
  --gold: #b98a45;
  --gold-dark: #7c5817; /* gold for text on paper (5+:1) */
  --gold-on-red: #f6e8c9; /* gold-toned text on the red bands (5+:1) */
  --gold-light: #dcb774; /* gold text on lifted dark surfaces such as pills and date blocks (6+:1) */
  --paper-on-ink: rgba(247, 242, 234, 0.78);
  --paper-on-red: rgba(247, 242, 234, 0.85);

  --font-display: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius: 6px;
  --radius-sm: 4px;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);

  --space-2xs: 0.5rem;
  --space-xs: 0.875rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
}

html { scroll-behavior: smooth; }
/* The header is sticky (74px tall), so a link to #section would otherwise land with the section's top tucked under it. */
[id] { scroll-margin-top: 5.5rem; }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.03;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; }

h1 .h2-sub,
h2 .h2-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--gold-dark);
  margin-top: var(--space-xs);
}
.band--red h2 .h2-sub { color: var(--gold-on-red); }
.band--ink h2 .h2-sub { color: var(--gold); }

.lede {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 46ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: "";
  width: 0.85em;
  height: 0.85em;
  background: currentColor;
  border-radius: 3px;
  flex: none;
}
.band--ink .eyebrow { color: var(--gold); }
.band--red .eyebrow { color: var(--gold-on-red); }

.status-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  margin-left: 0.6em;
  vertical-align: middle;
}
.status-tag--live { background: #dde6d3; color: #3f5c2e; }
.status-tag--soon { background: #dbe4ea; color: #33526a; }

.body-copy p + p { margin-top: 1.1em; }
.body-copy { max-width: 62ch; }
.band--ink .body-copy,
.band--red .body-copy { color: var(--paper-on-ink); }
.band--red .body-copy { color: var(--paper-on-red); }

.glory {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--gold-dark);
  margin-top: var(--space-md) !important;
}
.band--ink .glory { color: var(--gold); }
.band--red .glory { color: var(--gold-on-red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95em 1.8em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--red { background: var(--red); color: var(--paper); }
.btn--red:hover { background: var(--red-dark); }

/* An email button with the address it writes to shown beside it, so the address is readable and copyable on
   devices that have no mail app set up to open email links (one tap selects the whole address). */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); }
.btn-address { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; -webkit-user-select: all; user-select: all; }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }

.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--gold); color: var(--ink); }

.btn--outline-paper { border-color: var(--paper); color: var(--paper); }
.btn--outline-paper:hover { background: var(--paper); color: var(--ink); }

.btn--outline-ink { border-color: var(--ink); color: var(--ink); }
.btn--outline-ink:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}
.brand-logo { height: 42px; width: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.1vw, 1.05rem);
}
.primary-nav a {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.5em 0.1em;
  border-bottom: 4px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible { border-color: var(--gold); }
.primary-nav a.is-active { border-color: var(--red); color: var(--red); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--paper);
  border-radius: 2px;
}
.nav-toggle-bars { top: 50%; transform: translateY(-50%); }
.nav-toggle-bars::before { top: -9px; }
.nav-toggle-bars::after { top: 9px; }
/* The top and bottom bars are positioned inside the middle bar (22px wide), so the 10px side inset above
   squeezed them to 2px dots, which read as a division sign. Inset 0 makes all three bars the same width. */
.nav-toggle-bars::before,
.nav-toggle-bars::after { left: 0; right: 0; }

/* ---------- Hero photo ---------- */
.hero-photo-wrap {
  height: min(78vh, 640px);
  overflow: hidden;
  position: relative;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

/* Slow, near-imperceptible Ken Burns drift — off entirely for reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: heroKenBurns 28s ease-in-out infinite alternate; }
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* Staggered fade-up entrance for the hero band's text */
@media (prefers-reduced-motion: no-preference) {
  .hero-band .eyebrow,
  .hero-band h1,
  .hero-band .btn,
  .hero-band .btn-address {
    opacity: 0;
    animation: heroFadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero-band .eyebrow { animation-delay: 0.05s; }
  .hero-band h1 { animation-delay: 0.2s; }
  .hero-band .btn,
  .hero-band .btn-address { animation-delay: 0.45s; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Section bands ---------- */
.band { padding-block: var(--space-xl); position: relative; overflow: hidden; }
.band--paper { background: var(--paper); color: var(--ink); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--red { background: var(--red); color: var(--paper); }

.band--tight { padding-block: var(--space-lg); }

/* Hero intro band directly under hero photo */
.hero-band {
  padding-block: var(--space-lg);
}
.hero-band h1 { color: var(--paper); margin-block: var(--space-sm) var(--space-md); max-width: 18ch; }
.hero-band h1 .h2-sub { color: var(--paper-on-red); }
.hero-band .eyebrow { color: var(--paper-on-red); }
.hero-band .eyebrow::before { background: var(--paper); }

/* ---------- Grids / figures ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.grid-2.reverse .figure { order: -1; }
/* A landscape group photo beside text: give the photo the wider column and keep the whole picture (no 4:5 crop) */
.grid-2--wide-photo { grid-template-columns: 0.85fr 1.15fr; }
.figure.figure--landscape img { aspect-ratio: auto; height: auto; }
#artists-in-residence h2 { margin-bottom: var(--space-sm); }

.figure { position: relative; }
.figure-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.figure img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.figure figcaption {
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Vertical spine label, museum object-tag style */
.figure-spine {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30px;
  background: rgba(30, 26, 20, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
}
.figure-spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}
.band--ink .figure figcaption,
.band--red .figure figcaption { color: var(--paper-on-ink); }

/* ---------- Pills / metadata chips ---------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: var(--space-md);
}
.pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15em;
  background: rgba(21, 19, 15, 0.06);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.5em 1.1em;
}
.band--ink .pill,
.band--red .pill {
  background: rgba(250, 247, 242, 0.1);
  border-color: var(--paper-on-ink);
}
.pill-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.band--ink .pill-label { color: var(--gold-light); }
.band--red .pill-label { color: var(--gold-on-red); }
.pill-value {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Decorative giant numeral ---------- */
.numeral-bg {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(9rem, 24vw, 22rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(250, 247, 242, 0.07);
  top: 50%;
  right: -0.03em;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}
.band--paper .numeral-bg { color: rgba(21, 19, 15, 0.055); }
.band .container { position: relative; z-index: 1; }

/* ---------- Pulled statement ---------- */
.statement-band { text-align: center; }
.statement::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 0.1em;
}
.statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.05rem + 2.3vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.18;
  max-width: 26ch;
  margin-inline: auto;
  color: var(--ink);
}

/* ---------- About teaser / grant ---------- */
.grant-card {
  margin-top: var(--space-lg);
  background: var(--paper-soft);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.grant-card p:first-child { font-weight: 700; font-size: 1.05rem; }
.grant-card strong { color: var(--red); }
.grant-card img { height: 42px; width: auto; margin-bottom: var(--space-sm); }
.grant-card img.grant-card-logo--warhol { width: 296px; height: auto; max-width: 100%; mix-blend-mode: multiply; }
.grant-detail { margin-top: var(--space-md); }
.grant-detail p { max-width: 68ch; }
.grant-detail p + p { margin-top: 1em; }

/* ---------- Collection band ---------- */
.collection-band .grid-2 { align-items: center; }
.collection-band .figure img { aspect-ratio: 3 / 4; }

/* ---------- Exhibition archive (filterable) ---------- */
.archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.archive-filter button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.55em 1.1em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.archive-filter button:hover { border-color: var(--red); color: var(--red); }
.archive-filter button.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg) var(--space-md);
}
.archive-grid[data-filtering] .exhibit-card { display: none; }
.archive-grid[data-filtering] .exhibit-card.is-shown { display: block; }

.exhibit-card img { aspect-ratio: 4 / 5; }
.exhibit-card-body { margin-top: var(--space-xs); }
.exhibit-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 0.2em; }
.exhibit-date { font-size: 0.82rem; color: var(--ink-soft); }
.exhibit-more { margin-top: 0.5em; }
.exhibit-more summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  list-style: none;
}
.exhibit-more summary::-webkit-details-marker { display: none; }
.exhibit-more summary::after { content: " +"; }
.exhibit-more[open] summary::after { content: " –"; }
.exhibit-curator { font-size: 0.82rem; font-weight: 600; margin-top: 0.5em; }
.exhibit-desc { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.35em; line-height: 1.5; }
.exhibit-detail-link {
  display: inline-block;
  margin-top: 0.6em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
}
.exhibit-detail-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Exhibition detail page ---------- */
.exhibit-detail-artists { font-size: 0.95rem; color: var(--paper-on-red); margin-top: 0.5em; }
.exhibit-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.exhibit-detail-gallery img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius); }
.exhibit-detail-events {
  margin-top: var(--space-md);
  background: var(--paper-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
}
.exhibit-detail-events p + p { margin-top: 0.4em; }
.exhibit-detail-works {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-sm);
}
.exhibit-work-card {
  border-top: 1px solid rgba(30, 26, 20, 0.14);
  padding-top: 0.7em;
}
.exhibit-work-title { font-style: italic; font-weight: 600; }
.exhibit-work-meta { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.2em; }
.exhibit-detail-notfound { text-align: center; padding-block: var(--space-xl); }

/* ---------- Past exhibitions year grid ---------- */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.year-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.year-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.85);
  transition: filter 0.2s ease, transform 0.3s ease;
}
.year-tile:hover img,
.year-tile:focus-visible img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.05);
}
.year-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 17, 12, 0.75), rgba(20, 17, 12, 0) 55%);
}
.year-tile-label {
  position: absolute;
  left: 0.9em;
  bottom: 0.7em;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.year-tile--disabled { cursor: default; }
.year-tile--disabled img { filter: grayscale(0.7) brightness(0.6); }
.year-tile--disabled:hover img,
.year-tile--disabled:focus-visible img { filter: grayscale(0.7) brightness(0.6); transform: none; }
.year-tile--disabled-badge {
  position: absolute;
  top: 0.7em;
  right: 0.7em;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(20, 17, 12, 0.55);
  padding: 0.3em 0.6em;
  border-radius: 999px;
}

/* ---------- Map embed ---------- */
#plan .grid-2 { align-items: start; }
.map-embed {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--ink);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}
.map-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: var(--space-xs);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--red);
}
.map-directions:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tour rate cards ---------- */
.rate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.rate-card {
  background: var(--paper-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.rate-card h3 { margin-bottom: var(--space-sm); }
.rate-tier {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  padding-block: 0.7em;
  border-top: 1px solid rgba(30, 26, 20, 0.14);
}
.rate-tier:first-of-type { border-top: none; }
.rate-tier-label { font-size: 0.92rem; }
.rate-tier-label .rate-tier-sub { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.15em; }
.rate-tier-price { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }

/* ---------- Collection gallery ---------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg) var(--space-md);
  margin-top: var(--space-lg);
}
.artwork-card img { aspect-ratio: 4 / 5; }
.artwork-label { margin-top: var(--space-xs); }
.artwork-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.2em;
}
.artwork-artist { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.artwork-dates { font-weight: 500; color: var(--ink-soft); }
.artwork-meta { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.3em; }
.artwork-credit { font-size: 0.74rem; font-style: italic; color: var(--ink-soft); margin-top: 0.3em; }
.band--ink .artwork-title,
.band--ink .artwork-artist { color: var(--paper); }
.band--ink .artwork-dates,
.band--ink .artwork-meta,
.band--ink .artwork-credit { color: var(--paper-on-ink); }

/* ---------- Visit strip ---------- */
.visit-strip {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--space-md);
}
.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.visit-grid .eyebrow { color: var(--gold); margin-bottom: 0.4em; }
.visit-grid p:last-child { font-weight: 600; font-size: 1.02rem; }

/* ---------- Board of directors ---------- */
.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin-block: var(--space-lg) var(--space-md);
}
.officer-card {
  background: rgba(250, 247, 242, 0.08);
  border: 2px solid var(--paper-on-ink);
  border-radius: var(--radius);
  padding: var(--space-sm);
}
.officer-card dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-on-red);
  margin-bottom: 0.35em;
}
.officer-card dd { font-weight: 700; font-size: 1.1rem; }

.member-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.member-pills li {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55em 1.1em;
  border-radius: 999px;
}

/* ---------- Archival photo strip ---------- */
.archival-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.archival-grid .figure img { aspect-ratio: 5 / 4; }

/* ---------- Stacked figure pair (Institute Today) ---------- */
.stacked-figures {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.stacked-figures .figure img { aspect-ratio: 5 / 4; }

/* ---------- Staff directory ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  margin-top: var(--space-md);
}
.staff-card {
  background: var(--paper-soft);
  border: 1px solid rgba(30, 26, 20, 0.2);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
}
.staff-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.15em;
}
.staff-card .staff-role { font-size: 0.78rem; margin-bottom: 0; }
.staff-role {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.6em;
}
.staff-email {
  color: var(--red);
  font-weight: 600;
  font-size: 0.92rem;
}
.staff-email:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Events list ---------- */
.event-month-heading {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.band--ink .event-month-heading,
.band--red .event-month-heading { color: var(--gold); }
.event-month-heading:first-child { margin-top: 0; }

.event-row {
  display: flex;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid rgba(30, 26, 20, 0.14);
  align-items: flex-start;
}
.event-row:first-of-type { border-top: none; }
.band--ink .event-row,
.band--red .event-row { border-top-color: rgba(250, 247, 242, 0.16); }

.event-date-block {
  flex: none;
  width: 66px;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 0.6em 0;
}
.band--ink .event-date-block,
.band--red .event-date-block { background: rgba(250, 247, 242, 0.12); }
.event-date-day {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
}
.event-date-month {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.25em;
}

.event-row-media {
  flex: none;
  width: 110px;
  aspect-ratio: 1 / 1;
  background: var(--paper-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.band--ink .event-row-media,
.band--red .event-row-media { border-color: rgba(250, 247, 242, 0.4); }
.event-row-media img { max-width: 100%; max-height: 100%; object-fit: contain; }

.event-row-body { flex: 1; min-width: 0; }
.event-row-body h3 { margin-bottom: 0.3em; }

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 1em;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.4em;
}
.band--ink .event-meta-row,
.band--red .event-meta-row { color: var(--paper-on-ink); }
.event-meta-row strong { font-weight: 700; color: inherit; }

.event-more summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--red);
  list-style: none;
  margin-top: 0.3em;
}
.band--ink .event-more summary,
.band--red .event-more summary { color: var(--gold); }
.event-more summary::-webkit-details-marker { display: none; }
.event-more summary::after { content: " +"; }
.event-more[open] summary::after { content: " \2013"; }
.event-more-body {
  margin-top: 0.6em;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 68ch;
}
.band--ink .event-more-body,
.band--red .event-more-body { color: var(--paper-on-ink); }
.event-more-body p + p { margin-top: 0.7em; }
.event-more-image {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin-bottom: 0.8em;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
}
.band--ink .event-more-image,
.band--red .event-more-image { border-color: rgba(250, 247, 242, 0.4); }
.event-register {
  font-size: 0.75rem;
  padding: 0.7em 1.4em;
  margin: 0.2em 0 0.4em;
}
.event-more-body .event-register { margin-top: 0.9em; }
.event-more-source {
  display: inline-block;
  margin-top: 0.6em;
  font-size: 0.76rem;
  color: var(--ink-soft);
}
.band--ink .event-more-source,
.band--red .event-more-source { color: var(--paper-on-ink); }

.events-empty {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-block: var(--space-sm);
}
.band--ink .events-empty,
.band--red .events-empty { color: var(--paper-on-ink); }

/* ---------- Member benefits list ---------- */
.member-benefits-list li {
  position: relative;
  padding-left: 1.3em;
  padding-block: 0.35em;
  font-size: 0.95rem;
  max-width: 46ch;
}
.member-benefits-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.45em;
  height: 0.45em;
  background: var(--gold);
  border-radius: 2px;
}

/* ---------- Membership levels ---------- */
.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.membership-card {
  background: var(--paper-soft);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
}
.membership-card h3 { margin-bottom: 0.15em; }
.membership-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--red);
  margin-bottom: var(--space-sm);
}
.membership-benefits-note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0.5em;
}
.membership-card ul { margin-top: 0.2em; }
.membership-card li {
  font-size: 0.88rem;
  line-height: 1.45;
  padding-block: 0.5em;
  border-top: 1px solid rgba(30, 26, 20, 0.14);
}
.membership-card li:first-child { border-top: none; }
.membership-fineprint {
  margin-top: var(--space-lg);
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 68ch;
}
.membership-fineprint p + p { margin-top: 0.6em; }

/* ---------- History gallery collage ---------- */
.history-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.history-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(0.15);
  transition: filter 0.2s ease, transform 0.3s ease;
}
.history-grid img:hover { filter: grayscale(0); transform: scale(1.03); }

/* ---------- Supporters ---------- */
.supporters-plate {
  background: var(--paper-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.supporters-plate img { width: 100%; height: auto; display: block; }

/* ---------- Newsletter ---------- */
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.newsletter-inner h3,
.newsletter-inner .newsletter-title { margin-bottom: 0.3em; }
/* h2 in the page outline (so heading levels never skip), sized like the h3 it replaced */
.newsletter-title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; }
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85em 1.1em;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  min-width: 240px;
}
.newsletter-form input::placeholder { color: var(--ink-soft); }

.newsletter-cta-row { display: flex; flex-wrap: wrap; gap: 0.3em 1.5em; margin-top: 0.5em; }
.newsletter-membership-link { display: inline-block; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.newsletter-membership-link:hover { color: var(--red-dark); }

.text-soft { color: var(--ink-soft); }


/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 3px solid var(--ink);
  padding-block: var(--space-md);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(30, 26, 20, 0.14);
}
.footer-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.footer-links a:hover { color: var(--red); }
.footer-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-logo-chip img { height: 34px; }
.footer-meta { text-align: right; font-size: 0.85rem; color: var(--ink-soft); }
.footer-meta p + p { margin-top: 0.2em; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2.reverse .figure { order: 0; }
  .grid-2.reverse .stacked-figures { order: 0; }
  .visit-grid { grid-template-columns: repeat(2, 1fr); }
  .archival-grid { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: repeat(2, 1fr); }
  .event-row { gap: var(--space-sm); }
  .event-row-media { width: 72px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
}

/* The nine nav items only fit on one row above this width; below it the menu button takes over. */
@media (max-width: 1220px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .primary-nav.is-open { max-height: 560px; }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-sm) var(--gutter) var(--space-md);
  }
  .primary-nav a { width: 100%; padding-block: 0.7em; }
}

@media (max-width: 760px) {
  .band { padding-block: var(--space-lg); }
  .visit-grid { grid-template-columns: 1fr; gap: var(--space-sm); }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-meta { text-align: left; }
}

@media (max-width: 520px) {
  .hero-photo-wrap { height: 46vh; }
  .pill-row { gap: 0.5rem; }
  .event-row-media { width: 56px; }
}

/* ---------- Event details: galleries, videos, original links ---------- */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  max-width: 980px;
  margin-bottom: 0.9em;
}
.event-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
}
.band--ink .event-gallery img,
.band--red .event-gallery img { border-color: rgba(250, 247, 242, 0.4); }
.event-gallery--many { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.event-gallery--many img { aspect-ratio: 4 / 3; object-fit: cover; }
.event-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 640px;
  margin: 1em 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.event-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.event-note { font-style: italic; font-size: 0.85rem; margin-bottom: 0.9em; max-width: 68ch; }
.event-video-link { margin: -0.5em 0 1em; font-size: 0.82rem; }
.event-video-link a { text-decoration: underline; text-underline-offset: 2px; }
.event-more-links { margin-top: 0.9em; font-size: 0.82rem; }
.event-more-links a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Event archive page ---------- */
.archive-tools { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); align-items: flex-end; justify-content: space-between; }
.archive-tools .archive-filter { margin: 0; }
.archive-search { flex: 0 1 320px; min-width: 220px; }
.archive-search label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}
.archive-search input {
  width: 100%;
  font: inherit;
  padding: 0.7em 0.9em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.archive-search input:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.archive-note { margin-top: var(--space-sm); font-size: 0.85rem; color: var(--ink-soft); max-width: 68ch; }
.archive-result-count { margin: var(--space-md) 0 var(--space-xs); font-weight: 600; }
.archive-month { border-top: 2px solid var(--ink); }
.archive-month:last-of-type { border-bottom: 2px solid var(--ink); }
.archive-month > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}
.archive-month > summary::-webkit-details-marker { display: none; }
.archive-month > summary:hover { color: var(--red); }
.archive-month-count { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; }
.archive-month-count::after { content: "  +"; font-weight: 700; color: var(--red); }
.archive-month[open] > summary .archive-month-count::after { content: "  \2013"; }
.archive-month-body { padding-bottom: var(--space-sm); }
.archive-year-heading { margin: var(--space-lg) 0 var(--space-xs); }

@media (max-width: 520px) {
  .event-gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .archive-search { flex-basis: 100%; }
}

/* ---------- Standalone video embed (About) ---------- */
.video-embed { max-width: 880px; }
.video-embed-title { margin-bottom: var(--space-sm); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 2px solid var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed-link { margin-top: 0.7em; font-size: 0.85rem; }
.video-embed-link a { text-decoration: underline; text-underline-offset: 2px; }

/* Native <video> inside event / exhibition video frames */
.event-video video,
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.exhibit-videos { margin-top: var(--space-md); max-width: 880px; }
.exhibit-video { margin: 0 0 var(--space-md); }
.exhibit-video h3 { margin-bottom: 0.4em; }
.exhibit-video p { margin-bottom: 0.8em; }

/* ---------- Shop landing (three collections in the Squarespace store) ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.shop-card {
  position: relative; /* the button's ::after stretches over the whole card, making it one link */
  display: flex;
  flex-direction: column;
  background: var(--paper-soft);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.shop-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}
.shop-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-md);
}
.shop-card h3 { margin-bottom: 0.35em; }
.shop-card p { font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: var(--space-sm); }
.shop-card .btn { margin-top: auto; align-self: flex-start; }
.shop-card .btn::after { content: ""; position: absolute; inset: 0; }
.shop-card:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .shop-card-media img { transition: transform 0.5s ease; }
  .shop-card:hover .shop-card-media img { transform: scale(1.04); }
}
.shop-note { margin-top: var(--space-lg); font-size: 0.85rem; color: var(--ink-soft); }
.shop-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Accessibility: contrast on the red bands, hidden headings ---------- */
.band--red .event-date-month,
.band--red .event-month-heading,
.band--red .event-more summary { color: var(--gold-on-red); }
.band--red .event-calendar a:hover { color: var(--gold-on-red); }
.band--ink .event-calendar a:hover { color: var(--gold); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ---------- Skip link (keyboard / screen-reader shortcut past the header) ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -5rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; outline: 3px solid var(--gold); outline-offset: 2px; }
main:focus { outline: none; }

/* ---------- Announcement banner (content/announcements/*.json; scripts/lib/announcements.js) ---------- */
.announcements { background: var(--ink); color: var(--paper); }
.announcement[hidden] { display: none; }
.announcement-inner { display: flex; align-items: center; gap: var(--space-xs); padding-block: 0.3rem; min-height: 2.9rem; }
.announcement-text { flex: 1; font-size: 0.92rem; line-height: 1.45; padding-block: 0.3rem; }
.announcement-link {
  margin-left: 0.35em;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  white-space: nowrap;
}
.announcement-link:hover { color: var(--paper); }
.announcement-close {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  margin-right: -0.5rem;
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-size: 1.6rem;
  line-height: 1;
}
.announcement-close:hover { background: rgba(247, 242, 234, 0.14); }
.announcement a:focus-visible, .announcement-close:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* ---------- Footer: social links ---------- */
.footer-social { margin-bottom: 0.45em; font-weight: 600; letter-spacing: 0.02em; }
.footer-social a { text-decoration: underline; text-underline-offset: 3px; }
.footer-social a:hover { color: var(--red); }

/* ---------- Event rows: add-to-calendar links ---------- */
.event-calendar { margin-top: 0.6em; font-size: 0.85rem; color: var(--ink-soft); }
.event-calendar a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.event-calendar a:hover { color: var(--red); }
.band--red .event-calendar, .band--ink .event-calendar { color: var(--paper-on-ink); }
.band--red .event-calendar a:hover, .band--ink .event-calendar a:hover { color: var(--gold); }

/* ---------- Support Ukraine page ---------- */
.support-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-sm); }
.support-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  grid-column: span 4;
}
.support-gallery img:nth-child(-n + 4) { grid-column: span 3; }
/* Military Aid is the long list: it takes the left column, the three shorter groups stack on the right. */
.support-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; align-items: start; }
.support-cards .rate-card:first-child { grid-row: span 3; }
.support-links { list-style: none; padding: 0; margin: 0; }
.support-links li { padding: 0.6em 0; border-top: 1px solid rgba(30, 26, 20, 0.14); }
.support-links li:first-child { border-top: 0; }
.support-links a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.support-links a::after { content: "\00a0\2197"; font-weight: 400; }
.support-links a:hover { color: var(--red); }
.support-links--coalition { margin-top: var(--space-md); columns: 2; column-gap: var(--space-lg); }
.support-links--coalition li { break-inside: avoid; }
.band--ink .support-links li { border-top-color: rgba(247, 242, 234, 0.2); }
.band--ink .support-links a:hover { color: var(--gold); }

/* ---------- Video Collection page ---------- */
.video-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid rgba(30, 26, 20, 0.16);
}
.video-entry:first-child { border-top: 0; padding-top: 0; }
.video-entry-media { display: grid; gap: var(--space-sm); align-content: start; }
.video-item { margin: 0; }
.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  padding: 0;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.2s ease; }
.video-thumb:hover img { transform: scale(1.03); opacity: 0.9; }
.video-thumb:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.video-thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.2rem;
  height: 4.2rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(247, 242, 234, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.video-thumb-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 0.75rem 0 0.75rem 1.2rem;
  border-color: transparent transparent transparent var(--red);
}
.video-item figcaption { margin-top: 0.5em; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.video-watch-link { margin-top: 0.5em; font-size: 0.82rem; }
.video-watch-link a { text-decoration: underline; text-underline-offset: 2px; }
.video-item .video-frame { margin: 0; }
.video-entry-text h3 { margin-bottom: var(--space-xs); }
.video-entry-text p { margin-bottom: 0.9em; max-width: 62ch; }

@media (max-width: 900px) {
  .support-gallery { grid-template-columns: repeat(2, 1fr); }
  .support-gallery img,
  .support-gallery img:nth-child(-n + 4) { grid-column: auto; }
  .support-gallery img:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .support-links--coalition { columns: 1; }
  .support-cards { grid-template-columns: 1fr; }
  .support-cards .rate-card:first-child { grid-row: auto; }
  .video-entry { grid-template-columns: 1fr; }
}

/* ---------- Header search item (an icon on the wide nav, an icon + label in the mobile menu) ---------- */
.nav-search a { display: inline-flex; align-items: center; gap: 0.5em; }
.nav-search-icon { display: block; }
.nav-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 1220px) {
  .nav-search-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
}

/* ---------- Event titles link to the event's own page ---------- */
.event-title-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Site search (Pagefind UI, themed to the site) ---------- */
#search {
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: var(--red);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--paper);
  --pagefind-ui-border: rgba(30, 26, 20, 0.35);
  --pagefind-ui-tag: var(--paper-soft);
  --pagefind-ui-border-width: 2px;
  --pagefind-ui-border-radius: 6px;
  --pagefind-ui-font: var(--font-body);
  max-width: 860px;
}

/* ---------- Newsletter signup: result message and bot trap ---------- */
/* A fixed width keeps the form beside the text when a long result message appears; the message wraps inside it. */
.newsletter-form { position: relative; width: 420px; max-width: 100%; }
.newsletter-message { flex-basis: 100%; margin: 0.15rem 0 0; font-size: 0.9rem; line-height: 1.4; }
.newsletter-message:empty { display: none; }
.newsletter-message[data-state="ok"] { color: #2f5d2a; }
.newsletter-message[data-state="error"] { color: var(--red); }
.newsletter-message a { text-decoration: underline; text-underline-offset: 3px; }
/* Hidden field that only bots fill in; kept off-screen rather than display:none, which some bots detect. */
.newsletter-trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Optional first/last name above the email row: two halves, then the email field and the button. */
.newsletter-form input.newsletter-name { flex: 1 1 calc(50% - 0.375rem); min-width: 190px; } /* too narrow for two across? they stack, so the placeholder is never cut off */
.newsletter-form input.newsletter-email { flex: 1 1 200px; min-width: 0; }
