/* =========================================================
   ESA Valley Hub — Style Guide (Virgil Gulker quote graphic)
   Source: D:\ESA\ESA Hub app\ESA Hub Style Guide.txt
   Background #0d0f60 · Accent Gold #edae26 · Accent Blue #1e7ad5 · Text #ffffff
   ========================================================= */

:root {
  /* Brand core (ESA Hub Style Guide) */
  --esali-navy: #12156e;
  --esali-navy-deep: #0d0f60;
  --esali-navy-card: #161a78;
  --esali-navy-elevated: #1c2288;
  /* Primary accent = gold (buttons, focus, active chips) */
  --esali-green: #edae26;
  --esali-green-bright: #f5c040;
  --esali-green-dim: rgba(237, 174, 38, 0.16);
  /* Secondary accent = bright blue (dates, thin lines, highlights) */
  --esali-lime: #1e7ad5;
  --esali-lime-dim: rgba(30, 122, 213, 0.14);
  --esali-gold: #edae26;
  --esali-gold-bright: #f5c040;
  --esali-blue: #1e7ad5;
  --esali-blue-soft: #4a9ae8;
  --esali-white: #ffffff;
  --esali-muted: #b8c4e0;
  --esali-muted-2: #8e9cbf;
  --esali-line: rgba(237, 174, 38, 0.28);
  --esali-line-soft: rgba(255, 255, 255, 0.1);
  --esali-on-accent: #0d0f60;

  /* Layout tokens remapped to style guide */
  --eb-orange: var(--esali-gold);
  --eb-orange-dark: #d49a18;
  --eb-orange-soft: var(--esali-green-dim);
  --eb-ink: var(--esali-white);
  --eb-ink-2: var(--esali-gold-bright);
  --eb-muted: var(--esali-muted);
  --eb-line: var(--esali-line-soft);
  --eb-bg: var(--esali-navy-deep);
  --eb-surface: var(--esali-navy);
  --eb-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(30, 122, 213, 0.12);
  --eb-card-hover: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 28px rgba(237, 174, 38, 0.18);
  --eb-radius: 16px;
  --eb-radius-sm: 10px;
  --eb-max: 1200px;
  --eb-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* admin bridge */
  --cream: var(--esali-navy);
  --ink: var(--esali-white);
  --muted: var(--esali-muted);
  --primary: var(--esali-gold);
  --primary-dark: #d49a18;
  --accent: var(--esali-blue);
  --plum: #1a1f70;
  --card: var(--esali-navy-card);
  --border: var(--esali-line-soft);
  --shadow: var(--eb-card-shadow);
  --radius: var(--eb-radius);
  --font: var(--eb-font);
  --serif: var(--eb-font);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Clear sticky header (logo row + filter chips) when scrolling to anchors */
  scroll-padding-top: 140px;
}
body.eb-body {
  margin: 0;
  font-family: var(--eb-font);
  color: var(--esali-white);
  background-color: var(--esali-navy-deep);
  /* Style guide: navy field + soft blue geometry + warm gold glow (right/top) */
  background-image:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(30, 122, 213, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 25%, rgba(74, 154, 232, 0.18), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 90%, rgba(237, 174, 38, 0.08), transparent 50%),
    linear-gradient(rgba(30, 122, 213, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 122, 213, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- Header ---------- */
.eb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 15, 96, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--esali-line);
}
.eb-header-inner {
  max-width: var(--eb-max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.eb-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  cursor: pointer;
  text-decoration: none;
}
.eb-logo:hover {
  opacity: 0.92;
}
.eb-logo-img {
  height: 52px;
  width: auto;
  max-width: min(240px, 50vw);
  display: block;
  object-fit: contain;
  pointer-events: none; /* clicks go to the <a> wrapper */
}

.eb-header-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 31, 53, 0.9);
  border: 1px solid var(--esali-line-soft);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  max-width: 420px;
  margin-left: auto;
  transition: border-color 0.15s, box-shadow 0.15s;
}
/* Style guide: gold Donate CTA (header + footer) */
.eb-donate-btn,
.eb-header-donate {
  flex-shrink: 0;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--esali-gold-bright), var(--esali-gold)) !important;
  color: var(--esali-on-accent) !important;
  border-color: transparent !important;
  box-shadow: 0 0 18px rgba(237, 174, 38, 0.28);
}
.eb-donate-btn:hover,
.eb-header-donate:hover {
  filter: brightness(1.06);
  color: var(--esali-on-accent) !important;
  box-shadow: 0 0 24px rgba(237, 174, 38, 0.4);
}
.eb-header-search:focus-within {
  border-color: var(--esali-gold);
  box-shadow: 0 0 0 3px rgba(237, 174, 38, 0.22);
}
.eb-header-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: var(--esali-white);
}
.eb-header-search input::placeholder { color: var(--esali-muted-2); }
.eb-search-icon { color: var(--esali-muted); display: flex; }

