/* What is the firmament in the Bible? A full-screen view that opens from the article of that name.
   Layout and controls follow the live Interactive Bible viewers (header, picture, card and stops), so a reader
   who has used one knows this one. Type is the site's brand type since 5 Nov 2026: GT Sectra for headings and
   Scripture, GT Pantheon Text for reading, GT Pantheon Micro for small text. The fonts load from the site. */

@font-face { font-family: 'GT Sectra'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Regular.woff') format('woff'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Regular.woff') format('woff'); }
@font-face { font-family: 'GT Sectra'; font-style: italic; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Regular-Italic.woff') format('woff'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Regular-Italic.woff') format('woff'); }
@font-face { font-family: 'GT Sectra'; font-style: normal; font-weight: 500; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Medium.woff') format('woff'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Medium.woff') format('woff'); }
@font-face { font-family: 'GT Pantheon Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Text-Regular.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Text-Regular.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Text-Regular-Italic.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Text-Regular-Italic.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Text-Medium.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Text-Medium.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Micro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Micro-Regular.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Micro-Regular.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Micro'; font-style: italic; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Micro-Regular-Italic.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Micro-Regular-Italic.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Micro'; font-style: normal; font-weight: 500; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Micro-Medium.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Micro-Medium.woff2') format('woff2'); }

:root {
  --page: #fffbf9;
  --band: #f8f2e8;
  --ink: #002159;
  --text: #002b63;
  --muted: #56607a;
  --gold: #c58c23;
  --gold-ink: #8f6418;
  --line: #e6ded3;
  --focus: #0951b1;
  --paper: #efe5d3;
  --water: #3d6784;
  --water-soft: #dce6ee;
  --night: #0b1428;
  --head-font: 'GT Sectra', Georgia, 'Times New Roman', serif;
  --body-font: 'GT Pantheon Text', Georgia, 'Times New Roman', serif;
  --label-font: 'GT Pantheon Micro', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--page); color: var(--text); }
