/* Human History and Jehovah's People — styles */
:root {
  --paper: #f6f2e9; --panel: #fffdf8; --ink: #1f2430; --ink-2: #4c5364; --ink-3: #7a8192; --rule: #ddd5c4; --rule-2: #ebe5d8;
  --b: #2a4f8f; --b-soft: #e6ecf6; --b-ink: #1d3a6b;
  --o: #b4551b; --o-soft: #f9e9dc; --o-ink: #8a3f10;
  --w: #68707f; --w-soft: #eceef1; --w-ink: #4a5160;
  --gold: #a9812a; --focus: #0b6bcb; --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 6px 20px rgba(40, 30, 10, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --top-h: 150px; --drawer-w: 440px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14171d; --panel: #1b1f27; --ink: #e9e6df; --ink-2: #b9bcc6; --ink-3: #8b90a0; --rule: #323846; --rule-2: #272c37;
    --b: #7fa6e8; --b-soft: #1e2a40; --b-ink: #a9c4f2; --o: #e8935a; --o-soft: #3a261a; --o-ink: #f2b48a;
    --w: #9aa1b0; --w-soft: #262b35; --w-ink: #b9bfcc; --gold: #d4ac55; --focus: #7db7ff; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --paper: #14171d; --panel: #1b1f27; --ink: #e9e6df; --ink-2: #b9bcc6; --ink-3: #8b90a0; --rule: #323846; --rule-2: #272c37;
  --b: #7fa6e8; --b-soft: #1e2a40; --b-ink: #a9c4f2; --o: #e8935a; --o-soft: #3a261a; --o-ink: #f2b48a;
  --w: #9aa1b0; --w-soft: #262b35; --w-ink: #b9bfcc; --gold: #d4ac55; --focus: #7db7ff; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.2; }
a { color: var(--b); text-underline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--panel); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); padding: .6rem clamp(.75rem, 3vw, 2rem) 0; }
.top-row { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.brand { flex: 1 1 auto; min-width: 0; }
.brand h1 { font-size: clamp(1.25rem, 2.6vw, 1.75rem); letter-spacing: -.01em; }
.tag { margin: .1rem 0 0; color: var(--ink-2); font-size: .86rem; }
.views { display: flex; gap: .15rem; background: var(--rule-2); padding: 3px; border-radius: 9px; }
.view-btn { border: 0; background: none; padding: .32rem .8rem; border-radius: 7px; font-size: .9rem; color: var(--ink-2); }
.view-btn.is-on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); font-weight: 600; }

.tools { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .55rem; }
.search { position: relative; flex: 1 1 15rem; max-width: 26rem; }
.search svg { position: absolute; left: .6rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%); color: var(--ink-3); }
.search input { width: 100%; font: inherit; font-size: .92rem; padding: .42rem .6rem .42rem 2rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); color: var(--ink); }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--rule); background: var(--panel); border-radius: 999px; padding: .26rem .7rem .26rem .5rem; font-size: .84rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-3); }
.chip i { width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid currentColor; }
.chip.is-on { color: var(--ink); }
.chip.trk-b.is-on i { background: var(--b); border-color: var(--b); }
.chip.trk-o.is-on i { background: var(--o); border-color: var(--o); }
.chip.trk-w.is-on i { background: var(--w); border-color: var(--w); }
.chip:not(.is-on) { text-decoration: line-through; }
.btn { border: 1px solid var(--rule); background: var(--panel); border-radius: 8px; padding: .34rem .7rem; font-size: .86rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--b); border-color: var(--b); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #10131a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #10131a; } }
.btn.icon { padding: .3rem .5rem; min-width: 2rem; justify-content: center; }
.btn.icon svg { width: 1rem; height: 1rem; }
.btn:disabled { opacity: .4; cursor: default; }
.spacer { flex: 1 1 0; }
.menu-wrap { position: relative; }
.menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); padding: .4rem; min-width: 15rem; }
.menu label { display: flex; align-items: center; gap: .5rem; padding: .3rem .45rem; border-radius: 6px; font-size: .9rem; cursor: pointer; }
.menu label:hover { background: var(--rule-2); }
.mk svg, .ki { width: .95rem; height: .95rem; fill: currentColor; flex: none; }