/* Header event filter dropdown */
.eb-header-filters {
  max-width: var(--eb-max);
  margin: 0 auto;
  padding: 0 1.25rem 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.eb-filter-dropdown {
  position: relative;
  z-index: 60;
}
.eb-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(237, 174, 38, 0.45);
  background: linear-gradient(135deg, rgba(237, 174, 38, 0.16), rgba(30, 122, 213, 0.1));
  color: var(--esali-white);
  border-radius: 999px;
  padding: 0.48rem 0.95rem 0.48rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  min-width: 11.5rem;
}
.eb-filter-trigger:hover,
.eb-filter-dropdown.open .eb-filter-trigger {
  border-color: var(--esali-gold);
  box-shadow: 0 0 0 3px rgba(237, 174, 38, 0.18);
}
.eb-filter-trigger-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  line-height: 1.15;
  text-align: left;
  flex: 1;
}
.eb-filter-trigger-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--esali-gold);
}
.eb-filter-trigger-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--esali-white);
}
.eb-filter-chevron {
  flex-shrink: 0;
  color: var(--esali-gold-bright);
  transition: transform 0.15s ease;
}
.eb-filter-dropdown.open .eb-filter-chevron {
  transform: rotate(180deg);
}
.eb-filter-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(280px, 90vw);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  background: var(--esali-navy-elevated);
  border: 1px solid rgba(237, 174, 38, 0.35);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(30, 122, 213, 0.12);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.eb-filter-menu[hidden] {
  display: none !important;
}
.eb-filter-option {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--esali-white);
  text-align: left;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}
.eb-filter-option:hover {
  background: rgba(30, 122, 213, 0.2);
  color: var(--esali-gold-bright);
}
.eb-filter-option.active {
  background: linear-gradient(135deg, var(--esali-gold-bright), var(--esali-gold));
  color: var(--esali-on-accent);
}

.eb-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}
.eb-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--esali-white);
  white-space: nowrap;
}
.eb-nav a:hover { color: var(--esali-green-bright); }
.eb-nav-muted { color: var(--esali-muted) !important; }

.eb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.15s ease;
  background: transparent;
  color: var(--esali-white);
  text-decoration: none;
}
.eb-btn-primary {
  background: linear-gradient(135deg, var(--esali-gold-bright), var(--esali-gold));
  color: var(--esali-on-accent);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(237, 174, 38, 0.28);
}
.eb-btn-primary:hover {
  filter: brightness(1.06);
  color: var(--esali-on-accent);
}
.eb-btn-ghost {
  border-color: var(--esali-line-soft);
  background: rgba(16, 31, 53, 0.6);
}
.eb-btn-ghost:hover { border-color: var(--esali-green); color: var(--esali-green-bright); }
.eb-btn-outline {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(16, 31, 53, 0.5);
}
.eb-btn-outline:hover {
  border-color: var(--esali-lime);
  color: var(--esali-lime);
}
.eb-btn-lg { padding: 0.85rem 1.4rem; font-size: 1rem; min-width: 120px; }

.eb-menu-toggle {
  display: none;
  border: 1px solid var(--esali-line-soft);
  background: var(--esali-navy-card);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--esali-white);
}
.eb-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 1rem;
  border-top: 1px solid var(--esali-line-soft);
  background: var(--esali-navy-deep);
}
.eb-mobile-nav a {
  padding: 0.65rem 0.4rem;
  font-weight: 600;
  border-radius: 8px;
  color: var(--esali-white);
}
.eb-mobile-nav a:hover { background: var(--esali-navy-card); color: var(--esali-green-bright); }

/* ---------- Hero (style guide: left text, gold arc + blue geometry right) ---------- */
.eb-hero {
  position: relative;
  overflow: hidden;
  background: var(--esali-navy-deep);
  border-bottom: 1px solid rgba(30, 122, 213, 0.35);
}
.eb-hero::before {
  /* Curved gold accent (right edge), matching quote graphic */
  content: "";
  position: absolute;
  inset: -20% -15% -30% 45%;
  background:
    radial-gradient(ellipse 80% 90% at 70% 40%, rgba(30, 122, 213, 0.55), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(74, 154, 232, 0.35), transparent 45%);
  clip-path: ellipse(75% 95% at 100% 40%);
  pointer-events: none;
}
.eb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 12%, rgba(237, 174, 38, 0.95) 0 2.2rem, transparent 2.3rem),
    linear-gradient(115deg, transparent 58%, rgba(237, 174, 38, 0.9) 58.2%, rgba(237, 174, 38, 0.9) 60.5%, transparent 60.7%);
  opacity: 0.95;
  pointer-events: none;
}
.eb-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--eb-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.1rem;
}
.eb-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--esali-gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eb-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.8vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 22ch;
  color: var(--esali-white);
  font-weight: 800;
}
.eb-hero h1 .love {
  color: var(--esali-gold-bright);
}
.eb-hero-sub {
  margin: 0.9rem 0 0;
  color: var(--esali-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 54ch;
  /* Style guide: thin bright-blue rule under lead copy */
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--esali-blue);
  display: inline-block;
}

.eb-search-panel {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 0.65rem;
  background: rgba(16, 31, 53, 0.92);
  border: 1px solid var(--esali-line);
  border-radius: 18px;
  padding: 0.65rem;
  box-shadow: var(--eb-card-shadow), 0 0 40px rgba(237, 174, 38, 0.08);
  max-width: 820px;
}
.eb-search-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
}
.eb-search-field:focus-within { background: rgba(237, 174, 38, 0.08); }
.eb-search-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--esali-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.eb-search-field input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--esali-white);
  padding: 0;
}
.eb-search-field input::placeholder { color: var(--esali-muted-2); }
.eb-search-loc input { color: var(--esali-lime); }

