/* =========================================================
   Kicks & Confidence Collective — Brand System
   Edit colors, fonts, and spacing here to update site-wide.
   ========================================================= */

:root {
  /* Brand colors */
  --color-bg: #f6f1e8;          /* warm off-white, matches logo */
  --color-bg-alt: #ffffff;
  --color-ink: #111111;          /* near-black */
  --color-ink-soft: #2b2b2b;
  --color-muted: #646464;           /* AA contrast on the tinted note backgrounds */
  --color-line: #e3ddd1;
  --color-gold: #b88a3a;          /* primary brand accent — matches logo; decorative + dark-bg use */
  --color-gold-soft: #d9b673;
  --color-gold-text: #8a6528;     /* darker gold for TEXT on light backgrounds (WCAG AA 4.5:1) */
  --color-red: #c42b2b;           /* high-impact CTAs only (Donate, Apply) */
  --color-red-dark: #9a1f1f;

  /* Typography */
  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Sizing */
  --container: 1200px;
  --container-narrow: 880px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;

  /* Motion */
  --transition: 200ms ease;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-ink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.005em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.italic-accent { font-style: italic; color: var(--color-gold-text); }
.italic-accent-red { font-style: italic; color: var(--color-red); }
.underline-accent-red {
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 72px 0; }
section.section-tight { padding: 56px 0; }
/* Alternate-background band between white sections; .bordered closes the
   band with a bottom rule too. Replaces repeated inline style attributes. */
.section-alt { background: var(--color-bg-alt); border-top: 1px solid var(--color-line); }
.section-alt.bordered { border-bottom: 1px solid var(--color-line); }

/* ---------- Eyebrow / pill labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}
.eyebrow.red { color: var(--color-red); }
.eyebrow.red::before { background: var(--color-red); }
/* On dark sections the LIGHT gold stays: it passes AA there, the dark text-gold would not */
.page-hero .italic-accent, .page-hero .eyebrow, .cta-banner .italic-accent, .cta-banner .eyebrow, #donate-form .eyebrow { color: var(--color-gold-soft); }
.cta-banner .eyebrow::before { background: var(--color-gold-soft); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-gold-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--color-ink); color: #fff; }
.btn-primary:hover { background: #000; color: var(--color-gold-soft); transform: translateY(-2px); }

/* Filled button for DARK surfaces (.cta-banner etc.) — the counterpart to
   btn-primary, which is invisible on dark because its fill matches the ink bg. */
.btn-light { background: var(--color-gold-soft); color: var(--color-ink); }
.btn-light:hover { background: #fff; color: var(--color-ink); transform: translateY(-2px); }

.btn-donate { background: var(--color-red); color: #fff; }
.btn-donate:hover { background: var(--color-red-dark); color: #fff; transform: translateY(-2px); }

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

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: #fff; color: var(--color-ink); }

.btn .arrow { display: inline-block; transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 56px; height: 56px; border-radius: 8px; }
.brand-text { line-height: 1.1; }
.brand-text .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--color-ink); }
.brand-text .brand-sub { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  white-space: nowrap;
}
.nav-list a:hover, .nav-list a.active { color: var(--color-gold-text); }
/* The red Donate pill keeps white text in every state (.nav-list a rules above would
   otherwise override .btn-donate with dark ink — 2.5:1, an AA failure) */
.nav-list a.btn-donate, .nav-list a.btn-donate:hover, .nav-list a.btn-donate.active { color: #fff; }
.nav-cta { margin-left: 8px; }

/* While the window is actively resizing, kill the mobile-menu transition so
   crossing the breakpoint doesn't briefly animate (flash) the dropdown. The
   open/close transition (set in the media query below) is restored once
   resizing stops. Higher specificity than the .nav-list rule it overrides. */
html.is-resizing .nav-list { transition: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: all var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Intermediate widths: tighten spacing/size so every link stays on one line
   (paired with white-space:nowrap above) all the way down to the hamburger
   breakpoint, instead of the row crowding and labels wrapping mid-word. */
@media (max-width: 1200px) {
  .site-header .header-inner { padding-left: 16px; padding-right: 16px; }
  .nav-list { gap: 16px; }
  .nav-list a { font-size: 0.9rem; }
  .nav-cta { margin-left: 4px; }
}

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 8px 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .nav-list.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-line);
  }
  .nav-cta { padding: 14px 24px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 120px 24px;
}

/* ---------- Hero slideshow ---------- */
/* Each .hero-slide is its own layer with its own bg color + shoe image.
   Background color crossfades automatically as slides fade. The solid
   background is the no-slides fallback. */
.hero-slideshow {
  background: #0a0a14;
}
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background-color: var(--slide-bg, #0a0a14);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.60)),
    var(--slide-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.4s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Hero dots — injected by main.js into .hero-slideshow */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center; /* centers the 10px dots against the 22px pause circle */
  gap: 10px;
  z-index: 2;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.55);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: width 0.35s ease, background-color 0.3s ease, border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.hero-dot:hover {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.85);
}
/* Pause/play toggle for the auto-advancing slideshow (WCAG 2.2.2).
   Icon-only circle; its accessible name is the aria-label set by main.js */
.hero-pause {
  width: 22px;
  height: 22px;
  padding: 0;
  margin-left: 6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  background: rgba(17,17,17,0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hero-pause:hover { border-color: rgba(255,255,255,0.85); background: rgba(17,17,17,0.85); }
.hero-dot.is-active {
  width: 30px;
  background: var(--color-gold);
  border-color: var(--color-gold);
}
.hero-dot:focus-visible {
  outline: 2px solid var(--color-gold-soft);
  outline-offset: 3px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.hero h1 {
  color: #fff;
  margin-top: 28px;
  margin-bottom: 28px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 680px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Page hero (smaller hero for inner pages) ---------- */
.page-hero {
  background: var(--color-ink);
  color: #fff;
  padding: 100px 24px 80px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 680px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 32px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.18);
  border-color: var(--color-red);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-muted); margin-bottom: 0; }
/* When a card ends in a CTA, give the text breathing room and pin the button to
   the card bottom so buttons line up across a row regardless of text length. */
.card p:not(:last-child),
.card ul:not(:last-child) { margin-bottom: 20px; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Stats ---------- */
.stats {
  background: var(--color-ink);
  color: #fff;
  padding: 64px 24px;
}
.stats .grid { gap: 24px; }
.stat { text-align: center; padding: 16px; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--color-red);
  line-height: 1;
}
.stat .num.gold { color: var(--color-gold-soft); }
.stat .label {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ---------- Two-column feature ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .feature-split { grid-template-columns: 1fr; gap: 32px; }
}
.feature-image {
  background: var(--color-line);
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-ink);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}
.cta-banner h2 { color: #fff; max-width: 760px; margin: 0 auto 16px; }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 600px; margin: 0 auto 32px; }
.cta-banner .hero-cta { justify-content: center; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-ink-soft);
}
.field label .req { color: var(--color-red); font-weight: 700; margin-left: 1px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  font: inherit;
  color: var(--color-ink);
  transition: border-color var(--transition);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184,138,58,0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
/* The [hidden] attribute must win over .form-grid's display:grid, so the
   form can actually be hidden after a successful submit. */
.form-grid[hidden] { display: none; }

/* Inline submit status (success / error) */
.form-status {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  line-height: 1.55;
}
.form-status[hidden] { display: none; }
.form-status.error {
  background: rgba(196, 43, 43, 0.08);
  border-left: 3px solid var(--color-red);
  color: var(--color-red-dark);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-line);
  padding: 22px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 1.1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--color-gold);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 14px; color: var(--color-muted); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery .tile {
  aspect-ratio: 1 / 1;
  background: var(--color-line);
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}
.gallery .tile:hover { transform: scale(1.02); }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--color-ink);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.quote .qmark { color: var(--color-red); font-style: italic; }
.quote-attr {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card h3 { margin-bottom: 4px; }
.team-card .role {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0a0a;
  color: #c8c8c8;
  padding: 72px 24px 32px;
}
.site-footer .footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 880px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #c8c8c8; }
.site-footer a:hover { color: var(--color-gold-soft); }
.site-footer .brand-text .brand-name { color: #fff; }
.site-footer .brand-text .brand-sub { color: #888; }
.footer-tagline {
  color: #999;
  margin-top: 18px;
  font-size: 0.95rem;
}
.footer-bottom {
  max-width: var(--container);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #888;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-header { text-align: center; max-width: 860px; margin: 0 auto 56px; }
.section-header p { color: var(--color-muted); font-size: 1.05rem; }

.placeholder-note {
  background: rgba(184,138,58,0.1);
  border-left: 3px solid var(--color-gold);
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.placeholder-note strong { color: var(--color-ink); }

/* ---------- Calendar (FullCalendar, themed to brand) ---------- */
.calendar-wrap {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(0,0,0,0.18);
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
  flex-wrap: wrap;
}
/* Reuses .eyebrow, just flush and with the red dot. */
.calendar-toolbar .eyebrow { margin-bottom: 0; }
.calendar-toolbar .eyebrow::before { background: var(--color-red); }
.calendar-body { padding: 20px; }

/* FullCalendar — map its CSS variables onto the site's brand tokens. */
#calendar {
  --fc-border-color: var(--color-line);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: var(--color-bg);
  --fc-today-bg-color: rgba(184, 138, 58, 0.10);   /* gold tint */
  --fc-event-bg-color: var(--color-gold);
  --fc-event-border-color: var(--color-gold);
  --fc-event-text-color: #fff;
  --fc-button-bg-color: var(--color-ink);
  --fc-button-border-color: var(--color-ink);
  --fc-button-text-color: #fff;
  --fc-button-hover-bg-color: var(--color-gold-text);
  --fc-button-hover-border-color: var(--color-gold-text);
  --fc-button-active-bg-color: var(--color-gold-text);
  --fc-button-active-border-color: var(--color-gold-text);
  --fc-list-event-hover-bg-color: rgba(184, 138, 58, 0.08);
  --fc-highlight-color: rgba(184, 138, 58, 0.14);
  color: var(--color-ink);
  font-family: inherit;
}
#calendar a { color: inherit; }
#calendar .fc-toolbar-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  margin: 0;
}
#calendar .fc-col-header-cell-cushion,
#calendar .fc-daygrid-day-number { color: var(--color-ink-soft); }
#calendar .fc-button {
  font-weight: 600;
  text-transform: capitalize;
  box-shadow: none;
}
#calendar .fc-button:focus,
#calendar .fc-button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  box-shadow: none;
}
#calendar .fc-event { cursor: pointer; }

/* Agenda / list view — cleaner, more on-brand rows */
#calendar .fc-list {
  border-color: var(--color-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
#calendar .fc-list-day-cushion {
  background: rgba(184, 138, 58, 0.10);   /* gold tint */
  padding: 12px 18px;
}
#calendar .fc-list-day-text,
#calendar .fc-list-day-side-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-ink);
  text-decoration: none;
}
#calendar .fc-list-event td { padding: 15px 18px; }
#calendar .fc-list-event-time {
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#calendar .fc-list-event-title { font-weight: 600; }
#calendar .fc-list-event:hover td { background: var(--fc-list-event-hover-bg-color); }
#calendar .fc-list-event-graphic .fc-list-event-dot {
  border-color: var(--color-gold);
}
#calendar .fc-list-empty {
  color: var(--color-muted);
  background: transparent;
  padding: 48px 18px;
  font-style: italic;
}

/* "N upcoming" badge in the toolbar */
.calendar-count {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(184, 138, 58, 0.12);
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.calendar-count[hidden] { display: none; }

/* ---------- Event details popup ---------- */
.cal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(2px);
}
.cal-modal-overlay[hidden] { display: none; }
.cal-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 32px 28px 28px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.5);
  animation: cal-modal-in 180ms ease;
}
@keyframes cal-modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.cal-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
}
.cal-modal-close:hover { background: var(--color-bg); color: var(--color-ink); }
.cal-modal-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin-bottom: 8px;
}
.cal-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 12px;
  padding-right: 24px;
}
.cal-modal-when {
  font-weight: 600;
  color: var(--color-ink-soft);
  margin: 0 0 6px;
}
.cal-modal-where {
  color: var(--color-muted);
  margin: 0 0 14px;
}
.cal-modal-desc {
  white-space: pre-wrap;
  color: var(--color-ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
}

@media (max-width: 720px) {
  .calendar-body { padding: 12px; }
  #calendar .fc-toolbar.fc-header-toolbar {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: center;
  }
  #calendar .fc-list-event td { padding: 13px 14px; }
  .cal-modal { padding: 28px 20px 22px; }
}
@media (max-width: 480px) {
  .calendar-body { padding: 8px; }
  .calendar-toolbar { padding: 14px 14px; }
}

