/* =============================================
   File: 2026-design-overrides.css
   Purpose: Sweeping sitewide design updates layered on top of legacy theme CSS.
   Scope: Keep original theme styles intact; place broad redesign overrides here.
   Naming: Future files should follow the same pattern, e.g. 2027-design-overrides.css.
   Organization:
   1. File guide / editing rules
   2. Global theme-wide overrides
   3. Shared components
   4. Page-specific sections (grouped by template/page)
   Editing rules:
   - Put broad sitewide rules in the Global sections below.
   - Put page-specific work under a page heading using the body class or template class.
   - Keep mobile overrides directly below the block they belong to.
   - Prefer extending this file over editing legacy style.css unless the base theme itself must change.
   ============================================= */

:root {
  --tlc-2026-radius: 16px;
  --tlc-2026-radius-mobile: 12px;
  --tlc-2026-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --tlc-2026-badge-shadow: 0 8px 24px rgba(0,0,0,0.18);
  --tlc-2026-image-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 15%, rgba(0, 0, 0, 0.78) 100%);

  /* Form control tokens, shadcn's pattern on our palette: flat + bordered +
     tight radius + a focus ring, instead of the floating drop-shadow pill.
     Declared here rather than in the MP sheet on purpose — custom properties
     inherit THROUGH a shadow boundary, so these reach inside the MP widgets'
     shadow roots even though no rule in this file can. One token source for
     the site and the widgets. */
  --tlc-control-radius: 10px;
  --tlc-control-radius-sm: 6px;
  --tlc-control-bg: #fff;
  --tlc-control-border: rgba(0, 0, 0, 0.14);
  --tlc-control-border-hover: rgba(0, 0, 0, 0.28);
  --tlc-control-ring: rgba(0, 0, 0, 0.55);
  --tlc-control-fg: #111;
  --tlc-control-muted: rgba(0, 0, 0, 0.55);
  /* Card tint reads against white page background. #f6f6f7 (~3% off white)
     was too faint for the card edge to register; #ebeced is ~8% and holds.
     --tlc-surface-tint stays the step darker again, for elements that sit ON
     a card: the avatar plate, progress track, filter bar, MP's label chips. */
  --tlc-surface-tint: #dfe1e4;
  --tlc-card-tint: #ebeced;
}

/* ---------------------------
   Global Theme
   Rounded Corners
   --------------------------- */
.container-fluid img,
.kids-block div,
.horizontal-drag .item-description,
.related-event-block,
.sbi_item,
.youtube-location-item img,
#pastors img {
	border-radius: var(--tlc-2026-radius);
}
.offcanvas-locations {
	border-radius: var(--tlc-2026-radius);
	padding: 0 !important;
}

@media (max-width: 767.98px) {
  .offcanvas-locations {
    border-radius: var(--tlc-2026-radius-mobile);
  }
}

/* ---------------------------
   Shared Components
   Cards, feeds, and reusable blocks
   --------------------------- */

/* Message / event cards — unified card shape, no seam between image and footer */
.related-event-block {
	border-radius: var(--tlc-2026-radius);
	border: none !important;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--tlc-2026-shadow);
}
/* Let the parent's overflow:hidden clip the image — no inner radius needed */
.related-event-block img {
	border-radius: 0 !important;
	box-shadow: none !important;
	border: none !important;
	display: block;
	width: 100%;
}
.related-event-image {
	flex-shrink: 0;
	overflow: hidden;
}
/* Flatten child radii — parent handles the shape */
.related-event-details,
.message-event-details {
	border-radius: 0 !important;
	/* Override Bootstrap p-5 (3rem) — too spacious; match the /visit card footer density */
	padding: 1.5rem !important;
}


@media (max-width: 767.98px) {
  .related-event-block {
    border-radius: var(--tlc-2026-radius-mobile);
  }
}

/* ---------------------------
   Buttons
   (original site already has border-radius on .black-button,
   .white-button etc. — no overrides needed here)
   --------------------------- */

/* ---------------------------
   Typography cleanup
   — preserve existing font stacks/weights, but remove italic serif styling
     and retire scribble decorations site-wide
   --------------------------- */
.serif-light,
.serif-medium,
.serif-bold {
  font-style: normal !important;
}

.navbar .current_page_item a,
.navbar .current-menu-item a,
.navbar .current-page-ancestor a,
.navbar .current-page-parent a,
.offcanvas-mobile-nav .current_page_item a,
.offcanvas-mobile-nav .current-menu-item a,
.offcanvas-mobile-nav .current-page-ancestor a,
.offcanvas-mobile-nav .current-page-parent a {
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: normal !important;
  line-height: inherit !important;
  font-weight: 700 !important;
}

.scribble-circle,
.scribble-circle span,
.scribble-underline,
.scribble-underline span,
.scribble-circle-reverse,
.scribble-circle-reverse span,
.scribble-underline-reverse,
.scribble-underline-reverse span {
  background-image: none !important;
}

.scribble-circle::before,
.scribble-circle::after,
.scribble-circle span::before,
.scribble-circle span::after,
.scribble-underline::before,
.scribble-underline::after,
.scribble-underline span::before,
.scribble-underline span::after,
.scribble-circle-reverse::before,
.scribble-circle-reverse::after,
.scribble-circle-reverse span::before,
.scribble-circle-reverse span::after,
.scribble-underline-reverse::before,
.scribble-underline-reverse::after,
.scribble-underline-reverse span::before,
.scribble-underline-reverse span::after {
  display: none !important;
  content: none !important;
}

.navbar .current_page_item a::before,
.navbar .current_page_item a::after,
.navbar .current_page_item span::before,
.navbar .current_page_item span::after,
.offcanvas-mobile-nav .current_page_item a::before,
.offcanvas-mobile-nav .current_page_item a::after,
.offcanvas-mobile-nav .current_page_item span::before,
.offcanvas-mobile-nav .current_page_item span::after {
  display: none !important;
}

/* ---------------------------
   Navbar login widget slot
   — <mpp-user-login> renders its fallback links and MP's stock styles until
     MPWidgets.js and the shadow customcss load, which made the header taller
     for a moment (and tripped WP Engine SPM's visual check). The hidden
     placeholder icon sizes the slot; the widget stacks on top of it at zero
     height so nothing it renders can change the header's height.
   --------------------------- */
.navbar-icon--login > * { /* grid comes from d-md-grid in content-nav.php */
  grid-area: 1 / 1;
}
.navbar-login-placeholder {
  visibility: hidden;
}
/* Zero-height line through the slot's middle; flex centering lets the
   widget overflow evenly above and below it, so the icon or logged-in pill
   lines up with the other navbar icons. Content still paints, so the dropdown
   works as before, and width still counts so the pill keeps its room. */
#mp-navbar-login {
  display: flex;
  align-items: center;
  align-self: center;
  height: 0;
}
/* Hide the fallback links until MP defines the element, and keep them from
   taking width (they'd squeeze the menu). Tradeoff: if MP's script never
   loads, the slot stays blank instead of showing those links. */
#mp-navbar-login:not(:defined) {
  visibility: hidden;
  width: 0;
}

/* ---------------------------
   Big Blockquote & Big Statement
   — dark variant (.main-text-bg-dark) gets rounded corners + shadow
   — light variant has no class, so target by child content
   --------------------------- */
