/* Brand Standards

Color Palette:
0D3B66
2E5D66
62B6CB
F4D35E
EE964B
333333
F9FAFB

Primary Fonts:
Inter
Lora

Hero Headline - 48 pt, Lora
Hero Subhead - 28 pt, italic, Lora

Body Headline - 40 pt, Lora
Body Subhead - 24 pt, italic, Lora

Body Text - 18 pt, Inter

Button - 20 pt, white, Lora, orange background

Background Patterns:
Gold - 244  /  211  /  94  /  .25
Orange - 238 / 150 / 75 / 0.56
*/

/* ==========================================================================
   FILE INDEX
   --------------------------------------------------------------------------
   01 GLOBAL PAGE FOUNDATION
   02 SHARED CONTENT WIDTHS AND SECTION SPACING
   03 HEADER
   04 TOOLBAR
   05 FILTER PANEL AND ACCORDIONS
   06 STATUS
   07 EVENT GRID
   08 EVENT CARDS
   09 SINGLE-EVENT DETAIL SUPPORT
   10 FLYER OVERLAY
   11 CALENDAR WRAPPER AND TOOLBAR
   12 CALENDAR WEEK VIEW
   13 CALENDAR MONTH VIEW
   14 CALENDAR EVENT CHIPS AND TOOLTIPS
   15 EMPTY / ERROR STATES
   16 PAGINATION
   17 RESPONSIVE LAYOUT
   ========================================================================== */

/* ==========================================================================
   SECTION 01 - GLOBAL PAGE FOUNDATION
   --------------------------------------------------------------------------
   Base page box model, typography, and root page colors.
   ========================================================================== */

/* ----- BLOCK 01.01: Global box sizing ----- */
.event-listings-page,
.event-listings-page * {
  box-sizing: border-box;
}
/* ----- END BLOCK 01.01 ----- */

/* ----- BLOCK 01.02: Root page styles ----- */
.event-listings-page {
  font-family: Inter, Arial, sans-serif;
  color: #333333;
  background: #F7F3E8;
}
/* ----- END BLOCK 01.02 ----- */

/* ==========================================================================
   SECTION 02 - SHARED CONTENT WIDTHS AND SECTION SPACING
   --------------------------------------------------------------------------
   Shared max-width containers and top-level section padding.
   ========================================================================== */

/* ----- BLOCK 02.01: Shared centered content widths ----- */
.event-listings-header-inner,
.event-toolbar-inner,
.event-listings-filters-panel,
.event-listings-status-text,
.event-listings-grid,
.event-pagination-inner,
.event-calendar-section {
  max-width: 1240px;
  margin: 0 auto;
}
/* ----- END BLOCK 02.01 ----- */

/* ----- BLOCK 02.02: Top-level page section spacing ----- */
.event-listings-toolbar,
.event-listings-filters,
.event-listings-status,
.event-listings-calendar-wrap,
.event-listings-grid-wrap,
.event-listings-pagination {
  background: #F7F3E8;
  padding-left: 24px;
  padding-right: 24px;
}

.event-listings-toolbar {
  padding-top: 24px;
  padding-bottom: 12px;
}

.event-listings-filters {
  padding-top: 0;
  padding-bottom: 8px;
}

.event-listings-status {
  padding-top: 8px;
  padding-bottom: 18px;
}

.event-listings-calendar-wrap {
  padding-top: 8px;
  padding-bottom: 18px;
}

.event-listings-grid-wrap {
  padding-top: 8px;
  padding-bottom: 24px;
}

.event-listings-pagination {
  padding-top: 4px;
  padding-bottom: 32px;
}
/* ----- END BLOCK 02.02 ----- */

/* ==========================================================================
   SECTION 03 - HEADER
   --------------------------------------------------------------------------
   Hero/header presentation for list mode and detail mode.
   ========================================================================== */

/* ----- BLOCK 03.01: Header section background and layout ----- */
.event-listings-header {
  background-image: url("https://www.getsupporttogether.com/backgrounds/get-support-together-mental-health-provider-header.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 30px 24px;
}

.event-listings-header-inner {
  text-align: center;
}
/* ----- END BLOCK 03.01 ----- */

/* ----- BLOCK 03.02: Header typography and count pills ----- */
.event-listings-title {
  margin: 0 0 10px;
  font-family: Lora, Georgia, serif;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  color: #EE964B;
}

.event-listings-subtitle {
  margin: 0 auto 18px;
  max-width: 900px;
  font-size: 17px;
  line-height: 1.6;
  color: #333333;
}

.event-listings-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.event-listings-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #62B6CB;
  color: #F7F3E8;
  font-weight: 700;
  font-size: 14px;
}
/* ----- END BLOCK 03.02 ----- */

/* ==========================================================================
   SECTION 04 - TOOLBAR
   --------------------------------------------------------------------------
   Search, view toggle, sorting, page-size, and action buttons.
   ========================================================================== */

/* ----- BLOCK 04.01: Toolbar layout ----- */
.event-toolbar-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.event-toolbar-search {
  min-width: 0;
}

.event-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
/* ----- END BLOCK 04.01 ----- */

/* ----- BLOCK 04.02: Search input ----- */
.event-search-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(13, 59, 102, 0.18);
  border-radius: 14px;
  background: #ffffff;
  color: #333333;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
}
/* ----- END BLOCK 04.02 ----- */

/* ----- BLOCK 04.03: Toolbar buttons ----- */
.event-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #EE964B;
  color: #000000;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.event-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  opacity: 0.96;
}

.event-btn-secondary {
  background: #62B6CB;
  color: #F7F3E8;
}

.event-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}
/* ----- END BLOCK 04.03 ----- */

/* ----- BLOCK 04.04: Select controls and labels ----- */
.event-page-size-wrap,
.event-sort-wrap,
.event-view-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.event-page-size-label,
.event-sort-label,
.event-view-toggle-label {
  font-size: 14px;
  font-weight: 700;
  color: #0D3B66;
  white-space: nowrap;
}

.event-page-size-select,
.event-sort-select {
  min-height: 40px;
  min-width: 88px;
  padding: 8px 12px;
  border: 1px solid rgba(13, 59, 102, 0.18);
  border-radius: 12px;
  background: #ffffff;
  color: #333333;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
/* ----- END BLOCK 04.04 ----- */

/* ----- BLOCK 04.05: View toggle buttons ----- */
.event-view-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(13, 59, 102, 0.06);
}