.eb-wrap {
  max-width: var(--eb-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Main browse ---------- */
.eb-main {
  background: transparent;
  padding: 1.25rem 0 3.5rem;
  min-height: 50vh;
  /* Keep first cards clear of sticky header when scrolled into view */
  scroll-margin-top: 140px;
}
.eb-browse-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.eb-browse-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--esali-white);
}
.eb-loc-accent { color: var(--esali-lime); }
.eb-meta-line {
  margin: 0.35rem 0 0;
  color: var(--esali-muted);
  font-size: 0.92rem;
}
.eb-head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.eb-time-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.eb-pill {
  border: 1px solid var(--esali-line-soft);
  background: var(--esali-navy-card);
  color: var(--esali-white);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.eb-pill:hover { border-color: var(--esali-green); }
.eb-pill.active {
  background: var(--esali-white);
  border-color: var(--esali-white);
  color: var(--esali-navy-deep);
}

.eb-section { margin-bottom: 2.25rem; }
.eb-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.eb-section-title h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--esali-white);
}
.eb-view-toggle { display: flex; gap: 0.3rem; }
.eb-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--esali-line-soft);
  background: var(--esali-navy-card);
  cursor: pointer;
  color: var(--esali-muted);
}
.eb-icon-btn.active {
  color: var(--esali-navy-deep);
  background: var(--esali-green-bright);
  border-color: var(--esali-green-bright);
}

/* ---------- Event cards ---------- */
.eb-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}
.eb-card-grid.is-list { grid-template-columns: 1fr; }
.eb-card-grid-featured { grid-template-columns: repeat(3, 1fr); }

/* Month separators between event groups */
.eb-month-sep {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.35rem 0 0.15rem;
  padding: 0.35rem 0;
}
.eb-month-sep:first-child {
  margin-top: 0;
}
.eb-month-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(237, 174, 38, 0.45),
    rgba(30, 122, 213, 0.35),
    transparent
  );
}
.eb-month-sep-label {
  margin: 0;
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--esali-gold-bright, #f5c040);
  white-space: nowrap;
}

