/* With All Boldness on top of the Calm iOS kit (kit.css).
   Brand colors: Navy #253551, Teal #31D7A9, Dark Gray #504E4D, Light Gray #D4DBDB.
   Categories: Pray = kit teal (--cat-1), Give = navy (--cat-2), Gospel = kit orange (--cat-3). */

/* Kit palette kept; brand colors layered in where they matter most. */
:root {
  --navy: #253551;
  --teal: #31D7A9;
  --gray-dark: #504E4D;
  --gray-light: #D4DBDB;

  --text-2: #504E4D;               /* brand dark gray for secondary text */
  --primary: #253551;              /* brand navy */
  --cat-1: #287B78; --cat-2: #253551; --cat-3: #B0562B;
  --primary-soft: color-mix(in srgb, var(--primary) 10%, transparent);
  --panel: #253551;                /* the navy African-print panel */
  --panel-text: #FFFFFF;
  --panel-text-2: #D4DBDB;         /* brand light gray on navy */
  --round: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  /* The arch / zigzag print from our banners and prayer cards */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='100' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 45V25a20 20 0 0 1 40 0V45M22 45V27a8 8 0 0 1 16 0V45M65 45L90 7L115 45M78 45L90 27L102 45M128 45V9H164V45M140 45V21H152V45M12 95V59H48V95M24 95V71H36V95M70 95V75a20 20 0 0 1 40 0V95M82 95V77a8 8 0 0 1 16 0V95M122 95L147 57L172 95M135 95L147 77L159 95'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text-2: #B4B2AB;
    --primary: #A9C1E8; --cat-1: #8ED0C5; --cat-2: #A9C1E8; --cat-3: #E8A07A;
    --primary-soft: color-mix(in srgb, var(--primary) 14%, transparent);
  }
}
:root[data-theme="dark"] {
  --text-2: #B4B2AB;
  --primary: #A9C1E8; --cat-1: #8ED0C5; --cat-2: #A9C1E8; --cat-3: #E8A07A;
  --primary-soft: color-mix(in srgb, var(--primary) 14%, transparent);
}

img { height: auto; }
.hero-card .hero-cap b { font-size: 15px !important; }
.pray { --c: var(--cat-1); } .give { --c: var(--cat-2); } .gospel { --c: var(--cat-3); }
.dark-only { display: none; }
@media (prefers-color-scheme: dark) { .light-only { display: none; } .dark-only { display: block; } }