.event-view-btn {
  cursor: pointer;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0D3B66;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.event-view-btn.is-active {
  background: #62B6CB;
  color: #F7F3E8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
/* ----- END BLOCK 04.05 ----- */

/* ----- BLOCK 04.06: Focus states for toolbar controls ----- */
.event-search-input:focus,
.event-page-size-select:focus,
.event-sort-select:focus,
.event-btn:focus,
.event-view-btn:focus {
  outline: 2px solid #62B6CB;
  outline-offset: 1px;
}
/* ----- END BLOCK 04.06 ----- */

/* ==========================================================================
   SECTION 05 - FILTER PANEL AND ACCORDIONS
   --------------------------------------------------------------------------
   Expand/collapse filters panel and accordion-style filter groups.
   ========================================================================== */

/* ----- BLOCK 05.01: Filters panel shell ----- */
.event-listings-filters-panel {
  display: none;
  padding: 20px 22px;
  border-radius: 18px;
  background: #F7F3E8;
  border: 1px solid rgba(13, 59, 102, 0.10);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.event-listings-filters-panel.is-open {
  display: block;
}

.event-filters-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* ----- END BLOCK 05.01 ----- */

/* ----- BLOCK 05.02: Accordion group shell ----- */
.event-filter-accordion-group {
  border: 1px solid rgba(13, 59, 102, 0.12);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.event-filter-accordion-toggle {
  width: 100%;
  border: 0;
  background: #ffffff;
  color: #0D3B66;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.event-filter-accordion-toggle:hover {
  background: #F7F3E8;
}
/* ----- END BLOCK 05.02 ----- */

/* ----- BLOCK 05.03: Accordion header details ----- */
.event-filter-accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.event-filter-accordion-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.event-filter-accordion-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #62B6CB;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.event-filter-accordion-chevron {
  font-size: 18px;
  line-height: 1;
  color: #0D3B66;
  transition: transform 0.15s ease;
}
/* ----- END BLOCK 05.03 ----- */

/* ----- BLOCK 05.04: Accordion panel and option list ----- */
.event-filter-accordion-panel {
  display: none;
  padding: 0 16px 14px;
  border-top: 1px solid rgba(13, 59, 102, 0.08);
  background: #ffffff;
}

.event-filter-accordion-group.is-open .event-filter-accordion-panel {
  display: block;
}

.event-filter-accordion-group.is-open .event-filter-accordion-chevron {
  transform: rotate(45deg);
}

.event-filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-top: 12px;
  padding-right: 4px;
}

.event-filter-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: #333333;
}
/* ----- END BLOCK 05.04 ----- */

/* ==========================================================================
   SECTION 06 - STATUS
   --------------------------------------------------------------------------
   Result status line above list or calendar content.
   ========================================================================== */

/* ----- BLOCK 06.01: Status text ----- */
.event-listings-status-text {
  font-size: 16px;
  line-height: 1.5;
  color: #0D3B66;
  font-weight: 700;
}
/* ----- END BLOCK 06.01 ----- */

/* ==========================================================================
   SECTION 07 - EVENT GRID
   --------------------------------------------------------------------------
   Grid used for list-mode event cards.
   ========================================================================== */

/* ----- BLOCK 07.01: Grid layout ----- */
.event-listings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
/* ----- END BLOCK 07.01 ----- */

/* ==========================================================================
   SECTION 08 - EVENT CARDS
   --------------------------------------------------------------------------
   Shared styling for summary cards and detail cards.
   ========================================================================== */

/* ----- BLOCK 08.01: Card shell and hover state ----- */
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #F7F3E8;
  border: 1px solid rgba(13, 59, 102, 0.18);
  border-radius: 16px;
  min-height: 100%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  z-index: 1;
}

.event-card[data-event-id] {
  cursor: pointer;
}

