:root {
  /* Palette C — client-requested preview */
  --bg: #fff4e4;
  --bg-alt: #fce7cc;
  --bg-deep: #f8d9ae;
  --fg: #24565b;
  --muted: #5c7d82;
  --teal: #58c7c5;
  --teal-dark: #24565b;
  --oxblood: #ff6678;
  --oxblood-soft: #ff8a9a;
  /* aliases kept so older rules / mental model still work */
  --gold: #ffb84d;
  --gold-dark: #e09a2e;
  --font-sans: "Source Sans 3", "Helvetica Neue", system-ui, sans-serif;
  --font-display: "Playfair Display", "Bodoni 72", Georgia, serif;
  --font-script: "Great Vibes", "Snell Roundhand", cursive;
  --font-wordmark: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  min-height: 100dvh;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}
main { flex: 1 1 auto; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0 0 1rem; }

a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--fg); }
a.bare, a.btn, a.nav-link { text-decoration: none; }

/* width:100% so body-flex children don’t shrink-wrap to content (e.g. Events filter) */
.container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
main.page-main,
main:not([class]),
main.container {
  width: 100%;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}
/* Home: keep horizontal constraints; allow normal vertical scroll */
body.page-home main {
  padding-top: 0;
  padding-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 64rem;
  box-sizing: border-box;
}
.muted { color: var(--muted); }

.eyebrow {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--oxblood);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

.flourish {
  display: block;
  width: 120px;
  height: 5px;
  background: var(--oxblood);
  margin: 0 auto 1.35rem;
  border: none;
}

/* Soft-launch / in-development notice */
.dev-banner {
  flex-shrink: 0;
  background: color-mix(in srgb, var(--teal) 18%, var(--bg));
  color: var(--fg);
  border-bottom: 1px solid color-mix(in srgb, var(--teal) 28%, transparent);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
  padding: 0.45rem 1rem;
}

/* Header & nav */
.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, #fff 12%);
}
.site-header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--fg);
}
.brand:hover { color: var(--teal-dark); }
.brand-logo {
  display: block;
  width: auto;
  height: 52px;
  object-fit: contain;
}
.nav-desktop, .nav-mobile {
  text-transform: uppercase;
  font-weight: 600;
}
.nav-desktop {
  display: none;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-mobile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.7rem;
  width: 100%;
  padding: 0 0.5rem 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.nav-link { color: var(--muted); }
.nav-link:hover, .nav-link.active { color: var(--fg); }

@media (min-width: 640px) {
  .site-header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 1.75rem;
    gap: 1.25rem;
  }
  .brand {
    width: auto;
    justify-content: flex-start;
  }
  .brand-logo {
    height: 64px;
  }
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
  .nav-desktop { font-size: 0.8rem; letter-spacing: 0.16em; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.72rem 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--bg); }
.btn-primary:hover { background: var(--teal-dark); color: var(--bg); }
.btn-outline { border: 1px solid var(--teal); color: var(--teal-dark); }
.btn-outline:hover { background: var(--teal); color: var(--bg); }

/* Hero — Poster scale + BA 1910 romance */
.hero {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.5rem 4rem;
  max-width: none;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, #fffbf3 0%, var(--bg) 48%, var(--bg-deep) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 38px,
    rgba(0, 0, 0, 0.02) 38px 39px
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  width: 100%;
}
.hero .eyebrow {
  font-size: 1rem;
  margin-bottom: 1.15rem;
}
.hero h1 {
  font-size: clamp(2.85rem, 8vw, 5rem);
  line-height: 0.98;
  font-weight: 700;
  margin-bottom: 1.35rem;
  letter-spacing: -0.02em;
}
.hero h1 .script {
  display: block;
  font-family: var(--font-script);
  color: var(--oxblood);
  font-size: 1.45em;
  font-weight: 400;
  margin-bottom: 0.08rem;
  letter-spacing: 0;
  line-height: 1;
}
.hero .lede {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-actions .btn {
  padding: 0.85rem 1.6rem;
  font-size: 0.78rem;
}
.hero-detail {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}
.hero-detail strong {
  color: var(--fg);
  font-weight: 600;
}
@media (min-width: 640px) {
  .hero { padding: 5rem 1.5rem 5.5rem; }
}

/* Sections */
.section { padding: 4rem 0; border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }

.home-about h2,
.home-first h3 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}
.home-about p { line-height: 1.6; }
.home-first h3 { font-family: var(--font-display); font-weight: 600; }
.first-time-body {
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.first-time-body strong {
  color: var(--fg);
  font-weight: 600;
}
.home-more-link {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.875rem;
  color: var(--teal-dark);
}
.home-more-grid {
  align-items: stretch;
}
.home-more .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.home-first .home-more-link {
  margin-top: auto;
  padding-top: 0.75rem;
}
.home-first .first-time-body {
  flex: 1 1 auto;
}

/* Home layout C: title header + copy | carousel */

.home-c {
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
  padding: 1.1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
}

.home-c-title {
  text-align: center;
  width: 100%;
  padding: 0.35rem 0 1.15rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.home-c-title .eyebrow {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.home-c-title .flourish {
  width: 120px;
  height: 4px;
  margin: 0 auto 1.1rem;
}
.home-c-title h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.5vw, 3.35rem);
  line-height: 1.08;
}
.home-c-title h1 .hero-logo {
  display: block;
  height: clamp(4rem, 10vw, 6.5rem);
  width: auto;
  margin: 0 auto 0.3em;
}
.home-c-title h1 .rest {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  margin: 0 auto;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 480px) {
  /* Very narrow phones: allow wrap rather than horizontal overflow */
  .home-c-title h1 .rest {
    white-space: normal;
    max-width: 18rem;
  }
}

.home-c-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 2rem 2.25rem;
}
.home-c-copy .lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 28rem;
  margin: 0 0 0.85rem;
}
.home-c-copy .hero-detail {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.home-c-copy .hero-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.65rem;
  margin: 0;
}

.home-c-visual { min-width: 0; }

.visual-frame {
  padding: 0.55rem;
  background:
    linear-gradient(155deg,
      color-mix(in srgb, var(--bg) 35%, #fff 65%),
      var(--bg-alt) 45%,
      color-mix(in srgb, var(--bg-alt) 85%, var(--fg) 15%));
  border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
  border-radius: 2px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--oxblood) 28%, transparent),
    0 12px 28px color-mix(in srgb, var(--fg) 12%, transparent);
}
.visual-frame-inner {
  border: 1px solid color-mix(in srgb, var(--oxblood) 40%, transparent);
  padding: 4px;
  background: color-mix(in srgb, var(--fg) 5%, var(--bg));
  border-radius: 1px;
}
.visual-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
  aspect-ratio: 4 / 3;
  max-height: min(280px, 38dvh);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  background: #0a0a0a;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* Portrait: keep full image with vertical black bars (pillarbox) */
