/*
Theme Name: Lexington Blueberry Festival
Theme URI: https://www.rayrusselldesign.com
Description: Official theme for the Lexington Blueberry Festival. Version 19.0 — Full inline editor with right-click style controls, pill box editor, section background editor, particles system, responsive mobile nav, and complete festival page suite.
Version: 19.1
Author: Ray Russell Design
Author URI: https://www.rayrusselldesign.com
Text Domain: lbf-theme
*/

:root {
  --header-h: 106px;
  --blue:      #0037a7;
  --blue-dark: #002580;
  --gold:      #f3c303;
  --gold-dark: #c9a000;
  --green:     #007f00;
  --white:     #ffffff;
  --bg:        #f8faff;
  --bg2:       #eef2fc;
  --text:      #0e1525;
  --text-2:    #374151;
  --text-3:    #6b7280;
  --border:    #c8d6f5;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,55,167,0.10);

  /* ── Blueprint §11.1: Spacing tiers ── */
  --space-xl:  6rem;
  --space-std: 4rem;
  --space-sm:  2rem;

  /* ── Blueprint §11.1: Gradient palette ── */
  --grad-blue:    linear-gradient(135deg, #001a6e 0%, #0037a7 60%, #1a4fc4 100%);
  --grad-night:   linear-gradient(135deg, #000820 0%, #001a5e 35%, #003399 100%);
  --grad-pageant: linear-gradient(135deg, #1a0050 0%, #3b0080 40%, #0037a7 100%);
  --grad-teal:    linear-gradient(135deg, #001a6e 0%, #0037a7 50%, #0e7490 100%);
  --grad-navy:    linear-gradient(135deg, #000820 0%, #001050 60%, #000820 100%);
}

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

html { scroll-padding-top: var(--header-h);
 scroll-behavior: smooth; }

body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 1rem; left: 1rem;
  width: auto; height: auto;
  padding: .75rem 1.5rem;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  z-index: 99999;
  clip: auto;
  white-space: normal;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-blue   { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-gold   { background: var(--gold); color: var(--text); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-green  { background: var(--green); color: #fff; border-color: var(--green); }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-white:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- TAGS ---- */
.tag {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.tag-blue   { background: #e8eefb; color: var(--blue); }
.tag-gold   { background: #fdf5cc; color: var(--gold-dark); }
.tag-green  { background: #e6f4e6; color: var(--green); }
.tag-purple { background: #f0e8fb; color: #6d28d9; }

/* ---- SECTION HELPERS ---- */
/* Legacy fallback — keeps old markup working while new tiers roll out */
.section { padding: 2.5rem 0 5rem; }
.section-alt { background: var(--bg); }

/* ── Blueprint §11.2: Spacing Tier Classes ── */
.sec-xl    { padding: var(--space-xl) 0 calc(var(--space-xl) + 1rem); }
.sec-std   { padding: var(--space-std) 0 var(--space-std); }
.sec-sm    { padding: var(--space-sm) 0 var(--space-sm); }
.sec-flush { padding: 0; }

/* ── Blueprint §2: Container Variants ── */
.container-narrow { max-width: 720px;  margin: 0 auto; padding: 0 1.5rem; }
.container-wide   { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Blueprint §11.3: Post-Hero Lift Connector ── */
.post-hero-first {
  margin-top: -3rem;
  padding-top: 5rem;
  background: var(--white) !important;
  border-radius: 32px 32px 0 0 !important;
  position: relative;
  z-index: 2;
}

/* ── Blueprint §11.4: CTA Band Gradient Variants ── */
.sp-cta-band--blue    { background: var(--grad-blue); }
.sp-cta-band--night   { background: var(--grad-night); }
.sp-cta-band--pageant { background: var(--grad-pageant); }
.sp-cta-band--teal    { background: var(--grad-teal); }
.sp-cta-band--navy    { background: var(--grad-navy); }

/* ── Blueprint §11.5: Schedule Row Alternation ── */
.sp-sched-list .sp-sched-row:nth-child(even) { background: var(--bg); }
.sp-sched-row--featured { border-left: 3px solid var(--gold); }

/* ── Blueprint §11.6: Sponsor Logo Container ── */
.sponsor-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px; height: 90px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: box-shadow .2s;
}
.sponsor-logo-wrap:hover { box-shadow: var(--shadow); }
.sponsor-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── Blueprint §11.7: Slim Hero ── */
.sp-pg-hero--slim {
  padding: 6rem 1.5rem 3.5rem;
  min-height: 280px;
}
.sp-pg-hero--slim .sp-pg-hero__stats { display: none; }

/* ── Blueprint §11.8: Breadcrumb / Context Strip ── */
.ctx-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 48px;
  display: flex;
  align-items: center;
}
.ctx-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.ctx-strip__crumb { font-size: .82rem; color: var(--text-3); }
.ctx-strip__crumb a { color: var(--blue); }
.ctx-strip__action { font-size: .82rem; color: var(--blue); font-weight: 600; }

/* ── Blueprint §5.1: Same-background connector ── */
.sec-connector { border-top: 1px solid var(--border); }

/* ── Blueprint §4: Section header .sec-hd gap fix ── */
.sec-hd { text-align: center; margin-bottom: 2rem; }

/* ── Blueprint §9.1: Card elevation system ── */
.card-elevated {
  box-shadow: 0 4px 24px rgba(0,55,167,0.10);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card-elevated:hover {
  box-shadow: 0 12px 40px rgba(0,55,167,0.14);
  transform: translateY(-4px);
  border-color: transparent;
}

/* ── Blueprint §8: CTA Band base layout ── */
.sp-cta-band { padding: var(--space-sm) 0; }
.sp-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.sp-cta-band__text h2 { color: #fff; }
.sp-cta-band__text p  { color: rgba(255,255,255,.8); margin-top: .5rem; }
.sp-cta-band__btns    { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 767px) {
  .sp-cta-band__inner { flex-direction: column; text-align: center; }
  .sp-cta-band__btns  { justify-content: center; }
}

/* ── Blueprint §13.1: Transparent header on hero pages ── */
#site-header.header-transparent {
  background: transparent;
  box-shadow: none;
}
#site-header.header-transparent .nav-menu a,
#site-header.header-transparent .site-logo-text strong,
#site-header.header-transparent .site-logo-text span { color: #fff; }
#site-header.header-transparent .nav-cta {
  background: var(--gold) !important;
  color: var(--text) !important;
}

/* ── Blueprint §6.1: Hero gradient variants ── */
.sp-pg-hero--night   { background: var(--grad-night); }
.sp-pg-hero--pageant { background: var(--grad-pageant); }

.sec-hd { text-align: center; margin-bottom: 1.5rem; }
.sec-tag {
  display: inline-block;
  padding: .3rem 1rem;
  background: rgba(0,55,167,.08);
  color: var(--blue);
  border-radius: 20px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .75rem;
}
.sec-tag.light { background: rgba(255,255,255,.15); color: #fff; }
.sec-h {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  color: var(--text); margin-bottom: .375rem;
}
.sec-h span { color: var(--blue); }
.sec-h.on-dark { color: #fff; }
.sec-h.on-dark span { color: var(--gold); }
.sec-p { color: var(--text-3); font-size: 1.05rem; max-width: 600px; margin: 0 auto .375rem; }
.sec-p.on-dark { color: rgba(255,255,255,.8); }
.sec-extra { color: var(--text-2); font-size: 1rem; max-width: 600px; margin: .5rem auto 0; text-align: center; }
.sec-extra.on-dark { color: rgba(255,255,255,.75); }

/* ---- HEADER ---- */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,37,167,.12);
  transition: background .3s, box-shadow .3s;
}
#site-header .nav-menu a,
#site-header .site-logo-text strong,
#site-header .site-logo-text span { color: var(--text); transition: color .3s; }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}

.site-branding {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; flex-shrink: 0;
}
/* Custom logo: constrain to header height */
.site-branding .custom-logo-link { display: flex; align-items: center; }
.site-branding .custom-logo { max-height: 75px; width: auto; display: block; }
.site-logo-mark { font-size: 2rem; line-height: 1; }
.site-logo-text strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 900; text-transform: uppercase;
  color: var(--blue); letter-spacing: .05em;
}
.site-logo-text span { display: block; font-size: .7rem; color: var(--gold-dark); }

.menu-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.menu-toggle .bar {
  display: block; height: 2px; background: var(--blue); border-radius: 2px;
  transition: all .3s;
}

#primary-navigation {
  display: flex; align-items: center; gap: .25rem;
  margin-left: auto;
}
.nav-menu {
  display: flex; align-items: center; gap: .25rem;
  list-style: none;
}
.nav-menu li a {
  display: block; padding: .5rem .75rem;
  color: var(--gray);
  font-size: .9rem; font-weight: 600;
  border-radius: 6px;
  transition: all .2s;
  text-decoration: none;
}
.nav-menu li a:hover, .nav-menu li a[aria-current="page"] {
  color: var(--blue); background: rgba(0,55,167,.07);
}
.nav-cta {
  margin-left: .5rem;
  padding: .5rem 1.1rem !important;
  background: var(--gold) !important;
  color: var(--text) !important;
  border-radius: 7px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold-dark) !important; }

/* ---- HERO ---- */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #001a6e 0%, var(--blue) 40%, #1a4fc4 70%, #0e3a9e 100%);
  display: flex; align-items: center;
  padding: 8rem 1.5rem 6rem;
  position: relative; 
}
/* v13 overrides — must come right after to win the cascade */
.hero-section.hero-v13 {
  align-items: flex-start !important;
  padding: 0 0 4rem !important;
}
/* Spacer div pushes pill content below the fixed header — immune to cascade */
.v13-header-spacer {
  display: block;
  height: calc(var(--header-h) + 2.5rem);
  width: 100%;
  pointer-events: none;
  flex-shrink: 0;
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 2; pointer-events: none;
}
.hero-glow {
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243,195,3,.12) 0%, transparent 70%);
  z-index: 2; pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  position: relative; z-index: 3;
}
.hero-left { display: flex; flex-direction: column; }
.hero-right { display: flex; align-items: center; justify-content: center; }
.hero-right-img-wrap {
  /* width, max-width, aspect-ratio, margin-top, border-radius, border,
     box-shadow, background all set via inline style from Customizer */
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.hero-right-img {
  width: 100%; height: 100%;
  display: block;
  /* object-fit and object-position set via inline style */
}
.hero-right-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  border-radius: inherit;
}
.hero-right-placeholder {
  /* width, max-width, border-radius, border, background set via inline style */
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; color: rgba(255,255,255,.4); text-align: center;
  flex-shrink: 0;
}
.hero-right-placeholder-icon { font-size: 3rem; }
.hero-right-placeholder p { font-size: .85rem; line-height: 1.5; }
.hero-right-placeholder strong { color: rgba(255,255,255,.65); }
.hero-chip {
  display: inline-block;
  padding: .35rem 1rem;
  background: rgba(243,195,3,.15);
  border: 1px solid rgba(243,195,3,.3);
  border-radius: 20px;
  color: var(--gold);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900; text-transform: uppercase;
  line-height: .95; letter-spacing: -.02em;
  color: #fff; margin-bottom: 1.25rem;
}
.hero-title .gold { color: var(--gold); }
.hero-sub { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 500px; margin-bottom: 1.5rem; }
.hero-date-pill {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .5rem 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; color: rgba(255,255,255,.9);
  font-size: .9rem; margin-bottom: 2rem;
}
.hero-date-pill .sep {
  width: 1px; height: 16px; background: rgba(255,255,255,.3);
}
.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Compact inline countdown — sits below date pill in left column */
.hero-cd-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem 1.1rem;
  border: 1px solid transparent; /* overridden by inline style */
  width: 100%;
  box-sizing: border-box;
}
.hero-cd-label {
  font-size: .83rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  flex-shrink: 0; text-align: center;
}
.hero-cd-boxes {
  display: flex; align-items: center; gap: .35rem;
}
.hero-cd-box {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(0,0,0,.25); border-radius: 7px; /* overridden by inline */
  padding: .46rem .63rem; min-width: 51px;
}
.hero-cd-n {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.55rem; font-weight: 900; color: #fff; line-height: 1; /* +15% from 1.35rem */
}
.hero-cd-l {
  font-size: .6rem; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .06em; margin-top: .15rem;
}
.hero-cd-sep {
  font-size: 1.27rem; font-weight: 900; color: rgba(255,255,255,.4); /* +15% from 1.1rem */
  line-height: 1; padding-bottom: .9rem;
}

/* ---- STATS ---- */
.stats-strip { background: var(--blue); padding: 2.5rem 0; }
.stats-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem;
}
.stat-cell { text-align: center; }
.stat-n {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem; font-weight: 900; color: var(--gold);
  line-height: 1;
}
.stat-l { font-size: .85rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; margin-top: .25rem; }

/* ---- ATTRACTIONS ---- */
.attr-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(166px,1fr)); gap: 1rem;
  align-items: start;
}
.attr-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden; transition: all .2s;
  box-shadow: var(--shadow);
}
.attr-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,55,167,.15); }
.attr-img {
  height: 120px; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; overflow: hidden;
}
.attr-img img { width: 100%; height: 100%; object-fit: cover; }
.attr-body { padding: 0.9rem; }
.attr-body h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; font-weight: 800; text-transform: uppercase; margin-bottom: .3rem; }
.attr-body p { font-size: .78rem; color: var(--text-3); margin-bottom: .5rem; }