body { font-family: var(--body-font); line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* The app: the header, the land, the bar. It fills the screen and never scrolls. */
.app { display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; overflow: clip; }

.head {
  flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 4px 10px; padding-top: max(4px, env(safe-area-inset-top)); background: var(--page); border-bottom: 1px solid var(--line);
  position: relative; z-index: 20; min-height: 52px;
}
.back {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; padding: 0 6px 0 2px;
  font: 400 16px/1 var(--body-font); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.back-arrow { font: 400 30px/1 var(--body-font); margin-top: -3px; }
.back-word { display: none; }
.back-more { display: none; margin-left: 0.24em; }
.back:hover .back-word, .back:hover .back-more { text-decoration: underline; text-underline-offset: 3px; }
.head h1 {
  margin: 0; min-width: 0; text-align: center; text-wrap: balance;
  font: 400 18px/1.12 var(--head-font); letter-spacing: -0.01em; color: var(--ink);
}
.about-btn {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; cursor: pointer;
  font: 400 16px/1 var(--body-font); color: var(--ink);
}
.about-btn:hover { border-color: var(--gold); }

.main { flex: 1 1 auto; min-height: 0; display: flex; position: relative; }
.view {
  position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; overflow: clip;
  background: var(--band); transition: background-color 0.5s;
}
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
#gl:active { cursor: grabbing; }
#gl:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }

.loading {
  position: absolute; inset: 0; display: grid; place-items: center; font: 400 17px var(--body-font);
  color: var(--muted); background: var(--paper); z-index: 20; transition: opacity 0.4s; padding: 0 24px; text-align: center;
}
.loading.done { opacity: 0; pointer-events: none; }


.card {
  flex: 0 0 auto; position: relative; min-width: 0; z-index: 10; background: var(--page); border-top: 1px solid var(--line);
  padding: 10px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom)); max-height: 25svh;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.card:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.card p, .card blockquote { margin: 0; }
.card-kicker { font: 400 13.5px/1.3 var(--body-font); color: var(--muted); margin-bottom: 3px !important; }
.card-kicker .n { font-variant-numeric: lining-nums tabular-nums; margin-right: 6px; }
.card-title { margin: 0; font: 400 21px/1.18 var(--head-font); color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
.card-body { margin-top: 6px; }
.card-body .q { font: italic 400 17px/1.34 var(--head-font); color: var(--ink); letter-spacing: -0.005em; }
.card-body .q cite { display: block; margin-top: 3px; font: 400 13.5px/1.3 var(--body-font); font-style: normal; color: var(--muted); }
.card-body .t { font: 400 15.5px/1.42 var(--body-font); color: var(--text); margin-top: 6px !important; }
.card-body .t:first-child { margin-top: 0 !important; }
.card-body .facts { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 7px 0 0; padding: 0; list-style: none; font: 400 14px/1.35 var(--body-font); color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.card-body .facts li span { color: var(--muted); margin-right: 4px; }
.card-body .who-list { list-style: none; margin: 6px 0 0; padding: 0; }
.card-body .who-list li { font: 400 15px/1.38 var(--body-font); padding: 3px 0; }
.card-body .who-list b { font-weight: 500; color: var(--ink); }
.card-body .act { margin-top: 8px !important; }
.card-body .extra { padding-top: 10px; }
/* All the words show; past the card's height they scroll inside it, with a fade at the foot while more is below. */
.card.more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.btn {
  min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); display: inline-flex; align-items: center;
  background: #fff; font: 400 16px/1 var(--body-font); color: var(--ink); cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--gold); }
.btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* About this view */
dialog#about {
  width: min(720px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); background: var(--page); box-shadow: 0 10px 40px rgba(0, 33, 89, 0.2);
}
dialog#about::backdrop { background: rgba(0, 20, 50, 0.45); }
.about-head {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px 10px 24px; background: var(--page); border-bottom: 1px solid var(--line);
}
.about-head h2 { margin: 0; font: 400 24px/1.2 var(--head-font); color: var(--ink); letter-spacing: -0.01em; }
.about-body { padding: 4px 24px 28px; }
.about-body h3 { margin: 26px 0 8px; font: 400 21px/1.25 var(--head-font); color: var(--ink); }
.about-body h4 { margin: 18px 0 2px; font: 500 17px/1.3 var(--body-font); color: var(--ink); }
.about-body p, .about-body dd { font: 400 17px/1.5 var(--body-font); margin: 0 0 12px; }
.reading-sum { color: var(--muted); font-size: 16px !important; margin-bottom: 6px !important; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; font: 400 16px/1.4 var(--body-font); }
kbd {
  font: 500 13px/1 var(--label-font); min-width: 24px; height: 24px; display: inline-grid; place-items: center; padding: 0 5px;
  border: 1px solid #d9d1c6; border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--ink);
}
.sources, .more { padding-left: 20px; margin: 0; }
.sources li, .more li { font: 400 15.5px/1.45 var(--body-font); margin: 6px 0; overflow-wrap: anywhere; }
.more li { font-size: 16.5px; }

/* Hide (H): only the land, and one button to bring the rest back */
.show-ui { display: none; }
.hide-ui .head, .hide-ui .topband, .hide-ui .stepper, .hide-ui .card, .hide-ui .inset { display: none !important; }
.hide-ui .show-ui {
  display: block; position: absolute; right: 12px; top: 12px; z-index: 16; min-height: 44px; padding: 0 16px;
  border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 251, 249, 0.95); font: 400 16px var(--body-font); color: var(--ink); cursor: pointer;
}

/* ---------- phones: the card shows its title and first lines; More opens the rest over the land ---------- */
@media (max-width: 899px) {
  .card-title { font-size: 20px; }
  .inset { right: 10px; top: 10px; width: min(54%, 230px); padding: 4px 4px 5px; }
  .inset figcaption { font-size: 11.5px; }
  .inset.xsec-inset { left: 10px; right: 10px; width: auto; }
  .corner { flex-wrap: wrap; justify-content: flex-end; max-width: 150px; column-gap: 10px; row-gap: 4px; right: 8px; bottom: 8px; padding: 4px 7px; }
  .corner .north { flex-direction: row; gap: 2px; }
  dialog#about { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; }
  .about-head { padding: 6px 12px 6px 18px; padding-top: max(6px, env(safe-area-inset-top)); }
  .about-head h2 { font-size: 22px; }
  .about-body { padding: 2px 18px 28px; }
  .about-body p, .about-body dd { font-size: 16.5px; }
}
@media (max-width: 360px) { .head h1 { font-size: 16.5px; } }

/* ---------- laptops: the back link in words; the card in three columns, title, words, facts ---------- */
@media (min-width: 900px) {
  .head { padding: 6px 24px; grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr); }
  .back { font-size: 17px; }
  .back-word, .back-more { display: inline; }
  .head h1 { font-size: 25px; white-space: nowrap; }
  .about-btn { justify-self: end; font-size: 17px; }
  .pin .tagbox { font-size: 14px; }
  .pin.candidate .tagbox b { font-size: 16.5px; }
  .card {
    display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 940px); column-gap: 40px; align-items: start; justify-content: center;
    max-height: 212px; padding: 14px 28px 16px;
  }
  .card-title { font-size: 25px; }
  .card-kicker { font-size: 14px; }
  .card-body { margin-top: 2px; display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 36px; align-content: start; }
  .card-body > * { grid-column: 1; }
  .card-body > .facts { grid-column: 2; grid-row: 1 / span 6; flex-direction: column; gap: 6px; margin: 2px 0 0; }
  .card-body > .facts li span { display: block; font-size: 13px; margin: 0; }
  .card-body .q { font-size: 19px; }
  .card-body .t { font-size: 16px; }
  .card-body .facts { font-size: 14.5px; }
  .corner { right: 20px; bottom: 14px; }
  .inset { right: 20px; top: 20px; }
}
@media (min-width: 1500px) { .card { grid-template-columns: 360px minmax(0, 1000px); } .inset { width: 360px; } }

