/* Oustory covenant reading layer. No imported biblical imagery. */
:root{--covenant-gold:#c9a227;--covenant-red:#8b0000;--note-border:#b59a52}
:root[data-theme=paper]{--note-border:#b99b4d}
/* Oustory navigation: editorial finish, five reliable thumb targets, no emoji glyphs. */
:root{--nav-accent:#e1bc64;--nav-selected:rgb(225 188 100 / 13%);--nav-border:rgb(225 188 100 / 22%)}
:root[data-theme=paper]{--nav-accent:#8d691b;--nav-selected:rgb(141 105 27 / 11%);--nav-border:rgb(141 105 27 / 24%)}
.bottom-dock{
  grid-template-columns:repeat(5,minmax(0,1fr));
  width:min(calc(100% - 24px),560px);left:12px;right:12px;
  bottom:calc(9px + env(safe-area-inset-bottom,0px));padding:6px;gap:3px;
  border-radius:25px;border:1px solid var(--line);
  background:var(--dock);
  box-shadow:0 14px 40px rgb(0 0 0 / 22%),0 1px 0 rgb(255 255 255 / 7%) inset;
  -webkit-backdrop-filter:blur(28px) saturate(135%);backdrop-filter:blur(28px) saturate(135%);
}
.bottom-dock .dock-button{
  position:relative;min-width:0;min-height:62px;padding:10px 2px 8px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  border:1px solid transparent;border-radius:18px;background:transparent;color:var(--muted);
  font-size:10px;font-weight:600;line-height:1.1;letter-spacing:.015em;
  transition:background-color .18s ease,color .18s ease,transform .18s ease;
}
.bottom-dock .dock-button .nav-icon{width:23px;height:23px;flex:none;stroke-width:1.8;transition:transform .18s ease}
.bottom-dock .dock-button .dock-label{display:block;white-space:nowrap}
.bottom-dock .dock-button[aria-current=page]{
  background:var(--nav-selected);border-color:var(--nav-border);
  color:var(--nav-accent);box-shadow:0 1px 5px rgb(0 0 0 / 8%) inset;
}
.bottom-dock .dock-button[aria-current=page]::before{
  content:"";position:absolute;top:3px;width:18px;height:2px;border-radius:4px;
  background:var(--nav-accent);
}
.bottom-dock .dock-button[aria-current=page] .nav-icon{stroke-width:2.1}
.bottom-dock .dock-button:focus-visible{outline:2px solid var(--nav-accent);outline-offset:2px}
.bottom-dock .dock-button:active{transform:scale(.96)}
@media(hover:hover){.bottom-dock .dock-button:not([aria-current=page]):hover{background:var(--selected);color:var(--text)}}
@media(max-width:360px){
  .bottom-dock{left:7px;right:7px;width:calc(100% - 14px);gap:1px;padding:5px}
  .bottom-dock .dock-button{font-size:9px;min-height:60px;gap:4px}
  .bottom-dock .dock-button .nav-icon{width:22px;height:22px}
}
@media(prefers-reduced-motion:reduce){.bottom-dock .dock-button,.bottom-dock .nav-icon{transition:none}}

body.feature-mode .chapter-navigation{display:none}
body.feature-mode .reading-column{display:none}
.feature-root{width:min(100%,760px);min-height:100%;margin:auto;padding:30px 20px calc(130px + env(safe-area-inset-bottom,0px))}
.feature-eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:11px;font-weight:700;color:var(--covenant-gold);margin:0 0 9px}
.feature-title{font-family:Georgia,serif;font-size:clamp(29px,7vw,43px);font-weight:500;line-height:1.12;letter-spacing:-.04em;margin:0 0 13px}
.feature-description{color:var(--muted);line-height:1.65;font-size:14px;margin:0 0 22px}
.feature-card{border:1px solid var(--line);background:var(--sheet);border-radius:20px;padding:21px;margin:12px 0;box-shadow:0 2px 14px rgba(0,0,0,.04)}
.feature-card h2,.feature-card h3{font-size:17px;margin:0 0 11px;letter-spacing:-.02em}
.feature-card p{font-size:14px;line-height:1.6;margin:8px 0;color:var(--muted)}
.feature-verse{font-family:Georgia,"Times New Roman",serif;font-size:clamp(19px,4.6vw,24px)!important;line-height:1.6!important;color:var(--text)!important}
.feature-kicker{font-size:11px!important;text-transform:uppercase;letter-spacing:.12em;color:var(--covenant-gold)!important;font-weight:700}
.feature-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}
.feature-action{min-height:42px;padding:10px 15px;border-radius:99px;border:1px solid var(--note-border);background:transparent;color:var(--text);font-size:13px;font-weight:600}
.feature-action.primary{background:var(--covenant-gold);border-color:var(--covenant-gold);color:#141210}
.feature-action:focus-visible,.verse-entry:focus-visible{outline:2px solid var(--covenant-gold);outline-offset:3px}
.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.feature-grid .feature-card{margin:0;min-height:110px}
.feature-list{display:grid;gap:8px}
.feature-list button{display:block;width:100%;padding:14px 10px;text-align:left;background:transparent;color:var(--text);border:0;border-bottom:1px solid var(--line);font-size:15px}
.feature-list button small{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}
.feature-status{font-size:12px;line-height:1.6;color:var(--muted)}
.feature-warning{border-left:3px solid var(--covenant-red);padding-left:11px}
.feature-note-type{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
#verse-panel{padding-top:22px}
#verse-panel h2{font-family:Georgia,serif;font-size:24px}
#verse-panel .verse-text{font-family:Georgia,serif;font-size:19px;line-height:1.7;color:var(--text)}
#verse-panel .note-text{white-space:pre-wrap;line-height:1.65;font-size:14px}
#verse-panel .feature-actions{margin-bottom:20px}
/* Tapping any Bible verse opens immediate, thumb-friendly Copy/Share tools. */
#verse-panel .verse-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0 4px}
#verse-panel .verse-quick-actions .feature-action{min-width:0;min-height:50px;padding:11px 8px;text-align:center}
#verse-panel .verse-quick-actions .feature-action:nth-child(2){background:var(--control);border-color:var(--line)}
#verse-panel #verse-feedback{min-height:1.4em;margin:6px 0 12px}
#verse-panel .verse-more{border-top:1px solid var(--line);padding-top:12px;margin-top:10px}
#verse-panel .verse-more summary{cursor:pointer;color:var(--muted);font-size:14px}

.verse-entry{border-radius:4px;cursor:pointer;-webkit-tap-highlight-color:rgba(201,162,39,.15)}
.verse-entry:active{background:var(--selected)}
.verse-entry.is-highlighted{background:rgba(201,162,39,.19);box-decoration-break:clone;-webkit-box-decoration-break:clone}
.verse-entry.has-editorial-note .verse-number{color:var(--covenant-gold)}
.verse-entry .note-mark{font-size:.62em;vertical-align:super;color:var(--covenant-gold);font-weight:700;margin:0 .08em}
@media(max-width:390px){.feature-root{padding-inline:15px}.feature-card{padding:17px}.feature-grid{gap:8px}.bottom-dock .dock-button{font-size:9px}}

/* Scripture is a reading surface, not UI chrome. */
.scripture{font-family:var(--reader-font, Georgia, "Times New Roman", serif);letter-spacing:-.012em}
.reader-source-disclosure{font-size:12px;line-height:1.55;color:var(--muted);margin:-8px 0 25px;padding:10px 13px;border-left:2px solid var(--note-border);background:var(--selected)}


/* Native chapter narration stays compact and directly below the chapter heading. */
.chapter-audio{display:grid;gap:7px;margin:-3px 0 19px;padding:10px 12px 9px;border:1px solid var(--line);border-radius:16px;background:var(--sheet)}
.chapter-audio-controls{display:flex;gap:10px;align-items:center;min-width:0}
.chapter-audio button{cursor:pointer;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;flex:0 0 auto}
.chapter-audio .audio-play{width:44px;height:44px;color:#141210;background:var(--covenant-gold);border-color:var(--covenant-gold);font-size:19px;line-height:1;font-weight:700}
.chapter-audio .audio-stop{width:44px;height:44px;background:var(--control);color:var(--text);font-size:12px}
.chapter-audio button:disabled{opacity:.32}
.chapter-audio .audio-speed{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;margin-left:auto;white-space:nowrap}
.chapter-audio .audio-speed select{min-width:64px;max-width:76px;border:1px solid var(--line);border-radius:9px;background:var(--control);color:var(--text);padding:6px 3px;font-size:14px}
.chapter-audio .audio-progress{font-variant-numeric:tabular-nums;color:var(--muted);font-size:12px;white-space:nowrap;min-width:42px;text-align:right}
.chapter-audio .audio-volume{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;white-space:nowrap}
.chapter-audio .audio-volume input[type=range]{flex:1;min-width:0;accent-color:var(--covenant-gold)}
.chapter-audio .audio-volume-value{font-variant-numeric:tabular-nums;min-width:38px;text-align:right}
.chapter-audio .audio-status{display:block;color:var(--muted);font-size:12px;line-height:1.4;min-height:17px}
.chapter-audio[data-audio-state=playing] .audio-status{color:var(--covenant-gold)}
.chapter-audio :focus-visible{outline:2px solid var(--covenant-gold);outline-offset:3px}

/* T1 RESTORED 2026-10-28 as part of the follow-along package (with T4 verse
   timings). The earlier revert was on a misread of the user's report: manual
   scrolling was never broken — the missing feature was audio-driven
   follow-along, which lives in the timed-mode engine, not in this rule.
   This rule only keeps the player card visible while the text follows. */
.chapter-audio{position:sticky;top:8px;z-index:11;box-shadow:0 6px 20px rgb(0 0 0 / 18%)}
@media(max-width:360px){.chapter-audio-controls{gap:6px}.chapter-audio{padding-inline:9px}.chapter-audio .audio-speed{gap:3px}}

/* Current Covenant Bible cover mark: visible in Home as well as the app menu and About. */
.oustory-home-identity{display:flex;align-items:center;gap:13px;margin:0 0 22px;min-width:0}
.oustory-home-identity img{display:block;width:58px;height:58px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 6px rgba(0,0,0,.19))}
.oustory-home-identity strong,.oustory-home-identity span{display:block}
.oustory-home-identity strong{font-family:Georgia,serif;font-size:18px;line-height:1.35;color:var(--text)}
.oustory-home-identity span{margin-top:3px;font-size:11px;letter-spacing:.025em;color:var(--muted)}

/* Supplemental historical English source sections: natural paragraphs, no artificial verse numbers. */
#scripture .supplemental-paragraph{margin:0 0 1.15em;line-height:var(--leading,1.85);overflow-wrap:anywhere;white-space:normal}
#scripture .supplemental-verse{display:inline}

.chapter-audio-seek{display:flex;gap:10px;align-items:center}
.chapter-audio-seek input[type=range]{flex:1;min-width:0;accent-color:var(--covenant-gold)}
.chapter-audio-seek input[type=range]:disabled{opacity:.32}
.chapter-audio .audio-time{font-variant-numeric:tabular-nums;color:var(--muted);font-size:12px;white-space:nowrap;min-width:52px;text-align:right}
.verse-entry.is-audio-current{text-decoration:underline;text-decoration-color:var(--covenant-gold);text-decoration-thickness:2px;text-underline-offset:4px}

/* Dock links to prototype pages (Archive/Spatial) — anchors styled as dock buttons */
.bottom-dock a.dock-button{text-decoration:none;color:inherit}

/* Spatial view: in-place depth on the existing mobile-first layout (layered
   cards + perspective lifts, Packet Lily technique). No layout change, no new
   tab: the More menu toggles html.spatial-on, remembered per device. */
html.spatial-on #scripture{border-radius:14px;box-shadow:inset 0 0 0 1px var(--line),inset 0 22px 38px -24px rgb(0 0 0 / .85);background:linear-gradient(180deg,rgb(201 162 39 / 5%),transparent 200px)}
html.spatial-on #chapter-title{background:linear-gradient(180deg,rgb(201 162 39 / 13%),rgb(201 162 39 / 3%));border:1px solid var(--nav-border);border-radius:12px;padding:10px 14px;box-shadow:0 16px 30px rgb(0 0 0 / .5)}
html.spatial-on .chapter-audio{transform:perspective(1000px) rotateX(1deg);box-shadow:0 18px 34px rgb(0 0 0 / .5),0 3px 8px rgb(0 0 0 / .45)}
html.spatial-on #books-panel,html.spatial-on #saved-panel,html.spatial-on #search-panel,html.spatial-on #verse-panel,html.spatial-on #settings-panel,html.spatial-on #oustory-menu{transform:perspective(1100px) rotateX(1.6deg);transform-origin:50% 100%;box-shadow:0 34px 70px rgb(0 0 0 / .6),0 10px 22px rgb(0 0 0 / .5),0 0 0 1px var(--nav-border)}
/* (list rows redesigned below — crafted surfaces in every mode) */
html.spatial-on .bottom-dock{transform:perspective(900px) rotateX(-1.2deg);box-shadow:0 22px 44px rgb(0 0 0 / .65),0 4px 12px rgb(0 0 0 / .5),0 0 0 1px var(--nav-border)}
@media (prefers-reduced-motion:reduce){
  html.spatial-on .chapter-audio,html.spatial-on #books-panel,html.spatial-on #saved-panel,html.spatial-on #search-panel,html.spatial-on #verse-panel,html.spatial-on #settings-panel,html.spatial-on #oustory-menu,html.spatial-on .bottom-dock{transform:none}
}

/* Spatial v2: the environment. A living backdrop behind the reader — gold
   glow, the Oustory tree emblem ghosted through (screen blend drops its
   black), a vignette — so the cards float in a place, not a void. */
html.spatial-on:not([data-theme="paper"]) body{background:transparent}
html.spatial-on .chapter-audio{background:linear-gradient(180deg,#1e1a14,#131109);border:1px solid var(--nav-border)}

/* Spatial v3: objects in space, no imagery. Receding dark planes with gold
   edge-light, a horizon line and a low orb glow — all gradient geometry on
   the root background, so it sits behind everything and never fights the
   letters. The center behind the text stays the darkest plane. */

/* Spatial v4: breathing room — the bubbles give the text space from their
   edges (his ruling: letters were crowding the frame). */
html.spatial-on #scripture{padding:22px 21px 28px}
html.spatial-on #chapter-title{padding:15px 19px}
html.spatial-on .chapter-audio{padding:17px 17px 15px}

/* Spatial v5: the reading bubble is a real framed surface — visible border,
   generous inside padding, and a calm solid fill so the background planes
   show around the words, never through them. */
html.spatial-on #scripture{padding:26px 24px 32px;border:1px solid var(--nav-border);background:linear-gradient(180deg,rgb(201 162 39 / 6%),rgb(0 0 0 / 22%) 240px),rgb(15 12 9 / .88);box-shadow:0 24px 48px rgb(0 0 0 / .55),inset 0 1px 0 rgb(245 240 230 / 5%)}

/* Spatial v6: VAULT — the design he picked. A perspective floor: gold grid
   lines converging to a vanishing point on a horizon at 72% height, a glow
   at the horizon, the upper field calm and dark behind the words. Pure
   gradient geometry on the root background; geometry only below the horizon
   (a cover layer keeps the reading field clean). */
html.spatial-on:not([data-theme="paper"]){
  background:
    radial-gradient(120% 55% at 50% -8%, rgb(201 162 39 / .12), transparent 60%),
    radial-gradient(58% 20% at 50% 72%, rgb(201 162 39 / .17), transparent 70%),
    radial-gradient(95% 90% at 50% 45%, transparent 52%, rgb(0 0 0 / .5)),
    repeating-linear-gradient(45deg, rgb(245 240 230 / .014) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #141210 0, #141210 71.4%, transparent 72.6%),
    linear-gradient(180deg, transparent 71.8%, rgb(233 205 128 / .55) 72.1%, transparent 72.9%),
    repeating-conic-gradient(from 180deg at 50% 72%, rgb(201 162 39 / .22) 0deg .55deg, transparent .55deg 9deg),
    repeating-linear-gradient(180deg, rgb(201 162 39 / .13) 0 1px, transparent 1px 30px),
    linear-gradient(180deg, transparent 72%, rgb(27 22 15 / .92) 74%, rgb(9 8 6) 100%),
    #141210;
  background-attachment: fixed;
}

/* Focus mode: chrome steps away, the reading stays. Toggled from the More
   menu; a single quiet pill is the way back. */
#focus-exit{display:none;position:fixed;left:50%;transform:translateX(-50%);bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:60;padding:9px 18px;border-radius:99px;border:1px solid var(--nav-border);background:rgb(20 18 16 / .92);color:var(--ink,#f5f0e6);font-size:13px;letter-spacing:.02em}
html.focus-on #focus-exit{display:block}
html.focus-on .toolbar,html.focus-on .bottom-dock,html.focus-on .chapter-navigation{display:none}

/* List design: book, chapter and saved rows as crafted items — lit top edge,
   real inside padding, label centered — not flat slabs. Every mode. */
#book-list{display:grid;gap:9px}
#book-list .list-button,#saved-list .list-button{display:flex;align-items:center;min-height:56px;padding:13px 18px;border:1px solid rgb(201 162 39 / .20);border-radius:14px;background:linear-gradient(180deg,#1e1a14,#12100d);box-shadow:inset 0 1px 0 rgb(245 240 230 / .06),0 8px 18px rgb(0 0 0 / .35);font-size:16px;line-height:1.35;text-align:left}
#book-list .list-button:active,#saved-list .list-button:active{border-color:rgb(201 162 39 / .45)}
.chapter-grid button{border:1px solid rgb(201 162 39 / .18);border-radius:12px;background:linear-gradient(180deg,#1e1a14,#12100d);box-shadow:inset 0 1px 0 rgb(245 240 230 / .06);font-size:15px}
.chapter-grid button[aria-current="true"]{background:linear-gradient(180deg,#dcb845,#c9a227);color:#141210;font-weight:700;border-color:#c9a227}

/* CONCORDANCE — the design language he picked (2026-10-29): a printed index.
   No cards, no glass, no translucency: hairline rules, gold index numerals,
   dotted leaders, tabular counts; the text sits on the page under a ruled
   chapter heading with a gold drop folio; the player is a slim ruled bar. */
#book-list{display:block}
#book-list .list-button,#saved-list .list-button{display:flex;align-items:baseline;gap:14px;width:100%;min-height:0;padding:15px 4px;border:0;border-bottom:1px solid rgb(245 240 230 / .13);border-radius:0;background:transparent;box-shadow:none;font-size:16px;line-height:1.3;text-align:left}
.bk-num{color:var(--covenant-gold);font-size:12.5px;font-weight:600;letter-spacing:.08em;font-variant-numeric:tabular-nums;min-width:24px}
.bk-title{font-family:Georgia,"Times New Roman",serif;font-size:17.5px}
.bk-leader{flex:1;border-bottom:1px dotted rgb(245 240 230 / .25);transform:translateY(-4px)}
.bk-count{color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums;letter-spacing:.04em;white-space:nowrap}
.chapter-picker-title{margin:22px 0 4px;padding-bottom:10px;border-bottom:1px solid rgb(201 162 39 / .5);font-size:13px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--covenant-gold)}
.chapter-grid{gap:0;border-top:1px solid rgb(245 240 230 / .13)}
.chapter-grid button{min-height:48px;border:0;border-bottom:1px solid rgb(245 240 230 / .13);border-radius:0;background:transparent;box-shadow:none;font-family:Georgia,"Times New Roman",serif;font-size:16px}
.chapter-grid button[aria-current="true"]{background:transparent;color:var(--covenant-gold);font-weight:700;box-shadow:inset 0 -2px 0 var(--covenant-gold)}
.chapter-title{font-size:19px;letter-spacing:.16em;text-transform:uppercase;border-top:1px solid rgb(201 162 39 / .55);border-bottom:1px solid rgb(245 240 230 / .16);padding:13px 0 12px;margin:0 0 22px}
html.spatial-on #chapter-title{background:none;border:0;border-top:1px solid rgb(201 162 39 / .55);border-bottom:1px solid rgb(245 240 230 / .16);border-radius:0;box-shadow:none;padding:13px 0 12px}
.chapter-audio{border:0;border-top:1px solid rgb(201 162 39 / .4);border-bottom:1px solid rgb(245 240 230 / .13);border-radius:0;background:transparent;box-shadow:none;padding:14px 2px}
html.spatial-on .chapter-audio{transform:none;background:transparent;box-shadow:none;border:0;border-top:1px solid rgb(201 162 39 / .4);border-bottom:1px solid rgb(245 240 230 / .13);border-radius:0;padding:14px 2px}
html.spatial-on #scripture{border:0;border-radius:0;background:none;box-shadow:none;padding:0}
#scripture{position:relative}
#scripture[data-chapter]::before{content:attr(data-chapter);float:left;font-family:Georgia,"Times New Roman",serif;font-size:62px;line-height:.78;font-weight:600;color:var(--covenant-gold);padding:8px 14px 0 0}
.sheet-header h2{font-size:14.5px;letter-spacing:.18em;text-transform:uppercase}

/* Passage (multi-verse) selection — bar floats above the chapter arrows;
   selected verses carry a deeper gold wash than a single highlight. */
.verse-entry.is-range-selected {
  background: rgba(201, 162, 39, 0.32);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.passage-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(168px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: min(calc(100% - 32px), 540px);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 16px;
  background: #1e1a14;
  color: #f5f0e6;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.passage-label {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.passage-actions { display: flex; gap: 6px; flex: none; }
.passage-close {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(245, 240, 230, 0.75);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.passage-close:hover { background: rgba(245, 240, 230, 0.1); color: #f5f0e6; }