/* ---- SCHEDULE ---- */
.day-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.day-tab {
  padding: .75rem 1.75rem;
  background: var(--bg2); border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.1rem; text-transform: uppercase;
  cursor: pointer; transition: all .2s; color: var(--text-2);
}
.day-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.sched-panel { display: none; }
.sched-panel.active { display: block; }
.sched-list { display: flex; flex-direction: column; gap: .56rem; }
.sched-row {
  display: grid; grid-template-columns: 75px 1fr auto;
  align-items: center; gap: .75rem;
  background: #fff; border-radius: 8px;
  border: 1px solid var(--border);
  padding: .75rem .95rem;
}
.sched-time { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: .72rem; color: var(--blue); display: flex; flex-direction: column; align-items: center; gap: .15rem; text-align: center; }
.sched-icon { font-size: 1.05rem; line-height: 1; }
.sched-info h4 { font-size: .75rem; font-weight: 700; margin-bottom: .18rem; }
.sched-info p { font-size: .64rem; color: var(--text-3); margin: 0; }
.sched-loc { display: flex; align-items: center; gap: .3rem; }
.sched-map-link { color: var(--blue); text-decoration: none; font-weight: 600; }
.sched-map-link:hover { text-decoration: underline; }
.sched-cat-badge { display: inline-block; padding: .2rem .65rem; border-radius: 20px; font-size: .75rem; font-weight: 700; border: 1px solid; white-space: nowrap; }

/* ---- PAGEANT ---- */
.pageant-section {
  background: linear-gradient(135deg, #001a6e 0%, var(--blue) 60%, #1a4fc4 100%);
  position: relative;
}
.pageant-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cat-grid { display: flex; flex-wrap: wrap; gap: .9rem; margin: 0 auto 1.75rem; justify-content: center; align-items: stretch; width: 100%; max-width: 900px; }
.cat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px; padding: 1.25rem 1rem; text-align: center;
  width: 130px; flex-shrink: 0;
}
.cat-icon { font-size: 2rem; margin-bottom: .5rem; }
.cat-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: .98rem; text-transform: uppercase; color: #fff; margin-bottom: .25rem; }
.cat-age { font-size: .8rem; color: var(--gold); font-weight: 600; }

