/* ABC Ministries brand: colours taken from the logo. Mobile first; larger screens are added with min-width. */
:root {
    --black: #030716; --night: #050d2e; --navy: #08175a; --royal: #0b35c9; --electric: #0a7dff; --sky: #45b4ff;
    --silver: #d9e1ee; --mist: #f3f6fc; --paper: #fff; --ink: #161c30; --muted: #566079; --line: #e1e7f1;
    --head: Montserrat, "Segoe UI", sans-serif; --body: Inter, system-ui, sans-serif;
    --r: 16px; --shadow: 0 10px 30px rgba(8, 23, 90, .09); --bar: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html.nav-open { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--body); overflow-wrap: anywhere; }
img, video, iframe { max-width: 100%; }
img, video { height: auto; }
a { color: var(--royal); text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); line-height: 1.18; color: var(--navy); margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 8vw, 3.6rem); font-weight: 800; } h2 { font-size: clamp(1.45rem, 5vw, 2.2rem); } h3 { font-size: 1.15rem; } h4 { font-size: 1.05rem; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.icon { flex: none; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.narrow-left { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .9rem; }
.lead { font-size: 1.15rem; }
.quote { font-family: var(--head); font-weight: 600; font-size: 1.2rem; line-height: 1.4; color: var(--navy); }
.eyebrow { font: 700 .75rem var(--head); text-transform: uppercase; letter-spacing: .16em; color: var(--electric); margin: 0 0 .8em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 12px 24px; border-radius: 12px; border: 1.5px solid var(--royal); background: linear-gradient(135deg, var(--royal), var(--electric)); color: #fff; font: 700 .92rem var(--head); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { box-shadow: 0 8px 22px rgba(11, 53, 201, .3); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--royal); }
.btn.ghost:hover { background: var(--mist); box-shadow: none; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.outline:hover { background: rgba(255,255,255,.1); }
.btn.small { min-height: 44px; padding: 6px 16px; font-size: .82rem; white-space: nowrap; }
.btn[href=""] { opacity: .45; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions.stack > .btn { flex: 1 1 100%; }
.store { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.store img { display: block; height: 50px; width: auto; }

/* Header: white, because the logo has black lettering */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--royal), var(--sky), var(--royal), transparent); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand img { display: block; height: 52px; width: auto; }
.header-tools { display: flex; gap: 6px; }
.icon-btn, .menu-toggle { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--mist); color: var(--navy); cursor: pointer; }
.menu-toggle { display: block; padding: 13px 12px; }
.menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy); margin: 4px 0; }
.main-nav { display: none; position: fixed; inset: 69px 0 0; z-index: 60; background: #fff; padding: 12px 20px 40px; overflow-y: auto; overscroll-behavior: contain; }
.main-nav.open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li { border-bottom: 1px solid var(--line); }
.main-nav a { display: flex; align-items: center; min-height: 54px; padding: 8px 52px 8px 4px; color: var(--navy); font: 600 1.02rem var(--head); text-decoration: none; }
.sub-toggle { position: absolute; right: 0; top: 4px; width: 46px; height: 46px; background: var(--mist); border: 0; border-radius: 10px; cursor: pointer; }
.sub-toggle::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--royal); }
.sub-open > .sub-toggle::after { content: "–"; }
.sub { display: none; padding: 0 0 10px 14px !important; }
.sub-open > .sub { display: block; }
.sub a { min-height: 46px; font: 500 .96rem var(--body); color: var(--ink); }
.nav-search { border: 0 !important; padding-top: 16px; }
.nav-search input, .list-filter { width: 100%; min-height: 50px; padding: 8px 14px; border: 1px solid var(--silver); border-radius: 12px; font: inherit; background: #fff; }
.list-filter { margin-bottom: 14px; }

/* Bottom tab bar on phones */
.tab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: calc(var(--bar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--night); }
.tab-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #cdd9f3; font: 600 .68rem var(--head); text-decoration: none; }
.tab-bar a:hover, .tab-bar a:focus-visible { color: #fff; }
.tab-bar .icon { width: 22px; height: 22px; color: var(--sky); }
body:has(.tab-bar) { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }

/* Signature: the logo's target rings, on deep blue */
.hero, .page-head, .band.dark, .band.seed, .site-footer { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 100% 0, var(--royal) 0, var(--navy) 45%, var(--night) 100%); }
.hero::before, .page-head::before, .band.seed::before { content: ""; position: absolute; width: 640px; height: 640px; right: -240px; top: -240px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 38px, rgba(255,255,255,.07) 38px 40px); pointer-events: none; }
.hero-inner { position: relative; display: grid; gap: 8px; padding-block: 40px 0; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .eyebrow, .page-head .eyebrow { color: var(--sky); }
.beam { display: block; height: 3px; max-width: 220px; margin-bottom: 16px; background: linear-gradient(90deg, var(--sky), var(--electric), transparent); }
.hero-sub { font: 600 1.1rem/1.4 var(--head); margin: 0; color: #e4edff; }
.hero-mark { position: relative; margin: 20px -20px 0; padding: 26px 24px 30px; background: linear-gradient(180deg, #fff, var(--mist)); border-radius: 28px 28px 0 0; }
.hero-mark img { display: block; width: min(100%, 340px); margin-inline: auto; }
.welcome { padding-block: 40px; background: var(--mist); }
.welcome .quote { margin-bottom: 0; }
.page-head { padding-block: 34px; }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; margin: 0; font-size: clamp(1.6rem, 6.5vw, 2.8rem); }
.page-head p { margin: 8px 0 0; color: #cfdcf5; }

.band { padding-block: 44px; }
.band.pt0 { padding-top: 44px; }
.band.tint { background: var(--mist); }
.band.seed .wrap { position: relative; }
.invert h2, .invert h3, .invert .lead { color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.photo { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }

.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 124px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--royal); transition: transform .15s; }
.tile:hover { transform: translateY(-2px); }
.tile .icon { width: 30px; height: 30px; }
.tile h3 { margin: 0; font-size: .96rem; }

.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-block: 20px; }
.book-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 58%; gap: 14px; margin: 22px -20px 0; padding: 4px 20px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.book-rail > * { scroll-snap-align: center; }
.book-card h3 { font-size: .95rem; margin: 12px 0 2px; } .book-card h3 a { color: var(--navy); text-decoration: none; }
.book-card p { margin: 0; }
.cover { display: block; background: #fff; border-radius: 12px; aspect-ratio: 3/4; overflow: hidden; box-shadow: var(--shadow); }
.cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.price { font-weight: 700; color: var(--navy); } .price.big { font: 800 1.7rem var(--head); }
.book-detail > img { width: min(70%, 300px); margin-inline: auto; border-radius: 12px; box-shadow: 0 18px 40px rgba(8,23,90,.2); }

.audio-list, .doc-list, .post-list, .res-list { list-style: none; margin: 16px 0; padding: 0; }
.audio-row { display: grid; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.audio-meta strong, .doc-list strong, .res-list strong { display: block; line-height: 1.35; font-weight: 600; color: var(--navy); }
.audio-row audio, .prose audio { width: 100%; display: block; margin: 8px 0; }
.audio-row .btn { justify-self: start; }
.doc-list li, .res-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.res-list li[hidden] { display: none; }
.doc-list span, .res-list span { display: block; }
.post-list li { padding: 16px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.post-list .muted { display: block; margin-top: 4px; }
.post-list a { font-weight: 600; color: var(--navy); text-decoration: none; }
.filters { display: grid; gap: 10px; margin-block: 16px; }
.filters input, .filters select { width: 100%; min-height: 50px; padding: 8px 14px; border: 1px solid var(--silver); border-radius: 12px; font: inherit; background: #fff; min-width: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; font-size: .9rem; }

/* Imported page content */
.prose { max-width: 100%; min-width: 0; } .prose > :first-child { margin-top: 0; }
article.prose > h1:first-child { font: 700 .75rem var(--head); text-transform: uppercase; letter-spacing: .16em; color: var(--electric); margin-bottom: 1em; }
.prose img { border-radius: 12px; }
.callout { padding: 16px 18px; margin-block: 18px; background: var(--mist); border-left: 4px solid var(--electric); border-radius: 0 12px 12px 0; font-weight: 500; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; } .prose td, .prose th { border: 1px solid var(--line); padding: 8px; }
.prose details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 16px; background: #fff; }
.prose summary, .toc summary { cursor: pointer; font: 700 .92rem var(--head); color: var(--navy); padding: 15px 0; }
.prose details li { margin-bottom: 8px; }
.prose figure { margin: 0 0 1em; } .prose iframe { width: 100%; border: 0; border-radius: 12px; }
.prose iframe[src*="youtube"] { aspect-ratio: 16/9; }
.prose iframe[src*="/abc"] { height: 78vh; background: var(--mist); }
.prose iframe[src^="/bible"] { height: 85vh; background: var(--mist); }
.prose video { display: block; width: 100%; margin-bottom: 14px; border-radius: 12px; background: var(--black); }
.prose > .btn { margin: 0 8px 10px 0; }
.btn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; margin-block: 16px; }
.link-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 18px; }
.link-card { display: flex; flex-direction: column; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.link-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.link-card h4 { margin: 12px 0 4px; font-size: .92rem; } .link-card h4 a { color: var(--navy); text-decoration: none; }
.link-card p { margin: 0; font-size: .85rem; color: var(--muted); }
.with-toc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.toc { padding: 0 16px; background: var(--mist); border-radius: 12px; font-size: .92rem; }
.toc ol { padding-left: 20px; margin: 0 0 14px; } .toc li { margin-bottom: 8px; }

.form-card { padding: 22px 18px; background: var(--mist); border-radius: var(--r); margin-top: 24px; }
.split > .form-card { margin-top: 0; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.fields label { display: block; font-weight: 500; font-size: .92rem; } .fields .full { grid-column: 1 / -1; }
.fields input, .fields textarea { display: block; width: 100%; min-height: 50px; margin-top: 5px; padding: 11px 13px; border: 1px solid #b9c3d6; border-radius: 12px; font: 16px var(--body); background: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; font-size: .9rem; } .consent input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.form-card .btn[type=submit] { width: 100%; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 10px 14px; border-radius: 10px; } .notice.ok { background: #e4f6ea; color: #0f5a2a; } .notice.err { background: #fde8e8; color: #8d1414; }
.map { display: block; width: 100%; height: 300px; border: 0; border-radius: var(--r); margin-top: 20px; }
.login-card { max-width: 440px; }

.site-footer { font-size: .94rem; padding-top: 44px; color: #d6e0f5; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
.footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
.footer-brand img { display: block; width: 130px; height: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0; }
.footer-name { font: 800 1.05rem var(--head); color: #fff; }
.site-footer h2 { font: 700 .75rem var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin-bottom: 10px; }
.site-footer a { color: #e4ecfb; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 34px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: .84rem; }
.disclaimer { width: 100%; max-width: 680px; max-height: 86vh; margin: auto auto 0; border: 0; border-radius: 22px 22px 0 0; padding: 26px 20px; }
.disclaimer h2 { font-size: 1.3rem; }
.disclaimer .btn { width: 100%; }
.disclaimer::backdrop { background: rgba(3, 7, 22, .7); }

@media (min-width: 560px) {
    .tile-grid, .link-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .book-rail { grid-auto-columns: 32%; }
    .fields { grid-template-columns: 1fr 1fr; } .fields.one { grid-template-columns: 1fr; }
    .actions.stack > .btn { flex: 0 1 auto; }
    .doc-list li, .res-list li { flex-direction: row; justify-content: space-between; align-items: center; }
    .filters { grid-template-columns: 2fr 1fr 1fr auto; }
    .filters:has(> :nth-child(2):last-child) { grid-template-columns: 1fr auto; }
}
@media (min-width: 900px) {
    body { font-size: 17px; }
    .band, .band.pt0 { padding-block: 84px; }
    .page-head { padding-block: 60px; }
    .split { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
    .split.flip > :first-child { order: 2; }
    .split.flip { grid-template-columns: 1.25fr 1fr; }
    .split.top { grid-template-columns: 1fr 1.1fr; align-items: start; }
    .book-detail { grid-template-columns: 320px 1fr; align-items: start; } .book-detail > img { width: 100%; }
    .photo { aspect-ratio: 1; }
    .hero-inner { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-block: 80px; }
    .hero-mark { margin: 0; padding: 40px; border-radius: 28px; }
    .hero-mark img { width: 100%; }
    .tile-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
    .tile { padding: 22px; min-height: 150px; }
    .link-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .book-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px; }
    .book-rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: 0; padding-inline: 0; overflow: visible; gap: 26px; }
    .audio-row { grid-template-columns: 1fr minmax(240px, 340px) auto; align-items: center; }
    .audio-row:has(> a:nth-child(2)) { grid-template-columns: 1fr auto; }
    .with-toc { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
    .toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
    .form-card { padding: 30px; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; }
    .footer-grid > :first-child, .footer-grid > :last-child { grid-column: auto; }
    .disclaimer { margin: auto; border-radius: 18px; padding: 32px; }
    .tab-bar { display: none; }
    body:has(.tab-bar) { padding-bottom: 0; }
}
@media (min-width: 1080px) {
    .header-row { min-height: 84px; }
    .brand img { height: 64px; }
    .header-tools { display: none; }
    .main-nav { display: block; position: static; padding: 0; overflow: visible; background: none; }
    .main-nav > ul { display: flex; align-items: center; gap: 2px; }
    .main-nav > ul > li { border: 0; }
    .main-nav a { min-height: 0; padding: 10px 11px; font: 600 .84rem var(--head); border-radius: 8px; }
    .main-nav a:hover { color: var(--royal); background: var(--mist); }
    .sub-toggle { display: none; }
    .sub { position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px !important; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
    .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
    .sub a { font: 500 .9rem var(--body); }
    .nav-search { padding: 0 0 0 6px; }
    .nav-search input { width: 120px; min-height: 40px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }


/* Home and contact, second pass */
.hero { background: linear-gradient(115deg, #061a63 0%, var(--royal) 58%, #1496ee 100%); }
.hero::before { opacity: 1; }
.hero-inner { padding-block: 40px 28px; }
.hero-mark { display: block; width: min(88%, 340px); height: auto; margin: 22px auto 0; filter: drop-shadow(0 18px 30px rgba(3, 7, 22, .35)); }
.welcome { background: #fff; padding-block: 40px 0; }
.res-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.res-card { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--night); box-shadow: var(--shadow); text-decoration: none; }
.res-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.res-card:hover img { transform: scale(1.05); }
.res-card-label { position: absolute; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(3, 7, 22, .92)); color: #fff; font: 700 .92rem/1.25 var(--head); }
.res-card-label .icon { width: 20px; height: 20px; color: var(--sky); }
.features { display: grid; gap: 12px; }
.feature { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.feature img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; }
.feature strong { display: block; margin-bottom: 3px; color: var(--navy); font: 700 .98rem/1.25 var(--head); }
.feature em { display: block; margin-top: 5px; color: var(--royal); font: 700 .8rem var(--head); }
.band.seed { padding-block: 44px; }
.seed .lead { color: #e4edff; }
.app-strip h2 { margin-bottom: .3em; }
.app-strip p { margin: 0; color: var(--muted); }
.contact-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-head h2 { margin: 0; }
.contact-cards { display: grid; gap: 12px; }
.contact-cards p { margin: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); line-height: 1.9; }
.contact-cards a { font-weight: 600; text-decoration: none; }
.contact-page { margin-top: 32px; }
.contact-page .form-card { border: 0; }
@media (min-width: 560px) {
    .res-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .hero-inner { grid-template-columns: 1.15fr 1fr; padding-block: 90px; }
    .hero-mark { width: 100%; margin: 0; }
    .welcome { padding-block: 64px 0; }
    .res-cards { gap: 18px; }
    .res-cards:has(> :nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .features { grid-template-columns: 1fr 1fr; gap: 18px; }
    .feature { grid-template-columns: 120px minmax(0, 1fr); padding: 16px; font-size: .95rem; }
    .feature img { width: 120px; height: 120px; }
    .app-strip { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
    .app-strip .store { margin: 0; flex: none; }
    .band.seed { padding-block: 72px; }
}


/* Hero mark floats directly on the gradient */
.hero-mark { padding: 0; background: none; border-radius: 0; }

/* Every clickable card responds to hover, focus and touch */
.res-card, .feature, .tile, .link-card, .book-card, .post-list li, .doc-list li, .res-list li { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.res-card:hover, .feature:hover, .tile:hover, .link-card:hover, .book-card:hover .cover, .post-list li:hover,
.res-card:focus-visible, .feature:focus-visible, .tile:focus-visible, .res-card:active, .feature:active, .tile:active, .link-card:active {
    transform: translateY(-5px); box-shadow: 0 18px 38px rgba(8, 23, 90, .22);
}
.link-card:hover, .post-list li:hover, .feature:hover, .tile:hover { border-color: var(--electric); outline: 1px solid var(--electric); }
.doc-list li:hover, .res-list li:hover { border-color: var(--electric); box-shadow: var(--shadow); }
.book-card .cover { transition: transform .18s ease, box-shadow .18s ease; }
.book-card:hover h3 a, .link-card:hover h4 a, .post-list li:hover a { color: var(--royal); }
/* The whole card is the link, not only its title */
.link-card, .post-list li, .book-card { position: relative; cursor: pointer; }
.link-card h4 a::after, .post-list li > a::after, .book-card h3 a::after { content: ""; position: absolute; inset: 0; }


/* Sectioned pages: ABC Ministries and Bishopric */
.prose h1 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); }
.page-intro { max-width: 820px; margin: 0 auto 32px; }
.page-intro h2 { text-align: center; }
.page-intro > p { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.6; color: var(--navy); text-align: center; }
.page-intro > p:first-child { font-family: var(--head); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.info-cards { display: grid; gap: 16px; }
.info-card { padding: 24px 20px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--electric); border-radius: var(--r); box-shadow: var(--shadow); }
.info-card h2 { font-size: 1.25rem; margin-bottom: .7em; }
.info-card p { margin: 0 0 12px; }
.info-card a { font-weight: 600; text-decoration: none; }
.info-card strong { color: var(--navy); }
.info-note { padding: 10px 12px; margin: 14px 0 0 !important; background: var(--mist); border-radius: 10px; font-size: .9rem; color: var(--muted); }
.info-table { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; margin: 0; }
.info-table dt, .info-table dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); }
.info-table dt:first-of-type, .info-table dd:first-of-type { border-top: 0; }
.info-table dt { color: var(--muted); font-size: .9rem; }
.info-table dd { font-weight: 600; color: var(--navy); }
.db-banner { position: relative; display: grid; overflow: hidden; margin-block: 8px 44px; border-radius: 20px; color: #fff; text-decoration: none; background: linear-gradient(115deg, #061a63, var(--royal) 60%, #1496ee); box-shadow: 0 18px 40px rgba(8, 23, 90, .25); transition: transform .18s ease, box-shadow .18s ease; }
.db-banner:hover, .db-banner:focus-visible { transform: translateY(-5px); box-shadow: 0 26px 52px rgba(8, 23, 90, .35); }
.db-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.prose .db-photos img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 0; }
.db-text { padding: 28px 22px; }
.db-text > * { display: block; }
.db-text strong { margin-bottom: 8px; font: 800 clamp(1.6rem, 6vw, 2.5rem)/1.15 var(--head); }
.db-text span { color: #e4edff; font-size: 1.05rem; }
.db-text em { display: inline-block; margin-top: 18px; padding: 13px 24px; background: #fff; border-radius: 12px; color: var(--navy); font: 700 .92rem var(--head); }
.doc-cards { display: grid; gap: 14px; margin-top: 8px; }
.doc-card { position: relative; display: flex; flex-direction: column; padding: 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--electric); border-radius: var(--r); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.doc-card:hover, .doc-card:focus-within { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(8, 23, 90, .22); }
.doc-card h3 { font-size: 1rem; line-height: 1.3; letter-spacing: .01em; }
.doc-card p { font-size: .94rem; color: var(--muted); }
.doc-card .btn { align-self: flex-start; margin-top: auto; }
.doc-card .btn::after { content: ""; position: absolute; inset: 0; }
@media (min-width: 700px) {
    .info-cards, .doc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .info-card { padding: 30px; }
}
@media (min-width: 1000px) {
    .doc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .db-banner { grid-template-columns: 1.1fr 1fr; align-items: center; }
    .db-text { padding: 44px; }
}


/* The footer always reaches the bottom of the screen, even on short pages */
body:has(.site-footer) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body:has(.site-footer) > main { flex: 1 0 auto; min-width: 0; }
body:has(.site-footer) > .site-footer { flex: none; }

/* Cards load one after another */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: card-in .65s cubic-bezier(.2, .8, .25, 1) backwards; }
@keyframes card-in { from { opacity: 0; transform: translateY(34px) scale(.95); } to { opacity: 1; transform: none; } }
@media print { .reveal { opacity: 1; } }

/* Stronger hover on everything clickable */
.res-card, .feature, .tile, .link-card, .post-list li, .doc-card, .db-banner, .btn-grid .btn, .video-card { transition: transform .22s cubic-bezier(.2, .8, .25, 1), box-shadow .22s ease, border-color .22s ease, filter .22s ease; }
.res-card:hover, .feature:hover, .tile:hover, .link-card:hover, .post-list li:hover, .doc-card:hover, .doc-card:focus-within, .db-banner:hover, .video-card:hover, .book-card:hover .cover {
    transform: translateY(-9px) scale(1.02); box-shadow: 0 26px 50px rgba(8, 23, 90, .3);
}
.btn-grid .btn { min-height: 76px; border-radius: var(--r); box-shadow: var(--shadow); }
.btn-grid .btn:hover, .btn-grid .btn:focus-visible { transform: translateY(-9px) scale(1.04); box-shadow: 0 24px 46px rgba(11, 53, 201, .45); filter: brightness(1.14); }
.btn-grid .btn:active, .res-card:active, .feature:active, .tile:active, .link-card:active, .doc-card:active { transform: translateY(-2px) scale(.99); }

/* Video library */
.video-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.video-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--night); }
.video-card h2 { margin: 0; padding: 16px 18px 18px; font-size: 1.02rem; line-height: 1.35; }
@media (min-width: 560px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } .video-card h2 { font-size: 1.12rem; } }

.video-down { display: none; place-items: center; aspect-ratio: 16 / 9; margin: 0; padding: 20px; background: var(--night); color: #cdd9f3; text-align: center; }
.video-failed video { display: none; }
.video-failed .video-down { display: grid; }


/* Review fixes */
.site-header { background: #fff; }
#library { margin-top: 44px; }
.cover .no-cover { padding: 18%; object-fit: contain; }
.disclaimer { padding-bottom: 0; }
.disclaimer-actions { position: sticky; bottom: 0; margin-inline: -20px; padding: 14px 20px; background: #fff; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .disclaimer-actions { margin-inline: -32px; padding: 16px 32px; } }

/* Page sections */
.hero-note p { margin: 14px 0 0; color: #e4edff; font-style: italic; }
.page-intro > p { text-align: center; }
.feature-row { display: grid; gap: 24px; align-items: center; }
.feature-pic { display: block; width: 100%; max-width: 540px; height: auto; margin-inline: auto; border-radius: var(--r); box-shadow: var(--shadow); }
.feature-pic-link { display: block; transition: transform .18s ease; } .feature-pic-link:hover { transform: translateY(-5px); }
.feature-body h2 { margin-top: 0; }
.band.seed .feature-body, .band.seed .feature-body p, .band.seed .feature-body strong { color: #fff; }
.feature-body .store { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; } .feature-body .store img { height: 48px; width: auto; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
@media (min-width: 900px) {
    .feature-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
    .feature-row.flip > :first-child { order: 2; }
    .feature-row:not(:has(.feature-pic)) { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
}

/* Admin */
.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; font-size: 15px; background: var(--mist); }
.admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--night); padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: #fff; font: 700 1rem var(--head); text-decoration: none; }
.admin-brand img { width: 42px; height: auto; }
.side-group { margin: 18px 8px 6px; font: 700 .68rem var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--sky); }
.side-link { display: block; width: 100%; text-align: left; padding: 8px 10px; color: #dbe5fa; background: none; border: 0; font: inherit; border-radius: 8px; cursor: pointer; text-decoration: none; }
.side-link:hover, .side-link.active { background: rgba(255,255,255,.12); color: #fff; }
.side-kids { margin: 0 0 4px 12px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.15); font-size: .92rem; }
.side-foot { margin-top: auto; padding-top: 18px; }
.admin-main { padding: 28px clamp(16px, 3vw, 40px) 120px; min-width: 0; max-width: 1180px; }
.admin-main h1 { font-size: 1.7rem; margin-bottom: .2em; }
.admin-main label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 12px; }
.admin-main .field { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 12px; }
.admin-main input:not([type=checkbox]):not([type=file]), .admin-main textarea, .admin-main select { display: block; width: 100%; margin-top: 5px; padding: 9px 11px; border: 1px solid #b9c3d6; border-radius: 10px; font: 400 15px var(--body); color: var(--ink); background: #fff; }
.admin-main label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; } .admin-main label.check.top { margin-top: 28px; }
.admin-main input[type=checkbox] { width: 18px; height: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(8, 23, 90, .04); }
.fields.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; margin: 0; }
.edit-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.edit-head .eyebrow { margin-bottom: .3em; }
.section-title { font-size: 1.15rem; margin: 26px 0 12px; }
.section-card { border-left: 4px solid var(--electric); }
.section-head, .item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-head .muted { margin-left: 6px; }
.item-tools { display: flex; gap: 4px; flex: none; }
.admin .icon-btn { width: 34px; height: 34px; border-radius: 8px; font-size: 1rem; background: var(--mist); color: var(--navy); }
.admin .icon-btn:disabled { opacity: .35; cursor: default; } .admin .icon-btn.danger:hover { background: #fde8e8; color: #b42318; }
.items { display: grid; gap: 12px; }
.item { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.item-head { margin-bottom: 8px; }
.add-section { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; border-style: dashed; }
.add-section label { flex: 1 1 320px; margin: 0; }
.advanced { margin-top: 6px; } .advanced summary { cursor: pointer; color: var(--royal); font-weight: 600; margin-bottom: 10px; }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 -8px 24px rgba(8, 23, 90, .08); }
.save-bar [role=status] { color: var(--muted); } .save-bar .error { color: #b42318; font-weight: 600; } .save-bar .right { margin-left: auto; }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: .84rem; }
.btn.danger { border-color: #d92d20; color: #b42318; } .btn.danger:hover { background: #fde8e8; }
.rte { margin-top: 6px; background: #fff; font-weight: 400; } .rte .ql-toolbar { border-radius: 10px 10px 0 0; border-color: #b9c3d6; }
.rte .ql-container { border-radius: 0 0 10px 10px; border-color: #b9c3d6; font: 16px/1.6 var(--body); color: var(--ink); } .rte .ql-editor { min-height: 140px; max-height: 60vh; overflow-y: auto; }
.picker { font-weight: 400; margin-top: 6px; }
.picker-current { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .picker-current img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.picker-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.upload-btn { position: relative; margin: 0 !important; } .upload-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.picker-msg { margin: 6px 0 0; font-size: .88rem; color: var(--royal); }
.picker-library { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; }
.picker-item { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--mist); cursor: pointer; text-align: left; font-size: .78rem; color: var(--ink); overflow: hidden; }
.picker-item:hover { border-color: var(--electric); } .picker-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; } .picker-item span { overflow-wrap: anywhere; }
.link-picker { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 8px; align-items: start; font-weight: 400; }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; } .tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font: 700 .78rem var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--mist); }
.tbl tr:last-child td { border-bottom: 0; } .tbl td img.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.tbl input, .tbl select { margin-top: 0 !important; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-block: 12px; } .row-actions input { max-width: 360px; margin-top: 0 !important; }
.start-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.start-card { display: block; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: 0 2px 10px rgba(8, 23, 90, .04); transition: transform .15s, border-color .15s; }
.start-card:hover { transform: translateY(-3px); border-color: var(--electric); } .start-card strong { display: block; color: var(--navy); font: 700 1rem var(--head); margin-bottom: 4px; } .start-card span { color: var(--muted); font-size: .88rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; } .stats div { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; } .stats b { display: block; font-size: 1.6rem; color: var(--navy); }
@media (max-width: 860px) {
    .admin { grid-template-columns: minmax(0, 1fr); }
    .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .admin-side .side-link { width: auto; } .side-kids { display: contents; } .side-group { width: 100%; margin: 8px 8px 2px; } .side-foot { display: flex; margin: 0; padding: 0; }
    .admin-brand { width: 100%; padding-bottom: 6px; }
    .link-picker { grid-template-columns: minmax(0, 1fr); }
}

/* Information card text: one line per paragraph, an empty line for a gap */
.info-card .card-text p { margin: 0; }
.info-card .card-text p:empty, .info-card .card-text p:has(> br:only-child) { height: 12px; }
.info-card .card-text + .info-table { margin-top: 12px; }
.side-columns { margin-top: 32px; }
.side-col .form-card { margin-top: 0; border: 0; }
.side-col .map { height: 340px; }

/* Admin: one-line rows that open for editing */
.row-toggle { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 4px 0; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.row-toggle small { flex: none; padding: 3px 8px; border-radius: 6px; background: var(--mist); color: var(--royal); font: 700 .72rem var(--head); text-transform: uppercase; letter-spacing: .04em; }
.row-toggle span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--navy); }
.row-toggle em { flex: none; font: 700 .82rem var(--head); color: var(--royal); font-style: normal; }
.row-toggle img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; }
.row-toggle:hover span { color: var(--royal); }
.section-list { display: grid; gap: 10px; }
.section-list .section-card { padding: 12px 16px; margin: 0; }
.section-list .section-card .section-head { margin: 0; }
.section-list .section-card.open { padding: 16px 20px 20px; }
.section-list .section-card.open .section-head { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.item { padding: 8px 12px; } .item.open { padding: 12px 14px; } .item-head { margin: 0; } .item.open .item-head { margin-bottom: 10px; }
.page-settings { margin-top: 20px; }
.tbl.compact td { padding: 6px 10px; } .tbl .nowrap { white-space: nowrap; } .tbl.compact .icon-btn { display: inline-grid; }
.link-picker > select:only-child { grid-column: 1 / -1; max-width: 460px; }

/* Admin sections: Website | Bookshop (shared with the bookshop admin). */
.admin-sections { display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; background: rgba(255,255,255,.08); border-radius: 10px; }
.admin-sections a { flex: 1; text-align: center; padding: 8px 6px; border-radius: 7px; color: rgba(255,255,255,.8); font-weight: 600; font-size: .9rem; text-decoration: none; }
.admin-sections a.active { background: #fff; color: #0b1f5c; }
.admin-sections a:not(.active):hover { background: rgba(255,255,255,.14); color: #fff; }

/* Folding sidebar groups (About Us, Resource Centre, Contact). */
.side-fold > summary { list-style: none; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.side-fold > summary::-webkit-details-marker { display: none; }
.side-fold > summary .side-link { flex: 1; }
.fold-arrow { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #9fb2dc; }
.fold-arrow::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.side-fold[open] > summary .fold-arrow::before { transform: rotate(45deg); }
.side-fold > summary:hover .fold-arrow { background: rgba(255,255,255,.12); color: #fff; }