.carousel-slide.is-portrait img {
  object-fit: contain;
  object-position: center center;
  background: #0a0a0a;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  color: var(--fg);
  font-size: 1.15rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--fg) 15%, transparent);
  line-height: 1;
}
.carousel-nav.prev { left: 0.5rem; }
.carousel-nav.next { right: 0.5rem; }
.visual-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}
.visual-meta p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.carousel-dots {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}
.carousel-dots button {
  width: 0.45rem;
  height: 0.45rem;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: color-mix(in srgb, var(--fg) 22%, transparent);
  cursor: pointer;
}
.carousel-dots button[aria-current="true"] {
  background: var(--oxblood);
}
.home-c-gallery-link {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .home-c-row {
    grid-template-columns: 1fr;
  }
  /* Carousel above body copy on mobile */
  .home-c-visual { order: 1; }
  .home-c-copy { order: 2; }
  .home-c-copy .lede,
  .home-c-copy .hero-detail {
    text-align: center;
    max-width: none;
  }
  .home-c-copy .hero-actions {
    justify-content: center;
    flex-wrap: nowrap;
  }
  .home-c-copy .hero-actions .btn {
    flex: 0 1 auto;
  }
  .home-c-gallery-link {
    text-align: center;
  }
  .visual-carousel { max-height: 240px; }
  .visual-meta {
    justify-content: center;
  }
}

/* Team (board members) — compact cards, content-sized (no tall empty stretch) */
.team-page {
  padding-bottom: 2rem;
  box-sizing: border-box;
}
/* Team uses shared .page-header; intro sits under h1 inside that header */
.team-intro {
  margin: 0.35rem auto 0;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
}
.team-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
  align-items: stretch; /* equal card heights */
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 32rem;
  }
}
@media (max-width: 520px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }
}

/* Shared framed card chrome (team + gallery) — matches visual-frame / gallery */
.team-card,
.album-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  border-radius: 2px;
  overflow: hidden;
  /* Outer parchment edge + oxblood ring (same language as home carousel frame) */
  border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
  background:
    linear-gradient(155deg,
      color-mix(in srgb, var(--bg) 35%, #fff 65%),
      var(--bg-alt) 45%,
      color-mix(in srgb, var(--bg-alt) 85%, var(--fg) 15%));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--oxblood) 28%, transparent),
    0 8px 20px color-mix(in srgb, var(--fg) 10%, transparent);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.team-card:hover,
.album-card:hover {
  border-color: color-mix(in srgb, var(--fg) 22%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--oxblood) 40%, transparent),
    0 12px 26px color-mix(in srgb, var(--fg) 12%, transparent);
  outline: none;
}
.team-card:focus-visible,
.album-card:focus-visible {
  border-color: color-mix(in srgb, var(--fg) 22%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--oxblood) 40%, transparent),
    0 0 0 3px color-mix(in srgb, var(--teal, #58c7c5) 45%, transparent),
    0 12px 26px color-mix(in srgb, var(--fg) 12%, transparent);
  outline: none;
}
.team-card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--oxblood) 40%, transparent);
  border-radius: 1px;
  background: color-mix(in srgb, var(--fg) 5%, var(--bg));
  box-sizing: border-box;
}
.team-card-media img,
.team-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* Portrait-ish faces: bias slightly upper so heads stay in frame */
.team-card-media img {
  object-position: center 22%;
}
/* Full uncropped photo (letterboxed in the square card) */
.team-card-media--full {
  background: color-mix(in srgb, var(--fg) 8%, var(--bg));
}
.team-card-media--full img {
  object-fit: contain;
  object-position: center center;
}
.team-card-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--bg-alt) 70%, var(--teal) 30%),
      color-mix(in srgb, var(--bg) 85%, var(--oxblood) 15%));
  color: color-mix(in srgb, var(--fg) 55%, var(--muted));
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}
.album-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  background: color-mix(in srgb, var(--fg) 5%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--oxblood) 40%, transparent);
  border-radius: 1px;
  box-sizing: border-box;
}
.team-card .body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.25rem;
  padding: 0.65rem 0.35rem 0.35rem;
  min-height: 0;
}
.team-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
  flex-shrink: 0;
}
.team-card-role {
  margin: 0;
  font-size: 0.86rem;
  color: var(--teal, #58c7c5);
  font-weight: 600;
  line-height: 1.35;
  /* Reserve 3 lines so every card is the same height */
  min-height: calc(1.35em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-card-role--empty {
  visibility: hidden;
  min-height: calc(1.35em * 3);
}
.team-card-hint {
  margin: auto 0 0;
  padding-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Profile modal (same visual language as gallery modal) */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.team-modal.is-open { display: flex; }
.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--fg) 55%, transparent);
  backdrop-filter: blur(3px);
  border: 0;
  cursor: pointer;
}
.team-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(52rem, 94vw);
  max-height: min(90vh, 760px);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(155deg,
      color-mix(in srgb, var(--bg) 40%, #fff 60%),
      var(--bg-alt));
  border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
  border-radius: 3px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--oxblood) 28%, transparent),
    0 20px 50px color-mix(in srgb, var(--fg) 35%, transparent);
  padding: 0.65rem;
}
.team-modal-inner {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--oxblood) 35%, transparent);
  padding: 1rem 1rem 1.1rem;
  background: color-mix(in srgb, var(--bg) 88%, #fff 12%);
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  max-height: min(88vh, 740px);
}
.team-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--bg) 80%, #fff 20%);
  color: var(--fg);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.team-modal-close:hover {
  background: var(--fg);
  color: var(--bg);
}
.team-modal-layout {
  display: grid;
  gap: 1.25rem 1.75rem;
  align-items: start;
  padding-right: 1.5rem;
}
@media (min-width: 720px) {
  .team-modal-layout {
    grid-template-columns: minmax(160px, 200px) 1fr;
  }
}
.team-frame {
  margin: 0;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--bg) 40%, #fff 60%), var(--bg-alt));
  border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--oxblood) 22%, transparent),
    0 8px 20px color-mix(in srgb, var(--fg) 10%, transparent);
  border-radius: 2px;
}
.team-frame-inner {
  border: 1px solid color-mix(in srgb, var(--oxblood) 35%, transparent);
  padding: 3px;
  background: color-mix(in srgb, var(--fg) 6%, var(--bg));
  display: flex;
}
.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 280px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 1px;
}
/* Entire photo visible in the profile modal (no crop) */
.team-photo.is-full {
  aspect-ratio: auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
}
.team-frame-inner:has(.team-photo.is-full) {
  justify-content: center;
  background: color-mix(in srgb, var(--fg) 4%, var(--bg));
}
@media (min-width: 720px) {
  .team-modal-layout.is-full-photo {
    grid-template-columns: minmax(200px, 280px) 1fr;
  }
}
.team-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 500;
  margin: 0 0 0.25rem;
  line-height: 1.2;
  padding-right: 0.5rem;
}
.team-role {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--teal, #58c7c5);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.team-bio p {
  margin: 0 0 0.85rem;
  max-width: 38rem;
  font-size: 0.98rem;
}
.team-bio p:last-child { margin-bottom: 0; }
@media (max-width: 719px) {
  .team-modal-layout { padding-right: 0; }
  .team-modal-inner { padding-top: 2.75rem; }
  .team-photo {
    max-height: 220px;
    max-width: 220px;
    margin: 0 auto;
  }
}