/* ---- FORMS GRID ---- */
/* 8 cards: 4x2 on wide, 3 col medium, 2 col narrow, 1 col mobile */
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 1199px) { .form-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (max-width: 860px)  { .form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .form-grid { grid-template-columns: 1fr; } }
.form-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.form-icon { font-size: 1.3rem; margin-bottom: .35rem; }
.form-card h3 { font-family: 'Barlow Condensed', sans-serif; font-size: .9rem; font-weight: 800; text-transform: uppercase; margin-bottom: .3rem; }
.form-card p { font-size: .72rem; color: var(--text-3); margin-bottom: .5rem; }
.feat-list { list-style: none; margin-bottom: 1rem; }
.feat-list li { font-size: .78rem; color: var(--text-2); padding: .2rem 0; padding-left: 1rem; position: relative; }
.feat-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---- SPONSORS ---- */
.tier-row { margin-bottom: 2.5rem; width: 100%; }
.tier-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.tier-label {
  white-space: nowrap;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 20px;
}
.tp { background: #e8eefb; color: var(--blue); }
.tg { background: #fdf5cc; color: var(--gold-dark); }
.ts { background: #f0f0f0; color: #555; }
.tb { background: #fbe9e0; color: #b45309; }
.tf { background: #f0fdf4; color: #166534; }
.tier-div { flex: 1; height: 1px; background: var(--border); }
.sponsor-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }
.sp {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  font-weight: 700; color: var(--text-3);
}
.sp-xxl { width: 340px; height: 160px; font-size: 1.2rem; }
.sp-xl { width: 240px; height: 110px; font-size: 1.1rem; }
.sp-lg { width: 180px; height: 80px;  font-size: 1rem; }
.sp-md { width: 140px; height: 65px;  font-size: .9rem; }
.sp-sm { width: 110px; height: 50px;  font-size: .8rem; }
.sp-xs { width:  85px; height: 40px;  font-size: .75rem; }
.sp img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.sp-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  background: var(--bg2); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.5rem 2rem;
  margin-top: 1rem;
}
.sp-cta h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; font-weight: 800; text-transform: uppercase; }
.sp-cta p { font-size: .9rem; color: var(--text-3); }

/* ---- DONATE ---- */
.donate-section {
  background: linear-gradient(135deg, #001a6e 0%, #0037a7 50%, #1a4fc4 100%);
  position: relative;
}
.donate-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; position: relative; z-index: 1; }
.imp-list { list-style: none; margin: .75rem 0; display: flex; flex-direction: column; gap: .55rem; }
.imp-item { display: flex; align-items: flex-start; gap: .6rem; }
.imp-icon { font-size: 1.375rem; flex-shrink: 0; }
.imp-h4 { font-weight: 700; color: #fff; font-size: .975rem; }
.imp-p { font-size: .875rem; color: rgba(255,255,255,.65); margin-top: .08rem; }
.donate-card {
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 1.1rem;
}
.donate-card-h { font-family: 'Barlow Condensed', sans-serif; font-size: .9rem; font-weight: 800; text-transform: uppercase; color: #fff; margin-bottom: .5rem; }
.notice { background: rgba(255,255,255,.08); border-radius: 8px; padding: .75rem 1rem; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.amt-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; margin-bottom: 1rem; }
.amt-btn {
  padding: .45rem .35rem; border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  border-radius: 8px; color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.amt-btn.active, .amt-btn:hover { background: var(--gold); color: var(--text); border-color: var(--gold); }
.cin {
  width: 100%; padding: .45rem .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; color: #fff; font-size: .8rem;
  margin-bottom: .5rem;
}
.cin::placeholder { color: rgba(255,255,255,.4); }
.recur-row { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 1rem; cursor: pointer; }
.pay-row { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.pay-chip { padding: .2rem .6rem; background: rgba(255,255,255,.1); border-radius: 4px; font-size: .75rem; color: rgba(255,255,255,.6); }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.info-card { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; background: var(--bg2); border-radius: 10px; border: 1px solid var(--border); }
.info-icon { font-size: 1.4rem; flex-shrink: 0; }
.info-text h3 { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.info-text p { font-size: .85rem; color: var(--text-3); }
.info-text a { color: var(--blue); }
.map-box {
  height: 220px; border-radius: 12px; overflow: hidden;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; color: var(--text-3); font-size: .9rem;
}
.map-box iframe { width: 100%; height: 100%; border: none; }
.contact-custom-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.contact-custom-box__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: var(--blue);
  margin: 0 0 .5rem;
}
.contact-custom-box__body {
  font-size: .95rem; color: var(--text-2); line-height: 1.65;
}
.cf { background: var(--bg2); border-radius: var(--radius); border: 1px solid var(--border); padding: 1rem; max-width:75%; margin-left:auto; margin-right:auto; }
.cf h3 { font-family: 'Barlow Condensed', sans-serif; font-size: .95rem; font-weight: 800; text-transform: uppercase; margin-bottom: .6rem; }


/* ---- CONTACT SOCIAL CARD ---- */
.contact-social-links { display: flex; flex-direction: column; gap: .45rem; margin-top: .3rem; }
.contact-social-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; color: var(--blue);
  text-decoration: none; transition: color .2s;
}
.contact-social-link:hover { color: var(--text); text-decoration: underline; }
.contact-social-link--fb { color: #1877f2; }
.contact-social-link--fb:hover { color: #1055a8; }
.contact-social-link--ig { color: #e1306c; }
.contact-social-link--ig:hover { color: #a31049; }
.contact-social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 5px;
  background: currentColor; color: #fff !important;
  font-size: .7rem; font-weight: 900; font-style: normal; flex-shrink: 0;
}
.contact-social-link--fb .contact-social-icon { background: #1877f2; color: #fff !important; }
.contact-social-link--ig .contact-social-icon { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff !important; }

/* Shrink GF inputs in .cf for 20% less height */
.cf .gform_wrapper input[type="text"],
.cf .gform_wrapper input[type="email"],
.cf .gform_wrapper input[type="tel"],
.cf .gform_wrapper textarea,
.cf .gform_wrapper select { font-size: .82rem !important; padding: .45rem .65rem !important; }
.cf .gform_wrapper textarea { min-height: 90px !important; }
.cf .gform_wrapper .gfield { margin-bottom: .5rem !important; }
.cf .gform_wrapper .gfield_label { font-size: .78rem !important; }
.cf .gform_wrapper input[type="submit"],
.cf .gform_wrapper button[type="submit"] { padding: .5rem 1.25rem !important; font-size: .82rem !important; }

/* Tight GF inputs in .donate-card--gf — 25% less spacing */
.donate-card--gf .gfield { margin-bottom: .34rem !important; }
.donate-card--gf .gform_fields { gap: 0 !important; }
.donate-card--gf .gfield_label { font-size: .78rem !important; }
.donate-card--gf input[type="text"],
.donate-card--gf input[type="email"],
.donate-card--gf input[type="number"],
.donate-card--gf input[type="tel"],
.donate-card--gf select,
.donate-card--gf textarea { padding: .4rem .65rem !important; font-size: .82rem !important; }
.donate-card--gf textarea { min-height: 70px !important; }
.donate-card--gf .gform_footer input[type="submit"],
.donate-card--gf input[type="submit"] { padding: .5rem 1.1rem !important; font-size: .82rem !important; }

/* ---- NEWSLETTER ---- */
.nl-section { background: var(--blue); padding: 3rem 0; text-align: center; }
.nl-section h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 900; text-transform: uppercase; color: #fff; margin-bottom: .5rem; }
.nl-section p { color: rgba(255,255,255,.75); margin-bottom: 1.25rem; }
.nl-form { display: flex; gap: .5rem; max-width: 440px; margin: 0 auto 1rem; flex-wrap: wrap; justify-content: center; }
.nl-form input {
  flex: 1; min-width: 200px; padding: .65rem 1rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; color: #fff; font-size: 1rem;
}
.nl-form input::placeholder { color: rgba(255,255,255,.5); }
.nl-note { font-size: .8rem; color: rgba(255,255,255,.5); }

/* Gravity Forms inside .nl-section — make inputs readable on blue bg */
.nl-section .gform_wrapper { max-width: 500px; margin: 0 auto; }
.nl-section .gform_wrapper .gfield { margin-bottom: .75rem; }
.nl-section .gform_wrapper label,
.nl-section .gform_wrapper .gfield_label {
  color: rgba(255,255,255,.95) !important;
  font-size: .9rem !important; font-weight: 600 !important;
}
.nl-section .gform_wrapper input[type="email"],
.nl-section .gform_wrapper input[type="text"],
.nl-section .gform_wrapper input[type="tel"] {
  background: rgba(255,255,255,.12) !important;
  border: 1.5px solid rgba(255,255,255,.4) !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-size: 1rem !important;
  padding: .65rem 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.nl-section .gform_wrapper input[type="email"]::placeholder,
.nl-section .gform_wrapper input[type="text"]::placeholder {
  color: rgba(255,255,255,.55) !important;
}
.nl-section .gform_wrapper input[type="email"]:focus,
.nl-section .gform_wrapper input[type="text"]:focus {
  border-color: rgba(255,255,255,.75) !important;
  outline: none !important;
  background: rgba(255,255,255,.18) !important;
}
.nl-section .gform_wrapper .gform_footer input[type="submit"],
.nl-section .gform_wrapper .gform_footer button {
  background: var(--gold) !important; color: #1a0f00 !important;
  border: none !important; border-radius: 8px !important;
  padding: .65rem 1.75rem !important; font-weight: 700 !important;
  font-size: 1rem !important; cursor: pointer !important;
  width: 100% !important;
}
.nl-section .gform_wrapper .gform_footer input[type="submit"]:hover { opacity: .9 !important; }
.nl-section .gform_wrapper .validation_message,
.nl-section .gform_wrapper .gfield_description {
  color: rgba(255,255,255,.75) !important; font-size: .8rem !important;
}
.nl-section .gform_wrapper .gfield_required { color: #f3c303 !important; }
.nl-section .gform_wrapper .gform_confirmation_message { color: #fff !important; }
.footer-rule { height: 4px; background: linear-gradient(90deg, var(--blue), var(--gold), var(--green)); }

/* ---- FOOTER ---- */
#site-footer { color: rgba(255,255,255,.75); padding: 3rem 0 0; }
/* background, text colors and sizes are set by the inline <style> block output by footer.php */

/* Blueprint §13.2 — 4-column grid: brand + Pages + Get Involved + Info */
.footer-top {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand .fb-name {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; text-transform: uppercase;
  margin-bottom: .4rem;
}
.fb-mark { font-size: 1.5rem; }
.fb-date { margin-bottom: .75rem; }
.fb-sub  { line-height: 1.6; margin-bottom: .5rem; }
.socials { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.soc {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%; color: rgba(255,255,255,.7);
  font-size: .9rem; font-weight: 700;
  text-decoration: none; transition: all .2s;
}
.soc:hover { background: var(--gold); color: var(--text); text-decoration: none; }
.fc h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .9rem;
  padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.fc ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.fc ul a { text-decoration: none; transition: color .2s; }

/* Blueprint §13.2 — Baseline strip: darkest bg (#0e1525), copyright, legal, blueberry emoji */
.footer-bot {
  background: var(--text); /* #0e1525 — the darkest anchor */
  max-width: none;
  padding: 0 1.5rem;
  height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
}
.footer-bot p { margin: 0; }
.fb-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.fb-links a { text-decoration: none; }
.footer-emoji { font-size: 1.1rem; line-height: 1; }

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, #001a6e 0%, var(--blue) 100%);
  padding: 7rem 1.5rem 3rem; text-align: center;
}
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; text-transform: uppercase;
  color: #fff;
}
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: .75rem; }
.breadcrumb a { color: rgba(255,255,255,.6); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-left  { order: 1; }   /* text + countdown first */
  .hero-right { order: 2; }   /* image below on mobile */
  .hero-right-img-wrap { max-width: 100% !important; margin-top: 0 !important; }
  .hero-right-placeholder { max-width: 100% !important; aspect-ratio: 16/9; margin-top: 0 !important; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .menu-toggle { display: flex; }

  /* Floating dropdown nav card */
  #primary-navigation {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: 1rem;
    left: 1rem;
    z-index: 999;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,37,167,.18), 0 2px 8px rgba(0,0,0,.08);
    border: 1px solid #e5eaf5;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem .75rem 1.25rem;
    gap: 0;
    overflow: hidden;
    transform-origin: top right;
    transform: scale(.95) translateY(-8px);
    opacity: 0;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), opacity .18s ease;
  }
  #primary-navigation.open {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  /* Nav items */
  .nav-menu { flex-direction: column; align-items: stretch; width: 100%; gap: 2px; }
  .nav-menu li { width: 100%; }
  .nav-menu li a {
    font-size: 1rem; padding: .7rem 1rem;
    border-radius: 10px;
    display: block;
  }
  .nav-cta {
    margin: .5rem 0 0 !important;
    width: 100%; text-align: center;
    border-radius: 10px !important;
    padding: .75rem 1rem !important;
  }

  /* Hamburger → X animation */
  .menu-toggle .bar { transition: transform .25s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Backdrop — tap outside to close */
  body.nav-open::after {
    content: '';
    position: fixed; inset: 0;
    z-index: 998;
  }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .sched-row { grid-template-columns: 90px 1fr; }
  .sched-cat { display: none; }
  .info-cards { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-cd-inline { align-items: center; }
}

/* ---- HERO RIGHT COLUMN (slideshow + card stacked) ---- */
.hero-right-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* ---- HERO SLIDESHOW ---- */
.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.3);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  flex-shrink: 0;
}

.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform 1.2s cubic-bezier(.4,0,.2,1);
  transform: scale(1.04);
}
.hs-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.hs-slide.leaving {
  opacity: 0;
  transform: scale(.97);
  z-index: 1;
}

.hs-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hs-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,20,80,.6), rgba(0,55,167,.4));
  border: 2px dashed rgba(255,255,255,.2);
  border-radius: 14px;
  gap: .6rem;
}
.hs-ph-icon { font-size: 2.5rem; opacity: .5; }
.hs-ph-txt { font-size: .8rem; color: rgba(255,255,255,.45); text-align: center; line-height: 1.5; }

.hs-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.75) 0%,
    rgba(0,0,0,.2)  50%,
    rgba(0,0,0,.05) 100%
  );
  z-index: 3;
}

.hs-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem 1.1rem;
  z-index: 4;
  transform: translateY(6px);
  transition: transform .5s .3s ease, opacity .5s .3s ease;
  opacity: 0;
}
.hs-slide.active .hs-caption {
  transform: translateY(0);
  opacity: 1;
}
.hs-cap-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  color: #fff; line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.hs-cap-sub {
  font-size: .8rem; color: rgba(255,255,255,.75);
  margin-top: .2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* Arrows */
.hs-arrow {
  position: absolute; top: 50%; z-index: 5;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff; font-size: 1.3rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  padding: 0;
}
.hs-arrow:hover { background: rgba(0,55,167,.8); border-color: rgba(255,255,255,.5); }
.hs-prev { left: .75rem; }
.hs-next { right: .75rem; }

/* Dots */
.hs-dots {
  position: absolute; bottom: 2.8rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.hs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer; padding: 0;
  transition: all .3s;
}
.hs-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 4px;
}

/* Progress bar */
.hs-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,.12); z-index: 5;
}
.hs-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #fff);
  width: 0%;
  transition: width linear;
}

