/* bible-widget.com — one stylesheet for every page.
   Direction: the app after dark. Violet night ground from the icon, the honey
   of the app's buttons, Scripture set in Literata; interface text in the
   system face, as on the iPhone. Light mode is the same room at dawn. */

:root {
  --bg: #F5F3F8;
  --bg-2: #ECE8F2;
  --raised: #FFFFFF;
  --ink: #1C1622;
  --ink-2: #5A5163;
  --line: #DDD6E4;
  --honey: #8A5310;
  --btn: #1C1622;
  --btn-ink: #FFFFFF;
  --chip: #FFFFFF;
  --halo: rgba(231, 174, 98, 0.42);
  --shade: 0 1px 2px rgba(28, 22, 34, 0.06), 0 12px 32px -12px rgba(28, 22, 34, 0.18);
  --serif: "Literata", ui-serif, "New York", Georgia, "Apple SD Gothic Neo", "PingFang TC", "Thonburi", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Apple SD Gothic Neo", "PingFang TC", "Noto Sans Thai", system-ui, sans-serif;
  --wrap: 1120px;
  --read: 42rem;
  --gutter: clamp(16px, 4vw, 32px);
  --top-h: 60px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141019;
    --bg-2: #1A1520;
    --raised: #211B28;
    --ink: #F2ECE4;
    --ink-2: #ABA1B4;
    --line: #2F2838;
    --honey: #E7AE62;
    --btn: #E7AE62;
    --btn-ink: #1A1208;
    --chip: #1F1926;
    --halo: rgba(231, 174, 98, 0.30);
    --shade: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 0.9em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; text-wrap: balance; margin: 0; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--raised); padding: 8px 14px; }

/* ---- buttons ---- */
.btn, .store {
  display: inline-flex; align-items: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.3rem;
  border-radius: 999px;
  background: var(--btn); color: var(--btn-ink);
  font: 600 1rem/1 var(--sans); text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover, .store:hover { filter: brightness(1.08); }
.btn:active, .store:active { transform: scale(0.98); }
.btn .apple, .store .apple { width: 1em; height: 1.15em; margin-top: -0.12em; flex: none; }
.btn.small { min-height: 44px; font-size: 0.94rem; padding: 0 1.1rem; }
.store { min-height: 38px; padding: 0 0.95rem; font-size: 0.9rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 1.6rem 0 0; }
.cta .note { color: var(--ink-2); font-size: 0.92rem; margin: 0; }

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.bar {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--top-h); display: flex; align-items: center; gap: 1.25rem;
}
.mark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; flex: none; }
.mark img { border-radius: 23%; }
.primary { display: flex; gap: 0.2rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.primary::-webkit-scrollbar { display: none; }
.primary a {
  white-space: nowrap; text-decoration: none; color: var(--ink-2);
  font-size: 0.93rem; padding: 0.5rem 0.7rem; border-radius: 999px;
  display: inline-flex; align-items: center; min-height: 40px;
}
.primary a:hover { color: var(--ink); background: var(--bg-2); }
.primary a[aria-current] { color: var(--ink); background: var(--bg-2); }
.primary .lang-all svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .bar { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 0 1rem; }
  .bar .store { margin-left: auto; }
  .primary { order: 3; width: calc(100% + 2 * var(--gutter)); margin: 4px calc(-1 * var(--gutter)) 0; padding: 0 calc(var(--gutter) - 0.7rem) 6px; }
}

