/* By His Stripes — mobile first. */
@font-face { font-family: 'Young Serif'; src: url('/assets/fonts/young-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --paper: #f3f5f1;
  --surface: #ffffff;
  --ink: #1d2b33;
  --ink-2: #4c5c63;
  --line: #d6ddd9;
  --balm: #24564d;
  --balm-deep: #173c36;
  --balm-tint: #e0ece6;
  --dawn: #d9932b;
  --dawn-soft: #f2c77c;
  --dusk: #44498a;
  --dusk-deep: #262a52;
  --dusk-tint: #e5e6f3;
  --danger: #a33a2e;
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --gutter: 16px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--balm); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--balm-deep); }
:focus-visible { outline: 3px solid var(--dawn); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 640px; margin: 0 auto; padding: 40px var(--gutter) 56px; }
.section { padding-top: 40px; padding-bottom: 8px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.fine { font-size: .9rem; color: var(--ink-2); }
.optional { color: var(--ink-2); font-weight: 400; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; }
.brand:hover { color: var(--ink); }
.mark { width: 26px; height: 26px; fill: var(--dawn); flex: none; }
.nav-desktop { display: none; }
.nav-desktop a, .nav-mobile nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav-desktop a[aria-current="page"] { color: var(--balm); box-shadow: inset 0 -2px 0 var(--dawn); }
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 4px; font-weight: 600; min-height: 44px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.nav-mobile[open] .bars { background: transparent; }
.nav-mobile[open] .bars::before { top: 0; transform: rotate(45deg); }
.nav-mobile[open] .bars::after { top: 0; transform: rotate(-45deg); }
.nav-mobile nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(29,43,51,.14); display: flex; flex-direction: column; padding: 6px; }
.nav-mobile nav a { padding: 12px 14px; border-radius: 8px; }
.nav-mobile nav a:hover, .nav-mobile nav a[aria-current="page"] { background: var(--balm-tint); }
@media (min-width: 900px) {
  .nav-desktop { display: flex; align-items: center; gap: 22px; }
  .nav-desktop a { padding: 6px 0; }
  .nav-desktop .signin, .nav-desktop .who { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; }
  .nav-mobile { display: none; }
}