/* ---- HERO IMAGE GRID (up to 4 images in 2x2 grid) ---- */
.hero-img-grid {
  display: grid;
  gap: .5rem;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}
/* 1 image: full width */
.hero-img-grid.hero-img-count-1 {
  grid-template-columns: 1fr;
}
/* 2 images: side by side */
.hero-img-grid.hero-img-count-2 {
  grid-template-columns: 1fr 1fr;
}
/* 3 images: first spans full top, two below */
.hero-img-grid.hero-img-count-3 {
  grid-template-columns: 1fr 1fr;
}
.hero-img-grid.hero-img-count-3 .hero-img-cell:first-child {
  grid-column: 1 / -1;
}
/* 4 images: standard 2x2 */
.hero-img-grid.hero-img-count-4 {
  grid-template-columns: 1fr 1fr;
}
.hero-img-cell {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hero-img-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.hero-img-cell img:hover { transform: scale(1.04); }
@media (max-width: 767px) {
  .hero-img-grid { grid-template-columns: 1fr 1fr; }
  .hero-img-cell { aspect-ratio: 1/1; }
}

/* ---- HERO LOGO IMAGE (replaces title text when set) ---- */
.hero-logo-wrap {
  margin-bottom: 1.5rem;
}
.hero-logo-img {
  max-width: 340px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.35));
}
@media (max-width: 767px) {
  .hero-logo-img { max-width: 260px; }
}