.eb-card {
  background: var(--esali-navy-card);
  border-radius: var(--eb-radius);
  overflow: hidden;
  box-shadow: var(--eb-card-shadow);
  border: 1px solid var(--esali-line-soft);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  width: 100%;
  height: 100%;
  font: inherit;
  color: inherit;
}
.eb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--eb-card-hover);
  border-color: rgba(237, 174, 38, 0.35);
}
/* Uniform thumbnail size on every card */
.eb-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  overflow: hidden;
  background:
    linear-gradient(145deg, #0d0f60, #1e2488 55%, #1e7ad5 130%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.eb-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.eb-card-save {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(13, 15, 96, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--esali-muted);
}
.eb-card-save.on { color: var(--esali-green-bright); border-color: var(--esali-green); }
.eb-card-badge {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  background: rgba(13, 15, 96, 0.9);
  color: var(--esali-gold-bright);
  border: 1px solid rgba(237, 174, 38, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
}
.eb-card-body {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-height: 6.5rem;
}
.eb-card-date {
  margin: 0;
  color: var(--esali-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eb-card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--esali-white);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eb-card-desc {
  margin: 0.15rem 0 0;
  color: var(--esali-muted);
  font-size: 0.86rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eb-card-org {
  margin: 0.35rem 0 0;
  color: var(--esali-gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
}
.eb-card-loc {
  margin: 0.1rem 0 0;
  color: var(--esali-muted-2);
  font-size: 0.8rem;
}
.eb-modal-meta {
  margin: 0.2rem 0 0;
  color: var(--esali-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.eb-modal-meta:empty { display: none; }
.eb-card-cats {
  margin: 0.15rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.eb-cat-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--esali-muted);
}
.eb-cat-men {
  color: #c5d8ff;
  border-color: rgba(30, 122, 213, 0.55);
  background: rgba(30, 122, 213, 0.22);
}
.eb-cat-women {
  color: #ffe3a3;
  border-color: rgba(237, 174, 38, 0.5);
  background: rgba(237, 174, 38, 0.16);
}
.eb-cat-young-adults {
  background: rgba(42, 157, 143, 0.18);
  color: #1a6b61;
}
.eb-cat-youth {
  color: #b8e0ff;
  border-color: rgba(74, 154, 232, 0.45);
  background: rgba(74, 154, 232, 0.14);
}
.eb-cat-seniors {
  color: #e8d5b5;
  border-color: rgba(139, 115, 85, 0.55);
  background: rgba(139, 115, 85, 0.28);
}
.eb-cat-singles {
  color: #ffc9b5;
  border-color: rgba(224, 122, 95, 0.55);
  background: rgba(224, 122, 95, 0.22);
}
.eb-cat-prayer {
  color: #c5d8ff;
  border-color: rgba(91, 141, 239, 0.55);
  background: rgba(91, 141, 239, 0.2);
}


.eb-card-grid.is-list .eb-card {
  flex-direction: row;
  align-items: stretch;
  min-height: 148px;
  height: auto;
}
.eb-card-grid.is-list .eb-card-media {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  flex: 0 0 220px;
  aspect-ratio: 16 / 9;
  height: 100%;
  min-height: 148px;
  align-self: stretch;
}
.eb-card-grid.is-list .eb-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.eb-card-grid.is-list .eb-card-title {
  -webkit-line-clamp: 3; font-size: 1.15rem;
}
.eb-card-grid.is-list .eb-card-body {
  min-height: 0;
  justify-content: center;
}

.eb-empty {
  text-align: center;
  background: var(--esali-navy-card);
  border-radius: var(--eb-radius);
  padding: 3rem 1.25rem;
  color: var(--esali-muted);
  border: 1px dashed rgba(237, 174, 38, 0.25);
}
.eb-empty h3 { margin: 0 0 0.4rem; color: var(--esali-white); }
.eb-empty a { color: var(--esali-green-bright); font-weight: 700; }

/* ---------- Modal ---------- */
.eb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 16, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 80;
  backdrop-filter: blur(6px);
}
.eb-modal-backdrop[hidden] { display: none !important; }
.eb-modal {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--esali-navy-card);
  border: 1px solid var(--esali-line);
  border-radius: 18px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(237, 174, 38, 0.12);
  color: var(--esali-white);
}
.eb-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(13, 15, 96, 0.9);
  color: var(--esali-white);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}
.eb-modal-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, #0d0f60, #1e2488 55%, #1e7ad5);
  background-size: cover;
  background-position: center;
}
.eb-modal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.eb-modal-body { padding: 1.15rem 1.25rem 1.4rem; }
.eb-modal-body h2 {
  margin: 0.15rem 0 0.65rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--esali-white);
}
.eb-modal-desc {
  color: var(--esali-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 0.98rem;
}
.eb-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
  align-items: flex-start;
}
.eb-share-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}
.eb-share-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.4rem);
  z-index: 20;
  min-width: 11.5rem;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(13, 15, 96, 0.12);
  background: #fff;
  box-shadow: 0 10px 28px rgba(13, 15, 96, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.eb-share-menu[hidden] {
  display: none !important;
}
.eb-share-label {
  margin: 0 0 0.25rem;
  padding: 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--esali-muted);
}
.eb-share-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--esali-navy-deep, #0d0f60);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}
.eb-share-item:hover {
  background: rgba(30, 122, 213, 0.1);
  color: var(--esali-navy-deep, #0d0f60);
}
.eb-share-copy {
  border-top: 1px solid rgba(13, 15, 96, 0.08);
  margin-top: 0.15rem;
  padding-top: 0.55rem;
}

/* ---------- Footer (compact, style guide navy + gold + blue) ---------- */
.eb-footer {
  position: relative;
  background:
    radial-gradient(ellipse 55% 80% at 100% 0%, rgba(30, 122, 213, 0.22), transparent 55%),
    var(--esali-navy-deep);
  color: var(--esali-white);
  padding: 1.15rem 0 0.85rem;
  border-top: 2px solid var(--esali-gold);
  overflow: hidden;
}
.eb-footer::before {
  /* subtle blue geometric wash — right side */
  content: "";
  position: absolute;
  inset: -40% -10% -20% 55%;
  background: radial-gradient(ellipse at 70% 40%, rgba(30, 122, 213, 0.28), transparent 60%);
  pointer-events: none;
}
.eb-footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.25rem 2rem;
  align-items: start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(30, 122, 213, 0.28);
}
.eb-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.eb-footer-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.eb-footer-mission {
  margin: 0;
  color: var(--esali-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 48ch;
  padding-left: 0.65rem;
  border-left: 2px solid var(--esali-blue);
}
.eb-footer-mission strong {
  color: var(--esali-gold);
  font-weight: 700;
}
.eb-footer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}
.eb-donate-btn-sm {
  padding: 0.4rem 0.9rem !important;
  font-size: 0.8rem !important;
  box-shadow: 0 0 12px rgba(237, 174, 38, 0.22) !important;
}
.eb-footer-outline {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-color: rgba(30, 122, 213, 0.55);
  color: var(--esali-white);
  background: rgba(30, 122, 213, 0.12);
}
.eb-footer-outline:hover {
  border-color: var(--esali-gold);
  color: var(--esali-gold-bright);
  background: rgba(237, 174, 38, 0.08);
}
.eb-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
}
.eb-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.eb-footer h4 {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--esali-gold);
}
.eb-footer a {
  color: var(--esali-muted);
  font-size: 0.8rem;
  line-height: 1.35;
  text-decoration: none;
}
.eb-footer a:hover { color: var(--esali-gold-bright); }
.eb-footer a.eb-donate-btn,
.eb-footer a.eb-btn-primary.eb-donate-btn {
  color: var(--esali-on-accent) !important;
}
.eb-footer a.eb-donate-btn:hover {
  color: var(--esali-on-accent) !important;
}
.eb-footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem 1rem;
  padding-top: 0.65rem;
  color: var(--esali-muted-2);
  font-size: 0.72rem;
  line-height: 1.35;
}