.main-text-bg-dark {
  border-radius: var(--tlc-2026-radius) !important;
  overflow: hidden;
  box-shadow: var(--tlc-2026-shadow);
}
/* Light mode: add card treatment (border/shadow) to define against white page */
.main-content:has(.big-quote):not(.main-text-bg-dark),
.main-content:has(.big-statement):not(.main-text-bg-dark) {
  border-radius: var(--tlc-2026-radius);
  border: none !important;
  overflow: hidden;
  box-shadow: var(--tlc-2026-shadow);
}

@media (max-width: 767.98px) {
  .main-text-bg-dark,
  .main-content:has(.big-quote):not(.main-text-bg-dark),
  .main-content:has(.big-statement):not(.main-text-bg-dark) {
    border-radius: var(--tlc-2026-radius-mobile) !important;
  }
}

/* ---------------------------
   Single Photo
   — remove gap between image and caption, unify as one card
   --------------------------- */
.single-photo-block img.img-fill,
.container .img-fill + .video-caption,
.col:has(> .video-caption) img {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}
/* Kill inline baseline gap between image/iframe and caption */
.col:has(> .video-caption) img.img-fill {
  display: block;
  margin-bottom: 0;
  vertical-align: bottom;
  font-size: 0;
  line-height: 0;
}
.col:has(> .video-caption) .ratio {
  display: block;
  margin-bottom: 0;
  line-height: 0;
}
/* Wrap image + caption as a unified rounded card */
.container .col:has(> img.img-fill + .video-caption) {
  border-radius: var(--tlc-2026-radius);
  border: none !important;
  overflow: hidden;
  box-shadow: var(--tlc-2026-shadow);
  padding: 0 !important;
}
/* Solo image in single_photo (no caption) keeps its own radius */
.container .col:has(> img.img-fill:only-child) img.img-fill {
  border-radius: var(--tlc-2026-radius) !important;
}

@media (max-width: 767.98px) {
  .container .col:has(> img.img-fill + .video-caption) {
    border-radius: var(--tlc-2026-radius-mobile);
  }
  .container .col:has(> img.img-fill:only-child) img.img-fill {
    border-radius: var(--tlc-2026-radius-mobile) !important;
  }
}

/* ---------------------------
   Video Player
   — round the iframe and unify with caption as one card
   --------------------------- */
.ratio.ratio-16x9 {
  border-radius: var(--tlc-2026-radius);
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .ratio.ratio-16x9 {
    border-radius: var(--tlc-2026-radius-mobile);
  }
}

/* When video has a caption below, flatten bottom and wrap together */
.col:has(> .ratio + .video-caption) {
  border-radius: var(--tlc-2026-radius);
  border: none !important;
  overflow: hidden;
  box-shadow: var(--tlc-2026-shadow);
  padding: 0 !important;
}
.col:has(> .ratio + .video-caption) .ratio {
  border-radius: 0;
}
.video-caption {
  border-radius: 0 !important;
}

@media (max-width: 767.98px) {
  .col:has(> .ratio + .video-caption) {
    border-radius: var(--tlc-2026-radius-mobile);
  }
}

/* ---------------------------
   Embedded YouTube / iframes
   — all video iframes get rounded corners
   --------------------------- */
/* For iframes not inside a .ratio wrapper (e.g. raw embeds in post content) */
iframe[src*="youtube"],
iframe[src*="youtu.be"],
iframe[src*="vimeo"] {
  border-radius: var(--tlc-2026-radius);
}

@media (max-width: 767.98px) {
  iframe[src*="youtube"],
  iframe[src*="youtu.be"],
  iframe[src*="vimeo"] {
    border-radius: var(--tlc-2026-radius-mobile);
  }
}

/* Fix inline baseline gap — iframes default to display:inline which
   creates a descender gap below the element; block removes it.
   Also flatten iframe radius — the parent .ratio handles clipping,
   so the iframe's own rounded corners just create white gaps against
   adjacent elements like .video-caption */
.ratio iframe {
  display: block;
  border-radius: 0 !important;
}

/* ---------------------------
   Photo with Overlay Text
   layout: photo_with_overlay_text.php
   — image is a CSS background div (.image-50), not an <img>,
     so img:not(.wp-smiley) doesn't cover it; wrap the row instead
   --------------------------- */
.text-image-overlay {
  border-radius: var(--tlc-2026-radius);
  border: none !important;
  overflow: hidden;
  box-shadow: var(--tlc-2026-shadow);
}

.text-image-5050 .image-50,
.text-image-5050 .image-50-separate {
  border-radius: var(--tlc-2026-radius) !important;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .text-image-overlay {
    border-radius: var(--tlc-2026-radius-mobile);
  }

  .text-image-5050 .image-50,
  .text-image-5050 .image-50-separate {
    border-radius: var(--tlc-2026-radius-mobile) !important;
  }
}

.accordion-button:focus,
.accordion-button:focus-visible {
  box-shadow: none !important;
  outline: none !important;
}

.text-bg-dark .accordion-item li{
	color: white !important;
}

/* Instagram feed plugin injects Font Awesome SVGs in some buttons/headers */
#sb_instagram .sbi_header svg.svg-inline--fa,
#sb_instagram .sbi_follow_btn svg.svg-inline--fa,
#sb_instagram .sbi_load_btn svg.svg-inline--fa {
  display: none !important;
}

/* ---------------------------
   Modals
   — Bootstrap defaults are too soft/small for the 2026 card system
   --------------------------- */