/* ---- HERO VIDEO/IMAGE BACKGROUND ---- */
.hero-bg-media { position:absolute;inset:0;z-index:0;overflow:hidden; }
.hero-bg-vid { position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-width:100%;min-height:100%;width:auto;height:auto;object-fit:cover; }
.hero-bg-yt { position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:177.78vh;height:100%;min-width:100%;border:none;pointer-events:none; }
.hero-bg-overlay { position:absolute;inset:0;background:#000; }
.hero-bg-video .hero-inner { position:relative;z-index:2; }
.hero-bg-video .hero-dots,.hero-bg-video .hero-glow { z-index:1; }

/* ---- COUNTDOWN MEDIA BLOCK ---- */
.cd-media { margin-top:.75rem; }
.cd-photo-group,.cd-gallery { display:grid;gap:.35rem;border-radius:10px;overflow:hidden;grid-template-columns:1fr 1fr; }
.cd-photo-group.cd-photos-1,.cd-gallery.cd-photos-1 { grid-template-columns:1fr; }
.cd-photo-group img { width:100%;height:90px;object-fit:cover;display:block; }
.cd-photo-group.cd-photos-1 img { height:140px; }
.cd-gallery-thumb { position:relative;padding:0;border:none;cursor:pointer;background:none;overflow:hidden;display:block; }
.cd-gallery-thumb img { width:100%;height:90px;object-fit:cover;display:block;transition:transform .25s; }
.cd-gallery-thumb:hover img { transform:scale(1.05); }
.cd-gallery-more { position:absolute;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;color:#fff;font-family:"Barlow Condensed",sans-serif;font-size:1.5rem;font-weight:900; }

/* lightbox */
.cd-lightbox { position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center; }
.cd-lb-img { max-width:90vw;max-height:85vh;object-fit:contain;border-radius:8px; }
.cd-lb-close,.cd-lb-prev,.cd-lb-next { position:absolute;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:50%;color:#fff;cursor:pointer;transition:background .2s;display:flex;align-items:center;justify-content:center;padding:0;line-height:1;width:44px;height:44px;font-size:1.4rem; }
.cd-lb-close:hover,.cd-lb-prev:hover,.cd-lb-next:hover { background:rgba(255,255,255,.3); }
.cd-lb-close { top:1rem;right:1rem;font-size:1.5rem; }
.cd-lb-prev  { left:1rem;top:50%;transform:translateY(-50%); }
.cd-lb-next  { right:1rem;top:50%;transform:translateY(-50%); }
.cd-lb-counter { position:absolute;bottom:1.25rem;left:50%;transform:translateX(-50%);color:rgba(255,255,255,.6);font-size:.85rem; }
/* instagram */
.cd-insta { margin-top:.5rem; }
.cd-insta-head { display:flex;align-items:center;gap:.4rem;margin-bottom:.5rem; }
.cd-insta-handle { color:rgba(255,255,255,.85);font-size:.85rem;font-weight:600;text-decoration:none; }
.cd-insta-handle:hover { color:#fff;text-decoration:none; }
.cd-insta-note { font-size:.78rem;color:rgba(255,255,255,.45);line-height:1.5; }
.cd-insta-note a { color:rgba(255,255,255,.6); }
.cd-insta-link { display:block;text-align:center;padding:.75rem;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:8px;color:rgba(255,255,255,.8);font-size:.9rem;font-weight:600;text-decoration:none;transition:background .2s; }
.cd-insta-link:hover { background:rgba(255,255,255,.13);text-decoration:none; }
/* video */
.cd-vid-wrap { border-radius:10px;overflow:hidden;margin-top:.35rem; }
.cd-video { width:100%;display:block;border-radius:10px; }
.cd-yt-ratio { position:relative;padding-bottom:56.25%; }
.cd-yt-ratio iframe { position:absolute;inset:0;width:100%;height:100%;border:none; }
/* captions */
.cd-captions { padding:.5rem .25rem; }
.cd-caption-line { font-size:.82rem; color:rgba(255,255,255,.8); line-height:1.5; text-align:center; margin:.15rem 0; }
.cd-single-img-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin: .5rem 0;
}
.cd-single-img {
  width: 100%; height: auto;
  display: block;
  object-fit: cover;
  max-height: 220px;
  border-radius: 10px;
}

/* ================================================================
   FESTIVAL MEMORIES PAGE
   ================================================================ */

/* Hero banner */
.mem-hero {
  background: linear-gradient(135deg, #001a6e 0%, #0037a7 50%, #002d8a 100%);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.mem-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(243,195,3,.08) 0%, transparent 60%);
  pointer-events: none;
}
.mem-hero-inner {
  max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 1;
}
.mem-hero-h {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900; text-transform: uppercase;
  color: #fff; line-height: .95;
  margin: .5rem 0 1rem;
}
.mem-hero-h span { color: var(--gold); }
.mem-hero-p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 640px; margin-bottom: 2rem; }

.mem-stats-row {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.mem-stat-n {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem; font-weight: 900; color: var(--gold); line-height: 1;
}
.mem-stat-l { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }

/* Sections */
.mem-section { padding: 4.5rem 0; }
.mem-section--alt { background: var(--bg2); }

/* Featured video */
.mem-featured-vid {
  max-width: 860px; margin: 0 auto;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.mem-vid-ratio {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
}
.mem-vid-ratio iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}
.mem-vid-local { width: 100%; border-radius: 14px; display: block; }

/* Year gallery blocks */
.mem-year-block { margin-bottom: 3.5rem; }
.mem-year-head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.mem-year-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem; font-weight: 900; color: var(--blue);
  background: var(--bg2);
  border: 2px solid var(--blue);
  border-radius: 8px;
  padding: .2rem .9rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.mem-section--alt .mem-year-badge { background: #fff; }
.mem-year-desc { color: var(--text-2); font-size: .95rem; flex: 1; }
.mem-year-div { flex: 1; height: 1px; background: var(--border); }

/* Photo grid */
.mem-photo-grid {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 640px) {
  .mem-photo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .mem-grid-1 { grid-template-columns: 1fr; max-width: 600px; }
  .mem-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
  .mem-photo-grid { grid-template-columns: repeat(5, 1fr); }
}
.mem-photo-thumb {
  position: relative;
  cursor: pointer; border: none; padding: 0; background: none;
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 1;
  transition: transform .2s, box-shadow .2s;
}
.mem-photo-thumb:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.mem-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mem-photo-hidden { display: none !important; }
.mem-photo-more {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,30,100,.65);
  color: #fff; font-size: 1.4rem; font-weight: 800;
  font-family: 'Barlow Condensed', sans-serif;
  border-radius: 8px;
}
.mem-show-all {
  margin-top: .75rem;
  background: none;
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 8px;
  padding: .45rem 1.1rem;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: all .2s;
}
.mem-show-all:hover { background: var(--blue); color: #fff; }

/* Extra video grid */
.mem-video-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.mem-vid-card {
  border-radius: 12px; overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.mem-vid-caption {
  padding: .75rem 1rem;
  display: flex; gap: .75rem; align-items: baseline;
}
.mem-vid-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem; font-weight: 800;
  color: var(--blue); text-transform: uppercase; letter-spacing: .05em;
  flex-shrink: 0;
}
.mem-vid-title { font-size: .9rem; color: var(--text-2); }

/* Empty state */
.mem-empty {
  text-align: center; padding: 5rem 1rem;
  max-width: 480px; margin: 0 auto;
}
.mem-empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.mem-empty h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 900; color: var(--blue); margin-bottom: .75rem; }
.mem-empty p { color: var(--text-2); font-size: 1rem; }

/* CTA strip */
.mem-cta-strip {
  background: var(--blue);
  padding: 2.5rem 1.5rem;
}
.mem-cta-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.mem-cta-strip h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem; font-weight: 800; color: #fff;
  text-transform: uppercase; margin-bottom: .25rem;
}
.mem-cta-strip p { color: rgba(255,255,255,.75); font-size: .95rem; }
.mem-cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 600px) {
  .mem-stats-row { gap: 1.5rem; }
  .mem-photo-grid { grid-template-columns: repeat(3, 1fr); }
  .mem-hero { padding: 3.5rem 1rem 3rem; }
  .mem-cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE SECTION COLLAPSE  (front-page only)
   Desktop: toggles hidden, everything always open
   Mobile ≤767px: toggle bars visible, sections collapse/expand
   ═══════════════════════════════════════════════════════════════ */

/* Collapse wrapper — desktop: transparent passthrough */
.lbf-col-wrap { position: relative; }

/* Toggle button — hidden on desktop */
.lbf-col-toggle {
  display: none;
}

/* Body — always visible on desktop */
.lbf-col-body { display: block; }

/* Expand/Collapse All bar — hidden on desktop */
.lbf-col-controls { display: none; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 767px) {

  /* Controls bar */
  .lbf-col-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6rem 1rem;
    background: var(--blue, #0037a7);
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
  }
  .lbf-col-all-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.9);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    padding: .25rem .5rem;
    border-radius: 4px;
    transition: color .15s, background .15s;
  }
  .lbf-col-all-btn:hover { color: #fff; background: rgba(255,255,255,.15); }
  .lbf-col-divider { color: rgba(255,255,255,.35); font-size: .8rem; user-select: none; }

  /* The section wrapper */
  .lbf-col-wrap {
    border-bottom: 1px solid var(--border, #e5e7eb);
  }
  .lbf-col-wrap:last-of-type { border-bottom: none; }

  /* Toggle button */
  .lbf-col-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .65rem;
    padding: .9rem 1.1rem;
    background: #fff;
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
  }
  .lbf-col-toggle:hover,
  .lbf-col-toggle:focus-visible { background: #f4f7ff; outline: none; }

  /* When the section is open the button gets a bottom border */
  .lbf-col-wrap.open .lbf-col-toggle {
    border-bottom-color: var(--border, #e5e7eb);
    background: #f4f7ff;
  }

  .lbf-col-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
  }
  .lbf-col-label {
    flex: 1;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-1, #111);
  }
  .lbf-col-chevron {
    font-size: .7rem;
    color: var(--text-2, #666);
    transition: transform .28s ease;
    flex-shrink: 0;
  }
  .lbf-col-wrap.open .lbf-col-chevron {
    transform: rotate(180deg);
  }

  /* Body — hidden by default on mobile, shown when .open */
  .lbf-col-body {
    display: none;
    overflow: hidden;
  }
  .lbf-col-wrap.open .lbf-col-body {
    display: block;
    animation: lbfColSlide .25s ease-out;
  }

  @keyframes lbfColSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }


}

/* ══════════════════════════════════════════════════════
   BLUEPRINT — ADDED DESIGN SYSTEM STYLES
   ══════════════════════════════════════════════════════ */

/* ── §7 Stats Row pattern ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stats-row--dark .stats-row__number,
.stats-row--dark .stats-row__label { color: #fff; }
.stats-row__item {
  display: flex; flex-direction: column; align-items: center;
  gap: .25rem; padding: 1.25rem 1rem; text-align: center;
}
.stats-row__icon { font-size: 1.5rem; line-height: 1; }
.stats-row__number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900; color: var(--blue); line-height: 1;
}
.stats-row--dark .stats-row__number { color: var(--gold); }
.stats-row__label { font-size: .82rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 767px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── §9.1 Card system  ── */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}

/* ── §7 Editorial Split layout ── */
.editorial-split {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 3rem;
  align-items: flex-start;
}
.editorial-split--reverse { grid-template-columns: 1fr 55%; }
.editorial-split--reverse .editorial-split__media { order: 2; }
.editorial-split--reverse .editorial-split__text  { order: 1; }
.editorial-split__media img {
  width: 100%; border-radius: var(--radius);
  object-fit: cover;
}
@media (max-width: 900px) {
  .editorial-split,
  .editorial-split--reverse { grid-template-columns: 1fr; }
  .editorial-split--reverse .editorial-split__media { order: 1; }
  .editorial-split--reverse .editorial-split__text  { order: 2; }
}

/* ── §4.1 Section header left-align variant ── */
.sec-hd--left { text-align: left; }
.sec-hd--left .sec-p { margin-left: 0; }

/* ── §9.3 Forms: narrow, labels above, gold submit ── */
.form-page-wrap { max-width: 720px; margin: 0 auto; }
.form-card-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
}
.form-field-group { margin-bottom: 1.5rem; }
.form-field-group label {
  display: block;
  font-size: .9rem; font-weight: 600;
  color: var(--text-2); margin-bottom: .4rem;
}
.form-field-group input,
.form-field-group select,
.form-field-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
}
.form-field-group input:focus,
.form-field-group select:focus,
.form-field-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,55,167,.08);
}
/* Blueprint §9.3: error state — left border + helper text */
.form-field-group.has-error input,
.form-field-group.has-error select,
.form-field-group.has-error textarea {
  border-left: 3px solid #dc2626;
}
.form-field-group .field-error {
  display: block; font-size: .8rem;
  color: #dc2626; margin-top: .3rem;
}
.form-privacy-note {
  font-size: .82rem; color: var(--text-3);
  text-align: center; margin-bottom: 1rem;
}

