/* ==========================================================================
   Lifeline 2026 — inner-page bridge
   Loaded AFTER each page's own <style> block, so it can bring the older
   page layouts into the new look without rewriting every page.
   Many old page rules use !important, so some of these do too.
   ========================================================================== */

/* Old page tokens -> new palette */
:root {
  --brand: #b01933;
  --brand-soft: #c93a52;
  --brand-dark: #8c1228;
  --primary: #b01933;
  --ink: #1a1d2b;
  --muted: #5a6074;
  --bg: #f1f2f6;
  --border: #dfe1e8;
  --header-offset: 0px;
}

html { font-size: 100% !important; }

/* One typeface everywhere (icon fonts set their own family on ::before) */
body, body * { font-family: var(--font) !important; }
body { background: var(--paper) !important; color: var(--ink); padding-top: 0 !important; }
body.page-fade-in, body.page-fade-out { animation: none !important; filter: none !important; }

h1, h2, h3, h4, h5, .section-title, .title2, .page-title { letter-spacing: -.01em; }
h1, h2, .section-title, .title2, .page-title { font-stretch: 75%; font-weight: 800 !important; }
h1::after, h2::after, h3::after, .section-title::after, .title2::after, .page-title::after { content: none !important; display: none !important; }

/* Eyebrow labels: sentence case, no tracking */
.pre-title, .eyebrow, .hero-eyebrow, .section-eyebrow {
  text-transform: none !important; letter-spacing: 0 !important; font-weight: 650 !important;
}

/* Remove top offsets that made room for the old floating header */
#content, #main-content, main { margin-top: 0 !important; padding-top: 0 !important; }

/* ---------- Page banners (hero / breadcrumbs / page-hero / mini-hero) ---------- */
body .hero, body section.hero, body .mini-hero, body .page-hero,
body .breadcrumbs-wrap, body .breadcrumbs-wrap.style-3 {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  display: block !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(2.75rem, 6vw, 4.5rem) !important;
  text-align: left !important;
  color: #fff !important;
  background-color: var(--navy) !important;
}
body .hero::after, body .mini-hero::after, body .page-hero::after, body .breadcrumbs-wrap::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,28,59,.93) 0%, rgba(20,28,59,.8) 50%, rgba(20,28,59,.55) 100%);
}
body .breadcrumbs-wrap::before { background-color: transparent !important; }

