/* Mastering the Bible — site styles (mobile first) */

:root {
  --navy: #173a5e;
  --navy-deep: #0f2a45;
  --navy-soft: #24507a;
  --gold: #b7832f;
  --gold-ink: #6b4a14;
  --gold-soft: #ecd3a3;
  --ink: #1f2b37;
  --ink-2: #3d4a57;
  --muted: #52606d;
  --line: #d8e1e8;
  --line-2: #e6ecf1;
  --tint: #eaf2f8;
  --page: #f6f8fa;
  --card: #ffffff;
  --cream: #fffdf8;
  --off: #eef1f4;
  --off-ink: #7b8794;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --gutter: 16px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy-deep); color: #fff;
}
.topbar .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand {
  color: #fff; text-decoration: none; font-family: var(--serif);
  font-weight: 700; font-size: 19px; line-height: 1.1; margin-right: auto;
}
.brand:hover { color: #fff; }
.topnav { display: none; gap: 20px; margin-right: 8px; }
.topnav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.topnav a:hover { text-decoration: underline; color: #fff; }
.picker-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid #3b5878; background: var(--navy); color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
}
.picker-btn:hover { background: var(--navy-soft); }
.picker-btn svg { flex: 0 0 auto; }
.menu-btn {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid #3b5878;
  background: transparent; color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-nav { display: none; background: var(--navy-deep); border-top: 1px solid #23415f; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px var(--gutter); color: #fff; text-decoration: none; font-weight: 600; border-bottom: 1px solid #23415f; }
.picker-btn .short { display: none; }
@media (max-width: 420px) { .picker-btn .long { display: none; } .picker-btn .short { display: inline; } }
@media (min-width: 860px) {
  .topnav { display: flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
}
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--tint); color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); }
.btn-outline:hover { background: var(--tint); color: var(--navy); }
.btn-big { min-height: 56px; font-size: 18px; padding: 0 24px; border-radius: 12px; }

/* ---------- Section headings ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.h2 { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.15; color: var(--navy); }
@media (min-width: 700px) { .h2 { font-size: 32px; } }
.lede { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Chapter chips & legend ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 8px; border-radius: 10px;
  border: 2px solid var(--navy); background: #fff; color: var(--navy);
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.chip:hover { background: var(--tint); color: var(--navy); }
.chip.full { background: var(--navy); color: #fff; }
.chip.full:hover { background: var(--navy-deep); color: #fff; }
.chip.off { border-color: var(--off); background: var(--off); color: var(--off-ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.legend .l-full { background: var(--navy); }
.legend .l-part { border: 2px solid var(--navy); }
.legend .l-off { background: var(--off); }

/* ---------- Passage picker (dialog) ---------- */
dialog.picker {
  padding: 0; border: 0; margin: 0; color: var(--ink);
  width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh;
  background: #fff;
}
dialog.picker::backdrop { background: rgba(15, 42, 69, .55); }
@media (min-width: 760px) {
  dialog.picker {
    margin: 6vh auto auto; width: min(960px, calc(100vw - 48px)); height: fit-content;
    max-height: 84vh; border-radius: 18px; box-shadow: 0 24px 60px rgba(15,42,69,.35);
  }
}
.pk-head {
  position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px; padding: 12px var(--gutter);
}
.pk-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); margin-right: auto; line-height: 1.2; }
.pk-icon {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid #c5d3df; background: #fff;
  color: var(--navy); cursor: pointer; font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.pk-back { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #c5d3df; background: #fff; color: var(--navy); font-weight: 700; cursor: pointer; }
.pk-body { padding: 14px var(--gutter) 28px; }
.pk-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pk-toggle { min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid #c5d3df; background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; cursor: pointer; }
.pk-toggle[aria-pressed="true"] { background: var(--tint); }
.pk-cols { display: grid; gap: 22px; }
@media (min-width: 760px) { .pk-cols { grid-template-columns: 1fr 1fr; } }
.pk-test { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); border-bottom: 2px solid var(--gold-soft); padding-bottom: 6px; margin: 0 0 12px; }
.pk-group { margin: 0 0 14px; }
.pk-group h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pk-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; }
.pk-book {
  min-height: 44px; padding: 6px 10px; border-radius: 8px; text-align: left; cursor: pointer;
  border: 1px solid var(--navy); background: var(--tint); color: var(--navy); font-weight: 700; font-size: 15px;
}
.pk-book:hover { background: #dbe8f3; }
.pk-book[disabled] { cursor: default; border-color: #e3e8ed; background: #f7f9fa; color: var(--off-ink); font-weight: 600; }
.pk-booklinks { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.pk-booklinks a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid #c5d3df; text-decoration: none; font-weight: 700; font-size: 14px; }
.pk-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin-top: 12px; }
.pk-chapters .chip { width: 100%; height: 50px; }
.pk-empty { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 24px 0 32px; margin-top: 8px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; }
.footer .copy { width: 100%; color: var(--muted); font-size: 14px; }

/* ---------- Home ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: #d9822b url("../assets/images/hero-wide-900.jpg") center bottom / cover no-repeat;
  min-height: 520px; display: flex;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,20,4,.62) 0%, rgba(38,20,4,.38) 45%, rgba(38,20,4,0) 72%);
}
@media (min-width: 700px), (min-resolution: 2dppx) { .hero { background-image: url("../assets/images/hero-wide.jpg"); } }
.hero .wrap { position: relative; width: 100%; padding-top: 44px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: 40px; line-height: 1.05; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero .tag { margin: 0; font-family: var(--serif); font-style: italic; font-size: 21px; color: #ffe6b8; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero .intro { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.55; color: #f4f7fa; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hero .btn { align-self: flex-start; margin-top: 6px; box-shadow: 0 8px 24px rgba(15,42,69,.35); }
@media (min-width: 700px) {
  .hero { min-height: 560px; }
  .hero .wrap { padding-top: 72px; }
  .hero h1 { font-size: 58px; }
  .hero .tag { font-size: 26px; }
  .hero .intro { font-size: 19px; }
}

.home-main { display: flex; flex-direction: column; gap: 44px; padding-top: 32px; padding-bottom: 56px; }

.feature { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (min-width: 760px) { .feature { grid-template-columns: 1.15fr 1fr; } }
.feature .f-text { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature .f-text p { margin: 0; font-size: 17px; }
.feature .f-text .btn { align-self: flex-start; margin-top: 6px; }
.feature .f-verse { background: var(--tint); padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 2px; font-family: var(--serif); font-size: 22px; line-height: 1.5; color: #12263d; }
.feature .f-verse small { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 6px; }

.lib-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { min-height: 48px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-weight: 700; font-size: 16px; cursor: pointer; }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.lib-group { margin-bottom: 26px; }
.lib-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; }
.lib-group-head h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.lib-group-head a { font-size: 14px; font-weight: 700; }
.book-grid { display: grid; gap: 14px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.book-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.book-card .bc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.book-card h4 { margin: 0; font-family: var(--serif); font-size: 22px; color: #12263d; }
.book-card .bc-link { font-size: 14px; font-weight: 700; white-space: nowrap; }
.book-card .bc-note { font-size: 14px; color: var(--muted); }
.book-card .bc-missing { color: var(--off-ink); font-weight: 600; }
.lib-more { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.lib-more button { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 700; text-decoration: underline; cursor: pointer; }

.layers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); margin-top: 16px; }
.layer { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.layer b { font-size: 13px; color: var(--gold-ink); }
.layer strong { font-family: var(--serif); font-size: 19px; color: var(--navy); }
.layer span { font-size: 15px; color: var(--ink-2); line-height: 1.5; }

.band { background: var(--navy); color: #fff; border-radius: 18px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.band > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.band h2 { margin: 0; font-family: var(--serif); font-size: 26px; }
.band p { margin: 0; color: #dbe6f0; }

/* ---------- Chapter page ---------- */
.ch-head { background: var(--navy); color: #fff; padding: 22px 0 26px; }
.ch-head .wrap { display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; color: #c9d7e4; }
.crumbs a { color: #fff; font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.ch-titlebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ch-head h1 { margin: 0; font-family: var(--serif); font-size: 40px; line-height: 1.05; }
@media (min-width: 700px) { .ch-head h1 { font-size: 46px; } }
.ch-step { display: flex; gap: 8px; }
.ch-step a, .ch-step span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.45); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.ch-step a:hover { background: rgba(255,255,255,.1); color: #fff; }
.ch-step span { opacity: .45; }
.ch-main-idea { margin: 0; font-size: 18px; line-height: 1.55; color: #e6eef5; max-width: 720px; }
.ch-glance { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ch-glance > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ch-glance b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.ch-glance div div, .ch-glance p { margin: 0; font-size: 15px; line-height: 1.55; color: #e6eef5; }
.ch-glance .key p { font-family: var(--serif); font-size: 19px; line-height: 1.45; color: #fff; }
.outline { display: flex; flex-wrap: wrap; gap: 8px; }
.outline a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 22px; background: #fff; color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.25; }
.outline a span { color: var(--gold-ink); white-space: nowrap; }
.deeper-btn { align-self: flex-start; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font-weight: 700; cursor: pointer; }
.deeper-btn:hover { background: rgba(255,255,255,.1); }
.deeper { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.deeper[hidden] { display: none; }
.deeper article { background: #fff; color: var(--ink); border-radius: 12px; padding: 16px 18px; }
.deeper h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 20px; color: var(--navy); }
.prose { font-size: 16px; line-height: 1.7; }
.prose p { margin: 0 0 10px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 10px; padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.prose h4 { margin: 14px 0 6px; font-size: 15px; color: var(--navy); }

.ch-main { max-width: 900px; padding-top: 18px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 22px; }

/* Settings */
.settings { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.settings > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; font-weight: 700; color: var(--navy); }
.settings > summary::-webkit-details-marker { display: none; }
.settings > summary .sum-note { font-weight: 600; font-size: 14px; color: var(--muted); }
.settings > summary::after { content: "▾"; color: var(--navy); }
.settings[open] > summary::after { content: "▴"; }
.settings .set-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.set-label { font-size: 14px; font-weight: 700; color: var(--muted); margin-right: 4px; width: 100%; }
@media (min-width: 700px) { .set-label { width: auto; } }
.tog { min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid #c5d3df; background: #fff; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tog::before { content: ""; width: 16px; height: 16px; border-radius: 4px; border: 2px solid #9fb1c2; box-sizing: border-box; }
.tog[aria-pressed="true"] { border-color: var(--navy); background: var(--tint); color: var(--navy); font-weight: 700; }
.tog[aria-pressed="true"]::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--navy); }
.preset { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px dashed var(--gold); background: #fffaf0; color: var(--gold-ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.sel { min-height: 44px; border-radius: 8px; border: 1px solid #c5d3df; background: #fff; color: var(--navy); font: 600 15px var(--sans); padding: 0 10px; }
.set-hint { margin: 0; font-size: 14px; color: var(--muted); }

.open-all { align-self: flex-end; min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--navy); background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; cursor: pointer; }

/* Sections & verses */
.sec { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; scroll-margin-top: 72px; }
.sec-head { padding: 18px 18px 12px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; }
.sec-head .eyebrow { font-size: 12px; }
.sec-head h2 { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--navy); }
@media (min-width: 700px) { .sec-head { padding: 20px 24px 14px; } .sec-head h2 { font-size: 28px; } }
.verse { border-bottom: 1px solid var(--line-2); scroll-margin-top: 72px; }
.verse:last-of-type { border-bottom: 0; }
.v-row { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 14px 16px; border: 0; background: #fff; cursor: pointer; color: inherit; }
.v-row:hover { background: #f6f9fc; }
.verse.open > .v-row { background: var(--tint); }
@media (min-width: 700px) { .v-row { padding: 16px 24px; gap: 14px; } }
.v-num { flex: 0 0 26px; font-size: 14px; font-weight: 700; color: var(--gold-ink); padding-top: 6px; }
.v-text { flex: 1 1 auto; min-width: 0; font-family: var(--serif); font-size: 20px; line-height: 1.55; color: #12263d; }
@media (min-width: 700px) { .v-text { font-size: 22px; } }
.v-text .ln { display: block; }
.v-text .ln + .ln { padding-left: 1.2em; }
.v-cue { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--navy); padding-top: 7px; white-space: nowrap; }
.ws-on .ws { text-decoration: underline dotted #6b8299; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: help; }
.ws-on .ws:hover { color: var(--navy); background: #fff3d6; }

.layers-card { margin: 0 12px 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
@media (min-width: 700px) { .layers-card { margin: 0 24px 18px 64px; } }
.lc { padding: 16px; border-bottom: 1px solid var(--line-2); }
.lc:last-child { border-bottom: 0; }
@media (min-width: 700px) { .lc { padding: 18px 20px; } }
.lc > h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.lc.meaning p { margin: 0; font-size: 17px; line-height: 1.65; }
.lc.meaning p + p, .lc.notes p + p { margin-top: 10px; }
.wu-card .lc.notes p { margin: 0; }
.lc.hear { background: var(--cream); }
.lc.hear > h3 { color: var(--gold-ink); }
.pair { display: flex; flex-direction: column; gap: 8px; }
.pair + .pair { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #ead9b8; }
.pair .obs { font-size: 16px; line-height: 1.65; color: #2a3846; }
.pair .obs p { margin: 0 0 8px; }
.pair .obs p:first-child::before { content: "Observe. "; font-weight: 700; color: var(--navy); }
.pair .hr { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.65; color: #2a3846; padding-left: 14px; border-left: 3px solid #e3c48c; }
.pair .hr p { margin: 0 0 8px; }
.pair .hr p:last-child, .pair .obs p:last-child { margin-bottom: 0; }
.more { margin-top: 12px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid #c5d3df; background: #fff; color: var(--navy); font-weight: 600; font-size: 15px; cursor: pointer; }
.lc.notes { background: #f9fafb; }
.lc.notes .prose { font-size: 15px; }

/* Reflection list (verse, section, whole) */
.refl { border-top: 1px solid var(--line-2); }
.refl:first-of-type { border-top: 0; }
.refl > button { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 0; border: 0; background: transparent; cursor: pointer; color: inherit; }
.refl .r-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.refl .r-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.refl .tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--tint); border-radius: 999px; padding: 3px 9px; }
.refl .r-title { font-size: 16px; font-weight: 700; }
.refl .r-q { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.refl.open .r-q { display: none; }
.refl .r-cue { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--navy); padding-top: 2px; white-space: nowrap; }
.refl .r-body { padding: 0 0 14px; }
.refl .r-body[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.filt { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.filt[aria-pressed="true"] { background: var(--gold-ink); border-color: var(--gold-ink); color: #fff; }

.sec-refl { padding: 14px 16px 6px; background: #f4f7fa; }
@media (min-width: 700px) { .sec-refl { padding: 16px 24px 8px; } }
.sec-refl > h3 { margin: 4px 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.sec-refl .refl { border-top-color: #dfe7ee; }
.sec-refl .r-q { font-family: var(--serif); font-style: italic; }

.whole { background: var(--navy); color: #fff; border-radius: 16px; padding: 20px 18px 8px; }
@media (min-width: 700px) { .whole { padding: 22px 24px 10px; } }
.whole h2 { margin: 4px 0 10px; font-family: var(--serif); font-size: 28px; }
.whole .eyebrow { color: var(--gold-soft); }
.whole .refl { border-top-color: rgba(255,255,255,.2); }
.whole .refl .tag { background: rgba(255,255,255,.15); color: #fff; }
.whole .refl .r-q { color: #dbe6f0; font-family: var(--serif); font-style: italic; }
.whole .refl .r-cue { color: var(--gold-soft); }
.whole .prose { color: #f1f5f9; }

.culture { display: flex; flex-direction: column; gap: 12px; }
.culture-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.culture-card h3 { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--navy); }
.culture-card .stmt { background: var(--tint); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.culture-card .stmt p { margin: 0; }
.culture-card h4 { margin: 4px 0 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }

.ch-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.notice { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink-2); font-size: 15px; }

/* Word-study pop-up */
.ws-pop { position: fixed; z-index: 60; width: min(340px, calc(100vw - 24px)); background: #fff; border: 1px solid #c5d3df; border-radius: 12px; box-shadow: 0 14px 40px rgba(15,42,69,.28); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ws-pop[hidden] { display: none; }
.ws-pop .wp-top { padding-right: 30px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ws-pop .wp-word { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); }
.ws-pop .wp-strong { font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.ws-pop .wp-gloss { font-size: 15px; color: var(--ink-2); }
.ws-pop a { font-weight: 700; font-size: 15px; }
.ws-pop .wp-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 20px; color: var(--muted); cursor: pointer; }

/* ---------- Reading bar (chapter page) ---------- */
.readbar { position: sticky; top: 60px; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.readbar[hidden] { display: none; }
.rb-inner { max-width: 900px; display: flex; align-items: center; gap: 8px; min-height: 58px; }
.rb-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid #c5d3df; background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.rb-btn:hover { background: var(--tint); }
.rb-btn[aria-expanded="true"] { background: var(--tint); border-color: var(--navy); }
.rb-count { font-size: 12px; font-weight: 700; color: #fff; background: var(--navy); border-radius: 999px; padding: 1px 7px; }
.rb-sel { min-height: 42px; border-radius: 10px; border: 1px solid #c5d3df; background: #fff; color: var(--navy); font: 700 15px var(--sans); padding: 0 8px; }
.rb-ws .rb-u { font-family: var(--serif); font-size: 17px; text-decoration: underline dotted; text-underline-offset: 3px; }
.rb-ws[aria-pressed="true"] { background: var(--tint); border-color: var(--navy); }
.rb-ws[aria-pressed="false"] { color: var(--muted); }
.rb-ws[disabled] { opacity: .5; cursor: not-allowed; }
.rb-grow { flex: 1 1 auto; }
@media (max-width: 480px) { .rb-long { display: none; } .rb-inner { gap: 6px; } .rb-btn { padding: 0 10px; } }
.rb-panel { position: absolute; left: 0; right: 0; top: 100%; }
.rb-panel[hidden] { display: none; }
.rb-panel-in { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.rb-panel-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rb-panel { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,42,69,.12); padding: 12px 0 14px; }
.rb-panel-title { margin: 0 4px 0 0; width: 100%; font-size: 14px; font-weight: 700; color: var(--muted); }
.rb-done { min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; margin-left: auto; }
@media (max-width: 600px) {
  .rb-panel-in { flex-direction: column; align-items: stretch; }
  .rb-panel .tog { justify-content: flex-start; }
  .rb-done { margin-left: 0; }
}
.ch-main { padding-top: 20px; }

/* Word pop-up v2 */
.ws-pop .wp-tr { font-size: 14px; color: var(--muted); font-style: italic; }
.ws-pop .wp-sum { margin: 2px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ws-pop.hovering a { font-weight: 600; font-size: 13px; color: var(--muted); text-decoration: none; pointer-events: none; }

/* ---------- Word study page ---------- */
.wd-head h1 { font-size: 40px; }
.wd-tr { margin: 0; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gold-soft); }
.wd-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-meta span { font-size: 13px; font-weight: 700; letter-spacing: .06em; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 4px 10px; }
.wd-back { color: #fff; font-weight: 600; text-decoration: none; font-size: 15px; }
.wd-back:hover { color: #fff; text-decoration: underline; }
.wd-summary { background: var(--tint); border-radius: 14px; padding: 18px 20px; }
.wd-summary h2, .wd-body h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; color: var(--navy); }
.wd-body { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.wd-body h3 { margin: 22px 0 8px; font-family: var(--serif); font-size: 20px; color: var(--navy); }
.wd-body h3:first-child { margin-top: 0; }
.wd-occ { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.wd-occ > summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; padding: 0 20px; font-weight: 700; color: var(--navy); list-style: none; }
.wd-occ > summary::-webkit-details-marker { display: none; }
.wd-occ > summary::after { content: "▾"; margin-left: auto; }
.wd-occ[open] > summary::after { content: "▴"; }
.wd-occ .occ-body { padding: 0 20px 18px; }
.wd-occ .occ-body p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.wd-occ .occ-body h2 { display: none; }
.wd-occ .occ-body h3 { margin: 14px 0 6px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }

/* Collapsible reflection groups */
.sec-refl { padding: 0; }
.grp-btn { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer; color: inherit; padding: 14px 16px; min-height: 56px; }
@media (min-width: 700px) { .grp-btn { padding: 14px 24px; } }
.sec-refl .grp-btn:hover { background: #e9eff5; }
.grp-title { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.grp-count { font-size: 14px; color: var(--muted); }
.grp-cue { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.sec-refl .grp-body { padding: 0 16px 8px; }
@media (min-width: 700px) { .sec-refl .grp-body { padding: 0 24px 10px; } }
.whole { padding: 0; }
.whole .grp-btn { padding: 18px; color: #fff; }
@media (min-width: 700px) { .whole .grp-btn { padding: 20px 24px; } }
.whole .grp-main { display: flex; flex-direction: column; gap: 4px; }
.whole .grp-h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.whole .grp-cue { color: var(--gold-soft); }
.whole .grp-body { padding: 0 18px 8px; }
@media (min-width: 700px) { .whole .grp-body { padding: 0 24px 10px; } }
.tog.tog-none { cursor: default; color: var(--off-ink); background: #f7f9fa; border-style: dashed; }
.tog.tog-none::before { border-color: #d3dbe3; }
.tog-note { font-weight: 400; font-size: 13px; }

/* Layers panel: one line on wider screens */
@media (min-width: 601px) {
  .rb-panel-in { flex-wrap: wrap; gap: 6px; }
  .rb-panel-title { width: auto; white-space: nowrap; margin-right: 6px; font-size: 13px; }
  .rb-panel .tog { min-height: 40px; padding: 0 10px; font-size: 14px; gap: 6px; white-space: nowrap; }
  .rb-panel .tog::before { width: 14px; height: 14px; }
  .rb-done { min-height: 40px; padding: 0 14px; }
}
@media (min-width: 900px) { .rb-panel-in { flex-wrap: nowrap; } }
@media (min-width: 601px) { .rb-panel-title { display: none; } }
.tog.tog-none { text-decoration: line-through; text-decoration-color: #b8c3ce; }

/* ---------- Your published page pieces (Book Overview, Bible Context, About, Resources) ---------- */
.doc { font-size: 16px; line-height: 1.7; color: var(--ink); }
.doc p { margin: 0 0 10px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 4px; }
.doc img { max-width: 100%; height: auto; border-radius: 10px; }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 14px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc h1 { font-family: var(--serif); font-size: 30px; color: var(--navy); margin: 0 0 12px; line-height: 1.2; }
.doc h2 { font-family: var(--serif); font-size: 26px; color: var(--navy); margin: 28px 0 12px; line-height: 1.2; }
.doc h3 { font-family: var(--serif); font-size: 20px; color: var(--navy); margin: 18px 0 8px; }
.doc h4 { font-size: 15px; color: var(--navy); margin: 14px 0 6px; }
.doc > :first-child, .doc [class*="-card"] > :first-child { margin-top: 0; }
.doc.hide-h1 h1, .doc [class*="-hero"] { display: none; }
.doc [class*="-grid"], .doc [class*="glance-list"], .doc .mtb-book-glance > div:not([class*="-head"]) { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: 0 0 16px; }
.doc [class*="-card"]:not([class*="-card-"]), .doc [class*="glance-item"] {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 12px;
}
.doc [class*="-grid"] > [class*="-card"], .doc [class*="-grid"] > [class*="glance-item"] { margin: 0; }
.doc [class*="-card-header"], .doc [class*="-card-title"], .doc [class*="glance-label"] {
  margin: 0 0 8px; font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.25;
}
.doc [class*="glance-label"] { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.doc [class*="-card-body"] p:last-child, .doc [class*="glance-content"] p:last-child { margin-bottom: 0; }
.doc [class*="glance"][class*="-head"] h2, .doc [class*="full-section-heading"] h2, .doc [class*="section-heading"] { margin-top: 8px; }
.doc details > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin: 6px 0 12px; border-radius: 10px; border: 1px solid var(--navy); color: var(--navy); font-weight: 700; list-style: none; }
.doc details > summary::-webkit-details-marker { display: none; }
.doc details > summary::after { content: " ▾"; white-space: pre; }
.doc details[open] > summary::after { content: " ▴"; }
.doc [class*="eyebrow"] { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.doc [class*="book-list"], .doc [class*="canon-books"] ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.doc [class*="book-list"] li, .doc [class*="canon-books"] li { background: var(--tint); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 15px; margin: 0; }
.doc .mtb-scripture { background: var(--tint); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; font-family: var(--serif); font-size: 17px; }

/* ---------- Book page ---------- */
.bk-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 60px; z-index: 20; }
.bk-tabs::-webkit-scrollbar { display: none; }
.bk-tabs .wrap { display: flex; gap: 2px; max-width: 900px; }
.bk-tab { flex: 0 0 auto; min-height: 52px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.bk-tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.bk-panel { max-width: 900px; padding-top: 22px; padding-bottom: 56px; }
.bk-missing { background: #fff; border: 1px dashed #c5d3df; border-radius: 12px; padding: 18px; color: var(--muted); }
.bk-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; margin-top: 14px; }
.bk-chapters .chip { width: 100%; height: 52px; }
.doc-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.doc-list a { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.doc-list a:hover { border-color: var(--navy); background: #fbfdff; }
.doc-list a strong { font-family: var(--serif); font-size: 19px; color: var(--navy); }
.doc-list a span { font-size: 14px; color: var(--muted); }

/* ---------- Visitor count (home footer) ---------- */
.visits { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-left: auto; }
.visits[hidden] { display: none; }

/* Book Overview: the "badge" repeats the first glance item, so hide it */
.doc [class*="glance-badge"] { display: none; }

/* About page: two columns (Mastering the Bible | the Bible), stacked buttons */
.about-cols { display: grid; gap: 28px; align-items: start; }
@media (min-width: 760px) { .about-cols { grid-template-columns: 1fr 1fr; } }
.about-col .h2 { margin: 0 0 12px; font-size: 24px; }
.doc-list.stacked { grid-template-columns: 1fr; }

/* Bible Context intro */
.doc .ctx-intro { margin: 0 0 16px; }
.doc .ctx-intro h2 { margin: 0 0 6px; }
.doc .ctx-books { margin: 0; font-size: 15px; color: var(--muted); }
.doc .ctx-books strong { color: var(--navy); }

/* Scripture copyright notice (chapter page) */
.sc-copy{margin:2rem 0 0;padding-top:1rem;border-top:1px solid var(--line,#ddd);font-size:.78rem;line-height:1.5;color:var(--muted,#666)}
.sc-warn{color:#9a6b00}

/* Section summary from the published Chapter Outline */
.sec-sum{margin-top:.5rem}
.sec-sum summary{cursor:pointer;font-size:.85rem;font-weight:600;color:var(--gold-ink);list-style:none}
.sec-sum summary::-webkit-details-marker{display:none}
.sec-sum summary::after{content:" ▾"}
.sec-sum[open] summary::after{content:" ▴"}
.sec-sum .prose{margin-top:.4rem;font-size:.95rem;color:var(--ink)}

/* ---------- Wisdom from Proverbs ---------- */
.wis-head .eyebrow { color: var(--gold); }
.wis-intro { margin: 0; color: #dfe6f0; max-width: 640px; }
.wis-stat { margin: 0; font-size: 14px; color: var(--gold-soft, #e9d9a8); }
.wis-bar { background: var(--page); padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.wis-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wis-f { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.wis-f select, .wis-f input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 10px; font: inherit; font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
.wis-f.on select { border-color: var(--gold); background: var(--tint); font-weight: 600; }
@media (min-width: 760px) { .wis-bar { position: sticky; top: 60px; z-index: 20; } .wis-filters { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.wis-defs { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.wis-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0; color: var(--muted); }
.wu-list { display: flex; flex-direction: column; gap: 14px; }
.wis-clear .btn { width: 100%; min-height: 44px; }
.wis-clear .btn[disabled] { opacity: .45; cursor: default; }
.wu { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.wu.open { border-color: var(--navy-soft, #c9d3e0); }
.wu-focus { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.wu-row { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; background: none; border: 0; padding: 16px 18px 14px; font: inherit; color: inherit; cursor: pointer; }
.wu-row:hover .wu-cue { text-decoration: underline; }
.wu-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wu-ref { font-weight: 700; color: var(--navy); }
.wu-theme { margin-left: auto; font-size: 13px; color: var(--muted); }
.wu-draft { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--off); color: var(--off-ink); border-radius: 6px; padding: 2px 6px; }
.wu-text { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink); }
.wu-ln { display: block; }
.wu-ln + .wu-ln { padding-left: 1.2em; }
.wu-vn { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--gold-ink); margin-right: 3px; }
.wu-sum { display: block; border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; font-weight: 600; color: var(--navy); }
.wu-sumlab { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.wu-cue { align-self: flex-end; font-size: 14px; font-weight: 700; color: var(--navy); }
.wu-card { margin: 0 12px 14px; }
.wu-card .lc p { margin: 0; line-height: 1.6; }
.wu-principle p { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--navy); }
.wu-relhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.wu-relhead h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.wu-thread { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; text-decoration: underline; }
.wu-rel { list-style: none; margin: 0; padding: 0; }
.wu-rel li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line-2, #eef1f5); }
.wu-rel li:first-child { border-top: 0; padding-top: 2px; }
.wu-rl { display: flex; align-items: center; gap: 8px; }
.wu-rref { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy); text-decoration: underline; cursor: pointer; }
.wu-rtype { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); background: var(--cream); border-radius: 6px; padding: 2px 6px; }
.wu-rn { font-size: 15px; color: var(--ink-2, #3a4655); }
.wu-find h3 { color: var(--navy); }
.wu-tg { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
.wu-tgl { flex: 0 0 84px; font-size: 13px; color: var(--muted); }
.wu-tgc { display: flex; flex-wrap: wrap; gap: 6px; }
.wu-tag { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 14px; color: var(--navy); cursor: pointer; }
.wu-tag:hover { background: var(--tint); }
.wu-tag.on { background: var(--tint); border-color: var(--gold); font-weight: 600; cursor: default; }
.wu-foot a { font-weight: 600; }
.wis-more { text-align: center; margin: 20px 0; }

/* Key Questions page: readable question headings and the NKJV passage popup. */
.doc[data-doc-type="key-decisions"] h4,
.doc[data-doc-type="key-decisions"] h5,
.doc [data-doc-type="key-decisions"] h4,
.doc [data-doc-type="key-decisions"] h5 { font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--navy); font-style: normal; margin: 26px 0 6px; }
.doc[data-doc-type="key-decisions"] h3,
.doc [data-doc-type="key-decisions"] h3 { font-size: 22px; margin-top: 32px; }
.kq-pop-overlay { position: fixed; inset: 0; z-index: 10050; background: rgba(17,31,43,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.kq-pop { position: relative; width: min(620px, 94vw); max-height: 80vh; overflow: auto; background: #fff; border-radius: 12px; padding: 18px 22px 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.kq-pop h3 { font-family: var(--serif); color: var(--navy); margin: 0 30px 10px 0; font-size: 20px; }
.kq-pop h3 span { font: 700 12px Arial, sans-serif; color: #8a611f; letter-spacing: .06em; }
.kq-pop-body p { margin: 0 0 .6em; line-height: 1.6; }
.kq-pop-body sup { color: #8a611f; font-weight: 700; margin-right: 2px; }
.kq-pop-close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; font-size: 26px; color: var(--navy); cursor: pointer; }
.kq-pop-copy { font-size: 11px; color: #6b7782; margin: 10px 0 0; }