/* ── §9.3 Schedule row enhancements ── */
/* Alternating rows already handled by :nth-child selector above */
/* Category color dot */
.sched-row { position: relative; }
.sched-cat-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: .4rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── §G Sponsor tier grid ── */
.sponsor-tier { margin-bottom: 2.5rem; }
.sponsor-tier__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.sponsor-logo-wrap__name {
  font-size: .8rem; font-weight: 700;
  color: var(--text-2); text-align: center;
}
/* Tier-size variants for .sp classes */
.sp-xl .sponsor-logo-wrap { width: 240px; height: 135px; }
.sp-lg .sponsor-logo-wrap { width: 200px; height: 112px; }
.sp-md .sponsor-logo-wrap { width: 160px; height: 90px; }
.sp-sm .sponsor-logo-wrap { width: 120px; height: 68px; }
.sp-xs .sponsor-logo-wrap { width: 90px;  height: 50px; padding: .5rem; }

/* ── §C Entertainment — night hero override ── */
.sp-pg-hero--night {
  background: var(--grad-night) !important;
}

/* ── §E Pageant hero override already defined; ensure purple CTA band ── */
.sp-cta-band--pageant {
  background: var(--grad-pageant);
}

/* ── §5.1 Section connector divider ── */
.sec-connector { border-top: 1px solid var(--border); }

/* ── §3 Background level helpers ── */
.bg-level-0 { background: #fff; }
.bg-level-1 { background: var(--bg); }
.bg-level-2 { background: var(--bg2); }

/* ── §13.2 Footer baseline emoji centering ── */
.footer-bot { flex-wrap: wrap; }
.footer-emoji { line-height: 1; font-size: 1.1rem; }

/* ── Footer 4-col responsive ── */
@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bot { height: auto; padding: .75rem 1.5rem; flex-direction: column; gap: .4rem; text-align: center; }
}

/* ── §6.1 / §11.7 Slim hero base colours ── */
.sp-pg-hero--slim {
  background: var(--grad-blue);
}

/* ---- GRAVITY FORMS INSIDE DARK DONATION SECTION ---- */
.donate-card--gf { padding: .9rem; max-width:60%;margin:0 auto; }
.donate-card--gf .gform_wrapper,
.donate-card--gf .gform_wrapper * { box-sizing: border-box; }

/* Labels */
.donate-card--gf .gfield_label,
.donate-card--gf .gform_wrapper label { color: rgba(255,255,255,.9) !important; font-size: .9rem !important; }

/* Inputs, selects, textareas */
.donate-card--gf input[type="text"],
.donate-card--gf input[type="email"],
.donate-card--gf input[type="number"],
.donate-card--gf input[type="tel"],
.donate-card--gf select,
.donate-card--gf textarea {
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 8px !important;
  color: #fff !important;
  padding: .6rem .85rem !important;
  width: 100% !important;
}
.donate-card--gf input::placeholder,
.donate-card--gf textarea::placeholder { color: rgba(255,255,255,.4) !important; }

/* Radio and checkbox labels */
.donate-card--gf .gfield_radio label,
.donate-card--gf .gfield_checkbox label { color: rgba(255,255,255,.85) !important; }

/* Submit button */
.donate-card--gf .gform_footer input[type="submit"],
.donate-card--gf input[type="submit"] {
  background: var(--gold) !important;
  color: var(--text) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: .75rem 2rem !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  width: 100% !important;
  letter-spacing: .04em !important;
  transition: opacity .2s !important;
}
.donate-card--gf input[type="submit"]:hover { opacity: .88 !important; }