body .hero > .container, body .hero > .wrap, body .hero > div,
body .breadcrumbs-wrap > .container, body .page-hero > .container, body .mini-hero > .container {
  width: 100%; max-width: var(--wrap) !important;
  margin: 0 auto !important;
  padding: 0 var(--gutter) !important;
  text-align: left !important;
}
body .hero h1, body .mini-hero h1, body .page-hero h1, body .breadcrumbs-wrap .page-title, body .breadcrumbs-wrap h1 {
  margin: 0 0 .9rem !important;
  color: #fff !important;
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem) !important;
  font-weight: 850 !important;
  font-stretch: 62% !important;
  line-height: .95 !important;
  text-transform: uppercase;
  text-shadow: none !important;
  max-width: 18ch;
}
body .hero h1 span, body .page-hero h1 span { color: #ff8a9b !important; }
body .hero p, body .mini-hero p, body .page-hero p, body .breadcrumbs-wrap p,
body .hero .hero-sub {
  max-width: 40em !important;
  margin: 0 0 1rem !important;
  color: #dfe3f2 !important;
  font-size: var(--step-1) !important;
  line-height: 1.5 !important;
  opacity: 1 !important;
  text-align: left !important;
}
body .hero .chip, body .hero .hero-eyebrow, body .page-hero .chip, body .mini-hero .chip {
  display: inline-flex !important; align-items: center; gap: .5rem;
  margin: 0 0 1rem !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  color: #f4c9d0 !important; font-size: var(--step-0) !important; font-weight: 600 !important;
  text-transform: none !important; letter-spacing: 0 !important;
}
body .hero .cta-row, body .hero .hero-actions, body .hero .btn-row { justify-content: flex-start !important; margin-top: 1.5rem !important; }
body .breadcrumbs, body .breadcrumb { justify-content: flex-start !important; margin: 0 !important; padding: 0 !important; color: #c3c9e3 !important; font-size: var(--step--1) !important; }
body .breadcrumbs a, body .breadcrumb a { color: #fff !important; }

/* Hero entrance, same rhythm as the homepage (one orchestrated moment) */
@keyframes pageRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
body .hero h1, body .page-hero h1, body .mini-hero h1, body .breadcrumbs-wrap .page-title { animation: pageRise .7s cubic-bezier(.2,.8,.2,1) .1s both; }
body .hero p, body .hero .cta-row, body .page-hero p, body .breadcrumbs-wrap p, body .breadcrumbs { animation: pageRise .7s cubic-bezier(.2,.8,.2,1) .3s both; }

/* ---------- Buttons from the old theme ---------- */
.btn-solid, .btn.btn-style-1, .btn.btn-style-2, .btn.btn-style-3, .btn.btn-style-5, .btn-primary, .btn-event, .btn-give, .he-btn--primary {
  display: inline-flex !important; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .65rem 1.35rem !important;
  border-radius: 999px !important; border: 2px solid var(--crimson) !important;
  background: var(--crimson) !important; color: #fff !important;
  font-weight: 700 !important; font-size: 1rem !important; line-height: 1.1 !important;
  text-transform: none !important; letter-spacing: 0 !important; text-decoration: none !important;
  box-shadow: none !important; filter: none !important;
}
.btn-solid:hover, .btn.btn-style-1:hover, .btn.btn-style-2:hover, .btn.btn-style-3:hover, .btn.btn-style-5:hover, .btn-primary:hover, .btn-event:hover {
  background: var(--crimson-deep) !important; border-color: var(--crimson-deep) !important;
}
.btn-ghost, .btn.btn-style-4, .btn-outline, .btn-secondary {
  display: inline-flex !important; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .65rem 1.35rem !important;
  border-radius: 999px !important; border: 2px solid currentColor !important;
  background: transparent !important; color: var(--ink) !important;
  font-weight: 700 !important; font-size: 1rem !important; text-transform: none !important; letter-spacing: 0 !important;
  text-decoration: none !important; box-shadow: none !important;
}
.btn-ghost:hover, .btn.btn-style-4:hover, .btn-outline:hover, .btn-secondary:hover { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
body .hero .btn-ghost, body .page-hero .btn-ghost, .prayer-give-section .btn-ghost, .lg-cta .btn-ghost, .community-section .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.75) !important; }
body .hero .btn-ghost:hover, .lg-cta .btn-ghost:hover, .community-section .btn-ghost:hover { background: #fff !important; color: var(--navy) !important; }
.btn i[class*="icon-"], .btn-solid i, .btn-ghost i { display: none; }

/* ---------- Common content pieces ---------- */
.chip { text-transform: none !important; letter-spacing: 0 !important; }
.section.alt, .section-alt { background: var(--mist) !important; }
.lg-cta, .community-section, #lifegroups-cta { background: var(--crimson) !important; color: #fff; }
.lg-cta h2, .community-section h2, #lifegroups-cta h2 { color: #fff !important; }

/* Old dark gradients and black blocks -> navy */
.ya-cta, .fact-strip, .info-strip { background: var(--navy) !important; }

/* Form controls */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea {
  font-size: 16px !important;               /* stops iPhone zooming into fields */
  border-radius: var(--radius) !important;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--crimson) !important; outline-offset: 1px; }

/* Links inside running text */
main p a:not([class]), main li a:not([class]) { color: var(--crimson); text-underline-offset: .2em; }

@media (prefers-reduced-motion: reduce) {
  body .hero h1, body .page-hero h1, body .mini-hero h1, body .breadcrumbs-wrap .page-title,
  body .hero p, body .hero .cta-row, body .page-hero p, body .breadcrumbs-wrap p, body .breadcrumbs { animation: none !important; }
}

/* Banner details */
body .breadcrumbs-wrap *, body .breadcrumbs-inner { text-align: left !important; justify-content: flex-start !important; align-items: flex-start !important; }
body .breadcrumbs-wrap ul.breadcrumbs, body .breadcrumbs-wrap ol.breadcrumb { list-style: none !important; display: flex !important; flex-wrap: wrap; gap: .5rem; }
body .breadcrumbs-wrap ul.breadcrumbs li::after { content: "/" !important; margin-left: .5rem !important; color: #8f97bd !important; }
body .breadcrumbs-wrap ul.breadcrumbs li:last-child::after { content: none !important; }
body .hero :is(.eyebrow, .badge, .tag, .hero-badge, .kicker, .pill),
body .page-hero :is(.eyebrow, .badge, .tag, .kicker, .pill) {
  display: inline-flex !important; margin: 0 0 1rem !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  color: #f4c9d0 !important; font-size: var(--step-0) !important; font-weight: 600 !important; letter-spacing: 0 !important;
}

.lg-cta p, .community-section p, #lifegroups-cta p { color: #fbe3e7 !important; opacity: 1 !important; }
.lg-cta .btn-solid, .community-section .btn-solid, #lifegroups-cta .btn-solid { background: #fff !important; border-color: #fff !important; color: var(--navy) !important; }

/* Standard banner for pages that used to have a title-only strip */
body .page-banner { background: var(--navy) url("../images/bg_im1.jpg") center 40% / cover no-repeat !important; }
body .page-banner::before { content: none !important; }

/* ==========================================================================
   Events calendar (events.html) — list + month views
   ========================================================================== */
.evcal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
.evcal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.evcal-head h2 { margin: 0 0 .35rem; font-size: var(--step-3); }
.evcal-head p { margin: 0; color: var(--muted); max-width: 38em; }
.evcal-views { display: inline-flex; padding: 4px; background: var(--mist); border-radius: 999px; }
.evcal-views button { font: inherit; font-weight: 700; min-height: 40px; padding: 0 1.2rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.evcal-views button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.evcal-tools { display: grid; gap: .9rem; margin-bottom: 1rem; }
.evcal-search { position: relative; }
.evcal-search svg { position: absolute; left: 1rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.evcal-search input { width: 100%; min-height: 52px; padding: .75rem 1rem .75rem 2.9rem !important; border: 2px solid var(--line) !important; background: #fff; color: var(--ink); }
.evcal-search input:focus { border-color: var(--navy) !important; outline: none !important; }
.evcal-filters { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.evcal-filter { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 .95rem; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.evcal-filter:hover { border-color: var(--ink); }
.evcal-filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.evcal-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.evcal-filter[aria-pressed="true"] .evcal-dot { box-shadow: 0 0 0 2px #fff; }

.evcal-statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: .75rem 0 1rem; border-bottom: 1px solid var(--line); }
.evcal-status { margin: 0; font-weight: 650; color: var(--ink); }
.evcal-past { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; color: var(--muted); font-weight: 550; cursor: pointer; }
.evcal-past input { width: 18px; height: 18px; accent-color: var(--crimson); }
.evcal-reset { font: inherit; font-weight: 650; color: var(--crimson); background: none; border: 0; padding: .25rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

/* List */
.evcal-group { margin-top: 1.75rem; }
.evcal-month { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .25rem; font-size: var(--step-2) !important; font-stretch: 75%; font-weight: 800; color: var(--navy); }
.evcal-month span { font-size: 1rem; font-weight: 600; color: var(--muted); font-stretch: 100%; }
.evcal-rows { list-style: none; margin: 0; padding: 0; }
.evcal-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem 1.25rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.evcal-row:last-child { border-bottom: 0; }
.evcal-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; border-radius: var(--radius); background: var(--mist); color: var(--navy); text-align: center; }
.evcal-dow { font-size: .78rem; font-weight: 700; color: var(--muted); }
.evcal-num { font-size: 1.6rem; font-weight: 850; font-stretch: 70%; line-height: 1; }
.evcal-body { min-width: 0; }
.evcal-title { margin: 0 0 .25rem; font-size: 1.12rem !important; font-weight: 700; line-height: 1.3; font-stretch: 100% !important; }
.evcal-meta { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--muted); font-size: .95rem; font-weight: 550; }
.evcal-details { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.evcal-tag { display: inline-block; vertical-align: .15em; margin-left: .35rem; padding: .12rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--crimson-tint); color: var(--crimson-deep); white-space: nowrap; }
.evcal-tag--next { background: var(--crimson); color: #fff; }
.evcal-tag--now { background: #1d7a45; color: #fff; }
.evcal-tag--past { background: var(--mist); color: var(--muted); }
.evcal-row.is-past .evcal-title, .evcal-row.is-past .evcal-num { color: var(--muted); }
.evcal-actions { display: flex; align-items: center; gap: .75rem; white-space: nowrap; }
.evcal-add { font: inherit; font-weight: 700; font-size: .92rem; min-height: 40px; padding: 0 1rem; color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.evcal-add:hover { border-color: var(--navy); }
.evcal-g, .evcal-link { font-weight: 650; font-size: .92rem; color: var(--crimson); text-underline-offset: .2em; }
.evcal-empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.evcal-empty p { margin: 0 0 .5rem; }

@media (max-width: 640px) {
  .evcal-row { grid-template-columns: 56px 1fr; }
  .evcal-actions { grid-column: 2; }
  .evcal-past { margin-left: 0; }
}

/* Month grid */
.evcal-monthnav { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0 1rem; }
.evcal-monthnav h3 { margin: 0; min-width: 9.5em; text-align: center; font-size: var(--step-2) !important; font-stretch: 75%; color: var(--navy); }
.evcal-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.6rem; line-height: 1; color: var(--navy); cursor: pointer; }
.evcal-arrow:disabled { opacity: .35; cursor: default; }
.evcal-today { margin-left: auto; }
.evcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.evcal-dowh { padding: .35rem 0; text-align: center; font-size: .85rem; font-weight: 700; color: var(--muted); }
.evcal-cell { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 104px; padding: .4rem; text-align: left; font: inherit; color: var(--ink); background: var(--mist); border: 2px solid transparent; border-radius: 4px; cursor: pointer; overflow: hidden; }
.evcal-cell.is-blank { background: transparent; cursor: default; }
.evcal-cell:hover { border-color: var(--line); }
.evcal-cell.is-past { opacity: .6; }
.evcal-cell.is-today { background: #fff; border-color: var(--crimson); }
.evcal-cell.is-selected { border-color: var(--navy); background: #fff; }
.evcal-cell-num { font-weight: 750; font-size: .95rem; }
.evcal-chip { display: block; padding: .15rem .35rem; border-radius: 3px; font-size: .74rem; font-weight: 600; line-height: 1.25; color: var(--ink); background: #fff; border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evcal-more { font-size: .72rem; font-weight: 650; color: var(--muted); }
.evcal-dots { display: none; gap: 3px; flex-wrap: wrap; }
.evcal-dots i { width: 7px; height: 7px; border-radius: 50%; }
.evcal-daypanel { margin-top: 1.5rem; }
.evcal-dayhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.evcal-dayhead h3 { margin: 0; font-size: var(--step-1) !important; }
.evcal-empty-day { color: var(--muted); padding: 1rem 0; }

@media (max-width: 700px) {
  .evcal-cell { min-height: 54px; align-items: center; padding: .35rem .2rem; }
  .evcal-chip, .evcal-more { display: none; }
  .evcal-dots { display: flex; justify-content: center; }
  .evcal-monthnav h3 { min-width: 0; flex: 1; }
  .evcal-today { margin-left: 0; }
}
@media (min-width: 701px) { .evcal-filters { flex-wrap: wrap; overflow: visible; } }

/* Featured pastor block (e.g. Women's Ministry page) */
.pastor-feature { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .pastor-feature { grid-template-columns: minmax(260px, 380px) 1fr; gap: 3.5rem; } }
.pastor-feature-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; background: var(--mist); }
.pastor-feature-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.pastor-feature-label { margin: 0 0 .4rem; font-weight: 650; color: var(--crimson); }
.pastor-feature-text .section-title { text-align: left !important; margin: 0 0 .3rem !important; }
.pastor-feature-role { margin: 0 0 1.25rem; font-size: var(--step-1); color: var(--muted); font-weight: 600; }
.pastor-feature-text p { max-width: 38em; }
.pastor-feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }

/* Bio pop-up content on pages that don't carry the leadership page's styles */
.llcf-dialog .modal-header { padding: 1.75rem 4rem 1.25rem 1.75rem; background: var(--navy); color: #fff; }
.llcf-dialog .modal-header h3 { margin: 0 0 .3rem; color: #fff; font-size: var(--step-2); }
.llcf-dialog .modal-header .role { color: #f4c9d0; font-weight: 600; }
.llcf-dialog .modal-body { padding: 1.5rem 1.75rem .5rem; }
.llcf-dialog .modal-footer { padding: 0 1.75rem 1.75rem; }
.llcf-dialog .btn-close-modal { font: inherit; font-weight: 700; min-height: 44px; padding: 0 1.4rem; border-radius: 999px; border: 0; background: var(--navy); color: #fff; cursor: pointer; }