/* Gallery */
.gallery-page { padding-bottom: 2.5rem; }
.gallery-section {
  margin-top: 2rem;
}
.gallery-section:first-of-type {
  margin-top: 1.25rem;
}
.gallery-section-heading {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--oxblood) 35%, transparent);
}
.album-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: stretch; /* equal card heights in each row */
}
.album-card .body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.2rem;
  padding: 0.7rem 0.4rem 0.4rem;
  min-height: 0;
}
.album-card-date {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--oxblood);
  line-height: 1.3;
}
.album-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.25;
  /* Always 2 lines so titles don’t change card height */
  min-height: calc(1.25em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.album-card .body > p:not(.album-card-date) {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
  /* Always 2 lines for descriptions */
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* When an album has no description, still reserve the space */
.album-card .body::after {
  content: "";
  flex: 1 1 auto;
}
.gallery-album-header {
  text-align: left;
  max-width: 40rem;
  margin-left: 0;
  margin-right: auto;
}
.gallery-album-header::after {
  margin-left: 0;
}
.gallery-album-date {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.gallery-album-date--modal {
  margin-bottom: 0.15rem;
  font-size: 0.78rem;
}
.gallery-album-desc {
  margin: 0.65rem 0 0;
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
}

.album-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.album-modal.is-open { display: flex; }
.album-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--fg) 55%, transparent);
  backdrop-filter: blur(3px);
  border: 0;
  cursor: pointer;
}
.album-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(52rem, 94vw);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(155deg,
      color-mix(in srgb, var(--bg) 40%, #fff 60%),
      var(--bg-alt));
  border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
  border-radius: 3px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--oxblood) 28%, transparent),
    0 20px 50px color-mix(in srgb, var(--fg) 35%, transparent);
  padding: 0.65rem;
}
.album-modal-inner {
  border: 1px solid color-mix(in srgb, var(--oxblood) 35%, transparent);
  padding: 0.75rem 0.85rem 0.9rem;
  background: color-mix(in srgb, var(--bg) 88%, #fff 12%);
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  max-height: min(86vh, 700px);
}
.album-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}
.album-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.album-modal-head p { margin: 0.25rem 0 0; font-size: 0.9rem; }
.album-modal-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--bg) 80%, #fff 20%);
  color: var(--fg);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.album-modal-close:hover {
  background: var(--fg);
  color: var(--bg);
}
.album-modal-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  height: min(56vh, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: color-mix(in srgb, var(--fg) 6%, var(--bg-alt));
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: 2px;
  overflow: hidden;
}
.album-modal-stage img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
}
.album-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--fg);
  font-size: 1.35rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--fg) 18%, transparent);
}
.album-modal-nav.prev { left: 0.65rem; }
.album-modal-nav.next { right: 0.65rem; }
.album-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.album-modal-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: 60%;
}
.album-modal-dots button {
  width: 0.45rem;
  height: 0.45rem;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: color-mix(in srgb, var(--fg) 22%, transparent);
  cursor: pointer;
}
.album-modal-dots button[aria-current="true"] {
  background: var(--oxblood);
}
.album-modal-hint { opacity: 0.75; font-size: 0.82rem; }
body.modal-open { overflow: hidden; }

/* Page header — consistent across interior pages (title, lede, oxblood rule) */
.page-header {
  padding: 2rem 0 1.35rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2.15rem, 4.8vw, 2.85rem);
  margin: 0 0 0.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.page-header .lede {
  margin: 0 auto 0.35rem;
  max-width: 36rem;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.45;
}
.page-header .where,
.page-header p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}
.page-header::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--oxblood);
  margin: 1.15rem auto 0;
}

.page-block { padding: 1.25rem 0; }

/* Weekly Tango — title + oxblood rule only in page-header; intro copy below */
.classes-page .classes-header {
  padding-top: 2rem;
  padding-bottom: 0;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.classes-page .classes-header h1 {
  margin-bottom: 0;
  font-size: clamp(2.15rem, 4.8vw, 2.85rem);
}
.classes-page .classes-header::after {
  margin: 1rem auto 0;
}

/* Intro: pill chips (mockup 05) + centered blurb */
.classes-intro {
  max-width: min(56rem, 100%);
  margin: 1.15rem auto 1.75rem;
  text-align: center;
}
.classes-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.classes-chip {
  display: inline-block;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 18%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
  white-space: nowrap;
  flex: 0 1 auto;
}
.classes-chip--price {
  background: color-mix(in srgb, var(--oxblood) 14%, var(--bg));
  border-color: color-mix(in srgb, var(--oxblood) 40%, transparent);
}
@media (max-width: 699px) {
  .classes-chips {
    flex-wrap: wrap;
  }
  .classes-chip {
    white-space: normal;
    font-size: 0.9rem;
  }
}
.classes-blurb {
  max-width: 42rem;
  margin: 1rem auto 0;
  line-height: 1.6;
  font-size: 1.02rem;
  color: var(--muted);
  text-align: center;
}
.classes-blurb p { margin: 0 0 0.5rem; }
.classes-blurb p:last-child { margin-bottom: 0; }
/* More specific than .conduct-note so left/right auto wins (centers the block) */
.classes-intro .conduct-note.classes-conduct {
  display: block;
  width: 100%;
  max-width: 42rem;
  margin: 0.75rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
}

.classes-schedule-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}
.conduct-note {
  max-width: 44rem;
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
}
.page-header .conduct-note {
  margin-bottom: 0.35rem;
}

.classes-layout {
  display: grid;
  gap: 1.15rem;
  align-items: stretch;
  padding-bottom: 1.5rem;
}
@media (min-width: 900px) {
  .classes-layout {
    /* Schedule narrower; getting-in wider so sign can be wider */
    grid-template-columns: minmax(14rem, 0.78fr) minmax(26rem, 1.35fr);
  }
}