/* Validation messages */
.donate-card--gf .gfield_description,
.donate-card--gf .gform_description { color: rgba(255,255,255,.65) !important; font-size: .82rem !important; }
.donate-card--gf .validation_message { color: #fca5a5 !important; font-size: .8rem !important; }

/* Price / total fields */
.donate-card--gf .ginput_product_price,
.donate-card--gf .gfield_price { color: var(--gold) !important; font-weight: 700 !important; }

/* Select arrow visibility */
.donate-card--gf select option { background: #0037a7; color: #fff; }

.fp-attr-cat-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem; font-weight: 800; text-transform: uppercase;
  color: var(--blue); margin: 2rem 0 1rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--blue-tint, #e8eeff);
}
.fp-attr-cat-title:first-child { margin-top: 0; }

/* ============================================================
   MERCHANDISE SECTION — Front Page
   ============================================================ */

.lbf-merch-section {
  background: linear-gradient(180deg, #f4f6fb 0%, #fff 100%);
  padding: 4.5rem 0;
}

.lbf-merch-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.lbf-merch-sub {
  color: var(--text-2, #555);
  font-size: 1rem;
  margin: 0;
}

.lbf-merch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.lbf-merch-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
  border: 1.5px solid #f3f4f6;
}
.lbf-merch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,55,167,.13);
  text-decoration: none;
  color: inherit;
}

.lbf-merch-card__img {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lbf-merch-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.lbf-merch-card:hover .lbf-merch-card__img img { transform: scale(1.04); }

.lbf-merch-card__placeholder {
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
}

.lbf-merch-card__body {
  padding: .9rem 1rem .5rem;
  flex: 1;
}

.lbf-merch-card__cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue, #0037a7);
  margin-bottom: .35rem;
}

.lbf-merch-card__name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-1, #111);
  margin: 0 0 .4rem;
  line-height: 1.3;
}

.lbf-merch-card__price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue, #0037a7);
}
.lbf-merch-card__price .woocommerce-Price-amount { font-weight: 700; }