.eb-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--esali-navy-elevated);
  color: var(--esali-white);
  border: 1px solid var(--esali-line);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 90;
  box-shadow: var(--eb-card-hover);
}
.eb-toast[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .eb-card-grid,
  .eb-card-grid-featured { grid-template-columns: repeat(2, 1fr); }
  .eb-search-panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 160px; }
  .eb-main { scroll-margin-top: 160px; }
  .eb-logo-img { height: 42px; max-width: 42vw; }
  .eb-header-search { max-width: none; min-width: 0; }
  .eb-donate-btn,
  .eb-header-donate {
    padding: 0.48rem 0.85rem;
    font-size: 0.82rem;
  }
  .eb-header-filters {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .eb-filter-trigger {
    min-width: 10.5rem;
    width: 100%;
    max-width: 280px;
  }
  .eb-filter-menu {
    width: 100%;
    min-width: 0;
    max-width: min(280px, calc(100vw - 2rem));
  }
  .eb-card-grid,
  .eb-card-grid-featured { grid-template-columns: 1fr; }
  .eb-card-grid.is-list .eb-card { flex-direction: column; }
  .eb-card-grid.is-list .eb-card-media {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }
  .eb-footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .eb-footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   Admin page — dark ESALI brand
   ========================================================= */
body:not(.eb-body) {
  margin: 0;
  font-family: var(--eb-font);
  color: var(--esali-white);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(237, 174, 38, 0.12), transparent 55%),
    var(--esali-navy-deep);
  min-height: 100vh;
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 15, 96, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--esali-line);
}
.header-inner {
  max-width: var(--eb-max); margin: 0 auto; padding: 0.85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  width: 140px; height: 48px; border-radius: 10px; overflow: hidden;
  background: transparent; display: grid; place-items: center;
  border: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand h1 { margin: 0; font-size: 1.05rem; color: var(--esali-white); }
.brand p { margin: 0.1rem 0 0; color: var(--esali-muted); font-size: 0.78rem; }
.nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nav a, .btn {
  display: inline-flex; align-items: center; gap: 0.35rem; border-radius: 999px;
  border: 1px solid var(--esali-line-soft); background: var(--esali-navy-card); color: var(--esali-white);
  padding: 0.45rem 0.9rem; font-size: 0.86rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.nav a.active, .btn-primary {
  background: linear-gradient(135deg, var(--esali-green-bright), var(--esali-green));
  border-color: transparent; color: var(--esali-on-accent);
}
.btn-danger { background: #9b2226; border-color: #9b2226; color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
main { max-width: var(--eb-max); margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }
.hero { display: grid; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero h2 { margin: 0; font-size: 1.5rem; color: var(--esali-white); }
.hero p { margin: 0; color: var(--esali-muted); max-width: 70ch; line-height: 1.55; }
.admin-storage-notice {
  margin: 0;
  max-width: 70ch;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(237, 174, 38, 0.4);
  background: rgba(237, 174, 38, 0.1);
  color: var(--esali-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.admin-storage-notice strong { color: var(--esali-gold-bright); }
.admin-storage-notice code {
  color: var(--esali-gold);
  font-size: 0.82em;
}
.add-partner-panel { margin-bottom: 1rem; }
.add-partner-hint {
  margin: 0 0 0.75rem;
  color: var(--esali-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.add-partner-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem 0.75rem;
  align-items: end;
}
.add-partner-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--esali-muted);
}
.add-partner-form label em { color: var(--esali-gold); font-style: normal; }
.add-partner-form input,
.add-partner-form select {
  width: 100%;
  border: 1px solid var(--esali-line-soft);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-weight: 500;
  background: var(--esali-navy-elevated);
  color: var(--esali-white);
}
.add-partner-form input::placeholder { color: var(--esali-muted-2); }
.add-partner-notes { grid-column: 1 / -1; }
.badge.source-manual {
  background: rgba(237, 174, 38, 0.14);
  color: var(--esali-gold-bright);
  border-color: rgba(237, 174, 38, 0.35);
}
.event-editor-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem 0.75rem;
  align-items: end;
}
.event-editor-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--esali-muted);
}
.event-editor-form label em { color: var(--esali-gold); font-style: normal; }
.event-editor-form input,
.event-editor-form select,
.event-editor-form textarea {
  width: 100%;
  border: 1px solid var(--esali-line-soft);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-weight: 500;
  background: var(--esali-navy-elevated);
  color: var(--esali-white);
  resize: vertical;
}
.event-editor-form input::placeholder,
.event-editor-form textarea::placeholder { color: var(--esali-muted-2); }
.event-editor-full { grid-column: 1 / -1; }
.event-editor-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
}
.event-editor-check input { width: auto; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem; margin: 0.5rem 0 1rem;
}
.stat {
  background: var(--esali-navy-card); border: 1px solid var(--esali-line-soft); border-radius: 14px;
  padding: 0.8rem 0.9rem; box-shadow: var(--eb-card-shadow);
}
.stat strong { display: block; font-size: 1.35rem; color: var(--esali-green-bright); }
.stat span { color: var(--esali-muted); font-size: 0.78rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; margin-bottom: 1rem; }
/* Author CSS must not override the HTML hidden attribute */
.toolbar[hidden],
.panel[hidden],
section[hidden],
[hidden] {
  display: none !important;
}

/* Shared queue status (multi-device / iPad sync) */
.sync-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.55);
  color: var(--esali-muted, #b8c4e0);
}
.sync-banner.is-ok {
  border-color: rgba(30, 122, 213, 0.45);
  background: rgba(30, 122, 213, 0.12);
  color: #bfdbfe;
}
.sync-banner.is-err {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(155, 34, 38, 0.2);
  color: #fecdd3;
}
.sync-banner strong {
  color: inherit;
}
.search { flex: 1 1 220px; min-width: 180px; }
.search input, .select, .notes-input {
  width: 100%; border: 1px solid var(--esali-line-soft); border-radius: 10px;
  padding: 0.65rem 0.8rem; font: inherit; background: var(--esali-navy-card); color: var(--esali-white);
}
.search input::placeholder, .notes-input::placeholder { color: var(--esali-muted-2); }
.list { display: grid; gap: 0.75rem; }
.card {
  background: var(--esali-navy-card); border: 1px solid var(--esali-line-soft); border-radius: 14px;
  box-shadow: var(--eb-card-shadow); overflow: hidden; display: grid;
}
@media (min-width: 640px) { .card.has-image { grid-template-columns: 160px 1fr; } }
.card-img { min-height: 140px; background: linear-gradient(145deg, #0d0f60, #1c2288) center/cover no-repeat; }
.card-body { padding: 0.95rem 1rem 1.05rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.45rem; }
.badge {
  display: inline-flex; border-radius: 999px; padding: 0.18rem 0.55rem;
  font-size: 0.7rem; font-weight: 700; background: rgba(255,255,255,0.06); color: var(--esali-muted);
  border: 1px solid var(--esali-line-soft);
}
.badge.status-pending { background: rgba(237, 174, 38, 0.14); color: var(--esali-gold-bright); border-color: rgba(237, 174, 38, 0.35); }
.badge.status-approved { background: rgba(30, 122, 213, 0.16); color: #9ec9ff; border-color: rgba(30, 122, 213, 0.4); }
.badge.status-rejected { background: rgba(155, 34, 38, 0.2); color: #fb7185; border-color: rgba(251, 113, 133, 0.3); }
.badge.status-removed { background: rgba(100, 116, 139, 0.25); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.35); }
.badge.status-archived { background: rgba(100, 116, 139, 0.22); color: #94a3b8; border-color: rgba(148, 163, 184, 0.4); }

/* Social drafts desk */
.social-help-panel { margin-bottom: 1rem; }
.social-draft-card .social-caption-details {
  margin-top: 0.65rem;
  border: 1px solid var(--esali-line-soft);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  background: rgba(0, 0, 0, 0.15);
}
.social-draft-card .social-caption-details summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--esali-muted);
  list-style: none;
}
.social-draft-card .social-caption-details summary::-webkit-details-marker { display: none; }
.social-caption-block { margin-top: 0.5rem; }
.social-caption-block strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--esali-gold-bright);
  margin: 0.45rem 0 0.25rem;
}
.social-caption-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--esali-muted);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  max-height: 12rem;
  overflow: auto;
}
.social-legacy-note {
  margin-top: 0.4rem !important;
  font-size: 0.8rem !important;
  color: var(--esali-gold-bright) !important;
}
.social-card-img-empty {
  background: linear-gradient(145deg, #0d0f60, #1c2288) !important;
}
.social-badge-vo {
  background: rgba(10, 147, 150, 0.18);
  color: #5eead4;
  border-color: rgba(10, 147, 150, 0.4);
}
.social-audio-script {
  border-left: 3px solid rgba(10, 147, 150, 0.65);
}

/* Social copy / script reader popup */
.social-copy-backdrop { z-index: 90; }
.social-copy-modal {
  max-width: min(560px, 96vw);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
}
.social-copy-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0 1.1rem 0.5rem;
  min-height: 8rem;
}
.social-copy-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--esali-white);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--esali-line-soft);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  max-height: min(52vh, 420px);
  overflow: auto;
  outline: none;
}
.social-copy-pre-script {
  font-size: 1.08rem;
  line-height: 1.65;
  border-left: 3px solid rgba(10, 147, 150, 0.75);
}
.social-copy-actions {
  flex-shrink: 0;
}

