/* ============================================================
   Nave — events listings, banner and event page
   ------------------------------------------------------------
   2.22.0 — Visual canon (Nave to 10, phase 3). Rewritten to the
   Esselith Design Canon with Roger's picks: category = a chip with
   a colour dot (no card tints), "calm" cards (lift on hover, a
   designed no-photo state, sentence-case dates), cards still link
   to registration / Church Center. One orange: the primary button
   fill (ink text). Nothing under 13px. Teal on light, white on dark.
   Older history: git log nave.css (2.4–2.8 notes lived here).
   ============================================================ */

:root {
  /* Brand — the suite tokens, with the Esselith defaults as the Core-less
     fallback. nave.php prints --ces-brand-* from the shared brand
     options after this file, so a saved brand applies either way. */
  --ces-brand-primary:    var(--es-brand-primary,   #ED8B00);
  --ces-brand-secondary:  var(--es-brand-secondary, #004F71);
  --ces-brand-secondary-dark: var(--es-brand-secondary-dark, color-mix(in srgb, var(--ces-brand-secondary) 80%, black));

  /* Faint brand washes over dark fills: lighten before the alpha so a
     dark church brand doesn't vanish into the deep teal. */
  --ces-glow-base:            color-mix(in srgb, var(--ces-brand-primary)   65%, white);
  --ces-glow-base-secondary:  color-mix(in srgb, var(--ces-brand-secondary) 65%, white);

  --ces-ink:        var(--es-ink, #071120);
  --ces-text:       var(--es-ink, #071120);
  --ces-body:       var(--es-text, #2E3D48);
  --ces-on-dark:    var(--es-text-on-dark, #E8ECF5);
  --ces-cream:      var(--es-surface, #E4E1DC);
  --ces-border:     var(--es-border, #E3E7EB);
  --ces-deep-a:     var(--es-deep-a, #064058);
  --ces-deep-b:     var(--es-deep-b, #04293A);
  --ces-charcoal:   7, 17, 32; /* ink, for rgba() shadows */

  --ces-shadow-card:  0 1px 2px rgba(var(--ces-charcoal), 0.10), 0 10px 28px rgba(var(--ces-charcoal), 0.16);
  --ces-shadow-hover: 0 2px 4px rgba(var(--ces-charcoal), 0.12), 0 18px 40px rgba(var(--ces-charcoal), 0.24);
  --ces-shadow-hero:  0 24px 60px rgba(var(--ces-charcoal), 0.30);

  --ces-font-body:    var(--es-font-body, 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --ces-font-display: var(--es-font-display, 'Playfair Display', Georgia, serif);
}

/* ─────────────────────────────────────
   SECTION BAND
───────────────────────────────────── */

/* 2.27.0 — the suite's band rhythm (Core's --es-space-band, 56 → 96px) and
   one set of colours per tone that everything inside reads:
   --ces-fg (titles), --ces-fg-body (text), --ces-accent (dates, links, eyebrows). */
.ces-events-section {
  --ces-focus: #fff;
  --ces-fg: #fff;
  --ces-fg-body: var(--ces-on-dark);
  --ces-accent: var(--ces-on-dark);
  --ces-rule: rgba(232, 236, 245, 0.16);
  --ces-tile: rgba(255, 255, 255, 0.10);
  position: relative;
  padding: var(--es-space-band, clamp(3.5rem, 7vw, 6rem)) 24px;
  font-family: var(--ces-font-body);
  color: var(--ces-text);
  background-color: var(--ces-deep-b);
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 0%,   color-mix(in srgb, var(--ces-glow-base)           13%, transparent), transparent 60%),
    radial-gradient(ellipse 80% 60% at 85% 100%, color-mix(in srgb, var(--ces-glow-base-secondary)  22%, transparent), transparent 60%),
    linear-gradient(165deg, var(--ces-deep-a), var(--ces-deep-b));
  isolation: isolate;
  overflow: visible;
}

/* tone="light": the suite's warm band, flat — the same Light as Core and
   Pulpit (2.27.1; 2.27.0 briefly made it the page with a third "Raised"
   choice, read as Light now). Double class so it wins on specificity. */
.ces-events-section.ces-events-section--light {
  --ces-focus: var(--ces-brand-secondary);
  --ces-fg: var(--ces-ink);
  --ces-fg-body: var(--ces-body);
  --ces-accent: var(--ces-brand-secondary);
  --ces-rule: color-mix(in srgb, var(--ces-ink) 14%, transparent);
  --ces-tile: #fff;
  color: var(--ces-body);
  background: var(--ces-cream);
}
.ces-wrap { max-width: var(--es-container, 1200px); margin: 0 auto; }

/* Two Nave blocks of one tone in a row read as one band: no doubled gap. */
.ces-block:has(> .ces-events-section:not(.ces-events-section--light)) + .ces-block:has(> .ces-events-section:not(.ces-events-section--light)),
.ces-block:has(> .ces-events-section--light) + .ces-block:has(> .ces-events-section--light) { margin-block-start: 0; }
.ces-block:has(> .ces-events-section:not(.ces-events-section--light)) + .ces-block > .ces-events-section:not(.ces-events-section--light),
.ces-block:has(> .ces-events-section--light) + .ces-block > .ces-events-section--light { padding-top: 0; }
.ces-events-section--light .ces-section-title    { color: var(--ces-text); }
.ces-events-section--light .ces-section-subtitle { color: var(--ces-body); }
.ces-events-section--light .ces-section-eyebrow,
.ces-events-section--light .ces-section-label-divider { color: var(--ces-brand-secondary); }
/* The orange accent word is dark-band only (6.0:1); on light it is teal. */
.ces-events-section--light .ces-section-title em { color: var(--ces-brand-secondary); }

/* Themes with global `svg path { fill }` rules would empty our icons. */
.ces-events-section svg,
.ces-banner-stack svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.ces-events-section svg[stroke="currentColor"],
.ces-events-section svg[fill="none"],
.ces-banner-stack svg[stroke="currentColor"],
.ces-banner-stack svg[fill="none"],
.ces-events-section svg[stroke="currentColor"] path,
.ces-events-section svg[fill="none"] path,
.ces-banner-stack svg[stroke="currentColor"] path,
.ces-banner-stack svg[fill="none"] path {
  stroke: currentColor !important;
  fill: none !important;
}

/* 2.27.0 — Core's section header: eyebrow, title and intro on the left,
   "See all events" on the right, a hairline under it. */
.ces-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 0 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ces-rule);
}
.ces-section-head-text { min-width: 0; }
.ces-section-head .ces-section-title { margin: 0; }
.ces-section-intro {
  margin: 12px 0 0;
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ces-fg-body);
}
.ces-section-head .ces-section-more { margin-top: 0; flex-shrink: 0; }
@media (max-width: 782px) {
  .ces-section-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: 2rem; }
}
.ces-section-eyebrow {
  font-family: var(--ces-font-body);
  font-size: var(--es-eyebrow, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}
.ces-section-title {
  font-family: var(--ces-font-display);
  font-size: var(--es-h2, clamp(1.625rem, 1.42rem + 0.88vw, 2.375rem));
  font-weight: 400;
  color: var(--ces-fg);
  margin: 0 0 12px;
  letter-spacing: 0;
  line-height: 1.1;
}
/* Opt-in accent: "Upcoming <em>Events</em>" — the one large orange word, dark band only. */
.ces-section-title em {
  font-family: var(--ces-font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ces-brand-primary);
}
.ces-section-subtitle {
  font-family: var(--ces-font-body);
  font-size: var(--es-lead, 1.3125rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ces-on-dark);
  max-width: 540px;
  margin: 0 auto;
}
.ces-empty-note {
  margin: 0;
  padding: 48px 20px;
  text-align: center;
  font-size: 1.0625rem;
  color: var(--ces-on-dark);
}
.ces-events-section--light .ces-empty-note { color: var(--ces-body); }

.ces-section-more {
  display: inline-block;
  margin-top: 13px;
  padding: 10px 2px;
  font-family: var(--ces-font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ces-on-dark) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px;
}
.ces-section-more:hover { text-decoration-thickness: 2px !important; }
.ces-section-more:focus-visible { outline: 3px solid var(--ces-focus); outline-offset: 3px; border-radius: 4px; }
.ces-events-section--light .ces-section-more { color: var(--ces-brand-secondary) !important; }

/* 2.23.0 — the "Coming up" strip on its own: a slim band. */
.ces-events-section.ces-events-section--strip { padding: 34px 24px; }
.ces-events-section--strip .ces-upcoming-strip { margin-top: 0; }

/* ─────────────────────────────────────
   CATEGORY CHIP (Roger's pick: a label with the colour as a dot)
───────────────────────────────────── */

.ces-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ces-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ces-brand-secondary);
}
.ces-chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}
.ces-chip--on-dark {
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: rgba(var(--ces-charcoal), 0.62);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ─────────────────────────────────────
   DESIGNED NO-PHOTO STATE (month + day on the deep teal)
───────────────────────────────────── */

.ces-no-photo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ces-on-dark);
  background:
    radial-gradient(120% 90% at 80% 10%, color-mix(in srgb, var(--ces-glow-base-secondary) 30%, transparent), transparent 60%),
    linear-gradient(160deg, var(--ces-brand-secondary) 0%, var(--ces-deep-b) 100%);
}
.ces-no-photo-month {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ces-no-photo-day {
  font-family: var(--ces-font-display);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

/* ─────────────────────────────────────
   FEATURED HERO
───────────────────────────────────── */

/* 2.27.0 — flat on the band like Core's sections: no card, no shadow. The
   words take the band's colours (--ces-fg / --ces-fg-body). */
.ces-featured-hero {
  position: relative;
  margin: 0;
  padding: 0;
  color: var(--ces-fg);
  isolation: isolate;
}
/* On the events page a rule sets the featured events apart from the list below. */
.ces-events-page .ces-featured-hero,
.ces-events-page .ces-featured-group { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--ces-rule); }
/* 2.27.1 — two or more featured events: equal cards under a "Featured" label. */
.ces-featured-group-label {
  margin: 0 0 1rem;
  font-size: var(--es-eyebrow, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ces-accent);
}
/* 2.25.0 (option A, signed off on the board): the photo is its own 16:9
   panel at full strength, never cut — beside the words on wide screens,
   above them on phones. Planning Center photos are 16:9, so they fit exactly. */
.ces-featured-hero.has-image {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 48px;
}
.ces-featured-image {
  display: block;
  order: -1;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--es-radius-card, 16px);
  background: var(--ces-deep-a);
}
.ces-featured-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.ces-featured-hero.has-image .ces-featured-content { max-width: none; }
@media (max-width: 900px) {
  .ces-featured-hero.has-image { grid-template-columns: 1fr; row-gap: 22px; }
}
.ces-featured-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ces-featured-eyebrow {
  font-size: var(--es-eyebrow, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ces-accent);
}
.ces-featured-when {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ces-accent);
}
.ces-featured-title {
  margin: 0 0 14px;
  font-family: var(--ces-font-display);
  font-size: var(--es-h2, clamp(1.625rem, 1.42rem + 0.88vw, 2.375rem));
  font-weight: 400;
  line-height: 1.12;
  color: var(--ces-fg);
  text-wrap: balance;
}
.ces-featured-desc {
  margin: 0 0 16px;
  max-width: 480px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ces-fg-body);
}
.ces-featured-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  font-size: 0.9375rem;
  color: var(--ces-fg-body);
}
/* On a light band: the category as a plain chip, the countdown on a solid
   deep-teal panel (its white digits stay AAA), the second button outlined. */