/* Header */
.brand img { width: auto; height: 38px; border-radius: 0; }
.top .btn.small { background: var(--teal); color: var(--navy); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface); color: var(--text); font-size: 22px; place-items: center; box-shadow: var(--shadow); cursor: pointer; }
.top .mobile-nav { display: none; }
@media (max-width: 980px) {
  .top nav:not(.mobile-nav) a:not(.btn) { display: none; }
  .top nav:not(.mobile-nav) { margin-left: auto; gap: 0; }
  .menu-btn { display: grid; margin-left: 0; }
  .top .wrap { gap: 10px; }
  .top .mobile-nav { padding: 4px 20px 16px; margin: 0; }
  .top .mobile-nav.open { display: block; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 4px 16px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
  .mobile-nav li + li { border-top: 1px solid var(--divider); }
  .top .mobile-nav a:not(.btn) { display: flex; align-items: center; gap: 12px; min-height: 50px; color: var(--text); text-decoration: none; font: 700 17px var(--round); }
  .mobile-nav a .icon { color: var(--text-2); font-size: 20px; }
  .mobile-nav a .icon.chev { margin-left: auto; font-size: 16px; opacity: .6; }
}
@media (min-width: 981px) { .top .mobile-nav { display: none !important; } }
.top nav a[aria-current] { color: var(--text) !important; font-weight: 700 !important; }

/* Buttons */
.btn.teal { background: var(--teal); color: var(--navy); }
.btn.ghost-light { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn .icon { font-size: 20px; }

/* Navy print panel */
.panel-navy { position: relative; overflow: hidden; background: var(--panel) var(--pattern); background-size: 180px 100px; color: var(--panel-text); border-radius: 22px; box-shadow: var(--shadow); }
.panel-navy h2, .panel-navy h3 { color: #fff; }
.panel-navy p { color: var(--panel-text-2); }
.panel-navy a:not(.btn) { color: var(--teal); }

/* Hero */
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--calm); }
.hero-card { width: min(100%, 460px); padding: 14px; }
.hero-card > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: 14px; }
.hero-card .hero-cap { display: flex; align-items: center; gap: 12px; padding: 14px 6px 4px; }
.hero-card .hero-cap img { width: 54px; height: auto; flex: none; }
.hero-card .hero-cap b { display: block; color: #fff; font: 800 17px/1.2 var(--round); }
.hero-card .hero-cap span { font-size: 14px; color: var(--panel-text-2); }
.hero .note .icon { color: var(--calm); vertical-align: -3px; margin-right: 4px; }

/* Support meter */
.meter { margin-top: 28px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.meter-head > span { font-size: 15px; color: var(--text-2); font-weight: 600; }
.meter-head b { font: 800 44px/1 var(--round); color: var(--primary); }
.meter-track { height: 14px; border-radius: 999px; background: var(--inset); overflow: hidden; }
.meter-fill { height: 100%; border-radius: inherit; background: var(--teal); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.panel-navy .meter-head > span { color: var(--panel-text-2); }
.panel-navy .meter-head b { color: #fff; }
.panel-navy .meter-track { background: rgba(255,255,255,.14); }

/* Give stage */
.give-card { width: min(100%, 460px); padding: 28px; text-align: center; }
.give-card > img { width: min(300px, 80%); margin: 0 auto 8px; }
.give-card .meter { text-align: left; }
.give-card .actions { justify-content: center; margin-top: 24px; }

/* Gospel steps card */
.steps-card { width: min(100%, 440px); padding: 8px 20px; }
.steps-card ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps-card li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--divider); align-items: start; }
.steps-card li:last-child { border-bottom: 0; }
.steps-card li::before { content: counter(s); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--cat-3) 14%, transparent); color: var(--cat-3); font: 800 16px/1 var(--round); }
.steps-card b { display: block; font-weight: 700; }
.steps-card span { color: var(--text-2); font-size: 15px; }

