/* מי תוקף, מה נפגע, ואיפה — interactive map of settler violence in the West Bank (core styles).
   House tokens and components from Israel_Freedom_Center_Network/prototype/ifc-viz.css, renamed to the sv- prefix.
   Data colours (PLAN §4): blue = settlers, olive = people in uniform, red = deaths (badges only). The accent
   (--accent, sienna) is chrome only and never appears inside the plot. No dashed lines anywhere.
   Module styles live in their own files (sv-strip.css, sv-sections.css, sv-table.css, sv-tour.css); the shared
   classes they may reuse are marked «shared» below. */

.sv {
  color-scheme: light;
  --paper: #faf7f2;
  --surface: #ffffff;
  --ink: #2b2724;
  --ink-soft: #4a433d;
  --muted: #8a7f75;          /* icons, large secondary text only */
  --muted-text: #756b62;     /* small secondary text: 4.9:1 on paper */
  --hair: #e9e2d8;
  --accent: #8b4a33;         /* links, kicker, active control underline — chrome only */
  --accent-soft: #f4e9df;
  --blue: #1d56c2;           /* settlers */
  --olive: #86963a;          /* people in uniform */
  --red: #a3101a;            /* deaths (badges) */
  --unknown: #6f655c;        /* outline-only "unknown" */
  --ghost: #e6dfd5;
  --ghost-stroke: #ddd5ca;
  --serif: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --sans: "Assistant", "Segoe UI", "Arial Hebrew", system-ui, sans-serif;
  --map-h: clamp(560px, 82vh, 820px);
  font-family: var(--serif);
  font-size: 16px;
  line-height: normal;
  color: var(--ink);
  background: var(--paper);
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
.sv *, .sv *::before, .sv *::after { box-sizing: border-box; }
.sv button { font: inherit; color: inherit; }
.sv bdi.en { font-family: var(--sans); font-size: .94em; }
.sv bdi.sv-urlw { overflow-wrap: anywhere; }            /* a web address in a record's text: one left-to-right run, broken anywhere when long */
.sv .sv-num { font-family: var(--sans); font-variant-numeric: lining-nums; }
.sv a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.sv a:hover { color: #6e3522; }
.sv :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sv [hidden] { display: none !important; }
.sv .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sv [lang="ar"] { font-family: "Noto Naskh Arabic", "Geeza Pro", "Arial", var(--sans); }

/* ---------------------------------------------------------------- head */
.sv-head { max-width: 46rem; margin: 0 auto 1.25rem; text-align: center; }
.sv-kicker { font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--accent); letter-spacing: .02em; margin: 0 0 .4rem; }
.sv-title { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.25; margin: 0 0 .5rem; }
.sv-dek { font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin: 0 auto .8rem; max-width: 40rem; }
.sv-byline { font-family: var(--sans); font-size: 13px; color: var(--muted-text); margin: 0 0 1.1rem; line-height: 1.45; }
.sv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; max-width: 46rem; margin: 0 auto; padding: 0; list-style: none; }
.sv-tile { background: var(--surface); border: 1px solid var(--hair); border-radius: 4px; padding: .4rem .6rem; min-width: 0; text-align: start; }
.sv-tile b { display: block; font-family: var(--sans); font-weight: 700; font-size: 19px; line-height: 1.15; font-variant-numeric: proportional-nums lining-nums; }
.sv-tile span { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted-text); line-height: 1.3; margin-top: .15rem; }

