/* Study tab: timeline, chronological reading, encyclopedia (Feasts & Traditions, groups, people, world), display options */
.st-view[hidden] { display: none; }
.st-tabs { display: flex; gap: .3rem; overflow-x: auto; padding: .2rem 0 .5rem; margin: 0 0 .4rem; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.st-tabs a { flex: 0 0 auto; text-decoration: none; font: 600 .86rem var(--sans); color: var(--accent); padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: #fffdf8; min-height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; }
.st-tabs a.on { background: var(--accent); color: #fff8ee; border-color: var(--accent); }
.st-filters { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; margin: .5rem 0; font-size: .85rem; }
.st-filters label { display: flex; flex-direction: column; gap: .1rem; color: var(--ink-soft); }
.st-filters select { font: inherit; font-size: 15px; min-height: 40px; max-width: 11rem; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; color: var(--ink); }
.st-filters .st-chk { flex-direction: row; align-items: center; gap: .3rem; min-height: 40px; }
.st-count { font-size: .8rem; color: var(--ink-soft); margin: .2rem 0; }
.st-tl { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 3px solid var(--line); }
.st-ev { position: relative; margin: 0 0 .9rem; padding: .5rem .7rem; background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; line-height: 1.45; }
.st-ev::before { content: ""; position: absolute; left: -1.43rem; top: .9rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--accent); border: 2px solid #fffdf8; }
.st-ev h4 { margin: .1rem 0 .2rem; font: 600 1.05rem var(--serif); } .st-ev h4 a { color: var(--year); text-decoration: none; }
.st-ev p { margin: .2rem 0; }
.st-world { background: #f3f6f8; border-style: dashed; } .st-world::before { background: #6a8296; }
.st-date { font: 700 .75rem var(--sans); color: var(--accent-soft); letter-spacing: .03em; margin: 0; }
.st-approx { font: 600 .65rem var(--sans); color: #8a6d3b; background: #f7ecd0; border-radius: 4px; padding: 0 .3rem; text-transform: uppercase; }
.st-region { color: #4f6577; }
.st-refs { line-height: 2.1; }
.st-ref { font: 600 .8rem var(--sans); border: 1px solid var(--line); background: #f8f1e0; color: var(--accent); border-radius: 6px; padding: .15rem .45rem; cursor: pointer; }
.st-people { font-size: .82rem; } .st-people a { color: var(--accent); }
.st-else { margin: 1rem 0; background: #f3f6f8; border-radius: 10px; padding: .5rem .8rem; } .st-else summary { font-weight: 600; cursor: pointer; min-height: 32px; }
.st-nav { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: space-between; margin: 1.2rem 0; }
.st-prog { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-soft); } .st-prog progress { flex: 1 1 auto; height: .8rem; accent-color: var(--accent); }
.st-readbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .5rem 0; } .st-readbar input { width: 4.2rem; font-size: 16px; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 .3rem; }
.st-text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; }
.st-done[aria-pressed="true"] { background: #2f7d4a; color: #fff; border-color: #2f7d4a; }
.st-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin: .6rem 0; }
.st-hubc { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--ink); background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; padding: .7rem; min-height: 96px; }
.st-hubc strong { font: 600 1rem var(--serif); color: var(--year); } .st-hubc small { color: var(--ink-soft); font-size: .78rem; } .st-hubi { font-size: 1.5rem; }
.st-list { list-style: none; padding: 0; margin: .3rem 0; } .st-list li { border-bottom: 1px solid #e8dcc0; }
.st-list a { display: flex; flex-direction: column; padding: .5rem .2rem; text-decoration: none; color: var(--ink); min-height: 44px; box-sizing: border-box; }
.st-list a strong { color: var(--year); font: 600 1rem var(--serif); } .st-list small { color: var(--ink-soft); font-size: .8rem; }
.st-list.st-people a { flex-direction: row; align-items: center; gap: .6rem; flex-wrap: wrap; } .st-list.st-people img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.st-find { display: flex; align-items: center; gap: .4rem; margin: .5rem 0; font-size: .85rem; } .st-find input { flex: 1; font-size: 16px; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 .5rem; }
.st-lead { font-size: 1.05rem; line-height: 1.55; }
.st-when { background: #f8f1e0; border-radius: 8px; padding: .4rem .7rem; font-size: .9rem; }
.st-quote { margin: 1rem 0; padding: .5rem .9rem; border-left: 4px solid var(--line); background: #fbf7ee; } .st-quote blockquote { margin: 0; font-family: var(--serif); line-height: 1.55; } .st-quote figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }
.st-dict { margin: .5rem 0; font-size: .9rem; } .st-dict summary { cursor: pointer; color: var(--accent); min-height: 32px; }
.st-src { margin: 1.2rem 0; background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem; font-size: .88rem; }
.st-src summary { cursor: pointer; font-weight: 600; min-height: 32px; } .st-src h4 { margin: .6rem 0 .2rem; font-size: .85rem; } .st-src ul { margin: 0; padding-left: 1.1rem; } .st-src li { margin: .2rem 0; }
.st-how { color: var(--ink-soft); font-size: .76rem; } .st-tag { font-size: .7rem; background: #eee; border-radius: 4px; padding: 0 .3rem; }
.st-tablewrap { overflow-x: auto; } .st-cmp { border-collapse: collapse; font-size: .84rem; min-width: 640px; } .st-cmp th, .st-cmp td { border: 1px solid var(--line); padding: .35rem .45rem; vertical-align: top; text-align: left; } .st-cmp thead th { background: #f8f1e0; } .st-cmp tbody th { background: #fbf7ee; }
.st-cal { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.st-calm { background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; } .st-calm h3 { margin: 0 0 .3rem; font: 600 1rem var(--serif); color: var(--year); } .st-calm h3 small { color: var(--ink-soft); font: .75rem var(--sans); } .st-calm ul { margin: 0; padding-left: 1rem; font-size: .88rem; } .st-calm li { margin: .2rem 0; }
.st-fam { border-collapse: collapse; font-size: .9rem; } .st-fam th { text-align: left; padding: .2rem .6rem .2rem 0; color: var(--ink-soft); font-weight: 600; vertical-align: top; } .st-fam td { padding: .2rem 0; }
.st-art { margin: .6rem 0; } .st-art img { max-width: 100%; max-height: 360px; border-radius: 8px; } .st-art figcaption, .st-photo figcaption { font-size: .78rem; color: var(--ink-soft); }
.st-photo img { max-width: 100%; border-radius: 8px; }
.st-mini { padding-left: 1.2rem; font-size: .92rem; } .st-mini span { font-weight: 600; color: var(--accent-soft); }
.st-tree { overflow-x: auto; font-size: .9rem; } .st-tree ul { list-style: none; margin: 0; padding-left: 1rem; border-left: 1px dashed var(--line); } .st-tree li { margin: .25rem 0; } .st-tree a { color: var(--year); font-weight: 600; } .st-tree .st-focus > a, .st-tree .st-focus > span { background: #f7ecd0; padding: 0 .3rem; border-radius: 4px; }
/* display options (shared with the reader) */
.dp-gear { position: relative; } .dp-gear summary { list-style: none; cursor: pointer; font: 600 .85rem var(--sans); color: var(--accent); border: 1px solid var(--line); border-radius: 8px; padding: .35rem .6rem; min-height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; background: #fffdf8; }
.dp-gear summary::-webkit-details-marker { display: none; }
.dp-gear[open] .dp-panel { position: absolute; right: 0; z-index: 30; width: min(320px, 86vw); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.dp-panel { background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem; margin: .3rem 0; font: .9rem var(--sans); } .dp-panel legend { font-weight: 700; padding: 0 .3rem; }
.dp-opt { display: flex; align-items: center; gap: .5rem; min-height: 40px; } .dp-opt input { width: 20px; height: 20px; accent-color: var(--accent); }
.dp-note { font-size: .78rem; color: var(--ink-soft); margin: .3rem 0 0; }
body.dp-novn .rd-vn { display: none; }
body.dp-nochap .dp-ch, body.dp-nochap .rd-text .rd-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.dp-para .dp-p { margin: 0 0 .8rem; text-indent: 1.2rem; } .dp-v { cursor: pointer; } .dp-v.rd-hl { background: #fdf0c2; }
body.dp-nolinks .dp-enc { color: inherit; text-decoration: none; pointer-events: none; }
.dp-enc { color: inherit; text-decoration: underline dotted var(--accent-soft); text-underline-offset: 3px; }
.dp-menu { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; padding: .4rem .5rem; margin: .3rem 0; font: .85rem var(--sans); box-shadow: 0 3px 12px rgba(0,0,0,.12); }
body.dp-para .dp-menu { display: inline-flex; }
.dp-menu button { font: 600 .82rem var(--sans); min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #f8f1e0; color: var(--accent); padding: 0 .55rem; cursor: pointer; }
/* places */
.pl-view[hidden] { display: none; }
.pl-browse { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0; }
.pl-browse a { text-decoration: none; font: 600 .85rem var(--sans); color: var(--accent); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; background: #fffdf8; min-height: 36px; box-sizing: border-box; }
.pl-browse a.on, .pl-keys .sr-chip.on { background: var(--accent); color: #fff8ee; }
.pl-map { height: 380px; border: 1px solid var(--line); border-radius: 10px; margin: .5rem 0; z-index: 0; }
.pl-map1 { height: 260px; }
.pl-pin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; vertical-align: middle; }
.pl-pin-firm { background: #8a3b1e; border: 2px solid #fff; box-shadow: 0 0 0 1px #8a3b1e; }
.pl-pin-possible { background: transparent; border: 2px dashed #8a3b1e; }
.pl-pin-traditional { background: #f1e3b9; border: 2px dotted #6b5a2a; }
.pl-legend { font-size: .8rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.pl-conf { font: 600 .7rem var(--sans); border-radius: 4px; padding: .05rem .35rem; background: #e6efe0; color: #355225; white-space: nowrap; }
.pl-conf.pl-probable { background: #eef3dc; } .pl-conf.pl-disputed { background: #f7ecd0; color: #7a5a17; } .pl-conf.pl-traditional { background: #efe4f2; color: #5d3a6a; } .pl-conf.pl-unknown { background: #eee; color: #555; }
.pl-n { color: var(--ink-soft); font-weight: 400; }
.pl-noimg { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: #f3ecdc; border-radius: 6px; }
.pl-photo { margin: .6rem 0; } .pl-photo img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 10px; } .pl-photo figcaption { font-size: .8rem; color: var(--ink-soft); }
.pl-then { margin: .3rem 0 .8rem; padding: .4rem .8rem; border-left: 3px solid var(--line); background: #fffdf8; font-size: .92rem; line-height: 1.5; }
.leaflet-container a.pl-pinlink { color: var(--accent); }
.en-list .pl-noimg { width: 100%; height: 90px; padding: 0; font-size: 1.6rem; border-radius: 0; }
/* Hebrew/Greek word study */
.wd-pop { position: fixed; inset: 0; background: rgba(30, 20, 10, .35); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.wd-card { position: relative; background: #fffdf8; color: var(--ink); width: 100%; max-width: 640px; max-height: 82vh; overflow: auto; border-radius: 16px 16px 0 0; padding: .9rem 1rem 1.2rem; box-shadow: 0 -4px 20px rgba(0,0,0,.2); line-height: 1.5; }
.wd-x { position: absolute; right: .5rem; top: .5rem; min-width: 40px; min-height: 40px; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; }
.wd-ctx { font-size: .85rem; color: var(--ink-soft); margin: 0 2.5rem .4rem 0; }
.wd-head { display: flex; gap: .8rem; align-items: center; margin: .2rem 0 .6rem; }
.wd-lemma { font-size: 2rem; font-family: "SBL Hebrew", "Ezra SIL", "Noto Serif Hebrew", "Noto Serif", serif; color: var(--year); }
.wd-pron { font-size: .9rem; color: #6b4b2a; }
.wd-bdb pre { white-space: pre-wrap; font: .9rem/1.5 var(--serif); background: #f6f0e2; padding: .5rem .7rem; border-radius: 8px; }
.wd-list { list-style: none; padding: 0; } .wd-list li { border-bottom: 1px solid var(--line); } .wd-list a { display: block; padding: .5rem .2rem; text-decoration: none; color: var(--ink); min-height: 40px; }
.wd-l { font-size: 1.25rem; color: var(--year); } .wd-verses li { margin: .35rem 0; line-height: 1.5; } .wd-verses mark { background: #f7e3a1; }
.dp-word { font-weight: 600; }
.st-tlfind { display: flex; flex-wrap: wrap; gap: .4em; align-items: flex-end; margin: .5em 0; }
.st-tlfind .st-find { flex: 1 1 14em; }
.st-tlfind input { width: 100%; }
.st-vmsg { flex-basis: 100%; margin: 0; font-size: .9em; color: var(--muted, #666); }
.st-vmsg:empty { display: none; }
