/* Shalom Insights · Bible reader */
:root {
  --cream: #FFF9F2; --paper: #FFFFFF; --ink: #14110F; --ink-2: #4A433D; --muted: #857A71;
  --orange: #FF8A00; --flame: #F2512B; --ember: #C2261A; --teal: #00809A; --teal-deep: #005F73;
  --line: rgba(20, 17, 15, .1);
  --grad-flame: linear-gradient(135deg, #FF8A00 0%, #F2512B 55%, #C2261A 100%);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bsize: 19px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--gutter); background: rgba(255, 249, 242, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 38px; height: auto; }
.brand b { font-weight: 600; }
.top__nav { display: flex; gap: 22px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.top__nav a:hover, .top__nav a[aria-current] { color: var(--flame); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 99px; font-weight: 700; font-size: 14.5px; background: var(--ink); color: #fff; white-space: nowrap; }

/* intro + verse of the day */
.intro { padding-top: clamp(32px, 6vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-flame); }
h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 8vw, 84px); line-height: .98; letter-spacing: -.035em; }
h1 em { font-style: italic; font-weight: 400; color: var(--flame); }
.intro__sub { margin: 18px 0 0; max-width: 560px; color: var(--ink-2); font-size: 17px; }
.intro__sub span { white-space: nowrap; font-weight: 700; color: var(--muted); font-size: 14px; }

.votd { margin-top: clamp(24px, 4vw, 40px); }
.votd__card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(24px, 5vw, 44px); border-radius: clamp(22px, 3vw, 32px); color: #fff; background: radial-gradient(90% 120% at 100% 0%, #FFB347 0%, transparent 55%), var(--grad-flame); box-shadow: 0 40px 80px -48px rgba(194, 38, 26, .7); }
.votd__flame { position: absolute; z-index: -1; right: -6%; top: -18%; width: 46%; height: 140%; fill: rgba(255, 255, 255, .16); }
.votd__label { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .92; }
.votd__text { margin: 16px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(23px, 3.6vw, 36px); line-height: 1.25; letter-spacing: -.015em; max-width: 680px; min-height: 2.5em; }
.votd__ref { margin: 14px 0 0; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.votd__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.skeleton { display: block; height: .9em; margin: .25em 0; border-radius: 8px; background: rgba(255, 255, 255, .3); animation: pulse 1.4s ease-in-out infinite; }
.skeleton--short { width: 60%; }
@keyframes pulse { 50% { opacity: .5; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 99px; font-weight: 700; font-size: 15px; transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .3s; }
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--wa { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn--wa:hover { background: #25D366; box-shadow: none; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; }
.btn:disabled { opacity: .35; pointer-events: none; }

/* reader */
.reader { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 48px; }
.bar { position: sticky; top: 63px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; margin: 0 calc(-1 * min(10px, var(--gutter))); border-radius: 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(20, 17, 15, .04), 0 18px 40px -30px rgba(20, 17, 15, .45), inset 0 0 0 1px var(--line); }
.sel { position: relative; display: block; }
.sel select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 34px 0 14px; border: 0; border-radius: 12px; background: var(--cream); font-weight: 700; font-size: 15px; cursor: pointer; max-width: 100%; }
.sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.sel--tr select { max-width: 230px; }
.sel--bk select { min-width: 150px; }
.go { flex: 1 1 200px; display: flex; min-width: 0; }
.go input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: 12px 0 0 12px; background: var(--cream); font-size: 15px; }
.go input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--teal); }
.go button { width: 46px; height: 44px; border-radius: 0 12px 12px 0; background: var(--ink); color: #fff; font-weight: 800; font-size: 18px; }
.size { display: flex; gap: 4px; }
.size button { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); font-weight: 800; font-size: 14px; }
.size button:hover, .sel select:hover { background: #FFF1E4; }

.chapter { margin-top: clamp(28px, 4vw, 44px); }
.chapter__tr { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.chapter__title { margin: 6px 0 18px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
.chapter__text { font-family: var(--serif); font-size: var(--bsize); line-height: 1.85; color: #2B2521; }
.chapter__text p { margin: 0 0 .9em; }
.chapter__text h3 { margin: 1.6em 0 .5em; font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); line-height: 1.4; }
.chapter__text h3:first-child { margin-top: 0; }
.v { border-radius: 6px; cursor: pointer; transition: background-color .25s; -webkit-tap-highlight-color: transparent; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.v:hover { background: rgba(255, 138, 0, .08); }
.v.is-on { background: rgba(255, 138, 0, .22); }
.v.is-flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 40% { background: rgba(255, 138, 0, .35); } 100% { background: transparent; } }
.v sup { font-family: var(--sans); font-size: .6em; font-weight: 800; color: var(--teal); margin-right: .25em; vertical-align: .55em; line-height: 0; }
.j { color: var(--ember); }
.ind { display: inline-block; width: 1.4em; }
.loading, .err { font-family: var(--sans); color: var(--muted); font-size: 16px; }
.err b { color: var(--ink); }
.err button { color: var(--teal); font-weight: 700; text-decoration: underline; }

.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager .btn { max-width: 48%; }
.pager .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit { margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.credit a { color: var(--teal); text-decoration: underline; }

/* verse share bar */
.sharebar { position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 8px 8px 8px 18px; border-radius: 99px; background: var(--ink); color: #fff; box-shadow: 0 24px 50px -20px rgba(20, 17, 15, .6); animation: rise .45s var(--ease); }
.sharebar[hidden] { display: none; }
@keyframes rise { from { transform: translate(-50%, 30px); opacity: 0; } }
.sharebar__ref { font-weight: 800; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 6px; }
.sb { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.sb:hover { background: rgba(255, 255, 255, .22); }
.sb--wa { background: #25D366; }
.sb--wa:hover { background: #1DA851; }
.sb--x { width: 40px; padding: 0; justify-content: center; font-size: 22px; }

.toast { position: fixed; z-index: 40; left: 50%; bottom: 84px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 99px; font-weight: 700; font-size: 14px; transition: transform .4s var(--ease), opacity .3s; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.foot { padding: 28px var(--gutter) 90px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .top__nav { display: none; }
  .top .pill span { display: none; }
  .bar { position: static; gap: 6px; padding: 8px; border-radius: 16px; }
  .sel--tr { flex: 1 1 100%; }
  .sel--tr select { max-width: none; width: 100%; }
  .sel--bk { flex: 1 1 auto; }
  .sel--bk select { width: 100%; min-width: 0; }
  .go { order: 5; flex: 1 1 100%; }
  .chapter__text { line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