.lbf-merch-card__cta {
  padding: .65rem 1rem;
  background: var(--blue, #0037a7);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: .03em;
  transition: background .15s;
}
.lbf-merch-card:hover .lbf-merch-card__cta { background: var(--gold, #f3c303); color: #1a0f00; }

.lbf-merch-footer {
  text-align: center;
  padding-top: .5rem;
}

@media (max-width: 900px) {
  .lbf-merch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .lbf-merch-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .lbf-merch-hd { flex-direction: column; align-items: flex-start; }
}


/* ─── Version 13 Hero + Stats ─────────────────────────────────── */

/* ═══ V13: TYPOGRAPHIC ═══════════════════════════════════════════════ */
.hero-v13 {
  min-height:100vh; background:linear-gradient(135deg,#001240 0%,#001f6e 50%,#0030a0 100%);
  position:relative; overflow:hidden; display:flex; align-items:flex-start;
  padding:0 0 4rem;
  margin:0; width:100%;
}
.v13-overlay { position:absolute;inset:0;background:linear-gradient(to right,rgba(0,0,0,.3) 0%,transparent 60%);z-index:1;pointer-events:none; }
.v13-side-accent { display:none; }
.v13-inner { max-width:1200px;margin:0 auto;width:100%;display:grid;grid-template-columns:1fr auto;gap:4rem;align-items:flex-start;position:relative;z-index:2;padding:0 2.5rem; }
.v13-left { display:flex;flex-direction:column;gap:.4rem;padding-left:0; }
.v13-label { display:inline-block;padding:.28rem .8rem;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;border:1px solid transparent;border-radius:20px !important;overflow:hidden;margin-top:0;margin-bottom:.8rem;align-self:flex-start; }
.v13-title { font-family:'Barlow Condensed',sans-serif;font-size:clamp(3.5rem,9vw,7rem);font-weight:900;text-transform:uppercase;line-height:.88;letter-spacing:-.025em;color:#fff;margin:0 0 .8rem;display:flex;flex-direction:column; }
.v13-title span { display:block; }
.v13-rule { width:100px;height:3px;background:var(--gold);margin-bottom:1.2rem; }
.v13-sub { color:rgba(255,255,255,.72);font-size:1rem;line-height:1.6;max-width:460px;margin-bottom:1.2rem; }
.v13-meta { display:flex;flex-direction:column;gap:.4rem;margin-bottom:1.5rem; }
.v13-meta-item { display:inline-flex;align-items:center;gap:.5rem;color:rgba(255,255,255,.75);font-size:.88rem;font-weight:600; }
.v13-meta-icon { font-size:.9rem; }
.v13-cd { display:inline-flex;flex-direction:column;gap:.5rem;padding:1rem 1.3rem;border:1px solid transparent;border-radius:8px;margin-bottom:1.6rem;align-self:flex-start; }
.v13-cd-lbl { font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase; }
.v13-cd-boxes { display:flex;align-items:center;gap:.35rem; }
.v13-cd-box { display:flex;flex-direction:column;align-items:center;padding:.5rem .65rem;min-width:52px;border-radius:4px; }
.v13-cd-n { font-family:'Barlow Condensed',sans-serif;font-size:1.6rem;font-weight:900;line-height:1; }
.v13-cd-u { font-size:.56rem;text-transform:uppercase;letter-spacing:.08em;margin-top:.15rem; }
.v13-cd-sep { font-size:1.3rem;font-weight:900;padding-bottom:.7rem; }
.v13-btns { display:flex;gap:.75rem;flex-wrap:wrap; }
.v13-right { display:flex;align-items:flex-start;padding-top:160px; }
.v13-stats-side { display:flex;flex-direction:column;gap:0;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:16px;overflow:hidden;min-width:200px; }
.v13-side-stat { padding:1.5rem 1.8rem;text-align:center; }
.v13-ss-n { font-family:'Barlow Condensed',sans-serif;font-size:2.4rem;font-weight:900;color:var(--gold);line-height:1; }
.v13-ss-l { font-size:.75rem;color:rgba(255,255,255,.55);text-transform:uppercase;letter-spacing:.08em;margin-top:.25rem; }
.v13-ss-rule { height:1px;background:rgba(255,255,255,.08); }
@media(max-width:1000px){.v13-inner{grid-template-columns:1fr;}.v13-right{display:none;}}

/* ── Donate GF section title "Your Information" → white ─────────── */
.donate-card--gf .gsection_title,
.donate-card--gf .gfield--type-section .gfield_label,
.donate-card--gf .gsection .gsection_title,
.donate-card--gf h2.gsection_title,
.donate-card--gf h3.gsection_title { color: #fff !important; }

/* ── Donate GF — extra spacing reduction between field groups ──── */
.donate-card--gf .gform_body .gsection { margin-top: .25rem !important; margin-bottom: .25rem !important; padding-bottom: .15rem !important; }
.donate-card--gf .gform_fields { row-gap: 0 !important; }
.donate-card--gf li.gfield { margin-top: 0 !important; padding-top: 0 !important; }

/* ══════════════════════════════════════════════════════════
   WP BLOCK EDITOR LAYOUT OVERRIDE
   WP 6.x injects .is-layout-constrained CSS that constrains
   all content to ~650px. Reset it for our full-width templates.
═══════════════════════════════════════════════════════════ */
.is-layout-constrained > * {
  max-width: none !important;
  margin-left: unset !important;
  margin-right: unset !important;
}
.wp-site-blocks {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body > .wp-site-blocks,
.wp-block-template-part {
  max-width: none !important;
  padding: 0 !important;
}
.wp-block-group.is-layout-constrained,
.wp-block-group.is-layout-flow {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ── Force full width — override WP default content constraints ── */
body,
.wp-site-blocks,
.wp-block-group,
.entry-content,
.post-content,
.page-content,
.site-content,
#content,
#page,
#primary,
#main,
.site-main {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* ── Blueprint §9.3 — All form pages: Gravity Forms submit = gold full-width ── */
.form-page-content .gform_wrapper .gform_footer input[type="submit"],
.form-page-content .gform_wrapper .gform_footer button[type="submit"],
.container-narrow .gform_wrapper .gform_footer input[type="submit"],
.container-narrow .gform_wrapper .gform_footer button[type="submit"] {
  background: var(--gold) !important;
  color: var(--text) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: .85rem 2rem !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  width: 100% !important;
  letter-spacing: .04em !important;
  transition: opacity .2s !important;
}
.container-narrow .gform_wrapper .gform_footer input[type="submit"]:hover,
.container-narrow .gform_wrapper .gform_footer button[type="submit"]:hover { opacity: .88 !important; }

/* Blueprint §9.3 — Form label above input (Gravity Forms) */
.container-narrow .gform_wrapper .gfield_label { display: block; margin-bottom: .3rem; font-weight: 600; }
.container-narrow .gform_wrapper .ginput_container { margin-top: 0 !important; }
.container-narrow .gform_wrapper li.gfield { margin-bottom: 1.5rem !important; }

/* Blueprint §9.3 — Privacy note above submit */
.container-narrow .gform_wrapper .gform_footer::before {
  content: 'Your information is never sold or shared.';
  display: block;
  font-size: .8rem;
  color: var(--text-3);
  text-align: center;
  margin-bottom: .75rem;
}


/* ═══════════════════════════════════════════════════════════════════════
   LBF v18.1 — Blueberry Hero Particle System
   Canvas sits at z-index:0, behind v13-overlay (z:1) and v13-inner (z:2).
   pointer-events:none ensures all hero clicks / taps pass through cleanly.
═══════════════════════════════════════════════════════════════════════ */

/* Canvas element — fills the hero section absolutely */
#lbf-hero-canvas {
  position:       absolute;
  inset:          0;
  width:          100%;
  height:         100%;
  z-index:        0;
  pointer-events: none;
  display:        block;

  /* Subtle blending so canvas tones merge with the gradient underneath */
  mix-blend-mode: screen;
  opacity:        0.9;
}

/* Respect prefers-reduced-motion — hide entirely, gradient remains */
@media (prefers-reduced-motion: reduce) {
  #lbf-hero-canvas {
    display: none;
  }
}

/* Ensure existing hero overlay and inner content sit above the canvas */
.hero-v13 .v13-overlay    { z-index: 1; }
.hero-v13 .v13-inner      { z-index: 2; }
.hero-v13 .hero-bg-media  { z-index: 0; } /* video/image bg stays below canvas */


/* ═══════════════════════════════════════════════════════════════════════
   LBF v18.2 — Homepage Scroll Reveal System
   ─────────────────────────────────────────────────────────────────────
   Elements with [data-lbf-reveal] start hidden.
   JS adds .lbf-rv-ready on init (triggers initial state below).
   JS adds .lbf-rv-visible when element enters the viewport.

   Direction variants via data-lbf-from:
     "up"    — default, rises from below
     "left"  — slides in from left
     "right" — slides in from right
     "fade"  — pure opacity, no translate

   Stagger is handled by JS using data-lbf-delay="N" (ms).
   prefers-reduced-motion: no transform, instant opacity.
═══════════════════════════════════════════════════════════════════════ */

/* ── Base hidden state (only applied after JS inits) ── */
.lbf-rv-ready                            { opacity: 0; }
.lbf-rv-ready[data-lbf-from="up"]        { transform: translateY(32px); }
.lbf-rv-ready[data-lbf-from="left"]      { transform: translateX(-28px); }
.lbf-rv-ready[data-lbf-from="right"]     { transform: translateX(28px); }
.lbf-rv-ready[data-lbf-from="fade"]      { transform: none; }

/* ── Transition timing (applied once ready) ── */
.lbf-rv-ready {
  transition: opacity 0.62s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

/* ── Visible state ── */
.lbf-rv-ready.lbf-rv-visible {
  opacity:   1;
  transform: none;
}

/* ── Reduced motion: skip animation entirely, show everything ── */
@media (prefers-reduced-motion: reduce) {
  .lbf-rv-ready,
  .lbf-rv-ready[data-lbf-from="up"],
  .lbf-rv-ready[data-lbf-from="left"],
  .lbf-rv-ready[data-lbf-from="right"],
  .lbf-rv-ready[data-lbf-from="fade"] {
    opacity:    1 !important;
    transform:  none !important;
    transition: none !important;
  }
}

/* ── Section heading group ── */
.sec-hd[data-lbf-reveal] { /* handled by the main rule */ }

/* ─────────────────────────────────────────────────────────────────────
   Section-level entrance: the whole section block gets a subtle
   baseline fade, independent of per-card staggering inside it.
   Applied to .lbf-col-body when it opens (after accordion expand).
   Not applied to the hero — it has its own entrance.
───────────────────────────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════════════════
   LBF v18.3 — Inline Editor Enhancements
   Pageant cat-card empty-state editing hints + chip emoji isolation
═══════════════════════════════════════════════════════════════════════ */

/* Emoji span is purely decorative — never editable */
.v13-label-emoji {
  user-select:     none;
  pointer-events:  none;
  margin-right:    0.3em;
}

/* Empty cat-card slot visible only in edit mode */
.lbf-cat-card--empty {
  opacity:     0.45;
  border:      2px dashed rgba(243,195,3,0.4) !important;
}
.lbf-cat-card--empty .cat-name,
.lbf-cat-card--empty .cat-age {
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* Pageant inline edit hint — shown only to editors */
.lbf-pag-edit-hint {
  font-size:   0.78rem;
  color:       rgba(255,255,255,0.45);
  margin-top:  1rem;
  font-style:  italic;
  text-align:  center;
}
.lbf-pag-edit-hint a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Cat-card fields get the standard editable outline from inline-editor.php
   but we tighten the border-radius to match the card design */
.cat-card [data-lbf-field]:hover,
.cat-card [data-lbf-field]:focus {
  border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════════════════════
   LBF v18.3 patch — Fix edit-mode tooltip overflow on pageant cat-cards
   ─────────────────────────────────────────────────────────────────────
   The inline editor's [data-lbf-field]::before / ::after tooltip bubbles
   are position:absolute and were escaping the cat-card bounds, causing
   a yellow box to cover the pageant section during hover/edit.
   Fix: suppress those pseudo-elements inside .cat-card and replace with
   a clean contained indicator. Also add overflow:hidden + isolation to
   the card to guarantee no future pseudo-element bleed.
═══════════════════════════════════════════════════════════════════════ */

/* Contain all absolutely-positioned children inside cat-cards */
.cat-card {
  overflow:  visible;   /* keep glow outline visible outside the card */
  isolation: isolate;   /* new stacking context stops z-index bleed */
  position:  relative;  /* ensure any internal absolute children anchor here */
}

/* ── Suppress the flying tooltip bubbles inside cat-cards entirely ── */
.cat-card [data-lbf-field]::before,
.cat-card [data-lbf-field]::after {
  display: none !important;
}

/* ── Replace with a subtle contained inline hint ── */
/* Show a tiny pencil badge on the card itself (not the field) on hover */
.cat-card:has([data-lbf-field]):hover::after {
  content:          '✏️';
  position:         absolute;
  top:              6px;
  right:            6px;
  font-size:        11px;
  line-height:      1;
  background:       rgba(243,195,3,0.18);
  border:           1px solid rgba(243,195,3,0.4);
  border-radius:    6px;
  padding:          2px 5px;
  pointer-events:   none;
  z-index:          2;
}

/* ── Keep the outline/glow feedback but contain it visually ── */
.cat-card [data-lbf-field] {
  border-radius: 4px;
}
.cat-card [data-lbf-field]:hover {
  outline:        2px solid rgba(243,195,3,0.7);
  outline-offset: 2px;   /* tighter — stays within card */
  background:     rgba(243,195,3,0.1);
  box-shadow:     none;  /* remove the 4px spread that was escaping */
}
.cat-card [data-lbf-field]:focus {
  outline:        2px solid #f3c303;
  outline-offset: 2px;
  background:     rgba(243,195,3,0.12);
  box-shadow:     none;
}

/* Fallback for browsers without :has() support — hide ::after on card too */
@supports not (selector(:has(a))) {
  .cat-card::after { display: none !important; }
}

/* v18.3.3 — Improved background-edit hover indicator for all sections */
[data-lbf-bg]:hover::before {
  content: '🎨 Right-click to change background' !important;
  display: block !important;
  position: absolute !important;
  top: 8px !important;
  right: 12px !important;
  left: auto !important;
  transform: none !important;
  background: rgba(22,0,64,0.9) !important;
  color: #f3c303 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(243,195,3,0.4) !important;
  white-space: nowrap !important;
  z-index: 999 !important;
  pointer-events: none !important;
  font-family: -apple-system, sans-serif !important;
}
/* cat-card and section children — suppress the above tooltip */
.cat-card [data-lbf-bg]::before {
  display: none !important;
}