.ces-events-section--light .ces-chip--on-dark {
  padding: 0;
  background: none;
  color: var(--ces-brand-secondary);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.ces-events-section--light .ces-countdown { background: var(--ces-deep-b); border-color: var(--ces-deep-b); }
.ces-events-section--light .ces-featured-hero .ces-btn-ghost,
.ces-events-section--light .ces-featured-hero .ces-btn-ghost:hover,
.ces-events-section--light .ces-featured-hero .ces-btn-ghost:focus {
  background: transparent !important;
  color: var(--ces-brand-secondary) !important;
  border-color: var(--ces-brand-secondary) !important;
}

/* Countdowns */
.ces-countdown-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 28px;
}
.ces-countdown {
  padding: 14px 18px;
  border-radius: var(--es-radius-card, 16px);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* Block, not flex: "— code EARLY" must wrap as one sentence. */
.ces-countdown-label {
  display: block;
  margin-bottom: 10px;
  line-height: 1.4;
  font-size: 0.8125rem;
  font-weight: 600;
  /* Pure white, not --ces-on-dark: on the translucent countdown panel the
     near-white measured 6.1–6.5:1 live; white clears AAA (~7.2:1). */
  color: #fff;
}
.ces-countdown-label svg { margin: -2px 4px 0 0; }
.ces-countdown-label strong { color: #fff; }
.ces-countdown-clock { display: flex; gap: 8px; }
.ces-cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  padding: 8px 10px 6px;
  border-radius: var(--es-radius-sm, 8px);
  background: rgba(var(--ces-charcoal), 0.35);
}
.ces-cd-num {
  font-family: var(--ces-font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ces-cd-unit {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--ces-on-dark);
}

/* Buttons — the suite pill: sentence case, no arrow, hover = lift */
.ces-featured-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ces-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--ces-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.ces-btn:hover { transform: translateY(-2px); }
/* !important: a theme's a:hover / button:hover would recolor these. */
.ces-btn-primary,
.ces-btn-primary:hover,
.ces-btn-primary:focus {
  background: var(--ces-brand-primary) !important;
  color: var(--ces-ink) !important;
  border: 2px solid var(--ces-brand-primary) !important;
}
/* Secondary on dark (canon 2026-07-19): white fill + teal label. 2.26.2 (arc 5):
   hover is the lift only — it no longer flips to a teal fill. */
.ces-btn-ghost,
.ces-btn-ghost:hover,
.ces-btn-ghost:focus {
  background: #fff !important;
  color: var(--ces-brand-secondary) !important;
  border: 2px solid #fff !important;
}
/* 2.27.0 — an outlined pill (teal on light, white on dark), the teal fill
   (white text only on solid teal), and a smaller size for list rows. */
.ces-btn-outline,
.ces-btn-outline:hover,
.ces-btn-outline:focus {
  background: transparent !important;
  color: var(--ces-accent) !important;
  border: 2px solid currentColor !important;
}
.ces-events-section:not(.ces-events-section--light) .ces-btn-outline,
.ces-events-section:not(.ces-events-section--light) .ces-btn-outline:hover { color: #fff !important; }
.ces-btn-teal,
.ces-btn-teal:hover,
.ces-btn-teal:focus {
  background: var(--ces-brand-secondary) !important;
  color: #fff !important;
  border: 2px solid var(--ces-brand-secondary) !important;
}
.ces-btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }
.ces-btn:focus-visible { outline: 3px solid var(--ces-focus, #fff); outline-offset: 3px; }
.ces-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─────────────────────────────────────
   BENTO GRID
───────────────────────────────────── */

/* 2.25.0 (option A): every card is a 16:9 photo with the words below it, so
   rows size to their content and nothing is cut. The first card of a 3- or
   5-card grid is one full-width row, photo beside the words. */
.ces-bento-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 22px;
  max-width: 1320px;
  margin: 0 auto;
}
.ces-size-small,
.ces-size-medium { grid-column: span 1; }
.ces-size-wide,
.ces-size-large  { grid-column: span 2; }

/* 2–6 cards get a designed layout that ignores per-card sizes; 7+ use the sizes. */
.ces-bento-board.ces-bento-count-2,
.ces-bento-board.ces-bento-count-4 { grid-template-columns: repeat(2, 1fr); }
.ces-bento-board.ces-bento-count-6 { grid-template-columns: repeat(3, 1fr); }
.ces-bento-board.ces-bento-count-2 > .ces-event-card,
.ces-bento-board.ces-bento-count-4 > .ces-event-card,
.ces-bento-board.ces-bento-count-5 > .ces-event-card:nth-child(n+2),
.ces-bento-board.ces-bento-count-6 > .ces-event-card { grid-column: span 1; }
.ces-bento-board.ces-bento-count-3 > .ces-event-card:nth-child(n+2) { grid-column: span 2; }
.ces-bento-board.ces-bento-count-3 > .ces-event-card:nth-child(1),
.ces-bento-board.ces-bento-count-5 > .ces-event-card:nth-child(1) { grid-column: 1 / -1; }

@media (max-width: 1024px) {
  .ces-bento-board,
  .ces-bento-board.ces-bento-count-6 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ces-bento-board.ces-bento-count-3 > .ces-event-card:nth-child(n+2) { grid-column: span 1; }
}
@media (max-width: 600px) {
  .ces-bento-board,
  .ces-bento-board[class*="ces-bento-count-"] { grid-template-columns: 1fr; gap: 18px; }
  .ces-bento-board .ces-event-card,
  .ces-bento-board[class*="ces-bento-count-"] > .ces-event-card { grid-column: span 1; }
}

/* ─────────────────────────────────────
   BENTO CARD — calm: lift on hover, no tilt, no tint
───────────────────────────────────── */

.ces-event-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ces-deep-b);
  box-shadow: var(--ces-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ces-event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ces-shadow-hover);
}
.ces-card-link {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.ces-card-photo {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ces-deep-a);
}
.ces-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ces-event-card:hover .ces-card-image { transform: scale(1.03); }
/* The wide first card of a 3- or 5-card grid: photo beside the words. */
.ces-bento-count-3 > .ces-event-card:nth-child(1) .ces-card-link,
.ces-bento-count-5 > .ces-event-card:nth-child(1) .ces-card-link { flex-direction: row; }
.ces-bento-count-3 > .ces-event-card:nth-child(1) .ces-card-photo,
.ces-bento-count-5 > .ces-event-card:nth-child(1) .ces-card-photo { width: 58%; }
.ces-bento-count-3 > .ces-event-card:nth-child(1) .ces-card-caption,
.ces-bento-count-5 > .ces-event-card:nth-child(1) .ces-card-caption { justify-content: center; padding: 28px 36px; }
.ces-bento-count-3 > .ces-event-card:nth-child(1) .ces-card-cta,
.ces-bento-count-5 > .ces-event-card:nth-child(1) .ces-card-cta { margin-top: 8px; }
@media (max-width: 600px) {
  .ces-bento-count-3 > .ces-event-card:nth-child(1) .ces-card-link,
  .ces-bento-count-5 > .ces-event-card:nth-child(1) .ces-card-link { flex-direction: column; }
  .ces-bento-count-3 > .ces-event-card:nth-child(1) .ces-card-photo,
  .ces-bento-count-5 > .ces-event-card:nth-child(1) .ces-card-photo { width: auto; }
  .ces-bento-count-3 > .ces-event-card:nth-child(1) .ces-card-caption,
  .ces-bento-count-5 > .ces-event-card:nth-child(1) .ces-card-caption { padding: 16px 20px 20px; }
}
/* No photo: the date tile sits top-right, clear of the caption. */
.ces-card-placeholder.ces-no-photo {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 22px 24px;
}
.ces-size-large .ces-no-photo-day,
.ces-bento-count-3 > .ces-event-card:nth-child(1) .ces-no-photo-day,
.ces-bento-count-5 > .ces-event-card:nth-child(1) .ces-no-photo-day { font-size: 4.5rem; }

/* Words below the photo, on the card's deep teal (2.25.0: no longer over it). */
.ces-card-caption {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 20px 20px;
  color: #fff;
}
/* The date tile sits under the date badge in a carousel card. */
.ces-carousel-placeholder.ces-no-photo { padding-top: 28px; }
.ces-card-category { align-self: flex-start; margin: 0 0 8px; }
.ces-card-when {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ces-on-dark);
}
.ces-card-title {
  margin: 0;
  font-family: var(--ces-font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.ces-size-large .ces-card-title,
.ces-bento-count-3 > .ces-event-card:nth-child(1) .ces-card-title,
.ces-bento-count-5 > .ces-event-card:nth-child(1) .ces-card-title { font-size: 1.75rem; }
.ces-card-desc {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ces-on-dark);
}
.ces-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--ces-on-dark);
}
.ces-card-cta {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
.ces-event-card:hover .ces-card-cta { text-decoration-color: #fff; }
.ces-card-link:focus-visible {
  outline: 3px solid var(--ces-focus);
  outline-offset: 4px;
  border-radius: 16px;
}

/* ─────────────────────────────────────
   GRID (2.27.0) — equal cards sitting on the band, like Core's: a 16:9
   photo (or the date tile), the words under it in the band's colours.
   Three across (two for 2 or 4 events); a swipe row on phones.
   The bento rules above now serve only Events → Featured layout.
───────────────────────────────────── */

.ces-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
}
.ces-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ces-grid--1 { grid-template-columns: minmax(0, 760px); }
.ces-grid .ces-event-card {
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
}
.ces-grid .ces-event-card:hover { transform: none; box-shadow: none; }
.ces-grid .ces-card-photo { border-radius: var(--es-radius-card, 16px); }
.ces-grid .ces-card-caption { padding: 16px 0 0; color: var(--ces-fg); }
.ces-grid .ces-card-when { color: var(--ces-accent); font-size: 0.875rem; }
.ces-grid .ces-card-title { color: var(--ces-fg); font-weight: 400; font-size: 1.4375rem; }
.ces-grid .ces-card-desc,
.ces-grid .ces-card-location { color: var(--ces-fg-body); }
.ces-grid .ces-card-cta { color: var(--ces-accent); text-decoration-color: currentColor; }
.ces-grid .ces-event-card:hover .ces-card-cta { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
.ces-grid .ces-card-link:focus-visible { outline-offset: 6px; }
.ces-events-section:not(.ces-events-section--light) .ces-grid .ces-chip { color: var(--ces-on-dark); }
@media (max-width: 1024px) {
  .ces-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ces-grid,
  .ces-grid--2,
  .ces-grid--1 {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 4px 16px 12px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .ces-grid::-webkit-scrollbar { display: none; }
  .ces-grid > .ces-event-card,
  .ces-grid > .ces-sched-card { flex: 0 0 82%; scroll-snap-align: start; }
  .ces-grid > .ces-event-card:only-child,
  .ces-grid > .ces-sched-card:only-child { flex-basis: 100%; }
  /* 2.28.1: featured events stack — every one in view, none swiped away. */
  .ces-featured-group .ces-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }
}

/* ─────────────────────────────────────
   EVENTS PAGE (2.28.0) — each event once, as a card with its schedule
───────────────────────────────────── */

.ces-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 2.25rem; }
.ces-filter-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  font-family: var(--ces-font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  background: var(--ces-tile) !important;
  color: var(--ces-fg) !important;
  border: 1px solid var(--ces-rule) !important;
  box-shadow: none !important;
}
.ces-filter-chip[aria-pressed="true"] {
  background: var(--ces-brand-secondary) !important;
  border-color: var(--ces-brand-secondary) !important;
  color: #fff !important;
}
.ces-filter-chip:focus-visible { outline: 3px solid var(--ces-focus); outline-offset: 2px; }

/* position: relative so the cards' hidden screen-reader text stays inside its
   card (it is position: absolute) instead of widening the page from a swipe row. */
.ces-sched-card { position: relative; min-width: 0; }
.ces-sched-card[hidden] { display: none; }
.ces-sched-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--es-radius-card, 16px);
  background: var(--ces-deep-a);
}
.ces-sched-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.ces-sched-cat { margin: 16px 0 0; }
.ces-sched-when {
  margin: 14px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ces-accent);
}
.ces-sched-cat + .ces-sched-when { margin-top: 6px; }
.ces-sched-title {
  margin: 6px 0 4px;
  font-family: var(--ces-font-display);
  font-size: 1.4375rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ces-fg);
}
.ces-sched-card.is-featured .ces-sched-title { font-size: 1.75rem; }
.ces-sched-desc { margin: 4px 0 6px; font-size: 1rem; line-height: 1.55; color: var(--ces-fg-body); }
.ces-sched-note { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ces-fg-body); }
.ces-sched-act { margin-top: 8px; }
.ces-sched-card.is-featured .ces-sched-act { margin-top: 14px; }
/* 2.30.1 (Roger) — three or four featured: the soonest across the top, its
   photo two thirds of the width; the others beneath as full cards, never
   smaller than the Coming up cards (four: three across, the same size;
   three: two across, bigger). Phone: one stack, every card the same size. */