.classes-schedule {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.classes-schedule .program-foot {
  margin-top: 0.65rem;
  font-size: 0.88rem;
}
.classes-schedule .program-price {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  font-size: 0.92rem;
}

/* Classes — schedule cards */
.class-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  max-width: none;
  align-items: stretch;
}
.class-card {
  display: flex;
  flex-direction: column;
  height: auto;
  background: color-mix(in srgb, var(--bg-alt) 55%, #fff 45%);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-left: 4px solid var(--oxblood);
  padding: 0.6rem 0.85rem;
}
.class-card:nth-child(2) { border-left-color: var(--teal); }
.class-card:nth-child(3) {
  border-left-color: color-mix(in srgb, var(--oxblood) 55%, var(--teal));
}
.class-card-head {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.class-card-time {
  display: block;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-variant-numeric: tabular-nums;
}
.class-card:nth-child(2) .class-card-time { color: var(--teal-dark); }
.class-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.class-card-detail {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
}
.class-card-note {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-dark);
}

/* Getting in C: desktop map|sign; mobile = mockup 03 sign hero */
.getting-in-c {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.getting-in-stage {
  position: relative;
  display: grid;
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  background: color-mix(in srgb, var(--bg-alt) 40%, #fff 60%);
  overflow: hidden;
}
.getting-in-main {
  display: grid;
  min-width: 0;
}
.getting-in-map {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #f5e2c8;
}
.getting-in-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  border: 0;
  background: #f0dfc5;
}
.getting-in-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  padding: 0.75rem 0.85rem;
  background: color-mix(in srgb, var(--bg) 92%, #fff 8%);
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.getting-in-dock-copy {
  flex: 1 1 10rem;
  min-width: 0;
}
.getting-in-dock-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 0.12rem;
  line-height: 1.15;
}
.getting-in-lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
  max-width: 22rem;
}
.getting-in-map-btn {
  flex-shrink: 0;
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}
.getting-in-spine {
  margin: 0;
  min-width: 0;
  position: relative;
  background: color-mix(in srgb, var(--fg) 5%, var(--bg));
}
.getting-in-spine img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor top so Bell / top of board stay in frame */
  object-position: center top;
}
/* Mobile map chip (desktop hidden) */
.getting-in-map-chip {
  display: none;
}

/* —— Mobile: mockup 03 sign hero —— */
@media (max-width: 899px) {
  .classes-page .classes-header {
    padding-top: 1.15rem;
    padding-bottom: 0;
  }
  .classes-intro {
    margin: 0.95rem auto 1.35rem;
    max-width: min(48rem, 100%);
    padding: 0 0.15rem;
  }
  .classes-layout {
    gap: 1rem;
    padding-bottom: 1.25rem;
  }

  .getting-in-stage {
    min-height: 16.5rem;
    height: min(58vw + 10rem, 22rem);
  }
  .getting-in-main {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
  }
  .getting-in-map {
    display: none; /* iframe hidden on mobile; chip used instead */
  }
  .getting-in-spine {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .getting-in-spine img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center top;
  }
  .getting-in-dock {
    pointer-events: auto;
    border-top: 0;
    background: linear-gradient(
      transparent,
      color-mix(in srgb, var(--fg) 78%, #000 22%)
    );
    color: #fff4e4;
    padding: 2.25rem 0.9rem 0.9rem;
    gap: 0.65rem;
  }
  .getting-in-dock-copy h2 {
    color: #fff4e4;
    font-size: 1.25rem;
  }
  .getting-in-lead {
    color: color-mix(in srgb, #fff4e4 88%, transparent);
    max-width: none;
  }
  .getting-in-map-btn {
    width: 100%;
    justify-content: center;
    background: var(--teal);
    color: var(--bg);
    border: 0;
  }
  .getting-in-map-btn:hover {
    background: var(--teal-dark);
    color: var(--bg);
  }
  .getting-in-map-chip {
    display: block;
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 3;
    width: 5.75rem;
    text-decoration: none;
    color: var(--fg);
    background: var(--bg);
    border: 2px solid color-mix(in srgb, #fff4e4 92%, #fff);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--fg) 28%, transparent);
    overflow: hidden;
  }
  .getting-in-map-chip img {
    display: block;
    width: 100%;
    height: 3.4rem;
    object-fit: cover;
  }
  .getting-in-map-chip span {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.2rem;
    background: var(--bg);
  }
}

/* —— Desktop: layout C (map | sign, dock under map) —— */
@media (min-width: 900px) {
  .getting-in-c {
    height: 100%;
  }
  .getting-in-stage {
    grid-template-columns: minmax(0, 1.05fr) minmax(14rem, 1fr);
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
  }
  .getting-in-main {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 0;
  }
  .getting-in-map iframe {
    min-height: 14rem;
  }
  .getting-in-spine {
    border-left: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
    min-height: 100%;
  }
  .getting-in-spine img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center top;
  }
  .getting-in-map-chip {
    display: none !important;
  }
  .getting-in-map-btn {
    width: auto;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Events — Upcoming / Past sections; full schedule in dialog */
.event-section {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}
.event-section:last-of-type {
  margin-bottom: 1rem;
}
.event-section-heading {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.event-section-empty {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
}
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.event-list > li {
  width: 100%;
}
.event-list > li + li {
  margin-top: 1rem;
}
/* Filter: All / Weekly / Special */
.event-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.85rem 0 0;
  padding: 0.25rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-alt) 70%, #fff 30%);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.event-filter-btn {
  margin: 0;
  padding: 0.4rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.event-filter-btn:hover,
.event-filter-btn:focus-visible {
  color: var(--fg);
  outline: none;
}
.event-filter-btn.is-active {
  background: #fff;
  color: var(--fg);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--fg) 12%, transparent);
}
.event-filter-btn--weekly.is-active {
  background: color-mix(in srgb, var(--teal) 35%, #fff 65%);
  color: var(--teal-dark);
}
.event-filter-btn--special.is-active {
  background: color-mix(in srgb, var(--gold) 40%, #fff 60%);
  color: color-mix(in srgb, var(--gold-dark) 75%, var(--fg) 25%);
}
.event-list > li[hidden] {
  display: none;
}
.event-teaser {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  background: color-mix(in srgb, var(--bg-alt) 55%, #fff 45%);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-left: 4px solid var(--oxblood);
  padding: 1.25rem 1.35rem 1.15rem;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
/* Weekly = turquoise; Special = mango (with watermelon kicker) */
.event-teaser--weekly {
  border-left-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, #fff 88%);
}
.event-teaser--special {
  border-left-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, #fff 86%);
}
.event-teaser--weekly .event-teaser-kind {
  color: var(--teal-dark);
  background: color-mix(in srgb, var(--teal) 28%, #fff 72%);
}
.event-teaser--special .event-teaser-kind {
  color: color-mix(in srgb, var(--gold-dark) 70%, var(--fg) 30%);
  background: color-mix(in srgb, var(--gold) 35%, #fff 65%);
}
.event-teaser--weekly .event-teaser-kicker {
  color: var(--teal-dark);
}
.event-teaser--special .event-teaser-kicker {
  color: var(--oxblood);
}
.event-teaser--weekly .event-teaser-cta {
  color: var(--teal-dark);
}
.event-teaser--special .event-teaser-cta {
  color: var(--oxblood);
}
.event-teaser-kind {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  margin: 0 0 0.5rem;
}
.event-teaser--has-banner {
  padding: 0;
}
/* Facebook event cover ratio: 1920×1005 (~1.91:1) */
.event-teaser-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1005;
  object-fit: cover;
  object-position: center;
  background: color-mix(in srgb, var(--fg) 8%, var(--bg));
}
.event-teaser-body {
  padding: 0;
}
.event-teaser--has-banner .event-teaser-body {
  padding: 1.1rem 1.25rem 1.05rem;
}
/* Desktop: mockup 06 — framed inset beside copy (mobile keeps full-bleed top) */
@media (min-width: 561px) {
  .event-teaser--has-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .event-teaser--has-banner .event-teaser-banner {
    width: 18rem;
    max-width: min(18rem, 42vw);
    margin: 0.85rem 0 0.85rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--fg) 12%, transparent);
  }
  .event-teaser--has-banner .event-teaser-body {
    padding: 1rem 1.2rem 1rem 1rem;
  }
}
.event-teaser-main {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
}
button.event-teaser-main {
  cursor: pointer;
}
button.event-teaser-main:focus-visible {
  outline: 2px solid var(--teal, #58c7c5);
  outline-offset: 3px;
}
.event-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.85rem;
}
.event-teaser-cta {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxblood);
  cursor: pointer;
}
.event-teaser-cta:hover,
.event-teaser-cta:focus-visible {
  color: var(--fg);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.event-teaser-gallery,
.event-teaser-ext {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  text-decoration: none;
}
.event-teaser-ext--register {
  color: var(--oxblood);
}
.event-teaser-gallery:hover,
.event-teaser-gallery:focus-visible,
.event-teaser-ext:hover,
.event-teaser-ext:focus-visible {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}
/* Past keeps kind colors but slightly quieter */
.event-teaser--past.event-teaser--weekly {
  border-left-color: color-mix(in srgb, var(--teal) 55%, var(--muted) 45%);
  background: color-mix(in srgb, var(--teal) 8%, #fff 92%);
}
.event-teaser--past.event-teaser--special {
  border-left-color: color-mix(in srgb, var(--gold) 55%, var(--muted) 45%);
  background: color-mix(in srgb, var(--gold) 10%, #fff 90%);
}
.event-teaser--past .event-teaser-kicker {
  opacity: 0.9;
}
.event-dialog--weekly .program-kicker,
.event-dialog--weekly .event-teaser-kind {
  color: var(--teal-dark);
}
.event-dialog--special .program-kicker {
  color: var(--oxblood);
}
.event-dialog--weekly .event-teaser-kind {
  background: color-mix(in srgb, var(--teal) 28%, #fff 72%);
}
.event-dialog--special .event-teaser-kind {
  color: color-mix(in srgb, var(--gold-dark) 70%, var(--fg) 30%);
  background: color-mix(in srgb, var(--gold) 35%, #fff 65%);
}
.event-dialog .event-teaser-kind {
  margin-bottom: 0.45rem;
}
.event-dialog-gallery,
.event-dialog-links {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}
.event-dialog-links a {
  text-decoration: none;
  letter-spacing: 0.04em;
}
.event-dialog-links a:hover,
.event-dialog-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gallery-album-back {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.album-photo-grid {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}
.album-photo-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  background: color-mix(in srgb, var(--fg) 6%, var(--bg));
  cursor: pointer;
  border-radius: 1px;
  overflow: hidden;
}
.album-photo-thumb:hover,
.album-photo-thumb:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--oxblood) 50%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 45%, transparent);
}
.album-photo-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.event-teaser:hover {
  background: color-mix(in srgb, var(--bg-alt) 35%, #fff 65%);
  border-color: color-mix(in srgb, var(--oxblood) 45%, var(--fg) 20%);
  transform: translateY(-1px);
}
.event-teaser-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 0.4rem;
}
.event-teaser-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.event-teaser-meta {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}
.event-teaser-price {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0;
}

/* Event detail dialog */
.event-dialog {
  border: none;
  padding: 0;
  max-width: min(36rem, calc(100vw - 2rem));
  width: 100%;
  background: transparent;
  color: var(--fg);
}
.event-dialog::backdrop {
  background: rgba(40, 28, 18, 0.55);
}
/* Same Facebook cover ratio as event cards */
.event-dialog-banner {
  display: block;
  width: calc(100% + 3.2rem);
  max-width: none;
  height: auto;
  margin: -1.75rem -1.6rem 1.15rem;
  aspect-ratio: 1920 / 1005;
  object-fit: cover;
  object-position: center;
  background: color-mix(in srgb, var(--fg) 8%, var(--bg));
}
.event-dialog-inner {
  position: relative;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
  padding: 1.75rem 1.6rem 1.5rem;
  max-height: min(85vh, 40rem);
  overflow-y: auto;
}
.event-dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 88%, #fff 12%);
  color: var(--fg);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--fg) 18%, transparent);
}
.event-dialog-close:hover,
.event-dialog-close:focus-visible {
  background: color-mix(in srgb, var(--fg) 14%, transparent);
  outline: none;
}
.event-dialog .program-kicker { margin-right: 2rem; }
.event-dialog h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin: 0 0 0.5rem;
  line-height: 1.15;
  padding-right: 1.5rem;
}
.event-dialog .program {
  margin-top: 0.5rem;
}

/*
 * Program schedule — milonga program style (used in dialog + classes page)
 */
.program-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.program-when {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--fg);
}
.program-price-line {
  margin: 0.65rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-dark);
}
.where { margin: 0; }

