:root { --ink: #1d1d1f; --muted: #6b6b70; --line: #e3e1dc; --bg: #fbfaf7; --accent: #8a3b12; --low: #f3c9a8; --pub: #9ec5e8; --var: #c9b6e4; }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.55 Georgia, "Times New Roman", serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
header.top { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: baseline; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
header .brand { font-weight: bold; text-decoration: none; color: var(--ink); }
header nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font: 15px system-ui, sans-serif; }
main { max-width: 60rem; margin: 0 auto; padding: 1rem; }
footer { max-width: 60rem; margin: 2rem auto; padding: 1rem; color: var(--muted); font: 13px system-ui, sans-serif; border-top: 1px solid var(--line); }
h1 .ref { color: var(--muted); font-weight: normal; }
.lead { font-size: 1.15rem; }
.button { display: inline-block; margin: .25rem .25rem .25rem 0; padding: .5rem .9rem; border: 1px solid var(--accent); border-radius: 6px; text-decoration: none; font: 15px system-ui, sans-serif; }
.refnote, .hint, .small { color: var(--muted); font: 13px/1.4 system-ui, sans-serif; }
.tools { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font: 14px system-ui, sans-serif; margin: .5rem 0; }
.tools select, .tools input[type=search] { font: inherit; max-width: 100%; }
.pager { display: flex; justify-content: space-between; font: 14px system-ui, sans-serif; margin: .75rem 0; }
.text { font-size: 1.3rem; line-height: 2; }
.text[dir=rtl] { font-family: "SBL Hebrew", "Ezra SIL", "Times New Roman", serif; font-size: 1.5rem; }
.text .v { margin: 0 0 .6rem; }
.vn { font: 12px system-ui, sans-serif; color: var(--muted); text-decoration: none; vertical-align: super; margin: 0 .3rem; }
.w { cursor: pointer; border-radius: 3px; padding: 0 1px; }
.w:hover, .w.sel { background: #fff1c2; outline: 1px solid #e6c65a; }
body.mark-low .w.low { background: var(--low); }
body.mark-pub .w.pub { box-shadow: inset 0 -3px 0 var(--pub); }
body.mark-var .w.var { text-decoration: underline dotted var(--accent); text-underline-offset: 4px; }
.gap { font-size: .7rem; border: none; background: none; color: var(--accent); cursor: pointer; padding: 0 .1rem; vertical-align: super; }
.v.out { opacity: .85; }
.v.out .note { font: 14px system-ui, sans-serif; color: var(--muted); }
button.link { background: none; border: none; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.text.compare .v { margin-bottom: .1rem; }
.side { font-size: 1.05rem; color: #34495e; border-left: 3px solid var(--line); padding: 0 .6rem; margin: 0 0 .8rem; }
.text[dir=rtl] .side { border-left: none; border-right: 3px solid var(--line); }
.side mark { background: #ffd6d6; }
@media (min-width: 900px) { .text.compare { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.2rem; } .text.compare .side { margin: 0 0 .6rem; } .text.compare .v.out + .side { } }
#panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(26rem, 100%); background: #fff; border-left: 1px solid var(--line); box-shadow: -4px 0 16px rgba(0,0,0,.08); padding: 1rem 1.1rem 2rem; overflow: auto; z-index: 10; font: 15px/1.45 system-ui, sans-serif; }
@media (max-width: 700px) { #panel { top: auto; height: 62vh; width: 100%; border-left: none; border-top: 1px solid var(--line); border-radius: 12px 12px 0 0; } }
#panel h2 { font: 1.5rem Georgia, serif; margin: .2rem 0; }
#panel h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
#panel ul, #panel ol { padding-left: 1.2rem; margin: .2rem 0; }
#panel .close { position: absolute; right: .6rem; top: .4rem; font-size: 1.6rem; border: none; background: none; cursor: pointer; }
.conf b { font-size: 1.2rem; } .lowc b { color: #b4410b; }
.pubnote { background: #e8f2fb; padding: .4rem .6rem; border-radius: 6px; }
.readings li { margin-bottom: .5rem; } .readings li.chosen .rt { font-weight: bold; } .rt { font: 1.15rem Georgia, serif; }
.tag { font: 11px system-ui, sans-serif; background: var(--accent); color: #fff; border-radius: 3px; padding: 0 .3rem; vertical-align: middle; }
.quote { font-size: 1.2rem; background: var(--bg); padding: .5rem; border-radius: 6px; }
.books { list-style: none; padding: 0; } .books li { margin: .4rem 0; }
.chapters a { display: inline-block; min-width: 2.2rem; text-align: center; margin: .15rem; padding: .2rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font: 14px system-ui, sans-serif; background: #fff; }
.chapters.small a { min-width: 1.8rem; font-size: 12px; padding: 0; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; font: 13px/1.35 system-ui, sans-serif; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: .35rem .5rem; text-align: left; vertical-align: top; }
th[data-k] { cursor: pointer; white-space: nowrap; } th[aria-sort=ascending]::after { content: " ▲"; } th[aria-sort=descending]::after { content: " ▼"; }
td.n { text-align: right; white-space: nowrap; } tr.sel { background: #fff1c2; }
#s-results li { margin: .4rem 0; } #s-results span { font-size: 1.1rem; margin-left: .4rem; }
.rules li { margin-bottom: .7rem; }
.tools label { max-width: 100%; } .tools .cmp select { display: block; width: 100%; margin-top: .2rem; }
.images { font: 14px system-ui, sans-serif; margin: .5rem 0; } .images li { margin: .2rem 0; }