/* Queue quality control report */
.qc-report-body {
  max-height: min(50vh, 420px);
  overflow: auto;
  display: grid;
  gap: 0.5rem;
}
.qc-report-row {
  border: 1px solid var(--esali-line-soft);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  color: var(--esali-muted);
}
.qc-report-row strong {
  color: var(--esali-white);
  display: block;
  margin-bottom: 0.25rem;
}
.qc-issue {
  display: inline-block;
  margin: 0.15rem 0.25rem 0.15rem 0;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--esali-line-soft);
}
.qc-issue.sev-error {
  background: rgba(155, 34, 38, 0.2);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}
.qc-issue.sev-warn {
  background: rgba(237, 174, 38, 0.14);
  color: var(--esali-gold-bright);
  border-color: rgba(237, 174, 38, 0.35);
}
.qc-issue.sev-info {
  background: rgba(30, 122, 213, 0.14);
  color: #9ec9ff;
  border-color: rgba(30, 122, 213, 0.35);
}
.date-line { font-size: 0.82rem; color: var(--esali-muted); font-weight: 600; }
.card h3 { margin: 0.15rem 0 0.4rem; font-size: 1.05rem; color: var(--esali-white); }
.card p { margin: 0; color: var(--esali-muted); font-size: 0.9rem; line-height: 1.5; }
.card a { color: var(--esali-green-bright); }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.empty-with-actions {
  text-align: center;
  padding: 1.5rem 1rem;
}
.empty-with-actions .card-actions {
  justify-content: center;
}

