/* ============================================================
   CROSSWAY MISSION — MOBILE APP STYLE OVERRIDES
   Applies at max-width: 900px to transform the site into an
   app-style layout matching the mobile mockup.
   ============================================================ */

/* ── DESKTOP: hide mobile-only elements ────────────────────── */
.cm-mobile-bottom-nav {
  display: none;
}
.cm-mobile-live-notice {
  display: none;
}
.cm-nav__mobile-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 48px;
  flex-shrink: 0;
}
.cm-nav__mobile-title {
  display: none;
}
.cm-mobile-drawer {
  display: none;
}
.cm-mobile-drawer__overlay {
  display: none;
}
.cm-nav__notification-btn {
  display: none;
}
.cm-nav__watch-live-link {
  display: none;
}
.cm-footer__install-app {
  display: none;
}
.cm-pwa-reinstall-notice {
  display: none;
}
.cm-mobile-launch-screen {
  display: none;
}

/* ── MOBILE: show mobile-only elements ─────────────────────── */
@media (max-width: 900px) {

  :root {
    --nav-h: 55px;
    --cm-mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
    --cm-mobile-page-gutter: 20px;
    --cm-mobile-radius: 12px;
    --r: 12px;
    --r-sm: 12px;
    --r-md: 12px;
    --r-lg: 12px;
  }

  #scrollUp,
  #toTop,
  #back-to-top,
  #backtotop,
  #ast-scroll-top,
  .scrollUp,
  .scrollup,
  .scroll-to-top,
  .back-to-top,
  .back-to-top-button,
  .go-top,
  .gotop,
  .to-top,
  .toTop,
  .top-button,
  .topbutton,
  .wpfront-scroll-top-container,
  .scroll-back-to-top-wrapper,
  .generate-back-to-top,
  a[href="#top"],
  button[aria-label*="top" i],
  a[aria-label*="top" i],
  button[title*="top" i],
  a[title*="top" i] {
    display: none !important;
  }

  html,
  body,
  body.cm-site,
  #page,
  #content,
  #main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  #main {
    padding-top: var(--nav-h);
  }

  body.admin-bar #main {
    padding-top: calc(var(--nav-h) + 46px);
  }

  .cm-mobile-bottom-nav {
    display: flex;
  }
  .cm-mobile-live-notice {
    display: flex;
  }
  .cm-mobile-live-notice[hidden] {
    display: none !important;
  }
  .cm-mobile-drawer {
    display: none;
  }
  .cm-mobile-drawer__overlay {
    display: none;
  }

  .cm-pwa-reinstall-notice {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 10020;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--cm-mobile-radius);
    background: #263d1d;
    box-shadow: 0 18px 42px rgba(21, 32, 14, 0.24);
    color: #f7f2eb;
  }
  .cm-pwa-reinstall-notice__copy {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 3px;
  }
  .cm-pwa-reinstall-notice__copy strong {
    font-size: 13px;
    line-height: 1.2;
  }
  .cm-pwa-reinstall-notice__copy span {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(247, 242, 235, 0.78);
  }
  .cm-pwa-reinstall-notice__dismiss {
    appearance: none;
    flex: 0 0 auto;
    min-height: 36px;
    border: 1px solid rgba(247, 242, 235, 0.42);
    border-radius: var(--cm-mobile-radius);
    background: rgba(247, 242, 235, 0.1);
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 0 12px;
  }
  .cm-pwa-reinstall-notice__dismiss:focus-visible {
    outline: 2px solid #f7f2eb;
    outline-offset: 2px;
  }

  html.cm-mobile-launch-pending,
  html.cm-mobile-launch-pending body {
    overflow: hidden;
  }

  html.cm-mobile-launch-pending .cm-mobile-launch-screen {
    display: flex;
  }

  .cm-mobile-launch-screen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
    background:
      radial-gradient(circle at 50% 28%, rgba(215, 229, 168, 0.28), rgba(215, 229, 168, 0) 34%),
      linear-gradient(180deg, #fbf7f0 0%, #f0eadf 100%);
    color: #263d1d;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.34s ease, visibility 0s linear 0s;
  }

  html.cm-mobile-launch-hiding .cm-mobile-launch-screen {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.34s ease, visibility 0s linear 0.34s;
  }

  .cm-mobile-launch-screen__inner {
    width: min(100%, 330px);
    display: grid;
    justify-items: center;
    gap: 0;
    text-align: center;
    transform: translateY(-5vh);
  }

  .cm-mobile-launch-screen__mark {
    width: 86px;
    height: 116px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -6px;
  }

  .cm-mobile-launch-screen__mark img {
    width: 74px;
    height: 118px;
    object-fit: contain;
  }

  .cm-mobile-launch-screen__brand {
    display: grid;
    justify-items: center;
    line-height: 1;
  }

  .cm-mobile-launch-screen__brand-main {
    font-family: 'Maddison Signature', 'Playfair Display', Georgia, serif;
    font-size: 74px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.98;
    color: #013a21;
  }

  .cm-mobile-launch-screen__brand-sub {
    margin-top: 4px;
    font-family: var(--font-body, Lato, Arial, sans-serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.28em;
    line-height: 1.2;
    text-transform: uppercase;
    color: #050b0f;
  }

  @media (prefers-reduced-motion: reduce) {
    .cm-mobile-launch-screen,
    html.cm-mobile-launch-hiding .cm-mobile-launch-screen {
      transition: none;
    }
  }



  /* ── GLOBAL SECTION & CONTAINER RESETS ─────────────────── */
  /* Override desktop 96px section padding */
  .section {
    padding: 32px 0;
  }
  .section--alt {
    padding: 28px 0;
  }
  /* Tighter container padding on mobile */
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--cm-mobile-page-gutter);
    padding-right: var(--cm-mobile-page-gutter);
  }
  /* Section title smaller on mobile */
  .section-title {
    font-size: 22px;
  }
  .section-sub {
    font-size: 14px;
  }
  .divider {
    margin: 12px 0 20px;
  }
  .tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 2.4px;
  }
  .tag::before {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--olive);
    flex-shrink: 0;
  }
  .divider--center {
    margin-left: auto;
    margin-right: auto;
  }
  .cm-home .section[style*="text-align:center"] .divider,
  .cm-home .section--alt [style*="text-align:center"] .divider,
  .cm-home .section [style*="text-align:center"] .divider--center {
    margin-left: auto;
    margin-right: auto;
  }

  /* ── NAV BAR — STICKY FROSTED GLASS ────────────────────── */
  .cm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1095;
    background: #f7f2eb;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px 16px 5px;
    margin: 0;
    height: var(--nav-h);
    box-sizing: border-box;
    min-height: 55px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
  }
  .cm-nav.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  }
  .cm-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 100%;
    height: 100%;
  }
  .cm-nav__logo {
    display: flex;
    align-items: center;
    gap: 0;
    width: auto;
    height: auto;
    flex: 1 1 auto;
    min-width: 0;
    transform: translateX(-11px);
  }
  .cm-nav__mobile-logo-shell {
    display: inline-flex;
    width: 37px;
    height: 44px;
    border-radius: var(--cm-mobile-radius);
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
  }
  .cm-nav__logo-mark {
    width: 34px;
    height: 38px;
    object-fit: contain;
    object-position: center;
    filter: none;
    opacity: 1;
  }
  .cm-nav__logo-text {
    display: none !important;
  }
  .cm-nav__mobile-title {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #1E3D18;
    line-height: 1;
    min-width: 0;
    overflow: visible;
    white-space: nowrap;
    transform: translateY(1px);
  }
  .cm-nav__mobile-title-main {
    font-family: 'Maddison Signature', 'Playfair Display', Georgia, serif;
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.15;
  }
  .cm-nav__mobile-title-sub {
    margin-top: 3px;
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    color: #59634f;
  }
  /* Hide desktop nav items on mobile */
  .cm-nav__menu {
    display: none !important;
  }
  .cm-nav__member-link {
    display: none !important;
  }
  .cm-nav__actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .cm-nav__icon-btn,
  .cm-nav__icon-btn:visited {
    width: 29px;
    height: 29px;
    border-radius: var(--cm-mobile-radius);
    background: rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1E3D18;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }
  .cm-nav__icon-btn:hover,
  .cm-nav__icon-btn:focus-visible {
    background: rgba(76, 91, 13, 0.12);
    color: #3A4508;
    transform: translateY(-1px);
  }
  /* Map chooser button */
  .cm-nav-map-chooser {
    position: relative;
  }
  .cm-nav-map-chooser__summary {
    width: 29px;
    height: 29px;
    border-radius: var(--cm-mobile-radius);
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E3D18;
    cursor: pointer;
    list-style: none;
    border: none;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }
  .cm-nav-map-chooser__summary::-webkit-details-marker {
    display: none;
  }
  .cm-nav-map-chooser__summary svg,
  .cm-nav__notification-btn svg,
  .cm-nav__editor-launch-btn svg {
    width: 16px;
    height: 16px;
  }
  .cm-nav__watch-live-link,
  .cm-nav__watch-live-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 29px;
    padding: 0 10px;
    border-radius: var(--cm-mobile-radius);
    background: #8f2d22;
    color: #fffaf5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(92, 26, 19, 0.18);
  }
  .cm-nav__watch-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffd0c2;
    box-shadow: 0 0 0 3px rgba(255, 208, 194, 0.2);
    flex: 0 0 auto;
  }
  .cm-nav__watch-live-link:hover,
  .cm-nav__watch-live-link:focus-visible {
    background: #7d2117;
    color: #fffaf5;
    transform: translateY(-1px);
  }
  @media (max-width: 380px) {
    .cm-nav__watch-live-link,
    .cm-nav__watch-live-link:visited {
      padding: 0 8px;
      font-size: 8px;
    }
  }
  .cm-nav-map-chooser__summary:hover,
  .cm-nav-map-chooser__summary:focus-visible,
  .cm-nav-map-chooser[open] .cm-nav-map-chooser__summary {
    background: rgba(76, 91, 13, 0.12);
    color: #3A4508;
    transform: translateY(-1px);
  }
  .cm-nav__notification-btn,
  .cm-nav__editor-launch-btn {
    width: 29px;
    height: 29px;
    border-radius: var(--cm-mobile-radius);
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #1E3D18;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }
  .cm-nav__notification-btn.is-visible {
    display: inline-flex;
  }
  .cm-nav__editor-launch-btn {
    display: inline-flex;
  }
  .cm-nav__notification-btn:hover,
  .cm-nav__notification-btn:focus-visible,
  .cm-nav__editor-launch-btn:hover,
  .cm-nav__editor-launch-btn:focus-visible,
  .cm-nav__editor-launch-btn.is-active {
    background: rgba(76, 91, 13, 0.12);
    color: #3A4508;
    transform: translateY(-1px);
  }
  .cm-nav__editor-launch-btn.is-active {
    background: #6b8c2a;
    color: #ffffff;
  }
  .cm-nav__notification-btn.is-enabled {
    background: #6b8c2a;
    color: #ffffff;
  }
  .cm-nav__notification-btn.is-blocked {
    cursor: not-allowed;
    opacity: 0.55;
  }
  .cm-nav-map-chooser__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: var(--cm-mobile-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    min-width: 160px;
    z-index: 1000;
  }
  .cm-nav-map-chooser__item {
    display: block;
    padding: 13px 16px;
    font-size: 13px;
    color: #1C1E18;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .cm-nav-map-chooser__item:last-child {
    border-bottom: none;
  }
  /* Hamburger button */
  .cm-nav__mobile-btn {
    width: 29px;
    height: 29px;
    border-radius: var(--cm-mobile-radius);
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E3D18;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }
  .cm-nav__mobile-btn:hover,
  .cm-nav__mobile-btn:focus-visible,
  .cm-nav__mobile-btn[aria-expanded="true"] {
    background: rgba(76, 91, 13, 0.12);
    color: #3A4508;
    transform: translateY(-1px);
  }
  .cm-nav__mobile-btn svg {
    width: 19px;
    height: 19px;
  }

  /* ── HERO SECTION — COMPACT, APP-STYLE ─────────────────── */
  .cm-home .hero {
    min-height: calc(100svh - 146px) !important;
  }
  .hero {
    min-height: auto !important;
    padding: 0 !important;
    overflow-x: clip;
  }
  .hero__inner {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset !important;
    padding: 26px var(--cm-mobile-page-gutter) 0;
    min-height: auto !important;
    gap: 0;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .cm-home .hero__inner {
    min-height: calc(100svh - 146px);
    justify-content: space-between;
  }
  .hero__content {
    padding: 12px 0 22px;
    order: 1;
    display: flex;
    flex-direction: column;
  }
  .cm-home .hero__content {
    padding-top: 12px;
  }
  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 18px;
    order: 1;
  }
  .hero__brand-lockup {
    order: 2;
  }
  .hero__title {
    font-size: clamp(44px, 13vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .hero__title-accent {
    display: block;
    color: #4C5B0D;
    font-style: italic;
  }
  .hero__divider {
    width: 44px;
    height: 2px;
    margin: 22px 0 18px;
  }
  .hero__tagline {
    font-size: 14px;
    margin: 0 auto 22px;
    line-height: 1.65;
    opacity: 0.7;
    max-width: 100%;
    order: 4;
    text-align: center;
  }
  .hero__desc {
    display: block;
    order: 3;
    max-width: 100%;
    margin: 10px 0 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #59634f;
    text-align: center;
  }
  .hero__btns {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    order: 5;
  }
  .cm-home .hero__btns {
    flex-direction: row !important;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 8px !important;
  }
  .hero__btns .btn {
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--cm-mobile-radius);
    flex: 1;
    text-align: center;
  }
  .cm-home .hero__btns .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    justify-content: center;
    padding: 12px 10px !important;
    font-size: 12px !important;
    line-height: 1.2;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
  }

  /* Scripture card — transform to appear as app widget below hero */
  .hero__visual {
    display: block !important;
    order: 2;
    padding: 14px 0 34px;
  }
  .hero__card {
    border-radius: var(--cm-mobile-radius);
    padding: 22px 22px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: none;
  }
  .hero__badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: #4C5B0D;
    color: #fff;
    padding: 6px 14px;
    border-radius: 0 0 var(--cm-mobile-radius) var(--cm-mobile-radius);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .hero__card-tag {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }
  .hero__card-verse {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 10px;
  }
  .hero__card-ref {
    font-size: 11px;
    margin-bottom: 0;
  }
  /* Hide service times on mobile — just show verse */
  .hero__card-times {
    display: none;
  }
  /* Hide scroll indicator */
  .hero__scroll {
    display: none;
  }

  /* Also hide announcements carousel if too prominent */
  .cm-home main > .hero + .announcements-carousel-section {
    margin-top: 0;
    padding-top: 0;
  }
  .announcements-carousel {
    margin: 0 0 8px;
  }
  .announcements-carousel-section {
    margin: 0;
    padding-top: 22px;
  }
  .announcements-carousel-header {
    margin-bottom: 24px;
  }
  .announcements-carousel-section .container,
  .cm-home > main .section > .container,
  .cm-home main .section > .container,
  .cm-home .cta-banner .container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--cm-mobile-page-gutter);
    padding-right: var(--cm-mobile-page-gutter);
  }
  .announcements-carousel-section .announcement-carousel,
  .cm-home .featured-sermon--home,
  .cm-home .welcome__grid,
  .cm-home .ministries__grid,
  .cm-home .events__grid,
  .cm-home .cta-banner__inner {
    width: 100%;
    max-width: 100%;
  }
  .announcement-card {
    border-top: none !important;
    border-left: none !important;
    border-radius: 0;
    box-shadow: 0 10px 26px rgba(17, 31, 13, 0.08);
    overflow: hidden;
  }

  /* ── FEATURED SERMON — APP CARD STYLE ──────────────────── */
  .cm-home .featured-sermon--home {
    padding: 0;
  }
  .cm-home .featured-sermon--home::before {
    display: none;
  }
  .cm-home .featured-sermon--home .featured-sermon__inner {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset !important;
    padding: 0;
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--cm-mobile-radius);
  }
  .cm-home .featured-sermon--home .featured-sermon__video {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: var(--cm-mobile-radius) var(--cm-mobile-radius) 0 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
  }
  .cm-home .featured-sermon--home .featured-sermon__mobile-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--cm-mobile-radius) var(--cm-mobile-radius) 0 0;
    background: transparent;
    box-shadow: none;
    outline: 0;
  }
  .cm-home .featured-sermon--home .featured-sermon__mobile-poster-image {
    width: calc(100% + 28px);
    height: calc(100% + 28px);
    max-width: none;
    object-fit: cover;
    display: block;
    transform: translate(-14px, -14px);
    filter: saturate(0.92) contrast(1.02);
  }
  .cm-home .featured-sermon--home .featured-sermon__mobile-poster::after {
    display: none;
  }
  .cm-home .featured-sermon--home .featured-sermon__mobile-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  }
  .cm-home .featured-sermon--home .featured-sermon__mobile-play svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-left: 3px;
  }
  .cm-home .featured-sermon--home .featured-sermon__embed {
    display: none;
  }
  .cm-home .featured-sermon--home .featured-sermon__info {
    width: 100%;
    background: #1E3D18;
    border-radius: 0 0 var(--cm-mobile-radius) var(--cm-mobile-radius);
    padding: 18px 20px 20px;
    margin: 0;
    box-sizing: border-box;
  }
  .cm-home .featured-sermon--home .featured-sermon__status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
  }
  .cm-home .featured-sermon--home .featured-sermon__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 1 auto;
    min-height: 29px;
    box-sizing: border-box;
    padding: 4px 10px;
    border-radius: var(--cm-mobile-radius);
    background: rgba(107, 140, 42, 0.2);
    border: 1px solid rgba(107, 140, 42, 0.3);
    color: #6B8C2A;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
  }
  .cm-home .featured-sermon--home .featured-sermon__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(107, 140, 42, 0.14);
    flex: 0 0 auto;
  }
  .cm-home .featured-sermon--home.is-upcoming-livestream .featured-sermon__badge {
    background: #ffe08a;
    border-color: #bf8e1d;
    color: #12371f;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 8px 18px rgba(93, 68, 15, .12);
  }
  .cm-home .featured-sermon--home.is-upcoming-livestream .featured-sermon__badge::before {
    background: #17451f;
    box-shadow: 0 0 0 3px rgba(18, 55, 31, 0.14);
  }
  .cm-home .featured-sermon--home.is-live-now .featured-sermon__badge {
    background: #8f2d22;
    border-color: #7d2117;
    color: #fffaf5;
  }
  .cm-home .featured-sermon--home.is-live-now .featured-sermon__badge,
  .cm-home .featured-sermon--home.is-live-now .featured-sermon__countdown {
    background: #8f2d22;
    border-color: #7d2117;
    color: #fffaf5;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 18px rgba(92, 26, 19, .22);
    animation: cm-sermon-live-breathe 2.4s ease-in-out infinite;
  }
  .cm-home .featured-sermon--home.is-live-now .featured-sermon__badge::before,
  .cm-home .featured-sermon--home.is-live-now .featured-sermon__countdown::before {
    background: #ffd0c2;
    box-shadow: 0 0 0 3px rgba(255, 208, 194, 0.22);
  }
  .cm-home .featured-sermon--home .featured-sermon__countdown {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    min-height: 29px;
    box-sizing: border-box;
    margin: 0 0 0 auto;
    padding: 4px 10px;
    border: 1px solid rgba(255, 224, 138, 0.34);
    border-radius: var(--cm-mobile-radius);
    background: #2f5b2b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 8px 18px rgba(0,0,0,.14);
  }
  .cm-home .featured-sermon--home .featured-sermon__countdown::before {
    content: "";
    width: 14px;
    height: 14px;
    background: #ffe08a;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5a7.5 7.5 0 0 0 0 5'/%3E%3Cpath d='M3.5 6.5a12 12 0 0 0 0 11'/%3E%3Cpath d='M17.5 9.5a7.5 7.5 0 0 1 0 5'/%3E%3Cpath d='M20.5 6.5a12 12 0 0 1 0 11'/%3E%3Ccircle cx='12' cy='12' r='2.4' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5a7.5 7.5 0 0 0 0 5'/%3E%3Cpath d='M3.5 6.5a12 12 0 0 0 0 11'/%3E%3Cpath d='M17.5 9.5a7.5 7.5 0 0 1 0 5'/%3E%3Cpath d='M20.5 6.5a12 12 0 0 1 0 11'/%3E%3Ccircle cx='12' cy='12' r='2.4' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
    flex: 0 0 auto;
  }
  .cm-home .featured-sermon--home .featured-sermon__countdown-label {
    color: #fff8df;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }
  .cm-home .featured-sermon--home .featured-sermon__countdown-value {
    color: #fff8df;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .cm-home .featured-sermon--home .featured-sermon__countdown.is-starting .featured-sermon__countdown-label {
    display: none;
  }
  .cm-home .featured-sermon--home .featured-sermon__series {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.56);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  .cm-home .featured-sermon--home .featured-sermon__title {
    font-size: 18px;
    color: #fbf7ec;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .cm-home .featured-sermon--home .featured-sermon__title-link,
  .cm-home .featured-sermon--home .featured-sermon__title-link:visited {
    color: #fbf7ec;
    text-decoration: none;
  }
  .cm-home .featured-sermon--home .featured-sermon__title-link:hover,
  .cm-home .featured-sermon--home .featured-sermon__title-link:focus-visible {
    color: #ffffff;
  }
  .cm-home .featured-sermon--home .featured-sermon__verse {
    font-size: 12px;
    color: #6B8C2A;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .cm-home .featured-sermon--home .featured-sermon__live-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    margin: 2px 0 14px;
    padding: 10px 14px;
    border: 1px solid #d7ac3d;
    border-radius: 8px;
    background: #071f12;
    color: #fffdf2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(7, 31, 18, .32), inset 0 1px 0 rgba(255,255,255,.12);
  }
  .cm-home .featured-sermon--home .featured-sermon__live-cta-dot {
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid #ffe08a;
    filter: drop-shadow(0 0 4px rgba(255, 224, 138, .28));
  }
  .cm-home .featured-sermon--home .featured-sermon__live-cta.is-live .featured-sermon__live-cta-dot {
    animation: cm-sermon-live-pulse-dark 2.4s ease-in-out infinite;
  }
  .cm-home .featured-sermon--home .featured-sermon__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cm-home .featured-sermon--home .featured-sermon__speaker {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.56);
  }
  .cm-home .featured-sermon--home .featured-sermon__speaker-line {
    background: rgba(255, 255, 255, 0.22);
  }

  /* ── EVENTS — HORIZONTAL SCROLL ────────────────────────── */
  .events__header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
  }
  .events__header .btn {
    display: none;
  }
  .cm-home-section-heading {
    margin-bottom: 18px;
  }
  .cm-home-section-heading .section-title {
    margin-bottom: 0;
  }
  .cm-home-section-heading .section-sub {
    margin-top: 0;
  }
  .cm-home-section-heading--center {
    text-align: left;
  }
  .cm-home-section-heading--center .divider,
  .cm-home-section-heading--center .divider--center {
    margin-left: 0;
    margin-right: auto;
  }
  .events__grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 0 16px;
    margin-bottom: 8px;
  }
  .events__grid::-webkit-scrollbar {
    display: none;
  }
  .event-card {
    min-width: 260px;
    max-width: 280px;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: var(--cm-mobile-radius);
    overflow: hidden;
  }
  .event-card__date {
    background: #1E3D18;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .event-card__month {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6B8C2A;
  }
  .event-card__day {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-head);
    line-height: 1;
  }
  .event-card__body {
    padding: 14px 16px;
    background: #fff;
  }
  .event-card__cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #4C5B0D;
    margin-bottom: 6px;
  }
  .event-card__title {
    font-family: var(--font-head);
    font-size: 15px;
    color: #1E3D18;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  .event-card__meta {
    font-size: 12px;
    color: #6B6B5A;
  }
  .event-card__desc {
    font-size: 12px;
    color: #6B6B5A;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
  }

  /* ── MINISTRIES — 2-COLUMN CHIP GRID ───────────────────── */
  .ministries__grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 14px;
    grid-template-columns: unset !important;
  }
  .min-card {
    flex: 1 1 calc(50% - 5px);
    min-width: 140px;
    min-height: 92px;
    padding: 18px 16px;
    box-shadow: 0 10px 26px rgba(17, 31, 13, 0.08);
    border-radius: var(--cm-mobile-radius);
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .min-card__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 0;
    border-radius: var(--cm-mobile-radius);
    flex-shrink: 0;
  }
  .min-card__icon svg {
    width: 24px;
    height: 24px;
  }
  .min-card__icon .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 24px;
  }
  .min-card__icon .min-card__emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
  }
  .min-card__title {
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 4px;
  }
  .min-card__sub {
    font-size: 11px;
    line-height: 1.35;
    color: #6B6B5A;
    margin: 0;
  }
  .min-card__desc {
    font-size: 11px;
    line-height: 1.35;
    color: #6B6B5A;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .min-card__link {
    display: none;
  }

  /* ── CTA BANNER ─────────────────────────────────────────── */
  .cm-home .cta-banner {
    padding: 0 0 24px;
    background: #f7f2eb !important;
  }
  .cm-home .cta-banner .container {
    padding-left: var(--cm-mobile-page-gutter);
    padding-right: var(--cm-mobile-page-gutter);
  }
  .cm-home .cta-banner__inner {
      flex-direction: column;
      gap: 26px;
      padding: 32px 24px;
      text-align: center;
      background: #08260f;
      border-radius: var(--cm-mobile-radius);
      margin: 6px 0 0;
    }
  .cm-home .cta-banner__title {
      font-size: 26px;
      margin-bottom: 8px;
    }
  .cm-home .cta-banner__sub {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.72);
      max-width: 280px;
      margin: 0 auto;
      line-height: 1.65;
    }
  .cm-home .cta-banner__btns {
      justify-content: center;
      flex-wrap: nowrap;
      gap: 10px;
      width: 100%;
    }
  .cm-home .cta-banner__btns .btn {
      flex: 1 1 0;
      min-width: 0;
      max-width: 154px;
      justify-content: center;
      border-radius: var(--cm-mobile-radius);
      padding: 13px 12px;
      letter-spacing: 0;
      text-transform: none;
      font-size: 12px;
      line-height: 1.2;
      white-space: nowrap;
    }
  .cm-home .cta-banner__btns .btn--primary {
      background: #6A7C11;
      border-color: #6A7C11;
    }
  .cm-home .cta-banner__btns .btn--outline,
  .cm-home .cta-banner__btns .btn--outline:visited {
      background: transparent;
      border-color: rgba(255, 255, 255, 0.24);
    }
  @media (max-width: 360px) {
    .cm-home .cta-banner__inner {
      padding: 28px 18px;
    }
    .cm-home .cta-banner__btns {
      flex-direction: column;
      align-items: center;
    }
    .cm-home .cta-banner__btns .btn {
      width: 100%;
      max-width: 210px;
    }
  }
  .cm-home .section.section--alt .cm-home-section-heading {
    text-align: left;
    margin-bottom: 20px;
  }
  .cm-home .section.section--alt .cm-home-section-heading .divider,
  .cm-home .section.section--alt .cm-home-section-heading .divider--center {
    margin-left: 0;
    margin-right: 0;
  }
  .cm-home .section.section--alt .cm-home-section-heading .section-sub {
    display: none;
  }
  .cm-home .section.section--alt .ministries__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .cm-home .section.section--alt .min-card {
    min-width: 0;
    min-height: 0;
    padding: 12px 14px;
    border-radius: var(--cm-mobile-radius);
    box-shadow: 0 8px 22px rgba(17, 31, 13, 0.08);
    align-items: center;
    gap: 12px;
  }
  .cm-home .section.section--alt .min-card__content {
    min-width: 0;
  }
  .cm-home .section.section--alt .min-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--cm-mobile-radius);
  }
  .cm-home .section.section--alt .min-card__icon svg {
    width: 20px;
    height: 20px;
  }
  .cm-home .section.section--alt .min-card__icon .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
  }
  .cm-home .section.section--alt .min-card__icon .min-card__emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
  }
  .cm-home .section.section--alt .min-card__title {
    font-size: 13px;
    line-height: 1.2;
    margin: 0 0 2px;
    font-family: inherit;
    font-weight: 700;
  }
  .cm-home .section.section--alt .min-card__sub {
    font-size: 10px;
    line-height: 1.3;
    margin: 0;
  }
  .cm-home .section.section--alt .min-card__desc {
    display: none;
  }
  .cm-home .section.section--alt .cm-home-section-heading .divider,
  .cm-home .section.section--alt .cm-home-section-heading .divider--center {
    display: none;
  }

  /* ── MOBILE DRAWER ───────────────────────────────────────── */
  .cm-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    pointer-events: none;
    background: transparent;
    overflow: hidden;
  }
  .cm-mobile-drawer[aria-hidden="true"] {
    display: none !important;
  }
  .cm-mobile-drawer.is-open,
  .cm-mobile-drawer[aria-hidden="false"] {
    display: block;
    pointer-events: auto;
  }
  /* Overlay — lives OUTSIDE the drawer in DOM (so position:fixed covers full viewport) */
  .cm-mobile-drawer__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 30, 10, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1199; /* below drawer but above sticky page controls */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  /* JS adds cm-drawer-open to body when drawer opens */
  body.cm-drawer-open .cm-mobile-drawer__overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .cm-mobile-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: min(300px, 88vw);
    display: flex;
    flex-direction: column;
    height: 100%;
    height: 100dvh;
    background: #F7F2EB;
    border-radius: var(--cm-mobile-radius) 0 0 var(--cm-mobile-radius);
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .cm-mobile-drawer.is-open .cm-mobile-drawer__panel,
  .cm-mobile-drawer[aria-hidden="false"] .cm-mobile-drawer__panel {
    transform: translateX(0);
  }
  .cm-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 52px 24px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
  }
  .cm-mobile-drawer__brand {
    font-family: var(--font-head, 'Playfair Display', Georgia, serif);
    font-size: 18px;
    font-weight: 700;
    color: #1E3D18;
  }
  .cm-mobile-drawer__close {
    width: 36px;
    height: 36px;
    border-radius: var(--cm-mobile-radius);
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E3D18;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .cm-mobile-drawer__menu {
    padding: 16px 0;
    flex: 0 0 auto;
    overflow: visible;
  }
  .cm-mobile-drawer__menu li {
    list-style: none;
  }
  .cm-mobile-drawer__menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #1C1E18;
    text-decoration: none;
    transition: background 0.15s;
    min-height: 48px;
  }
  .cm-mobile-drawer__menu a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }
  .cm-mobile-drawer__menu a span {
    min-width: 0;
  }
  .cm-mobile-drawer__menu a.active,
  .cm-mobile-drawer__menu a:hover {
    background: rgba(76, 91, 13, 0.08);
    color: #4C5B0D;
    font-weight: 700;
  }
  .cm-mobile-drawer__member-links {
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    justify-content: flex-end;
  }
  .cm-mobile-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: var(--cm-mobile-radius);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-body, 'Lato', system-ui, sans-serif);
    letter-spacing: 0.3px;
    line-height: 1;
    background: #4C5B0D;
    color: #FFFFFF !important;
    text-decoration: none;
    min-height: 48px;
    box-shadow: 0 4px 16px rgba(76, 91, 13, 0.3);
  }
  .cm-mobile-drawer__cta:visited,
  .cm-mobile-drawer__cta:hover,
  .cm-mobile-drawer__cta:focus-visible {
    color: #FFFFFF !important;
  }
  .cm-mobile-drawer__text-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #6B6B5A;
    font-weight: 500;
    text-decoration: none;
    font-size: 13px;
    min-height: 44px;
  }
  .cm-mobile-drawer__search {
    display: none;
  }
  /* Prevent body scroll when drawer is open */
  body.cm-drawer-open {
    overflow: hidden;
  }

  :root {
    --cm-mobile-bottom-nav-height: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  /* ── BOTTOM TAB BAR ──────────────────────────────────────── */
  .cm-mobile-live-notice {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: var(--cm-mobile-bottom-nav-height);
    z-index: 201;
    align-items: stretch;
    gap: 0;
    background: #263d1d;
    color: #f7f2eb;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 -10px 26px rgba(17, 31, 13, 0.16);
    box-sizing: border-box;
  }
  .cm-mobile-live-notice__link,
  .cm-mobile-live-notice__link:visited {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 9px 8px 9px 14px;
    color: inherit;
    text-decoration: none;
  }
  .cm-mobile-live-notice__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d94b36;
    box-shadow: 0 0 0 5px rgba(217, 75, 54, 0.18);
    flex: 0 0 auto;
  }
  .cm-mobile-live-notice__copy {
    min-width: 0;
    display: grid;
    gap: 1px;
  }
  .cm-mobile-live-notice__label {
    font-size: 10px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d7e3ad;
  }
  .cm-mobile-live-notice__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
  }
  .cm-mobile-live-notice__close {
    flex: 0 0 44px;
    width: 44px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: transparent;
    color: #f7f2eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .cm-mobile-live-notice__close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }
  .cm-mobile-live-notice__close:focus-visible {
    outline: 2px solid #d7e3ad;
    outline-offset: -4px;
  }

  .cm-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 6px 8px calc(6px + var(--cm-mobile-safe-bottom));
    background: rgba(247, 242, 235, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 24px rgba(17, 31, 13, 0.08);
    box-sizing: border-box;
    height: var(--cm-mobile-bottom-nav-height);
    min-height: var(--cm-mobile-bottom-nav-height);
  }
  .cm-mobile-bottom-nav__item,
  .cm-mobile-bottom-nav__item:visited {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 600;
    color: #5f6940;
    flex: 1;
    padding: 3px 0;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: color 0.15s;
    min-height: 42px;
    justify-content: center;
  }
  .cm-mobile-bottom-nav__item.is-active,
  .cm-mobile-bottom-nav__item.is-active:visited {
    color: #4C5B0D;
  }
  .cm-mobile-bottom-nav__item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .cm-mobile-bottom-nav__item.is-active svg {
    stroke-width: 2.2;
  }
  .cm-mobile-bottom-nav__item.is-active::after {
    content: '';
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #4C5B0D;
    margin-top: 1px;
  }

  /* ── BOTTOM PADDING — prevent content hiding behind tab bar ─ */
  body {
    padding-bottom: var(--cm-mobile-bottom-nav-height);
  }

  /* ── FOOTER ──────────────────────────────────────────────── */
  .cm-footer {
    background: #0c1e0a;
    padding: 11px 20px calc(var(--cm-mobile-bottom-nav-height) + 28px);
    text-align: center;
  }
  body.logged-in .cm-footer {
    padding-bottom: calc(var(--cm-mobile-bottom-nav-height) + 28px);
  }
  .cm-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 0;
    max-width: 420px;
    padding: 0;
    text-align: center;
  }
  .cm-footer__intro {
    display: block;
  }
  .cm-footer__section {
    display: none;
  }
  .cm-footer__grid > div {
    text-align: center;
  }
  .cm-footer__brand-name {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .cm-footer__brand-sub {
    display: block;
    color: #fff;
  }
  .cm-footer__brand-lockup {
    margin-left: auto;
    margin-right: auto;
  }
  .cm-footer__brand-desc {
    max-width: none;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.42);
    margin: 0 auto;
  }
  .cm-footer__bottom {
    max-width: 420px;
    border-top: 0;
    padding: 5px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .cm-footer__social {
    display: flex;
    justify-content: center;
    gap: 7px;
    order: 2;
  }
  .cm-footer__install-app {
    appearance: none;
    border: 1px solid rgba(215, 229, 168, 0.38);
    border-radius: var(--cm-mobile-radius);
    background: #6b8c2a;
    box-shadow: 0 10px 24px rgba(107, 140, 42, 0.26);
    color: #ffffff;
    display: none;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    min-height: 42px;
    min-width: 132px;
    order: 1;
    padding: 0 18px;
    transition: background .2s, transform .2s, box-shadow .2s;
  }
  .cm-footer__install-app.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .cm-footer__install-app:hover,
  .cm-footer__install-app:focus-visible {
    background: #7ea633;
    border-color: rgba(247, 242, 235, 0.5);
    box-shadow: 0 12px 28px rgba(107, 140, 42, 0.34);
    transform: translateY(-1px);
  }
  .cm-footer__install-app:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
  }
  .cm-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: var(--cm-mobile-radius);
    background: rgba(255, 255, 255, 0.08);
    transition: background .2s, transform .2s, box-shadow .2s;
  }
  .cm-footer__social a:hover,
  .cm-footer__social a:focus-visible,
  .cm-footer__social a:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  }
  .cm-footer__social-link--facebook:hover,
  .cm-footer__social-link--facebook:focus-visible,
  .cm-footer__social-link--facebook:active {
    background: #1877f2;
  }
  .cm-footer__social-link--instagram:hover,
  .cm-footer__social-link--instagram:focus-visible,
  .cm-footer__social-link--instagram:active {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 55%, #8134af 100%);
  }
  .cm-footer__social-link--youtube:hover,
  .cm-footer__social-link--youtube:focus-visible,
  .cm-footer__social-link--youtube:active {
    background: #ff0033;
  }
  .cm-footer__social svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.7);
  }
  .cm-footer__copy {
    order: 3;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
  }

  /* ── SERMON PAGE ─────────────────────────────────────────── */
  .sermon-filter-chips {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .sermon-filter-chips::-webkit-scrollbar {
    display: none;
  }
  .filter-chip {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ── HIDE DESKTOP-ONLY ELEMENTS ─────────────────────────── */
  .service-strip {
    display: none !important;
  }
  .hero__scroll {
    display: none !important;
  }
  /* Inner-page desktop heroes collapse into a dark strip in the app shell. */
  .page-hero {
    display: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   VERY SMALL PHONES (max-width: 480px)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --cm-mobile-page-gutter: 20px;
  }

  .hero__title {
    font-size: 46px;
  }
  .hero__btns {
    flex-direction: column;
  }
  .hero__btns .btn {
    width: 100%;
    text-align: center;
  }
  .cm-home .hero__btns {
    flex-direction: row;
    gap: 8px;
  }
  .cm-home .hero__btns .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    justify-content: center;
    padding: 11px 8px;
    font-size: 11px;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
  @media (max-width: 340px) {
    .cm-home .hero__btns {
      flex-direction: column !important;
      max-width: 220px !important;
    }
    .cm-home .hero__btns .btn {
      width: 100% !important;
    }
  }
  .cm-home .section.section--alt .ministries__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .cm-home .section.section--alt .min-card {
    min-width: 0;
  }
  .events__grid {
    padding: 0 0 16px;
  }
  .event-card {
    min-width: 230px;
  }
  .container {
    padding-left: var(--cm-mobile-page-gutter);
    padding-right: var(--cm-mobile-page-gutter);
  }
}