/* ---- generic page (guides, states, plans, hubs, site pages) ---- */
.doc { max-width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 4rem; }
.doc > * { max-width: var(--read); }
.doc.wide > .doc-body, .doc.wide > .guide-grid { max-width: none; }
.crumb { margin: 0 0 1rem; font-size: 0.92rem; }
.crumb a { color: var(--honey); text-decoration: none; font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.doc h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.08; font-variation-settings: "opsz" 60; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.25rem); color: var(--ink-2); margin: 1rem 0 0; text-wrap: pretty; max-width: 38rem; }
.doc-body { margin-top: clamp(2rem, 5vw, 3.25rem); }
.doc-body h2, .faq h2, .more h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.2; margin: 2.75rem 0 1rem; }
.doc-body section:first-child h2 { margin-top: 0; }
.doc-body h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
.doc-body ul, .doc-body ol { padding-left: 1.25rem; }
.doc-body li { margin: 0.5rem 0; }
.doc-body li::marker { color: var(--honey); }
.doc-body a, .faq a { color: var(--honey); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-body b { font-weight: 650; }

/* Scripture */
blockquote {
  margin: 0; padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
blockquote:last-of-type { border-bottom: 1px solid var(--line); }
blockquote + p.src, blockquote + .src { margin-top: 0.9rem; }
blockquote p {
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; margin: 0 0 0.5rem;
  font-variation-settings: "opsz" 20;
}
cite { font-style: normal; font-weight: 600; font-size: 0.92rem; color: var(--honey); }
sup { color: var(--honey); font-size: 0.65em; margin-right: 0.2em; font-family: var(--sans); }
.src { color: var(--ink-2); font-size: 0.84rem; }
/* The first verse on a topic page is the one the widget would show today: set it large. */
.k-state .doc-body section:first-child blockquote:first-of-type { border-top: 0; padding-top: 0.25rem; }
.k-state .doc-body section:first-child blockquote:first-of-type p {
  font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.38; font-weight: 450; font-variation-settings: "opsz" 48;
}

/* Reading plan day list in two columns */
ol.plan { list-style: none; padding: 0; columns: 2 15rem; column-gap: 2rem; }
ol.plan li { break-inside: avoid; margin: 0; padding: 0.5rem 0; border-top: 1px solid var(--line); }
ol.plan b { color: var(--honey); font-weight: 600; display: inline-block; min-width: 4.2em; }

/* Steps on widget guides */
.doc-body ol:not(.plan) { counter-reset: step; list-style: none; padding: 0; }
.doc-body ol:not(.plan) > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin: 0.9rem 0; }
.doc-body ol:not(.plan) > li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); color: var(--honey); font: 600 0.9rem/1 var(--sans);
}

/* FAQ */
.faq { margin-top: 3.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.2rem 1.05rem 0; position: relative;
  font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.3rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.4rem;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -0.1rem; }
.faq details p { color: var(--ink-2); margin: -0.2rem 0 1.1rem; max-width: 38rem; }

/* App card at the end of a page */
.get {
  display: flex; align-items: center; gap: 1.25rem; margin-top: 3.5rem; padding: 1.4rem;
  background: var(--raised); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shade);
}
.get img { border-radius: 23%; flex: none; }
.get-name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin: 0; }
.get .cta { margin-top: 0.6rem; }

/* Links to the other pages in this language */
.more { margin-top: 3rem; }
.more h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.more-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.more-links a, .chips li, .chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.35rem 0.95rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--chip);
  text-decoration: none; font-size: 0.93rem; line-height: 1.3;
}
.more-links a:hover, .chips a:hover { border-color: var(--honey); }
.updated { margin-top: 2.5rem; color: var(--ink-2); font-size: 0.84rem; }

/* /guides/ */
.guide-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2.25rem 2.5rem; }
.guide-lang h2 { font-size: 1.3rem; margin: 0 0 0.5rem; }
.guide-lang ul { list-style: none; padding: 0; margin: 0; }
.guide-lang li { padding: 0.35rem 0; border-top: 1px solid var(--line); font-size: 0.94rem; }
.guide-lang a { text-decoration: none; }
.guide-lang a:hover { color: var(--honey); }