/* ---------------------------------------------------------------- controls */
.sv-controls { position: relative; display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; border-top: 1px solid var(--ink); padding: .65rem 0 .5rem; font-family: var(--sans); font-size: 14px; }
.sv-search { position: relative; flex: 0 1 15rem; min-width: 11rem; order: 2; }
.sv-search:empty { display: none; }
.sv-ctl-row { display: contents; }
.sv-ctl-row > .sv-g-period { order: 1; }
.sv-ctl-row > * { order: 3; }
.sv-g { display: inline-flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.sv-g > .sv-g-lab { color: var(--muted-text); font-size: 13px; margin-inline-end: .1rem; }
/* «shared»: toggle chip (aria-pressed) */
.sv-chip { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--hair); background: var(--surface); border-radius: 999px; padding: .15rem .6rem; cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 600; min-height: 30px; white-space: nowrap; color: var(--ink); }
.sv-chip:hover { border-color: var(--muted); }
.sv-chip[aria-pressed="false"] { color: var(--muted-text); background: var(--paper); }
.sv-chip[aria-pressed="false"] svg { opacity: .45; }
.sv-chip[aria-pressed="true"] { border-color: var(--ink-soft); }
.sv-chip .ct { font-weight: 400; color: var(--muted-text); font-variant-numeric: tabular-nums; }
.sv-chip svg { display: block; flex: none; }
/* «shared»: segmented radio group */
.sv-seg { display: inline-flex; align-items: center; gap: .35rem; }
.sv-seg > span { color: var(--muted-text); font-size: 13px; }
.sv-seg [role="radiogroup"] { display: inline-flex; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; background: var(--surface); }
.sv-seg button { border: 0; background: none; padding: .3rem .6rem; cursor: pointer; font-size: 13.5px; font-weight: 600; min-height: 30px; white-space: nowrap; }
.sv-seg button + button { border-inline-start: 1px solid var(--hair); }
.sv-seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.sv-select { font: inherit; font-size: 13.5px; font-weight: 600; border: 1px solid var(--hair); border-radius: 4px; background: var(--surface); color: var(--ink); padding: .3rem .5rem; min-height: 32px; max-width: 14rem; }
.sv-mbtn { border: 1px solid var(--hair); background: var(--surface); border-radius: 4px; padding: .25rem .6rem; cursor: pointer; font-size: 13.5px; font-weight: 600; min-height: 30px; white-space: nowrap; }
.sv-mbtn[aria-expanded="true"] { border-color: var(--ink); }
.sv-mbtn.small { font-size: 12.5px; font-weight: 400; color: var(--muted-text); border-color: transparent; background: none; padding: .2rem .35rem; }
.sv-mbtn.on { border-color: var(--ink-soft); }
.sv-pop { position: absolute; z-index: 45; background: var(--surface); border: 1px solid var(--hair); border-radius: 4px; box-shadow: 0 6px 24px rgba(43,39,36,.14); padding: .6rem .8rem .7rem; font-family: var(--sans); font-size: 13.5px; min-width: 15rem; max-width: min(22rem, calc(100vw - 1.5rem)); }
.sv-pop h4 { font-size: 12.5px; font-weight: 700; color: var(--muted-text); margin: .5rem 0 .3rem; letter-spacing: .02em; }
.sv-pop h4:first-child { margin-top: 0; }
.sv-pop label { display: flex; align-items: flex-start; gap: .4rem; margin: 0 0 .3rem; cursor: pointer; line-height: 1.35; }
.sv-pop input { accent-color: var(--ink); width: 16px; height: 16px; margin: 1px 0 0; flex: none; }
.sv-pop .note { font-size: 12px; color: var(--muted-text); margin: .1rem 0 .3rem; line-height: 1.35; }
.sv-readout { font-family: var(--sans); font-size: 12.5px; color: var(--muted-text); }