/* ---------- Partner flip cards (partners.html) ---------- */
.partner-flips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  max-width: 1060px; /* fits all 3 cards on one row */
  margin: 0 auto;
}
.flip-card {
  flex: 0 1 330px;
  height: 360px;
  perspective: 1200px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Below the 3-across fit point, stack one per row (never 2 over 1) */
@media (max-width: 1099px) {
  .partner-flips { flex-direction: column; align-items: center; }
  .flip-card { width: 330px; flex-basis: auto; }
}
.flip-card:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 600ms cubic-bezier(0.4, 0.15, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
/* The hidden face is also visibility:hidden (so its link/button leave the tab
   order); the 0.2s delay swaps faces mid-rotation, keeping the flip smooth */
.flip-face { transition: visibility 0s linear 0.2s; }
.flip-back { visibility: hidden; }
.flip-card.is-flipped .flip-back { visibility: visible; }
.flip-card.is-flipped .flip-front { visibility: hidden; }
.flip-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 26px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.flip-front img { max-width: 80%; max-height: 175px; object-fit: contain; }
.flip-front img.logo-wide { max-width: 100%; max-height: 140px; }
.flip-hint {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  /* it's a real <button> now (the card's keyboard control) — strip button chrome */
  background: none;
  border: 0;
  font-family: inherit;
  padding: 8px 0;
  cursor: pointer;
}
.flip-hint:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
.flip-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  text-align: center;
}
.flip-back h3 { margin: 0 0 10px; }
.flip-back p { margin: 0 0 10px; font-size: 0.9rem; line-height: 1.55; color: var(--color-ink-soft); }
.flip-back .flip-tagline { font-style: italic; color: var(--color-muted); }
.flip-back a {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--color-red);
}
.flip-back a:hover { color: var(--color-red-dark); }
.flip-back a .arrow { display: inline-block; transition: transform var(--transition); }
.flip-back a:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
  .flip-face { transition: none; }
}

/* BeTa fills its tile; the "tap" hint sits in a white strip beneath the logo */
.flip-front-fill {
  padding: 10px 10px 0;
  justify-content: flex-start;
}
.flip-front-fill img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}
.flip-front-fill .flip-hint {
  position: static;
  flex: 0 0 auto;
  padding: 10px 0 14px;
}