/* ---------- Buttons and forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: var(--radius); border: 1.5px solid var(--balm); background: transparent; color: var(--balm); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--balm-tint); color: var(--balm-deep); }
.btn-primary { background: var(--balm); color: #fff; }
.btn-primary:hover { background: var(--balm-deep); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--dusk-deep); }
.btn-light:hover { background: var(--dusk-tint); color: var(--dusk-deep); }
.btn-small { min-height: 40px; padding: 7px 14px; font-size: .95rem; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: #f6e3e0; color: var(--danger); }
.btn-google { width: 100%; background: #fff; border-color: var(--line); color: var(--ink); }
.btn-google:hover { background: #f7f8f7; color: var(--ink); }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--ink-2); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
input[type=text], input[type=email], input[type=url], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink); background: #fff; border: 1.5px solid #b9c4bf; border-radius: var(--radius); padding: 11px 13px; min-height: 48px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--balm); outline: 3px solid rgba(36,86,77,.18); outline-offset: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack label { font-weight: 600; margin-top: 10px; }
.stack .btn { margin-top: 18px; align-self: flex-start; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--balm); }
.notice { background: var(--balm-tint); border-left: 4px solid var(--balm); padding: 12px 14px; border-radius: 6px; }
.notice-error { background: #f8e6e3; border-left-color: var(--danger); }
.notice p:last-child { margin: 0; }

/* ---------- Search ---------- */
.search { position: relative; display: flex; gap: 8px; max-width: 640px; }
.search input { flex: 1; min-width: 0; }
.search .btn { flex: none; }
.search-big input { min-height: 58px; font-size: 1.15rem; padding: 14px 16px; border: 0; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.search-big .btn { min-height: 58px; padding: 0 22px; background: var(--dawn); border-color: var(--dawn); color: #1d2b33; }
.search-big .btn:hover { background: var(--dawn-soft); border-color: var(--dawn-soft); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(29,43,51,.16); }
.suggest li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 7px; text-decoration: none; color: var(--ink); }
.suggest li a span { color: var(--ink-2); font-size: .88rem; white-space: nowrap; }
.suggest li a:hover, .suggest li a[aria-selected="true"] { background: var(--balm-tint); }
@media (max-width: 520px) { .search:not(.search-big) .btn { padding: 10px 14px; } .search-big { flex-direction: column; } .search-big .btn { width: 100%; } }

/* ---------- Hero ---------- */
.hero { background: var(--balm-deep); color: #f4f7f5; overflow: hidden; position: relative; }
.hero-inner { position: relative; padding-top: 44px; padding-bottom: 40px; }
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.hero h1 { font-size: clamp(2.1rem, 7.4vw, 3.6rem); line-height: 1.05; margin-bottom: 16px; max-width: 15ch; }
.hero .lede { color: #cfdcd6; margin-bottom: 24px; }
.hero .search { max-width: 620px; }
.hero .chips { margin-top: 20px; }
.hero .chips a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #f4f7f5; }
.hero .chips a:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero-light { position: absolute; z-index: 1; top: 0; bottom: 0; right: -10px; width: 46%; max-width: 420px; display: flex; justify-content: flex-end; gap: 9%; padding-right: 7%; pointer-events: none; }
.hero-light span { width: 14%; max-width: 46px; height: 100%; border-radius: 0 0 999px 999px; background: linear-gradient(to bottom, var(--dawn) 0%, rgba(217,147,43,.55) 45%, rgba(217,147,43,0) 100%); opacity: .2; }
.hero-light span:nth-child(2) { height: 88%; }
.hero-light span:nth-child(3) { height: 76%; }
@media (min-width: 900px) {
  .hero-inner { padding-top: 84px; padding-bottom: 80px; }
  .hero-light span { opacity: .9; }
  .hero-light { width: 34%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-light span { animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; transform-origin: top; }
  .hero-light span:nth-child(2) { animation-delay: .12s; }
  .hero-light span:nth-child(3) { animation-delay: .24s; }
  @keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* ---------- Chips and tags ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: .95rem; }
.chips a:hover { border-color: var(--balm); color: var(--balm); }
.tag { display: inline-block; font-size: .85rem; padding: 3px 10px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.tag-body { background: var(--balm-tint); color: var(--balm-deep); }
.tag-mind { background: var(--dusk-tint); color: var(--dusk-deep); }

/* ---------- Category shelves ---------- */
.shelves { display: grid; gap: 36px; }
.shelf h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; font-size: 1.6rem; }
.shelf h2::before { content: ''; width: 6px; height: 1.1em; border-radius: 3px; background: var(--balm); }
.shelf-mind h2::before { background: var(--dusk); }
.shelf-blurb { color: var(--ink-2); margin-bottom: 12px; }
.catlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.catlist li { border-bottom: 1px solid var(--line); break-inside: avoid; }
.catlist a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; padding: 10px 4px; text-decoration: none; color: var(--ink); }
.catlist a:hover { color: var(--balm); background: linear-gradient(to right, var(--balm-tint), transparent 70%); }
.shelf-mind .catlist a:hover { color: var(--dusk); background: linear-gradient(to right, var(--dusk-tint), transparent 70%); }
.catlist .count { color: var(--ink-2); font-size: .92rem; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
@media (min-width: 700px) { .shelf-body .catlist { columns: 2; column-gap: 32px; } .shelf-body .catlist li:first-child { border-top: 0; } }
@media (min-width: 1000px) { .shelves { grid-template-columns: 2fr 1fr; gap: 56px; } }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding-top: 36px; padding-bottom: 8px; }
.page-head .search { margin-top: 16px; }
.crumbs { font-size: .92rem; color: var(--ink-2); margin-bottom: 8px; }
.cat-head h1 { font-size: clamp(2rem, 6vw, 3rem); }
.cat-mind h1 { color: var(--dusk-deep); }
.empty-inline { background: var(--surface); border: 1px dashed #c3ccc8; border-radius: var(--radius); padding: 20px; max-width: 720px; }
.empty-inline p:last-child { margin: 0; }
.empty-state { text-align: center; }

/* ---------- Video cards ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 24px 20px; }
.vrail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 280px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
.vrail .vcard { scroll-snap-align: start; }
.vcard { min-width: 0; }
.vcard-link { text-decoration: none; color: var(--ink); display: block; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #dfe5e2; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.vcard-link:hover .thumb img { transform: scale(1.03); }
.thumb-empty { background: var(--dusk-deep); color: #fff; display: flex; }
.thumb-series { display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; width: 100%; background: linear-gradient(160deg, var(--dusk) 0%, var(--dusk-deep) 70%); }
.series-name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .04em; }
.series-ep { color: var(--dawn-soft); font-weight: 600; font-size: .95rem; }
.badge-ext { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); color: var(--dusk-deep); font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.vcard-title { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; line-height: 1.35; margin: 10px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard-link:hover .vcard-title { color: var(--balm); }
.vcard-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--ink-2); font-size: .9rem; }
.vcard-cat { margin: 8px 0 0; }
.rating-mini { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 600; }
.rating-mini svg { color: var(--dawn); }
.pager { display: flex; justify-content: space-between; margin-top: 28px; }

/* ---------- MIRACLE series band ---------- */
.series { background: var(--dusk-deep); color: #eef0fa; margin-top: 48px; padding: 40px 0 36px; }
.series-inner { display: grid; gap: 24px; align-items: center; }
.series h2 { font-size: clamp(2rem, 6vw, 2.8rem); letter-spacing: .06em; margin-bottom: 8px; }
.series-from { color: var(--dawn-soft); font-weight: 600; margin-bottom: 4px; }
.series p { color: #cdd0ea; max-width: 52ch; }
.episodes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.episodes a { display: flex; gap: 14px; align-items: baseline; padding: 14px 16px; background: var(--dusk-deep); color: #eef0fa; text-decoration: none; }
.episodes a:hover { background: #30355f; }
.ep-n { font-family: var(--serif); color: var(--dawn-soft); min-width: 1.4ch; }
@media (min-width: 800px) { .series-inner { grid-template-columns: 5fr 6fr; gap: 48px; } .episodes { grid-template-columns: 1fr 1fr; } }

/* ---------- Action band ---------- */
.actions { display: grid; gap: 16px; padding-bottom: 48px; }
.action { background: var(--surface); border-radius: var(--radius); padding: 22px 20px; border: 1px solid var(--line); }
.action h2 { font-size: 1.3rem; }
.action:first-child { background: var(--balm-tint); border-color: transparent; }
.subscribe { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 180px; }
@media (min-width: 900px) { .actions { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Verse ---------- */
.verse { margin: 20px 0; padding: 0 0 0 18px; border-left: 3px solid var(--dawn); max-width: 62ch; }
.verse blockquote { margin: 0 0 6px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.verse figcaption { color: var(--ink-2); font-size: .95rem; }
.verse-band { background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0; }
.verse-band .verse { margin: 0 auto; }

/* ---------- Crisis note ---------- */
.crisis { background: #fff6e8; border: 1px solid #f0d9ae; border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.crisis p { margin: 0; }
.crisis a { font-weight: 700; }

/* ---------- Video page ---------- */
.video-page { display: grid; gap: 32px; padding-top: 20px; padding-bottom: 56px; }
@media (min-width: 1000px) { .video-page { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 28px; } }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin: 0 calc(var(--gutter) * -1); }
@media (min-width: 700px) { .player { margin: 0; } }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .play { position: absolute; inset: 0; margin: auto; width: 84px; height: 60px; background: none; border: 0; cursor: pointer; padding: 0; }
.player .play svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.player .play:hover path:first-child { fill: var(--balm-deep); }
.external { background: var(--dusk-deep); color: #eef0fa; border-radius: var(--radius); padding: 28px 22px; display: grid; gap: 14px; }
.external p { margin: 0; color: #cdd0ea; }
.external-art { display: flex; flex-direction: column; }
.video-title { font-size: clamp(1.5rem, 4.6vw, 2.1rem); margin: 18px 0 8px; }
.video-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-2); }
.video-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; margin: 8px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.rate-label { font-weight: 600; }
.stars { display: inline-flex; }
.stars button { background: none; border: 0; padding: 6px; cursor: pointer; color: #c6cdc9; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.stars button svg { width: 26px; height: 26px; }
.stars button.on, .stars button.hover { color: var(--dawn); }
.rate-summary { color: var(--ink-2); font-size: .92rem; }
.action-buttons { display: flex; gap: 8px; }
.save-btn[aria-pressed="true"] { background: var(--balm); color: #fff; }
.story { background: var(--surface); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.story h2 { font-size: 1.15rem; }
.desc { margin: 12px 0; }
.desc summary { cursor: pointer; font-weight: 600; padding: 8px 0; color: var(--balm); }
.desc p { color: var(--ink-2); overflow-wrap: anywhere; }
.comments { margin-top: 32px; }
.comments h2 .count { font-family: var(--sans); font-size: 1rem; color: var(--ink-2); }
.comment-form { display: grid; gap: 10px; margin-bottom: 20px; }
.comment-form .btn { justify-self: start; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { border-top: 1px solid var(--line); padding: 14px 0; }
.cm-head { margin: 0 0 4px; } .cm-head span { color: var(--ink-2); font-size: .88rem; margin-left: 6px; }
.cm-body { margin: 0 0 4px; overflow-wrap: anywhere; }
.cm-tools { margin: 0; }
.signin-prompt { background: var(--surface); padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.video-side h2 { font-size: 1.2rem; }
.side-list { display: grid; gap: 20px; }
@media (min-width: 640px) and (max-width: 999px) { .side-list { grid-template-columns: 1fr 1fr; } }
.side-pray { margin-top: 28px; background: var(--balm-tint); border-radius: var(--radius); padding: 20px; }

/* ---------- Search results ---------- */
.match { margin-bottom: 32px; }
.match-label { color: var(--ink-2); font-weight: 600; margin-bottom: 2px; }
.match h2 { font-size: 1.8rem; }
.match h2 a { text-decoration: none; }
.also { margin-bottom: 32px; }
.sort { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.sort a { padding: 8px 14px; text-decoration: none; color: var(--ink); font-size: .92rem; min-height: 40px; display: inline-flex; align-items: center; }
.sort a[aria-current] { background: var(--balm); color: #fff; }
.pray-cta { background: var(--balm-tint); border-radius: var(--radius); padding: 24px 20px; margin-top: 40px; max-width: calc(var(--max) - 2 * var(--gutter)); }
.pray-cta .btn { margin: 4px 8px 4px 0; }
@media (max-width: 1192px) { .pray-cta { margin-left: var(--gutter); margin-right: var(--gutter); } }
.related-cats { padding-bottom: 48px; }

/* ---------- Auth ---------- */
.auth .btn-primary { width: 100%; }
.auth .stack .btn { align-self: stretch; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); margin: 18px 0 4px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.danger { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger summary { cursor: pointer; color: var(--danger); font-weight: 600; }

/* ---------- Prose and prayer ---------- */
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.ministries { columns: 2; column-gap: 24px; }
@media (max-width: 520px) { .ministries { columns: 1; } }
.prayer { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; }
.narrow .btn { margin: 4px 8px 4px 0; }

/* ---------- Encourager chat ---------- */
.chat-page { padding-top: 28px; padding-bottom: 40px; max-width: 760px; }
.chat-intro h1 { margin-bottom: 8px; }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-log { display: flex; flex-direction: column; gap: 12px; min-height: 220px; max-height: 62vh; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 14px; overflow-wrap: anywhere; }
.msg p { margin: 0 0 .7em; } .msg p:last-child { margin: 0; }
.msg-bot { background: var(--balm-tint); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--dusk-tint); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-typing { color: var(--ink-2); font-style: italic; }
.msg-crisis { background: #fff6e8; border: 1px solid #f0d9ae; align-self: stretch; max-width: 100%; }
.starters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.starters button { font: inherit; font-size: .93rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; color: var(--ink); text-align: left; }
.starters button:hover { border-color: var(--balm); color: var(--balm); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { min-height: 50px; max-height: 160px; }
.chat-fine { margin: 0; }

.chat-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 25; display: inline-flex; align-items: center; gap: 8px; background: var(--balm); color: #fff; text-decoration: none; padding: 12px 16px; border-radius: 999px; box-shadow: 0 10px 24px rgba(23,60,54,.35); font-weight: 600; }
.chat-fab:hover { background: var(--balm-deep); color: #fff; }
@media (max-width: 520px) { .chat-fab span { display: none; } .chat-fab { padding: 14px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d3d6; margin-top: 0; padding: 44px 0 90px; }
.site-footer a { color: #f1f5f3; }
.footer-grid { display: grid; gap: 28px; }
.brand-footer { color: #fff; }
.brand-footer:hover { color: #fff; }
.footer-verse { margin-top: 12px; font-family: var(--serif); color: #e9eeec; }
.footer-verse span { display: block; font-family: var(--sans); font-size: .9rem; color: #9fb0b5; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer-care p { font-size: .95rem; }
.footer-base { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #9fb0b5; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.6fr; } }

/* ---------- Admin ---------- */
.admin { padding-top: 28px; padding-bottom: 60px; }
.admin-stats { color: var(--ink-2); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 24px; }
.admin-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; }
.admin-tabs a[aria-current] { background: var(--balm); color: #fff; border-color: var(--balm); }
.pill { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--dawn); color: var(--ink); font-size: .8rem; font-weight: 700; text-align: center; }
.queue, .lib, .runs { list-style: none; margin: 0; padding: 0; }
.qitem { display: grid; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .qitem { grid-template-columns: 240px 1fr; } }
.qthumb img { border-radius: 8px; width: 100%; }
.qtitle { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; }
.qtitle a { color: var(--ink); }
.qstory { font-style: italic; }
.qform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qform select, .qform input { width: auto; flex: 1 1 220px; min-height: 40px; padding: 7px 10px; }
.lib li { border-top: 1px solid var(--line); padding: 14px 0; }
.lib li p { margin: 0 0 6px; }
.lib .is-hidden, .lib .is-done { opacity: .62; }
.runs li { padding: 6px 0; font-size: .92rem; }
.admin-split { display: grid; gap: 36px; }
@media (min-width: 1000px) { .admin-split { grid-template-columns: 1fr 1.2fr; } }
.narrow-form { max-width: 560px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