.ces-bento { display: grid; gap: 48px; }
.ces-bento > .is-lead {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: 28px;
  align-items: center;
}
.ces-bento > .is-lead .ces-sched-body > :first-child { margin-top: 0; }
.ces-sched-card.is-lead .ces-sched-title { font-size: 2.125rem; }
.ces-bento-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.ces-bento--4 .ces-bento-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .ces-bento { gap: 40px; }
  .ces-bento > .is-lead { display: block; }
  .ces-bento > .is-lead .ces-sched-body > :first-child { margin-top: 16px; }
  /* Four on a tablet: two by two, soonest first (no card left alone on a row). */
  .ces-bento--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .ces-bento--4 .ces-bento-side { display: contents; }
  .ces-bento--4 .ces-sched-card.is-lead .ces-sched-title { font-size: 1.75rem; }
}
@media (max-width: 600px) {
  .ces-bento,
  .ces-bento--4 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ces-bento-side,
  .ces-bento--4 .ces-bento-side { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ces-sched-card.is-lead .ces-sched-title { font-size: 1.5rem; }
}
.ces-agenda-more { margin-top: 36px; }
.ces-agenda > .ces-featured-group-label { margin-bottom: 1.25rem; }
.ces-text-link {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ces-accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.ces-text-link:hover { text-decoration-thickness: 2px !important; }
.ces-text-link:focus-visible { outline: 3px solid var(--ces-focus); outline-offset: 2px; border-radius: 3px; }

.ces-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 28px;
  border-radius: var(--es-radius-card, 16px);
  text-align: center;
  background: var(--ces-tile);
  box-shadow: inset 0 0 0 1px var(--ces-rule);
}
.ces-empty-title {
  margin: 0 0 8px;
  font-family: var(--ces-font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ces-fg);
}
.ces-empty p { margin: 0 0 18px; color: var(--ces-fg-body); }
.ces-empty p:last-child { margin-bottom: 0; }

/* Themes style bare headings (font, weight, colour); these are ours. */
.ces-events-section .ces-section-title,
.ces-events-section .ces-featured-title,
.ces-events-section .ces-sched-title,
.ces-events-section .ces-empty-title,
.ces-events-section .ces-card-title { font-family: var(--ces-font-display); font-weight: 400; color: var(--ces-fg); }
.ces-featured-location { align-items: flex-start; }
.ces-featured-location svg { margin-top: 3px; }
.ces-featured-schedule { margin: -4px 0 12px; font-size: 0.9375rem; font-weight: 600; color: var(--ces-fg-body); }

@media (max-width: 600px) {
  .ces-events-section { padding-inline: 16px; }
  .ces-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
  .ces-filter-chip { flex-shrink: 0; }
  .ces-sched-card.is-featured .ces-sched-title { font-size: 1.5rem; }
}

/* Arrival: a short fade-up, staggered. */
.ces-event-card,
.ces-featured-hero {
  opacity: 0;
  animation: ces-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ces-event-card:nth-child(2) { animation-delay: 0.08s; }
.ces-event-card:nth-child(3) { animation-delay: 0.16s; }
.ces-event-card:nth-child(4) { animation-delay: 0.24s; }
.ces-event-card:nth-child(5) { animation-delay: 0.32s; }
.ces-event-card:nth-child(n+6) { animation-delay: 0.4s; }
@keyframes ces-fade-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────
   SITE-WIDE BANNER
   A deep-teal bar above the header; its button is the one orange.
───────────────────────────────────── */

.ces-banner-stack {
  position: sticky;
  top: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
}
body.admin-bar .ces-banner-stack { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ces-banner-stack { top: 46px; } }

.ces-priority-banner {
  position: relative;
  overflow: hidden;
  padding: 10px 56px 10px 22px;
  border-radius: 999px;
  font-family: var(--ces-font-body);
  color: #fff;
  background: linear-gradient(120deg, var(--ces-deep-a) 0%, var(--ces-deep-b) 100%);
  box-shadow: 0 10px 28px rgba(var(--ces-charcoal), 0.22), 0 2px 6px rgba(var(--ces-charcoal), 0.10);
  animation: ces-banner-slide-down 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.ces-priority-banner:nth-child(2) { animation-delay: 0.12s; }
.ces-priority-banner:nth-child(n+3) { animation-delay: 0.24s; }
.ces-priority-banner.is-dismissed { display: none; }

/* 2.21.0 — schedule decided at view time by nave.js (cache-safe). */
.ces-banner-stack .ces-priority-banner.is-off-schedule { display: none !important; }
.ces-banner-stack.is-empty,
.ces-banner-stack:not(:has(.ces-priority-banner:not(.is-off-schedule):not(.is-dismissed))) { display: none; }

/* Rotation: banners share one grid cell so the swap can overlap. */
.ces-banner-stack.is-rotating {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "banners" "dots";
  gap: 0;
}
.ces-banner-stack.is-rotating .ces-priority-banner { grid-area: banners; display: none; animation: none; }
.ces-banner-stack.is-rotating .ces-priority-banner.is-active {
  display: block;
  animation: ces-banner-slide-in-right 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.ces-banner-stack.is-rotating .ces-priority-banner.is-exiting {
  display: block;
  pointer-events: none;
  animation: ces-banner-slide-out-left 0.55s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
}
.ces-banner-stack.is-rotating .ces-banner-dots { grid-area: dots; padding-top: 10px; }
@keyframes ces-banner-slide-in-right { 0% { opacity: 0; transform: translateX(60px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes ces-banner-slide-out-left { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(-60px); } }
@keyframes ces-banner-slide-down { 0% { transform: translateY(-120%); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

.ces-banner-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
/* 24px target around an 8px dot. !important: bare <button>s, so a theme's
   button:hover / :focus can't paint them. */
.ces-banner-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  cursor: pointer;
}
.ces-banner-dot::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(var(--ces-charcoal), 0.28);
  transition: width 0.25s ease, left 0.25s ease, background 0.2s ease;
}
.ces-banner-dot:hover::before { background: rgba(var(--ces-charcoal), 0.5); }
.ces-banner-dot.is-active::before { left: 2px; width: 20px; background: var(--ces-brand-secondary); }
.ces-banner-dot:focus-visible { outline: 2px solid var(--ces-brand-secondary); outline-offset: 0; }
.ces-banner-stack:not(.is-rotating) .ces-banner-dots,
.ces-banner-stack.is-rotating[data-banner-count="1"] .ces-banner-dots { display: none; }

/* Message centred whatever the eyebrow and button widths. */
.ces-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "eyebrow text cta";
  align-items: center;
  gap: 18px;
}
.ces-banner-pulse-row {
  grid-area: eyebrow;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ces-banner-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ces-on-dark);
}
.ces-banner-pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.ces-banner-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  animation: ces-banner-pulse 1.6s ease-out infinite;
}
@keyframes ces-banner-pulse { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(2.2); opacity: 0; } }
/* While actually live (nave.js reads Pulpit Live's status): the pulse quickens. */
.ces-priority-banner.is-live-now .ces-banner-eyebrow { color: #fff; }
.ces-priority-banner.is-live-now .ces-banner-pulse::before { animation-duration: 1.1s; }

.ces-banner-text {
  grid-area: text;
  justify-self: center;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: #fff;
}
.ces-banner-cta,
.ces-banner-cta:hover,
.ces-banner-cta:focus {
  background: var(--ces-brand-primary) !important;
  color: var(--ces-ink) !important;
}
.ces-banner-cta {
  grid-area: cta;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none !important;
  transition: transform 0.18s ease;
}
.ces-banner-cta:hover { transform: translateY(-1px); }
.ces-banner-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.ces-banner-dismiss {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ces-banner-dismiss:hover { background: rgba(255, 255, 255, 0.24) !important; }
.ces-banner-dismiss:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 600px) {
  .ces-banner-stack { padding: 8px 12px; gap: 6px; }
  .ces-priority-banner { padding: 12px 48px 12px 16px; border-radius: var(--es-radius-card, 16px); }
  .ces-banner-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .ces-banner-text { font-size: 0.9375rem; line-height: 1.35; text-align: left; }
  .ces-banner-cta { font-size: 0.875rem; padding: 6px 16px; }
  .ces-banner-dismiss { right: 8px; top: 10px; transform: none; }
}
/* Rotated phone: a compact bar. */
@media (max-height: 500px) and (orientation: landscape) {
  .ces-priority-banner { padding: 8px 48px 8px 16px; border-radius: var(--es-radius-card, 16px); }
  .ces-banner-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
  .ces-banner-text { flex: 1; min-width: 180px; text-align: left; font-size: 0.9375rem; }
}

/* ─────────────────────────────────────
   SECTION LABELS (Featured / Also upcoming)
───────────────────────────────────── */

.ces-section-label {
  max-width: 1320px;
  margin: 0 auto 32px;
  text-align: center;
}
.ces-section-label-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 60px auto 24px;
  padding: 0 40px;
  color: #fff;
}
.ces-featured-section > .ces-section-label-divider { margin-top: 0; }
.ces-section-label-divider::before,
.ces-section-label-divider::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.ces-section-label-tag {
  font-family: var(--ces-font-body);
  font-size: var(--es-eyebrow, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: inherit;
}
.ces-featured-section { margin-bottom: 24px; }

/* ─────────────────────────────────────
   CAROUSEL
───────────────────────────────────── */

.ces-standard-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.ces-carousel-wrap { position: relative; }
.ces-carousel {
  display: flex;
  gap: 18px;
  padding: 12px 10px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* 2.26.5 — snap the first card to the padding, not the edge, so its
     outline and shadow aren't cut off on the left. */
  scroll-padding-inline: 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
}
.ces-events-section--light .ces-carousel { scrollbar-color: rgba(var(--ces-charcoal), 0.25) transparent; }
.ces-carousel::-webkit-scrollbar { height: 6px; }
.ces-carousel::-webkit-scrollbar-thumb { background: rgba(var(--ces-charcoal), 0.25); border-radius: 999px; }

/* !important: bare <button>s — pin against a theme's button:hover / :focus. */
.ces-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: #fff !important;
  border: 1px solid rgba(var(--ces-charcoal), 0.12) !important;
  color: var(--ces-ink) !important;
  box-shadow: 0 6px 18px rgba(var(--ces-charcoal), 0.22);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, background-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.ces-carousel-arrow svg { display: block; width: 20px; height: 20px; pointer-events: none; }
.ces-carousel-arrow svg path { stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ces-carousel-arrow:hover:not(:disabled) {
  background: var(--ces-brand-secondary) !important;
  border-color: var(--ces-brand-secondary) !important;
  color: #fff !important;
}
.ces-carousel-arrow:focus-visible { outline: 3px solid var(--ces-focus); outline-offset: 3px; }
.ces-carousel-arrow:disabled { opacity: 0; pointer-events: none; }
.ces-carousel-prev { left: -10px; }
.ces-carousel-next { right: -10px; }
@media (max-width: 782px) {
  .ces-carousel-arrow { display: none; }
  .ces-carousel { padding-left: 16px; padding-right: 16px; scroll-padding-inline: 16px; }
}

.ces-carousel-card {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: var(--es-radius-card, 16px);
  background: #fff;
  box-shadow: var(--ces-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ces-carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px var(--ces-brand-secondary), var(--ces-shadow-hover);
}
.ces-carousel-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.ces-carousel-link:focus-visible { outline: 3px solid var(--ces-focus); outline-offset: 3px; border-radius: var(--es-radius-card, 16px); }
/* 2.26.5 — the ring goes on the card: the card's overflow: hidden cut the link's own. */
@supports selector(:has(a)) {
  .ces-carousel-link:focus-visible { outline: none; }
  .ces-carousel-card:has(.ces-carousel-link:focus-visible) { outline: 3px solid var(--ces-focus); outline-offset: 3px; }
}
/* 2.25.0 — 16:9, the shape Planning Center photos come in: nothing cut. */
.ces-carousel-photo {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ces-deep-b);
}
.ces-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ces-carousel-card:hover .ces-carousel-image { transform: scale(1.03); }
.ces-carousel-when-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: rgba(var(--ces-charcoal), 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ces-carousel-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}
.ces-carousel-title {
  margin: 2px 0 0;
  font-family: var(--ces-font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ces-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ces-carousel-desc {
  margin: 2px 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ces-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ces-carousel-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ces-border);
}
.ces-carousel-meta-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ces-carousel-location,
.ces-carousel-recurrence {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--ces-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 2.27.0 — may carry "· through Dec 4", so it wraps instead of cutting off. */
.ces-carousel-recurrence { color: var(--ces-brand-secondary); font-weight: 600; align-items: flex-start; white-space: normal; line-height: 1.35; }
.ces-carousel-recurrence svg { margin-top: 1px; }
.ces-carousel-view {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ces-brand-secondary);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
.ces-carousel-card:hover .ces-carousel-view { text-decoration-color: currentColor; }

@media (max-width: 600px) {
  .ces-carousel-card { flex: 0 0 250px; }
}

/* ─────────────────────────────────────
   ACCESSIBILITY + MOTION
───────────────────────────────────── */

@media (hover: none) {
  .ces-event-card:hover,
  .ces-carousel-card:hover { transform: none; }
  .ces-event-card:hover .ces-card-image,
  .ces-carousel-card:hover .ces-carousel-image { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ces-event-card,
  .ces-featured-hero,
  .ces-priority-banner { animation: none; opacity: 1; }
  .ces-event-card,
  .ces-carousel-card,
  .ces-card-image,
  .ces-carousel-image,
  .ces-btn,
  .ces-banner-cta,
  .ces-banner-dot::before,
  .ces-upcoming-link { transition: none; }
  .ces-event-card:hover,
  .ces-carousel-card:hover,
  .ces-btn:hover,
  .ces-banner-cta:hover,
  .ces-upcoming-link:hover { transform: none; }
  .ces-event-card:hover .ces-card-image,
  .ces-carousel-card:hover .ces-carousel-image { transform: none; }
  .ces-carousel { scroll-behavior: auto; }
  .ces-banner-pulse::before { animation: none; opacity: 0.3; }
  .ces-banner-stack.is-rotating .ces-priority-banner.is-active { animation: none; transform: none; opacity: 1; }
  .ces-banner-stack.is-rotating .ces-priority-banner.is-exiting { display: none; animation: none; }
}

/* ════════════════════════════════════════════════════════════════
   FULL-BLEED THEME COMPATIBILITY
   On a page with the main [nave_events] listing (body.ces-fullbleed),
   hide the sidebar and let the band reach the viewport edges.
   ════════════════════════════════════════════════════════════════ */
body.ces-fullbleed #secondary,
body.ces-fullbleed .widget-area,
body.ces-fullbleed .ast-sidebar,
body.ces-fullbleed #left-sidebar,
body.ces-fullbleed #right-sidebar,
body.ces-fullbleed .sidebar {
  display: none !important;
}
body.ces-fullbleed .ast-container,
body.ces-fullbleed .ast-container-fluid,
body.ces-fullbleed #primary,
body.ces-fullbleed .content-area,
body.ces-fullbleed .site-content,
body.ces-fullbleed .entry-content,
body.ces-fullbleed .wp-block-post-content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.ces-fullbleed .ast-separate-container .ast-article-single,
body.ces-fullbleed .ast-separate-container .ast-article-post,
body.ces-fullbleed .ast-article-single {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}
/* Any listing inside a boxed content column still bleeds to the edges. */
html body .entry-content .ces-events-section,
html body .post-content .ces-events-section,
html body article .ces-events-section,
.entry-content > .ces-events-section,
.post-content > .ces-events-section {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* ─────────────────────────────────────
   COMING-UP STRIP ([nave_events_featured], under the hero)
───────────────────────────────────── */

.ces-upcoming-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 1320px;
  margin: 24px auto 0;
  padding: 0 4px;
}
.ces-upcoming-label {
  flex-shrink: 0;
  font-family: var(--ces-font-body);
  font-size: var(--es-eyebrow, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ces-on-dark);
}
.ces-upcoming-list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ces-upcoming-item { margin: 0; }
.ces-upcoming-link {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 20px;
  border-radius: var(--es-radius-card, 16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.ces-upcoming-link:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.6); }
.ces-upcoming-link:focus-visible { outline: 3px solid var(--ces-focus); outline-offset: 3px; }
.ces-upcoming-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ces-on-dark);
}
.ces-upcoming-title {
  font-family: var(--ces-font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}
/* Light tone: white cards on the surface band, teal dates. */
.ces-events-section--light .ces-upcoming-label,
.ces-events-section--light .ces-upcoming-date { color: var(--ces-brand-secondary); }
.ces-events-section--light .ces-upcoming-link {
  background: #fff;
  border-color: var(--ces-border);
  box-shadow: 0 1px 2px rgba(var(--ces-charcoal), 0.08);
}
.ces-events-section--light .ces-upcoming-link:hover { border-color: var(--ces-brand-secondary); }
.ces-events-section--light .ces-upcoming-title { color: var(--ces-ink); }
@media (max-width: 600px) {
  .ces-upcoming-strip { flex-direction: column; align-items: stretch; }
  .ces-upcoming-list { flex-direction: column; }
  .ces-upcoming-link { display: flex; }
}


/* ============================================================
   SINGLE EVENT PAGE (v2.20.0) — single-ces_event.php
   Hero on the suite deep teal (what / when / where + actions), then
   the description + a details card on the page ground. Canon: one
   orange (the Register fill, ink text), teal links on light, pill
   buttons, 13px eyebrow at 0.14em, golden-scale type.
   ============================================================ */
.ces-single {
  --ces-single-max: 1120px;
  padding-block: 0 !important;
}
/* Break out of the theme's content column, edge to edge (the theme clips
   body overflow-x, so 100vw never adds a sideways scroll). On the article,
   not the <main>: the theme pins #primary to width 100% by ID. */
.ces-single .ces-single-event {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--es-page-bg, #F7F3EC);
  color: var(--es-text, #2E3D48);
  font-family: var(--ces-font-body);
}
.ces-single-hero {
  background: linear-gradient(160deg, var(--es-deep-a, #064058) 0%, var(--es-deep-b, #04293A) 100%);
  color: var(--es-text-on-dark, #E8ECF5);
  padding: clamp(40px, 6vw, 88px) 16px clamp(44px, 6vw, 80px);
}
.ces-single-hero-inner {
  max-width: var(--ces-single-max);
  margin: 0 auto;
  display: grid;
  gap: 40px;
  align-items: center;
}
.ces-single-hero.has-image .ces-single-hero-inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.ces-single-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--es-text-on-dark, #E8ECF5);
  text-decoration: none;
  opacity: 0.85;
}
.ces-single-back:hover,
.ces-single-back:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.ces-single-eyebrow {
  margin: 0 0 12px;
  font-size: var(--es-eyebrow, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--es-text-on-dark, #E8ECF5);
  opacity: 0.8;
}
.ces-single-title {
  margin: 0 0 16px;
  font-family: var(--ces-font-display);
  font-size: var(--es-h1-hero, clamp(2.5rem, 2.11rem + 1.66vw, 3.875rem));
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  text-wrap: balance;
}
.ces-single-lead {
  margin: 0 0 24px;
  max-width: 34em;
  font-size: var(--es-lead, 1.3125rem);
  line-height: 1.5;
  color: var(--es-text-on-dark, #E8ECF5);
}
.ces-single-facts {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ces-single-facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}
.ces-single-facts svg { flex-shrink: 0; margin-top: 3px; opacity: 0.85; }
.ces-single-time { display: block; font-weight: 400; color: var(--es-text-on-dark, #E8ECF5); }
.ces-single-actions,
.ces-single-card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.ces-single .ces-single-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--ces-font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform 0.15s ease;
}
.ces-single .ces-single-btn:hover,
.ces-single .ces-single-btn:focus-visible { transform: translateY(-2px); }
.ces-single .ces-single-btn-primary {
  background: var(--es-brand-primary, var(--ces-brand-primary)) !important;
  color: var(--es-ink, #071120) !important;
  border: 2px solid var(--es-brand-primary, var(--ces-brand-primary)) !important;
}
.ces-single .ces-single-btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(232, 236, 245, 0.6) !important;
}
.ces-single .ces-single-btn-ghost:hover,
.ces-single .ces-single-btn-ghost:focus-visible { border-color: #fff !important; }
.ces-single .ces-single-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ces-single-past {
  margin: 0;
  padding: 14px 18px;
  max-width: 34em;
  border-radius: var(--es-radius-card, 16px);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}
.ces-single-past a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.ces-single-image { margin: 0; }
.ces-single-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* 2.25.0 — Planning Center's shape; 4:3 cut the sides */
  object-fit: cover;
  border-radius: var(--es-radius-feature, 24px);
  box-shadow: 0 24px 60px rgba(4, 20, 30, 0.45);
}

.ces-single-body { padding: clamp(44px, 6vw, 88px) 16px; }
.ces-single-body-inner {
  max-width: var(--ces-single-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.ces-single-body-inner.no-description { grid-template-columns: minmax(0, 560px); }
.ces-single-h2 {
  margin: 0 0 20px;
  font-family: var(--ces-font-display);
  font-size: var(--es-h3, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--es-ink, #071120);
}
.ces-single-description {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--es-text, #2E3D48);
  max-width: 40em;
}
.ces-single-description > :first-child { margin-top: 0; }
.ces-single-description a,
.ces-single-dl a,
.ces-single-link {
  color: var(--es-brand-secondary, #004F71);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ces-single-card {
  background: #fff;
  border: 1px solid var(--es-border, #E3E7EB);
  border-radius: var(--es-radius-feature, 24px);
  padding: 28px;
}
.ces-single-card-title {
  margin: 0 0 16px;
  font-size: var(--es-eyebrow, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--es-brand-secondary, #004F71);
}
.ces-single-dl { margin: 0; display: grid; gap: 4px; }
.ces-single-dl dt {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--es-ink, #071120);
}
.ces-single-dl dt:first-child { margin-top: 0; }
.ces-single-dl dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--es-text, #2E3D48);
}
.ces-single-address { color: var(--es-text, #2E3D48); }
.ces-single-card-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--es-border, #E3E7EB);
}
.ces-single-card .ces-single-btn-primary { width: 100%; }
.ces-single .ces-single-card .ces-single-btn:focus-visible { outline-color: var(--es-brand-secondary, #004F71); }

@media (max-width: 782px) {
  .ces-single-hero.has-image .ces-single-hero-inner,
  .ces-single-body-inner { grid-template-columns: minmax(0, 1fr); }
  .ces-single-back { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ces-single .ces-single-btn { transition: none; }
  .ces-single .ces-single-btn:hover,
  .ces-single .ces-single-btn:focus-visible { transform: none; }
}