/* Phone mockup of a prayer letter */
.m-cover { border-radius: .8em; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: .6em; }
.m-meter { height: .5em; border-radius: 99px; background: var(--inset); overflow: hidden; margin-top: .45em; }
.m-meter i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.m-p { font-size: .8em; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.m-mini { display: flex; align-items: center; gap: .7em; }
.m-mini img { width: 3em; height: 3em; border-radius: .6em; object-fit: cover; flex: none; }

/* Video */
.video-frame { margin-top: 44px; padding: 12px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { padding: 0; cursor: pointer; background: #000; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video button .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--navy); font-size: 40px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* Partner logos in the trust band */
.logo-card { display: grid; place-items: center; min-height: 120px; }
.logo-card img { max-height: 64px; width: auto; }

/* Final call to action */
.final .panel-navy { padding: 40px 24px 48px; }
@media (min-width: 900px) { .final .panel-navy { padding: 88px 64px; } }
.final .panel-navy > img { width: clamp(190px, 52vw, 240px); margin: 0 auto 16px; }
.final .verse { max-width: 34ch; margin: 18px auto 0; font-size: clamp(18px, 2vw, 21px); }
.final .verse cite { display: block; margin-top: 8px; font: 700 14px var(--round); color: var(--teal); font-style: normal; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Updates list (phone first: an iOS grouped list) ---------- */
.feature-update { display: block; overflow: hidden; color: inherit; text-decoration: none; margin-top: 28px; }
.feature-update img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-update .fu-body { padding: 20px 20px 24px; }
.feature-update .badge { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--round); color: var(--calm); background: color-mix(in srgb, var(--calm) 14%, transparent); padding: 6px 10px; border-radius: 999px; margin-bottom: 18px; }
.feature-update h2 { font-size: clamp(28px, 4.4vw, 40px); }
.feature-update p { color: var(--text-2); margin-top: 8px; }
.feature-update .meta { font-size: 14px; color: var(--text-2); margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (min-width: 900px) {
  .feature-update { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
  .feature-update img { height: 100%; aspect-ratio: auto; min-height: 380px; }
  .feature-update .fu-body { padding: 48px; }
}
.doc .year-head, .year-head { font: 700 14px/1 var(--round); color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; margin: 40px 4px 12px; }
.ulist { list-style: none; margin: 0; padding: 4px 16px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.ulist li + li { border-top: 1px solid var(--divider); }
.ulist a { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; color: var(--text); text-decoration: none; min-height: 44px; }
.ulist img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
.ulist b { display: block; font: 700 17px/1.25 var(--round); }
.ulist span { display: block; font-size: 14px; color: var(--text-2); margin-top: 3px; }
.ulist .icon { color: var(--text-2); opacity: .55; }
@media (min-width: 720px) {
  .ulist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0; background: none; box-shadow: none; }
  .ulist li + li { border-top: 0; }
  .ulist a { display: block; padding: 0; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s ease; }
  .ulist a:hover { transform: translateY(-3px); }
  .ulist img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .ulist .u-text { padding: 16px 18px 20px; }
  .ulist .icon { display: none; }
}
@media (min-width: 960px) { .ulist { grid-template-columns: repeat(3, 1fr); } }

/* ---------- A single update ---------- */
.post { padding: 20px 0 72px; }
.post .wrap { max-width: 760px; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font: 700 16px var(--round); color: var(--primary); text-decoration: none; margin-left: -6px; }
.back .icon { font-size: 22px; }
.post-head { margin: 12px 0 24px; }
.post-head .eyebrow { margin-bottom: 12px; color: var(--calm); }
.post-head h1 { font-size: clamp(36px, 7vw, 58px); }
.post-meta { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.post-meta img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.post-meta b { display: block; font-weight: 600; font-size: 15px; }
.post-meta span { font-size: 14px; color: var(--text-2); }
.post-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.post-actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .post-actions .btn { flex: 0 0 auto; } }
.post-cover { margin: 28px -20px 8px; }
.post-cover img { width: 100%; max-height: 72vh; object-fit: cover; }
@media (min-width: 800px) { .post-cover { margin: 36px -60px 12px; } .post-cover img { border-radius: 22px; } }

.prose { font-size: 18px; line-height: 1.7; margin-top: 28px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.8em; line-height: 1.2; }
.prose h2 { font-size: clamp(26px, 4vw, 32px); }
.prose h3 { font-size: 22px; font-weight: 800; }
.prose a { font-weight: 600; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--calm); }
.prose blockquote { margin: 1.4em 0; padding: 18px 20px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); border-left: 4px solid var(--teal); }
.prose .verse-open { font-family: var(--round); font-weight: 700; font-size: 1.1em; line-height: 1.5; color: var(--primary); padding: 20px 22px; border-radius: 16px; background: var(--primary-soft); }
.prose figure { margin: 1.6em 0; }
.prose figure.single img { width: 100%; border-radius: 16px; }
/* Photo grids: two columns (three for big grids on wider screens). */
.gallery { column-count: 2; column-gap: 6px; margin: 1.6em 0; }
@media (min-width: 640px) { .gallery.many { column-count: 3; } }
/* Padding, not margin, under each photo: browsers drop margins unevenly at column
   breaks, which nudged one column lower than the others. */
.gallery figure { margin: 0; padding-bottom: 6px; break-inside: avoid; }
.gallery { margin-bottom: calc(1.6em - 6px); }
.gallery img { width: 100%; border-radius: 10px; object-fit: cover; }
/* Photo grids crop to a uniform shape (chosen per grid in the editor), keeping the center.
   Landscape and portrait photos get matching proportions. */
.gallery[data-shape="3x2"] .is-landscape { aspect-ratio: 3 / 2; }
.gallery[data-shape="3x2"] .is-portrait { aspect-ratio: 2 / 3; }
.gallery[data-shape="4x3"] .is-landscape { aspect-ratio: 4 / 3; }
.gallery[data-shape="4x3"] .is-portrait { aspect-ratio: 3 / 4; }
.gallery[data-shape="square"] .zoom img { aspect-ratio: 1; }
.gallery[data-shape] .zoom img { object-fit: cover; object-position: center; }
.zoom { display: block; cursor: zoom-in; }
.prose hr { border: 0; border-top: 1px solid var(--divider); margin: 2em 0; }
.support-note { display: block; padding: 18px 20px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.support-note .meter { margin-top: 0; }
.support-note .meter-head b { font-size: 32px; }

.post-end { margin-top: 48px; padding: 28px 24px; text-align: center; }
.post-end h2 { font-size: 26px; }
.post-end p { margin: 8px auto 20px; max-width: 34ch; }
.post-end .actions { justify-content: center; }
.pager { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.pager img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.pager span { display: block; font: 700 12px/1 var(--round); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 4px; }
.pager b { font: 700 16px/1.25 var(--round); }

/* ---------- Reading pages (.doc) ---------- */
.doc .eyebrow { margin-bottom: 14px; }
.doc .lede-doc { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); margin-top: 16px; line-height: 1.5; }
.doc .prose { margin-top: 36px; }
.callout { padding: 24px; margin-top: 2em; }
.callout .actions { margin-top: 16px; }
.contact-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 18px; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.contact-item b { display: block; font-size: 15px; }
.contact-item div span { font-size: 13px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.forms { display: grid; gap: 14px; }
@media (min-width: 800px) { .forms { grid-template-columns: 1fr 1fr; } }
.form-card { padding: 24px; display: grid; gap: 14px; align-content: start; }
.form-card h2 { font-size: 24px; margin: 0 !important; }
.form-card p { color: var(--text-2); font-size: 15px; margin: 0 !important; }
.form-card label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.form-card .btn { margin-top: 4px; }
.kids { display: grid; gap: 14px; }
@media (min-width: 640px) { .kids { grid-template-columns: 1fr 1fr; } }
.kids figure { margin: 0 !important; overflow: hidden; }
.kids img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.kids figcaption { padding: 16px 18px 20px; font-size: 16px; color: var(--text-2); }
.kids figcaption strong { color: var(--text); font-family: var(--round); }
.rec { padding: 24px; margin: 0 0 14px !important; }
.rec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rec-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.rec-head b { display: block; font: 800 18px var(--round); }
.rec-head span { font-size: 14px; color: var(--text-2); }
.rec p { font-size: 17px; }
.rec p + p { margin-top: .9em; }
.beliefs { display: grid; gap: 12px; }
.beliefs details { padding: 0 20px; }
.beliefs summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; font: 800 19px var(--round); cursor: pointer; }
.beliefs summary::-webkit-details-marker { display: none; }
.beliefs summary .icon { color: var(--text-2); transition: transform .2s; }
.beliefs details[open] summary .icon { transform: rotate(90deg); }
.beliefs details p { padding-bottom: 18px; font-size: 17px; }
.beliefs .refs { font-size: 14px; color: var(--text-2); padding-bottom: 20px; margin-top: -6px; }
.gospel-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: g; }
.gospel-steps > li { counter-increment: g; padding: 24px; }
.gospel-steps h2 { font-size: 22px !important; margin: 0 0 8px !important; display: flex; gap: 12px; align-items: center; }
.gospel-steps h2::before { content: counter(g); flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--cat-3); color: var(--on-color); font-size: 18px; }
.gospel-steps p { color: var(--text-2); margin-top: 8px !important; }
.gospel-steps blockquote { margin: 14px 0 0 !important; box-shadow: none !important; background: var(--inset) !important; border-left-color: var(--cat-3) !important; font-size: 17px; }
.gospel-steps cite { display: block; margin-top: 6px; font: 700 14px var(--round); color: var(--cat-3); font-style: normal; }
/* Deputation Map (static/js/church-map.js) */
.churchmap { position: relative; }
.cm-stats { display: flex; gap: 12px; margin-bottom: 14px; }
.cm-stats > div { flex: 1; background: var(--panel); color: var(--panel-text); border-radius: 18px; padding: 14px 18px; display: flex; align-items: baseline; gap: 8px; }
.cm-stats b { font: 800 34px/1 var(--round); color: var(--teal); }
.cm-stats span { font-weight: 600; color: var(--panel-text-2); }
.cm-frame { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #22314d; }
@media (min-width: 720px) { .cm-frame { aspect-ratio: 16 / 10; } }
#church-map { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
#church-map.ready { opacity: 1; }
.cm-failed { display: none; position: absolute; inset: 0; margin: 0; place-items: center; padding: 24px; text-align: center; color: #d4dbdb; }
#church-map.failed + .cm-failed { display: grid; }
.church-pop .maplibregl-popup-content { background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-family: var(--sans); }
.church-pop b { display: block; font-size: 15px; }
.church-pop span { display: block; font-size: 13px; color: #d4dbdb; margin-top: 2px; }
.church-pop.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--navy); }
.church-pop.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--navy); }
.church-pop.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--navy); }
.church-pop.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--navy); }
.cm-frame .maplibregl-ctrl-group { background: rgba(37,53,81,.92); border-radius: 12px; box-shadow: none; }
.cm-frame .maplibregl-ctrl-group button + button { border-top-color: rgba(255,255,255,.15); }
.cm-frame .maplibregl-ctrl-icon { filter: invert(1); }