@media (prefers-reduced-motion: reduce) { .loading { transition: none; } }

/* ---------- recording (?record=1): the land alone, with its own captions ---------- */
.rec-layer { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
body.record .head, body.record .topband, body.record .stepper, body.record .card, body.record .loading, body.record .show-ui, body.record .corner, body.record .inset { display: none !important; }
body.record .app { height: 100vh; min-height: 0; }
body.record *, body.record *::after { transition: none !important; }
body.record .pin { will-change: auto; }
.rec-tag { position: absolute; margin: 0; font: 400 13px/1 var(--label-font); color: var(--muted); background: rgba(255, 251, 249, 0.86); border-radius: 4px; padding: 3px 8px; }
.rec-tag span { color: var(--gold-ink); }
.rec-cap { position: absolute; color: var(--ink); background: rgba(255, 251, 249, 0.95); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 14px rgba(0, 33, 89, 0.1); }
.rec-cap h2 { font: 400 32px/1.14 var(--head-font); margin: 0; letter-spacing: -0.01em; }
.rec-cap p { margin: 0; font: 400 18px/1.36 var(--body-font); color: var(--text); }
.rec-kicker { font: 400 14px/1.3 var(--body-font) !important; color: var(--gold-ink) !important; }
.rec-photo { position: absolute; margin: 0; background: var(--page); padding: 6px 6px 4px; border-radius: 6px; box-shadow: 0 2px 14px rgba(0, 33, 89, 0.18); }
.rec-photo img { display: block; width: 100%; height: auto; border-radius: 3px; background: var(--paper); }
.rec-photo figcaption { font-family: var(--label-font); color: var(--muted); margin-top: 3px; line-height: 1.25; }
.rec-credit { position: absolute; margin: 0; font-family: var(--label-font); color: var(--text); line-height: 1.35; }
body.rec-reel .rec-tag { left: 26px; top: 22px; }
body.rec-reel .rec-cap { left: 26px; right: 86px; top: 58px; padding: 14px 18px 16px; }
body.rec-reel .rec-cap h2 { font-size: 36px; }
body.rec-reel .rec-cap p { font-size: 22px; margin-top: 8px; }
body.rec-reel .rec-kicker { margin: 0 0 6px !important; }
body.rec-reel .rec-photo { left: 26px; right: 86px; top: 436px; }
body.rec-reel .rec-photo figcaption { font-size: 12px; }
body.rec-reel .rec-credit { left: 26px; right: 86px; top: 520px; font-size: 15px; background: rgba(255, 251, 249, 0.9); border-radius: 8px; padding: 10px 14px; }
body.rec-reel .pin .tagbox { font-size: 16px; padding: 3px 9px 4px; }
body.rec-reel .pin.candidate .tagbox b { font-size: 19px; }
body.rec-wide .rec-tag { left: 26px; top: 20px; font-size: 11.5px; }
body.rec-wide .rec-cap { left: 26px; bottom: 26px; max-width: 470px; padding: 10px 14px 12px; }
body.rec-wide .rec-cap.cap-right { left: auto; right: 26px; }
body.rec-wide .rec-cap h2 { font-size: 25px; }
body.rec-wide .rec-cap p { font-size: 15.5px; margin-top: 4px; }
body.rec-wide .rec-kicker { font-size: 11px !important; margin: 0 0 3px !important; }
body.rec-wide .rec-photo { right: 26px; top: 26px; width: 330px; }
body.rec-wide .rec-photo figcaption { font-size: 10px; }
body.rec-wide .rec-credit { right: 26px; top: 20px; max-width: 360px; font-size: 11.5px; background: rgba(255, 251, 249, 0.9); border-radius: 6px; padding: 8px 11px; }
body.rec-nocap .rec-cap { display: none !important; }

/* ---------- this piece: the picture's layers ---------- */
.view.dark { background: var(--night); }
#gl { touch-action: pan-y; transition: opacity 0.45s; }
#gl.off { opacity: 0; pointer-events: none; }
.diagram { position: absolute; inset: 0; z-index: 2; transition: opacity 0.45s; }
.diagram.off { opacity: 0; pointer-events: none; }
.diagram svg { display: block; width: 100%; height: 100%; overflow: visible; }
.diagram text { font-family: var(--label-font); fill: var(--muted); }
.diagram .t-ink { fill: var(--ink); }
.diagram .t-head { font-family: var(--head-font); fill: var(--ink); }
.diagram .t-q { font-family: var(--head-font); font-style: italic; fill: var(--ink); }
.diagram .t-cite { fill: var(--muted); }
.diagram .t-gold { fill: var(--gold-ink); }
.diagram .t-water { fill: var(--water); }
.diagram .t-light { fill: #e9edf4; }

.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.lab {
  position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform;
  font: 400 13.5px/1.2 var(--label-font); color: var(--ink);
  background: rgba(255, 251, 249, 0.95); border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px;
}
.lab small { color: var(--muted); margin-left: 5px; font-size: 12.5px; font-variant-numeric: lining-nums tabular-nums; }
.lab.f { border-color: #e0c48c; box-shadow: inset 3px 0 0 var(--gold); padding-left: 10px; }
.lab.w { border-color: #b8c9d8; box-shadow: inset 3px 0 0 var(--water); padding-left: 10px; }
.dark .lab { background: rgba(14, 24, 46, 0.86); color: #eef2f8; border-color: rgba(255, 255, 255, 0.2); }
.dark .lab small { color: #aab6cc; }
.dark .lab.f { border-color: rgba(229, 189, 108, 0.65); box-shadow: inset 3px 0 0 #e5bd6c; }
.dark .lab.w { border-color: rgba(140, 180, 214, 0.65); box-shadow: inset 3px 0 0 #8cb4d6; }

/* The key: gold is always the firmament, blue always the waters above */
.key {
  position: absolute; left: 12px; top: 10px; z-index: 4; display: flex; flex-wrap: wrap; gap: 4px 14px; pointer-events: none;
  font: 400 13px/1.2 var(--label-font); color: var(--ink); background: rgba(255, 251, 249, 0.9); padding: 6px 9px; border-radius: 6px;
}
.key-item { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 18px; height: 10px; border-radius: 2px; }
.sw-f { background: rgba(197, 140, 35, 0.35); box-shadow: inset 0 0 0 1.5px var(--gold); }
.sw-w { background: rgba(61, 103, 132, 0.25); box-shadow: inset 0 0 0 1.5px var(--water); }
.dark .key { background: rgba(14, 24, 46, 0.8); color: #eef2f8; }
.dark .sw-f { background: rgba(229, 189, 108, 0.3); box-shadow: inset 0 0 0 1.5px #e5bd6c; }
.dark .sw-w { background: rgba(140, 180, 214, 0.25); box-shadow: inset 0 0 0 1.5px #8cb4d6; }

/* The one verse that stays at the foot of every picture */
.constant {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 4; margin: 0; width: max-content; max-width: calc(100% - 24px);
  text-align: center; pointer-events: none; font: italic 400 16px/1.3 var(--head-font); color: var(--ink);
  background: rgba(255, 251, 249, 0.88); padding: 5px 12px 6px; border-radius: 6px; text-wrap: balance;
}
.constant cite { font: 400 13px/1 var(--label-font); font-style: normal; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.dark .constant { background: rgba(14, 24, 46, 0.78); color: #eef2f8; }
.dark .constant cite { color: #aab6cc; }

/* All of space: the distance, from the earth to the edge of what can be seen */
.dist {
  position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); bottom: 54px; width: min(560px, calc(100% - 24px));
  background: rgba(14, 24, 46, 0.86); color: #eef2f8; border-radius: 10px; padding: 8px 14px 6px;
}
.dist-label { display: flex; justify-content: space-between; gap: 10px; font: 400 14px/1.3 var(--label-font); color: #c6d0e2; }
.dist-label b { font: 500 15px/1.3 var(--label-font); color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.dist input { width: 100%; height: 32px; margin: 2px 0 0; accent-color: #e5bd6c; cursor: pointer; }
.dist-ends { display: flex; justify-content: space-between; font: 400 12px/1.2 var(--label-font); color: #9eabc2; }

/* Buttons inside the card */
.card-body .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.card-body .acts .btn { min-height: 40px; font-size: 15px; padding: 0 14px; }
.card-body .facts li { max-width: 100%; }

@media (max-width: 899px) {
  .key { left: 8px; top: 8px; font-size: 12.5px; padding: 5px 8px; }
  .constant { font-size: 14.5px; bottom: 8px; padding: 4px 10px 5px; }
  .constant cite { font-size: 12px; }
  .dist { bottom: 64px; padding: 6px 12px 4px; }
  .lab { font-size: 12.5px; padding: 2px 6px; }
  .card-body .acts { margin-top: 12px !important; }
}
@media (min-width: 900px) {
  .key { left: 20px; top: 16px; font-size: 14px; }
  .constant { font-size: 18px; bottom: 14px; }
  .lab { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { #gl, .diagram { transition: none; } }

/* Words on the drawn pictures */
.diagram .lab { position: absolute; left: 0; top: 0; }
.wband { position: absolute; }
.wb-h { font: 400 21px/1.15 var(--head-font); color: var(--ink); }
.wband.w .wb-h { color: var(--water); }
.wband.f .wb-h { color: var(--gold-ink); }
.wb-q { margin-top: 5px; font: italic 400 17px/1.3 var(--head-font); color: var(--ink); }
.wb-q cite, .wnote cite { font: 400 13px/1 var(--label-font); font-style: normal; color: var(--muted); white-space: nowrap; }
.wnote { position: absolute; font: 400 15px/1.45 var(--body-font); color: var(--text); }
.dnote { position: absolute; margin: 0; font: 400 14px/1.35 var(--label-font); color: var(--muted); }
@media (max-width: 899px) {
  .wb-h { font-size: 17px; }
  .wb-q { font-size: 15px; margin-top: 3px; }
  .wnote { font-size: 13.5px; line-height: 1.38; }
  .dnote { font-size: 12.5px; }
}

/* ---------- the controls frame the picture: Previous, the picture's name and a Next that names where it goes sit on
   the picture's bottom edge; the words come after, in their own band that scrolls (owner's pick A, 7 Nov 2026, the
   same for every Interactive Bible piece; the band above holds a picture's own button, on the two pictures that have one) ---------- */
.main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
.main > * { grid-column: 1; }
.topband { grid-row: 1; background: var(--page); border-bottom: 1px solid var(--line); padding: 6px 12px; position: relative; z-index: 12; }
.topband[hidden] { display: none; }
.topband .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.topband .acts .btn { min-height: 44px; font-size: 16px; padding: 0 18px; }
.view { grid-row: 2; }
.stepper { grid-row: 3; background: var(--page); border-top: 1px solid var(--line); padding: 6px 12px 8px; position: relative; z-index: 12; }
.step-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; max-width: 1100px; margin: 0 auto; }
.step {
  min-height: 48px; min-width: 48px; padding: 0 16px; border-radius: 24px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 400 16px/1.1 var(--body-font); color: var(--ink); white-space: nowrap;
}
.step .chev { font: 400 26px/1 var(--body-font); margin-top: -3px; }
.step.next { background: var(--ink); border-color: var(--ink); color: #fff; max-width: 46vw; border-radius: 26px; padding: 0 10px 0 16px; }
.step.next .step-word { display: flex; flex-direction: column; align-items: flex-start; text-align: left; white-space: normal; padding: 5px 0; }
.next-label { font: 400 12.5px/1.2 var(--label-font); color: #c9d3e6; }
.next-to { font: 400 16px/1.15 var(--body-font); }
.step.next.end .next-label { display: none; }
.step.prev { padding: 0; width: 48px; }
.step.prev .step-word { display: none; }
.step:hover { border-color: var(--gold); }
.step:disabled { opacity: 0.4; cursor: default; }
.here { min-width: 0; }
.here-name { margin: 0; font: 400 21px/1.15 var(--head-font); color: var(--ink); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.here-n { margin: 1px 0 0; font: 400 13.5px/1.25 var(--label-font); color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 899px) {
  .here-name { font-size: 19px; line-height: 1.12; white-space: normal; text-wrap: balance; } /* a long name wraps rather than being cut short */
  .step-row { gap: 8px; }
  .step.prev { width: 44px; min-width: 44px; min-height: 44px; }
  .here-n { font-size: 13px; }
}
@media (min-width: 900px) {
  .stepper { padding: 8px 28px 10px; }
  .step.prev { width: auto; padding: 0 16px 0 12px; }
  .step.prev .step-word { display: inline; }
  .step.next { max-width: none; padding: 0 14px 0 20px; }
  .step.next .step-word { flex-direction: row; align-items: baseline; gap: 0; padding: 0; white-space: nowrap; }
  .next-label { font: inherit; color: inherit; }
  .next-label::after { content: ':\00a0'; }
  .next-to { font: inherit; }
  .here-name { font-size: 24px; }
}