/* ---- shared pieces for the home page and the site pages ---- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.phone {
  position: relative; display: block; padding: 7px; border-radius: 46px; background: #0D0A10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset, 0 40px 70px -30px rgba(20, 8, 30, 0.55), 0 8px 18px -8px rgba(20, 8, 30, 0.35);
  width: 100%; max-width: 300px; margin: 0;
}
.phone img { display: block; width: 100%; border-radius: 39px; aspect-ratio: 640 / 1387; object-fit: cover; }
.chips { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips li { min-height: 36px; font-size: 0.9rem; color: var(--ink-2); }
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.split.flip { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.split.flip > .phone, .split.flip > figure { order: -1; }
.split h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 1rem; }
.split p { color: var(--ink-2); max-width: 34rem; }
.split .phone { justify-self: center; }
figure { margin: 0; }
figcaption { color: var(--ink-2); font-size: 0.85rem; margin-top: 0.8rem; text-align: center; }
.facts { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.facts li { padding: 0.75rem 0; border-top: 1px solid var(--line); margin: 0; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { display: block; font-weight: 650; color: var(--ink); }
.facts span { color: var(--ink-2); }
.doc-body .facts { padding: 0; }
.doc-body .facts li::marker { content: ""; }
.page-sec { margin: 0 0 clamp(4rem, 9vw, 6.5rem); }
.page-sec:last-child { margin-bottom: 0; }

table.bibles { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.97rem; }
table.bibles th, table.bibles td { text-align: left; padding: 0.7rem 0.9rem 0.7rem 0; border-top: 1px solid var(--line); vertical-align: top; }
table.bibles thead th { color: var(--ink-2); font-weight: 500; font-size: 0.85rem; border-top: 0; }
table.bibles tbody th { font-weight: 600; white-space: nowrap; }
table.bibles a { text-decoration: none; color: var(--ink); }
table.bibles a:hover { color: var(--honey); }
table.bibles td { font-family: var(--serif); }
table.bibles .site-bible { display: block; font-family: var(--sans); font-size: 0.82rem; color: var(--ink-2); margin-top: 0.15rem; }

/* /compare/: apps as rows; on phones every row becomes a card with labelled lines. */
.cmp-wrap { margin-top: 1.25rem; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.cmp th, table.cmp td { text-align: left; vertical-align: top; padding: 0.75rem 0.8rem 0.75rem 0; border-top: 1px solid var(--line); }
table.cmp thead th { color: var(--ink-2); font-weight: 500; font-size: 0.8rem; border-top: 0; line-height: 1.3; }
table.cmp tbody th { font-weight: 600; min-width: 10rem; }
table.cmp tbody th a { color: var(--ink); text-decoration: none; }
table.cmp tbody th a:hover { color: var(--honey); }
table.cmp .by { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-2); margin-top: 0.15rem; }
table.cmp .ns { color: var(--ink-2); font-style: italic; }
table.cmp .what { display: block; font-weight: 400; font-size: 0.85rem; color: var(--ink); margin-top: 0.3rem; line-height: 1.4; }
table.cmp td .by { font-size: 0.78rem; }
table.cmp tbody th { width: 26%; }
.cmp-group h2 .n { font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--ink-2); margin-left: 0.3rem; }
.cmp-group > p { color: var(--ink-2); margin-top: 0.3rem; }
.cmp-group { margin-bottom: 2.5rem; }
.cmp-jump { font-size: 0.92rem; line-height: 1.9; }
table.cmp tr.ours th, table.cmp tr.ours td { background: var(--bg-2); }
table.cmp tr.ours th { padding-left: 0.8rem; border-radius: 10px 0 0 10px; }
table.cmp tr.ours td:last-child { border-radius: 0 10px 10px 0; }
.cmp-src { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.9rem; }
.cmp-prices { list-style: none; padding: 0; margin: 1rem 0 0; }
.cmp-prices li { padding: 0.7rem 0; border-top: 1px solid var(--line); margin: 0; }
.cmp-prices li:last-child { border-bottom: 1px solid var(--line); }
.cmp-prices b { display: block; font-weight: 600; }
.cmp-prices span { color: var(--ink-2); }
.doc-body .cmp-prices { padding: 0; }
.doc-body .cmp-prices li::marker { content: ""; }
@media (max-width: 760px) {
  table.cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp th, table.cmp td { display: block; width: 100%; }
  table.cmp tr { border-top: 1px solid var(--line); padding: 0.9rem 0; }
  table.cmp tr.ours { border-radius: 12px; padding: 0.9rem 0.8rem; background: var(--bg-2); border-top: 0; margin-bottom: 0.4rem; }
  table.cmp tr.ours th, table.cmp tr.ours td { background: none; padding-left: 0; border-radius: 0; }
  table.cmp th, table.cmp td { border-top: 0; padding: 0.15rem 0; }
  table.cmp tbody th { margin-bottom: 0.35rem; width: 100%; }
  table.cmp td { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.6rem; }
  table.cmp td::before { content: attr(data-label); color: var(--ink-2); font-size: 0.8rem; }
}

.in-langs { display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem; margin: 0.4rem 0 0; font-size: 0.9rem; }
.in-langs a { text-decoration: none; color: var(--ink-2); }
.in-langs a:hover { color: var(--honey); text-decoration: underline; }
.topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.topic-list > li { padding: 1.4rem 0; border-top: 1px solid var(--line); margin: 0; }
.topic-list > li:last-child { border-bottom: 1px solid var(--line); }
.topic-list h3 { margin: 0 0 0.3rem; font-size: 1.35rem; }
.topic-list h3 a { color: var(--ink); text-decoration: none; }
.topic-list h3 a:hover { color: var(--honey); }
.topic-list p { color: var(--ink-2); margin: 0; }
.doc-body .topic-list > li::marker { content: ""; }