.program {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}
.program-item {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.program-item:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.program-time {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--oxblood);
  letter-spacing: 0.01em;
  line-height: 1.35;
  padding-top: 0.15rem;
}
.program-body h2,
.program-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  line-height: 1.3;
  color: var(--fg);
}
.program-body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}
.program-note {
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.92rem !important;
}
.program-foot {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
}
.program-price {
  max-width: 40rem;
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--fg);
}
.program-price strong {
  font-family: var(--font-display);
  font-weight: 600;
  margin-right: 0.35rem;
}

@media (max-width: 520px) {
  .program-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1.1rem 0;
  }
  .program-time { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .event-teaser { transition: none; }
  .event-teaser:hover { transform: none; }
}

/* Resources — shared page-header (centered); full-width tabs + content below */
body.page-resources .page-header {
  padding-bottom: 0;
}
body.page-resources .page-header .lede {
  max-width: 36rem;
}
/* Tabs span full width of content below (sidebar + cards) */
.resources-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin: 1.15rem 0 1.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  background: color-mix(in srgb, var(--bg-alt) 70%, #fff 30%);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.resources-tab {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .resources-tabs {
    border-radius: 12px;
    gap: 0.2rem;
    padding: 0.25rem;
  }
  .resources-tab {
    flex: 0 0 auto;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}
.resources-tab:hover,
.resources-tab:focus-visible {
  color: var(--fg);
  outline: none;
}
.resources-tab.is-active {
  background: #fff;
  color: var(--fg);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--fg) 12%, transparent);
}
.resources-panel {
  margin-top: 0;
}
.resources-panel[hidden] {
  display: none;
}
.resources-panel-intro {
  margin: 0 0 1.15rem;
  font-size: 1rem;
  line-height: 1.5;
  max-width: none; /* match full content width (tabs + layout below) */
  width: 100%;
}

