/* prophecy.css — prophecy fulfilled, and the Old Testament in the New. Tokens from base.css. */

.pr-page { max-width: 1120px; }
.pr-head { display: grid; gap: var(--s3); max-width: 46rem; margin-bottom: var(--s6); }
.pr-title { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; }

/* ── Tabs ───────────────────────────────────────────────────────────── */
.pr-tabs { display: flex; gap: 0 var(--s5); flex-wrap: wrap; border-bottom: 1px solid var(--line-strong); margin-bottom: var(--s5); }
.pr-tab {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s1);
    color: var(--text-dim); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600;
}
.pr-tab:hover { color: var(--text); }
.pr-tab.is-on { color: var(--gold-bright); border-bottom-color: var(--gold); }

/* ── Tools ──────────────────────────────────────────────────────────── */
.pr-tools { display: grid; gap: var(--s4); margin-bottom: var(--s4); }
.pr-tools-quotes { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: end; }
.pr-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s3) 0 0; }
.pr-label { display: grid; gap: var(--s1); }
.pr-select { appearance: auto; }
.pr-search { position: relative; max-width: 34rem; }
.pr-tools-quotes .pr-search { max-width: none; }
.pr-search > .icon { position: absolute; left: var(--s4); top: 13px; color: var(--text-faint); pointer-events: none; }
.pr-search .field { padding-left: calc(var(--s4) + 30px); border-radius: var(--r-pill); }
.pr-count { color: var(--text-faint); font-size: var(--fs-sm); margin-bottom: var(--s5); font-variant-numeric: tabular-nums; }
.pr-none { color: var(--text-dim); padding: var(--s5) 0; }

/* ── Cards by theme ─────────────────────────────────────────────────── */
.pr-group + .pr-group { margin-top: var(--s7); }
.pr-group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s2) var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--line-strong); margin-bottom: var(--s5); }
.pr-group-title { font-size: var(--fs-h2); }
.pr-group-blurb { color: var(--text-faint); font-size: var(--fs-sm); }
.pr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--s4); list-style: none; margin: 0; padding: 0; }
a.card.pr-card { display: grid; gap: var(--s3); height: 100%; border-top: 3px solid var(--tone, var(--gold)); }
.pr-card-title { font-size: 1.5rem; line-height: 1.15; }
.pr-card:hover .pr-card-title { color: var(--gold-bright); }
.pr-card-note { color: var(--text-dim); font-size: var(--fs-sm); line-height: 1.55; }
.pr-card-refs {
    display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin-top: auto;
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; color: var(--text-faint);
}
.pr-card-refs .icon { color: var(--gold); flex: none; }

/* ── The quotation list ─────────────────────────────────────────────── */
.pr-qgroup + .pr-qgroup { margin-top: var(--s6); }
.pr-qbook { display: flex; align-items: baseline; gap: var(--s3); font-size: var(--fs-h2); padding-bottom: var(--s3); border-bottom: 1px solid var(--line-strong); }
.pr-qcount { font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; color: var(--text-faint); font-style: normal; }
.pr-qlist { list-style: none; margin: 0; padding: 0; }
.pr-q {
    display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr); gap: var(--s2) var(--s5);
    padding: var(--s3) var(--s2); border-bottom: 1px solid var(--line);
}
.pr-q-nt { font-weight: 600; }
.pr-q-from { display: block; line-height: 1.7; }
.pr-q-quotes { color: var(--text-faint); font-size: var(--fs-sm); }
.pr-q-formula { display: block; color: var(--text-dim); font-style: italic; font-size: var(--fs-sm); }
.pr-ref { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.pr-ref:hover, .pr-ref:focus-visible { color: var(--gold-bright); text-decoration-color: var(--gold); }
.pr-sep { color: var(--text-faint); }

/* ── One prophecy: two passages side by side ────────────────────────── */
.pr-crumbs { display: flex; gap: var(--s2); font-size: var(--fs-sm); color: var(--text-faint); margin-bottom: var(--s4); flex-wrap: wrap; }
.pr-crumbs a:hover { color: var(--gold-bright); }
.pr-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s5); align-items: start; }
.pr-arrow { display: grid; place-items: center; align-self: start; margin-top: var(--s6); color: var(--gold); }
.pr-col { display: grid; gap: var(--s4); min-width: 0; }
.pr-col-title { padding-bottom: var(--s2); border-bottom: 1px solid var(--line-strong); }
.pr-passage { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.pr-passage-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-bottom: var(--s3); }
.pr-passage-ref { font-size: 1.5rem; line-height: 1.15; }
.pr-text { line-height: 1.75; }
.pr-vn { font-family: var(--font-ui); font-size: .65em; font-weight: 600; color: var(--text-faint); margin-right: .3em; }
.pr-foot { margin-top: var(--s3); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.pr-skel { height: 1em; margin: .8em 0; border-radius: 4px; background: var(--bg-3); }
.pr-skel.is-short { width: 60%; }

.pr-pager { display: flex; justify-content: space-between; gap: var(--s4); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.pr-pager-link { display: grid; gap: var(--s1); max-width: 45%; }
.pr-pager-link.is-next { text-align: right; margin-left: auto; }
.pr-pager-link:hover .display { color: var(--gold-bright); }

.pr-state { display: grid; gap: var(--s4); justify-items: start; max-width: 36rem; padding-top: var(--s7); }

/* ── Study panel section ────────────────────────────────────────────── */
.pr-sec { display: grid; gap: var(--s4); }
.pr-s-title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s2); }
.pr-s-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.pr-s-row { display: grid; gap: 2px; }
.pr-s-ref { font-weight: 600; }
.pr-s-note { font-weight: 400; color: var(--text-faint); font-size: var(--fs-sm); }
.pr-preview { color: var(--text-dim); font-size: var(--fs-sm); line-height: 1.5; font-family: var(--font-scripture); }

/* ── Phone ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .pr-tabs { gap: 0 var(--s4); }
    .pr-tab { font-size: .9rem; }
    .pr-pair { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
    .pr-arrow { margin: 0; transform: rotate(90deg); justify-self: center; }
    .pr-tools-quotes { grid-template-columns: minmax(0, 1fr); }
    .pr-q { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
    .pr-passage { padding: var(--s4); }
    .pr-pager { flex-direction: column; }
    .pr-pager-link, .pr-pager-link.is-next { max-width: none; text-align: left; margin-left: 0; }
}
