/* One theme palette and one responsive rule set for each component. */
:root{color-scheme:light;--navy-950:#040e22;--navy-900:#071c3f;--navy-800:#0b2757;--ink:#0b1c3b;--muted:#465469;--surface:#fff;--surface-alt:#eef3fa;--panel:#fff;--line:#b8c5d7;--accent:#805700;--gold-600:#805700;--gold-300:#f2c463;--link:#123f7d;--input:#fff;--placeholder:#526075;--hero-surface:#eef3fa;--focus:#175cb0;--success:#14592f;--font-display:"Fraunces",Georgia,serif;--font-body:"DM Sans",Arial,sans-serif;--shadow-soft:0 6px 24px rgba(7,22,55,.10)}
:root[data-theme="dark"]{color-scheme:dark;--ink:#edf2fa;--muted:#b9c7da;--surface:#0b1424;--surface-alt:#111e33;--panel:#16263e;--line:#667c9b;--accent:#f2c463;--link:#a9caff;--input:#16263e;--placeholder:#b9c7da;--hero-surface:#040e22;--focus:#9cc4ff;--success:#9ae5b0}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;font-family:var(--font-body);color:var(--ink);line-height:1.65;background:var(--surface)}
[hidden]{display:none!important}a{color:var(--link);text-decoration:underline;text-underline-offset:3px}button,input,textarea,select{font:inherit}button{cursor:pointer}img{max-width:100%;height:auto;display:block}h1,h2,h3{font-family:var(--font-display);line-height:1.2}h2{font-size:clamp(28px,3.4vw,38px)}h3{font-size:21px}p{overflow-wrap:break-word}a,button,input,textarea,select{touch-action:manipulation}:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:8px;left:8px;z-index:200;background:var(--surface);color:var(--ink);padding:12px 20px;transform:translateY(-180%)}.skip-link:focus{transform:none}
.header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:82px;padding:10px 3%;position:sticky;top:0;z-index:50;background:var(--surface);border-bottom:1px solid var(--line)}.header.scrolled{box-shadow:var(--shadow-soft)}
.brand{display:flex;align-items:center;gap:10px;flex:none;color:var(--ink);text-decoration:none}.brand img{width:50px;height:44px;object-fit:contain}.brand span{display:grid;line-height:1.2}.brand b{font-family:var(--font-display);font-size:19px}.brand small{color:var(--accent);font-size:11px;font-weight:700;margin-top:3px}
.header nav{display:flex;gap:13px;align-items:center;font-size:13px;font-weight:700}.header nav a{color:var(--ink);padding:10px 0;text-decoration:none;min-height:44px}.header nav a:hover,.header nav a.active{color:var(--accent);text-decoration:underline}.header nav .gold-link{padding:11px 15px;color:#fff;background:#805700;border-radius:8px}.header nav .gold-link:hover{background:#624200;color:#fff}
.hamb,.theme-toggle{min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-size:13px;font-weight:700;flex:none}.hamb{display:none}.theme-toggle:hover,.hamb:hover{background:var(--surface-alt)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:13px 20px;border:1px solid transparent;border-radius:9px;font-weight:700;font-size:14px;text-align:center;text-decoration:none;line-height:1.4;white-space:normal}.gold{background:#805700;color:#fff}.gold:hover{background:#624200;color:#fff}.light,.outline{background:var(--panel);color:var(--ink);border-color:var(--line)}.light:hover,.outline:hover{background:var(--surface-alt);color:var(--ink)}.whatsapp{background:#176a3c;color:#fff}.whatsapp:hover{background:#10512d;color:#fff}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.section{padding:clamp(42px,6vw,72px) 6%}.pale,.directory,.visit{background:var(--surface-alt)}.heading{text-align:center;max-width:780px;margin:0 auto 32px}.heading.left{text-align:left;margin-left:0}.heading h2{margin:0 0 16px}.heading p:not(.eyebrow){color:var(--muted);margin:0}.eyebrow{color:var(--accent);font-size:12px;font-weight:700;letter-spacing:1.2px;line-height:1.6;margin:0 0 12px}
.hero{display:grid;grid-template-columns:57% 43%;position:relative;isolation:isolate;overflow:hidden;background:var(--hero-surface)}.hero-content{grid-column:1;grid-row:1;position:relative;z-index:2;padding:56px 8% 44px 11%;background:var(--hero-surface)}.hero h1{color:var(--ink);font-size:clamp(36px,4.2vw,60px);line-height:1.1;margin:0;letter-spacing:-.5px}.hero-text{color:var(--muted);font-size:18px;line-height:1.65;margin:24px 0 0}.hero-bishop{grid-column:2;grid-row:1;width:100%;height:100%;min-height:520px;object-fit:cover;object-position:center 17%}.hero-shade{position:absolute;inset:0 0 0 57%;background:linear-gradient(90deg,var(--hero-surface),transparent 45%);pointer-events:none;z-index:1}.hero-beam,.hero-glow{display:none}
.verse{margin-top:30px;padding:18px 20px;background:#0b2757;border:1px solid #6c7e9b;border-radius:14px;color:#fff}.verse small,.verse cite{color:#f2c463;font-size:13px}.verse blockquote{font-family:var(--font-display);font-style:italic;font-size:17px;line-height:1.5;margin:12px 0;color:#fff}
.welcome{display:grid;grid-template-columns:1fr 1.1fr 1fr;gap:36px;align-items:center}.welcome h2{margin:0 0 16px}.welcome p{color:var(--muted)}.text-link{font-weight:700}.bishop-introduction{margin:24px 0}.bishop-introduction h3{color:var(--ink);margin:0 0 6px}.bishop-introduction p{margin:5px 0}.bishop-introduction .bishop-role{color:var(--accent);font-weight:700}.values{border-left:1px solid var(--line);padding-left:24px}.values>div{margin:18px 0}.values span{color:var(--muted);font-size:14px}.values b{display:block;color:var(--ink);font-size:15px}
.fl-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center;max-width:1150px;margin:auto}.fl-photo img{width:100%;border-radius:16px}.fl-body h2{margin:0 0 18px}.fl-body blockquote{margin:0 0 18px;padding-left:18px;border-left:4px solid var(--accent);font-family:var(--font-display);font-size:22px;font-style:italic;color:var(--ink)}.fl-name{display:grid;gap:3px}.fl-name span{color:var(--muted)}
.service-bar{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,4fr);gap:24px;padding:30px 6%;background:#071c3f;color:#fff}.service-bar strong{font-family:var(--font-display);font-size:24px;line-height:1.2}.service-bar em{color:#f2c463}.service-bar #serviceTimes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.service-bar #serviceTimes>div{padding-left:16px;border-left:1px solid #6c7e9b}.service-bar b,.service-bar small{display:block;font-size:14px;color:#fff}.service-bar .place{grid-column:1/-1;text-align:center;color:#e4ebf5;font-size:14px}
.visit-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:32px;align-items:start}.expect{list-style:none;padding:0;margin:0 0 24px;display:grid;gap:14px}.expect li{display:grid;gap:5px;padding:16px;background:var(--surface);border-left:3px solid var(--accent);border-radius:0 10px 10px 0}.expect b{color:var(--ink)}.expect span{color:var(--muted);font-size:15px}.map-frame{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.map-frame iframe{width:100%;height:400px;border:0;display:block}
.beliefs,.contact-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:1150px;margin:auto}.beliefs article,.contact-cards article{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:24px}.beliefs h3,.contact-cards h3{margin:0 0 12px}.beliefs p,.contact-cards p{color:var(--muted);font-size:15px}.contact-cards article{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.contact-cards p{flex:1;margin:0 0 12px}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.tiles article{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}.tile{height:200px;background:var(--panel)}.tile img{width:100%;height:100%;object-fit:cover}.tile-body{padding:20px}.tiles h3{font-family:var(--font-body);font-size:18px;margin:0 0 10px;color:var(--ink)}.tiles p{font-size:15px;margin:0;color:var(--muted)}
.sermon-feature{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;padding:30px;background:#071c3f;color:#fff;border-radius:14px}.sermon-feature h3{color:#fff;margin:0 0 12px;font-size:26px}.sermon-feature p{color:#e4ebf5;margin:0;max-width:780px}.sermon-actions{display:flex;flex-wrap:wrap;gap:12px}
.sub{color:var(--accent);font-family:var(--font-body);font-size:15px;text-transform:uppercase;letter-spacing:1px;margin:28px 0 14px}.weekly{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.weekly article{display:grid;gap:8px;padding:20px;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:10px}.weekly span{color:var(--muted);font-size:15px}.events{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.events article,.event-empty{padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface-alt);color:var(--ink)}.events h3,.event-empty h3{margin:0 0 12px}.events p,.event-empty p{color:var(--muted)}.event-empty{grid-column:1/-1}.event-cta{display:inline-block;font-weight:700;margin-top:24px}
.std-bar{text-align:center;background:#805700;color:#fff;font-size:13px;padding:0}.std-bar button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:44px;background:transparent;color:#fff;border:0;border-radius:0;padding:6px 12px;margin:0;font:inherit;cursor:pointer}.std-bar .std-link{text-decoration:underline;text-underline-offset:3px}.std-bar button:focus-visible{outline:3px solid #fff;outline-offset:-4px}@media(max-width:760px){.std-event-names{display:none}}.featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;scroll-margin-top:100px}.featured-card{background:#071c3f;color:#fff;padding:26px;border-radius:14px;border-top:4px solid #f2c463;scroll-margin-top:100px}.featured-card h3{color:#fff;margin:16px 0;font-size:26px}.featured-card p{color:#e4ebf5}.featured-card dt{color:#f2c463;font-size:13px;text-transform:uppercase}.featured-card dd{margin:3px 0 12px;color:#fff}.badge-save{display:inline-block;background:#f2c463;color:#071c3f;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:700}.featured-card:target{outline:3px solid #f2c463;outline-offset:4px}
.tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-bottom:24px}.tools input{width:300px;max-width:100%}.tools input,.tools select{min-height:46px;padding:10px 14px;background:var(--input);color:var(--ink);border:1px solid var(--line);border-radius:8px;font-size:16px}
.branches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.branch-card{display:grid;grid-template-columns:minmax(0,40%) minmax(0,60%);background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}.branch-photo{padding:20px;display:grid;place-items:center;background:var(--panel);min-height:220px}.branch-photo img{width:180px;height:180px;object-fit:contain}.branch-photo.has-photo img{width:100%;height:auto;max-height:320px;object-fit:contain;border-radius:10px}.branch-body{padding:22px;min-width:0}.branch-number{color:var(--accent);font-size:12px;font-weight:700;letter-spacing:.5px;margin:0}.branch-body h3{color:var(--ink);margin:8px 0 16px;font-size:22px}.branch-body p{font-size:14px;color:var(--muted);margin:10px 0;overflow-wrap:anywhere}.branch-body strong{color:var(--ink)}.branch-details-btn{background:transparent;color:var(--link);border:0;font-weight:700;text-decoration:underline;min-height:44px;padding:8px 0;text-align:left}.note,.no-results{color:var(--muted);font-size:14px;text-align:center;margin-top:24px}.no-results{grid-column:1/-1}
.branch-dialog,.std-dialog{width:min(900px,calc(100% - 32px));max-height:90dvh;overflow:auto;position:fixed;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:30px}.branch-dialog::backdrop,.std-dialog::backdrop{background:rgba(3,12,28,.7)}.modal-close{display:block;margin:0 0 22px auto;min-height:44px;padding:8px 14px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:8px;font-weight:700}.detail-hero{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:28px;align-items:center;padding-bottom:24px;border-bottom:1px solid var(--line)}.detail-photo{display:grid;place-items:center;background:var(--panel);border-radius:12px;padding:14px}.detail-photo img{width:150px;height:150px;object-fit:contain}.detail-photo.has-photo img{width:100%;height:auto;max-height:360px;object-fit:contain}.detail-hero h2{font-size:clamp(25px,4vw,36px);margin:0;overflow-wrap:anywhere}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}.detail-grid>div{border:1px solid var(--line);border-radius:10px;padding:18px;overflow-wrap:anywhere}.detail-grid h3{font-family:var(--font-body);font-size:16px;color:var(--accent);margin:0 0 10px}.detail-grid p{color:var(--muted);font-size:15px}.std-dialog{width:min(780px,calc(100% - 32px))}.std-dialog h2{margin:0 0 24px}.std-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.std-item{border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:10px;padding:20px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}.std-item h3,.std-item p{margin:0}.std-item p{color:var(--muted)}.std-item .btn{margin-top:auto}
.shop-hero{background:#071c3f;color:#fff;padding:56px 6%;display:flex;justify-content:space-between;align-items:center;gap:24px}.shop-hero .eyebrow{color:#f2c463}.shop-hero h1{color:#fff;font-size:clamp(36px,4.5vw,54px);margin:0}.shop-hero h1 span{color:#f2c463}.shop-hero p{color:#e4ebf5;max-width:500px}.shop-hero img{width:190px;height:auto}
.booking-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:32px}.booking-layout form{padding:26px;background:var(--surface-alt);border:1px solid var(--line);border-radius:14px}.booking-layout label{display:block;margin-bottom:18px;font-size:15px;font-weight:700;color:var(--ink)}.booking-layout input,.booking-layout textarea,.booking-layout select{display:block;width:100%;margin-top:7px;padding:12px;background:var(--input);color:var(--ink);border:1px solid var(--line);border-radius:8px;font-size:16px}input::placeholder,textarea::placeholder{color:var(--placeholder);opacity:1}.booking-info{display:grid;gap:18px;align-content:start}.booking-info>div{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:22px}.booking-info span{color:var(--accent);font-weight:700}.booking-info h3{margin:8px 0 12px}.booking-info p,.privacy-note{color:var(--muted);font-size:14px}.success{color:var(--success);font-weight:700;font-size:15px}#enquiryPreview{margin-top:24px}#copyEnquiry{margin-top:10px}
footer{background:#040e22;color:#fff;padding:40px 6% 24px;display:grid;grid-template-columns:1.2fr 1fr 1.5fr 1fr;gap:28px}footer h4{color:#f2c463;font-size:13px;margin:0 0 14px}footer a{display:block;color:#e4ebf5;font-size:14px;margin:9px 0;overflow-wrap:anywhere}.footer-brand{display:flex;gap:12px;align-items:flex-start}.footer-brand img{width:55px;height:auto;flex:none}.footer-brand b{font-family:var(--font-display);font-size:20px;line-height:1.3}.footer-brand small{display:block;color:#f2c463;margin-top:8px}.copy{grid-column:1/-1;color:#c0ccdc;font-size:12px;text-align:center;border-top:1px solid #53617c;padding-top:20px;margin:0}
@media(max-width:1250px){.header{min-height:70px}.hamb{display:block;order:3}.brand{margin-right:auto}.theme-toggle{order:2}.header nav{display:none;position:absolute;top:100%;left:0;right:0;padding:16px 6%;flex-direction:column;align-items:stretch;background:var(--surface);border-bottom:1px solid var(--line);max-height:calc(100dvh - 80px);overflow:auto}.header nav.open{display:flex}.header nav a{font-size:15px}.welcome{grid-template-columns:1fr 1fr}.values{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border:0;padding:0}.hero h1{font-size:clamp(36px,4.3vw,52px)}}
@media(max-width:1000px){.service-bar{grid-template-columns:1fr}.service-bar #serviceTimes{grid-template-columns:repeat(2,minmax(0,1fr))}.weekly{grid-template-columns:repeat(2,minmax(0,1fr))}.branch-card{grid-template-columns:1fr}.beliefs,.contact-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.hero{grid-template-columns:1fr}.hero-content{padding:36px 6%;grid-column:1;grid-row:1}.hero h1{font-size:clamp(34px,7.5vw,46px)}.hero-text{font-size:17px}.hero-bishop{display:none}.hero-shade{display:none}.welcome,.fl-section,.visit-layout,.booking-layout,.branches,.featured,.detail-hero,.detail-grid,.std-grid{grid-template-columns:1fr}.values{display:block}.fl-body blockquote{font-size:20px}.map-frame iframe{height:300px}.branch-dialog,.std-dialog{padding:20px}.detail-photo{max-width:320px}.detail-hero h2{font-size:28px}.shop-hero{align-items:flex-start;flex-direction:column;padding:40px 6%}.shop-hero img{width:150px}footer{grid-template-columns:1fr 1fr}.booking-layout form{padding:20px}.featured-card{padding:22px}.hero .eyebrow{font-size:11px;letter-spacing:.7px}}
@media(max-width:520px){.tiles,.beliefs,.contact-cards,.weekly,.events{grid-template-columns:1fr}.tools input,.tools select{width:100%}.service-bar #serviceTimes{grid-template-columns:1fr}.service-bar #serviceTimes>div{padding-left:0;border-left:0}.sermon-actions{width:100%}.sermon-actions .btn{width:100%}.brand img{width:36px;height:36px}.brand{gap:7px}.brand b{font-size:17px}.brand small{font-size:10px}.header{gap:8px;padding:10px 3%}.theme-toggle,.hamb{font-size:12px;padding:8px}.hero .actions .btn{width:100%}footer{grid-template-columns:1fr}}
@media(max-width:350px){.brand img{display:none}.brand b{font-size:16px}.brand small{font-size:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}

.detail-gallery{margin-top:26px;border-top:1px solid var(--line);padding-top:18px}
.detail-gallery h3{color:var(--ink);margin:0 0 18px}
.detail-gallery figure{margin:0 0 18px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px}
.detail-gallery img{width:100%;height:auto;max-height:560px;object-fit:contain;border-radius:8px}

.church-motto{color:var(--accent);font-family:var(--font-display);font-style:italic;font-size:clamp(19px,2vw,24px);line-height:1.5;margin:18px 0 0}.footer-motto{color:#e4ebf5;font-size:14px;line-height:1.5;margin:12px 0 0}


/* ---- v8.23 polish ---- */
/* About: text on the left, mission on the right, values in one tidy row. */
.welcome{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:44px 72px;align-items:start;max-width:1150px;margin:0 auto}
.welcome h2{margin:0 0 18px}
.about-main .bishop-introduction{margin:28px 0 22px;padding-top:22px;border-top:1px solid var(--line)}
.church-mission{padding:4px 0 4px 40px;border-left:1px solid var(--line);margin:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.church-mission h3{font-family:var(--font-body);font-size:13px;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent);margin:0 0 14px}
.church-mission p{font-family:var(--font-display);font-size:clamp(21px,2.3vw,27px);line-height:1.45;color:var(--ink);margin:0}
.values{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;border:0;border-top:1px solid var(--line);padding:30px 0 0}
.values>div{margin:0}.values b{font-size:16px;margin-bottom:6px}.values span{display:block;font-size:15px;line-height:1.55}
@media(max-width:860px){.welcome{grid-template-columns:1fr;gap:32px}.church-mission{border-left:0;border-top:1px solid var(--line);padding:28px 0 0}.values{grid-template-columns:1fr;gap:20px;padding-top:26px}}

/* Hero banner stays on every screen size. */
@media(max-width:760px){.hero{display:block}.hero-bishop{display:block;width:100%;height:300px;min-height:0;object-position:center 0}.hero-content{padding:28px 6% 32px}.hero-shade{display:none}}

/* Ministries: every tile photo has the same shape; cards stretch to equal height. */
.tile{height:auto;aspect-ratio:16/10;overflow:hidden}
.tile img{display:block}
.tiles article{display:flex;flex-direction:column}.tile-body{flex:1;display:flex;flex-direction:column}
.tile-body .tile-link{margin-top:auto;padding-top:14px}.tile-body .tile-link a{font-size:15px}
.tile.baptism{display:grid;place-items:center;background:linear-gradient(160deg,#0b2757,#1b4b8f)}
.tile.baptism img{object-fit:contain;background:#071c3f}

/* Directory cards: photo on top, empty fields are left out. */
.branch-card{grid-template-columns:1fr;grid-template-rows:auto 1fr}
.branch-photo{padding:0;min-height:0;aspect-ratio:16/9;position:relative;overflow:hidden}
.branch-photo:not(.has-photo) img{position:absolute;inset:22px;width:calc(100% - 44px);height:calc(100% - 44px);object-fit:contain}
.branch-photo.has-photo img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center 18%;border-radius:0}
.branch-body{display:flex;flex-direction:column;padding:22px 24px 18px}.branch-details-btn{margin-top:auto}
.branch-pending{font-size:13px;color:var(--muted);padding:10px 12px;background:var(--surface-alt);border-radius:8px;border:1px dashed var(--line)}
.branch-body p{margin:8px 0}

/* Featured events: buttons line up at the bottom of equal-height cards. */
.featured-card{display:flex;flex-direction:column}.featured-card dl{margin:0 0 20px}.featured-card .actions{margin-top:auto;display:flex;flex-wrap:wrap;gap:12px}

/* Contact section */
.heading-action{margin:22px 0 0}
.contact-cards{align-items:stretch}.contact-cards article .btn{margin-top:auto}.contact-cards p{flex:0 1 auto;margin:0 0 20px}

.badge-save{align-self:flex-start}

.booking-layout>*{min-width:0}.booking-layout input,.booking-layout textarea,.booking-layout select{max-width:100%;box-sizing:border-box}
.booking-info p,.privacy-note{overflow-wrap:anywhere}
@media(max-width:760px){.booking-layout{grid-template-columns:minmax(0,1fr)}}

/* ---- v8.24 footer: one line of links, the mission, the copyright ---- */
footer{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:26px 6% 18px;background:#040e22;color:#e4ebf5}
.footer-main{display:flex;justify-content:space-between;align-items:center;gap:12px 28px;flex-wrap:wrap}
.footer-brand{display:flex;align-items:center;gap:12px}.footer-brand img{width:40px;height:auto;flex:none}
.footer-brand b{display:block;font-family:var(--font-display);font-size:17px;line-height:1.25;color:#fff}
.footer-brand small{display:block;color:#f2c463;font-size:12px;margin:2px 0 0}
.footer-links{display:flex;flex-wrap:wrap;gap:0 22px}
footer a{display:inline-block;margin:0;padding:10px 0;min-height:44px;color:#e4ebf5;font-size:14px;text-decoration:none}
footer a:hover,footer a:focus-visible{text-decoration:underline;text-underline-offset:4px}
.footer-mission{max-width:760px;margin:12px auto 0;padding-top:16px;border-top:1px solid #2a3856;text-align:center;font-family:var(--font-display);font-style:italic;font-size:15px;line-height:1.55;color:#c0ccdc}
footer .copy{width:100%;margin:12px 0 0;padding:0;border:0;text-align:center;font-size:12px;color:#9fb0c8}
@media(max-width:600px){.footer-main{flex-direction:column;align-items:flex-start}.footer-links{gap:0 18px}.footer-mission{text-align:left;margin-left:0}footer .copy{text-align:left}}

/* ---- v8.24 directory: smaller cards, three across on wide screens ---- */
.branches{gap:20px}
.branch-photo{aspect-ratio:16/10}
.branch-body{padding:16px 18px 12px}.branch-body h3{font-size:19px;margin:6px 0 10px}.branch-body p{font-size:13.5px;margin:6px 0}
.branch-number{font-size:11px}.branch-details-btn{min-height:40px;padding:6px 0;font-size:14px}
.branch-pending{font-size:12.5px;padding:8px 10px}
@media(min-width:1100px){.branches{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:1099px){.branches{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.branch-photo{aspect-ratio:16/9}}

.booking-layout fieldset{border:1px solid var(--line);border-radius:10px;padding:18px;margin:0 0 18px;min-width:0}.booking-layout legend{color:var(--accent);font-weight:700;padding:0 6px}.booking-layout fieldset label:last-child{margin-bottom:0}.developer-credit{font-size:12px;color:#b9c7da;margin:0;text-align:center;width:100%}.branch-body small,.detail-grid small{font-size:13px;color:var(--muted)}

/* Dedicated pages, shared navigation and accessible interactions. */
:root{--header-height:84px}html{scroll-padding-top:calc(var(--header-height) + 20px)}
.page-intro{padding:clamp(40px,7vw,80px) 6%;background:var(--hero-surface);border-bottom:1px solid var(--line)}.page-intro h1{font-size:clamp(34px,5vw,58px);max-width:920px;margin:0 0 22px}.page-intro>p:last-child{max-width:700px;color:var(--muted);font-size:18px;margin:0}.page-intro .eyebrow{color:var(--accent)}
.section>.heading{position:sticky;top:var(--header-height);z-index:12;background:var(--surface);padding:14px 18px;border-bottom:1px solid var(--line);border-radius:10px;max-width:100%}.section.pale>.heading,.section.directory>.heading,.section.visit>.heading{background:var(--surface-alt)}.section>.heading h2{margin-bottom:8px}.section>.heading .eyebrow{margin-bottom:6px}.section>.heading p{font-size:15px}.section{scroll-margin-top:var(--header-height)}
.explore-grid,.message-grid,.media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.explore-card,.message-grid article,.empty-panel{padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.explore-card{color:var(--ink);text-decoration:none;transition:transform .2s,border-color .2s}.explore-card:hover{transform:translateY(-4px);border-color:var(--accent)}.explore-card h3{margin:0 0 12px}.explore-card p,.message-grid p,.empty-panel p{color:var(--muted)}.explore-card span{color:var(--link);font-weight:700;text-decoration:underline}.leader-feature{display:grid;grid-template-columns:minmax(200px,360px) minmax(0,1fr);align-items:center;gap:40px;max-width:1050px;margin:auto}.leader-feature>img{width:100%;max-height:450px;object-fit:contain;border-radius:14px}.coming-note{font-weight:700;color:var(--accent)!important}.empty-panel{text-align:center;max-width:850px;margin:24px auto}.gallery-logo{width:150px;margin:0 auto 24px}.ministry-join{padding:0 20px 20px;margin:0}.tiles article{display:flex;flex-direction:column}.tiles .tile{flex:none}.tiles .tile-body{flex:1}.tiles .ministry-join{flex:none}#ministryCards{scroll-margin-top:calc(var(--header-height) + 150px)}
.media-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel)}.media-card>div:last-child{padding:22px}.media-card h2{font-family:var(--font-body);font-size:20px;line-height:1.4}.video-cover{min-height:170px;display:grid;justify-items:center;align-content:center;gap:12px;background:#071c3f;color:#f2c463}.video-cover img{width:110px}.video-cover span{font-size:13px;font-weight:700}.video-dialog,.gallery-dialog{width:min(1000px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);padding:24px}.video-dialog::backdrop,.gallery-dialog::backdrop{background:rgba(3,12,28,.85)}.video-dialog h2{font-size:24px}.video-frame{aspect-ratio:16/9}.video-frame iframe{border:0;display:block;width:100%;height:100%}.gallery-filters{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 24px}.gallery-filters [aria-pressed=true]{outline:2px solid var(--accent)}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.gallery-item{background:var(--panel);border:1px solid var(--line);color:var(--ink);border-radius:12px;overflow:hidden;padding:0;text-align:left}.gallery-item img{width:100%;aspect-ratio:4/3;object-fit:cover}.gallery-item span{display:block;padding:14px}.gallery-dialog>img{max-height:65dvh;max-width:100%;margin:auto;object-fit:contain}
.reader-controls{display:flex;align-items:end;gap:18px;flex-wrap:wrap;background:var(--panel);padding:24px;border:1px solid var(--line);border-radius:14px}.reader-controls label{display:grid;gap:8px;font-weight:700;flex:1;min-width:150px}.reader-controls select{width:100%;min-height:46px;padding:10px;background:var(--input);color:var(--ink);border:1px solid var(--line);border-radius:8px}.bible-frame{margin-top:24px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.bible-frame iframe{width:100%;height:75vh;min-height:480px;display:block;border:0}.header nav a[aria-current=page]{text-decoration:underline;text-underline-offset:5px}
.welcome-intro{display:none}.intro-active .welcome-intro{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#fff;color:#071c3f;animation:welcome-background 2.6s ease both;pointer-events:auto}.welcome-intro>div{text-align:center;padding:30px}.welcome-intro img{width:220px;height:auto;margin:auto;animation:welcome-logo 2.6s ease both}.welcome-intro p{font-size:16px;font-weight:700;max-width:420px;margin:24px auto}.welcome-intro button{min-height:44px;padding:8px 20px;background:#fff;color:#071c3f;border:1px solid #879bb9;border-radius:8px}.intro-active body>header,.intro-active body>main,.intro-active body>footer{visibility:hidden}.intro-active .welcome-intro p{animation:welcome-text 2.6s ease both}
@keyframes welcome-background{0%,20%{background:#fff}70%,88%{background:#071c3f;opacity:1}100%{background:#071c3f;opacity:0;visibility:hidden}}@keyframes welcome-logo{0%{opacity:0;transform:scale(.9)}25%,75%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.03)}}@keyframes welcome-text{0%,25%{color:#071c3f}65%,100%{color:#fff}}
@media(max-width:1280px){.hamb{display:block}.header nav{display:none;position:absolute;left:3%;right:3%;top:100%;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px;max-height:calc(100dvh - var(--header-height) - 16px);overflow:auto;box-shadow:var(--shadow-soft)}.header nav.open{display:flex;flex-direction:column;align-items:stretch}.header nav a{padding:10px 12px}.header{justify-content:flex-start}.header .hamb{margin-left:auto}.header .theme-toggle{margin-left:0}}
@media(max-width:900px){.explore-grid,.message-grid,.media-grid,.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.explore-grid,.message-grid,.media-grid,.gallery-grid,.leader-feature{grid-template-columns:1fr}.section>.heading{padding:10px 12px}.section>.heading h2{font-size:25px}.section>.heading p{font-size:13px}.section>.heading .eyebrow{font-size:10px}.reader-controls{padding:16px}.reader-controls label{min-width:100%;}.reader-controls .btn{width:100%}.video-dialog,.gallery-dialog{padding:16px}.brand b{font-size:16px}.brand small{font-size:9px}.header{gap:7px}.header .theme-toggle,.header .hamb{padding:8px}.brand img{width:36px}.bible-frame iframe{height:70vh}.welcome-intro img{width:180px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.explore-card{transition:none}.welcome-intro,.welcome-intro img,.welcome-intro p{animation:none!important}.intro-active .welcome-intro{display:none}.intro-active body>header,.intro-active body>main,.intro-active body>footer{visibility:visible}}


/* ---- v8.30 layout and mobile refinement ---- */
/* Section headings should flow with the page, never stick over content. */
.section>.heading {
  position: static;
  top: auto;
  z-index: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0 0 30px;
}
.section.pale>.heading,
.section.directory>.heading,
.section.visit>.heading { background: transparent; }
.section>.heading h2 { margin: 0 0 10px; }
.section>.heading p { font-size: 16px; }

/* Tighter, consistent page introductions prevent oversized blank bands. */
.page-intro {
  padding: clamp(30px, 4.5vw, 54px) clamp(20px, 6vw, 6%);
}
.page-intro .eyebrow { margin: 0 0 10px; }
.page-intro h1 {
  margin: 0 0 14px;
  max-width: 900px;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.12;
}
.page-intro>p:last-child { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; }

/* Icon-only theme control: clean drawn sun/moon, not an emoji. */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 8px;
  color: var(--ink);
}
.theme-icon, .theme-icon svg { display: block; width: 22px; height: 22px; }
.theme-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Sermon thumbnails use a consistent 16:9 frame and restrained play overlay. */
.media-grid { align-items: stretch; }
.media-card { display: flex; flex-direction: column; min-width: 0; }
.video-cover {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #071c3f;
}
.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.media-card:hover .video-cover img { transform: scale(1.025); }
.video-cover img.thumbnail-fallback { object-fit: contain; padding: 16px; }
.video-play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  background: rgba(4,14,34,.78);
  color: #fff;
}
.video-play-mark svg { width: 23px; height: 23px; fill: currentColor; }
.media-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.media-card h2 { margin: 0 0 10px; }
.media-card p { color: var(--muted); margin: 0 0 18px; }
.media-card .btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .header { min-height: 68px; padding: 8px 4%; gap: 8px; }
  .brand { min-width: 0; }
  .brand img { width: 38px; height: 38px; }
  .brand b { font-size: 16px; }
  .brand small { font-size: 9px; }
  .header .hamb { min-height: 42px; padding: 8px 10px; }
  .header .theme-toggle { width: 42px; min-width: 42px; height: 42px; }
  .header nav { left: 3%; right: 3%; top: calc(100% + 1px); padding: 12px; max-height: calc(100dvh - 76px); border: 1px solid var(--line); border-radius: 0 0 12px 12px; }
  .header nav a { min-height: 46px; padding: 11px 12px; font-size: 15px; }
  .page-intro { padding: 30px 6% 32px; }
  .page-intro h1 { font-size: clamp(30px, 8vw, 42px); margin-bottom: 10px; }
  .page-intro>p:last-child { font-size: 15px; }
  .section { padding: 38px 5%; }
  .section>.heading { margin-bottom: 22px; }
  .section>.heading h2 { font-size: 25px; }
  .welcome { gap: 24px; }
  .values { gap: 16px; padding-top: 22px; }
  .fl-section, .visit-layout, .booking-layout, .leader-feature { gap: 22px; }
  .map-frame iframe { height: 280px; }
  .media-grid { grid-template-columns: 1fr; gap: 18px; }
  .media-card-body { padding: 18px; }
  .media-card .btn { width: 100%; }
  .branches { grid-template-columns: 1fr; }
  .branch-body { padding: 18px; }
  .reader-controls { gap: 12px; }
  .footer-main { align-items: flex-start; }
  footer { padding: 28px 5% 20px; }
}
@media (min-width: 761px) and (max-width: 1050px) {
  .media-grid, .explore-grid, .message-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .header nav { gap: 8px; font-size: 12px; }
}
@media (max-width: 380px) {
  .brand small { display: none; }
  .brand b { font-size: 15px; }
  .hamb { font-size: 11px; }
  .page-intro h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-cover img { transition: none; }
}

/* ---- v9.1.0 approved spacing changes ---- */
.page-intro{padding:26px 6%}
.page-intro .eyebrow{margin-bottom:4px}
.page-intro h1{font-size:clamp(30px,3.6vw,38px);margin-bottom:6px}
.page-intro>p:last-child{font-size:15px}
.section{padding-top:44px;padding-bottom:44px}
.section.join-top{padding-top:4px}
.contact-email{text-align:center;margin-top:18px}
.contact-email p{margin:0}
footer{padding-top:18px;padding-bottom:14px}
.footer-main{padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.15)}
@media(max-width:760px){
  .page-intro{padding:16px 6% 18px}
  .page-intro h1{font-size:27px}
  .page-intro>p:last-child{font-size:14px}
  .section{padding-top:28px;padding-bottom:28px}
  .section.join-top{padding-top:4px}
}
@media(max-width:600px){
  .explore-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .explore-card{padding:14px;min-width:0;min-height:0}
  .explore-card h2,.explore-card h3{font-size:16px;overflow-wrap:anywhere}
  .explore-card p{font-size:13px}
}

/* ---- v9.1.0 Bible app download ---- */
.app-download{display:grid;grid-template-columns:auto minmax(0,1fr);gap:24px;align-items:start;max-width:860px;margin:30px auto 0;padding:24px;background:var(--surface-alt);border:1px solid var(--line);border-top:4px solid var(--accent);border-radius:14px}
.app-download>img{width:112px;height:112px;border-radius:24px}
.app-download h2{margin:0 0 8px;font-size:26px}.app-download p{color:var(--muted);margin:0 0 14px}
.app-download .app-meta{font-size:13px;margin:10px 0}
.app-download summary{cursor:pointer;font-weight:700;min-height:44px;padding-top:10px}
.app-download li{margin-bottom:6px;color:var(--muted)}
.bible-section .privacy-note{max-width:860px;margin-left:auto;margin-right:auto}
@media(max-width:600px){.app-download{grid-template-columns:1fr;padding:18px;gap:14px}.app-download>img{width:80px;height:80px}.app-download .btn{width:100%;text-align:center}}