/* ---- home ---- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.028em;
  font-weight: 560; font-variation-settings: "opsz" 72;
}
.hero .lede { font-size: clamp(1.12rem, 2vw, 1.3rem); max-width: 31rem; margin-top: 1.4rem; }
.stage { position: relative; display: grid; place-items: center; min-height: 560px; isolation: isolate; }
/* The halo is the glow around the cross in the app icon, behind the phones. */
.stage::before {
  content: ""; position: absolute; z-index: -1; width: 120%; aspect-ratio: 1; left: -10%; top: 50%; translate: 0 -50%;
  background: radial-gradient(closest-side, var(--halo), transparent 72%);
}
.stage .phone { width: min(300px, 72vw); }
.stage .phone.back { position: absolute; width: min(250px, 58vw); right: 0; top: 2.5rem; transform: rotate(5deg); opacity: 0.96; z-index: -1; }
.stage .phone.front { margin-right: 22%; }

.verse-band { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--bg-2); }
.verse-band blockquote { border: 0; padding: 0; max-width: 46rem; }
.verse-band blockquote p { font-size: clamp(1.6rem, 3.8vw, 2.6rem); line-height: 1.3; font-weight: 420; letter-spacing: -0.015em; font-variation-settings: "opsz" 64; }
.verse-band cite { font-size: 1rem; }
.verse-band .src { margin-top: 1.2rem; }
.home-secs { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.plans-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.plans-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 1rem; }
.plans-band p { color: var(--ink-2); }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-top: 1.5rem; }
.price > div { background: var(--raised); padding: 1.5rem 1.5rem 1.25rem; }
.price h3 { font-size: 1.35rem; margin: 0 0 0.25rem; }
.price p { color: var(--ink-2); font-size: 0.95rem; margin: 0 0 0.75rem; }
.price ul { padding-left: 1.1rem; margin: 0; }
.price li { margin: 0.4rem 0; }
.price li::marker { color: var(--honey); }
.final { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.final img { border-radius: 23%; box-shadow: 0 0 60px 10px var(--halo); }
.final h2 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; margin: 1.5rem auto 0.8rem; max-width: 18ch; }
.final p { color: var(--ink-2); max-width: 32rem; margin: 0 auto; }
.final .cta { justify-content: center; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 0; }
.foot-grid {
  max-width: var(--wrap); margin: 0 auto; padding: 3.25rem var(--gutter) 3.5rem;
  display: grid; grid-template-columns: 1.3fr 0.8fr 1.6fr 0.8fr; gap: 2.5rem;
}
.foot h2 { font: 600 0.9rem/1.3 var(--sans); color: var(--ink); margin: 0 0 0.8rem; letter-spacing: 0; }
.foot nav { display: flex; flex-direction: column; gap: 0.1rem; }
.foot nav a { text-decoration: none; color: var(--ink-2); font-size: 0.92rem; padding: 0.3rem 0; }
.foot nav a:hover { color: var(--ink); }
.foot-langs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; align-content: start; }
.foot-langs h2 { grid-column: 1 / -1; }
.foot-brand p { color: var(--ink-2); font-size: 0.92rem; margin: 0.8rem 0 1.1rem; max-width: 18rem; }