/* Newsletter approved */
.newsletter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(237, 174, 38, 0.4);
  background: rgba(237, 174, 38, 0.1);
  color: var(--esali-gold-bright, #f5c040);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.newsletter-toggle.is-on {
  background: rgba(237, 174, 38, 0.22);
  border-color: rgba(237, 174, 38, 0.55);
}
.newsletter-toggle input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #eda626;
  cursor: pointer;
}
.card.card-newsletter {
  outline: 1px solid rgba(237, 174, 38, 0.35);
  outline-offset: 1px;
}
.badge.badge-newsletter {
  background: rgba(237, 174, 38, 0.16);
  color: var(--esali-gold-bright, #f5c040);
  border-color: rgba(237, 174, 38, 0.4);
}

/* Date range picker (dual-month calendar) */
.date-range-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.date-range-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: min(22rem, 70vw);
}
.date-range-trigger .date-range-icon {
  font-size: 0.95rem;
  line-height: 1;
}
.date-range-trigger.has-range {
  border-color: rgba(30, 122, 213, 0.55);
  color: #9ec9ff;
}
#dateRangeLabel {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.date-range-popover {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 80;
  min-width: min(36rem, 94vw);
  padding: 0.75rem 0.85rem 0.65rem;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.date-range-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 0.35rem;
}
.date-range-tab {
  font-size: 0.9rem;
  font-weight: 600;
  color: #60a5fa;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 0.25rem;
}
.date-range-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .date-range-months {
    grid-template-columns: 1fr;
  }
  .date-range-popover {
    left: 50%;
    transform: translateX(-50%);
    min-width: min(20rem, 94vw);
  }
}
.dr-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}
.dr-month-title {
  font-size: 0.95rem;
  color: #e2e8f0;
}
.dr-nav {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.dr-nav:hover {
  background: rgba(59, 130, 246, 0.15);
}
.dr-nav-spacer {
  width: 2rem;
  height: 2rem;
}
.dr-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
  margin-bottom: 0.25rem;
  text-align: center;
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}
.dr-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
}
.dr-day {
  aspect-ratio: 1;
  min-height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dr-day.is-empty {
  cursor: default;
  pointer-events: none;
}
.dr-day:not(.is-empty):hover {
  background: rgba(59, 130, 246, 0.18);
}
.dr-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.7);
  color: #93c5fd;
  font-weight: 700;
}
.dr-day.is-in-range {
  background: rgba(59, 130, 246, 0.18);
  border-radius: 0;
}
.dr-day.is-start,
.dr-day.is-end,
.dr-day.is-single {
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
}
.dr-day.is-start.is-in-range {
  border-radius: 999px 0 0 999px;
}
.dr-day.is-end.is-in-range {
  border-radius: 0 999px 999px 0;
}
.date-range-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