/* Footer */
footer .foot-logo { height: 34px; width: auto; }
footer .made { font-style: italic; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(10, 14, 24, .94); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.prose .verse-open cite { display: block; margin-top: 10px; font: 700 14px/1 var(--round); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--calm); }
footer nav { flex-wrap: wrap; gap: 10px 22px; }
footer nav a { white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.steps-card.pray li::before { background: color-mix(in srgb, var(--cat-1) 14%, transparent); color: var(--cat-1); }
.prose .steps-card li + li { margin-top: 0; }
.prose .ulist { padding-left: 16px; }
@media (min-width: 720px) { .prose .ulist { padding-left: 0; } }
.prose .ulist li + li { margin-top: 0; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.form-card .cf-turnstile { min-height: 65px; }
/* Cloudflare's robot check is at least 300px wide; keep it inside the card on phones */
.forms { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .forms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .form-card { padding: 22px 16px; } }
/* iPhone Safari colors the status-bar strip from the page: give it a solid header and
   page background so the strip matches in light and dark mode. */
html { background: var(--canvas); }
.top { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }
a.logo-card { text-decoration: none; color: var(--text); transition: transform .2s ease; }
a.logo-card:hover { transform: translateY(-2px); }
.rec-card { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 24px; text-align: left; }
.rec-card h3 { font-size: 18px; margin: 0 0 4px; }
.rec-card p { margin: 0; color: var(--text-2); font-size: 15px; }
.rec-card .icon { font-size: 22px; color: var(--text-2); flex: none; }
.forms.single { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.mail-note { margin-top: 20px !important; max-width: 560px; color: var(--text-2); }
.contact-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; }
.contact-item .tile { font-size: 22px; }
.contact-item div span { display: block; margin-bottom: 2px; }
.signup-card { padding: 28px 24px; margin-top: 2em; }
.signup-card .kicker { margin-bottom: 10px; }
.signup-card h2 { margin: 0 0 18px !important; font-size: clamp(26px, 4vw, 34px); }
.contact-item .tile { color: var(--on-color); }
.address-card { padding: 22px 24px; }
.address-card p { margin: 0 0 8px; color: var(--text-2); }
.address-card address { font-style: normal; font-size: 19px; line-height: 1.5; }
.give-card .actions { margin-top: 20px; }
.map-gate { padding: 24px; text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }
.map-gate video { width: 100%; max-width: 360px; margin: 0 auto 8px; border-radius: 14px; display: block; background: #fff; }
.map-gate [hidden] { display: none !important; }
.magic-reveal { animation: magic-in .25s ease-out; }
@keyframes magic-in { from { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { .magic-reveal { animation: none; } }
.map-gate .magic { font: 800 20px/1.3 var(--round); color: var(--text); margin-bottom: 6px !important; }
.map-gate p { color: var(--text-2); }
.map-form { display: grid; gap: 12px; text-align: center; margin-top: 18px; }
.map-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.map-form .btn { justify-self: center; }
/* The map password page is centered, title included. */
.doc:has(.map-gate) .wrap > .eyebrow, .doc:has(.map-gate) .wrap > h1 { text-align: center; }
.map-gate .small-note { font-size: 14px; margin-top: 16px !important; }
.feature-update .badge + h2 { margin-top: 2px; }
/* Share row at the end of each update */
.share { margin-top: 40px; padding: 24px 0 0; border-top: 1px solid var(--divider); text-align: center; } /* padding 0 below: the kit gives every section 112px */
.share h2 { font-size: 20px !important; margin: 0 0 14px !important; }
.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share-buttons a, .share-buttons button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--surface); box-shadow: var(--shadow); color: var(--text); font: 700 15px var(--round); text-decoration: none; cursor: pointer; }
.share-buttons .icon { font-size: 19px; color: var(--primary); }
.share + .post-end { margin-top: 28px; }
.gospel-video { margin-top: 2em; }
/* The Gospel: "We'd love to hear from you" box, same look as "Pray with us" */
.gospel-contact { margin-top: 2.4em; padding: 32px 24px; text-align: center; }
.gospel-contact .tile { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--teal); color: var(--navy); font-size: 26px; margin-bottom: 14px; }
.prose .gospel-contact h2 { margin: 0 0 12px; font-size: clamp(21px, 5.8vw, 26px); }
.prose .gospel-contact p { margin: 0 auto; max-width: 40ch; color: var(--panel-text-2); }
.prose .gospel-contact p + p { margin-top: 10px; }
.gospel-contact .actions { justify-content: center; margin-top: 22px; }
/* Beliefs: tappable verse references and their pop-up */
.verse-ref { all: unset; cursor: pointer; color: var(--primary); text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, var(--primary) 50%, transparent); text-underline-offset: 3px; border-radius: 4px; }
.verse-ref:hover { text-decoration-style: solid; }
.verse-ref:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.verse-pop { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-height: 60vh; overflow: auto; padding: 18px 20px 20px;
  background: var(--navy); color: #fff; border: 0; border-radius: 18px;
  box-shadow: 0 18px 48px rgb(10 18 32 / .35); }
@media (min-width: 720px) { .verse-pop { position: absolute; right: auto; bottom: auto; width: 420px; max-height: 420px; } }
.verse-pop-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgb(255 255 255 / .15); }
.verse-pop-head b { font: 800 17px var(--round); color: var(--teal); }
.verse-pop-close { border: 0; background: rgb(255 255 255 / .14); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.verse-pop-close:hover { background: rgb(255 255 255 / .24); }
.verse-pop-body p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: #fff; }
.verse-pop-body sup { color: var(--teal); font-weight: 700; margin-right: 2px; }
.verse-pop-more { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--teal); }
/* Mission trips: video beside the text on larger screens only (homepage) */
.trips-stage { display: none; }
@media (min-width: 900px) { .trips-stage { display: flex; } .trips-video { width: 100%; margin-top: 0; } }
.top nav { gap: 18px; }
.top nav a { white-space: nowrap; }