.resources-layout {
  display: grid;
  grid-template-columns: minmax(9.5rem, 11.5rem) minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
  margin-bottom: 1rem;
}
.resources-rail {
  position: sticky;
  top: 1rem;
  padding-right: 0.25rem;
}
.resources-rail-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
.resources-rail-btns {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.resources-city-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
}
.resources-city-btn:hover,
.resources-city-btn:focus-visible {
  color: var(--fg);
  background: color-mix(in srgb, var(--bg-alt) 60%, #fff);
  outline: none;
}
.resources-city-btn.is-active {
  color: var(--teal-dark);
  background: color-mix(in srgb, var(--teal) 28%, #fff 72%);
}
.resources-region {
  margin: 0 0 2.25rem;
}
.resources-region[hidden] {
  display: none;
}
.resources-region-kicker {
  display: none; /* avoid RICHMOND, VA + Richmond + chip triple */
}
.resources-region-head h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.55rem);
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.resources-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  width: 100%;
}
/* Desktop only: lone card stays half-column for even layout */
@media (min-width: 801px) {
  .resources-card-grid > .resources-card:only-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.5rem);
  }
}
.resources-card {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--bg-alt) 50%, #fff 50%);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-left: 4px solid var(--teal);
  padding: 1rem 1.1rem 1.05rem;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.resources-card--alt {
  border-left-color: var(--gold);
}
.resources-card:hover,
.resources-card:focus-visible {
  background: color-mix(in srgb, var(--bg-alt) 30%, #fff 70%);
  border-color: color-mix(in srgb, var(--oxblood) 40%, var(--fg) 20%);
  transform: translateY(-1px);
  outline: none;
}
.resources-card-chip {
  display: none; /* section heading already names the group */
}
.resources-card--alt .resources-card-chip {
  display: none;
}

/* Communities — color by area (Richmond = blue per board feedback) */
.resources-region--richmond .resources-region-kicker,
.resources-region--richmond .resources-region-head h2 {
  color: #1e5a8c;
}
.resources-region--richmond .resources-region-head h2 {
  border-bottom-color: color-mix(in srgb, #2f6fad 55%, transparent);
}
.resources-card--area-richmond {
  border-left-color: #2f6fad;
  background: color-mix(in srgb, #2f6fad 11%, #fff 89%);
}
.resources-card--area-richmond .resources-card-chip {
  background: color-mix(in srgb, #2f6fad 28%, #fff 72%);
  color: #1e5a8c;
}
.resources-card--area-richmond .resources-card-go {
  color: #1e5a8c;
}

.resources-region--norfolk .resources-region-kicker,
.resources-region--norfolk .resources-region-head h2 {
  color: color-mix(in srgb, var(--oxblood) 75%, var(--fg) 25%);
}
.resources-region--norfolk .resources-region-head h2 {
  border-bottom-color: color-mix(in srgb, var(--oxblood) 45%, transparent);
}
.resources-card--area-norfolk {
  border-left-color: var(--oxblood);
  background: color-mix(in srgb, var(--oxblood) 10%, #fff 90%);
}
.resources-card--area-norfolk .resources-card-chip {
  background: color-mix(in srgb, var(--oxblood) 28%, #fff 72%);
  color: color-mix(in srgb, var(--oxblood) 70%, var(--fg) 30%);
}
.resources-card--area-norfolk .resources-card-go {
  color: var(--oxblood);
}

.resources-region--dc-nova .resources-region-kicker,
.resources-region--dc-nova .resources-region-head h2 {
  color: color-mix(in srgb, var(--gold-dark) 80%, var(--fg) 20%);
}
.resources-region--dc-nova .resources-region-head h2 {
  border-bottom-color: color-mix(in srgb, var(--gold) 55%, transparent);
}
.resources-card--area-dc-nova {
  border-left-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, #fff 86%);
}
.resources-card--area-dc-nova .resources-card-chip {
  background: color-mix(in srgb, var(--gold) 38%, #fff 62%);
  color: color-mix(in srgb, var(--gold-dark) 75%, var(--fg) 25%);
}
.resources-card--area-dc-nova .resources-card-go {
  color: color-mix(in srgb, var(--gold-dark) 85%, var(--fg) 15%);
}

.resources-region--durham .resources-region-kicker,
.resources-region--durham .resources-region-head h2 {
  color: var(--fg);
}
.resources-region--durham .resources-region-head h2 {
  border-bottom-color: color-mix(in srgb, var(--fg) 28%, transparent);
}
.resources-card--area-durham {
  border-left-color: var(--teal-dark);
  background: color-mix(in srgb, var(--teal-dark) 8%, #fff 92%);
}
.resources-card--area-durham .resources-card-chip {
  background: color-mix(in srgb, var(--teal-dark) 18%, #fff 82%);
  color: var(--teal-dark);
}
.resources-card--area-durham .resources-card-go {
  color: var(--teal-dark);
}

.resources-city-btn--richmond.is-active {
  background: color-mix(in srgb, var(--teal) 32%, #fff 68%);
  color: var(--teal-dark);
}
.resources-city-btn--norfolk.is-active {
  background: color-mix(in srgb, var(--oxblood) 26%, #fff 74%);
  color: color-mix(in srgb, var(--oxblood) 70%, var(--fg) 30%);
}
.resources-city-btn--dc-nova.is-active {
  background: color-mix(in srgb, var(--gold) 38%, #fff 62%);
  color: color-mix(in srgb, var(--gold-dark) 75%, var(--fg) 25%);
}
.resources-city-btn--durham.is-active {
  background: color-mix(in srgb, var(--teal-dark) 16%, #fff 84%);
  color: var(--teal-dark);
}

/* Festival-only areas (no community overlap) */
.resources-region--charlotte .resources-region-kicker,
.resources-region--charlotte .resources-region-head h2 {
  color: color-mix(in srgb, var(--oxblood) 55%, var(--teal-dark) 45%);
}
.resources-region--charlotte .resources-region-head h2 {
  border-bottom-color: color-mix(in srgb, var(--oxblood) 35%, var(--teal) 40%);
}
.resources-card--area-charlotte {
  border-left-color: color-mix(in srgb, var(--oxblood) 45%, var(--teal-dark) 55%);
  background: color-mix(in srgb, var(--oxblood) 6%, color-mix(in srgb, var(--teal) 8%, #fff 86%));
}
.resources-card--area-charlotte .resources-card-chip {
  background: color-mix(in srgb, var(--oxblood) 18%, color-mix(in srgb, var(--teal) 18%, #fff 64%));
  color: color-mix(in srgb, var(--oxblood) 40%, var(--teal-dark) 60%);
}
.resources-card--area-charlotte .resources-card-go {
  color: color-mix(in srgb, var(--oxblood) 40%, var(--teal-dark) 60%);
}

.resources-region--asheville .resources-region-kicker,
.resources-region--asheville .resources-region-head h2 {
  color: color-mix(in srgb, var(--teal) 40%, var(--teal-dark) 60%);
}
.resources-region--asheville .resources-region-head h2 {
  border-bottom-color: color-mix(in srgb, var(--teal) 50%, transparent);
}
.resources-card--area-asheville {
  border-left-color: color-mix(in srgb, var(--teal) 55%, var(--teal-dark) 45%);
  background: color-mix(in srgb, var(--teal) 16%, #fff 84%);
}
.resources-card--area-asheville .resources-card-chip {
  background: color-mix(in srgb, var(--teal) 36%, #fff 64%);
  color: var(--teal-dark);
}
.resources-card--area-asheville .resources-card-go {
  color: var(--teal-dark);
}

.resources-region--philadelphia .resources-region-kicker,
.resources-region--philadelphia .resources-region-head h2 {
  color: color-mix(in srgb, var(--gold-dark) 50%, var(--oxblood) 50%);
}
.resources-region--philadelphia .resources-region-head h2 {
  border-bottom-color: color-mix(in srgb, var(--gold) 40%, var(--oxblood) 30%);
}
.resources-card--area-philadelphia {
  border-left-color: color-mix(in srgb, var(--gold) 50%, var(--oxblood) 50%);
  background: color-mix(in srgb, var(--gold) 10%, color-mix(in srgb, var(--oxblood) 6%, #fff 84%));
}
.resources-card--area-philadelphia .resources-card-chip {
  background: color-mix(in srgb, var(--gold) 28%, color-mix(in srgb, var(--oxblood) 16%, #fff 56%));
  color: color-mix(in srgb, var(--gold-dark) 55%, var(--oxblood) 45%);
}
.resources-card--area-philadelphia .resources-card-go {
  color: color-mix(in srgb, var(--gold-dark) 55%, var(--oxblood) 45%);
}
.resources-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.resources-card-blurb {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}
.resources-card-go {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxblood);
}
/*
 * Resource colors are semantic:
 * - Communities / Festivals: by place (area--* classes)
 * - Etiquette: oxblood (social floor / tradition)
 * - Videos: teal = performances, gold = instructional
 * - Music: teal = radio/listening, gold = DJ tools
 * - Shoes: deep brown/gold (gear)
 */
.resources-card--kind-etiquette {
  border-left-color: var(--oxblood);
  background: color-mix(in srgb, var(--oxblood) 9%, #fff 91%);
}
.resources-card--kind-etiquette .resources-card-go { color: var(--oxblood); }

.resources-region--videos-performances .resources-region-head h2 {
  color: var(--teal-dark);
  border-bottom-color: color-mix(in srgb, var(--teal) 50%, transparent);
}
.resources-card--kind-performance {
  border-left-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 11%, #fff 89%);
}
.resources-card--kind-performance .resources-card-go { color: var(--teal-dark); }

.resources-region--videos-instructional .resources-region-head h2 {
  color: var(--gold-dark);
  border-bottom-color: color-mix(in srgb, var(--gold) 50%, transparent);
}
.resources-card--kind-instructional {
  border-left-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, #fff 86%);
}
.resources-card--kind-instructional .resources-card-go { color: var(--gold-dark); }

.resources-card--kind-radio {
  border-left-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 11%, #fff 89%);
}
.resources-card--kind-radio .resources-card-go { color: var(--teal-dark); }
.resources-card--kind-dj {
  border-left-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, #fff 86%);
}
.resources-card--kind-dj .resources-card-go { color: var(--gold-dark); }

.resources-card--kind-shoes {
  border-left-color: color-mix(in srgb, var(--gold-dark) 55%, var(--fg) 45%);
  background: color-mix(in srgb, var(--gold) 12%, #fff 88%);
}
.resources-card--kind-shoes .resources-card-go {
  color: color-mix(in srgb, var(--gold-dark) 70%, var(--fg) 30%);
}
.resources-empty {
  margin: 0.5rem 0 0;
}
.home-press-note {
  margin: 0.85rem 0 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 28rem;
}
.home-press-note a {
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Space between UVA press line and CTAs */
.home-c-copy .hero-actions {
  margin-top: 1.35rem;
}
/* Quiet newsletter link under primary CTAs (not competing with buttons) */
.home-newsletter-link {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--muted);
}
.home-newsletter-link a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-newsletter-link a:hover {
  color: var(--fg);
}
@media (max-width: 800px) {
  .home-c-copy .home-press-note {
    text-align: center;
    max-width: none;
  }
  .home-c-copy .home-newsletter-link {
    text-align: center;
  }
}
@media (max-width: 800px) {
  .resources-layout {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .resources-rail {
    position: static;
  }
  .resources-rail-btns {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .resources-city-btn {
    width: auto;
  }
  .resources-card-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .resources-card,
  .resources-card-grid > .resources-card:only-child {
    width: 100%;
    max-width: none;
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .resources-card { transition: none; }
  .resources-card:hover { transform: none; }
}

/* Two-col grids */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

/* Cards — shared sizing with home bottom strip */
.card {
  background: color-mix(in srgb, var(--bg-alt) 70%, #fff 30%);
  padding: 1.15rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.card h2,
.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
  line-height: 1.2;
}
.card p { font-size: 0.95rem; line-height: 1.5; }
.card-bordered {
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  padding: 1.15rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 70%, #fff 30%);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.card-bordered h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.card-bordered .meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}
.card-bordered .muted {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
  flex: 1 1 auto;
}
.cards-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 0.5rem 0 1.25rem;
  align-items: start;
}
@media (min-width: 640px) {
  .cards-2 { grid-template-columns: 1fr 1fr; }
}




/* Pricing block */
.pricing {
  padding: 1.75rem 0 0.5rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  margin-top: 0.5rem;
}
.pricing h2 {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}
.pricing p {
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Contact — equal icon tiles (same width + height) */
.contact-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.5rem 0 2.5rem;
  width: 100%;
  max-width: 56rem;
  align-items: stretch;
}
@media (min-width: 700px) {
  .contact-tiles {
    /* Four equal tiles: Email · Instagram · Facebook · Newsletter */
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .contact-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.contact-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--bg-alt) 55%, #fff 45%);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-left: 4px solid var(--oxblood);
  padding: 1.35rem 1.25rem 1.25rem;
  min-width: 0;
  box-sizing: border-box;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.contact-tile:hover,
.contact-tile:focus-visible {
  background: color-mix(in srgb, var(--bg-alt) 30%, #fff 70%);
  border-color: color-mix(in srgb, var(--oxblood) 40%, var(--fg) 15%);
  color: inherit;
  outline: none;
  transform: translateY(-2px);
}
.contact-tile-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 16%, transparent);
  color: var(--teal-dark);
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}
.contact-tile-icon .social-svg {
  width: 1.25rem;
  height: 1.25rem;
}
.contact-tile-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  white-space: nowrap;
}
.contact-tile-value {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (prefers-reduced-motion: reduce) {
  .contact-tile { transition: none; }
  .contact-tile:hover { transform: none; }
}

/* Footer — pinned to bottom via body flex */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  background: color-mix(in srgb, var(--bg-deep) 80%, var(--fg) 4%);
}
.site-footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}
.site-footer-copy p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal-dark); }
/* After the general footer rule so underline is not overridden */
.site-footer .site-footer-conduct a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: from-font;
  text-decoration-color: currentColor;
}
.site-footer .site-footer-conduct a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}
.social-icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.social-icon-link {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  color: var(--muted);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  transition: color 0.15s, background 0.15s;
}
.social-icon-link:hover,
.social-icon-link:focus-visible {
  color: var(--teal-dark);
  background: color-mix(in srgb, var(--teal) 18%, transparent);
  outline: none;
}
.social-svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
@media (min-width: 640px) {
  .site-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.9rem 1.75rem;
  }
  .site-footer-copy {
    align-items: flex-start;
    text-align: left;
  }
}

/* Conduct / legal PDFs — tabbed reader */
.conduct-header {
  padding-bottom: 1rem;
}
.conduct-shell {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}
.conduct-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.3rem;
  background: color-mix(in srgb, var(--bg-alt) 70%, #fff 30%);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: 2px;
}
.conduct-tab {
  flex: 1 1 auto;
  min-width: 8rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 1px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.conduct-tab:hover {
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
}
.conduct-tab.is-active {
  color: var(--bg);
  background: var(--oxblood);
}
.conduct-panel[hidden] { display: none !important; }
.conduct-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}
.conduct-toolbar-note {
  margin: 0;
  font-size: 0.88rem;
  flex: 1 1 12rem;
}
.conduct-download {
  flex-shrink: 0;
  min-height: 2.35rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.88rem;
}
.conduct-frame {
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  border-radius: 2px;
  background:
    linear-gradient(155deg,
      color-mix(in srgb, var(--bg) 40%, #fff 60%),
      var(--bg-alt) 55%);
  padding: 0.55rem;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--oxblood) 22%, transparent),
    0 10px 28px color-mix(in srgb, var(--fg) 10%, transparent);
}
.conduct-iframe,
.conduct-object,
.conduct-frame iframe {
  display: block;
  width: 100%;
  height: min(68vh, 44rem);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: 1px;
  background: #fff;
}
.conduct-fallback {
  margin: 1rem;
  font-size: 0.95rem;
}

.team-footer {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  text-align: center;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Inner pages */
body.page-classes main,
body.page-events main,
body.page-contact main,
body.page-conduct main {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

/* ---------- Guided chatbot widget ---------- */
.tc-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  background: var(--teal-dark);
  color: var(--bg);
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--teal-dark) 70%, transparent);
  transition: transform 0.15s, box-shadow 0.15s;
}
.tc-launcher:hover { transform: translateY(-2px) scale(1.04); }
.tc-launcher[hidden] { display: none; }
.tc-ico {
  display: block;
  width: 100%;
  height: 100%;
}
.tc-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.tc-avatar {
  overflow: hidden;
  padding: 0;
}
.tc-avatar .tc-icon-img {
  width: 100%;
  height: 100%;
}

.tc-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 61;
  width: min(370px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 32px));
  background: #fdf0dd;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: 16px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
}
.tc-chat[hidden] { display: none; }
@keyframes tc-pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.tc-chat.animate { animation: tc-pop 0.18s ease-out; }

.tc-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--teal-dark);
  color: var(--bg);
}
.tc-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--oxblood-soft);
  color: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
}
.tc-who { line-height: 1.2; }
.tc-who b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; display: block; }
.tc-status { font-size: 0.68rem; color: #b8e8e6; }
.tc-x {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--bg);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.tc-x:hover { background: rgba(255, 255, 255, 0.3); }

.tc-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.9rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  scroll-behavior: smooth;
}
.tc-msg {
  max-width: 82%;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  animation: tc-rise 0.18s ease-out;
}
.tc-msg.bot {
  align-self: flex-start;
  background: color-mix(in srgb, var(--bg-alt) 80%, #fff 20%);
  color: var(--fg);
  border-bottom-left-radius: 5px;
}
.tc-msg.user {
  align-self: flex-end;
  background: var(--teal);
  color: var(--bg);
  border-bottom-right-radius: 5px;
}
.tc-msg b { font-weight: 600; }
.tc-msg .tc-gif {
  display: block;
  max-width: min(280px, 100%);
  height: auto;
  border-radius: 10px;
  margin-top: 0.15rem;
}
.tc-msg.bot:has(.tc-map-link),
.tc-msg.bot:has(.tc-map) {
  max-width: min(320px, 92%);
  padding: 0.45rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.tc-map-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
}
.tc-map-link:hover .tc-map-cta,
.tc-map-link:focus-visible .tc-map-cta {
  background: var(--teal-dark);
  color: var(--bg);
}
.tc-map-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.tc-msg .tc-map {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border: none;
  border-radius: 8px 8px 0 0;
  background: #f5ead8;
}
.tc-map-cta {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.5rem;
  background: var(--teal);
  color: var(--bg);
  transition: background 0.15s, color 0.15s;
}
.tc-caption {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 0.15rem;
}
.tc-audio-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.15rem 0;
  min-width: min(240px, 100%);
}
.tc-audio-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.tc-audio {
  width: 100%;
  max-width: 240px;
  height: 32px;
}
@keyframes tc-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tc-typing {
  align-self: flex-start;
  background: color-mix(in srgb, var(--bg-alt) 80%, #fff 20%);
  border-radius: 14px;
  border-bottom-left-radius: 5px;
  padding: 0.7rem 0.85rem;
  display: flex;
  gap: 4px;
}
.tc-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  animation: tc-blink 1.1s infinite;
}
.tc-typing span:nth-child(2) { animation-delay: 0.2s; }
.tc-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tc-blink {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 0.9; transform: translateY(-3px); }
}

.tc-replies {
  padding: 0.4rem 0.9rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
}
.tc-reply {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  cursor: pointer;
  border-radius: 100px;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
}
.tc-reply:hover { background: var(--teal); color: var(--bg); }
.tc-reply.ghost {
  border-color: color-mix(in srgb, var(--fg) 15%, transparent);
  color: var(--muted);
}
.tc-reply.ghost:hover {
  background: var(--bg-alt);
  color: var(--fg);
  border-color: var(--muted);
}
.tc-reply.link {
  background: var(--oxblood-soft);
  border-color: var(--oxblood-soft);
  color: var(--bg);
  font-weight: 600;
}
.tc-reply.link:hover {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  .btn, .tc-launcher, .tc-x, .tc-reply { transition: none; }
  .btn:hover, .tc-launcher:hover { transform: none; }
  .tc-chat.animate { animation: none; }
  .tc-msg { animation: none; }
  .tc-typing span { animation: none; }
  .tc-log { scroll-behavior: auto; }
}
