/* The church site's one stylesheet.
 *
 * Every page links this file, and only this file. The pages used to carry their
 * own <style> blocks: the landing page had a full second copy of these rules
 * (so a fix to this file never reached it, and the event poster it publishes
 * arrived unstyled at its picture's full height), while the gallery carried a
 * few of its own. Those blocks are folded in below, in the order they used to
 * win, so what each page rendered is what it still renders.
 *
 * The link carries ?v=<hash> because nginx serves this file immutably for 30
 * days: without a new address, a returning phone would keep the old rules.
 * deploy-website.sh rewrites the query to the file's hash on every deploy, so
 * the version can never fall behind the file.
 */

:root{--hero-top:#103451;--navy:#103451;--deep:#09243a;--gold:#d5a83b;--cream:#fbfaf6;--ink:#203044;--muted:#65788a;--line:#e3e9ed}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:16px/1.65 Arial,sans-serif;color:var(--ink);background:#fff}
a{text-decoration:none;color:inherit}.wrap{max-width:1160px;width:calc(100% - 36px);margin:auto}

header{background:#fff;border-bottom:1px solid var(--line)}.nav{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:13px 0}
.brand{display:flex;align-items:center;gap:12px;color:var(--navy);font-weight:800}.brand img{width:44px;height:48px;object-fit:contain;filter:invert(1)}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:1.6px}
.links{display:flex;gap:9px;flex-wrap:wrap;align-items:center;font-size:13px;font-weight:700}.links a{padding:8px 9px;border-radius:6px}.links a:hover,.links a.active{background:#eef2f4;color:#976b12}.links .system{background:var(--gold);color:#172c40}
.btn{display:inline-block;padding:11px 17px;background:var(--gold);border-radius:7px;color:#172c40;font-weight:800;border:0;cursor:pointer}.btn.blue{background:var(--navy);color:white}.btn.outline{background:transparent;border:1px solid #fff;color:white}
.hero{background:linear-gradient(180deg,var(--hero-top),#174968);color:white;position:relative;overflow:hidden;min-height:370px;display:flex;align-items:center}
.hero .wrap{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:28px;padding:58px 0}.eyebrow,.kicker{color:#edc76a;text-transform:uppercase;letter-spacing:2px;font-size:12px;font-weight:850}
.hero h1{font-size:clamp(38px,6vw,60px);line-height:1.07;margin:12px 0;letter-spacing:-1.5px}.hero p{max-width:680px;color:#dce6ee;line-height:1.8}
.hero-logo{display:grid;place-items:center;min-height:230px}.hero-logo img{width:min(290px,80%);height:220px;object-fit:contain;background:#fff;padding:25px;border-radius:18px;box-shadow:0 18px 45px #0003}
.actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:24px}.section{padding:54px 0}.soft{background:var(--cream)}h1,h2,h3{line-height:1.2}h2{color:var(--navy);font-size:clamp(28px,4vw,40px);margin:8px 0 14px}.lead{color:var(--muted);max-width:850px;line-height:1.8}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px}.card{padding:19px;border:1px solid var(--line);border-radius:11px;background:white}.card h3{margin:8px 0;color:var(--navy);font-size:17px}.card p{margin:0 0 11px;color:var(--muted);font-size:14px;line-height:1.7}.read{font-size:13px;color:#976b12;font-weight:800;text-decoration:underline}
.event-banner{background:linear-gradient(110deg,#0b2a47,#1c5274);border-radius:13px;padding:24px;color:white;display:flex;justify-content:space-between;align-items:center;gap:22px;margin-top:22px}.event-banner h3{color:white;margin:6px 0}.event-banner p{color:#d6e3ec;margin:0}
.paybox{background:white;color:var(--ink);padding:25px;border-radius:12px;border:1px solid var(--line);max-width:620px}.paynum{font-size:clamp(42px,6vw,58px);font-weight:900;color:var(--navy);margin:5px 0 12px}.tags span{display:inline-block;background:#eef2f4;border-radius:20px;padding:6px 10px;margin:4px;font-size:13px;font-weight:750}
.notice{background:#fff8e8;border-left:4px solid var(--gold);padding:16px;border-radius:8px;margin:12px 0}
.footer{background:var(--deep);color:#cbd8e2;padding:34px 0 20px;font-size:13px}.footer a{color:white}.foot{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}.slogan{color:#f0cc70;font-weight:700;font-style:italic;margin-top:16px;font-size:15px}.copyright{border-top:1px solid #ffffff25;margin-top:22px;padding-top:14px;color:#91a5b5;font-size:12px}
@media(max-width:760px){.hero .wrap{grid-template-columns:1fr;padding:45px 0}.hero-logo{min-height:130px}.hero-logo img{width:155px;height:135px}.hero{min-height:auto}.event-banner{display:block}.event-banner .btn{margin-top:16px}}
/* The eight nav links wrap onto two rows on a phone instead of sliding out of
 * sight in a scroller: a horizontal strip showed five of them and gave no sign
 * the other three existed. Pulling the type and padding in slightly is what
 * lets "Pastor & Elders" and "Church System" share a row with "Giving". */
@media(max-width:600px){
.links{width:100%;flex-wrap:wrap;overflow:visible;gap:5px}
.links a{padding:7px 8px;font-size:12.5px;white-space:nowrap}
.nav{align-items:flex-start}
.section{padding:40px 0}
}

/* Expanded content cards */
.photo-card{padding:0;overflow:hidden}.photo-card img{display:block;width:100%;height:178px;object-fit:cover}.photo-card .card-body{padding:17px 19px 20px}
.service-card img{height:150px}.belief-card img{height:145px}.ministry-card img{height:165px}
.person-card{text-align:center;padding:0 0 18px;overflow:hidden}.person-photo{height:220px;background:linear-gradient(145deg,#e7edf1,#cbd8df);display:grid;place-items:center;color:#174968;font-size:58px;font-weight:900}.person-photo img{width:100%;height:100%;object-fit:cover}
.person-card .card-body{padding:15px}.event-posters{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:22px}
.event-poster{min-height:310px;border-radius:14px;overflow:hidden;position:relative;color:white;background:linear-gradient(145deg,#09243a,#1b5874);display:flex;align-items:end;box-shadow:0 12px 28px #09243a22}
.event-poster:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#061b2c 0%,#061b2cbb 45%,#061b2c20 100%)}
.event-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.65}
.poster-content{position:relative;padding:25px}.poster-content h3{color:white;font-size:26px;margin:8px 0}.poster-content p{color:#e7eff4;margin:0}.poster-date{display:inline-block;background:#d5a83b;color:#09243a;border-radius:20px;padding:6px 12px;font-size:12px;font-weight:900;letter-spacing:1px}
.quote-panel{background:#fdf7e8;border:1px solid #f1dfb4;border-radius:13px;padding:23px;margin:15px 0 25px}.quote-panel blockquote{font-size:21px;color:#103451;font-weight:800;margin:0 0 8px}.quote-panel cite{font-size:13px;color:#65788a}
@media(max-width:600px){.photo-card img{height:160px}.person-photo{height:190px}}

/* ---- Rules the landing page used to carry inline ---- */
.hero-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.hero-actions .btn{padding:7px 14px;font-size:12.5px;font-weight:750;border-radius:6px;line-height:1.35}
.links a[href="/beliefs/"],article.card:has(a[href="/beliefs/"]){display:none}
.hero-slide-nav{display:flex;gap:5px;margin-left:auto;align-items:center}
.hero-slide-nav button{width:30px;height:30px;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:20px;line-height:1;cursor:pointer}
.hero-slide-nav button:hover{border-color:var(--gold);color:var(--gold)}
.live-button{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:#c92f3d;color:#fff!important;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 4px 12px rgba(201,47,61,.25)}
.live-button:before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.22)}
.live-button:hover{background:#a92331;color:#fff!important}
.blog-card{display:flex;flex-direction:column;height:100%}
.blog-card .read{margin-top:auto;padding-top:16px}
.blog-meta{margin:0 0 8px;color:var(--gold);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.blog-empty{padding:26px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);text-align:center}
.ministry-section{padding-top:34px;border-top:1px solid var(--line)}
.ministry-section h2{margin:0 0 8px}
.ministry-section img{display:block;width:100%;max-width:520px;max-height:260px;object-fit:cover;margin-top:18px;border-radius:12px}
/* The ministries directory: one card per ministry, the card's Learn more
   opening that ministry's own page. */
.ministry-directory{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.ministry-card .card-body{display:flex;flex-direction:column;gap:6px;height:100%}
.ministry-card h3{margin:0}
.ministry-card .read{margin-top:auto;padding-top:6px}
.ministry-leader-line{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
/* One ministry's page: the app's words, its leaders, its pictures, its own
   buttons, and the one church calendar's door. */
.ministry-back{margin-bottom:6px}
.ministry-profile-section{padding-top:20px}
.ministry-profile-section .ministry-block-heading:first-of-type{margin-top:8px}
.ministry-body{margin-top:18px}
.ministry-body p{margin:0 0 14px}
.ministry-block-heading{margin:26px 0 8px}
.ministry-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-top:20px}
.ministry-gallery img{display:block;width:100%;height:170px;object-fit:cover;border-radius:12px}
.ministry-hero-photos{background:#09243a}
.ministry-hero-photos:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,26,45,.86),rgba(5,26,45,.38));z-index:1;pointer-events:none}
.ministry-hero-photos .wrap{position:relative;z-index:2;grid-template-columns:1fr}
.ministry-hero-photos .photo-slide img{display:block;width:100%;height:100%;object-fit:cover}
.ministry-hero-dots{position:absolute;right:22px;bottom:18px;z-index:3;display:flex;gap:8px}
@media(max-width:760px){.ministry-hero-dots{right:14px;bottom:12px}}
.ministry-leaders-grid{margin-top:22px}
.ministry-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
/* A ministry's own coming events, read from the one church calendar. */
.ministry-events{margin-top:26px}
.ministry-events .ministry-block-heading{margin-top:0}
.ministry-events-list{display:grid;gap:10px;margin-top:10px}
.ministry-event{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}
.ministry-event-when{margin:0;color:var(--muted);font-size:12px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}
.ministry-event-title{margin:2px 0 0;font-weight:700;color:var(--ink)}
.ministry-event-where{margin:2px 0 0;color:var(--muted);font-size:13px}
.ministry-events-link{margin:24px 0 0}
/* A section's calls to action sit at the right edge, under the paragraph that
   introduces them, instead of hugging the left margin. The hero keeps its own
   placement, so this is scoped to sections. */
.section .hero-actions{justify-content:flex-end}
.section .wrap > .btn{display:table;margin-left:auto}
.logo-tile{height:108px;background:#f4f6f7;border-radius:9px;display:grid;place-items:center;margin-bottom:14px}
.logo-tile img{max-width:95px;max-height:82px;object-fit:contain}
.belief-no{font-size:12px;color:#9a7017;letter-spacing:1px;font-weight:900}
@media(max-width:600px){
.paynum{font-size:42px}
}
.contact-info{margin-top:16px;line-height:1.9;color:#cbd8e2}
.contact-info a{color:#fff;text-decoration:underline}
.photo-hero{position:relative;min-height:500px;overflow:hidden;background:#09243a;display:flex;align-items:flex-end}
.photo-slides{position:absolute;inset:0}
.photo-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity .9s}
.photo-slide.active{opacity:1}
.photo-content{position:relative;z-index:2;display:block;padding:60px 0 32px;color:#fff}
.photo-content h1{max-width:700px}
.photo-content p{max-width:650px;color:#eef4f8}
.photo-dots{display:flex;gap:8px;margin-top:12px}
.photo-dots button{width:10px;height:10px;border:0;border-radius:50%;padding:0;background:rgba(255,255,255,.4);cursor:pointer}
.photo-dots button.active{background:var(--gold)}
/* What a first-time visitor came for: what the church is, when it meets and the
   two ways in — a visit, or what is on. One card holds all of it, on a phone and
   on a wide screen alike, so the page does not change shape between them. The
   church's name belongs to the header, so the card does not print it again; the
   h1 stays in the markup, read out and indexed, without being shown twice. */
.hero-site-col{--hero-card-h:0px;display:none;background:rgba(5,26,45,.58);border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:14px 16px 16px;margin:0 auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.hero-site-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hero-site-when{font-size:13px;color:#c8dae8;margin:12px 0 0;line-height:1.5}
.hero-site-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}
.hero-site-actions .btn{padding:7px 13px;font-size:12.5px}
/* The announcements play through that same card rather than a second one under
   the photograph: its first turn is the church's own description, and each
   announcement takes the card after that. */
.hero-site-ann .eyebrow{margin:0 0 2px}
.hero-site-ann .eyebrow{display:none}
.hero-site-ann #photoTitle,.hero-site-desc-title{color:var(--gold);font-weight:800;font-size:clamp(19px,2.1vw,25px);line-height:1.25;margin:6px 0 8px}
.hero-site-ann p{font-size:14.5px;line-height:1.6;margin:0}
.hero-message-wrap{position:relative;margin:0 0 12px}
.hero-site-more{display:inline-block;background:rgba(5,26,45,.92);border:0;padding:0 0 0 5px;margin:0;font:inherit;font-size:12.5px;font-weight:700;color:var(--gold);cursor:pointer;text-decoration:underline}
.hero-site-more[hidden]{display:none}
.hero-message-wrap:not(.expanded) .hero-site-more{position:absolute;right:0;bottom:0}
.hero-message-wrap.expanded .hero-site-more{display:block;margin-top:4px;background:none;padding:0}
/* The card keeps one height across its turns on every screen size, so the
   photograph beside it stops growing and shrinking. An announcement longer
   than three lines is shortened to fit, with the rest behind "See more". */
.hero-site-ann #photoText{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.hero-site-ann #photoText.expanded{display:block;-webkit-line-clamp:unset;overflow:visible}
@media(min-width:760px){
.photo-hero{min-height:470px;align-items:flex-end}
.hero-site-col{display:flex;flex-direction:column;width:100%;max-width:620px;height:13rem;min-height:13rem;padding:10px 16px 8px}
.photo-dots{margin-top:auto;padding-top:4px}
.hero-site-sub{max-width:none;font-size:13.5px;line-height:1.4;margin:4px 0}
.hero-site-when{margin:6px 0 0;font-size:12.5px}
.hero-site-actions{margin-top:8px}
.hero-site-ann #photoTitle,.hero-site-desc-title{font-size:20px;margin:4px 0 4px}
.hero-site-ann p{font-size:14px;line-height:1.5;margin:0 0 8px}
.hero-site-ann #photoText{-webkit-line-clamp:3}
}
@media(max-width:759px){
.photo-hero{min-height:470px;align-items:flex-end}
.hero-site-col{display:flex;flex-direction:column;width:100%;max-width:none;min-height:0;border-radius:10px 10px 0 0;border-left:0;border-right:0;border-bottom:0;padding:12px 16px 13px}
/* The description sets the reserved height, so its own spacing is kept tight
   enough to fit without leaving an empty panel under the shorter slides. */
.hero-site-col .hero-site-sub{font-size:13.5px;line-height:1.5;margin:10px 0}
.hero-site-when{margin-top:10px;font-size:12.5px}
.hero-site-actions{margin-top:10px}
.hero-site-actions .btn{padding:6px 11px;font-size:12px}
.hero-site-ann #photoTitle,.hero-site-desc-title{font-size:18px;margin:3px 0 4px}
.hero-site-ann p{font-size:13.5px;line-height:1.5}
.hero-actions{margin-top:8px;gap:7px}
.hero-actions .btn{padding:6px 12px;font-size:12px}
.hero-slide-nav button{width:28px;height:28px;font-size:18px}
.photo-dots{margin-top:auto;padding-top:10px;gap:7px}
}
/* The narrowest phones wrap the belief slides and the longest announcement a
   line further, so their card reserves the height they actually need. */
@media(max-width:359px){
.hero-site-col{padding-left:13px;padding-right:13px}
}

/* ---- The gallery's own rules ---- */
@media(max-width:600px){
}

/* ---- The event poster on a phone ----
 *
 * The poster is a picture with a line of text over it, and on a narrow screen
 * the picture's own proportions decided the block's height: a portrait JPEG
 * became a two-screen wall. Here the picture is a band across the top and the
 * words sit under it on the gradient, at the size they are everywhere else —
 * shrinking the block no longer shrinks the reading.
 */
@media(max-width:600px){
.event-poster{min-height:0;display:block}
.event-poster:before{background:linear-gradient(0deg,#061b2c 0%,#061b2c 62%,#061b2c88 100%)}
.event-poster img{position:static;display:block;width:100%;height:150px;object-fit:cover;opacity:.9}
.poster-content{padding:18px}
.poster-content h3{font-size:21px;margin:6px 0}
}


/* ---- The hero's photographs ----
 *
 * Each slide used to name its picture in a style attribute, which meant
 * every phone downloaded the 1600px file to paint a 390px screen. The
 * picture now lives here, so the narrow-screen rule below can hand a
 * smaller one to the devices that cannot use the detail.
 */
.hero-photo-church-01{background-image:url('/assets/gallery/church-01.jpeg')}
.hero-photo-church-02{background-image:url('/assets/gallery/church-02.jpeg')}
.hero-photo-church-03{background-image:url('/assets/gallery/church-03.jpeg')}
.hero-photo-church-04{background-image:url('/assets/gallery/church-04.jpeg')}
.hero-photo-church-05{background-image:url('/assets/gallery/church-05.jpeg')}
.hero-photo-church-06{background-image:url('/assets/gallery/church-06.jpeg')}
.hero-photo-church-07{background-image:url('/assets/gallery/church-07.jpeg')}
.hero-photo-church-08{background-image:url('/assets/gallery/church-08.jpeg')}
.hero-photo-church-09{background-image:url('/assets/gallery/church-09.jpeg')}
@media(max-width:760px){
.hero-photo-church-01{background-image:url('/assets/gallery/church-01-960.webp')}
.hero-photo-church-02{background-image:url('/assets/gallery/church-02-960.webp')}
.hero-photo-church-03{background-image:url('/assets/gallery/church-03-960.webp')}
.hero-photo-church-04{background-image:url('/assets/gallery/church-04-960.webp')}
.hero-photo-church-05{background-image:url('/assets/gallery/church-05-960.webp')}
.hero-photo-church-06{background-image:url('/assets/gallery/church-06-960.webp')}
.hero-photo-church-07{background-image:url('/assets/gallery/church-07-960.webp')}
.hero-photo-church-08{background-image:url('/assets/gallery/church-08-960.webp')}
.hero-photo-church-09{background-image:url('/assets/gallery/church-09-960.webp')}
}

/* Ministries on a phone: the roster and the ministry list carry the page, so the
   stock photographs the cards were built around come off and the cards become
   rows. Nothing is removed: every ministry keeps its words and its link. */
@media(max-width:600px){
  .section{padding:26px 0}
  .stacked{margin-top:24px!important}
  .grid{gap:10px}
  .hero .wrap{padding:26px 0;gap:16px}
  .hero-logo{min-height:0}
  .hero-logo img{width:118px;height:100px;padding:12px;border-radius:14px}
  /* The pastor and the elders read as people, not as posters: the portrait
     sits beside the name instead of above it. */
  .person-card{display:flex;align-items:center;gap:12px;text-align:left;padding:10px}
  .person-photo{flex:0 0 74px;width:74px;height:74px;border-radius:12px;overflow:hidden;font-size:26px}
  .person-card .card-body{padding:0}
  .person-card h3{margin:0 0 2px;font-size:16px}
  .person-card .card-body p{margin:0}
  /* The eldership reads as a small roster: four elders per row on a phone, so
     the section stays as two tidy rows instead of a single stretched row. */
  [data-church-leadership="elders"]{grid-template-columns:repeat(4,1fr)}
  /* Sixteen photographs of other people's churches cost more scroll than they
     are worth; the ministry keeps its name, its sentence and its link. */
  .ministry-card img{display:none}
  .ministry-card .card-body{padding:13px 15px}
  .ministry-card h3{margin:0 0 4px}
  .ministry-card p{margin:0 0 6px;font-size:13px;line-height:1.6}
  .section.soft .card{padding:15px}
  .section.soft .card h3{margin:4px 0}
  .section.soft .card p{font-size:13px;line-height:1.6;margin-bottom:8px}
}

/* The menu on a phone: the links fold behind a button that sits to the right of
   the emblem and the name, rather than wrapping onto rows beneath them. The
   button is the label of a checkbox, so the menu opens without a script. */
.nav-menu-check{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.nav-menu{display:none}
/* The church's development project, shown the way the old gallery showed it. */
.project-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:24px}
.project-gallery-item{display:block;position:relative;overflow:hidden;border-radius:12px;background:#eef2f4;box-shadow:0 4px 18px #09243a14}
.project-gallery-item img{display:block;width:100%;height:260px;object-fit:cover;transition:transform .3s}
.project-gallery-item:hover img{transform:scale(1.035)}
.project-gallery-item span{display:block;padding:12px 15px;font-weight:700;color:#103451}
.muted-note{margin-top:14px;font-size:13px;color:var(--muted)}
@media(max-width:760px){
  .nav{align-items:center}
  .brand{flex:1 1 auto}
  .nav-menu{display:flex;flex-direction:column;justify-content:center;gap:4px;flex:0 0 auto;width:44px;height:42px;padding:11px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}
  .nav-menu span{display:block;height:2px;border-radius:2px;background:var(--navy)}
  .links{display:none}
  .nav-menu-check:checked ~ .links{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:2px;padding-top:10px;font-size:15px}
  .nav-menu-check:checked ~ .links a{padding:11px 10px}
  .project-gallery{grid-template-columns:1fr}
  .project-gallery-item img{height:auto;max-height:320px}
}

/* ---- System calendar in Calendar format (monthly grid with vertical scroll) ---- */
.calendar-controls{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 14px;align-items:center}
.btn.outline-dark{background:#fff;border:1px solid var(--line);color:var(--navy);font-weight:750;transition:all .2s}
.btn.outline-dark:hover{background:#f0f4f7;border-color:var(--gold);color:#976b12}
.calendar-scroll-wrap{max-height:680px;overflow-y:auto;border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px;scroll-behavior:smooth}
/* The home page shows the next four events in the same card as the calendar's
   list, but with nothing to scroll: the whole of it is four rows. */
.calendar-scroll-wrap.no-scroll{max-height:none;overflow:visible}
/* The calendar's list trims its meta line because the chevron opens the rest.
   These rows have no chevron, so on a phone the line wraps rather than losing
   where and when the event is. */
@media(max-width:600px){.calendar-scroll-wrap.no-scroll .evlist-meta{white-space:normal}}
.calendar-month-sheet{margin-bottom:26px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 2px 10px #00000008}
.calendar-month-sheet:last-child{margin-bottom:0}
.calendar-month-header{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;background:var(--cream);border-bottom:1px solid var(--line);color:var(--navy);font-size:16px;font-weight:800}
.calendar-month-header .month-count{font-size:12px;font-weight:600;color:var(--muted)}
.calendar-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.calendar-table{width:100%;min-width:620px;border-collapse:collapse;table-layout:fixed}
.calendar-table th{background:#f3f6f8;padding:9px 6px;font-size:11.5px;font-weight:750;text-transform:uppercase;color:var(--muted);text-align:center;border-bottom:1px solid var(--line)}
.calendar-table th.sabbath-col{background:#fff8ea;color:#976b12}
.calendar-table td{height:88px;vertical-align:top;padding:6px;border:1px solid var(--line);font-size:12px;background:#fff;position:relative}
.calendar-table td.outside-month{background:#fafbfc;color:#c0cad2}
.calendar-table td.sabbath-cell{background:#fdfcf7}
.calendar-table td.today-cell{outline:2px solid var(--gold);outline-offset:-2px}
.calendar-table td .day-num{font-size:11px;font-weight:800;color:var(--ink);display:inline-block;margin-bottom:4px}
.calendar-table td.sabbath-cell .day-num{color:#976b12}
.calendar-table td.today-cell .day-num{background:var(--gold);color:#09243a;border-radius:50%;width:18px;height:18px;text-align:center;line-height:18px}
.calendar-event-chip{display:block;background:var(--navy);color:#fff;border-radius:4px;padding:3px 6px;font-size:10.5px;font-weight:700;line-height:1.3;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;transition:transform .12s}
.calendar-event-chip:hover{background:#09243a;transform:translateY(-1px)}
.calendar-event-chip.welfare{background:#168b52}
.calendar-event-chip.choir{background:#7a3b8c}
.calendar-event-chip.youth{background:#b85d19}
.calendar-modal-backdrop{position:fixed;inset:0;background:#00000077;z-index:999;display:flex;align-items:center;justify-content:center;padding:16px}
.calendar-modal{background:#fff;border-radius:14px;max-width:480px;width:100%;padding:24px;position:relative;box-shadow:0 20px 40px #0004}
.calendar-modal-close{position:absolute;top:14px;right:14px;border:0;background:#eef2f4;border-radius:50%;width:30px;height:30px;font-size:16px;font-weight:700;cursor:pointer;display:grid;place-items:center;color:var(--ink)}
.calendar-modal h3{margin:0 0 10px;color:var(--navy);font-size:20px}
.calendar-modal p{margin:6px 0;color:var(--muted);font-size:14px}
.calendar-modal .modal-meta{background:var(--cream);border-radius:8px;padding:12px;margin:14px 0}
.calendar-modal .modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

/* ---- View toggle (List / Calendar) ---- */
.cal-view-toggle{display:flex;gap:0;margin:0 0 16px;border:1px solid var(--line);border-radius:8px;overflow:hidden;width:fit-content}
.cal-view-btn{background:#fff;border:0;padding:9px 20px;font-size:13px;font-weight:750;color:var(--navy);cursor:pointer;transition:background .15s,color .15s}
.cal-view-btn+.cal-view-btn{border-left:1px solid var(--line)}
.cal-view-btn.active{background:var(--navy);color:#fff}
.cal-view-btn:hover:not(.active){background:#f0f4f7}

/* ---- Event list view ---- */
.evlist-month-header{padding:10px 16px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);background:var(--cream);border-bottom:1px solid var(--line);border-top:1px solid var(--line)}
.evlist-month-header:first-child{border-top:0}
.evlist-item{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:14px;padding:14px 16px;border-bottom:1px solid var(--line);cursor:default;transition:background .12s}
.evlist-item:last-child{border-bottom:0}
.evlist-item:hover{background:#f7fafc}
.evlist-date{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:48px}
.evlist-day{font-size:26px;font-weight:900;color:var(--navy);line-height:1}
.evlist-wday{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-top:2px}
.evlist-body{overflow:hidden}
.evlist-title{font-size:14.5px;font-weight:750;color:var(--ink);line-height:1.3}
.evlist-meta{font-size:12px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.evlist-chevron{background:none;border:0;font-size:22px;color:var(--muted);cursor:pointer;padding:0 4px;line-height:1;border-radius:4px;transition:color .12s}
.evlist-chevron:hover{color:var(--navy)}

/* The header on white paper, above the page's deep blue hero. A light band
   that ends where the blue begins is what keeps the two apart: no second blue
   to compare and no rule needed to say where one stops and the other starts.
   The emblem is served white for the system's dark bar, so it is turned back
   to read here; the links and controls take the church's darker ink. */
header{background:#fff;border-bottom:1px solid var(--line)}
header .brand{color:var(--navy)}
header .brand small{color:var(--muted)}
header .brand img{filter:invert(1)}
.links a{color:var(--ink)}
.links a:hover,.links a.active{background:#eef2f4;color:#976b12}
.nav-menu{border-color:var(--line);background:#fff}
.nav-menu span{background:var(--navy)}
header .a11y-btn{border-color:var(--line);background:#f4f7f9;color:var(--navy)}
header .a11y-btn:hover,header .a11y-btn[aria-expanded="true"]{background:#e7eef2}
/* The hero's card belongs on the photograph's lower edge, not floating in the
   middle of it. Two rules had to give way for that: .wrap's auto margins were
   centring the column, and .hero's own two-column grid was still shaping the
   content now that the announcement left the picture. */
.photo-hero .photo-content{display:block;grid-template-columns:none;align-items:initial;margin:auto auto 0;padding:0 0 6px}
/* On a phone the card is the width of the screen and sits on the photograph's
   bottom edge, so no strip of photo is left under it. */
@media(max-width:759px){
.photo-hero .photo-content{width:100%;padding:0}
}

/* The calendar's controls in one row: the two views on the left, the refresh on
   the right. The view buttons share one width, so neither reads as the lesser
   of the pair. */
.cal-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}
.cal-toolbar .cal-view-toggle{margin:0}
.cal-toolbar .cal-view-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:124px}
.cal-refresh{border:1px solid var(--line);border-radius:8px;padding:8px 16px;min-width:0}
.cal-refresh:hover{background:#f0f4f7}
.cal-refresh[disabled]{opacity:.55;cursor:default}
@media(max-width:600px){
  /* Narrow enough that the refresh would drop to a line of its own: trim the
     buttons' side padding so all three hold one row, and keep the pair even. */
  .cal-toolbar .cal-view-btn{min-width:104px;padding:9px 12px}
  .cal-toolbar .cal-refresh{padding:8px 12px}
}

/* The photograph runs in its own colour — the announcement card carries the
   shade now — so the white words outside it cast a little of their own to stay
   legible over a bright wall. */
.hero-site-title,.hero-site-sub{text-shadow:0 1px 3px rgba(4,20,34,.5),0 6px 22px rgba(4,20,34,.35)}


/* The header's three parts: the church's name at the left, the page links
   centred on the page itself, and the system link with the accessibility
   button at the right. */
.nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:13px 0}
.nav .brand{grid-column:1;justify-self:start}
.nav .links{grid-column:2;justify-self:center}
.nav-right{position:relative;z-index:60;justify-self:end;display:flex;align-items:center;gap:10px}
.nav-right .system{background:var(--gold);color:#172c40;padding:9px 14px;border-radius:6px;font-size:13px;font-weight:800;white-space:nowrap}
.nav-right .system:hover{filter:brightness(1.06)}
.a11y-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;transition:background .15s}
.a11y-btn:hover,.a11y-btn[aria-expanded="true"]{background:rgba(255,255,255,.22)}
.a11y-btn svg{display:block}

/* The panel the button opens. */
.a11y-panel{position:absolute;top:calc(100% + 12px);right:0;width:min(300px,calc(100vw - 28px));padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 22px 48px rgba(4,20,34,.3);font-size:13px;text-align:left}
.a11y-panel[hidden]{display:none}
.a11y-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.a11y-head b{font-size:14px;color:var(--navy)}
.a11y-close{width:28px;height:28px;border:0;border-radius:8px;background:#eef2f4;color:var(--navy);font-size:18px;line-height:1;cursor:pointer}
.a11y-close:hover{background:#e2e9ee}
.a11y-group{margin-bottom:6px}
.a11y-label{display:block;margin-bottom:7px;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.a11y-seg{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.a11y-seg button{flex:1 1 0;padding:8px 6px;border:0;background:#fff;color:var(--navy);font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.a11y-seg button+button{border-left:1px solid var(--line)}
.a11y-seg button.active{background:var(--navy);color:#fff}
.a11y-seg button:hover:not(.active){background:#f0f4f7}
.a11y-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line);cursor:pointer}
.a11y-row input{appearance:none;-webkit-appearance:none;flex:0 0 auto;width:38px;height:22px;margin:0;border:1px solid #b0c0cb;border-radius:999px;background:#c3d0d9;position:relative;cursor:pointer;transition:background .15s}
.a11y-row input::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}
.a11y-row input:checked{background:var(--navy);border-color:var(--navy)}
.a11y-row input:checked::after{transform:translateX(16px)}
.a11y-reset{width:100%;margin-top:12px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:#f7fafb;color:var(--navy);font:inherit;font-size:12.5px;font-weight:750;cursor:pointer}
.a11y-reset:hover{background:#eef2f4}

/* What the panel's choices change. Text size is a zoom because the stylesheet
   is written in pixels, where a root font size would move nothing. */
html[data-font-size="large"]{zoom:1.12}
html[data-font-size="x-large"]{zoom:1.25}
html[data-high-contrast="true"]{--navy:#05233c;--deep:#03192b;--gold:#8a6100;--cream:#fff;--ink:#000;--muted:#16232f;--line:#5b7183}
html[data-high-contrast="true"] a{text-decoration:underline}
html[data-high-contrast="true"] .lead,html[data-high-contrast="true"] .muted-note{color:var(--ink)}
html[data-dyslexic-font="true"] body{font-family:Verdana,"Trebuchet MS",Tahoma,sans-serif;letter-spacing:.012em;word-spacing:.05em}
html[data-reduced-motion="true"] *,html[data-reduced-motion="true"] *::before,html[data-reduced-motion="true"] *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
html[data-high-vis-focus="true"] a:focus-visible,html[data-high-vis-focus="true"] button:focus-visible,html[data-high-vis-focus="true"] input:focus-visible,html[data-high-vis-focus="true"] [tabindex]:focus-visible{outline:3px solid #ffcc33;outline-offset:2px}

/* On a phone the name and the menu button hold the first row; the system link
   and the accessibility button share the second, which the open menu lands
   above. */
/* The menu's copy of the system link is for phones only. */
.links .system-mobile{display:none}
@media(max-width:760px){
  .nav{grid-template-columns:1fr auto auto;column-gap:10px}
  .nav .brand{grid-column:1;grid-row:1;justify-self:start}
  .nav-right{grid-column:2;grid-row:1;justify-self:end;justify-content:flex-end}
  .nav-menu{grid-column:3;grid-row:1;justify-self:end}
  .nav .links{grid-column:1/-1;grid-row:2;justify-self:stretch}
  .nav-right .system{display:none}
  .links .system-mobile{display:block;margin-top:6px}
}

/* Giving, in a dialog over the page: amount, account, phone — then the M-PESA
   prompt lands on the giver's own phone. */
body.give-open{overflow:hidden}
.give-backdrop{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;background:rgba(6,24,40,.62)}
.give-backdrop[hidden]{display:none}
.give-dialog{width:min(430px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:22px;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 26px 60px rgba(4,20,34,.42)}
.give-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.give-head h2{margin:0;font-size:21px;color:var(--navy)}
.give-close{width:32px;height:32px;border:0;border-radius:9px;background:#eef2f4;color:var(--navy);font-size:20px;line-height:1;cursor:pointer}
.give-close:hover{background:#e2e9ee}
.give-form{display:grid;gap:12px}
.give-form[hidden]{display:none}
.give-field{display:grid;gap:6px;font-size:12.5px;font-weight:800;color:var(--navy)}
.give-field input,.give-field select,.give-field textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:600}
.give-field input:focus,.give-field select:focus{outline:2px solid var(--navy);outline-offset:1px}
.give-note{margin:0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.give-status{margin:0;min-height:1px;font-size:13px;font-weight:700;color:var(--navy)}
.give-status.is-error{color:#a6251f}
.give-submit{width:100%;justify-content:center;padding:12px 16px;font-size:14px}
.give-submit[disabled]{opacity:.65;cursor:default}
.give-done{display:grid;gap:10px}
.give-done[hidden]{display:none}
.give-done b{font-size:17px;color:var(--navy)}
.give-done p{margin:0;font-size:14px;line-height:1.55;color:var(--ink)}

/* The strip across the top of every page: three quiet lines a visitor can use —
   when worship is, where the church is and how to reach it — in the footer's
   deep navy, so the page opens and closes on the same band. They take turns, so
   the strip stays one line tall instead of wrapping into a wall of small print.
   A reader who asked for reduced motion sees all three at once, standing still. */
.topbar{background:var(--deep);color:#dbe6ef}
.topbar-inner{min-height:34px;display:flex;align-items:center;justify-content:center;padding:6px 0}
.topbar-line{margin:0;font-size:12.5px;line-height:1.45;letter-spacing:.01em;text-align:center;color:#dbe6ef;transition:opacity .22s ease}
.topbar-line-swap{opacity:0}
/* With reduced motion the three lines stand together instead of turning. */
.topbar-static-line{display:block}
.topbar-static-line + .topbar-static-line{margin-top:1px}
@media(max-width:600px){.topbar-line{font-size:12px}}
@media(prefers-reduced-motion:reduce){.topbar-line{transition:none}}

/* The line under the church's name is the church's own call, not a location
   note: it carries more weight than the small print it replaced and its own
   shade, since it stands straight on a photograph. */
.hero-site-sub{max-width:none;font-size:14px;font-weight:600;line-height:1.5;color:#eaf3f9;text-shadow:0 1px 3px rgba(4,20,34,.55),0 6px 18px rgba(4,20,34,.4)}

/* ---- Dark theme -------------------------------------------------------
   The panel's choice reaches the document as data-theme on <html>, set by
   theme.js before the first paint. Most of this page is drawn from the
   variables, so the palette is swapped in one place; every surface that was
   written in white is then given its own dark tone, so the theme holds on all
   the pages and not only over the photograph. */
html[data-theme="dark"]{color-scheme:dark;--navy:#123a58;--deep:#081c2d;--gold:#e3b655;--cream:#0f1e2b;--ink:#e4edf4;--muted:#a2b8c9;--line:#263a4c}
html[data-theme="dark"]{--hero-top:#20587d}
html[data-theme="dark"] body{background:#0a1622;color:var(--ink)}
html[data-theme="dark"] header{background:#050f18;border-bottom:1px solid var(--line)}
html[data-theme="dark"] header .brand{color:#f2f7fb}
html[data-theme="dark"] header .brand small{color:#a2b8c9}
html[data-theme="dark"] header .brand img{filter:none}
html[data-theme="dark"] .links a{color:#e4edf4}
html[data-theme="dark"] .links a:hover,html[data-theme="dark"] .links a.active{background:#17293a;color:#e9c169}
html[data-theme="dark"] .nav-menu{background:#0f2131;border-color:var(--line)}
html[data-theme="dark"] .nav-menu span{background:#e4edf4}
html[data-theme="dark"] header .a11y-btn{border-color:var(--line);background:#0f2131;color:#e4edf4}
html[data-theme="dark"] header .a11y-btn:hover,html[data-theme="dark"] header .a11y-btn[aria-expanded="true"]{background:#1b2f40}

/* The headings and labels that were the deep blue on white. */
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,
html[data-theme="dark"] .paynum,html[data-theme="dark"] .evlist-day,
html[data-theme="dark"] .calendar-month-header,html[data-theme="dark"] .project-gallery-item span,
html[data-theme="dark"] .quote-panel blockquote,html[data-theme="dark"] .a11y-head b,
html[data-theme="dark"] .a11y-close,html[data-theme="dark"] .a11y-seg button,
html[data-theme="dark"] .a11y-reset,html[data-theme="dark"] .give-head h2,
html[data-theme="dark"] .give-close,html[data-theme="dark"] .give-field,
html[data-theme="dark"] .give-status,html[data-theme="dark"] .give-done b,
html[data-theme="dark"] .cal-view-btn,html[data-theme="dark"] .btn.outline-dark,
html[data-theme="dark"] .evlist-chevron:hover{color:#dbe8f2}

/* The golds that carry meaning on white, lifted so they still read. */
html[data-theme="dark"] .read,html[data-theme="dark"] .calendar-table th.sabbath-col,
html[data-theme="dark"] .calendar-table td.sabbath-cell .day-num{color:#e9c169}
html[data-theme="dark"] .belief-no{color:#d8ad55}

/* The paper: cards, the paybox, the calendar's sheets and the dialog. */
html[data-theme="dark"] .card,html[data-theme="dark"] .paybox,
html[data-theme="dark"] .calendar-scroll-wrap,html[data-theme="dark"] .calendar-month-sheet,
html[data-theme="dark"] .calendar-modal,html[data-theme="dark"] .a11y-panel,
html[data-theme="dark"] .give-dialog{background:#12212f;border-color:var(--line)}
html[data-theme="dark"] .calendar-table td{background:#12212f}
html[data-theme="dark"] .calendar-table th{background:#17293a}
html[data-theme="dark"] .calendar-table th.sabbath-col{background:#2a2410}
html[data-theme="dark"] .calendar-table td.outside-month{background:#0d1a26;color:#5b7590}
html[data-theme="dark"] .calendar-table td.sabbath-cell{background:#16242f}
html[data-theme="dark"] .tags span{background:#1b2f40;color:#dbe8f2}
html[data-theme="dark"] .notice{background:#241f11;color:#f2e7cd;border-left-color:var(--gold)}
html[data-theme="dark"] .quote-panel{background:#132334;border-color:#2b4256}
html[data-theme="dark"] .logo-tile{background:#17293a}
html[data-theme="dark"] .person-photo{background:linear-gradient(145deg,#22384a,#16283a);color:#cfe0ec}
html[data-theme="dark"] .project-gallery-item{background:#17293a}
html[data-theme="dark"] .hero-logo img{background:#e8eef3}

/* The panel's own controls and the calendar's, which were white on white. */
html[data-theme="dark"] .a11y-close,html[data-theme="dark"] .give-close,
html[data-theme="dark"] .calendar-modal-close{background:#1d3448}
html[data-theme="dark"] .a11y-close:hover,html[data-theme="dark"] .give-close:hover{background:#29465f}
html[data-theme="dark"] .a11y-seg button,html[data-theme="dark"] .cal-view-btn,
html[data-theme="dark"] .a11y-reset,html[data-theme="dark"] .btn.outline-dark{background:#16283a}
html[data-theme="dark"] .a11y-seg button.active,html[data-theme="dark"] .cal-view-btn.active{background:#2f6a94;color:#fff}
html[data-theme="dark"] .a11y-seg button:hover:not(.active),html[data-theme="dark"] .cal-view-btn:hover:not(.active),
html[data-theme="dark"] .cal-refresh:hover,html[data-theme="dark"] .a11y-reset:hover,
html[data-theme="dark"] .evlist-item:hover,html[data-theme="dark"] .btn.outline-dark:hover{background:#1f3648}
html[data-theme="dark"] .a11y-row input{background:#2c4054;border-color:#3c566b}
html[data-theme="dark"] .a11y-row input::after{background:#e9f0f6}
html[data-theme="dark"] .a11y-row input:checked{background:#3f7fa9;border-color:#3f7fa9}
html[data-theme="dark"] .give-field input,html[data-theme="dark"] .give-field select{background:#0f1e2b;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .give-field input:focus,html[data-theme="dark"] .give-field select:focus{outline-color:#6fa8cf}
html[data-theme="dark"] .give-status.is-error{color:#ff9d94}

/* Dark and high contrast together: black paper, white words, bright gold. */
html[data-theme="dark"][data-high-contrast="true"]{--cream:#0b1824;--ink:#fff;--muted:#dbe6ee;--line:#7a93a8;--gold:#ffd757;--navy:#0a2b45}
html[data-theme="dark"][data-high-contrast="true"] body{background:#000;color:#fff}

/* Three lines the pages used to colour inline, where no theme rule could reach
   them: the gold kicker on white, the calendar's quiet note, the giving page's
   second line. They are classes now, with their dark answers below. */
.kicker-ink{color:#9a7017}
.empty-note{padding:40px;text-align:center;color:#65788a}
.quote-line{margin:12px 0 0;color:#103451;font-weight:800;font-size:19px}
html[data-theme="dark"] .kicker-ink{color:#e9c169}
html[data-theme="dark"] .quote-panel cite{color:var(--muted)}
html[data-theme="dark"] .empty-note{color:var(--muted)}
html[data-theme="dark"] .quote-line{color:#dbe8f2}

/* ---- Chat with the church -----------------------------------------------
   The chat is a page of its own (/contacts/), reached from the navigation:
   write, send. The message lands in the church system, with the pastorate and
   the eldership. */
/* A request can be sent from any page: the floating button opens the same form
   the cards do, and sits where the chat shortcut used to. */
.fab-row{position:fixed;right:18px;bottom:18px;z-index:150;display:flex;justify-content:flex-end;gap:8px}
.req-fab{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:24px;padding:11px 16px;background:var(--navy);color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 5px 20px #0003}
.req-fab:hover{background:#0b2a41}
.req-fab:focus-visible{outline:3px solid #ffcc33;outline-offset:2px}
body.chat-open{overflow:hidden}
.chat-backdrop{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;background:rgba(6,24,40,.62)}
/* The chat is page content, not a dialog: a card in the page's column, as
   tall as the conversation needs. The request and registration forms keep the
   centred dialog. */
.chat-page{max-width:720px;padding:22px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink)}
.chat-page .chat-thread{max-height:none}
@media(max-width:520px){.chat-page{padding:16px}}
.chat-backdrop[hidden]{display:none}
.chat-dialog{width:min(430px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:22px;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 26px 60px rgba(4,20,34,.42)}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.chat-head h2{margin:0;font-size:21px;color:var(--navy)}
.chat-close{width:32px;height:32px;border:0;border-radius:9px;background:#eef2f4;color:var(--navy);font-size:20px;line-height:1;cursor:pointer}
.chat-close:hover{background:#e2e9ee}
.chat-note{margin:0 0 14px;font-size:13.5px;line-height:1.6;color:var(--muted)}
.chat-fine{margin:6px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}
.chat-google{display:flex;justify-content:center;margin:4px 0 14px}
.chat-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.chat-who{margin:0 0 12px;font-size:13px;font-weight:700;color:var(--navy)}
.chat-form{display:grid;gap:10px}
.chat-field{display:grid;gap:6px;font-size:12.5px;font-weight:800;color:var(--navy)}
.chat-field textarea{width:100%;min-height:110px;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:500;resize:vertical}
.chat-field textarea:focus{outline:2px solid var(--navy);outline-offset:1px}
.chat-submit{width:100%;justify-content:center;padding:12px 16px;font-size:14px}
.chat-submit[disabled]{opacity:.65;cursor:default}
.chat-status{margin:2px 0 0;min-height:1px;font-size:13px;font-weight:700;color:var(--navy)}
.chat-status.is-error{color:#a6251f}
.chat-error{margin:0 0 12px;font-size:13px;font-weight:700;color:#a6251f}
.chat-done{display:grid;gap:10px}
.chat-done b{font-size:16px;color:var(--navy)}
.chat-done p{margin:0;font-size:14px;line-height:1.55;color:var(--ink)}
html[data-theme="dark"] .chat-dialog,html[data-theme="dark"] .chat-page{background:#12212f}
html[data-theme="dark"] .chat-head h2,html[data-theme="dark"] .chat-who,html[data-theme="dark"] .chat-field,
html[data-theme="dark"] .chat-status,html[data-theme="dark"] .chat-done b{color:#dbe8f2}
html[data-theme="dark"] .chat-close{background:#1d3448;color:#dbe8f2}
html[data-theme="dark"] .chat-close:hover{background:#29465f}
html[data-theme="dark"] .chat-field textarea{background:#0f1e2b;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .chat-field textarea:focus{outline-color:#6fa8cf}
html[data-theme="dark"] .chat-status.is-error,html[data-theme="dark"] .chat-error{color:#ff9d94}

/* The request form and the chat share one dialog, so their fields are drawn
   the same way: a question, an input, a button. Two side-by-side columns where
   the screen allows it, one column on a phone. */
.chat-field input,.chat-field select{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:500}
.chat-field input:focus,.chat-field select:focus{outline:2px solid var(--navy);outline-offset:1px}
.chat-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:520px){.chat-row{grid-template-columns:1fr}}
/* A conversation reads as a conversation: the visitor's words on the right in
   the church's navy, the church's on the left in the quiet grey. */
.chat-thread{display:grid;gap:8px;align-content:start;max-height:42vh;overflow-y:auto;margin:0 0 12px;padding:2px}
.chat-msg{max-width:90%;padding:9px 12px;border-radius:12px;background:#eef2f4;color:var(--ink);font-size:14px;line-height:1.5}
.chat-msg.mine{justify-self:end;background:var(--navy);color:#fff}
.chat-msg p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-msg-who{display:block;margin-bottom:2px;font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;opacity:.72}
.chat-msg-at{display:block;margin-top:4px;font-size:11px;opacity:.7}
/* A link-shaped button inside a card, for the pages that phrase a request as a
   sentence rather than a block. */
button.read{background:none;border:0;padding:0;font:inherit;font-size:13px;font-weight:800;color:#976b12;text-decoration:underline;cursor:pointer}
html[data-theme="dark"] .chat-field input,html[data-theme="dark"] .chat-field select{background:#0f1e2b;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .chat-field input:focus,html[data-theme="dark"] .chat-field select:focus{outline-color:#6fa8cf}
html[data-theme="dark"] .chat-msg{background:#1d3448;color:#dbe8f2}
html[data-theme="dark"] .chat-msg.mine{background:#2b6b8f;color:#fff}
html[data-theme="dark"] button.read{color:#e0b464}

html[data-theme="dark"] .hero-site-ann #photoTitle{color:#f2f7fb}
html[data-theme="dark"] .hero-site-ann .eyebrow{color:#e9c169}
html[data-theme="dark"] .photo-dots button{background:#ffffff45}
.ministry-leaders-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:22px}
.ministry-leaders-grid .person-card{display:block;padding:0 0 12px;text-align:center;border-radius:12px}
.ministry-leaders-grid .person-photo{width:100%;height:170px;flex:none;border-radius:12px 12px 0 0;font-size:42px}
.ministry-leaders-grid .person-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.ministry-leaders-grid .person-card .card-body{padding:10px 8px 0}
.ministry-leaders-grid .person-card h3{margin:0 0 2px;font-size:14px;line-height:1.25}
.ministry-leaders-grid .person-card .card-body p{margin:0;font-size:12px;line-height:1.3}
@media(max-width:760px){
  .ministry-leaders-grid{grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:10px}
  .ministry-leaders-grid .person-card{display:block;padding:0 0 12px;text-align:center}
  .ministry-leaders-grid .person-photo{width:100%;height:140px;border-radius:12px 12px 0 0;font-size:34px}
  .ministry-leaders-grid .person-card .card-body{padding:8px 6px 0}
  .ministry-leaders-grid .person-card h3{font-size:13px}
  .ministry-leaders-grid .person-card .card-body p{font-size:11px}
}
