/* Explore, Learn and reader additions. Uses the tokens defined in index.html. */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lede2 { font-size: 16.5px; color: var(--ink-2); max-width: 44em; margin: 0 0 8px; line-height: 1.65; }
.xsect { margin: 38px 0 0; scroll-margin-top: 80px; }
.xsect > h2 { font-family: var(--f-display); font-weight: 400; font-size: 27px; margin: 0 0 6px; }
.xsect > p { max-width: 44em; color: var(--ink-2); margin: 0 0 14px; line-height: 1.65; }
.jump { display: flex; flex-wrap: nowrap; gap: 6px; margin: 14px 0 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--toph, 57px)); z-index: 15; background: var(--paper); padding-block: 8px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--rule); }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; white-space: nowrap; }
.jump a.cur { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.xsect, .pos { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--toph, 57px) + 56px); }
.jump a { font-size: 13px; text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 11px; color: var(--ink-2); }
@media (hover: hover) { .jump a:hover { color: var(--ink); border-color: var(--ink-3); } }
.hubgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin: 22px 0 56px; }
.hubcard { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 16px 14px; }
.hubcard:hover { border-color: var(--ink-3); }
.hubcard h3 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.hubcard p { margin: 0; color: var(--ink-2); font-size: 14px; }
.hubcard .n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); margin-top: 8px; display: block; }
.box { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; }
.box h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.box p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.6; }
.box p:last-child { margin-bottom: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tag { font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--rule); border-radius: 4px; padding: 0 5px; color: var(--ink-2); background: var(--paper); white-space: nowrap; }
.tag.crit { border-color: var(--c-anachronisms); color: var(--c-anachronisms); }
.tag.faith { border-color: var(--c-kjv-dependence); color: var(--c-kjv-dependence); }
.srcmini { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
details.more { margin-top: 8px; }
details.more summary { cursor: pointer; font-size: 13px; color: var(--accent); }
.refs { font-size: 13px; color: var(--ink-2); }
.refs a { font-family: var(--f-mono); font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* translation matrix */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.models .box h3 small { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); margin-left: 6px; }
.mxwrap { border: 1px solid var(--rule); border-radius: 10px; background: var(--card); overflow: hidden; }
table.mx { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
table.mx th, table.mx td { border-bottom: 1px solid var(--rule); padding: 8px 8px; text-align: left; vertical-align: middle; }
table.mx thead th { font-weight: 500; font-size: 12.5px; color: var(--ink-2); background: var(--paper-2); }
table.mx thead th:first-child { width: 30%; }
table.mx tbody tr:last-child th, table.mx tbody tr:last-child td { border-bottom: 0; }
table.mx tbody th { font-weight: 500; }
table.mx tbody th button { all: unset; cursor: pointer; display: block; color: var(--ink); line-height: 1.35; }
table.mx tbody th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
table.mx tbody tr:hover, table.mx tbody tr.sel { background: var(--paper-2); }
table.mx tbody tr.sel th { box-shadow: inset 3px 0 0 var(--accent); }
.fit { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; }
.fit i { font-style: normal; font-family: var(--f-mono); font-size: 12px; width: 18px; height: 18px; border-radius: 4px; display: inline-grid; place-items: center; flex: none; }
.fit i svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fit.fits i { background: rgba(44,117,99,.16); color: var(--c-internal); }
.fit.strains i { background: var(--mark-bg); color: var(--mark); }
.fit.conflicts i { background: var(--del-bg); color: var(--del); }
.fit.neutral i { background: var(--paper-2); color: var(--ink-3); }
.fit.neutral { color: var(--ink-3); }
.mxlegend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.mxdetail { margin-top: 16px; }
.mxdetail .cellnotes { display: grid; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.mxdetail .cellnotes li { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 10px; font-size: 14px; line-height: 1.55; }
.mxcards { display: none; gap: 10px; }
@media (max-width: 820px) {
  .mxwrap { display: none; }
  .mxcards { display: grid; }
  .mxdetail { display: none; }
  .mxdetail .cellnotes li { grid-template-columns: minmax(0,1fr); gap: 2px; }
  .grid2 { grid-template-columns: minmax(0,1fr); }
}
.mxcard .cellnotes { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.mxcard .cellnotes li { font-size: 14px; line-height: 1.5; display: grid; gap: 2px; }
.witness { display: grid; gap: 10px; }
.witness .box b { font-weight: 600; }

/* dictation order */
.orderbars { display: grid; gap: 22px; margin: 18px 0 6px; }
.orderbar .lab { font-family: var(--f-sc); font-size: 13px; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 6px; }
.orderbar .row { display: flex; gap: 4px; min-height: 64px; }
.seg { border-radius: 7px; padding: 8px 10px; min-width: 0; display: flex; flex-direction: column; justify-content: center; font-size: 13px; line-height: 1.3; overflow: hidden; }
.seg b { font-weight: 600; font-size: 13.5px; }
.seg span { color: inherit; opacity: .85; font-size: 12px; }
.seg.sp { background: rgba(154,75,44,.14); color: var(--c-anachronisms); border: 1px solid var(--c-anachronisms); }
.seg.ab { background: rgba(116,72,138,.13); color: var(--c-nineteenth-century); border: 1px solid var(--c-nineteenth-century); }
.seg.lost { border: 1.5px dashed var(--ink-3); color: var(--ink-2); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--paper-2) 6px 8px); }
.seg.tp { border: 1px solid var(--ink-3); color: var(--ink-2); background: var(--card); }
.seg a { color: inherit; }
.seamline { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.steps li { padding: 0 0 18px 18px; position: relative; }
.steps li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.steps li.sp::before { background: var(--c-anachronisms); }
.steps li.ab::before { background: var(--c-nineteenth-century); }
.steps li.lost::before { background: var(--paper); border: 1.5px dashed var(--ink-3); }
.steps .yr { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); }
.steps h4 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 19px; }
.steps p { margin: 3px 0 0; font-size: 14px; color: var(--ink-2); max-width: 44em; }
.dbadge { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; margin-top: 8px; text-decoration: none; }
.dbadge .dot { width: 8px; height: 8px; }

/* composition timeline */
.lanes { border: 1px solid var(--rule); border-radius: 10px; background: var(--card); padding: 12px 14px 8px; }
.lanerow { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 10px; align-items: center; min-height: 40px; border-bottom: 1px dashed var(--rule); }
.lanerow:last-of-type { border-bottom: 0; }
.lanerow .ln { font-size: 12.5px; color: var(--ink-2); line-height: 1.25; }
.track2 { position: relative; height: 40px; }
.track2 .win { position: absolute; top: 0; bottom: 0; background: var(--mark-bg); border-left: 1px solid var(--mark); border-right: 1px solid var(--mark); }
.evdot { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; border: 1.5px solid var(--card); background: var(--accent); cursor: pointer; padding: 0; }
.evdot.approximate { background: var(--card); border: 1.5px solid var(--accent); }
.evdot.disputed { background: var(--card); border: 1.5px dashed var(--del); }
.evdot.sel { box-shadow: 0 0 0 3px var(--accent); }
.evbar { position: absolute; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--accent); opacity: .5; }
.axis { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 10px; margin-top: 4px; }
.axis .ticks { position: relative; height: 18px; }
.axis .ticks span { position: absolute; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.evdetail { margin-top: 12px; min-height: 60px; }
.evlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.evlist li { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 14px; }
.evlist .d { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); padding-top: 3px; }
.evlist h4 { margin: 0 0 2px; font-family: var(--f-display); font-weight: 400; font-size: 19px; }
.evlist p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.evlist .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.yearh { font-family: var(--f-display); font-size: 24px; margin: 22px 0 8px; font-weight: 400; }
@media (max-width: 640px) {
  .lanerow, .axis { grid-template-columns: 74px minmax(0,1fr); gap: 6px; }
  .lanerow .ln { font-size: 11px; }
  .evlist li { grid-template-columns: minmax(0,1fr); gap: 2px; }
}