.modal-content {
  border-radius: var(--tlc-2026-radius);
  border: none !important;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.modal-header {
  border-top-left-radius: var(--tlc-2026-radius);
  border-top-right-radius: var(--tlc-2026-radius);
}

@media (max-width: 767.98px) {
  .modal-content {
    border-radius: var(--tlc-2026-radius-mobile);
  }
  .modal-header {
    border-top-left-radius: var(--tlc-2026-radius-mobile);
    border-top-right-radius: var(--tlc-2026-radius-mobile);
  }
}

/* ---------------------------
   Orange Announcement Bar
   — full-width bar, keep flat edges
   --------------------------- */
.custom-banner-button {
  border-radius: 0 !important;
}

/* ---------------------------
   Hero Media Player
   — the player is a <video> inside .welcome-latest-message, not a carousel
   --------------------------- */
.welcome-latest-message,
.welcome-latest-message video {
  border-radius: var(--tlc-2026-radius) !important;
}

.welcome-latest-message {
  overflow: hidden !important;
}

.welcome-latest-message video {
  display: block;
}

@media (max-width: 767.98px) {
  .welcome-latest-message,
  .welcome-latest-message video {
    border-radius: var(--tlc-2026-radius-mobile) !important;
  }
}

.watch-message,
.watch-message .ratio,
.watch-message video,
.watch-message img.img-fill {
  border-radius: 0 !important;
}

/* ---------------------------
   White-to-Black / Black-to-White Transitions
   — all dark sections get consistent rounded corners
   --------------------------- */

/* Vision statement dark band */
.vision-statement {
  overflow: hidden;
}

/* Force all text to Gotham, remove italic serif, hide scribble decorations */
.vision-statement .serif-medium {
  font-family: Gotham, sans-serif !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

/* Flip: make the base h1 text normal weight */
.vision-statement .bigger-headline {
  font-weight: 400 !important;
}

.vision-statement .scribble-circle-reverse,
.vision-statement .scribble-underline-reverse {
  background-image: none !important;
}

.vision-statement .scribble-circle-reverse::before,
.vision-statement .scribble-circle-reverse::after,
.vision-statement .scribble-circle-reverse span::before,
.vision-statement .scribble-circle-reverse span::after,
.vision-statement .scribble-underline-reverse::before,
.vision-statement .scribble-underline-reverse::after,
.vision-statement .scribble-underline-reverse span::before,
.vision-statement .scribble-underline-reverse span::after {
  display: none !important;
}

.vision-values-vision-copy {
  overflow: hidden;
}

.vision-values-vision-copy .serif-medium {
  font-family: Gotham, sans-serif !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

.vision-values-vision-copy .bigger-headline {
  max-width: 100%;
  font-weight: 400 !important;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.vision-values-vision-copy .scribble-circle-reverse,
.vision-values-vision-copy .scribble-underline-reverse {
  background-image: none !important;
}

.vision-values-vision-copy .scribble-circle-reverse::before,
.vision-values-vision-copy .scribble-circle-reverse::after,
.vision-values-vision-copy .scribble-circle-reverse span::before,
.vision-values-vision-copy .scribble-circle-reverse span::after,
.vision-values-vision-copy .scribble-underline-reverse::before,
.vision-values-vision-copy .scribble-underline-reverse::after,
.vision-values-vision-copy .scribble-underline-reverse span::before,
.vision-values-vision-copy .scribble-underline-reverse span::after {
  display: none !important;
}

/* "Next Steps" / Move Forward dark block */
.next-steps-block {
  overflow: hidden;
}

/* Round the inner carousel image in the Next Steps section */
.next-steps-block .carousel.slide,
.next-steps-block .carousel-inner,
.next-steps-block .carousel-item,
.next-steps-block .step-photo,
.next-steps-block .step-photo img {
  border-radius: var(--tlc-2026-radius) !important;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .next-steps-block .carousel.slide,
  .next-steps-block .carousel-inner,
  .next-steps-block .carousel-item,
  .next-steps-block .step-photo,
  .next-steps-block .step-photo img {
    border-radius: var(--tlc-2026-radius-mobile) !important;
  }
}

/* Color-block gradient section */
.color-block-bg {
  overflow: hidden;
}

/* Welcome grid dark intro row */
.welcome-grid-intro {
  overflow: visible;
}

/* ---------------------------
   Event Boxes — "What's Happening in Church"
   Use the more-specific theme selector to win the cascade
   --------------------------- */
.horizontal-drag .draggable-item {
  border-radius: var(--tlc-2026-radius) !important;
  border: none !important;
  overflow: hidden;
  margin-right: 16px !important;
  box-shadow: var(--tlc-2026-shadow);
}

.horizontal-drag .draggable-item:first-child {
  margin-left: 8px !important;
}

/* <a> must be block so overflow:hidden on the parent clips the image */
.horizontal-drag .draggable-item a {
  display: block;
  overflow: hidden;
  border-radius: var(--tlc-2026-radius) !important;
}

.horizontal-drag .draggable-item img.img-fill {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  display: block;
  padding: 0 !important;
  width: 100% !important;
}

@media (max-width: 767.98px) {
  .horizontal-drag .draggable-item {
    border-radius: var(--tlc-2026-radius-mobile) !important;
  }
}

/* Location channel tiles — cancel overflow clip so rounded image corners aren't cut off */
.horizontal-drag .draggable-item:has(.youtube-location-item) {
  overflow: visible;
  background: transparent;
  border: none !important;
  box-shadow: none !important;
}
/* Full rounded corners on the thumbnail — image floats above the title label */
.youtube-location-item img {
  border-radius: var(--tlc-2026-radius) !important;
  padding: 0 !important;
  display: block;
}

@media (max-width: 767.98px) {
  .youtube-location-item img {
    border-radius: var(--tlc-2026-radius-mobile) !important;
  }
}

/* ---------------------------
   Footer
   — round the top corners so it reads as a contained card.
   Bootstrap .row has margin: 0 -12px which pushes it wider
   than the viewport, hiding the corners — reset those margins.
   --------------------------- */
.campus-details-footer {
  overflow: hidden;
}

/* ---------------------------
   Images (general softening)
   --------------------------- */
img:not(.wp-smiley):not(.emoji) {
  border-radius: var(--tlc-2026-radius);
}

/* Full-bleed photo/video layouts should stay flush and not inherit card chrome */
.container-fluid > .row > .col.g-0 > img.img-fill,
.container-fluid > .row > .col.g-0 > video.img-fill {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

@media (max-width: 767.98px) {
  img:not(.wp-smiley):not(.emoji) {
    border-radius: var(--tlc-2026-radius-mobile);
  }
}

/* Circular social / icon images — stay as circles, no shadow */
.fa-stack img,
.footer-social-links img,
img[style*="border-radius: 50%"] {
  border-radius: 50% !important;
  box-shadow: none !important;
  border: none !important;
}

/* Logo — keep square, no shadow */
.navbar-brand img {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

/* ---------------------------
   Cards & Content Blocks
   --------------------------- */
.current-location-image {
  border-radius: var(--tlc-2026-radius) !important;
  overflow: hidden;
}

.current-location {
  border-radius: var(--tlc-2026-radius) !important;
  overflow: hidden;
}

.new-location {
  border-radius: var(--tlc-2026-radius) !important;
}

@media (max-width: 767.98px) {
  .current-location-image {
    border-radius: var(--tlc-2026-radius-mobile) !important;
  }
  .current-location {
    border-radius: var(--tlc-2026-radius-mobile) !important;
  }
  .new-location {
    border-radius: var(--tlc-2026-radius-mobile) !important;
  }
}

/* ---------------------------
   Shared Components
   Image + share footer pair
   — wrapper owns the card chrome; image and share footer stay flush
   --------------------------- */
.image-share-card {
  border-radius: var(--tlc-2026-radius);
  border: none !important;
  overflow: hidden;
  box-shadow: var(--tlc-2026-shadow);
}
.image-share-card img {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  display: block;
  width: 100%;
  margin: 0 !important;
}
.image-share-card .share-event {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  margin-top: 0 !important;
}

@media (max-width: 767.98px) {
  .image-share-card {
    border-radius: var(--tlc-2026-radius-mobile);
  }
}

/* ---------------------------
   Page: Event Details
   Template: single-calendar.php
   Keep hero full-bleed, round the surfaced detail card, and let the share block
   own the bottom corners of the right rail.
   --------------------------- */
.single-calendar .event-details-header img.img-fill,
.single-calendar .event-details-header .ratio,
.single-calendar .event-details-header iframe {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.single-calendar .event-details-body {
  border-radius: var(--tlc-2026-radius) var(--tlc-2026-radius) 0 var(--tlc-2026-radius);
  border: none !important;
  overflow: hidden;
  box-shadow: var(--tlc-2026-shadow);
}

.single-calendar .event-details-body > [class*="col-"]:last-child > .text-bg-dark {
  border-radius: 0 !important;
}

.single-calendar .event-details-body > [class*="col-"]:last-child > .share-event {
  border-radius: 0 0 var(--tlc-2026-radius) 0;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .single-calendar .event-details-body {
    border-radius: var(--tlc-2026-radius-mobile) var(--tlc-2026-radius-mobile) 0 var(--tlc-2026-radius-mobile);
  }

  .single-calendar .event-details-body > [class*="col-"]:last-child > .share-event {
    border-radius: 0 0 var(--tlc-2026-radius-mobile) 0;
  }
}

/* ---------------------------
   Shared Components
   Contained dark blocks
   — reusable card treatment for dark content blocks that sit inside
     normal page containers; excludes full-width dark bands and FAQs
   --------------------------- */
.container.main-content.text-bg-dark,
.main-content > .row > [class*="col-"].text-bg-dark,
.main-content > .row > .col > .text-bg-dark {
  border-radius: var(--tlc-2026-radius);
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .container.main-content.text-bg-dark,
  .main-content > .row > [class*="col-"].text-bg-dark,
  .main-content > .row > .col > .text-bg-dark {
    border-radius: var(--tlc-2026-radius-mobile);
  }

}

/* ---------------------------
   Shared Components
   Region cards
   --------------------------- */
.regions-card {
  border-radius: var(--tlc-2026-radius);
  border: none !important;
  overflow: hidden;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: var(--tlc-2026-shadow);
}

.regions-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.regions-card-image {
  min-height: 360px;
  border-radius: var(--tlc-2026-radius) !important;
  overflow: hidden;
  background-position: center;
}

.regions-card-overlay {
  min-height: 360px;
  padding: 20px;
  background: var(--tlc-2026-image-overlay);
}

.regions-card-title {
  color: #fff;
  font-size: clamp(1.4rem, 2.1vw, 2.1rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 0;
}

.regions-card-link:hover .regions-card-title,
.regions-card-link:focus-visible .regions-card-title {
  color: #fff;
  opacity: 0.92;
}

@media (max-width: 767px) {
  .regions-card {
    border-radius: var(--tlc-2026-radius-mobile);
  }

  .regions-card-image {
    min-height: 300px;
    border-radius: var(--tlc-2026-radius-mobile) !important;
  }

  .regions-card-overlay {
    min-height: 300px;
    padding: 18px;
  }

  .regions-card-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 479px) {
  .regions-card-image {
    min-height: 260px;
  }

  .regions-card-overlay {
    min-height: 260px;
    padding: 16px;
  }

  .regions-card-title {
    font-size: 1.35rem;
  }
}

/* ---------------------------
   Shared Components
   Visit / location cards
   --------------------------- */
.visit-us-locations,
.visit-us-single-location {
	margin-bottom: 2.5rem;
}

.visit-us-locations > [class*="col-"] {
	display: flex;
}

.visit-us-locations {
	row-gap: 1rem; /* 16px vertical — horizontal gap comes from m-2 on the card (8px × 2 = 16px) */
}

.visit-us-locations .offcanvas-locations,
.visit-us-single-location .offcanvas-locations {
	overflow: hidden;
	background: transparent !important;
	padding: 0 !important;
	border-radius: var(--tlc-2026-radius);
	border: none !important;
	box-shadow: var(--tlc-2026-shadow);
}

.visit-us-locations .visit-location-card,
.visit-us-single-location .visit-location-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	cursor: pointer;
}

.visit-us-locations .visit-location-card {
	height: 100%;
}

.visit-us-locations .visit-location-card-online .current-location-image,
.visit-us-single-location .visit-location-card-online .current-location-image {
	border-radius: var(--tlc-2026-radius) !important;
}

.visit-us-locations .visit-location-card:hover .visit-location-title,
.visit-us-locations .visit-location-card:hover .visit-location-address-overlay,
.visit-us-single-location .visit-location-card:hover .visit-location-title,
.visit-us-single-location .visit-location-card:hover .visit-location-address-overlay {
	color: #fff;
}

.visit-us-locations .current-location-image,
.visit-us-single-location .current-location-image {
	cursor: default;
	min-height: 320px;
	background-position: center;
	border-radius: var(--tlc-2026-radius) var(--tlc-2026-radius) 0 0 !important;
	overflow: hidden;
}

.visit-us-locations .visit-location-image-overlay,
.visit-us-single-location .visit-location-image-overlay {
	min-height: 320px;
	padding: 20px;
	background: var(--tlc-2026-image-overlay);
	position: relative;
}

.visit-us-locations .visit-location-title,
.visit-us-single-location .visit-location-title {
	color: #fff;
	font-size: clamp(1.35rem, 2vw, 2rem);
	line-height: 0.98;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.visit-us-locations .visit-location-heading,
.visit-us-single-location .visit-location-heading {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.visit-us-locations .visit-location-address-overlay,
.visit-us-single-location .visit-location-address-overlay {
	color: rgba(255,255,255,0.84);
	font-size: 0.88rem;
	line-height: 1.25;
	letter-spacing: 0.01em;
	max-width: 28ch;
	white-space: nowrap;
	overflow: hidden;
}

.visit-us-locations .visit-location-times-badge,
.visit-us-single-location .visit-location-times-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	display: inline-flex;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: var(--tlc-2026-badge-shadow);
}

.visit-us-locations .visit-location-times-separator,
.visit-us-single-location .visit-location-times-separator {
	display: inline-block;
	margin: 0 0.35em;
}

.visit-us-locations .current-location-details,
.visit-us-single-location .current-location-details {
	display: flex;
	flex-direction: column;
	border-radius: 0 !important;
	overflow: visible;
	background: transparent !important;
	flex: 1 1 auto;
}

.visit-us-locations .current-location,
.visit-us-single-location .current-location {
	background: #111 !important;
	background-image: none !important;
	padding-left: 1.25rem !important;
	padding-right: 1.25rem !important;
	padding-bottom: 0.55rem !important;
	border-radius: 0 !important;
	margin-top: 0 !important;
	top: 0;
	display: flex;
	flex: 1 1 auto;
	min-height: 7.75rem;
}

.visit-us-locations .visit-location-card-no-footer .current-location,
.visit-us-single-location .visit-location-card-no-footer .current-location {
	display: none;
}

.visit-us-locations .visit-location-card-no-footer .current-location-image,
.visit-us-locations .visit-location-card-no-footer .visit-location-image-overlay,
.visit-us-single-location .visit-location-card-no-footer .current-location-image,
.visit-us-single-location .visit-location-card-no-footer .visit-location-image-overlay {
	min-height: calc(320px + 7.75rem);
	border-radius: var(--tlc-2026-radius) !important;
}

.visit-us-locations .visit-location-card-no-footer .current-location-image,
.visit-us-single-location .visit-location-card-no-footer .current-location-image {
	display: flex;
	flex: 1 1 auto;
}

.visit-us-locations .visit-location-card-no-footer .visit-location-image-overlay,
.visit-us-single-location .visit-location-card-no-footer .visit-location-image-overlay {
	display: flex;
	flex: 1 1 auto;
	width: 100%;
}

.visit-us-locations .current-location .locations-globe,
.visit-us-single-location .current-location .locations-globe {
	opacity: 0.22;
}

.visit-us-locations .current-location-pastor,
.visit-us-single-location .current-location-pastor {
	border-top: 1px solid rgba(255,255,255,0.16);
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.visit-us-locations .current-location-pastor:first-child,
.visit-us-single-location .current-location-pastor:first-child {
	border-top: 0;
	padding-top: 1rem !important;
	padding-bottom: 0.7rem !important;
}

.visit-us-locations .current-location-pastor-label,
.visit-us-single-location .current-location-pastor-label {
	color: rgba(255,255,255,0.68);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.visit-us-locations .current-location-pastor-content,
.visit-us-single-location .current-location-pastor-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(0.5rem, 2%, 0.9rem);
	min-width: 0;
}

.visit-us-locations .current-location-pastor-copy,
.visit-us-single-location .current-location-pastor-copy {
	flex: 1 1 auto;
	min-width: 0;
}

/* Label always sits above the names. As a wrapping row the two sat
   side by side whenever the card happened to have room (no photo, wide
   viewport) and stacked when it didn't — same card, two layouts. */
.visit-us-locations .current-location-pastor-line,
.visit-us-single-location .current-location-pastor-line {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	line-height: 1.2;
	min-width: 0;
}

.visit-us-locations .current-location-pastor-names,
.visit-us-single-location .current-location-pastor-names {
	color: #fff;
	font-size: clamp(1rem, 1.4vw, 1.1rem);
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

/* Contact actions — map pin then envelope, as circular icon buttons.
   Replaces the email-as-text line, and the map link that used to live on the
   card image via .stretched-link: the whole card was a link to Google Maps,
   which made the pastor photo and the campus name unclickable for anything
   else and gave no hint where a click would go. Two labelled targets are
   clearer than one invisible one. */
.visit-us-locations .current-location-contact-actions,
.visit-us-single-location .current-location-contact-actions {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	margin-top: 0.7rem;
	margin-left: 0;
	padding-left: 0;
}

/* The anchor IS the disc — drawn in CSS, not with fa-stack.
   fa-stack's painted circle sits inset inside its own box (the box measures
   flush with the text, the glyph does not), and the inset differs between the
   kit's webfont and SVG modes. A CSS circle makes the left edge exact. */
.visit-us-locations .current-location-contact-icon,
.visit-us-single-location .current-location-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 1.05rem;
	line-height: 1;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.visit-us-locations .current-location-contact-icon:hover,
.visit-us-single-location .current-location-contact-icon:hover {
	background: #fff;
	color: #111;
	opacity: 0.75;
}

.visit-us-locations .current-location-contact-icon:focus-visible,
.visit-us-single-location .current-location-contact-icon:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Webfont mode: the <i> is a text node, so width/height do nothing for where
   the glyph's ink lands — they only resize the box and throw the centring off.
   fa-fw (in the markup) normalises the advance width so the pin and the
   envelope centre identically; the flex container does the rest. */
/* Let FA size the glyph in whichever mode the kit runs. Forcing width/height
   here was the problem in SVG mode: fa-location-dot's viewBox is 384x512, so
   squeezing it into a 1em square shifts the artwork inside the disc. Flex
   centring on the anchor does the positioning; the nudge corrects the line-box
   offset, measured the same for both icons. */
.visit-us-locations .current-location-contact-icon i,
.visit-us-locations .current-location-contact-icon svg,
.visit-us-single-location .current-location-contact-icon i,
.visit-us-single-location .current-location-contact-icon svg {
	font-size: inherit;
	line-height: 1;
	color: inherit;
	/* style.css:298 sets `.current-location-details i { margin-left: 0.75rem }`
	   for the legacy inline icons in this footer. It catches these too and
	   pushed the glyph off the disc's centre. */
	margin: 0 !important;
	transform: translateY(0.08em);
}

.visit-us-locations .current-location-pastor-photo,
.visit-us-single-location .current-location-pastor-photo {
	width: clamp(64px, 26%, 82px);
	height: auto;
	aspect-ratio: 1 / 1;
	flex: 0 0 auto;
	border-radius: 50% !important;
	object-fit: cover;
	box-shadow: none !important;
	border: none !important;
}

.visit-us-locations .current-location-pastor-email a,
.visit-us-single-location .current-location-pastor-email a {
	color: rgba(255,255,255,0.88);
	text-decoration: none;
	line-height: 1.25;
}

.visit-us-locations .current-location-pastor-email a:hover,
.visit-us-single-location .current-location-pastor-email a:hover {
	color: #fff;
}

@media (max-width: 767.98px) {
	.visit-us-locations,
	.visit-us-single-location {
		margin-bottom: 2rem;
	}

	.visit-us-locations {
		row-gap: 0.85rem;
	}

	.visit-us-locations .offcanvas-locations,
	.visit-us-single-location .offcanvas-locations {
		border-radius: var(--tlc-2026-radius-mobile);
	}

	.visit-us-locations .current-location-image,
	.visit-us-single-location .current-location-image {
		min-height: 280px;
		border-radius: var(--tlc-2026-radius-mobile) var(--tlc-2026-radius-mobile) 0 0 !important;
	}

	.visit-us-locations .visit-location-card-online .current-location-image,
	.visit-us-single-location .visit-location-card-online .current-location-image {
		border-radius: var(--tlc-2026-radius-mobile) !important;
	}

	.visit-us-locations .visit-location-image-overlay,
	.visit-us-single-location .visit-location-image-overlay {
		min-height: 280px;
		padding: 18px;
	}

	.visit-us-locations .visit-location-times-badge,
	.visit-us-single-location .visit-location-times-badge {
		top: 18px;
		right: 18px;
		font-size: 0.68rem;
	}

	.visit-us-locations .visit-location-title,
	.visit-us-single-location .visit-location-title {
		font-size: 1.55rem;
	}

	.visit-us-locations .visit-location-address-overlay,
	.visit-us-single-location .visit-location-address-overlay {
		font-size: 0.82rem;
		max-width: 100%;
	}

	.visit-us-locations .current-location,
	.visit-us-single-location .current-location {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
		padding-bottom: 0.45rem !important;
		border-radius: 0 !important;
		min-height: 6.75rem;
	}

	.visit-us-locations .visit-location-card-no-footer .current-location-image,
	.visit-us-locations .visit-location-card-no-footer .visit-location-image-overlay,
	.visit-us-single-location .visit-location-card-no-footer .current-location-image,
	.visit-us-single-location .visit-location-card-no-footer .visit-location-image-overlay {
		min-height: calc(280px + 6.75rem);
		border-radius: var(--tlc-2026-radius-mobile) !important;
	}

	.visit-us-locations .current-location-pastor-photo,
	.visit-us-single-location .current-location-pastor-photo {
		width: clamp(60px, 26%, 78px);
	}
}

@media (max-width: 479px) {
	.visit-us-locations .visit-location-card-online .current-location-image,
	.visit-us-single-location .visit-location-card-online .current-location-image {
		border-radius: var(--tlc-2026-radius-mobile) !important;
	}

	.visit-us-locations .visit-location-image-overlay,
	.visit-us-single-location .visit-location-image-overlay {
		padding: 16px;
	}

	.visit-us-locations .visit-location-times-badge,
	.visit-us-single-location .visit-location-times-badge {
		top: 16px;
		right: 16px;
		font-size: 0.64rem;
		padding: 0.3rem 0.55rem;
	}

	.visit-us-locations .visit-location-title,
	.visit-us-single-location .visit-location-title {
		font-size: 1.3rem;
	}

	.visit-us-locations .visit-location-address-overlay,
	.visit-us-single-location .visit-location-address-overlay {
		font-size: 0.84rem;
		max-width: 100%;
	}
}

/* Mobile edge breathing room — prevents rounded elements from clipping at viewport edge.
   .container.main-content cards sit at ~2rem from viewport (1rem container margin +
   Bootstrap col gutter), so dark containers use 2rem margin to align visually. */
@media (max-width: 767.98px) {
  /* Standard page content containers */
  /* .container.main-content {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    width: auto;
  } */

  /* Dark statement/blockquote card containers */
  .container.main-text-bg-dark,
  .container.main-content.text-bg-dark {
    margin-left: .75rem !important;
    margin-right: .75rem !important;
    width: auto;
  }

  /* Photo & text column layouts (container-fluid, page builder) */
  /* .container-fluid.main-content {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    width: auto;
  } */

  /* Photo with overlay text: the row itself is the rounded card */
  .text-image-overlay {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
}

/* ---------------------------
   Card Grid layout (page builder)
   Dark card with title, WYSIWYG subtitle, optional image, and a pill button.
   Visual reference: mp-group-page.less (black card / white pill button).
--------------------------- */
.card-grid {
  --card-grid-bg: #000;
  --card-grid-fg: #fff;
  --card-grid-rule: rgba(255, 255, 255, 0.25);
  --card-grid-radius: 1.25rem;
}

.card-grid .card-grid__card {
  position: relative; /* anchor for the absolutely-positioned Join button */
  background: var(--card-grid-bg);
  color: var(--card-grid-fg);
  border-radius: var(--card-grid-radius);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 16rem;
  height: 100%;
}

.card-grid .card-grid__card--no-image,
.card-grid .card-grid__card--image-right { flex-direction: row; }
.card-grid .card-grid__card--image-left { flex-direction: row-reverse; }

.card-grid .card-grid__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  /* extra bottom padding reserves room for the absolutely-positioned button */
  padding: 2rem 2rem 5rem;
  min-width: 0;
}

.card-grid .card-grid__title {
  font-family: 'Gotham', sans-serif !important;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--card-grid-rule);
  color: var(--card-grid-fg);
}

.card-grid .card-grid__subtitle {
  font-family: 'Gotham', sans-serif !important;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--card-grid-fg);
  margin-bottom: 1.5rem;
}

.card-grid .card-grid__subtitle p { margin: 0 0 .25rem; color: inherit; }
.card-grid .card-grid__subtitle p:last-child { margin-bottom: 0; }
.card-grid .card-grid__subtitle a { color: var(--card-grid-fg); text-decoration: underline; }

.card-grid .card-grid__btn-wrap {
  position: absolute;
  right: 2rem;
  bottom: 1.75rem;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.card-grid .card-grid__btn {
  display: inline-block;
  font-family: 'Gotham', sans-serif !important;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  background: #fff;
  color: #000 !important;
  border: 0;
  border-radius: 999px;
  padding: .85rem 2.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.card-grid .card-grid__btn:hover,
.card-grid .card-grid__btn:focus {
  background: #f0f0f0;
  color: #000 !important;
  text-decoration: none;
}

.card-grid .card-grid__image {
  flex: 0 0 9rem;
  width: 9rem;
  max-width: 9rem;
  aspect-ratio: 1 / 1;
  align-self: flex-start;
  margin: 1rem 1rem 0 0;
  border-radius: .75rem;
  background: #111;
  overflow: hidden;
}

.card-grid .card-grid__card--image-left .card-grid__image {
  margin: 1rem 0 0 1rem;
}

.card-grid .card-grid__image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 767px) {
  .card-grid .card-grid__image {
    flex-basis: 6rem;
    width: 6rem;
    max-width: 6rem;
    aspect-ratio: 1 / 1;
    margin: .75rem .75rem 0 0;
  }
  .card-grid .card-grid__card--image-left .card-grid__image {
    margin: .75rem 0 0 .75rem;
  }
  .card-grid .card-grid__body { padding: 1.5rem 1.25rem 4.5rem; }
  .card-grid .card-grid__btn-wrap { right: 1.25rem; bottom: 1.25rem; }
}

/* ---------------------------
   Footer sitemap layout (2026)
   — renders when footer-N menu locations are assigned (footer.php).
   Left: Connect column (contact, social, subscribe).
   Right: sitemap link columns, VOUS-style gray label below each group.
   --------------------------- */
.footer-sitemap-layout {
  padding: 2rem 1rem 0;
}

.footer-sitemap-layout .campus-contact-info {
  padding-top: 0; /* base style.css adds 3rem for the legacy layout */
}

.footer-sitemap-layout .campus-contact-info p,
.footer-sitemap-layout .campus-contact-info a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-sitemap-layout .campus-contact-info a:hover,
.footer-sitemap-layout .campus-contact-info a:focus,
.footer-sitemap-layout .campus-contact-info a:active {
  color: var(--seasonal, #fff);
}

.footer-subscribe-button {
  display: inline-block;
  max-width: 340px;
}

/* Connect heading row — social icons ride the heading's underline row;
   contact info and the subscribe button follow as one group */
.footer-connect-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}

.footer-connect-heading h6 {
  margin-bottom: 0;
  border-bottom: none;
  white-space: nowrap;
}

.footer-connect-heading .footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-connect-heading .footer-social-links a {
  margin-bottom: 0 !important; /* partial's anchors carry mb-2 */
  line-height: 1;
}

/* fa-stack sizes from font-size (height = 2em): 1rem => 32px icons */
.footer-connect-heading .fa-stack {
  font-size: 1rem;
}

/* Sitemap link columns */
.footer-sitemap-links {
  margin-bottom: 0;
}

.footer-sitemap-links li {
  margin-bottom: 0.85rem;
}

.footer-sitemap-links a {
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.3;
}

/* Hover / press picks up the seasonal accent — the same --seasonal custom
   property custom-styles.css writes from the ACF option, so each campus gets
   its own color (same one that rings the current header item). */
.footer-sitemap-links a:hover,
.footer-sitemap-links a:focus,
.footer-sitemap-links a:active {
  color: var(--seasonal, #589a61);
}

/* Gray category label above each group */
.footer-column-label {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 400;
}

/* Bottom bar: copyright + privacy */
.footer-sitemap-layout .footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
}

.footer-sitemap-layout .footer-copyright a {
  color: inherit;
}

@media (max-width: 991.98px) {
  .footer-sitemap-layout .footer-sitemap-columns {
    padding-top: 0 !important;
  }
  .footer-sitemap-column {
    margin-bottom: 2rem;
  }
}

/* ---------------------------
   Page submenu (2026)
   — mobile: the Bootstrap dropdown, restyled on-brand (the horizontal
   chip rail it briefly replaced is gone). The bar itself takes the
   seasonal color from custom-styles.css; everything below is chrome.
   Sections still carry anchor ids (photo_and_text_columns) so submenu
   entries can deep-link with #anchors.
   --------------------------- */
.page-mobile-submenu {
  padding: 0.5rem 0.75rem;
}

/* Pill toggle. Needs `button` in the selector to out-specify the legacy
   `.page-mobile-submenu button` reset in style.css. */
.page-mobile-submenu button.page-submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: 'Gotham', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Bootstrap's own caret — we draw a chevron that rotates instead */
.page-mobile-submenu button.page-submenu-toggle::after {
  display: none;
}

.page-mobile-submenu button.page-submenu-toggle i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.page-mobile-submenu button.page-submenu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.28);
}

.page-mobile-submenu button.page-submenu-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Panel. Doubled class beats the legacy `.page-mobile-submenu .dropdown-menu`
   square-black rule, which the load order would otherwise let win. */
.page-mobile-submenu .dropdown-menu.page-submenu-dropdown {
  min-width: 220px;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 0;
  border-radius: 16px; /* site-wide 2026 radius */
  background-color: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.page-submenu-dropdown .dropdown-item {
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  color: #fff;
  font-family: 'Gotham', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: normal; /* long section names wrap instead of stretching the panel */
}

.page-submenu-dropdown .dropdown-item:hover,
.page-submenu-dropdown .dropdown-item:focus,
.page-submenu-dropdown .dropdown-item:active,
.page-submenu-dropdown .dropdown-item.active {
  background-color: var(--seasonal, #589a61);
  color: #fff;
}

/* Anchor landings clear the fixed navbar + submenu on direct hash loads
   (clicks are animated by scripts.js with its own offset — no CSS
   scroll-behavior here, it fights jQuery's scrollTop animation) */
:target {
  scroll-margin-top: 120px;
}

/* ---------------------------
   Compact mobile sections on submenu pages
   — pages long enough to need a submenu get a tighter mobile rhythm:
   capped image height and reduced headings/margins so scanning to a
   section is fast. Desktop is untouched.
   --------------------------- */
@media (max-width: 767.98px) {
  body:has(.page-mobile-submenu) .text-image-5050 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  body:has(.page-mobile-submenu) .text-image-5050 h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  body:has(.page-mobile-submenu) .text-image-5050 .text-50 p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* Dividing lines between sections carry less vertical weight */
  body:has(.page-mobile-submenu) .main-content.my-4 {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
}

/* Nav links never wrap mid-label ("Get Involved" was breaking to two
   lines at mid widths and growing the fixed navbar) */
.navbar .nav-link,
.navbar .navbar-nav a {
  white-space: nowrap;
}


/* Card grid icon — optional FA icon above the title (card_icon field).
   Sized to lead the card without competing with the title. */
.card-grid .card-grid__icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 1.25rem;
  color: var(--card-grid-fg);
}

/* Side-header card grid (Heading set on the block): heading row above
   a wrapping grid of full-image tiles — three per row on desktop, extra
   cards wrap to new rows. No scrolling. */
.card-grid--side-header .card-grid__rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* header row above the tiles: heading and description share one line,
   wrapping naturally on narrow screens */
.card-grid__header--top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline; /* description text sits on the heading's baseline */
  gap: 0.75rem 1.75rem;
  margin-bottom: 1.5rem;
}

.card-grid__header--top .card-grid__heading {
  margin: 0;
}

.card-grid--side-header .card-grid__description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.65);
  margin: 0;
  flex: 1 1 320px;
}

/* Full-image tile */
.card-grid .card-grid__card--tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1 / 1; /* preferred square — long copy grows the tile instead of spilling over the image */
  border-radius: var(--card-grid-radius);
  overflow: hidden;
  background: var(--card-grid-bg);
}

.card-grid .card-grid__tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.card-grid .card-grid__card--tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tlc-2026-image-overlay);
}

.card-grid .card-grid__tile-content {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  color: #fff;
}

/* type scale matches the /visit-us campus cards */
.card-grid .card-grid__tile-title {
  font-family: 'Gotham', sans-serif !important;
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 0.5rem;
}

.card-grid .card-grid__tile-text {
  font-family: 'Gotham', sans-serif !important;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
}

.card-grid .card-grid__tile-text p { margin: 0; color: inherit; }

.card-grid .card-grid__card--tile .card-grid__btn {
  font-size: 0.9rem;
  padding: 0.75rem 1.7rem;
  gap: 1.75rem;
}

/* tablets: two tiles per row; phones: single column stack */
@media (max-width: 991.98px) {
  .card-grid--side-header .card-grid__rail {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .card-grid--side-header .card-grid__rail {
    grid-template-columns: 1fr;
  }
  .card-grid .card-grid__card--tile {
    aspect-ratio: 4 / 3;
  }
}

/* Card grid image-led variant (3-up grids with images) — mirrors the
   /visit campus cards: photo on top with the standard dark gradient,
   title in white over the lower portion of the image, body below. */
.card-grid .card-grid__card--image-led {
  flex-direction: column;
}

.card-grid .card-grid__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex: 0 0 auto;
}

.card-grid .card-grid__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.card-grid .card-grid__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tlc-2026-image-overlay);
}

.card-grid .card-grid__media-title {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.25rem;
  z-index: 1;
  margin: 0;
  font-family: 'Gotham', sans-serif !important;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #fff;
}

.card-grid .card-grid__card--image-led .card-grid__body {
  padding-top: 1.5rem;
}

/* Overlay block icon panel — when the block has an icon instead of a
   photo, the image area becomes a light rounded panel with the icon
   oversized. Lighter-weight section header than a full photo band. */
.text-image-overlay .image-50--icon {
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tlc-2026-radius);
  box-shadow: var(--tlc-2026-shadow);
}