/* ---------------------------------------------------------------- legend (items are buttons that filter) */
.sv-legend { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); padding: .35rem 0 .55rem; border-bottom: 1px solid var(--hair); }
.sv-legend > details > summary { cursor: pointer; font-weight: 700; color: var(--muted-text); font-size: 12.5px; margin-bottom: .25rem; list-style-position: inside; }
.sv-legend .lg-items { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
.sv-legend .lg-items + .lg-items { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--hair); }
.sv-legend .lg { display: inline-flex; align-items: center; gap: .35rem; line-height: 1.3; }
.sv-legend button.lg { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-radius: 3px; padding: 0 .2rem; min-height: 24px; text-align: start; }
.sv-legend button.lg:hover, .sv-legend button.lg:focus-visible { background: var(--accent-soft); }
.sv-legend button.lg[aria-pressed="true"]:not(.lay) { background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.sv-legend button.lg.lay[aria-pressed="false"] { opacity: .5; }
.sv-legend button.lg.lay[aria-pressed="false"] > span { text-decoration: line-through; text-decoration-color: var(--muted); }
.sv-legend svg { display: block; flex: none; }
.sv-legend .note { color: var(--muted-text); font-size: 12.5px; }
.sv-legend .lg-lev { font-weight: 700; color: var(--muted-text); font-size: 12px; }

/* ---------------------------------------------------------------- main grid: map at inline-start (right), panel at inline-end (left) */
.sv-skip { position: absolute; inset-inline-start: 1rem; background: var(--surface); padding: .3rem .6rem; border: 1px solid var(--ink); font-family: var(--sans); font-size: 14px; z-index: 70; }
.sv-skip:not(:focus) { width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sv-main { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 0 1.25rem; margin-top: .75rem; align-items: start; }
.sv-map { position: relative; height: var(--map-h); background: var(--paper); overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; outline: none; }
.sv-map:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.sv-canvas { position: absolute; top: 0; left: 0; display: block; transform-origin: 0 0; }
.sv-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; pointer-events: none; }
.sv-marks { transition: opacity .2s; }
.sv-map.fading .sv-marks, .sv-map.fading .sv-labels { opacity: .35; transition: none; }
.sv-labels, .sv-notes, .sv-keys { position: absolute; inset: 0; pointer-events: none; transform-origin: 0 0; }
.sv-map.gesture .sv-labels, .sv-map.gesture .sv-notes { opacity: 0; }
.sv-map.grab { cursor: grabbing; }
.sv-map.hand { cursor: pointer; }

/* labels (HTML, with paper halo) */
.sv-label { position: absolute; top: 0; left: 0; font-family: var(--sans); font-size: 12.5px; font-weight: 600; line-height: 1.15; color: var(--ink); white-space: nowrap; pointer-events: none;
  text-shadow: 0 0 2px var(--paper), 0 0 2px var(--paper), 0 0 3px var(--paper), 0 0 4px var(--paper), 0 0 5px var(--paper); unicode-bidi: plaintext; }
.sv-label.big { font-weight: 700; font-size: 13px; }
.sv-label.city { color: var(--ink-soft); font-weight: 600; font-size: 12.5px; }
.sv-label.country { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted-text); }
.sv-label.sea { font-size: 12px; font-weight: 400; color: var(--muted-text); }
.sv-label.green { font-size: 11.5px; font-weight: 400; color: var(--muted-text); }
.sv-label.region { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--muted-text); pointer-events: auto; cursor: pointer; background: none; border: 0; padding: 0; text-align: center; }
.sv-label.region:hover { color: var(--ink); text-decoration: underline; }
.sv-label.region.two { white-space: pre; line-height: 13px; }
.sv-label.site { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.sv-label.site.grey { color: var(--muted-text); font-weight: 400; }
.sv-label.settle { font-size: 11.5px; font-weight: 400; color: var(--muted-text); }
.sv-label.road { font-size: 10px; font-weight: 700; color: var(--ink-soft); background: var(--surface); border: 1px solid #d9d1c5; border-radius: 2px; padding: 0 2px; text-shadow: none; line-height: 1.25; }
.sv-label.more { font-size: 11px; font-weight: 700; color: var(--blue); }
.sv-label.area { font-size: 11px; font-weight: 400; color: var(--muted-text); }
.sv-label.disp { font-size: 11px; font-weight: 400; color: var(--ink-soft); }
.sv-label.ring { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.sv-label.sel { font-family: var(--serif); font-size: 15px; font-weight: 700; }
.sv-label.ghost { color: #a39a90; }

/* chrome inside the map */
.sv-trail { position: absolute; z-index: 6; top: .5rem; inset-inline: .5rem; display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; font-family: var(--sans); font-size: 13px; pointer-events: none; }
.sv-trail > * { pointer-events: auto; }
.sv-trail .crumb { display: inline-flex; align-items: center; border: 1px solid var(--hair); background: var(--surface); border-radius: 999px; padding: .1rem .6rem; cursor: pointer; font-weight: 600; min-height: 28px; font-size: 13px; }
.sv-trail .crumb:hover { border-color: var(--muted); }
.sv-trail .crumb.cur { background: var(--ink); color: #fff; border-color: var(--ink); cursor: default; }
.sv-trail .sep { color: var(--muted); font-size: 12px; }
.sv-zoom { position: absolute; z-index: 6; bottom: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; }
.sv-zoom button { width: 32px; height: 32px; border: 1px solid var(--hair); background: var(--surface); border-radius: 4px; cursor: pointer; font-family: var(--sans); font-size: 18px; line-height: 1; padding: 0; color: var(--ink); }
.sv-zoom button:hover { border-color: var(--muted); }
.sv-zoom button[disabled] { color: var(--ghost-stroke); cursor: default; }
.sv-crumbs { position: absolute; z-index: 6; bottom: .55rem; right: .6rem; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; font-family: var(--sans); font-size: 12.5px; color: var(--muted-text); max-width: calc(100% - 4rem); }
.sv-crumbs .lv { display: flex; gap: .15rem; align-items: center; background: rgba(250,247,242,.92); border-radius: 3px; padding: .05rem .2rem; }
.sv-crumbs .lv button { border: 0; background: none; padding: .1rem .25rem; cursor: pointer; font-size: 13px; color: var(--muted-text); min-height: 24px; }
.sv-crumbs .lv button[aria-current="true"] { color: var(--ink); font-weight: 700; }
.sv-crumbs .lv i { font-style: normal; color: var(--muted); }
.sv-crumbs .jump { -webkit-appearance: none; appearance: none; font: inherit; font-size: 12.5px; color: var(--muted-text); border: 0; background: none; padding: .1rem .1rem; cursor: pointer; max-width: 9rem; min-height: 24px; }
@media (max-width: 767px) { .sv-crumbs .jump, .sv-crumbs .jsep { display: none; } }
.sv-crumbs .cap, .sv-crumbs .unloc { background: rgba(250,247,242,.92); border-radius: 3px; padding: .05rem .25rem; }
.sv-crumbs .unloc { border: 0; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--hair); }
.sv-fs, .sv-fs-close { display: none; }
.sv-hint { position: absolute; z-index: 7; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--sans); font-size: 14px; color: #fff; background: rgba(43,39,36,.82); padding: .45rem .8rem; border-radius: 4px; pointer-events: none; text-align: center; max-width: 80%; }
.sv-keys .key { position: absolute; background: rgba(250,247,242,.94); border-inline-start: 2px solid var(--hair); padding: .25rem .35rem .3rem; font-family: var(--sans); font-size: 11.5px; color: var(--muted-text); line-height: 1.3; }
.sv-keys .key svg { display: block; }
.sv-keys .key b { color: var(--ink-soft); font-weight: 700; }
/* the village level's in-map key: the 72 px quarter symbol, the who key (buttons that filter), collapsible */
.sv-keys .key-v { pointer-events: auto; width: 10.5rem; padding: .3rem .45rem .4rem; }
.sv-keys .key-v.closed { width: auto; padding: 0; background: none; border: 0; }
.sv-keys .key-hd { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sv-keys .key-tg { border: 1px solid var(--hair); background: var(--surface); border-radius: 3px; font: inherit; font-size: 12px; color: var(--ink-soft); cursor: pointer; min-height: 24px; min-width: 24px; padding: 0 .35rem; }
.sv-keys .key-mn { margin: .15rem 0 .3rem; }
.sv-keys .key-who { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--hair); padding-top: .25rem; }
.sv-keys .key-who .lg { display: flex; align-items: center; gap: .3rem; border: 0; background: none; font: inherit; color: var(--ink-soft); text-align: start; padding: 0 .1rem; min-height: 20px; cursor: pointer; border-radius: 3px; }
.sv-keys .key-who .lg:hover, .sv-keys .key-who .lg:focus-visible { background: var(--accent-soft); }
.sv-keys .key-who .lg[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.sv-keys .key-who svg { flex: none; }
.sv-keys .key-note { margin-top: .25rem; font-size: 11px; }
.sv-qkey { display: grid; direction: ltr; grid-template-columns: 1fr var(--qs) 1fr; grid-template-rows: auto var(--qs) auto; align-items: center; justify-items: center; gap: 0 .3rem; margin: .2rem auto; width: max-content; font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.sv-qkey .q0 { grid-column: 2; grid-row: 1; } .sv-qkey .sym { grid-column: 2; grid-row: 2; display: block; } .sv-qkey .q2 { grid-column: 2; grid-row: 3; }
.sv-qkey .q1 { grid-column: 3; grid-row: 2; justify-self: start; } .sv-qkey .q3 { grid-column: 1; grid-row: 2; justify-self: end; }
.sv-qkey .sym svg { display: block; }
.sv-legend .lg-village .sv-qkey { margin: 0 .25rem; }

/* svg marks (fill/stroke set inline from the palette, so the stylesheet cannot repaint data) */
.sv-svg text { font-family: var(--sans); font-weight: 700; pointer-events: none; }

/* tooltip — «shared» (.sv-tip, value first) */
.sv-tip { position: absolute; z-index: 40; pointer-events: none; background: var(--surface); border: 1px solid var(--hair); border-radius: 4px; box-shadow: 0 4px 18px rgba(43,39,36,.14);
  font-family: var(--sans); font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); padding: .45rem .6rem; max-width: 19rem; }
.sv-tip b.v { display: block; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sv-tip .t { font-weight: 700; color: var(--ink); }
.sv-tip .m { color: var(--muted-text); font-size: 12.5px; }
.sv-tip .d { font-family: var(--serif); font-size: 14px; color: var(--ink); margin: .15rem 0; }
.sv-tip .chips { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }

/* «shared»: small tag with an icon */
.sv-tag { display: inline-flex; align-items: center; gap: .25rem; font-family: var(--sans); font-size: 12px; font-weight: 700; border: 1px solid var(--hair); border-radius: 3px; padding: .05rem .4rem; color: var(--ink-soft); background: var(--paper); white-space: nowrap; }
.sv-tag svg { display: block; flex: none; }

/* ---------------------------------------------------------------- panel (desktop side panel; phone bottom sheet) */
.sv-panel { background: var(--surface); border: 1px solid var(--hair); border-radius: 4px; max-height: var(--map-h); min-height: 0; height: var(--map-h); overflow: auto; position: sticky; top: .75rem; font-family: var(--sans); overscroll-behavior: contain; }
.sv-panel .inner { padding: 1rem 1.1rem 1.25rem; }
.sv-panel h2 { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin: .15rem 0 .1rem; }
.sv-panel h2:focus { outline: none; }
.sv-pk { font-size: 13px; color: var(--muted-text); line-height: 1.4; }
.sv-ar { font-size: 15px; color: var(--muted-text); margin: 0 0 .45rem; }
.sv-pdesc { font-family: var(--serif); font-size: 16px; line-height: 1.6; margin: .35rem 0 .5rem; }
.sv-pmeta { font-size: 13px; color: var(--muted-text); margin: 0 0 .5rem; line-height: 1.45; }
.sv-pchips { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin: .35rem 0 .6rem; font-size: 12.5px; color: var(--muted-text); }
/* «shared»: three tiles */
.sv-ptiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: .55rem 0; margin: .4rem 0 .4rem; }
.sv-ptiles div { text-align: start; min-width: 0; }
.sv-ptiles b { display: block; font-size: 19px; font-weight: 700; line-height: 1.15; font-variant-numeric: lining-nums; }
.sv-ptiles span { display: block; font-size: 12px; color: var(--muted-text); line-height: 1.3; }
/* «shared»: panel section */
.sv-psec { margin-top: .85rem; }
.sv-psec > h3 { font-size: 13px; font-weight: 700; color: var(--muted-text); letter-spacing: .03em; margin: 0 0 .45rem; padding-top: .55rem; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.sv-psec > h3 small { font-weight: 400; font-size: 12px; letter-spacing: 0; }
.sv-pempty { font-size: 13.5px; color: var(--muted-text); margin: 0; line-height: 1.45; }
.sv-pnote { font-size: 12.5px; color: var(--muted-text); line-height: 1.45; margin: .35rem 0 0; }
.sv-para { font-family: var(--serif); font-size: 15.5px; line-height: 1.6; margin: 0 0 .65rem; color: var(--ink); }
.sv-para > b:first-child { font-family: var(--sans); font-size: 14px; }
.sv-quote { border-inline-start: 2px solid var(--ink-soft); padding: .1rem .5rem; margin: .25rem 0 .45rem; font-family: var(--serif); font-size: 14.5px; line-height: 1.5; color: var(--ink); background: var(--paper); }
.sv-quote .by { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--muted-text); }
/* «shared»: segmented bar */
.sv-segbar { display: flex; height: 14px; width: 100%; margin: .15rem 0 .35rem; }
.sv-segbar > i { display: block; height: 100%; min-width: 2px; border-inline-end: 2px solid var(--surface); }
.sv-segbar > i:last-child { border-inline-end: 0; }
.sv-segbar.tall { height: 22px; }
.sv-seglab { display: flex; flex-wrap: wrap; gap: .15rem .8rem; font-size: 12.5px; color: var(--ink-soft); margin: 0 0 .2rem; }
.sv-seglab span { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.sv-seglab b { font-variant-numeric: tabular-nums; }
.sv-sw { width: 10px; height: 10px; display: inline-block; flex: none; border-radius: 2px; }
/* «shared»: list of clickable rows with an inline bar */
.sv-rows { margin: 0; padding: 0; list-style: none; }
.sv-rows li { margin: 0 0 .3rem; }
.sv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; width: 100%; background: none; border: 0; padding: .1rem 0; text-align: start; cursor: pointer; font-size: 14px; color: var(--ink); }
.sv-row:hover .nm { text-decoration: underline; }
.sv-row .nm { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-row .nm small { font-weight: 400; color: var(--muted-text); font-size: 12px; }
.sv-row .bx { display: flex; align-items: center; gap: .35rem; }
.sv-row .bx i { display: block; height: 8px; background: var(--ink-soft); border-radius: 0 2px 2px 0; min-width: 2px; }
.sv-row .bx i.hollow { background: none; box-shadow: inset 0 0 0 1px var(--ink); }
.sv-row .bx b { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 1.6rem; }
.sv-row .bx { min-width: 6.5rem; }
.sv-row.static { cursor: default; }
.sv-row.static:hover .nm { text-decoration: none; }
.sv-row.gap .nm { font-weight: 700; color: var(--ink-soft); }
.sv-row.wrap .nm { white-space: normal; overflow: visible; }
.sv-row.near .bx { min-width: 0; }                      /* «בסביבה»: a distance only, so the name and founding year get the width */
.sv-row.near .nm small { white-space: nowrap; }
.sv-pk .nw, .sv .sv-nw { white-space: nowrap; }
.sv-dfail .sv-linkbtn { font-size: inherit; }
.sv-qbars { display: grid; grid-template-columns: auto minmax(0, 1fr) 2.5rem; gap: .25rem .45rem; align-items: center; font-size: 13.5px; }
.sv-qbars i { display: block; height: 8px; background: var(--ink-soft); border-radius: 0 2px 2px 0; min-width: 1px; }
.sv-qbars span.n { text-align: end; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; }
.sv-qbars .lab { display: inline-flex; gap: .3rem; align-items: center; white-space: nowrap; }
.sv-months { display: block; width: 100%; height: 56px; }
/* event list */
.sv-evlist { margin: 0; padding: 0; list-style: none; }
.sv-evlist li { border-bottom: 1px solid var(--hair); }
.sv-ev { display: grid; grid-template-columns: 4.6rem auto minmax(0, 1fr) auto; gap: .35rem; align-items: start; width: 100%; background: none; border: 0; padding: .35rem 0; text-align: start; cursor: pointer; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.sv-ev:hover .tx { text-decoration: underline; }
.sv-ev .dt { color: var(--muted-text); font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: .1rem; }
.sv-ev .ic { display: inline-flex; gap: 2px; padding-top: 1px; }
.sv-ev .tx { min-width: 0; }
.sv-ev .km { color: #fff; background: var(--red); border-radius: 999px; font-weight: 700; font-size: 11px; min-width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.sv-more { border: 1px solid var(--hair); background: var(--surface); border-radius: 4px; padding: .25rem .7rem; cursor: pointer; font-size: 13px; font-weight: 600; margin-top: .45rem; min-height: 30px; }
.sv-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 .2rem; }
.sv-btn { border: 1px solid var(--hair); background: var(--surface); border-radius: 4px; padding: .3rem .65rem; cursor: pointer; font-size: 13.5px; font-weight: 600; min-height: 32px; color: var(--ink); }
.sv-btn:hover { border-color: var(--muted); }
.sv-btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.sv-btn[disabled] { opacity: .4; cursor: default; }
.sv-linkbtn { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: 13.5px; }
.sv-meter { display: inline-flex; gap: 2px; vertical-align: 1px; margin-inline-start: .25rem; }
.sv-meter i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ink-soft); display: block; }
.sv-meter i.on { background: var(--ink-soft); }
.sv-srcs { margin: 0; padding: 0; list-style: none; }
.sv-srcs li { font-size: 13px; color: var(--ink-soft); margin: 0 0 .35rem; line-height: 1.4; }
.sv-srcs li b { font-weight: 700; color: var(--ink); }
.sv-srcs .lang { font-size: 11px; color: var(--muted-text); border: 1px solid var(--hair); border-radius: 2px; padding: 0 .2rem; margin-inline-start: .25rem; }
.sv-dead { margin: 0; padding: 0; list-style: none; }
.sv-dead li { font-size: 13px; line-height: 1.4; margin: 0 0 .4rem; }
.sv-dead button { background: none; border: 0; padding: 0; text-align: start; cursor: pointer; font-size: 13px; color: var(--ink); line-height: 1.4; }
.sv-dead button:hover .v { text-decoration: underline; }
.sv-dead .m { color: var(--muted-text); font-size: 12px; display: block; }
.sv-details > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted-text); letter-spacing: .03em; padding-top: .55rem; border-top: 1px solid var(--hair); margin-top: .85rem; list-style-position: inside; }
.sv-details[open] > summary { margin-bottom: .45rem; }
.sv-rangesel { display: inline-flex; gap: 0; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.sv-rangesel button { border: 0; background: var(--surface); padding: .1rem .5rem; cursor: pointer; font-size: 13px; font-weight: 600; min-height: 26px; }
.sv-rangesel button + button { border-inline-start: 1px solid var(--hair); }
.sv-rangesel button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sv-loading { font-size: 13px; color: var(--muted-text); }
.sv-pager { display: flex; justify-content: space-between; gap: .5rem; margin: .8rem 0 .2rem; flex-wrap: wrap; }

/* «shared»: story card (house .story, for sv-tour.js) */
.sv-story .step-n { font-size: 12px; font-weight: 700; color: var(--muted-text); letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; }
.sv-story .dots { display: inline-flex; gap: 0; }
.sv-story .dots button { width: 22px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sv-story .dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink-soft); display: block; }
.sv-story .dots button[aria-current="step"] i { background: var(--ink); border-color: var(--ink); }
.sv-story h2 { font-family: var(--serif); font-size: 24px; margin: .35rem 0 .5rem; }
.sv-story .hero { font-family: var(--sans); font-size: 34px; font-weight: 700; line-height: 1.05; margin: .2rem 0 0; }
.sv-story .hero-sub { font-size: 13px; color: var(--muted-text); margin: .15rem 0 .6rem; }
.sv-story p.body { font-family: var(--serif); font-size: 17px; line-height: 1.65; margin: 0 0 .7rem; }
.sv-story nav { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem; }
.sv-story nav button { border: 1px solid var(--ink); background: var(--surface); border-radius: 4px; padding: .4rem .8rem; cursor: pointer; font-weight: 700; font-size: 14px; display: inline-flex; gap: .35rem; align-items: center; min-height: 36px; }
.sv-story nav button.primary { background: var(--ink); color: #fff; }
.sv-story nav button[disabled] { opacity: .35; cursor: default; }
.sv-story .skip { font-size: 13px; color: var(--muted-text); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }

/* phone bottom sheet */
.sv-sheet-bar, .sv-peek { display: none; }
.sv-sheet-handle { flex: 1; border: 0; background: none; padding: .55rem 0 .25rem; cursor: pointer; min-height: 32px; touch-action: none; }
.sv-sheet-handle::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--ghost-stroke); margin: 0 auto; }
.sv-sheet-close { border: 0; background: none; font-size: 18px; width: 44px; height: 40px; cursor: pointer; color: var(--ink-soft); }
.sv-peek { padding: 0 1rem .6rem; align-items: center; gap: .6rem; }
.sv-peek .pk-main { flex: 1; min-width: 0; }
.sv-peek .pk-name { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-peek .pk-nums { font-size: 13px; color: var(--muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-peek .pk-nums b { color: var(--ink); }
.sv-peek .pk-more { border: 1px solid var(--ink); background: var(--surface); border-radius: 4px; padding: .35rem .7rem; font-weight: 700; font-size: 14px; min-height: 40px; cursor: pointer; flex: none; }

/* below the map */
.sv-census { font-family: var(--sans); font-size: 12.5px; color: var(--muted-text); line-height: 1.5; margin: .5rem 0 0; max-width: 52rem; }
.sv-sec-hit, .sv-sec-near { margin-top: 2rem; }
.sv-sec-title { font-family: var(--serif); font-weight: 700; font-size: 22px; margin: 0 0 .6rem; padding-top: .7rem; border-top: 1px solid var(--ink); }
.sv-sec-body:empty { display: none; }
.sv-about-link { text-align: center; font-family: var(--sans); font-size: 14.5px; margin: 1.5rem 0 0; padding-top: .8rem; border-top: 1px solid var(--hair); }

/* about page */
.sv-back { font-family: var(--sans); font-size: 14px; margin: 0 auto 1.25rem; max-width: 44rem; }
.sv-method { max-width: 44rem; margin: 0 auto; font-size: 16px; line-height: 1.7; }
.sv-method h1 { font-size: 26px; margin: 0 0 .6rem; }
.sv-method h2 { font-size: 20px; margin: 1.6rem 0 .4rem; }
.sv-method p, .sv-method ul { margin: 0 0 .7rem; }
.sv-method li { margin: 0 0 .25rem; }
.sv-method table { border-collapse: collapse; font-family: var(--sans); font-size: 14px; margin: .3rem 0 1rem; width: 100%; background: var(--surface); }
.sv-method th, .sv-method td { border: 1px solid var(--hair); padding: .3rem .5rem; text-align: start; vertical-align: top; line-height: 1.45; }
.sv-method th { background: var(--paper); font-weight: 700; }
.sv-method .small { font-family: var(--sans); font-size: 13.5px; color: var(--muted-text); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1099px) {
  .sv-main { grid-template-columns: minmax(0, 1fr) 19rem; gap: 0 1rem; }
  .sv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 36rem; }
}
@media (max-width: 767px) {
  .sv { padding: 1rem .75rem 2rem; --map-h: clamp(460px, 74svh, 640px); }
  .sv-title { font-size: 21px; }
  .sv-dek { font-size: 16px; }
  .sv-tiles { gap: .35rem; }
  .sv-tile { padding: .3rem .45rem; }
  .sv-tile b { font-size: 16px; }
  .sv-tile span { font-size: 11.5px; }
  .sv-controls { padding-bottom: .2rem; }
  .sv-search { flex: 1 1 100%; max-width: none; order: 0; }
  .sv-ctl-row { display: flex; position: relative; flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; gap: .5rem .8rem; align-items: center; overflow-x: auto; padding-bottom: .5rem;
    -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); scrollbar-width: none; }
  .sv-ctl-row > * { flex: none; }
  .sv-g { flex-wrap: nowrap; }
  .sv-chip, .sv-seg button, .sv-mbtn, .sv-select { min-height: 40px; }
  .sv-main { grid-template-columns: 1fr; }
  .sv-panel { position: static; max-height: none; height: auto; min-height: 0; margin-top: .6rem; }
  .sv-panel.sheet { position: fixed; z-index: 55; inset-inline: 0; top: auto; bottom: 0; margin: 0; max-height: 88svh; height: auto; border-radius: 12px 12px 0 0; box-shadow: 0 -6px 24px rgba(43,39,36,.16); transition: max-height .2s; }
  .sv-panel.sheet .sv-sheet-bar { display: flex; position: sticky; top: 0; z-index: 2; background: var(--surface); align-items: center; }
  .sv-panel.sheet.peek { max-height: 112px; overflow: hidden; }
  .sv-panel.sheet.peek .sv-peek { display: flex; }
  .sv-panel.sheet.peek .sv-panel-body, .sv-panel.sheet.peek .sv-panel-tour { visibility: hidden; }
  .sv-zoom { flex-direction: row; }
  .sv-zoom button { width: 44px; height: 44px; }
  .sv-fs { display: inline-flex; align-items: center; gap: .25rem; position: absolute; z-index: 6; top: .5rem; left: .5rem; height: 36px; border: 1px solid var(--hair); background: var(--surface); border-radius: 4px; font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 0 .55rem; cursor: pointer; }
  .sv-map.has-trail .sv-fs { top: auto; bottom: 3.6rem; }
  .sv-crumbs .cap { display: none; }
  .sv-label { font-size: 12px; }
  .sv-label.city { font-size: 12px; }
  .sv-trail { inset-inline-end: 7.5rem; }
  /* touch targets ≥ 44 px (PLAN §3.3): real height where there is room, an invisible hit area elsewhere */
  .sv-fs { height: 44px; }
  .sv-chip, .sv-seg button, .sv-mbtn, .sv-select { min-height: 44px; }
  .sv-seg button { min-width: 44px; }
  .sv-rangesel button { min-height: 44px; min-width: 44px; }
  /* the trail: chips 36 px tall, rows 8 px apart, each chip's hit area 4 px above and below its border — 44 px, and the
     hit areas of two rows meet without overlapping (a tap inside a chip's border always opens that chip) */
  .sv-trail { gap: 8px 4px; }
  .sv-trail .crumb { position: relative; min-height: 36px; min-width: 44px; justify-content: center; }
  .sv-trail .crumb::before { content: ''; position: absolute; inset: -5px -1px; }   /* (from the padding box: 1 px border) */
  /* the level switch and the unlocated counter: real 44 px boxes, the level switch beside the zoom buttons and the counter
     above it, narrow (two lines) in the map's corner, over the Dead Sea and Jordan rather than the South Hebron Hills
     (the home fit keeps the bottom strip for the zoom row only); never under the zoom buttons (whose layer is above the
     breadcrumb's) or the full-screen button */
  .sv-zoom { z-index: 7; }
  .sv-crumbs { bottom: .6rem; flex-direction: column-reverse; gap: 4px; max-width: calc(100% - 7.5rem); pointer-events: none; }
  .sv-crumbs > * { pointer-events: auto; }
  .sv-crumbs .lv { min-height: 44px; padding: 0 .15rem; gap: 0; }
  .sv-crumbs .lv button { min-height: 44px; min-width: 44px; padding: 0 .3rem; }
  .sv-crumbs .unloc { min-height: 44px; max-width: 7.6rem; padding: .2rem .4rem; text-align: start; line-height: 1.3; }
  .sv-legend > details > summary { padding: .8rem 0; margin-bottom: 0; }
  /* links and link buttons in running text: a real box of at least 44 × 44 px (the line that holds one grows to fit
     it), never an invisible hit area reaching over the line above or below, where it took taps meant for a neighbour */
  .sv-linkbtn, .sv-panel .sv-para a, .sv-panel .sv-pnote a, .sv-panel .sv-pmeta a, .sv-panel .sv-pempty a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; vertical-align: baseline; }
  .sv-panel .sv-para a.sv-url, .sv-panel .sv-pnote a.sv-url { justify-content: flex-start; }
  /* … except where its 44 px hit area, centred on the text, reaches no other control (sv-viz.js fitTargets): then it
     stays in the line as text, the line keeps its height, and an invisible 44 × 44 px area takes the tap */
  .sv .sv-panel .sv-tx { display: inline; min-height: 0; min-width: 0; position: relative; }
  .sv .sv-panel .sv-tx::before { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
  .sv .sv-panel .sv-tx.sv-txw { display: inline-block; min-width: 44px; text-align: center; }
  .sv .sv-panel .sv-hugl, .sv .sv-panel .sv-tx.sv-txw.sv-hugl { justify-content: left; text-align: left; }      /* the name beside its comma, the spare width before it */
  /* the sources: one row of at least 44 px each, and the row is its link's target (an overlay on the row, not beyond it) */
  .sv-srcs li { position: relative; margin: 0; padding-block: 13px; }
  .sv-srcs li + li { border-top: 1px solid var(--hair); }
  .sv-srcs li > a::after { content: ''; position: absolute; inset: 0; }
  .sv-ev { min-height: 44px; align-content: center; }
  .sv-details > summary { padding-block: .85rem; }
  .sv-sheet-handle { min-height: 44px; align-self: stretch; }
  .sv-dead li > button { min-height: 44px; }
  .sv-legend button.lg { min-height: 44px; }
}
/* phone full-screen overlay (not the iOS Fullscreen API): one finger pans */
.sv-map.fs { position: fixed; z-index: 60; inset: 0; height: 100%; width: 100%; touch-action: none; }
.sv-panel.sheet.over-fs { z-index: 65; }
.sv-map.fs .sv-fs { display: none; }
.sv-map.fs .sv-fs-close { display: block; position: absolute; z-index: 8; top: .5rem; left: .5rem; width: 44px; height: 44px; border: 1px solid var(--hair); background: var(--surface); border-radius: 4px; font-size: 18px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sv *, .sv-marks { transition: none !important; } }
@media (forced-colors: active) { .sv-svg { forced-color-adjust: none; } }
@media print { .sv-controls, .sv-zoom, .sv-fs, .sv-trail { display: none; } }

/* ---------------------------------------------------------------- module blocks (styles live in the module files)
   sv-strip.css    — #sv-strip       (weekly time strip and brush)
   sv-sections.css — #sv-hit-body, #sv-near-body (spike maps; distance chart and ranked list; region panel)
   sv-table.css    — #sv-search, #sv-tableview (search combobox, table view, CSV)
   sv-tour.css     — #sv-panel-tour, #sv-notes (guided tour card, margin notes) */

/* the copy-link fallback (no Clipboard API on a plain-http page): the link, selected, to copy by hand */
.sv .sv-copyfield { display: block; width: 100%; margin-top: .35rem; font: 13px/1.3 var(--sans); padding: .3rem .4rem; border: 1px solid var(--hair); border-radius: 3px; background: var(--paper); color: var(--ink); }
.sv .sv-ennote { unicode-bidi: isolate; display: inline-block; text-align: left; } .sv .sv-enlab { color: var(--muted-text); }

/* phones: every tappable target ≥ 44 px (PLAN §3.3) */
@media (max-width: 767px) {
  .sv .sv-row { min-height: 44px; }
  .sv .sv-btn, .sv .sv-more, .sv .sv-sheet-close, .sv .pk-more { min-height: 44px; }
  .sv .sv-sheet-close { min-width: 44px; }
  /* a region name's hit area: 44 px tall and at least 44 px wide, reaching at most halfway towards another region name
     (sv-viz.js placeLabels sets --ht/--hb/--hl/--hr; the defaults are the area's size for a lone one-line name) */
  .sv .sv-label.region::before { content: ''; position: absolute; top: calc(-1 * var(--ht, 14px)); bottom: calc(-1 * var(--hb, 14px)); left: calc(-1 * var(--hl, 4px)); right: calc(-1 * var(--hr, 4px)); }
}
.sv .sv-empty { position: absolute; z-index: 7; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--surface); border: 1px solid var(--hair); border-radius: 4px; box-shadow: 0 4px 18px rgba(43,39,36,.14); padding: .7rem 1rem; text-align: center; font-family: var(--sans); font-size: 14px; }
.sv .sv-empty p { margin: 0 0 .5rem; }