/* ---------- ribbon ---------- */
.ribbon-wrap { overflow-x: auto; margin: .6rem calc(-1 * clamp(.75rem, 3vw, 2rem)) 0; padding: 0 clamp(.75rem, 3vw, 2rem); scrollbar-width: thin; }
.ribbon { display: flex; gap: 2px; min-width: 980px; padding-bottom: .5rem; }
.seg { flex: 1 1 0; min-width: 0; border: 0; background: var(--b-soft); color: var(--b-ink); padding: .28rem .35rem .3rem; text-align: left; border-bottom: 3px solid var(--b); overflow: hidden; }
.seg:first-child { border-radius: 6px 0 0 6px; } .seg:last-child { border-radius: 0 6px 6px 0; }
.seg b { display: block; font-size: .7rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg small { display: block; font-size: .64rem; opacity: .8; white-space: nowrap; }
.seg:hover { filter: brightness(.96); }
.seg.is-here { background: var(--b); color: #fff; }
:root[data-theme="dark"] .seg.is-here { color: #10131a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg.is-here { color: #10131a; } }
.seg-lanes { border-bottom-color: var(--o); background: linear-gradient(90deg, var(--b-soft) 0 50%, var(--o-soft) 50% 100%); color: var(--ink); }
.seg-lanes.is-here { background: linear-gradient(90deg, var(--b) 0 50%, var(--o) 50% 100%); }
.seg-ahead { background: repeating-linear-gradient(135deg, var(--b-soft) 0 6px, transparent 6px 12px); border-bottom-style: dashed; }
.seg-millennium { border-bottom-color: var(--gold); }

/* ---------- main ---------- */
main { padding: 1rem clamp(.75rem, 3vw, 2rem) 3rem; max-width: 1180px; margin: 0 auto; transition: margin .2s; }
.status { min-height: 1.2rem; font-size: .86rem; color: var(--ink-2); margin-bottom: .4rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.pill { background: var(--b-soft); color: var(--b-ink); border-radius: 999px; padding: .1rem .3rem .1rem .7rem; display: inline-flex; gap: .3rem; align-items: center; }
.pill button { border: 0; background: none; padding: .1rem .35rem; }
.empty { text-align: center; color: var(--ink-2); padding: 3rem 1rem; }

.era { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; margin-bottom: .7rem; box-shadow: 0 1px 0 rgba(0, 0, 0, .02); border-left: 5px solid var(--b); }
.era.has-lanes { border-image: linear-gradient(180deg, var(--b) 0 50%, var(--o) 50% 100%) 1; border-image-slice: 0 0 0 1; border-left-width: 5px; border-radius: 0 12px 12px 0; }
.era.is-future { border-left-style: double; border-left-color: var(--gold); }
.era-head { width: 100%; display: grid; grid-template-columns: 1.4rem 1fr auto; gap: .6rem; align-items: start; text-align: left; background: none; border: 0; padding: .85rem 1rem .85rem .8rem; border-radius: inherit; }
.era-head:hover .era-title { text-decoration: underline; text-decoration-thickness: 1px; }
.era-chev svg { width: 1rem; height: 1rem; margin-top: .9rem; transition: transform .15s; color: var(--ink-3); }
.era.open > .era-head .era-chev svg { transform: rotate(90deg); }
.era-range { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.era-title { display: block; font-family: var(--serif); font-size: clamp(1.1rem, 2.1vw, 1.4rem); font-weight: 600; line-height: 1.2; margin: .1rem 0 .2rem; }
.era-blurb { display: block; color: var(--ink-2); font-size: .93rem; max-width: 62rem; }
.era-keys { display: flex; flex-wrap: wrap; gap: .3rem .35rem; margin-top: .5rem; }
.era-keys span { font-size: .78rem; background: var(--rule-2); color: var(--ink-2); border-radius: 5px; padding: .08rem .45rem; }
.era.open > .era-head .era-keys { display: none; }
.era-count { font-size: .8rem; color: var(--ink-3); white-space: nowrap; margin-top: .25rem; }
.era-body { padding: 0 1rem 1rem 1rem; }
.era-note { color: var(--ink-2); font-size: .88rem; margin: .8rem 0 0; }

/* ---------- rows and cards ---------- */
.rows { list-style: none; margin: .3rem 0 0; padding: 0 0 0 .2rem; border-left: 2px solid var(--rule); }
.row { position: relative; padding: .22rem 0 .22rem .9rem; }
.card { display: flex; gap: .6rem; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 9px; padding: .45rem .6rem; position: relative; }
.card:hover { background: var(--rule-2); }
.card.is-current { background: var(--b-soft); border-color: var(--b); }
.card.trk-o.is-current { background: var(--o-soft); border-color: var(--o); }
.c-kind { flex: none; width: 1.55rem; height: 1.55rem; border-radius: 50%; display: grid; place-items: center; background: var(--b); color: #fff; margin-top: .1rem; }
:root[data-theme="dark"] .c-kind { color: #10131a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-kind { color: #10131a; } }
.rows .c-kind { position: absolute; left: -1.75rem; top: .5rem; box-shadow: 0 0 0 3px var(--panel); }
.rows .card { padding-left: 1rem; }
.card.trk-o .c-kind { background: var(--o); }
.card.trk-w .c-kind { background: var(--w); }
.card.k-per .c-kind, .card.k-reign .c-kind, .card.k-book .c-kind { background: var(--panel); color: var(--b); border: 1.5px solid var(--b); }
.card.trk-o.k-per .c-kind { color: var(--o); border-color: var(--o); }
.c-main { display: block; min-width: 0; }
.c-date { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--b-ink); font-variant-numeric: tabular-nums; }
.card.trk-o .c-date { color: var(--o-ink); } .card.trk-w .c-date { color: var(--w-ink); }
.c-title { display: block; font-family: var(--serif); font-size: 1.04rem; line-height: 1.25; }
.card.is-key .c-title { font-weight: 700; }
.c-x { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); font-size: .88rem; margin-top: .1rem; }
.c-meta { display: flex; flex-wrap: wrap; gap: .15rem .7rem; margin-top: .2rem; font-size: .76rem; color: var(--ink-3); }
.m-place { display: inline-flex; align-items: center; gap: .15rem; }
.m-place svg { width: .8rem; height: .8rem; fill: currentColor; }
.m-img { border: 1px solid var(--rule); border-radius: 4px; padding: 0 .3rem; }

/* sub-periods */
.sub { margin-top: .6rem; border-top: 1px solid var(--rule-2); }
.sub > summary { cursor: pointer; padding: .55rem .2rem; display: flex; gap: .6rem; align-items: baseline; list-style: none; }
.sub > summary::-webkit-details-marker { display: none; }
.sub > summary::before { content: ""; width: .45rem; height: .45rem; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s; flex: none; align-self: center; }
.sub[open] > summary::before { transform: rotate(45deg); }
.sub-title { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.sub-range { color: var(--ink-3); font-size: .82rem; }
.sub-count { margin-left: auto; font-size: .76rem; color: var(--ink-3); background: var(--rule-2); border-radius: 999px; padding: 0 .5rem; }

/* ---------- two lanes (1870 onward) ---------- */
.lanes { margin-top: .4rem; }
.lane-head { display: grid; grid-template-columns: 1fr 4.2rem 1fr; position: sticky; top: var(--top-h); z-index: 5; background: var(--panel); padding: .3rem 0; border-bottom: 1px solid var(--rule-2); }
.lh { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; }
.lh-b { color: var(--b-ink); text-align: right; padding-right: .6rem; } .lh-o { color: var(--o-ink); padding-left: .6rem; }
.lrow { display: grid; grid-template-columns: 1fr 4.2rem 1fr; align-items: start; }
.lrow.first { margin-top: .25rem; }
.lmid { position: relative; align-self: stretch; display: flex; justify-content: center; }
.lmid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--rule); transform: translateX(-50%); }
.lyear { position: relative; z-index: 1; background: var(--panel); font-weight: 700; font-size: .84rem; padding: .1rem .3rem; margin-top: .55rem; height: fit-content; border: 1px solid var(--rule); border-radius: 6px; font-variant-numeric: tabular-nums; }
.lc-b .card { flex-direction: row-reverse; text-align: right; background: color-mix(in srgb, var(--b-soft) 55%, transparent); }
.lc-b .c-meta { justify-content: flex-end; }
.lc-o .card { background: color-mix(in srgb, var(--o-soft) 60%, transparent); }
.lc-b .card.trk-w { background: var(--w-soft); }
.lcell { padding: .18rem 0; }
.lanes .card:hover { filter: brightness(.97); }
.lanes .c-date { display: block; }

/* today and the unknown interval */
.today { display: flex; gap: .7rem; align-items: center; margin: .9rem 0 0; padding: .6rem .8rem; border: 1px dashed var(--gold); border-radius: 10px; background: color-mix(in srgb, var(--gold) 9%, transparent); }
.today-dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent); flex: none; }
.today strong { display: block; font-family: var(--serif); font-size: 1.05rem; } .today span { color: var(--ink-2); font-size: .9rem; }
.gap { margin: .2rem 0 .8rem; padding: .8rem .9rem; border-radius: 10px; background: color-mix(in srgb, var(--gold) 8%, transparent); border: 1px dashed var(--gold); }
.gap-bar { display: flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.gap-bar i { flex: 1; height: 14px; border-radius: 7px; background: repeating-linear-gradient(135deg, var(--gold) 0 7px, transparent 7px 14px); opacity: .55; -webkit-mask-image: linear-gradient(90deg, #000 0 20%, transparent 45% 55%, #000 80%); mask-image: linear-gradient(90deg, #000 0 20%, transparent 45% 55%, #000 80%); }
.gap p { margin: .55rem 0 0; font-size: .93rem; color: var(--ink-2); } .gap-sc { font-size: .86rem !important; }

/* ---------- lifespans ---------- */
.lifebox { margin: .2rem 0 .8rem; border: 1px solid var(--rule-2); border-radius: 10px; padding: .1rem .7rem .5rem; background: color-mix(in srgb, var(--paper) 55%, var(--panel)); }
.lifebox > summary { cursor: pointer; font-weight: 600; font-size: .9rem; padding: .45rem 0; }
.lifebox > summary small { font-weight: 400; color: var(--ink-3); }
.life { position: relative; overflow: hidden; }
.life-axis { position: relative; height: 1.5rem; border-bottom: 1px solid var(--rule); }
.tick { position: absolute; bottom: 0; transform: translateX(-50%); font-size: .68rem; color: var(--ink-3); white-space: nowrap; padding-bottom: 5px; }
.tick i { position: absolute; left: 50%; bottom: 0; width: 1px; height: 4px; background: var(--ink-3); }
.life-grp h4 { font: 600 .72rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: .5rem 0 .2rem; }
.life-rows { position: relative; }
.bar { position: absolute; height: 18px; border: 0; padding: 0; border-radius: 4px; background: var(--b); min-width: 4px; }
.bar.trk-o { background: var(--o); }
.bar.k-reign { border-radius: 2px; background: color-mix(in srgb, var(--b) 78%, var(--panel)); }
.bar.approx { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%); }
.bar span { position: absolute; left: calc(100% + 5px); top: 50%; transform: translateY(-50%); font-size: .74rem; white-space: nowrap; color: var(--ink); line-height: 1; }
.bar.approx span { -webkit-mask-image: none; }
.bar.in span { left: 6px; color: #fff; font-weight: 600; }
:root[data-theme="dark"] .bar.in span { color: #10131a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar.in span { color: #10131a; } }
.bar.flip span { left: auto; right: calc(100% + 5px); }
.bar:hover, .bar.is-current { outline: 2px solid var(--gold); outline-offset: 1px; z-index: 2; }
.bar.approx { overflow: visible; }

/* ---------- drawer ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(var(--drawer-w), 100vw); background: var(--panel); border-left: 1px solid var(--rule); box-shadow: var(--shadow); z-index: 50; display: flex; flex-direction: column; }
.drawer-bar { display: flex; gap: .35rem; padding: .5rem .7rem; border-bottom: 1px solid var(--rule-2); }
.drawer-body { overflow-y: auto; padding: 1rem 1.15rem 2rem; flex: 1; overscroll-behavior: contain; }
.drawer-body:focus { outline: none; }
.scrim { display: none; }
@media (min-width: 1100px) { body.drawer-open main, body.drawer-open .foot { margin-right: var(--drawer-w); } body.drawer-open .top { padding-right: calc(var(--drawer-w) + 1rem); } }
@media (max-width: 1099px) { .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 12, 18, .45); z-index: 45; } }
.d-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag { font-size: .72rem; font-weight: 600; border-radius: 5px; padding: .1rem .45rem; background: var(--rule-2); color: var(--ink-2); display: inline-flex; align-items: center; gap: .25rem; }
.tag.trk-b { background: var(--b-soft); color: var(--b-ink); } .tag.trk-o { background: var(--o-soft); color: var(--o-ink); } .tag.trk-w { background: var(--w-soft); color: var(--w-ink); }
.d-date { margin: .8rem 0 0; font-weight: 700; color: var(--ink-2); font-size: .9rem; letter-spacing: .02em; }
.d-title { font-size: 1.55rem; margin: .1rem 0 .7rem; }
.d-x { font-size: 1rem; margin: .7rem 0; }
.d-note { font-size: .88rem; background: color-mix(in srgb, var(--gold) 12%, transparent); border-left: 3px solid var(--gold); padding: .5rem .7rem; border-radius: 0 6px 6px 0; margin: .7rem 0; color: var(--ink-2); }
.d-sec { margin-top: 1.1rem; }
.d-sec h3, .place h4 { font: 700 .74rem var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .35rem; }
.sc-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.sc { border: 1px solid var(--rule); border-radius: 6px; padding: .12rem .5rem; font-size: .88rem; text-decoration: none; background: var(--paper); }
.sc:hover { border-color: var(--b); }
.src-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.src-list li { padding: .3rem 0; border-bottom: 1px solid var(--rule-2); display: flex; gap: .6rem; justify-content: space-between; align-items: baseline; }
.src-y { color: var(--ink-3); font-size: .78rem; font-variant-numeric: tabular-nums; }
.art { margin: .2rem 0 .8rem; }
.art-btn { display: block; border: 0; padding: 0; background: var(--rule-2); border-radius: 8px; overflow: hidden; width: 100%; cursor: zoom-in; }
.art img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }
.art figcaption { font-size: .78rem; color: var(--ink-2); margin-top: .3rem; }
.art.broken .art-btn { display: none; }
.credit { color: var(--ink-3); }
.place { margin-top: 1.1rem; border: 1px solid var(--rule); border-radius: 10px; padding: .8rem .9rem; background: var(--paper); }
.place h3 { font-size: 1.15rem; display: flex; align-items: center; gap: .35rem; }
.place h3 svg { width: 1.05rem; height: 1.05rem; fill: var(--b); }
.place-mod { margin: .25rem 0 0; font-size: .9rem; color: var(--ink-2); }
.place-note { margin: .4rem 0 0; font-size: .84rem; color: var(--ink-2); }
.cert { font-size: .7rem; font-weight: 600; border-radius: 4px; padding: .04rem .35rem; white-space: nowrap; background: var(--rule-2); color: var(--ink-2); }
.cert-site { background: color-mix(in srgb, #2e7d4f 16%, transparent); color: color-mix(in srgb, #2e7d4f 80%, var(--ink)); }
.cert-trad, .cert-area { background: color-mix(in srgb, var(--gold) 20%, transparent); color: color-mix(in srgb, var(--gold) 60%, var(--ink)); }
.place-acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.coords { font-size: .74rem; color: var(--ink-3); margin: .35rem 0 0; }
.maps { margin-top: .8rem; }
.map-row { display: flex; gap: .5rem; align-items: center; font-size: .86rem; padding: .2rem 0; }
.map-row .btn { padding: .15rem .5rem; font-size: .78rem; flex: none; }
.place-list { margin-top: .8rem; }
.place-evs { list-style: none; margin: 0 0 .6rem; padding: 0; max-height: 14rem; overflow-y: auto; }
.place-evs li.is-cur { font-weight: 700; }
.linkish { background: none; border: 0; padding: .16rem 0; text-align: left; color: var(--b); font-size: .88rem; display: flex; gap: .5rem; }
.linkish span { color: var(--ink-3); font-size: .78rem; flex: 0 0 7.5rem; font-variant-numeric: tabular-nums; }
.linkish.trk-o { color: var(--o-ink); }
.linkish:hover { text-decoration: underline; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(12, 14, 20, .92); z-index: 80; display: grid; place-items: center; padding: 2.5rem 1rem 1rem; }
.lightbox figure { margin: 0; max-width: min(1200px, 96vw); max-height: 100%; display: flex; flex-direction: column; gap: .5rem; }
.lb-img { overflow: auto; max-height: calc(100vh - 7rem); border-radius: 6px; background: #fff; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 7rem); margin: 0 auto; }
.lightbox.is-map img { cursor: zoom-in; min-width: min(900px, 92vw); }
.lightbox.zoomed img { max-width: none; max-height: none; width: 2200px; cursor: zoom-out; }
.lightbox figcaption { color: #e8e6e0; font-size: .86rem; } .lightbox figcaption a { color: #a9c4f2; } .lightbox .credit, .lightbox .hint { color: #b6bac6; }
.lb-close { position: absolute; top: .6rem; right: .6rem; }

/* ---------- places and sources views ---------- */
.intro h2 { font-size: 1.6rem; } .intro p { color: var(--ink-2); max-width: 54rem; margin: .4rem 0 1rem; }
.preg h3 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--rule); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .7rem; }
.pcard { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.pmain { border: 0; background: none; text-align: left; padding: 0 0 .6rem; display: flex; flex-direction: column; flex: 1; }
.pmain:hover .pname { text-decoration: underline; }
.pthumb { display: block; height: 104px; background: var(--b-soft); overflow: hidden; }
.pthumb.none { height: 8px; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pname { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; padding: .5rem .7rem 0; }
.pmod { font-size: .8rem; color: var(--ink-2); padding: .1rem .7rem 0; flex: 1; }
.pcount { font-size: .74rem; color: var(--ink-3); padding: .35rem .7rem 0; }
.psat { border-top: 1px solid var(--rule-2); padding: .4rem .7rem; font-size: .82rem; text-decoration: none; font-weight: 600; }
.psat.none { color: var(--ink-3); font-weight: 400; }
.psat:hover { background: var(--b-soft); }
.about-sec { max-width: 54rem; margin-top: 1.4rem; }
.about-sec h3 { font-size: 1.15rem; margin-bottom: .3rem; } .about-sec p { color: var(--ink-2); margin: .4rem 0; }
.notes { padding-left: 1.1rem; font-size: .9rem; color: var(--ink-2); } .notes li { margin: .35rem 0; } .notes .linkish { display: inline; font-weight: 600; font-size: inherit; }
.src-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.src-table th, .src-table td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.src-table th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); } .num { text-align: right !important; font-variant-numeric: tabular-nums; }
select { font: inherit; padding: .3rem .5rem; border-radius: 8px; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); }

.foot { padding: 1.2rem clamp(.75rem, 3vw, 2rem) 2rem; color: var(--ink-3); font-size: .8rem; max-width: 1180px; margin: 0 auto; border-top: 1px solid var(--rule); }
body[data-view="places"] .tools, body[data-view="about"] .tools, body[data-view="places"] .ribbon-wrap, body[data-view="about"] .ribbon-wrap { display: none; }
body[data-view="places"] .top, body[data-view="about"] .top { padding-bottom: .6rem; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .top { position: static; }
  .tools .spacer { display: none; }
  .lane-head { display: none; }
  .lrow { display: block; }
  .lmid { display: none; }
  .lrow.first { margin-top: .5rem; }
  .lc-b .card { flex-direction: row; text-align: left; } .lc-b .c-meta { justify-content: flex-start; }
  .lcell:empty { display: none; }
  .lanes .card { border-left: 4px solid var(--b); border-radius: 4px 9px 9px 4px; } .lanes .card.trk-o { border-left-color: var(--o); } .lanes .card.trk-w { border-left-color: var(--w); }
  .era-head { grid-template-columns: 1.2rem 1fr; } .era-count { grid-column: 2; margin: 0; }
  .era-body { padding: 0 .6rem .8rem .7rem; }
  .linkish span { flex-basis: 6rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .top, .drawer, .scrim, .foot, .lightbox { display: none !important; }
  body { background: #fff; } .era { break-inside: avoid-page; box-shadow: none; }
}