.event-card:hover,
.event-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(13, 59, 102, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card-detail:hover,
.event-card-detail:focus-within {
  transform: none;
}
/* ----- END BLOCK 08.01 ----- */

/* ----- BLOCK 08.02: Flyer image area ----- */
.event-card-flyer {
  display: flex;
  justify-content: center;
  padding: 18px 18px 0;
  background: #F7F3E8;
}

.event-card-flyer-detail {
  padding: 24px 24px 0;
}

.event-flyer-thumb {
  cursor: pointer;
  display: block;
  width: 100%;
  max-width: 220px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.event-flyer-thumb-detail {
  width: auto;
  max-width: min(50%, 520px);
}

.event-flyer-thumb__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(13, 59, 102, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  background: #ffffff;
}

.event-flyer-thumb-detail .event-flyer-thumb__image {
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 720px);
}
/* ----- END BLOCK 08.02 ----- */

/* ----- BLOCK 08.03: Card header ----- */
.event-card-head {
  background: #0D3B66;
  padding: 18px 18px 16px;
  text-align: center;
}

.event-card-head,
.event-card-head .event-card-title,
.event-card-head .event-card-date,
.event-card-head .event-card-timezone,
.event-card-head .event-card-location {
  color: #F9FAFB;
}

.event-card-title {
  margin: 0;
  font-family: Lora, Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.event-card-date {
  margin-top: 6px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.event-card-date strong {
  font-family: Inter, Arial, sans-serif;
  font-weight: 700;
}
/* ----- END BLOCK 08.03 ----- */

/* ----- BLOCK 08.04: Card body and text fields ----- */
.event-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

.event-card-free-text {
  margin: 0 0 8px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  color: #EE964B;
}

.event-card-details {
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #333333;
}

.event-card-field {
  margin: 0;
}

.event-card-field-label {
  margin: 0 0 2px;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  color: #EE964B;
}

.event-card-field-value {
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #333333;
}

.event-card-location {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #333333;
}

.event-card-inline-label {
  font-weight: 700;
}

.event-card-inline-link {
  color: #0D3B66;
  text-decoration: none;
  font-weight: 700;
}

.event-card-inline-link:hover {
  text-decoration: underline;
}
/* ----- END BLOCK 08.04 ----- */

/* ----- BLOCK 08.05: Card actions ----- */
.event-card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  padding-top: 6px;
}

.event-card-action,
.event-card-flyer-mount a {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #EE964B;
  color: #000000;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.event-card-action:hover,
.event-card-flyer-mount a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  opacity: 0.96;
  text-decoration: none;
}

.event-card-flyer-mount {
  display: inline-flex;
}
/* ----- END BLOCK 08.05 ----- */

/* ==========================================================================
   SECTION 09 - SINGLE-EVENT DETAIL SUPPORT
   --------------------------------------------------------------------------
   Layout adjustments used when a single event detail card is rendered.
   ========================================================================== */

/* ----- BLOCK 09.01: Detail card width and grid overrides ----- */
.event-card-detail {
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
}

.event-listings-grid .event-card-detail {
  width: 100%;
  max-width: 100%;
}

.event-listings-grid:has(.event-card-detail) {
  grid-template-columns: 1fr;
}

.event-card-details-detail {
  white-space: pre-wrap;
}

.event-card-detail .event-card-date,
.event-card-detail .event-card-timezone,
.event-card-detail .event-card-body {
  text-align: left;
}

.event-card-detail .event-card-field-communities {
  margin-top: 18px;
}
/* ----- END BLOCK 09.01 ----- */

/* ----- BLOCK 09.02: Detail map support classes ----- */
.event-card-detail-location,
.event-card-detail-map-link-wrap {
  margin-top: 8px;
}

.event-card-detail-map-link {
  color: #0D3B66;
  font-weight: 700;
  text-decoration: none;
}

.event-card-detail-map-link:hover {
  text-decoration: underline;
}

.event-card-detail-map-wrap {
  margin-top: 12px;
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(13, 59, 102, 0.14);
}

.event-card-detail-map {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
.event-card-timezone {
  margin-top: 4px;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: #333333;
}

/* ----- END BLOCK 09.02 ----- */

/* ----- BLOCK 09.03: Rebuilt detail hero ----- */
.event-listings-header:has(.event-detail-hero-inner) {
  background-image: none;
  background-color: #0D3B66;
  padding: 42px 24px;
}

.event-detail-hero-inner {
  text-align: left;
}

.event-detail-hero-kicker {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #EE964B;
}

.event-detail-hero-title {
  margin-bottom: 18px;
  color: #F9FAFB;
  font-size: 48px;
}

.event-detail-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 14px;
}

.event-detail-hero-meta-item,
.event-detail-hero-price {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #F9FAFB;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.event-detail-hero-price {
  margin-bottom: 22px;
  color: #F4D35E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.event-detail-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #EE964B;
  color: #000000;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.event-detail-hero-action-secondary {
  background: #F9FAFB;
  color: #0D3B66;
}
/* ----- END BLOCK 09.03 ----- */

/* ----- BLOCK 09.04: Rebuilt detail content shell ----- */
.event-card-detail.event-detail-page {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.event-card-detail.event-detail-page:hover,
.event-card-detail.event-detail-page:focus-within {
  box-shadow: none;
}

.event-detail-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.event-detail-section {
  padding: 24px;
  border: 1px solid rgba(13, 59, 102, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.event-detail-section-title {
  margin: 0 0 16px;
  font-family: Lora, Georgia, serif;
  font-size: 28px;
  line-height: 1.2;
  color: #0D3B66;
}

.event-detail-copy {
  max-width: 860px;
  text-align: left;
}

.event-detail-copy p,
.event-detail-disclosure p,
.event-detail-faith-note {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.7;
  color: #333333;
}

.event-detail-copy p:last-child,
.event-detail-disclosure p:last-child,
.event-detail-faith-note:last-child {
  margin-bottom: 0;
}
/* ----- END BLOCK 09.04 ----- */

/* ----- BLOCK 09.05: Quick facts and badges ----- */
.event-detail-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

.event-detail-fact {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(13, 59, 102, 0.12);
  border-radius: 8px;
  background: #F9FAFB;
  text-align: left;
}

.event-detail-fact-icon {
  font-size: 22px;
  line-height: 1;
}

.event-detail-fact-label {
  margin-bottom: 5px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #EE964B;
}

.event-detail-fact-value {
  font-size: 17px;
  line-height: 1.45;
  font-weight: 400;
  color: #333333;
}

.event-detail-fact-link {
  color: #0D3B66;
  font-weight: 700;
  text-decoration: none;
}

.event-detail-fact-link:hover,
.event-detail-fact-link:focus {
  text-decoration: underline;
}

.event-detail-fact-line {
  display: block;
}

.event-detail-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-detail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(238, 150, 75, 0.18);
  color: #333333;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.event-detail-focus-badges .event-detail-badge::before {
  content: none;
}

.event-detail-focus-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.event-detail-focus-badges .event-detail-badge {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.event-detail-focus-extra {
  margin-top: 10px;
}

.event-detail-toggle-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: #62B6CB;
  color: #F7F3E8;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.event-detail-community-badge {
  background: rgba(98, 182, 203, 0.22);
  color: #0D3B66;
}

.event-detail-community-badge::before {
  content: "■";
  margin-right: 8px;
  color: #62B6CB;
  font-size: 12px;
}

.event-detail-gallery {
  margin: -8px 0 4px;
  overflow: hidden;
}

.event-detail-gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 360px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 4px 4px 14px;
  scrollbar-width: thin;
}

.event-detail-gallery__item {
  margin: 0;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  background: rgba(13, 59, 102, 0.08);
  border: 1px solid rgba(13, 59, 102, 0.12);
}

.event-detail-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ----- END BLOCK 09.05 ----- */

/* ----- BLOCK 09.06: Faith, location, and advanced sections ----- */
.event-detail-faith-section {
  border-left: 6px solid #F4D35E;
  background: #FFFCF0;
}

.event-detail-faith-callout {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
  color: #0D3B66;
}

.event-detail-hosted-by,
.event-detail-contact,
.event-detail-location-address {
  font-size: 18px;
  line-height: 1.6;
  color: #333333;
}

.event-detail-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-detail-location-address {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  text-align: left;
}

.event-detail-map-action {
  margin-bottom: 18px;
}

.event-detail-map-block {
  margin-top: 18px;
  text-align: left;
}

.event-detail-disclosure {
  margin-top: 12px;
  padding: 0;
  border: 1px solid rgba(13, 59, 102, 0.12);
  border-radius: 8px;
  background: #F9FAFB;
}

.event-detail-disclosure:first-child {
  margin-top: 0;
}

.event-detail-disclosure summary {
  cursor: pointer;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  color: #0D3B66;
}

.event-detail-disclosure[open] {
  padding-bottom: 18px;
}

.event-detail-disclosure[open] > .event-detail-badge-list,
.event-detail-disclosure[open] > p,
.event-detail-disclosure[open] > .event-detail-section {
  margin-left: 18px;
  margin-right: 18px;
}

.event-detail-disclosure .event-detail-section {
  padding: 0;
  border: 0;
  background: transparent;
}

.event-detail-disclosure .event-detail-section-title {
  display: none;
}
/* ----- END BLOCK 09.06 ----- */

/* ==========================================================================
   SECTION 10 - FLYER OVERLAY
   --------------------------------------------------------------------------
   Full-size image overlay used from both card and detail page flyer images.
   ========================================================================== */

/* ----- BLOCK 10.01: Overlay shell ----- */
body.event-flyer-overlay-open {
  overflow: hidden;
}

.event-flyer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
}

.event-flyer-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 59, 102, 0.72);
}

