/* ---------- v8: one identical header, no underlines, ba-exact doc metrics ---------- */
html { scrollbar-gutter: stable; }
a, a:hover, a:focus, a:active { text-decoration: none !important; }
button { text-decoration: none; }
.bawrap { padding: 2.5rem 1.25rem 4rem; }
.doc-h2 { margin: 2em 0 .7em; }
.bawrap p { line-height: 1.8; margin: 0 0 1.1em; }
.lead-ul li { line-height: 1.8; }
.doc-rule { margin: 2.2rem 0; }
@media (max-height: 880px) {
  .bawrap { padding-top: 2.5rem; }
  .bawrap p, .lead-ul li { font-size: 16px; line-height: 1.8; }
  .doc-h1 { font-size: 2rem; }
  .doc-h2 { font-size: 1.35rem; margin: 2em 0 .7em; }
  .doc-rule { margin: 2.2rem 0; }
  .lede { font-size: 1.08rem; }
}
@media (max-height: 740px) {
  .bawrap { padding-top: 2.5rem; }
  .bawrap p, .lead-ul li { font-size: 16px; line-height: 1.8; margin-bottom: 1.1em; }
  .doc-h1 { font-size: 2rem; }
  .doc-h2 { font-size: 1.35rem; margin: 2em 0 .7em; }
}

/* ---------- v9: tall transparent header, glass controls, radio layers, doc footer ---------- */
:root { --hdr-h: 78px; --glass: rgba(247,244,238,.70); --glass-brd: rgba(178,170,152,.55); }
body.theme-dark { --glass: rgba(10,17,23,.62); --glass-brd: rgba(80,110,128,.45); }
.site-header { height: var(--hdr-h); padding-top: 0; padding-bottom: 0; box-sizing: border-box; background: transparent; }
.brand-mark { width: 48px; height: 48px; }
body.app .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; border-bottom: none;
  background: linear-gradient(to bottom, rgba(245,242,234,.88), rgba(245,242,234,0)); }
body.app.theme-dark .site-header, body.theme-dark.app .site-header {
  background: linear-gradient(to bottom, rgba(10,15,20,.88), rgba(10,15,20,0)); }
body.app .panel { top: calc(var(--hdr-h) + 12px); }
body.app .layers-open-btn { top: calc(var(--hdr-h) + 12px); }
body.app .crumbs { top: calc(var(--hdr-h) + 10px); }
body.app .maplibregl-ctrl-top-right, body.app .maplibregl-ctrl-top-left { margin-top: calc(var(--hdr-h) + 6px); }
/* every floating control: translucent glass */
.panel, .layers-open-btn, .timeline, .crumbs, .dossier,
.maplibregl-ctrl-group, .maplibregl-ctrl-attrib {
  background: var(--glass) !important; backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15); border-color: var(--glass-brd) !important; }
.maplibregl-ctrl-attrib { border: 1px solid var(--glass-brd); }
.maplibregl-ctrl-attrib-inner { background: transparent !important; }
.maplibregl-ctrl-scale { background: var(--glass); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-brd); border-top: none;
  color: var(--ink); padding: 1px 5px 2px; }