@media (max-width: 900px) {
  .hero .wrap, .split, .split.flip, .plans-band { grid-template-columns: minmax(0, 1fr); }
  .split.flip > .phone, .split.flip > figure { order: 0; }
  .stage { min-height: 0; padding: 1rem 0 0; }
  .stage .phone.front { margin-right: 18%; }
  .stage .phone.back { right: 2%; top: 1.5rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand, .foot-langs { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .price { grid-template-columns: 1fr; }
  .get { flex-direction: column; align-items: flex-start; }
  .foot-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table.bibles tbody th { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.after { margin-top: 1.5rem; }
.link { color: var(--honey); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hero { overflow-x: clip; }
.chips li:has(> a) { border: 0; padding: 0; background: none; min-height: 0; }
.chips li > a { color: var(--ink); }
.doc-body .topic-list, .doc-body .chips, .doc-body .facts { padding: 0; }
.doc-body:empty { display: none; }
.doc-body:empty + .faq { margin-top: 2.5rem; }
.doc-body:empty + .faq > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.get-shot { display: none; }

/* Wide screens: the reading column on the left, the app beside it. */
@media (min-width: 1100px) {
  .doc:not(.wide):has(> .get) {
    display: grid; grid-template-columns: minmax(0, 42rem) minmax(0, 280px);
    column-gap: 4rem; justify-content: space-between; align-items: start;
  }
  .doc:not(.wide):has(> .get) > * { grid-column: 1; }
  .doc:not(.wide) > .get {
    grid-column: 2; grid-row: 1 / span 8; position: sticky; top: calc(var(--top-h) + 2rem);
    margin-top: 0; flex-direction: column; align-items: flex-start; gap: 1rem;
  }
  .doc:not(.wide) > .get .get-shot { display: block; width: 100%; height: auto; border-radius: 30px; border: 6px solid #0D0A10; }
  .doc:not(.wide) > .get:has(.get-shot) > img:first-child { display: none; }
}
.topic-list { max-width: 50rem; }
/* Hub: the topic links read as the app's topic picker. */
.k-langhub .doc-body section:first-child ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.k-langhub .doc-body section:first-child li { margin: 0; }
.k-langhub .doc-body section:first-child a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem; border: 1px solid var(--line);
  border-radius: 12px; background: var(--chip); color: var(--ink); text-decoration: none;
}
.k-langhub .doc-body section:first-child a:hover { border-color: var(--honey); }

/* Google Play: the secondary store button, outlined so App Store stays the main action */
.btn.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.alt.on-dark { color: #fff; }
.foot-brand .cta { margin-top: 1rem; }

/* ---- The app funnel (15.11.2026) ------------------------------------------------- */
/* Where the page's verses come from: plain text, for readers and for assistants alike. */
.from-app { color: var(--ink-2); font-size: 0.92rem; margin-top: 0.4rem; }

/* One inline teaser per page, between the verses. */
.teaser { margin: 1.4rem 0; padding: 0.15rem 0 0.15rem 1rem; border-left: 3px solid var(--honey); }
.teaser a { color: var(--honey); font-weight: 600; text-decoration: none; }
.teaser a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* "More in the app", after the page's own content. */
.inapp {
  margin-top: 3rem; padding: 1.5rem 1.4rem 1.4rem; position: relative;
  background: var(--raised); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shade);
}
.inapp > img { border-radius: 23%; float: right; margin: 0 0 0.6rem 1rem; }
.inapp h2 { font-size: 1.35rem; margin: 0 0 0.8rem; }
.inapp > p { color: var(--ink-2); }
.inapp ul { list-style: none; padding: 0; margin: 0 0 1rem; clear: none; }
.inapp li { position: relative; padding-left: 1.7rem; margin: 0.45rem 0; }
.inapp li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.55rem; height: 0.95rem;
  border-right: 2px solid var(--honey); border-bottom: 2px solid var(--honey); transform: rotate(40deg) scale(0.8);
}
.inapp-free { color: var(--ink-2); font-size: 0.86rem; margin-bottom: 1rem; clear: both; }
.get-line { color: var(--ink-2); font-size: 0.92rem; margin: 0.35rem 0 0; max-width: 34rem; }

/* The app bar: phones only, over the bottom edge, never over the text (body padding). */
.appbar { display: none; }
@media (max-width: 860px) {
  .appbar {
    display: flex; align-items: center; gap: 0.7rem; position: fixed; z-index: 40;
    left: 0; right: 0; bottom: 0; padding: 0.6rem max(0.75rem, env(safe-area-inset-right)) calc(0.6rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--raised) 94%, transparent); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, 0.35);
  }
  .appbar img { border-radius: 23%; flex: none; }
  .appbar p { margin: 0; flex: 1; min-width: 0; line-height: 1.25; }
  .appbar b { display: block; font-size: 0.92rem; }
  .appbar span {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    font-size: 0.78rem; line-height: 1.25; color: var(--ink-2);
  }
  .appbar-go {
    flex: none; background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 600;
    font-size: 0.9rem; padding: 0.55rem 0.95rem; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center;
  }
  .appbar-x {
    flex: none; width: 32px; height: 32px; margin-left: -0.2rem; border: 0; background: none; color: var(--ink-2);
    font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 50%;
  }
  body:has(> .appbar) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media print { .appbar { display: none !important; } }

/* Psalm pages (15.11.2026): the whole psalm in one quote, a verse per line */
blockquote.psalm p { margin: 0 0 0.55rem; }
blockquote.psalm cite { display: block; margin-top: 0.6rem; }

/* Verse of the day: a dated verse per day; the script marks today's */
.votd-date { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); margin: 1.2rem 0 0; }
.votd-day blockquote { border-bottom: 0; padding-top: 0.6rem; }
.votd-day + .votd-day .votd-date { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.votd-day + .votd-day blockquote, .votd-day:first-child blockquote { border-top: 0; }
.votd-week { border-bottom: 1px solid var(--line); }
.votd-day.is-today .votd-date { color: var(--honey); }
.votd-today { padding: 0.8rem 1rem; border-left: 3px solid var(--honey); background: color-mix(in srgb, var(--honey) 9%, transparent); border-radius: 0 8px 8px 0; }