/* Mission Trips page: the trip guide card */
.guide-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin: 28px 0; padding: 22px; }
.guide-card .tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal); color: var(--navy); font-size: 24px; }
.guide-card h2 { font-size: 21px; margin: 2px 0 6px; }
.guide-card p { margin: 0 0 10px; color: var(--text-2); }
.guide-card .guide-links { margin: 0; font-weight: 700; color: var(--text-2); }
.guide-card .guide-links a { font-weight: 700; }

/* Footer: social icons */
footer .social { display: flex; gap: 6px; }
footer .social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--primary); background: var(--surface); box-shadow: var(--shadow); }
footer .social a:hover { color: var(--teal); }
footer .social .icon { font-size: 20px; }
@media (max-width: 640px) {
  footer nav { flex-wrap: nowrap; gap: 18px; }
  /* Phones: logo and copyright stay side by side; links, icons and verse centered */
  footer nav, footer .social { width: 100%; justify-content: center; }
  footer .made { text-align: center; }
}

/* Homepage: follow along on Facebook / Instagram, centered under the phone */
.stage-follow { flex-direction: column; align-items: center; }
.follow { margin-top: 28px; text-align: center; }
.follow p { margin: 0 0 12px; color: var(--text-2); }
.follow-links { display: flex; justify-content: center; gap: 10px; }
.follow-links .icon { font-size: 18px; }
.social-callout { margin-top: 16px; }
.social-callout .follow-links { justify-content: flex-start; margin-top: 14px; }
.cm-frame .maplibregl-ctrl-attrib { background: rgba(27,39,64,.85); color: #b8c3d6; font-size: 11px; }
.cm-frame .maplibregl-ctrl-attrib, .cm-frame .maplibregl-ctrl-attrib-inner { color: #b8c3d6; }
.cm-frame .maplibregl-ctrl-attrib a { color: #d4dbdb; }
.cm-frame .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent; }
.cm-frame .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(27,39,64,.85); }

/* Meetings calendar (static/js/meetings-calendar.js) */
.meetings { margin-top: 48px; }
.meetings h2 { margin: 0 0 16px; }
.mt-next { display: flex; align-items: center; gap: 16px; background: var(--panel); color: var(--panel-text); border-radius: 22px; padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.mt-next[hidden] { display: none; }
.mt-tile { flex: none; width: 64px; border-radius: 16px; overflow: hidden; text-align: center; background: #fff; color: var(--navy); }
.mt-tile span { display: block; background: var(--teal); color: var(--navy); font: 800 12px/1 var(--round); letter-spacing: .08em; text-transform: uppercase; padding: 6px 0 5px; }
.mt-tile b { display: block; font: 800 30px/1 var(--round); padding: 6px 0 8px; }
.mt-next-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-next-text b { font-size: 19px; line-height: 1.25; }
.mt-next-text span { color: var(--panel-text-2); font-size: 15px; }
.mt-next-text .mt-kicker { color: var(--teal); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.mt-cal { padding: 16px 14px 14px; border-radius: 22px; }
@media (min-width: 900px) { .mt-cal { position: sticky; top: 84px; } }
.mt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mt-month { font: 800 20px/1.2 var(--round); }
.mt-nav { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--inset); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.mt-nav:disabled { opacity: .35; cursor: default; }
.mt-nav .icon { width: 20px; height: 20px; }
.mt-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; }
.mt-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--text-2); padding-bottom: 4px; }
.mt-day { position: relative; height: 42px; border: 0; padding: 0; background: none; color: var(--text); font: 600 15px/1 var(--sans); display: grid; place-items: center; cursor: default; }
.mt-day > span { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.mt-day.out { color: var(--text-2); opacity: .35; }
.mt-day.today > span { box-shadow: inset 0 0 0 2px var(--primary); }
.mt-day.has { cursor: pointer; }
.mt-day.has::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; right: 3px; border-radius: 18px; }
.mt-day.has.join-l::before { left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.mt-day.has.join-r::before { right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mt-day.mt-soon::before { background: var(--teal); }
.mt-day.mt-soon { color: var(--navy); font-weight: 800; }
.mt-day.mt-past::before { background: color-mix(in srgb, var(--teal) 22%, transparent); }
.mt-day.mt-past { font-weight: 700; }
.mt-count { position: absolute; z-index: 2; top: -2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--navy); color: #fff; font: 800 10px/17px var(--round); font-style: normal; }
.mt-today { display: block; margin: 10px auto 0; border: 0; background: none; color: var(--primary); font: 700 14px var(--sans); cursor: pointer; }
.mt-today[hidden] { display: none; }
.mt-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.mt-item { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 18px; padding: 12px 14px; transition: box-shadow .3s, transform .3s; }
.mt-item.flash { box-shadow: 0 0 0 2px var(--teal); transform: scale(1.01); }
.mt-date { flex: none; width: 58px; text-align: center; border-radius: 14px; padding: 7px 4px; background: var(--inset); }
.mt-date b { display: block; font: 800 17px/1.1 var(--round); }
.mt-date span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin-top: 2px; }
.mt-item.mt-soon .mt-date, .mt-item.mt-now .mt-date { background: var(--teal); color: var(--navy); }
.mt-item.mt-soon .mt-date span, .mt-item.mt-now .mt-date span { color: var(--navy); }
.mt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-body b { font-size: 16px; line-height: 1.3; }
.mt-body span { color: var(--text-2); font-size: 14px; }
.mt-tag { flex: none; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 99px; background: var(--inset); color: var(--text-2); }
.mt-item.mt-soon .mt-tag, .mt-item.mt-now .mt-tag { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--text); }
.mt-empty { color: var(--text-2); text-align: center; padding: 16px; }
.mt-day.mt-canceled::before { background: none; border: 2px dashed color-mix(in srgb, #e5484d 70%, transparent); }
.mt-day.mt-canceled { color: var(--text-2); }
.mt-item.mt-canceled .mt-body b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text) 45%, transparent); color: var(--text-2); }
.mt-item.mt-canceled .mt-date { opacity: .6; }
.mt-item.mt-canceled .mt-tag { background: color-mix(in srgb, #e5484d 18%, transparent); color: color-mix(in srgb, #e5484d 75%, var(--text)); }
@media (max-width: 420px) { .mt-tag { display: none; } .mt-item.mt-canceled .mt-tag { display: inline-block; } }
@media (min-width: 900px) {
  .meetings-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .meetings-wrap .mt-list { margin-top: 0; }
}