/* chronology tools */
.tool { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 16px; margin: 14px 0; }
.tool .ctl { display: grid; grid-template-columns: 190px minmax(0,1fr) 110px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.tool .ctl output { font-family: var(--f-mono); font-size: 13px; text-align: right; }
.tool input[type=range] { width: 100%; accent-color: var(--accent); }
.tool .radios { display: flex; flex-wrap: wrap; gap: 6px; }
.result { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.6; }
.result b { font-weight: 600; }
.big { font-family: var(--f-display); font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger td { border-bottom: 1px solid var(--rule); padding: 8px 6px; vertical-align: top; }
.ledger td:first-child { width: 34%; font-weight: 500; }
.ledger td:nth-child(2) { width: 22%; font-family: var(--f-mono); font-size: 13px; }
.ledger td:nth-child(3) { color: var(--ink-2); }
.ladder { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; padding: 0; list-style: none; }
.ladder li { font-size: 13px; border: 1px solid var(--rule); border-radius: 6px; padding: 2px 7px; background: var(--paper); }
.ladder li b { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); font-weight: 400; margin-right: 4px; }
.ladder li.gap { border-style: dashed; border-color: var(--mark); }
.genbar { display: grid; gap: 6px; margin-top: 10px; }
.genbar div { display: grid; grid-template-columns: 150px minmax(0,1fr) 70px; gap: 8px; align-items: center; font-size: 13px; }
.genbar span.b { height: 12px; border-radius: 3px; background: var(--accent); display: block; }
.genbar span.b.ref { background: var(--ink-3); opacity: .55; }
.genbar output { font-family: var(--f-mono); font-size: 12.5px; text-align: right; }
.popchart { width: 100%; max-width: 760px; height: auto; display: block; margin-top: 10px; }
.popchart text { font-family: var(--f-mono); font-size: 11px; fill: var(--ink-3); }
.poptable { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; }
.poptable th, .poptable td { text-align: left; padding: 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.poptable th { font-weight: 500; color: var(--ink-2); font-size: 12.5px; }
.poptable td.num { font-family: var(--f-mono); font-size: 12.5px; text-align: right; white-space: nowrap; }
.poptable tr.over td { background: var(--del-bg); }
.custody { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; gap: 8px; }
.custody li { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 8px; font-size: 14px; line-height: 1.5; }
.custody li::before { counter-increment: c; content: counter(c); font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); text-align: right; padding-top: 2px; }
@media (max-width: 640px) {
  .tool .ctl { grid-template-columns: minmax(0,1fr) 90px; }
  .tool .ctl label { grid-column: 1 / -1; }
  .genbar div { grid-template-columns: 96px minmax(0,1fr) 56px; }
  .ledger td:first-child { width: auto; }
}

/* tours, glossary, names, search */
.tour { counter-reset: t; display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tour li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; }
.tour li::before { counter-increment: t; content: counter(t); font-family: var(--f-display); font-size: 22px; color: var(--ink-3); text-align: right; }
.tour .why { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.gloss { display: grid; gap: 0; margin: 0; }
.gloss dt { font-weight: 600; margin-top: 14px; font-size: 15px; }
.gloss dd { margin: 2px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; max-width: 44em; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.letters a { font-family: var(--f-mono); font-size: 12.5px; text-decoration: none; border: 1px solid var(--rule); border-radius: 5px; padding: 2px 7px; }
.namegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.namegrid a { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; background: var(--card); padding: 9px 11px; }
.namegrid a:hover { border-color: var(--ink-3); }
.namegrid b { font-weight: 600; display: block; }
.namegrid span { font-size: 12px; color: var(--ink-3); display: block; }
.namegrid span.also { color: var(--ink-2); font-size: 13px; margin: 1px 0 2px; }
.originbars { display: grid; gap: 6px; margin: 12px 0; max-width: 560px; }
.originbars button { all: unset; cursor: pointer; display: grid; grid-template-columns: 150px minmax(0,1fr) 44px; gap: 8px; align-items: center; font-size: 13px; padding: 2px 4px; border-radius: 5px; }
.originbars button:focus-visible { outline: 2px solid var(--accent); }
.originbars button[aria-pressed="true"] { background: var(--paper-2); }
.originbars .b { height: 12px; border-radius: 3px; background: var(--accent); display: block; }
.originbars output { font-family: var(--f-mono); font-size: 12px; text-align: right; }
.hits { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.hits a { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 12px; padding: 7px 10px; border-radius: 7px; text-decoration: none; color: var(--ink); }
.hits a:hover { background: var(--paper-2); }
.hits .r { font-family: var(--f-mono); font-size: 12.5px; color: var(--accent); padding-top: 3px; }
.hits .t { font-family: var(--f-text); font-size: 15px; line-height: 1.6; }
.hits .e { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); display: block; margin-top: 2px; }
mark { background: var(--mark-bg); color: inherit; border-radius: 2px; box-shadow: inset 0 -1.5px 0 var(--mark); }
@media (max-width: 560px) { .hits a { grid-template-columns: minmax(0,1fr); gap: 2px; } .originbars button { grid-template-columns: 110px minmax(0,1fr) 40px; } }

/* reader additions */
.text { font-size: var(--fs, 18px); line-height: var(--lh, 1.85); }
.sizebtns { display: inline-flex; gap: 4px; }
.cite { margin-top: 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); padding: 10px 12px; font-size: 13.5px; }
.cite textarea { width: 100%; font: inherit; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 8px; resize: vertical; min-height: 64px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.acts .btn { padding: 7px 12px; font-size: 13px; }
.privacy { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.soon { border: 1px dashed var(--rule); border-radius: 10px; padding: 18px; color: var(--ink-2); font-size: 14.5px; }

@media print {
  .top, footer, .reader-bar, .panel, .scrim, .side .panel, .acts, .ch-nav, .filters, .jump, .cite { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .article { display: block !important; }
  .side { position: static !important; }
  a { color: #000; }
}
.cellwhy { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }
.cellwhy b { font-weight: 600; color: var(--ink); }
details.ratehow { max-width: 50em; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 16px; margin-top: 12px; }
details.ratehow[open] { padding-bottom: 14px; }
details.ratehow dl { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 6px 12px; margin: 12px 0; font-size: 14.5px; line-height: 1.55; }
details.ratehow dd { margin: 0; }
details.ratehow p { font-size: 14.5px; line-height: 1.6; margin: 0 0 8px; }
details.ratehow p.note { color: var(--ink-2); margin: 0; }
@media (max-width: 560px) { details.ratehow dl { grid-template-columns: minmax(0,1fr); } details.ratehow dd { margin-bottom: 6px; } }

/* chiasmus and parallelism */
.cxchurch { margin-top: 12px; }
.cxpanes { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; align-items: start; }
.cxpane { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px 16px; min-width: 0; display: grid; gap: 10px; }
.cxsel { font: inherit; font-family: var(--f-display); font-size: 21px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 7px; padding: 5px 8px; width: 100%; }
.cxclaim { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cxblurb { margin: 0; font-size: 14.5px; line-height: 1.6; }
.cxview { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; width: max-content; max-width: 100%; }
.cxview button { all: unset; cursor: pointer; font-size: 13px; padding: 6px 12px; color: var(--ink-2); }
.cxview button + button { border-left: 1px solid var(--rule); }
.cxview button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.cxview button:disabled { opacity: .45; cursor: not-allowed; }
.cxview button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cxbody { min-width: 0; border-top: 1px solid var(--rule); padding-top: 10px; }
.cxlad { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-family: var(--f-text); font-size: 15px; line-height: 1.4; }
.cxlad li { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 8px; align-items: baseline; margin-left: min(calc(var(--d) * 14px), 42%); padding: 3px 8px 3px 6px; border-left: 3px solid var(--h); background: color-mix(in srgb, var(--h) 7%, transparent); border-radius: 0 5px 5px 0; }
.cxlad li.ctr { border-left-style: double; border-left-width: 4px; font-style: italic; }
.cxlad .cxk { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--h); }
.cxlad small { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.cxlad.mini { margin-top: 10px; font-size: 14px; }
.cxcov { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
.cxcov b { font-family: var(--f-display); font-weight: 400; font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cxtext { font-family: var(--f-text); font-size: 15.5px; line-height: 1.85; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.cxtext p { margin: 0 0 8px; }
.cxvn { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); margin-right: 6px; }
.cxoff { color: var(--ink-3); }
.cxon { color: var(--ink); background: color-mix(in srgb, var(--h) 13%, transparent); box-shadow: inset 0 -2px 0 var(--h); border-radius: 2px; padding: 0 1px; }
.cxon sup { font-family: var(--f-mono); font-size: 10px; color: var(--h); font-weight: 600; margin-right: 2px; }
mark.cxkw { background: transparent; box-shadow: none; outline: 1.5px dashed var(--del); outline-offset: 1px; color: var(--ink); }
.cxon mark.cxkw { outline-style: solid; outline-color: var(--ink-2); }
.cxaudit { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rule); }
.cxah { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.cxchip { all: unset; cursor: pointer; font-size: 13px; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; background: var(--paper); }
.cxchip span { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); margin-left: 4px; }
.cxchip.miss span { color: var(--del); }
.cxchip[aria-pressed="true"] { border-color: var(--ink-2); background: var(--paper-2); }
.cxchip:focus-visible { outline: 2px solid var(--accent); }
.cxsrc { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.cxnotes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: grid; gap: 3px; line-height: 1.5; }
.cxstat { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; border-top: 1px solid var(--rule); padding-top: 10px; }
.cxstat div span { display: block; font-size: 11.5px; color: var(--ink-3); }
.cxstat div b { font-family: var(--f-mono); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cxstat .v b { font-family: var(--f-ui); }
.cxstat.yes .v b { color: var(--c-internal); }
.cxstat p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cxchart { overflow-x: auto; margin-top: 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); padding: 8px; }
.cxchart svg { width: 100%; min-width: 600px; height: auto; display: block; }
.cxchart text { font-family: var(--f-mono); font-size: 11px; fill: var(--ink-3); }
.cxchart text.lab { font-family: var(--f-ui); font-size: 12.5px; fill: var(--ink); }
.mxlegend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cxargs { display: grid; gap: 14px; }
.cxarg h3 { font-size: 22px; }
.cxrate { margin: 0 0 10px; }
.cxside { font-family: var(--f-sc); letter-spacing: .1em; font-size: 13px; margin: 0 0 4px !important; }
.cxside.crit { color: var(--c-anachronisms); }
.cxside.faith { color: var(--c-kjv-dependence); }
.cxassess { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.cxassess b { color: var(--ink); font-weight: 600; }
.cxtime { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); max-width: 46em; }
.cxtime li { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 10px; padding: 0 0 12px 16px; position: relative; }
.cxtime li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.cxtime li.text::before { background: var(--accent); }
.cxtime li.faithful::before { background: var(--c-kjv-dependence); }
.cxtime li.critical::before { background: var(--c-anachronisms); }
.cxtime .yr { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); padding-top: 1px; }
.cxtime p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.cxsrcs { font-size: 14px; gap: 6px; margin-bottom: 16px; }
.cxrel { font-family: var(--f-display); font-weight: 400; font-size: 20px; margin: 18px 0 8px; }
@media (max-width: 860px) {
  .cxpanes { grid-template-columns: minmax(0,1fr); }
  .cxstat { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .cxlad li { margin-left: min(calc(var(--d) * 8px), 30%); grid-template-columns: 26px minmax(0,1fr); }
  .cxlad small { grid-column: 2; }
  .cxtime li { grid-template-columns: minmax(0,1fr); gap: 0; }
}
@media print { .cxview, .cxsel, .cxaudit { display: none !important; } .cxtext { max-height: none; overflow: visible; } }

/* state of the biblical scholarship */
.sch { display: inline-block; font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; color: var(--c-biblical-scholarship); }
.sch.majority { color: var(--ink-2); }
.sch.debated { color: var(--ink-3); border-style: dashed; }
dl.schlevels { margin: 12px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 14px; align-items: baseline; }
dl.schlevels dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { dl.schlevels { grid-template-columns: 1fr; gap: 4px; } dl.schlevels dd { margin-bottom: 8px; } }
ul.readlist { padding-left: 1.2em; }
ul.readlist li { margin: 6px 0; }
ul.readlist .st { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); margin-left: 4px; text-transform: uppercase; }

/* weighing the evidence: issue-page box and the Weighing page */
.weigh { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; }
.weigh > p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; }
.weigh > p b { font-weight: 600; }
.weigh h3 { font-family: var(--f-sc); font-weight: 400; letter-spacing: .1em; font-size: 13px; color: var(--ink-2); margin: 14px 0 6px; }
.wtab { overflow-x: auto; }
table.wfit { width: 100%; border-collapse: collapse; font-size: 14px; }
table.wfit th, table.wfit td { text-align: left; vertical-align: top; padding: 7px 8px 7px 0; border-top: 1px solid var(--rule); line-height: 1.5; }
table.wfit th { font-weight: 500; width: 34%; }
table.wfit td:nth-child(2) { width: 92px; }
table.wfit td:last-child { color: var(--ink-2); }
.wnote { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; line-height: 1.55; max-width: 46em; }
.wclus { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; line-height: 1.6; }
.wclus b { color: var(--ink); font-weight: 600; }
.weigh > .fold + .wclus { margin-top: 12px; } /* same gap below the fold as above it */
@media (max-width: 560px) {
  table.wfit, table.wfit tbody, table.wfit tr, table.wfit th, table.wfit td { display: block; width: auto !important; }
  table.wfit tr { border-top: 1px solid var(--rule); padding: 8px 0; }
  table.wfit th, table.wfit td { border: 0; padding: 0 0 3px; }
}
ol.wq { list-style: none; counter-reset: q; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 46em; }
ol.wq li { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; }
ol.wq li::before { counter-increment: q; content: counter(q); font-family: var(--f-display); font-size: 26px; line-height: 1.1; color: var(--accent); text-align: right; }
ol.wq h3 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 21px; }
ol.wq p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
ol.wsteps { margin: 6px 0 10px; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.6; }
ol.wsteps b { font-weight: 600; }
.wverdict { font-family: var(--f-text); font-style: italic; font-size: 15px; border-top: 1px solid var(--rule); padding-top: 10px; }
table.wmx thead th:first-child { width: 32%; }
table.wmx tr.grp th { background: var(--paper); font-family: var(--f-sc); font-weight: 400; letter-spacing: .1em; font-size: 12.5px; color: var(--ink-2); padding-top: 12px; }
table.wmx tbody th button small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.wh3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.wgrp { font-family: var(--f-sc); font-weight: 400; letter-spacing: .1em; font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }
dl.wkey { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; margin: 12px 0 0; }
dl.wkey div { display: grid; gap: 2px; }
dl.wkey dt { margin: 0; }
dl.wkey dd { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.tallies { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tally h3 { font-size: 19px; }
.tbar { display: flex; height: 12px; border-radius: 4px; overflow: hidden; background: var(--paper-2); margin: 10px 0 6px; }
.tbar span { display: block; height: 100%; }
.tbar .fits { background: var(--c-internal); }
.tbar .strains { background: var(--mark); }
.tbar .conflicts { background: var(--del); }
.tbar .neutral { background: var(--rule); }
.tcount { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
ul.assume { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
ul.assume b { color: var(--ink); font-weight: 600; }
.poslist { display: grid; gap: 14px; }
.pos { max-width: 52em; }
.pos > p { font-size: 15px; line-height: 1.65; margin: 0 0 10px; }
.pos > p b { font-weight: 600; }
.pos .weigh { background: var(--paper); }
ul.wlim { max-width: 44em; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.65; }
@media print { .pos details, .wtab { break-inside: avoid; } }

ul.trpoints { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.6; }

/* Weighing: row affordance, full-width assumptions panel */
table.wmx tbody tr[data-r] { cursor: pointer; }
table.wmx tbody th button .wrt { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
table.wmx tbody tr[data-r]:hover th button .wrt, table.wmx tbody tr.sel th button .wrt { text-decoration-color: var(--accent); }
table.wmx tbody th button small { color: var(--accent); }
.assumebtn { all: unset; cursor: pointer; font-size: 13.5px; color: var(--accent); margin-top: 6px; display: inline-block; }
.assumebtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.assumebtn[aria-expanded="true"] { font-weight: 600; }
.assumebtn[aria-expanded="true"] span { display: inline-block; transform: rotate(180deg); }
.assumepanel { margin-top: 12px; }
.assumepanel .aphead { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.assumepanel .aphead h3 { margin: 0; }
.apclose { all: unset; cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink-3); padding: 0 4px; }
.apclose:focus-visible { outline: 2px solid var(--accent); }
.assumepanel ul.assume { columns: 2 340px; column-gap: 28px; display: block; }
.assumepanel ul.assume li { break-inside: avoid; margin-bottom: 8px; }

/* Support page */
.supportgrid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 16px; align-items: start; max-width: 1000px; }
@media (max-width: 760px) { .supportgrid { grid-template-columns: minmax(0,1fr); } }
.supnote p { font-family: var(--f-text); font-size: 16px; line-height: 1.65; }
.supnote .supsig { font-family: var(--f-display); font-style: italic; font-size: 22px; margin-top: 4px; }
ul.suplist { margin: 8px 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.55; }

/* Site-wide search results */
.sitehits .r small { display: block; font-family: var(--f-ui); font-size: 11.5px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.xsect h2 .count { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.sres .chip { margin-top: 8px; }
@media (max-width: 480px) { nav.main { gap: 0; } nav.main a { padding: 6px 7px; font-size: 13.5px; } }
@media (max-width: 380px) { nav.main a { padding: 6px 5px; font-size: 13px; } .brand { font-size: 20px; } }

/* Issue checklist table (e.g. Campbell's list) */
.cklist { margin: 22px 0 8px; }
.cklist h2 { font-family: var(--f-ui); font-size: 12px; letter-spacing: .12em; color: var(--ink-3); font-weight: 600; margin: 0 0 6px; }
.cklist > p { margin: 0 0 10px; color: var(--ink-2); }
.ckwrap { overflow: hidden; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
table.cktab { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
table.cktab th, table.cktab td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--rule); }
table.cktab tbody tr:last-child th, table.cktab tbody tr:last-child td { border-bottom: 0; }
table.cktab thead th { font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--paper-2); }
table.cktab tbody th { font-weight: 600; width: 24%; }
table.cktab .ckiss { display: block; font-weight: 400; font-size: 12.5px; margin-top: 2px; }
table.cktab td.ckrefs { white-space: nowrap; font-size: 13.5px; width: 1%; }
@media (max-width: 600px) {
  table.cktab thead { display: none; }
  table.cktab tr { display: grid; grid-template-columns: minmax(0,1fr); padding: 8px 10px; border-bottom: 1px solid var(--rule); }
  table.cktab th, table.cktab td { border: 0; padding: 2px 0; width: auto !important; white-space: normal; }
  table.cktab td.ckrefs { white-space: normal; }
  table.cktab td.ckrefs br { display: none; }
  table.cktab td.ckrefs a:not(:first-child)::before { content: ", "; color: var(--ink-3); }
}

.cktxt.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.ckmore { font: inherit; font-size: 13px; color: var(--accent); background: none; border: 0; padding: 6px 0; min-height: 32px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ckmore[hidden] { display: none; }
@media print { .cktxt.clamp { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; } .ckmore { display: none; } }

/* the strongest issues, one per group of evidence */
.strongl { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 0; max-width: 46em; counter-reset: sg; border-top: 1px solid var(--rule); }
.strongi { padding: 16px 0 18px 40px; border-bottom: 1px solid var(--rule); position: relative; counter-increment: sg; }
.strongi::before { content: counter(sg); position: absolute; left: 0; top: 16px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.strongi .sgrp { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-3); }
.strongi .sgrp a { color: var(--ink-2); }
.strongi h2 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.2; text-wrap: balance; }
.strongi h2 a { color: var(--ink); text-decoration: none; }
.strongi h2 a:hover { text-decoration: underline; }
.strongi .sclaim { margin: 0 0 6px; font-family: var(--f-text); font-size: 15.5px; line-height: 1.55; }
.strongi .sreply { margin: 0; font-size: 14px; color: var(--ink-2); }
.strongi .sreply b { color: var(--ink); font-weight: 600; }
.sbal { max-width: 46em; }
.sbal h3 { margin: 0 0 6px; }
.sbal p { margin: 0 0 8px; }
@media (max-width: 560px) { .strongi { padding-left: 30px; } }

/* folded group cards (phone) and ancient-evidence cases on Weighing the evidence */
details.mxcard > summary, details.pos > summary { cursor: pointer; list-style: none; }
details.mxcard > summary::-webkit-details-marker, details.pos > summary::-webkit-details-marker { display: none; }
details.mxcard > summary { display: grid; gap: 8px; }
.mxt { font-family: var(--f-display); font-size: 20px; line-height: 1.2; display: flex; gap: 8px; }
.mxt::before, details.pos > summary h3::before { content: "+"; font-family: var(--f-mono); font-size: 14px; color: var(--accent); width: 1em; flex: none; padding-top: 4px; }
details[open].mxcard .mxt::before, details[open].pos > summary h3::before { content: "−"; }
.mxf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); padding-left: 1.3em; }
.mxf > span { display: flex; flex-direction: column; gap: 1px; }
details[open].mxcard > summary { margin-bottom: 10px; }
details.pos > summary h3 { display: flex; gap: 8px; margin: 0; }
.posk { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; padding-left: 1.6em; }
details[open].pos > summary { margin-bottom: 12px; }

/* word budget (composition page) */
.wbbar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-2); }
.wbbar span { display: block; height: 100%; background: var(--c); transition: opacity .2s; }
.wbbar span.cut { opacity: .18; background: repeating-linear-gradient(135deg, var(--c) 0 3px, transparent 3px 7px); }
.wbbar span.rest { background: var(--ink-3); opacity: .35; }
.wbtotal { margin: 10px 0 4px; font-size: 16px; }
.wbtotal b { font-family: var(--f-display); font-weight: 400; font-size: 28px; margin-right: 4px; }
.wbcats { list-style: none; margin: 10px 0 0; padding: 0; }
.wbcat { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.wbcat p { margin: 4px 0; font-size: 14.5px; line-height: 1.55; }
.wbh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.wbn { font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.wbtog { display: inline-flex; align-items: center; gap: 6px; align-self: start; justify-content: center; }
.wbtog .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.wbtog[aria-checked="false"] .dot { background: transparent; border: 1.5px solid var(--c); }
.wbplaces { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; columns: 2; column-gap: 24px; }
.wbsub { margin: 18px 0 2px; font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.wbcmp { margin-top: 10px; }
.wbfind { margin: 14px 0 6px; }
@media (max-width: 640px) {
  .wbcat { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .wbtog { justify-self: start; }
  .wbplaces { columns: 1; }
  .tool .wbdays > span:first-child, .tool .wbdays .radios { grid-column: 1 / -1; }
  .wbcmp td { display: block; width: auto !important; border-bottom: 0; padding: 2px 0; }
  .wbcmp tr { display: block; border-bottom: 1px solid var(--rule); padding: 6px 0; }
}

/* ---------- site structure: topic tiles, topic pages, the Read shelf ---------- */
.sk { margin: 0 0 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ttiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; margin: 18px 0 22px; }
.ttile { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 18px 16px; }
.ttile:hover { border-color: var(--ink-3); }
.ttile h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 25px; line-height: 1.15; text-wrap: balance; }
.ttile p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.tmeta { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.tdeep { font-size: 13px; color: var(--accent); margin-top: auto; }
.tmore { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 56px; }
.deepl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.deep { display: grid; gap: 4px; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 14px; background: var(--card); }
.deep:hover { border-color: var(--ink-3); border-left-color: var(--accent); }
.deep b { font-weight: 600; font-size: 15.5px; }
.deep span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.ways { margin-top: 18px; }
.tlines { display: grid; gap: 10px; }
.tline { display: grid; gap: 6px; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; background: var(--card); }
.tline:hover { border-color: var(--ink-3); }
.tline b { font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.tline .tq { font-size: 14px; color: var(--ink-2); }
.tline .mxf { padding-left: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .tline .mxf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.anclist { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
#tp-all .wgrp { margin: 22px 0 6px; }
.tnext { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.tfoot { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); }
.shelf { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 12px; padding: 18px; background: var(--card); margin-top: 16px; }
a.shelf:hover { border-color: var(--ink-3); }
.shelf h2 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.15; }
.shelf p { margin: 0 0 10px; color: var(--ink-2); max-width: 46em; }
.shelf.lead { padding: 22px; }
.shelf.lead h2 { font-size: 34px; }
.shelf .btns { display: flex; gap: 10px; margin: 6px 0 14px; }
.shelf .btns .btn { flex: 0 1 auto; min-width: 0; justify-content: center; text-align: center; }
@media (max-width: 560px) { .shelf.lead { padding: 18px 16px; } .shelf .btns .btn { flex: 1 1 0; padding: 10px 10px; font-size: 13.5px; } }
.bookpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.bookpick .sk { margin: 0; }
.homeread { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 14px; }
.homeread .bookpick { margin: 0; }
.shelfgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.shelfgrid .shelf { margin-top: 16px; }
.facs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.fac { display: grid; gap: 6px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }
.fac img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper-2); }
.fac:hover img { border-color: var(--ink-3); }

/* the library: scale strip */
.lscale { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin: 18px 0 8px; }
.lsc { display: grid; gap: 2px; padding: 12px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.lsc:hover { background: var(--paper-2); }
.lsc b { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lsc span { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
#homescale .lscale { margin: 0 0 18px; }
.tsum { margin: 6px 0 0; }

/* library v56: search box, reference cards; shelf pages: big in-depth cards, issue cards by group */
.libsearch { display: flex; gap: 8px; margin: 18px 0 0; max-width: 640px; }
.libsearch input { flex: 1 1 auto; min-width: 0; font-size: 16px; padding: 11px 14px; border-radius: 9px; }
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.rcard { display: grid; gap: 4px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; }
.rcard:hover { border-color: var(--ink-3); }
.rcard b { font-weight: 600; font-size: 15px; }
.rcard span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.bigcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.bigcard { display: grid; align-content: start; gap: 8px; min-height: 150px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 20px 20px 18px; }
.bigcard:hover { border-color: var(--ink-3); }
.bigcard b { font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.15; }
.bigcard span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.tfilt { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.tgrp { margin-top: 26px; }
.tgh { display: grid; gap: 4px; margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.tgh h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.tgh h3 a { color: var(--ink); text-decoration: none; }
.tgh h3 a:hover { text-decoration: underline; }
.tgh .tq { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 46em; }
.tc .ct { justify-content: space-between; }
.tc .ct .str { margin-left: 0; }
.tcv { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }

/* reader: headings and summaries follow the chosen text size */
.page .ch-head h2 { font-size: calc(var(--fs, 18px) * 1.9); }
.page .bookhead, .text .och { font-size: calc(var(--fs, 18px) * .9); line-height: calc(var(--lh, 1.85) * .9); }
.page .bookhead .bht { font-size: calc(var(--fs, 18px) * .85); line-height: 1.5; }
.text .oc { font-size: calc(var(--fs, 18px) * .83); }

/* 1830 page numbers in the reader: a small marked label at the verse where each printed page begins */
.text.show-g .pg { font-family: var(--f-ui); font-size: 11px; letter-spacing: .02em; padding: 1px 6px; border-color: var(--ink-3); color: var(--ink-2); background: var(--card); }
.page .dcheads { font-size: calc(var(--fs, 18px) * .82); line-height: calc(var(--lh, 1.85) * .85); }

/* search options: two labelled button groups */
.sform .sopts { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.sform .shint { flex-basis: 100%; margin: -4px 0 0; font-size: 13.5px; color: var(--ink-3); }
.sseg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sseg .sk { margin: 0; }
.segs { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--card); }
.segs button { font: inherit; font-size: 13.5px; padding: 6px 12px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.segs button + button { border-left: 1px solid var(--rule); }
.segs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
/* ---------- matrices as heatmaps, details under the row (widget review, Oct 23) ---------- */
table.mx.hm td { transition: background .15s; }
table.mx.hm td.hm-fits { background: color-mix(in srgb, var(--c-internal) 15%, transparent); }
table.mx.hm td.hm-strains { background: color-mix(in srgb, var(--mark) 17%, transparent); }
table.mx.hm td.hm-conflicts { background: color-mix(in srgb, var(--del) 22%, transparent); }
table.mx.hm td.hm-neutral { background: transparent; }
table.mx.hm .fit.fits i { background: var(--c-internal); color: var(--card); }
table.mx.hm .fit.strains i { background: var(--mark); color: var(--card); }
table.mx.hm .fit.conflicts i { background: var(--del); color: var(--card); }
table.mx.hm tbody tr:hover td, table.mx.hm tbody tr.sel td { filter: saturate(1.25); }
table.mx thead th .mxlong { display: block; line-height: 1.3; }
table.mx tbody tr[data-f], table.mx tbody tr[data-r] { cursor: pointer; }
table.mx tbody th button .wrt { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
table.mx tbody tr:hover th button .wrt, table.mx tbody tr.sel th button .wrt { text-decoration-color: var(--accent); }
table.mx tbody th button small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--accent); margin-top: 2px; }
table.mx .chev { display: inline-block; transition: transform .15s; }
table.mx tr.sel .chev { transform: rotate(180deg); }
table.mx tr.mxexp > td { padding: 0 10px 14px; background: var(--paper-2); border-bottom: 2px solid var(--accent); }
.mxdetail2 { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 18px; font-size: 14px; }
.mxdetail2 .cellnotes { display: grid; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.mxdetail2 .cellnotes li { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 12px; line-height: 1.55; }
.mxdetail2 .mxclose { margin-top: 12px; }
dl.mxkey { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px 18px; margin: 4px 0 14px; }
dl.mxkey div { display: grid; gap: 3px; align-content: start; }
dl.mxkey dt { margin: 0; }
dl.mxkey dd { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
dl.mxkey .fit.fits i { background: var(--c-internal); color: var(--card); }
dl.mxkey .fit.strains i { background: var(--mark); color: var(--card); }
dl.mxkey .fit.conflicts i { background: var(--del); color: var(--card); }
@media (max-width: 820px) { dl.mxkey { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.tsq { display: grid; grid-template-columns: repeat(22, minmax(0,1fr)); gap: 2px; margin: 4px 0 10px; }
.tsq button { all: unset; aspect-ratio: 1; border-radius: 2px; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 1px var(--ink-3); }
.tsq button[class^="hm-"]:not(.hm-neutral) { box-shadow: none; }
.tsq button.hm-fits { background: var(--c-internal); }
.tsq button.hm-strains { background: var(--mark); }
.tsq button.hm-conflicts { background: var(--del); }
.tsq button:hover, .tsq button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* ---------- composition timeline: labels, lane colors, stepping (widget review) ---------- */
#cp-span, #cp-events { --lane-life: var(--accent); --lane-storytelling: var(--c-nineteenth-century); --lane-sources: var(--c-kjv-dependence); --lane-dictation: var(--c-internal); --lane-publication: var(--c-edition-changes); }
.lanerow .ln .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.track2 { height: 50px; }
.track2 .evdot { top: 62%; background: var(--lc, var(--accent)); }
.track2 .evdot.approximate { background: var(--card); border-color: var(--lc, var(--accent)); }
.track2 .evbar { top: 62%; background: var(--lc, var(--accent)); }
.track2 .evdot.sel { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ink); z-index: 2; }
.evlab { position: absolute; top: 2px; font-size: 11px; line-height: 1.2; color: var(--ink-2); white-space: nowrap; pointer-events: none; transform: translateX(-4px); }
.evlab.r { transform: translateX(4px); text-align: right; }
.bandrow { min-height: 22px; border-bottom: 0; }
.track2.band { height: 22px; }
.track2.band .evlab { color: var(--mark); font-weight: 600; top: 4px; }
.evstep { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.evstep .evpos { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.evstep .btn[disabled] { opacity: .4; cursor: default; }
.evlist .tag .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: 1px; }
.evlist .tag.win { background: var(--mark-bg); color: var(--mark); }
#evlist li.inwin { border-left: 3px solid var(--mark); padding-left: 10px; margin-left: -13px; }
#evlist li.cur { background: var(--paper-2); border-radius: 8px; box-shadow: 0 0 0 8px var(--paper-2); }
.lanephone { display: none; }
@media (max-width: 600px) {
  #cp-span .lanes, #cp-span .lanetools { display: none; }
  .lanephone { display: block; }
  #evlist li.inwin { margin-left: 0; }
}

/* ---------- chronology tools (widget review) ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 12px; font-size: 13px; color: var(--ink-2); }
.presets > span { margin-right: 4px; }
.presets .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rng { position: relative; display: grid; gap: 2px; }
.rng input[type=range] { width: 100%; }
.rngends { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }
.rticks { position: relative; display: block; height: 16px; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-2); }
.rticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.rticks span::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 5px; background: var(--ink-3); }
.rticks span:last-child { transform: translateX(-100%); }
.rticks span:last-child::before { left: auto; right: 0; }
.rtnote { margin: 4px 0 6px; }
svg.nl600 { width: 100%; height: auto; max-width: 720px; display: block; margin: 10px 0 4px; }
svg.nl600 text { font-size: 12px; fill: var(--ink-2); }
svg.nl600 .nlt { font-family: var(--f-mono); font-size: 11px; fill: var(--ink-3); }
svg.nl600 .nlv { font-weight: 600; fill: var(--accent); font-size: 13px; }
.apol.hl { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
.needline { margin: 0 0 8px; padding: 8px 10px; background: var(--mark-bg); border-radius: 6px; }
.prego { font-size: 13.5px; }
.tool .radios .chip { white-space: nowrap; }
@media (max-width: 640px) { .tool .ctl > span:first-child, .tool .ctl > .radios { grid-column: 1 / -1; } .tool .ctl > .radios + span:empty { display: none; } }

/* section tabs (.jump.tabs) and the Previous / Next bar under each section */
#app { overflow-x: clip; }
.jump.tabs a { cursor: pointer; }
.pgnav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 36px 0 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.pgnav .btn { min-width: 0; max-width: 44%; line-height: 1.3; }
.pgnav .pgn { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; text-align: center; line-height: 1.4; }
@keyframes pgFromRight { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes pgFromLeft { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
.pg-r { animation: pgFromRight .28s ease-out; }
.pg-l { animation: pgFromLeft .28s ease-out; }
@media (prefers-reduced-motion: reduce) { .pg-r, .pg-l { animation: none; } }

/* link trails: quiet buttons, chevrons, no underlines; on phones a single back button */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 13px; color: var(--ink-3); margin-left: -8px; }
.crumb .cl { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.crumb .cl:hover { background: var(--paper-2); color: var(--ink); }
.crumb .csep { width: 7px; height: 11px; color: var(--ink-3); flex: none; }
.crumb .cnote { padding: 4px 8px; color: var(--ink-3); }
.crumb .cnote a { color: var(--ink-2); text-decoration: none; }
.crumb .cnote a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .crumb { margin-left: 0; }
  .crumb .cl:not(.last), .crumb .csep, .crumb .cnote:not(.only) { display: none; }
  .crumb .cl.last { border: 1px solid var(--rule); background: var(--card); padding: 5px 12px 5px 9px; border-radius: 999px; }
  .crumb .cl.last::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
}
.crumb .cnote .dot { margin-right: 6px; vertical-align: 1px; }
.crumb .cnote { margin-left: 8px; }

/* no tap flash on chips and tab-like controls; a short fade between states instead */
.jump a, .chip, .segs button, .btn, .catcard, .ttile, .rcard, .deep, .bigcard, .icard, .crumb .cl { -webkit-tap-highlight-color: transparent; }
.jump a { transition: background-color .15s, color .15s, border-color .15s; }
.jump a:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) { .jump a { transition: none; } }
.jump a.cur, .jump a.cur:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
/* ---------- chiasmus: pairs, plain stats, one passage at a time on phones (widget review) ---------- */
.cxlad { position: relative; }
.cxlad li { cursor: pointer; transition: background .12s; }
.cxlad li.pair { background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px var(--accent); }
.cxlad li.pair .cxk { color: var(--accent); }
.cxbr { position: absolute; width: 7px; border: 2px solid var(--accent); border-right: 0; border-radius: 4px 0 0 4px; pointer-events: none; }
.cxstat span { line-height: 1.3; }
.cxwhat { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12.5px; }
.cxwhich { display: none; }
@media (max-width: 640px) {
  .cxwhich { display: flex; gap: 0; grid-column: 1 / -1; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
  .cxwhich button { all: unset; flex: 1; text-align: center; padding: 9px 8px; font-size: 13px; line-height: 1.3; cursor: pointer; background: var(--card); }
  .cxwhich button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .cxwhich button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .cxpanes[data-show="l"] .cxpane[data-side="r"], .cxpanes[data-show="r"] .cxpane[data-side="l"] { display: none; }
  .cxlad li { margin-left: min(calc(var(--d) * 8px), 32px); }
}

/* ---------- names: bars read as filters (widget review) ---------- */
.obhint { font-size: 13px; color: var(--ink-2); margin: 12px 0 4px; }
.originbars button:hover .b { filter: brightness(1.15); }
.originbars.on button[aria-pressed="false"] { opacity: .45; }
.originbars button[aria-pressed="true"] { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.originbars button::after { content: ""; }
.filters #nDisc { flex: none; }

/* ---------- dictation bars on phones (widget review) ---------- */
.orderkey { display: none; font-size: 12.5px; color: var(--ink-2); margin: 6px 0 0; }
.orderkey .sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: -1px; margin: 0 5px 0 0; border: 1px solid var(--ink-3); }
.orderkey .sw.lost { border-style: dashed; background: repeating-linear-gradient(45deg, transparent 0 3px, var(--rule) 3px 5px); }
.orderkey .sw.tp { background: var(--card); margin-left: 6px; }
@media (max-width: 600px) {
  .orderkey { display: block; }
  .orderbar .seg.lost > *, .orderbar .seg.tp > * { display: none; }
}

/* previous / next between issues on a shelf */
.isnav { margin: -40px 0 56px; }
.isnav .btn { font-size: 13.5px; text-align: left; }
.isnav .btn[data-dir="r"] { text-align: right; justify-content: flex-end; }
.isnav .pgn a { color: var(--ink-2); text-decoration: none; font-family: var(--f-ui); }
.isnav .pgn a:hover { color: var(--ink); }
@media (max-width: 560px) { .isnav .btn { font-size: 12.5px; padding: 9px 10px; } }
.pgnav > .btn, .pgnav > span:not(.pgn) { flex: 1 1 0; max-width: none; }
.pgnav > .pgn { flex: none; }
.morerows { display: grid; gap: 8px; }

/* previous / next labels: the neighbour's title on wide screens (one line), just Previous / Next on phones */
.pgnav .btn .pgw { display: none; }
.pgnav .btn .pgt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .pgnav .btn .pgt { display: none; }
  .pgnav .btn .pgw { display: inline; }
  .pgnav > .btn { flex: 0 0 auto; padding: 9px 14px; font-size: 14px; }
  .pgnav > span:not(.pgn) { flex: 0 0 auto; width: 96px; }
}

/* Book switcher in the menu bar (v72) */
.brandbox { display: flex; align-items: center; gap: 10px; }
.booksw .dd-btn { min-height: 32px; padding: 5px 8px 5px 10px; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: transparent; border-color: var(--rule); border-radius: 999px; }
.booksw .dd-btn:hover, .booksw .dd-btn[aria-expanded="true"] { color: var(--ink); background: var(--paper-2); border-color: var(--rule); }
.booksw .dd-list { min-width: 330px; }
.booksw .dd-list li > span:first-child { white-space: nowrap; }
.booksw .dd-list li { padding-block: 9px; }
@media (max-width: 560px) {
  .brandbox { flex-direction: column; align-items: flex-start; gap: 0; }
  .brandbox .brand { line-height: 1.15; }
  .booksw { margin-left: -6px; }
  .booksw .dd-btn { min-height: 24px; padding: 1px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-color: transparent; }
  .booksw .dd-list { min-width: min(320px, calc(100vw - 32px)); }
}

/* back to search results: a pill, first in the trail; on phones it replaces the trail */
.crumb .cback { border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: 4px 12px 4px 10px; margin-right: 10px; }
.crumb .cback::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
.crumb.sbonly { padding-top: 16px; margin-left: 0; }
@media (max-width: 560px) {
  .crumb.hasback .cl:not(.cback), .crumb.hasback .csep, .crumb.hasback .cnote { display: none; }
  .crumb.hasback .cl.cback { display: inline-flex; margin-right: 0; padding: 5px 12px 5px 9px; }
}

/* Spacing guard (v81). A card grid or card list never sits flush against what comes before or after it:
   a chart legend, a "Sources" toggle, a ratings explainer, or the next paragraph.
   :where() keeps this at zero specificity, so any rule that sets its own margin still wins.
   Headings are left out: a heading stays close to what it introduces. */
:where(:not(h2, h3, h4, .sk)) + :where(.grid2, .grid3, .ilist, .igrid, .deepl, .mxcards, .bigcards) { margin-top: 16px; }
:where(.grid2, .grid3, .ilist, .igrid, .deepl, .mxcards, .bigcards) + :where(*) { margin-top: 16px; }
.tfoot .sk { margin-bottom: 10px; }
.soon + h3 { margin-top: 20px; }
.xsect > :is(.grid2, .grid3, .ilist, .igrid, .deepl, .bigcards) + p { margin-top: 16px; }
/* Issue page: "Elsewhere on the site" box (fillElsewhere in explore.js) */
.sidebox .elk { display: block; margin: 10px 0 4px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.sidebox h4 + .elk, .sidebox h4 + p > .elk:first-child { margin-top: 0; }
.sidebox ul.else { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 13.5px; line-height: 1.45; }


/* Scale bands under population sliders (v87): green within the evidence, amber stretching it, red beyond it. */
.zbar { display: flex; height: 6px; margin: 1px 8px 0; border-radius: 3px; overflow: hidden; background: var(--rule); }
.zbar i { display: block; height: 100%; }
.z-ok { --z: var(--c-internal); } .z-strain { --z: var(--mark); } .z-over { --z: var(--del); }
.zbar i { background: color-mix(in srgb, var(--z) 55%, transparent); }
.zline { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); margin-top: 2px; min-height: 1.4em; }
.zdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--z); margin-right: 6px; vertical-align: 0; }
.assume { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; font-size: 14.5px; line-height: 1.6; }
.assume b { font-weight: 600; }
.assume b[class], .result .big[class*="z-"] { color: var(--z); }
.popchart .cref { font-size: 10.5px; fill: var(--ink-3); }

/* In-text links (explore.js linkNode): glossary terms look like every other link (Sam, v100: a dotted
   warm underline read as a spell-checker mark, not something to tap) */
.vpop .gdef { margin: 0 0 12px; font-size: 16px; line-height: 1.55; }

/* Sources page (#sources) */
.srcintro { max-width: 44em; }
.srcintro p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; }
.srcintro p.note { font-size: 14px; }
.filters #sq { flex: 1 1 260px; min-width: 0; max-width: 420px; }
.srclist { list-style: none; margin: 0; padding: 0; max-width: 52em; }
.srclist li { font-size: 14.5px; line-height: 1.55; padding: 5px 0 5px 1.5em; text-indent: -1.5em; color: var(--ink); overflow-wrap: anywhere; }
.srclist li .tag { text-indent: 0; vertical-align: 1px; }
.srclist .srcletter { font-family: var(--f-display); font-size: 22px; color: var(--ink-3); padding: 18px 0 4px; text-indent: 0; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.srclist .srcletter:first-child { padding-top: 4px; }
.srcn { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
/* the verse strip box, highlighted when opened from Charts and tools (#i-<id>#where) */
.sidebox.flash { animation: boxflash 2.6s ease-out .4s 1 both; }
@keyframes boxflash { 0%, 55% { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); } 100% { border-color: var(--accent); box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .sidebox.flash { animation: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); } }
/* Names: a near-biblical name beside its King James match */
.nearbib { border: 1px solid var(--rule); border-radius: 10px; background: var(--card); padding: 14px 16px; margin: 0 0 14px; max-width: 34em; }
.nearbib .nbk { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }
.nearbib .nbrow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nearbib .nbrow + .nbrow { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); }
.nearbib .nbrow > div { display: flex; flex-direction: column; min-width: 7em; }
.nearbib .nbw { font-family: var(--f-display); font-size: 28px; line-height: 1.15; color: var(--ink); letter-spacing: .01em; }
.nearbib .nbw mark { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); border-radius: 3px; padding: 0 1px; }
.nearbib .nbs { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.nearbib .nbv { font-size: 22px; color: var(--ink-3); }
.nearbib .nbn { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* Population tools on phones (v93+): chart above the sliders, pinned under the tab bar while they scroll. */
@media (max-width: 640px) {
  .pstage { display: flex; flex-direction: column; }
  .pstage > .pchart { order: -1; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--toph, 57px) + var(--jumph, 50px)); z-index: 5; background: var(--card); margin: 0 -16px 6px; padding: 2px 16px 6px; border-bottom: 1px solid var(--rule); }
  .pchart .popchart { margin-top: 2px; }
  .pchart .mxlegend { font-size: 11.5px; gap: 2px 10px; margin-top: 2px; }
}

/* Feedback page (#feedback): form that emails Sam via /api/feedback. */
.fbgrid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 16px; align-items: start; max-width: 1000px; }
@media (max-width: 760px) { .fbgrid { grid-template-columns: minmax(0,1fr); } }
.fbform { display: grid; gap: 14px; }
.fbrow { display: grid; gap: 6px; min-width: 0; }
.fblab { font-size: 14px; font-weight: 500; color: var(--ink); }
.fblab small { font-weight: 400; color: var(--ink-3); font-size: 12.5px; margin-left: 4px; }
.fbform input[type=text], .fbform input[type=email], .fbform textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 9px 11px; }
.fbform textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.fbform input:focus-visible, .fbform textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.fbpair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
@media (max-width: 560px) { .fbpair { grid-template-columns: minmax(0,1fr); } }
.fbhp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fbform .acts { margin: 0; }
.fbform .btn[disabled] { opacity: .5; cursor: not-allowed; }
.fbstatus { margin: 0; min-height: 1.4em; font-size: 14.5px; color: var(--c-internal); }
.fbstatus.bad { color: var(--del); }
.fbside p { font-size: 14.5px; line-height: 1.6; }
.fbside h3 { font-size: 15px; margin: 14px 0 6px; }
.fbfoot { margin: 28px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); }
/* while a section slides under the sticky tab strip, cover the side gutters too */
.jump.tabs { box-shadow: -16px 0 0 var(--paper), 16px 0 0 var(--paper); }
/* AI disclosure draft: blanks for the launch figures (remove when the numbers go in) */

/* ---------- Help check a source (#help-check) ---------- */
.hcbox { margin: 8px 0 18px; }
.hcbox h2 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.hcbox ol { margin: 0 0 10px; padding-left: 22px; font-size: 14.5px; line-height: 1.6; }
.hcf { display: block; margin: 0 0 14px; }
.hcf input { width: 100%; max-width: 420px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: inherit; font: inherit; }
.hcw { border-top: 1px solid var(--rule); padding: 10px 0; }
.hcw:last-child { border-bottom: 1px solid var(--rule); }
.hcw > summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.hcw > summary .hct { font-weight: 600; line-height: 1.4; }
.hcw > summary .fct { white-space: nowrap; flex: none; }
.hco { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-3); }
.hcc { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 12px; }
.hcc li p { margin: 2px 0; font-size: 14.5px; line-height: 1.55; }
.hcc .hci { font-size: 13px; letter-spacing: .02em; }
.hcc .hcl { font-size: 13.5px; color: var(--ink-3); }
.hcc .hcg { font-style: italic; color: var(--ink-3); }
.hcc .hcs { display: inline-block; margin-top: 6px; padding: 5px 12px; font-size: 13.5px; text-decoration: none; }
.hcc .hcp { margin: 4px 0; padding-left: 18px; font-size: 14.5px; line-height: 1.55; }
.hcc .hcp li { margin: 2px 0; }
/* the work titles open and close: a chevron and a Show / Hide label make that plain */
.hcw > summary { list-style: none; padding: 4px 0; }
.hcw > summary::-webkit-details-marker { display: none; }
.hcw > summary .hct { flex: 1 1 auto; }
.hcw > summary .hcx { flex: none; width: 9px; height: 9px; margin-right: 2px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transition: transform .15s; align-self: center; }
.hcw[open] > summary .hcx { transform: rotate(45deg); }
.hcw > summary .hcopen { flex: none; font-size: 13px; color: var(--accent); }
.hcw > summary .hcopen::after { content: 'Show'; }
.hcw[open] > summary .hcopen::after { content: 'Hide'; }
.hcw > summary:hover .hct { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hcw > summary .hcx { transition: none; } }

/* ---------- "not directly verified" markers (tools/build_unverified.py) ---------- */
.nv { font-style: normal; }
.nv .nvb { display: inline; margin: 0 0 0 .35em; padding: 0 .4em; border: 1px dashed var(--ink-3); border-radius: 3px; background: none; color: var(--ink-2); font: 500 .68em/1.5 var(--f-ui); letter-spacing: .02em; white-space: nowrap; vertical-align: .12em; cursor: pointer; }
span.nvb { cursor: inherit; }
.nv button.nvb:hover, .nv button.nvb[aria-expanded="true"] { border-style: solid; color: var(--ink); }
.nv button.nvb:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nv .nvx { display: block; margin: .3em 0 .2em; padding: .35em .6em; border-left: 2px solid var(--rule); color: var(--ink-2); font: 400 13.5px/1.5 var(--f-ui); }
.nv .nvx[hidden] { display: none; }

/* ---------- Checking data (#data) ---------- */
.dlist { list-style: none; margin: 0 0 18px; padding: 0; }
.dlist li { padding: 12px 0; border-top: 1px solid var(--rule); }
.dlist li:last-child { border-bottom: 1px solid var(--rule); }
.dlist .dn { font-weight: 600; }
.dlist .dm { display: block; margin-top: 2px; color: var(--ink-3); font: 13px/1.5 var(--f-ui); }
.dlist p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; }
/* What each explanation holds (#positions) */
.posdl { max-width: 46em; margin: 8px 0 0; }
.posdl dt { font-weight: 600; margin-top: 14px; }
.posdl dd { margin: 4px 0 0; }
.posdl dd p { margin: 0 0 4px; }
.poshold { max-width: 46em; padding-left: 1.2em; margin: 8px 0 0; }
.poshold li { margin: 8px 0; line-height: 1.55; }
/* Start here overview (checklist 9d) */
a.stexpl { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
a.stexpl b { font-weight: 600; }
a.stexpl span { color: var(--ink-2); font-size: 15px; }
a.stexpl:hover b, a.stexpl:focus-visible b { text-decoration: underline; }
.stq { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 4px; font-weight: 600; }
.sidebyside { align-items: stretch; }
.sidecol h3 { margin-top: 0; }
.sidecol .anclist { margin-top: 10px; }
.sidecol .refs { margin-top: 12px; }
#lib-big .bigcards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.treply { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; padding-left: 12px; border-left: 2px solid var(--rule); }
.treply b { color: var(--ink); font-weight: 600; }
.treply .tleave { display: block; margin-top: 4px; }