.event-flyer-overlay__dialog {
  position: relative;
  z-index: 1;
  width: calc(100vw - 32px);
  max-width: 1200px;
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  display: flex;
  flex-direction: column;
}

.event-flyer-overlay__close {
  align-self: flex-end;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0D3B66;
  font-size: 28px;
  line-height: 1;
}

.event-flyer-overlay__body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.event-flyer-overlay__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
}
/* ----- END BLOCK 10.01 ----- */

/* ==========================================================================
   SECTION 11 - CALENDAR WRAPPER AND TOOLBAR
   --------------------------------------------------------------------------
   Alternate summary-mode calendar section shell and top controls.
   ========================================================================== */

/* ----- BLOCK 11.01: Calendar section shell ----- */
.event-calendar-section {
  margin: 0 auto 28px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(13, 59, 102, 0.14);
  border-radius: 14px;
}
/* ----- END BLOCK 11.01 ----- */

/* ----- BLOCK 11.02: Calendar toolbar layout ----- */
.event-calendar-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.event-calendar-toolbar-left,
.event-calendar-toolbar-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.event-calendar-toolbar-right {
  justify-content: flex-end;
}

.event-calendar-title {
  margin: 0;
  text-align: center;
  font-family: Lora, Georgia, serif;
  font-size: 28px;
  line-height: 1.2;
  color: #0D3B66;
}
/* ----- END BLOCK 11.02 ----- */

/* ----- BLOCK 11.03: Calendar toolbar buttons ----- */
.event-calendar-nav-btn,
.event-calendar-view-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: #62B6CB;
  color: #F7F3E8;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.event-calendar-nav-btn:hover,
.event-calendar-view-btn:hover {
  opacity: 0.95;
}

.event-calendar-view-btn.is-active {
  background: #0D3B66;
  color: #F7F3E8;
}
/* ----- END BLOCK 11.03 ----- */

/* ==========================================================================
   SECTION 12 - CALENDAR WEEK VIEW
   --------------------------------------------------------------------------
   Seven-column weekly grid and day-card styling.
   ========================================================================== */

/* ----- BLOCK 12.01: Weekly grid ----- */
.event-calendar-grid-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
/* ----- END BLOCK 12.01 ----- */

/* ----- BLOCK 12.02: Weekly day cards ----- */
.event-calendar-day-card {
  border: 1px solid rgba(13, 59, 102, 0.12);
  border-radius: 12px;
  min-height: 220px;
  background: #ffffff;
}

.event-calendar-day-card.is-today {
  border-color: #0D3B66;
}

.event-calendar-day-head {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(13, 59, 102, 0.10);
}

.event-calendar-day-name {
  font-size: 14px;
  font-weight: 700;
  color: #0D3B66;
}

.event-calendar-day-date {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.3;
  color: #333333;
}

.event-calendar-day-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* ----- END BLOCK 12.02 ----- */

/* ==========================================================================
   SECTION 13 - CALENDAR MONTH VIEW
   --------------------------------------------------------------------------
   Monthly grid, weekday row, and month cells.
   ========================================================================== */

/* ----- BLOCK 13.01: Month grid shell ----- */
.event-calendar-grid-month {
  display: block;
}

.event-calendar-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.event-calendar-weekday-cell {
  padding: 8px 10px;
  font-weight: 700;
  color: #0D3B66;
  border-bottom: 1px solid rgba(13, 59, 102, 0.12);
}