/* Public site date selector (header row) */
.eb-header-filters {
  gap: 0.65rem;
}
.eb-date-range {
  position: relative;
}
.eb-date-range .date-range-trigger.has-range .eb-filter-trigger-value,
.eb-date-range .date-range-trigger.open .eb-filter-trigger-value {
  color: var(--esali-gold-bright, #f5c040);
}
.eb-date-range .date-range-popover {
  left: 0;
  right: auto;
  z-index: 120;
}
@media (max-width: 720px) {
  .eb-date-range .date-range-popover {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    min-width: min(20rem, 94vw);
  }
}
.eb-date-range .date-range-footer .btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
}
.eb-date-range .date-range-footer .btn-primary {
  background: var(--esali-gold, #edae26);
  border-color: var(--esali-gold, #edae26);
  color: var(--esali-navy-deep, #0d0f60);
}
.seg-picks { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.65rem; }
.seg-pick {
  border: 1px dashed var(--esali-line-soft); background: transparent; border-radius: 999px;
  padding: 0.25rem 0.55rem; font-size: 0.72rem; font-weight: 600; cursor: pointer; color: var(--esali-muted);
}
.seg-pick.on {
  border-style: solid; border-color: var(--chip-color, var(--esali-green));
  background: rgba(237, 174, 38, 0.12); color: var(--esali-white);
}
.empty {
  text-align: center; padding: 2.5rem 1rem; color: var(--esali-muted);
  background: var(--esali-navy-card); border: 1px dashed var(--esali-line); border-radius: 14px;
}
.panel {
  background: var(--esali-navy-card); border: 1px solid var(--esali-line-soft); border-radius: 14px;
  padding: 1rem; box-shadow: var(--eb-card-shadow);
}
.panel h3 { margin: 0 0 0.5rem; color: var(--esali-white); }
.panel ul { margin: 0; padding-left: 1.1rem; color: var(--esali-muted); font-size: 0.88rem; line-height: 1.55; }
.panel code { color: var(--esali-lime); }
.sync-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; padding: 0.75rem 0.9rem; background: var(--esali-navy-card);
  border: 1px solid var(--esali-line-soft); border-radius: 14px; font-size: 0.85rem; color: var(--esali-muted);
}
.sync-bar strong { color: var(--esali-white); }
.footer { max-width: var(--eb-max); margin: 0 auto; padding: 0 1.25rem 2rem; color: var(--esali-muted-2); font-size: 0.8rem; }
.toast {
  position: fixed; bottom: 1.2rem; right: 1.2rem; background: var(--esali-navy-elevated); color: #fff;
  border: 1px solid var(--esali-line); padding: 0.7rem 1rem; border-radius: 10px; font-size: 0.88rem;
  opacity: 0; transform: translateY(8px); transition: 0.2s ease; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Discover / search for new events */
#discoverEventsPanel.is-open,
#discoverEventsPanel:not([hidden]) {
  display: block;
  border-color: rgba(237, 174, 38, 0.55);
  box-shadow: 0 0 0 1px rgba(237, 174, 38, 0.25), var(--eb-card-shadow);
}
#discoverEventsPanel[hidden] {
  display: none !important;
}
#discoverEventsPanel {
  scroll-margin-top: 1.25rem;
}
.discover-form {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.discover-form label span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--esali-muted);
  margin-bottom: 0.3rem;
}
.discover-form input {
  width: 100%;
  border: 1px solid var(--esali-line-soft);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: var(--esali-navy-elevated);
  color: var(--esali-white);
}
.discover-form input::placeholder { color: var(--esali-muted-2); }
.discover-source-actions { margin-top: 0.25rem !important; }
.discover-subhead {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
  color: var(--esali-gold-bright);
}
.discover-results {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(237, 174, 38, 0.28);
  background: rgba(13, 15, 96, 0.45);
}
.discover-results h4 {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--esali-white);
}
.discover-hit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.4rem 0;
  border-top: 1px solid var(--esali-line-soft);
  font-size: 0.86rem;
}
.discover-hit:first-of-type { border-top: 0; }
.discover-hit strong { color: var(--esali-white); font-weight: 600; }
.discover-hit .date-line { font-size: 0.78rem; }
.discover-partner-list {
  display: grid;
  gap: 0.4rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.discover-partner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--esali-line-soft);
  background: rgba(16, 31, 53, 0.55);
  font-size: 0.86rem;
}
.discover-partner-row .name { flex: 1 1 140px; color: var(--esali-white); font-weight: 600; }
.discover-partner-row .meta { color: var(--esali-muted); font-size: 0.78rem; }
.discover-partner-row a.btn { text-decoration: none; }
.discover-advanced {
  border: 1px solid var(--esali-line-soft);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  background: rgba(13, 15, 96, 0.35);
  color: var(--esali-muted);
  font-size: 0.88rem;
}
.discover-advanced summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--esali-gold-bright);
  list-style: none;
}
.discover-advanced summary::-webkit-details-marker { display: none; }
#gatherStatus { font-size: 0.88rem; line-height: 1.45; }
#btnGatherEvents:disabled { opacity: 0.65; cursor: wait; }
.admin-main-toolbar { align-items: center; gap: 0.65rem; }
.gather-status-inline {
  font-size: 0.88rem;
  color: var(--esali-muted);
  max-width: min(420px, 100%);
}
.stat-partners-checked {
  border-color: rgba(237, 174, 38, 0.45) !important;
  background: linear-gradient(135deg, rgba(237, 174, 38, 0.12), rgba(30, 122, 213, 0.08));
}
.stat-partners-checked .stat-of {
  font-size: 0.85em;
  opacity: 0.85;
  font-weight: 700;
}
.admin-advanced {
  cursor: default;
}
.admin-advanced summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--esali-muted);
  padding: 0.25rem 0;
}

/* Admin public-post preview */
.admin-preview-backdrop { z-index: 80; }
.admin-preview-modal {
  max-width: min(960px, 96vw);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 0;
}
.admin-preview-header {
  padding: 1.1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--esali-line-soft);
  padding-right: 3rem;
}
.admin-preview-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--esali-lime);
}
.admin-preview-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--esali-white);
}
.admin-preview-sub {
  margin: 0.35rem 0 0;
  color: var(--esali-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.admin-preview-body {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.15rem;
}
@media (min-width: 760px) {
  .admin-preview-body {
    grid-template-columns: minmax(240px, 300px) 1fr;
    align-items: start;
  }
}
.admin-preview-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--esali-muted);
}
.admin-preview-card-wrap {
  max-width: 300px;
}
.admin-preview-card-wrap .eb-card {
  cursor: default;
  pointer-events: none;
}
.admin-preview-detail {
  background: var(--esali-navy-elevated, #0d0f60);
  border: 1px solid var(--esali-line-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--eb-card-shadow);
}
.admin-preview-detail .eb-modal-media {
  border-radius: 0;
}
.admin-preview-detail .eb-modal-body h3 {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  color: var(--esali-white);
  line-height: 1.3;
}
.admin-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem 1.15rem;
  border-top: 1px solid var(--esali-line-soft);
  background: rgba(0, 0, 0, 0.18);
}
.admin-preview-actions .btn { min-height: 2.4rem; }