/* dossier & node popup: no red top rule */
.dossier { border-top: 1px solid var(--glass-brd) !important; }
.maplibregl-popup-content { border-top: 1px solid var(--line); background: rgba(252,250,243,.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.theme-dark .maplibregl-popup-content { background: rgba(13,20,27,.88); }
/* radio-style layer rows */
.layer-list li { cursor: pointer; }
.layer-list .switch { width: 20px; height: 20px; flex: 0 0 20px; }
.layer-list .switch span { border-radius: 50% !important; background: transparent; border: 2px solid #B9B2A4; }
.layer-list .switch span:before { width: 10px; height: 10px; left: 3px; top: 3px; background: transparent;
  border-radius: 50% !important; transform: none; }
.layer-list .switch input:checked + span { border-color: var(--brick); background: transparent; }
.layer-list .switch input:checked + span:before { background: var(--brick); transform: none; }
.timeline.tl-dim { opacity: .45; }
/* doc page scroll (root overflow was locked by the app layout) */
html:has(> body.doc-page) { overflow: auto; height: auto; }
/* bitcoinarche-style bottom bar */
.site-footer { border-top: 1px solid var(--rule); margin-top: 3.5rem; color: var(--muted); font-size: .94rem; }
.site-footer .inner { max-width: 980px; margin: 0 auto; padding: 2rem 1.25rem 2.6rem;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer .brand-line { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: .4rem; }
.site-footer .foot-note { margin-top: .55rem; font-size: .82rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brick); }

/* ---------- v10: ba-exact doc type, rectangular radios, stronger glass, zoom labels ---------- */
body.doc-page { font-family: "Noto Serif SC","Songti SC","STSong",Georgia,"Times New Roman",serif;
  font-size: 16px; line-height: 1.8; color: #1c1a16; background: #f5f2ea; }
.doc-page .bawrap { max-width: 700px; padding: 2.5rem 1.25rem 4rem; }
.doc-page .doc-h1 { font-family: inherit; font-size: 2rem; line-height: 1.4; margin: 0 0 .6em;
  font-weight: 700; letter-spacing: .02em; color: #1c1a16; }
.doc-page .bawrap p.lede { font-size: 1.08rem; color: #6b655a; }
.doc-page .doc-rule { border: 0; border-top: 1px dotted #b9b2a4; margin: 2.2rem 0; }
.doc-page .doc-h2 { font-family: inherit; font-size: 1.35rem; line-height: 1.5; margin: 2em 0 .7em;
  font-weight: 700; letter-spacing: .02em; color: #1c1a16; }
.doc-page .bawrap p { font-size: 16px; line-height: 1.8; margin: 0 0 1.1em; color: #1c1a16; }
.doc-page .lead-ul li { font-size: 16px; line-height: 1.8; color: #1c1a16; }
body.theme-dark.doc-page { background: #0A0F14; color: #D8E6EE; }
body.theme-dark .doc-page .doc-h1, body.theme-dark.doc-page .doc-h1,
body.theme-dark.doc-page .doc-h2, body.theme-dark.doc-page .bawrap p, body.theme-dark.doc-page .lead-ul li { color: #D8E6EE; }
body.theme-dark.doc-page .bawrap p.lede { color: #8FA6B3; }
body.theme-dark.doc-page .doc-rule { border-top-color: #33505F; }
/* footer: bitcoinarche values verbatim */
.site-footer { border-top: 1px solid #b9b2a4; margin-top: 3rem; color: #6b655a; font-size: inherit; }
.site-footer .inner { max-width: 980px; margin: 0 auto; padding: 2rem 1.25rem; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; font-size: .88rem; color: #6b655a; }
.site-footer .brand-line { font-family: inherit; font-size: inherit; color: #1c1a16; margin-bottom: .4em; }
.site-footer ul { display: flex; gap: 1.1rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer a { color: #6b655a; }
.site-footer a:hover { color: #b0202a; }
body.theme-dark .site-footer { border-top-color: #33505F; }
body.theme-dark .site-footer .brand-line { color: #E8F1F5; }
body.theme-dark .site-footer .inner, body.theme-dark .site-footer a { color: #8FA6B3; }
/* rectangular single-select controls */
.layer-list .switch { width: 18px; height: 18px; flex: 0 0 18px; }
.layer-list .switch span { border-radius: 0 !important; }
.layer-list .switch span:before { width: 8px; height: 8px; left: 3px; top: 3px; border-radius: 0 !important; }
/* stronger frosted glass, one style for every floating control */
:root { --glass: rgba(247,244,238,.55); }
body.theme-dark { --glass: rgba(10,17,23,.48); }
.panel, .layers-open-btn, .timeline, .crumbs, .dossier,
.maplibregl-ctrl-group, .maplibregl-ctrl-attrib, .maplibregl-ctrl-scale {
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 8px 28px rgba(38,36,30,.10), inset 0 1px 0 rgba(255,255,255,.35); }
/* zoom-tier name labels */
.zoom-label { pointer-events: none; font-family: var(--sans); color: #4A4436; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(245,242,234,.95), 1px 0 0 rgba(245,242,234,.95), -1px 0 0 rgba(245,242,234,.95), 0 -1px 0 rgba(245,242,234,.95); }
.zl-country { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: #57503D; }
.zl-region { font-size: 12px; font-weight: 500; }
.zl-county { font-size: 11.5px; }
.zl-city { font-size: 11.5px; font-weight: 600; color: #33302A; }
body.theme-dark .zoom-label { color: #BCD2DE;
  text-shadow: 0 1px 0 rgba(10,15,20,.9), 1px 0 0 rgba(10,15,20,.9), -1px 0 0 rgba(10,15,20,.9), 0 -1px 0 rgba(10,15,20,.9); }