.event-calendar-month-cells {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
/* ----- END BLOCK 13.01 ----- */

/* ----- BLOCK 13.02: Month cells ----- */
.event-calendar-month-cell {
  min-height: 150px;
  border-right: 1px solid rgba(13, 59, 102, 0.10);
  border-bottom: 1px solid rgba(13, 59, 102, 0.10);
  padding: 8px;
  background: #ffffff;
}

.event-calendar-month-cell.is-today {
  border-color: #0D3B66;
}

.event-calendar-month-cell.is-outside-month {
  background: #F7F3E8;
  opacity: 0.7;
}

.event-calendar-month-date {
  margin-bottom: 8px;
  font-weight: 700;
  color: #0D3B66;
}

.event-calendar-month-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* ----- END BLOCK 13.02 ----- */

/* ==========================================================================
   SECTION 14 - CALENDAR EVENT CHIPS AND TOOLTIPS
   --------------------------------------------------------------------------
   Event boxes inside the calendar plus hover summary card styling.
   ========================================================================== */

/* ----- BLOCK 14.01: Empty-state copy inside calendar ----- */
.event-calendar-empty {
  opacity: 0.6;
  font-size: 14px;
}
/* ----- END BLOCK 14.01 ----- */

/* ----- BLOCK 14.02: Calendar event chips ----- */
.event-calendar-chip {
  position: relative;
  display: block;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(13, 59, 102, 0.14);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  z-index: 1;
}

.event-calendar-chip:hover,
.event-calendar-chip:focus,
.event-calendar-chip:focus-visible,
.event-calendar-chip:focus-within {
  background: #F7F3E8;
  border-color: rgba(13, 59, 102, 0.28);
  box-shadow: 0 6px 18px rgba(13, 59, 102, 0.12);
  outline: none;
  z-index: 9999;
}

.event-calendar-chip-inner {
  display: block;
  min-width: 0;
}

.event-calendar-chip-time-row {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #0D3B66;
}

.event-calendar-chip-title-row {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-calendar-chip-location-row {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.8;
  margin-top: 2px;
}

/* hard stop: nothing image-like should ever render directly in the visible chip */
.event-calendar-chip > .event-card-flyer,
.event-calendar-chip > img,
.event-calendar-chip > .event-flyer-thumb,
.event-calendar-chip-inner img,
.event-calendar-chip-inner .event-card-flyer,
.event-calendar-chip-inner .event-flyer-thumb,
.event-calendar-chip-inner .event-flyer-thumb__image {
  display: none !important;
}
/* ----- END BLOCK 14.02 ----- */

/* ----- BLOCK 14.03: Calendar hover overlay shell ----- */
.event-calendar-hover-overlay {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  width: min(420px, 80vw);
  min-width: 320px;
  z-index: 2147483647;
  pointer-events: none;
}

.event-calendar-chip:hover > .event-calendar-hover-overlay,
.event-calendar-chip:focus > .event-calendar-hover-overlay,
.event-calendar-chip:focus-visible > .event-calendar-hover-overlay,
.event-calendar-chip:focus-within > .event-calendar-hover-overlay {
  display: block !important;
}

.event-calendar-tooltip-card,
.event-calendar-tooltip-card--summary {
  display: block;
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(13, 59, 102, 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(13, 59, 102, 0.18);
  overflow: hidden;
  pointer-events: auto;
}
/* ----- END BLOCK 14.03 ----- */

/* ----- BLOCK 14.04: Tooltip summary layout ----- */
.event-calendar-tooltip-summary {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.event-calendar-tooltip-summary .event-card-flyer {
  display: flex;
  justify-content: center;
  padding: 16px 16px 0;
  background: #ffffff;
}

.event-calendar-tooltip-summary .event-flyer-thumb {
  width: 100%;
  max-width: 220px;
  cursor: pointer;
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.event-calendar-tooltip-summary .event-flyer-thumb__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(13, 59, 102, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  background: #ffffff;
}

.event-calendar-tooltip-summary__head {
  padding: 14px 16px 8px;
  border-bottom: 1px solid rgba(13, 59, 102, 0.08);
  background: linear-gradient(180deg, rgba(247, 243, 232, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
}

.event-calendar-tooltip-summary__title {
  margin: 0;
  font-family: Lora, Georgia, serif;
  font-size: 17px;
  line-height: 1.25;
  color: #0D3B66;
  font-weight: 700;
}

.event-calendar-tooltip-summary__date {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #333333;
}

.event-calendar-tooltip-summary__location {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #333333;
}

.event-calendar-tooltip-summary__body {
  padding: 12px 16px 16px;
}

.event-calendar-tooltip-summary__body .event-card-free-text {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0D3B66;
}

.event-calendar-tooltip-summary__body .event-card-details {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #333333;
}

.event-calendar-tooltip-summary__body .event-card-field {
  margin-top: 8px;
}

.event-calendar-tooltip-summary__body .event-card-field:first-child {
  margin-top: 0;
}

.event-calendar-tooltip-summary__body .event-card-field-label {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #333333;
}

.event-calendar-tooltip-summary__body .event-card-field-value,
.event-calendar-tooltip-summary__body .event-card-location {
  font-size: 13px;
  line-height: 1.4;
  color: #333333;
}

.event-calendar-tooltip-summary__body .event-card-location {
  margin-top: 8px;
}

.event-calendar-tooltip-summary__body .event-card-inline-label {
  font-weight: 700;
  color: #0D3B66;
}

.event-calendar-tooltip-summary__body .event-card-inline-link {
  color: #0D3B66;
  text-decoration: none;
}

.event-calendar-tooltip-summary__body .event-card-inline-link:hover,
.event-calendar-tooltip-summary__body .event-card-inline-link:focus {
  text-decoration: underline;
}
/* ----- END BLOCK 14.04 ----- */

/* ----- BLOCK 14.05: See-more modal and stacking support ----- */
.event-calendar-see-more-btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 7px 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #0D3B66;
  background: rgba(13, 59, 102, 0.06);
  border: 1px dashed rgba(13, 59, 102, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.event-calendar-see-more-btn:hover,
.event-calendar-see-more-btn:focus,
.event-calendar-see-more-btn:focus-visible {
  background: rgba(13, 59, 102, 0.1);
  border-color: rgba(13, 59, 102, 0.32);
  outline: none;
}

.event-calendar-day-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
}

.event-calendar-day-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 59, 102, 0.38);
  backdrop-filter: blur(1px);
}

.event-calendar-day-modal__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 6vh auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(13, 59, 102, 0.12);
  box-shadow: 0 24px 64px rgba(13, 59, 102, 0.24);
  padding: 16px;
  max-height: 80vh;
  overflow: auto;
}

.event-calendar-day-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.event-calendar-day-modal__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: #0D3B66;
}

.event-calendar-day-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #333333;
  cursor: pointer;
}

.event-calendar-day-modal__close:hover,
.event-calendar-day-modal__close:focus,
.event-calendar-day-modal__close:focus-visible {
  color: #0D3B66;
  outline: none;
}

.event-calendar-day-modal__body .event-calendar-chip {
  margin-top: 8px;
}

.event-calendar-day-modal__body .event-calendar-chip:first-child {
  margin-top: 0;
}

.event-calendar-day-modal__body .event-calendar-hover-overlay {
  display: none !important;
}

.event-calendar-section,
.event-calendar-toolbar,
.event-calendar-grid,
.event-calendar-grid-week,
.event-calendar-grid-month,
.event-calendar-day-card,
.event-calendar-day-head,
.event-calendar-day-body,
.event-calendar-month-cell,
.event-calendar-month-events,
.event-calendar-month-cells,
.event-calendar-weekday-row {
  overflow: visible;
}

.event-calendar-day-card,
.event-calendar-month-cell {
  position: relative;
  z-index: 1;
}

.event-calendar-day-card:hover,
.event-calendar-day-card:focus-within,
.event-calendar-month-cell:hover,
.event-calendar-month-cell:focus-within {
  z-index: 9998;
}

.event-calendar-day-body,
.event-calendar-month-events {
  position: relative;
  z-index: 1;
}
/* ----- END BLOCK 14.05 ----- */

/* ==========================================================================
   SECTION 15 - EMPTY / ERROR STATES
   --------------------------------------------------------------------------
   Shared presentation for no-results and load-error states.
   ========================================================================== */

/* ----- BLOCK 15.01: Empty and error messages ----- */
.event-listings-empty,
.event-listings-error {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 24px;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
  color: #333333;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
/* ----- END BLOCK 15.01 ----- */

/* ==========================================================================
   SECTION 16 - PAGINATION
   --------------------------------------------------------------------------
   List-mode pagination controls.
   ========================================================================== */

/* ----- BLOCK 16.01: Pagination layout ----- */
.event-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.event-page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
/* ----- END BLOCK 16.01 ----- */

/* ----- BLOCK 16.02: Pagination buttons ----- */
.event-page-nav,
.event-page-btn {
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #EE964B;
  color: #000000;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.event-page-btn.is-active {
  background: #62B6CB;
  color: #F7F3E8;
}

.event-page-nav[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}
/* ----- END BLOCK 16.02 ----- */

/* ==========================================================================
   SECTION 17 - RESPONSIVE LAYOUT
   --------------------------------------------------------------------------
   Breakpoint behavior for list mode, toolbar, and calendar layouts/tooltips.
   ========================================================================== */

/* ----- BLOCK 17.01: Large-tablet adjustments ----- */
@media (max-width: 1200px) {
  .event-listings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* ----- END BLOCK 17.01 ----- */

/* ----- BLOCK 17.02: Tablet adjustments ----- */
@media (max-width: 1100px) {
  .event-detail-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .event-calendar-toolbar-center {
    order: -1;
  }

  .event-calendar-grid-week,
  .event-calendar-weekday-row,
  .event-calendar-month-cells {
    grid-template-columns: 1fr;
  }

  .event-calendar-tooltip-card {
    left: 0;
    top: 100%;
    margin-left: 0;
    margin-top: 8px;
    width: min(320px, calc(100vw - 60px));
  }
}

@media (max-width: 1024px) {
  .event-toolbar-inner {
    grid-template-columns: 1fr;
  }

  .event-toolbar-actions {
    justify-content: flex-start;
  }

  .event-listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-flyer-thumb-detail {
    max-width: min(70%, 520px);
  }
}
/* ----- END BLOCK 17.02 ----- */

/* ----- BLOCK 17.03: Mobile adjustments ----- */
@media (max-width: 640px) {
  .event-listings-toolbar,
  .event-listings-filters,
  .event-listings-status,
  .event-listings-calendar-wrap,
  .event-listings-grid-wrap,
  .event-listings-pagination,
  .event-listings-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .event-listings-title {
    font-size: 30px;
  }

  .event-detail-hero-title {
    font-size: 34px;
  }

  .event-detail-hero-meta,
  .event-detail-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-detail-hero-action {
    width: 100%;
  }

  .event-detail-section {
    padding: 20px;
  }

  .event-detail-section-title {
    font-size: 24px;
  }

  .event-detail-facts-grid {
    grid-template-columns: 1fr;
  }

  .event-detail-gallery__track {
    grid-auto-columns: minmax(220px, 82vw);
    gap: 12px;
  }

  .event-detail-focus-badges {
    grid-template-columns: 1fr;
  }

  .event-detail-copy p,
  .event-detail-disclosure p,
  .event-detail-faith-note,
  .event-detail-hosted-by,
  .event-detail-contact,
  .event-detail-location-address {
    font-size: 17px;
  }

  .event-listings-grid {
    grid-template-columns: 1fr;
  }

  .event-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .event-page-size-wrap,
  .event-sort-wrap,
  .event-view-toggle-wrap {
    justify-content: space-between;
  }

  .event-flyer-thumb-detail {
    max-width: 100%;
  }

  .event-flyer-thumb-detail .event-flyer-thumb__image {
    max-height: 420px;
  }

  .event-flyer-overlay__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
  }

  .event-flyer-overlay__image {
    max-height: calc(100vh - 84px);
  }
}
/* ----- END BLOCK 17.03 ----- */
/* Community Events: match the shared desktop header without depending on a
   route-marker script. This file is already loaded by the events directory. */
@media (min-width: 992px) {
  body:has(.event-listings-page) .theme-header > .zpcontainer {
    display: grid !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-left: max(40px, calc((100vw - 1180px) / 2)) !important;
    padding-right: 40px !important;
    grid-template-columns: 175px minmax(0, 1fr) !important;
    column-gap: 50px !important;
    align-items: center !important;
    justify-content: initial !important;
  }
  body:has(.event-listings-page) .theme-header .theme-branding-info {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    display: block !important;
    flex: none !important;
    width: 175px !important;
    min-width: 175px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
  }
  body:has(.event-listings-page) .theme-header .theme-branding-info :is(.theme-logo-parent, a, picture) {
    display: block !important;
    width: 175px !important;
    height: 175px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body:has(.event-listings-page) .theme-header .theme-branding-info img {
    display: block !important;
    width: 175px !important;
    height: 175px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
  }
  body:has(.event-listings-page) .theme-header .theme-navigation-and-icons {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    align-self: center !important;
  }
  body:has(.event-listings-page) .theme-header :is(.theme-menu-area, .theme-menu) {
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body:has(.event-listings-page) .theme-header .theme-menu > ul {
    display: flex !important;
    flex-flow: row nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    column-gap: clamp(20px, 2vw, 30px) !important;
    row-gap: 0 !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body:has(.event-listings-page) .theme-header .theme-menu > ul > li {
    position: relative !important;
    float: none !important;
    flex: 0 0 auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
  }
  body:has(.event-listings-page) .theme-header .theme-menu > ul > li > a,
  body:has(.event-listings-page) .theme-header .theme-menu > ul > li > a :is(.theme-menu-content, .theme-menu-name) {
    font-family: Lora, Georgia, serif !important;
    font-size: 16.67px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }
}

/* Match the homepage hero scale in list mode; event detail headings are unchanged. */
.event-listings-header:not(:has(.event-detail-hero-inner)) {
  box-sizing: border-box;
  min-height: 560px;
  padding-top: 76px;
  padding-bottom: 55px;
  background-color: #F7F3E8;
  background-image:
    linear-gradient(to bottom,
      rgba(247, 243, 232, 0.55) 0%,
      rgba(247, 243, 232, 0.55) 58%,
      #F7F3E8 100%),
    url("/dynamicPages/events/eventAssets/community-events-hero-sky-v3.jpg");
  background-position: center, center top;
  background-size: 100% 100%, cover;
  background-repeat: no-repeat;
}
.event-listings-header:not(:has(.event-detail-hero-inner)) .event-listings-title {
  max-width: 1120px;
  margin: 0 auto 20px;
  color: #62B6CB;
  font-family: Lora, Georgia, serif;
  font-size: clamp(38px, 4.3vw, 66px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.22;
}
.event-listings-header:not(:has(.event-detail-hero-inner)) .event-listings-header-inner {
  max-width: 1180px;
}
.event-listings-header:not(:has(.event-detail-hero-inner)) .event-listings-subtitle {
  max-width: 1030px;
  margin: 25px auto 0;
  color: #263F4B;
  font: 300 21px/1.6 Manrope, Arial, sans-serif;
}
.event-listings-header:not(:has(.event-detail-hero-inner)) .event-listings-counts {
  display: none !important;
}
@media (max-width: 800px) {
  .event-listings-header:not(:has(.event-detail-hero-inner)) {
    min-height: 480px;
    padding-top: 48px;
    padding-bottom: 35px;
  }
}
@media (max-width: 540px) {
  .event-listings-header:not(:has(.event-detail-hero-inner)) .event-listings-subtitle {
    font-size: 18px;
  }
}

/* Keep the red crisis alert; suppress only the blue provider-enrollment notice. */
body:has(.event-listings-page) #page-top-network-banner-pill {
  display: none !important;
}

/* Events action system: rounded teal primary and orange secondary buttons. */
.event-listings-page :is(
  .event-btn, .event-view-btn, .event-card-action,
  .event-card-flyer-mount a, .event-detail-hero-action,
  .event-detail-toggle-btn, .event-detail-map-action,
  .event-calendar-nav-btn, .event-calendar-view-btn,
  .event-calendar-see-more-btn, .event-page-nav, .event-page-btn,
  .event-card-detail-map-link
) {
  min-height: 44px;
  border-radius: 14px;
  border-color: #0D7480;
  background: #0D7480;
  color: #FFFFFF;
  font: 600 16px/1.25 Manrope, Arial, sans-serif;
  box-shadow: 0 5px 14px rgba(13, 116, 128, 0.24);
  text-decoration: none;
}

.event-listings-page :is(
  .event-btn-secondary, .event-detail-hero-action-secondary,
  .event-page-nav, .event-page-btn:not(.is-active),
  .event-calendar-nav-btn, .event-calendar-view-btn:not(.is-active),
  .event-view-btn:not(.is-active)
) {
  border-color: #EE964B;
  background: #EE964B;
  color: #143F56;
  box-shadow: 0 5px 14px rgba(238, 150, 75, 0.23);
}

.event-listings-page :is(
  .event-btn, .event-view-btn, .event-card-action,
  .event-card-flyer-mount a, .event-detail-hero-action,
  .event-detail-toggle-btn, .event-detail-map-action,
  .event-calendar-nav-btn, .event-calendar-view-btn,
  .event-calendar-see-more-btn, .event-page-nav, .event-page-btn,
  .event-card-detail-map-link
):hover:not([disabled]) {
  filter: brightness(0.96);
}

/* Events artwork extends from the page top behind the existing site header. */
body:has(.event-listings-page) {
  position: relative;
  isolation: isolate;
  background: #F7F3E8;
}
body.gst-events-backdrop-ready::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: var(--gst-events-hero-bottom, 850px);
  background:
    linear-gradient(to bottom, rgba(247,243,232,.55) 0%, rgba(247,243,232,.55) calc(100% - 180px), #F7F3E8 100%),
    url("/dynamicPages/events/eventAssets/community-events-hero-sky-v3.jpg") center top / cover no-repeat;
  pointer-events: none;
}
body:has(.event-listings-page) :is(
  .theme-header-topbar, .theme-header-topbar .zpcontainer,
  [data-headercontainer="zptheme-data-headercontainer"],
  .theme-header, .theme-header > .zpcontainer, .theme-navigation-and-icons
) {
  background: transparent !important;
  box-shadow: none !important;
}
body:has(.event-listings-page) :is(
  .theme-content-area, .theme-content-container, .theme-content-area-inner,
  .page-container, .zpsection, .zpcontainer, .zprow, .zpelem-col,
  .zpelem-codesnippet, .zpsnippet-container
):has(.event-listings-page) {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
body.gst-events-backdrop-ready .event-listings-page,
body.gst-events-backdrop-ready .event-listings-header:not(:has(.event-detail-hero-inner)) {
  background: transparent !important;
}

/* Provider-style search controls, retaining events-only filters and behavior. */
.event-listings-header:not(:has(.event-detail-hero-inner)) + .event-listings-toolbar{margin-top:76px}
@media(max-width:800px){.event-listings-header:not(:has(.event-detail-hero-inner)) + .event-listings-toolbar{margin-top:48px}}
.event-toolbar-inner { display: block; }
.event-search-primary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 40px;
  align-items: center;
}
.event-search-primary-actions { display: grid; gap: 10px; }
.event-search-primary-actions .event-btn { width: 100%; min-height: 44px; }
.event-toolbar-search { position: relative; }
.event-toolbar-search::before {
  content: "";
  position: absolute;
  left: 24px;
  top: calc(50% - 10px);
  width: 14px;
  height: 14px;
  border: 3px solid #42677D;
  border-radius: 50%;
  pointer-events: none;
}
.event-toolbar-search::after {
  content: "";
  position: absolute;
  left: 40px;
  top: calc(50% + 6px);
  width: 10px;
  height: 3px;
  background: #42677D;
  transform: rotate(45deg);
  pointer-events: none;
}
.event-search-input {
  min-height: 56px;
  border: 2px solid #62B6CB;
  border-radius: 18px;
  padding: 13px 20px 13px 58px;
  background: #FFFFFF;
  color: #143F56;
  font: 500 15px/1.5 Manrope, Arial, sans-serif;
  box-shadow: 0 5px 14px rgba(13,59,102,.1);
}
.event-search-input::placeholder { color: #66747C; opacity: 1; }
.event-toolbar-actions { margin-top: 24px; justify-content: center; gap: 20px; }
.event-sort-select, .event-page-size-select {
  min-height: 52px;
  border-radius: 14px;
  background: #FFFFFF;
  font: 500 15px/1.5 Manrope, Arial, sans-serif;
}
.event-filters-inner { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.event-filter-accordion-toggle { min-height: 56px; font-family: Manrope, Arial, sans-serif; }
@media(max-width:800px) {
  .event-search-primary-row { grid-template-columns: 1fr; gap: 18px; }
  .event-search-primary-actions { grid-template-columns: 1fr 1fr; }
  .event-filters-inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:540px) {
  .event-filters-inner { grid-template-columns: 1fr; }
}

/* ZIP code and event type quick search */
.event-listings-header:not(:has(.event-detail-hero-inner)) + .event-listings-toolbar { margin-top:32px; }
.gst-event-quick-search { display:flex; justify-content:center; align-items:end; gap:20px; margin-bottom:24px; }
.gst-event-quick-search label { display:grid; gap:8px; color:#123F53; font:700 16px/1.5 Manrope,sans-serif; }
.gst-event-quick-search input,.gst-event-quick-search select { min-height:48px; padding:10px 16px; background:white; border:1px solid #d8e0e5; border-radius:14px; color:#123F53; font:500 16px/1.5 Manrope,sans-serif; }
.gst-event-quick-label { text-align:center; color:#123F53; }
.gst-event-type-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px; margin:24px 0 32px; }
.gst-event-type { display:flex; flex-direction:column; align-items:center; gap:12px; padding:16px 8px; border:1px solid transparent; border-radius:14px; background:transparent; color:#0D7480; font:600 14px/1.5 Manrope,sans-serif; cursor:pointer; }
.gst-event-type i { font-size:40px; }
.gst-event-symbol {position:relative;height:52px;width:74px;display:flex;align-items:center;justify-content:center;}
.gst-event-symbol--stage {flex-direction:column;gap:3px;}
.gst-event-symbol--stage i:first-child {font-size:28px;}
.gst-event-symbol--stage i:last-child {font-size:24px;}
.gst-event-symbol--table {flex-direction:column;}
.gst-event-symbol--table i:first-child {font-size:32px;}
.gst-event-table {width:65px;height:7px;border-radius:2px;background:currentColor;}
.gst-event-symbol--table .fa-heart-pulse {position:absolute;right:0;top:0;font-size:20px;background:#F7F3E8;}
.gst-event-symbol--family {gap:3px;}
.gst-event-symbol--family .fa-child {font-size:26px;align-self:flex-end;margin-bottom:4px;}
.gst-event-symbol--movie .fa-film {position:absolute;font-size:20px;top:0;left:8px;}
.gst-event-type:hover,.gst-event-type[aria-pressed=true] { background:white; border-color:#0D7480; }
.gst-event-type:focus-visible { outline:3px solid #62B6CB; outline-offset:3px; }
.event-listings-grid:not(:has(.event-card-detail)) { grid-template-columns:repeat(2,minmax(0,1fr)); }
.event-listings-page .gst-event-summary { display:grid; grid-template-columns:100px minmax(0,1fr); gap:16px 24px; padding:24px; background:white; }
.gst-event-record-image { width:100px; height:100px; object-fit:cover; border:2px solid #0D7480; border-radius:50%; }
.gst-event-image-placeholder { display:grid; place-items:center; color:#0D7480; background:white; font-size:36px; }
.event-listings-page .gst-event-summary .event-card-head {background:transparent;padding:0;text-align:left;color:#123F53;}
.event-listings-page .gst-event-summary .event-card-title { color:#123F53; }
.event-listings-page .gst-event-summary .event-card-date { color:#62B6CB; font-weight:700; }
.event-listings-page .gst-event-summary .event-card-timezone,
.event-listings-page .gst-event-summary .event-card-location {color:#123F53;}
.gst-event-summary .event-card-body { grid-column:2; }
.gst-event-free-badge { display:flex; align-items:center; justify-content:center; gap:8px; padding:9px 12px; border-radius:8px; background:#07545D; color:white; font:700 14px/1.35 Manrope,sans-serif; margin-bottom:16px; }
.gst-event-coverage {display:flex;align-items:center;gap:12px;color:#0D7480;margin-top:12px;font:600 15px/1.5 Manrope,sans-serif;}
.gst-event-coverage svg {flex:0 0 60px;}
@media(max-width:900px) { .gst-event-type-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:620px) {
  .gst-event-type-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .event-listings-grid:not(:has(.event-card-detail)) { grid-template-columns:1fr; }
  .event-listings-page .gst-event-summary { grid-template-columns:80px minmax(0,1fr); padding:18px; gap:16px; }
  .gst-event-record-image { width:80px; height:80px; }
  .gst-event-summary .event-card-body { grid-column:1/-1; }
  .gst-event-quick-search { flex-wrap:wrap; }
}
/* ZIP code, eligible event types, then Provider-style search controls. */
.event-listings-page .event-toolbar-inner{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%}
.event-listings-page .gst-event-type-grid{display:flex;flex-wrap:wrap;justify-content:center;width:100%;gap:20px;margin:24px 0 32px}
.event-listings-page .gst-event-type{flex:0 0 calc((100% - 120px)/7);min-width:110px;overflow-wrap:normal;word-break:normal}
.event-listings-page .event-search-primary-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:24px}
.event-listings-page .event-search-input{padding-left:54px!important;background-image:none!important;width:100%;box-sizing:border-box}
.event-listings-page .event-btn-secondary{color:#fff!important}
@media(max-width:800px){.event-listings-page .gst-event-type{flex-basis:calc((100% - 60px)/4)}.event-listings-page .event-search-primary-row{grid-template-columns:1fr}}
@media(max-width:540px){.event-listings-page .gst-event-type{flex-basis:calc((100% - 20px)/2)}}