.text-image-overlay .image-50--icon i {
  font-size: 9rem;
  color: #000;
}

@media (max-width: 767.98px) {
  .text-image-overlay .image-50--icon {
    min-height: 260px; /* icon panels don't need the full 400px photo height */
    border-radius: var(--tlc-2026-radius-mobile);
  }
  .text-image-overlay .image-50--icon i {
    font-size: 6.5rem;
  }
}

/* Card grid heading — modest left-aligned section header above the
   tiles, icon inline beside the text; also carries the section anchor.
   The cards below are the feature, the heading just names the group. */
.card-grid .card-grid__heading {
  font-family: 'Gotham', sans-serif !important;
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.15;
  color: #000;
  margin: 0 0 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-grid .card-grid__heading i {
  font-size: 2.25rem;
  line-height: 1;
}

@media (max-width: 767.98px) {
  .card-grid .card-grid__heading {
    font-size: 2.1rem;
    gap: 0.75rem;
  }
  .card-grid .card-grid__heading i {
    font-size: 1.75rem;
  }
}

/* Card button — text left, site-standard arrow right */
.card-grid .card-grid__btn {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}

/* Dark-on-light counterpart to .headline-inverse, for eyebrow headings that sit
   on a white section (Tithe Challenge). Mirrors the inverse rule's underline. */
.headline {
  border-bottom: 1px solid #000;
  color: #000;
}

/* ---------------------------
   Text + Badge layout (layouts/text_and_badge.php)
   — copy beside a dark badge styled like the /visit campus-card pastor footer:
   #111, small-caps label, Gotham Bold name, round photo on the right.
   --------------------------- */
.text-badge .text-badge__card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 440px;
  margin-left: auto;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: #111;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

/* Badge on the left: hug the outer (left) edge instead of the right */
.text-badge--badge-left .text-badge__card {
  margin-left: 0;
}

a.text-badge__card:hover,
a.text-badge__card:focus-visible {
  color: #fff;
  background: #000;
}

/* img.class to out-rank the global img:not(.wp-smiley):not(.emoji) 16px radius;
   order puts the photo on the right like the /visit cards */
.text-badge img.text-badge__photo {
  order: 2;
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  margin-left: auto;
  border-radius: 50%;
  object-fit: cover;
}

.text-badge .text-badge__copy p {
  margin: 0;
}

.text-badge .text-badge__label {
  margin-bottom: 2px !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.text-badge .text-badge__title {
  font-family: 'Gotham', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.text-badge .text-badge__subtitle {
  margin-top: 0.35rem !important;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 991.98px) {
  .text-badge .text-badge__card {
    margin-left: 0;
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .text-badge .text-badge__card {
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
  }
  .text-badge img.text-badge__photo {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
}

/* ---------------------------
   Page Builder "Section spacing: Tight" (page-level ACF option, wrapper .pb-tight)
   — every block shares the standard container width and the same vertical rhythm,
   so sections flow like /give instead of each block bringing its own margins.
   Bootstrap spacing utilities (my-5, py-4, mx-md-5, p-sm-5…) are !important,
   so these have to be too. Standard pages never get the wrapper.
   Full-bleed blocks (page hero, full-width photo/video: .row > .col.g-0) are left alone.
   --------------------------- */
.pb-tight > .container,
.pb-tight > .container-fluid:not(.page-hero):not(:has(> .row > .col.g-0)) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

/* Inner rows/columns drop their own vertical padding; the block padding is the only gap */
.pb-tight > .container > .row,
.pb-tight > .container-fluid:not(.page-hero) > .row,
.pb-tight .text-50,
.pb-tight .text-50-separate {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Edge margins inside a block (theme h1 has a 48px top margin) would double the gap */
.pb-tight > div :is(h1, h2, h3, h6):first-child {
  margin-top: 0 !important;
}
.pb-tight > div :is(p, ul, ol):last-child {
  margin-bottom: 0;
}

/* Full-width blocks (photo + text, carousel) join the standard container width */
.pb-tight > .container-fluid:not(.page-hero):not(:has(> .row > .col.g-0)) {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}
@media (min-width: 576px)  { .pb-tight > .container-fluid:not(.page-hero):not(:has(> .row > .col.g-0)) { max-width: 540px; } }
@media (min-width: 768px)  { .pb-tight > .container-fluid:not(.page-hero):not(:has(> .row > .col.g-0)) { max-width: 720px; } }
@media (min-width: 992px)  { .pb-tight > .container-fluid:not(.page-hero):not(:has(> .row > .col.g-0)) { max-width: 960px; } }
@media (min-width: 1200px) { .pb-tight > .container-fluid:not(.page-hero):not(:has(> .row > .col.g-0)) { max-width: 1140px; } }
@media (min-width: 1400px) { .pb-tight > .container-fluid:not(.page-hero):not(:has(> .row > .col.g-0)) { max-width: 1320px; } }

/* A little more air between the hero and the first section */
.pb-tight > .page-hero + .container,
.pb-tight > .page-hero + .container-fluid {
  padding-top: 3rem !important;
}

/* Single-column rows in full-width blocks (e.g. carousel header) sit on the shared edge;
   on phones they take the same 1rem inset as the px-3 blocks */
.pb-tight > .container-fluid:not(.page-hero) > .row > .col:only-child {
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 576px) {
  .pb-tight > .container-fluid:not(.page-hero) > .row > .col:only-child {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Photo + text: drop the mx-md-5 inset so the photo starts on the shared left edge */
.pb-tight .text-image-5050 {
  margin-left: calc(-0.5 * var(--bs-gutter-x)) !important;
  margin-right: calc(-0.5 * var(--bs-gutter-x)) !important;
}
@media (min-width: 992px) {
  .pb-tight .text-image-5050 > div:first-child { padding-left: 0; }
  .pb-tight .text-image-5050 > div:last-child  { padding-right: 0; }
}
@media (max-width: 575.98px) {
  .pb-tight .text-image-5050 > div { padding-left: 1rem; padding-right: 1rem; }
}

/* Two-column text: outer edges flush with the rest; keep the gutter between columns */
@media (min-width: 576px) {
  .pb-tight > .container > .row > .px-sm-5:first-child { padding-left: 0 !important; }
  .pb-tight > .container > .row > .px-sm-5:last-child  { padding-right: 0 !important; }
  .pb-tight > .container > .row > .px-sm-5:only-child  { padding-left: 0 !important; padding-right: 0 !important; }
}

@media (max-width: 767.98px) {
  .pb-tight > .container,
  .pb-tight > .container-fluid:not(.page-hero):not(:has(> .row > .col.g-0)) {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* ---------------------------
   Photo + Text blocks (photo_and_text_columns / _separate)
   — style.css pads the text column 3rem on every side and the first heading adds its
   own 48px top margin, so the text wrapped narrow and the photo floated centered in
   extra space. Keep only the gutter that faces the photo; heading starts at the top.
   .row prefix: this file loads before style.css (header.php), so it loses ties.
   --------------------------- */
@media (min-width: 992px) {
  .row.text-image-5050 .text-50,
  .row.text-image-5050 .text-50-separate {
    padding: 0 0 0 3rem;
  }
  /* Photo on the right (.order-lg-last) puts the text on the left: gutter on its right */
  .row.text-image-5050 > .order-lg-last + div .text-50,
  .row.text-image-5050 > .order-lg-last + div .text-50-separate {
    padding: 0 3rem 0 0;
  }
}

@media (max-width: 991.98px) {
  /* Stacked: photo above, a small gap, then the text */
  .row.text-image-5050 .text-50,
  .row.text-image-5050 .text-50-separate {
    padding: 1.5rem 0 0;
  }
}

.row.text-image-5050 :is(.text-50, .text-50-separate) > :is(h1, h2):first-child {
  margin-top: 0;
}

/* ---------------------------
   Width cap for Photo + Text (photo_and_text_columns / _separate)
   — they were container-fluid, so on wide screens they stretched to the viewport while
   every text block stopped at the Bootstrap container (1320px). Same max-widths and
   left edge as .container now. Carousel, dividers, Instagram and the hero stay full width.
   --------------------------- */
.container-fluid:has(> .row.text-image-5050),
.container-fluid.text-image-5050 {
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 576px)  { .container-fluid:has(> .row.text-image-5050), .container-fluid.text-image-5050 { max-width: 540px; } }
@media (min-width: 768px)  { .container-fluid:has(> .row.text-image-5050), .container-fluid.text-image-5050 { max-width: 720px; } }
@media (min-width: 992px)  { .container-fluid:has(> .row.text-image-5050), .container-fluid.text-image-5050 { max-width: 960px; } }
@media (min-width: 1200px) { .container-fluid:has(> .row.text-image-5050), .container-fluid.text-image-5050 { max-width: 1140px; } }
@media (min-width: 1400px) { .container-fluid:has(> .row.text-image-5050), .container-fluid.text-image-5050 { max-width: 1320px; } }

/* Drop the mx-md-5 inset so the photo starts on the shared left edge.
   Direct children of .container-fluid only (same scope as the width cap above) —
   nested rows like the Vision featured band have no cap and would bleed off-screen. */
.container-fluid > .row.text-image-5050 {
  margin-left: calc(-0.5 * var(--bs-gutter-x)) !important;
  margin-right: calc(-0.5 * var(--bs-gutter-x)) !important;
}
@media (min-width: 992px) {
  .container-fluid > .row.text-image-5050 > div:first-child { padding-left: 0; }
  .container-fluid > .row.text-image-5050 > div:last-child  { padding-right: 0; }
  /* Photo on the right: the photo column is first in the DOM but displays last
     (order-lg-last), so the flush edges swap */
  .container-fluid > .row.text-image-5050 > .order-lg-last:first-child {
    padding-left: calc(0.5 * var(--bs-gutter-x));
    padding-right: 0;
  }
  .container-fluid > .row.text-image-5050 > .order-lg-last:first-child + div {
    padding-left: 0;
    padding-right: calc(0.5 * var(--bs-gutter-x));
  }
}
