/* Aliyah Atlas — design 2 (1 Nov 2026, Claude Design handoff).
   Light surfaces, deep ink as the primary colour, gold accents (never as text on light). The CBS lifestyle ramp keeps its
   colours: it is data. Logical properties throughout, so Hebrew mirrors cleanly. */
:root {
  color-scheme: light;
  --page: #F4F6F9;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --tint: #EEF2F8;
  --line: #E3E7EE;
  --line-2: #EEF1F5;
  --line-strong: #CDD4DF;
  --ink: #0F1B2D;
  --ink-hover: #1C2A42;
  --ink-2: #3A4658;
  --muted: #5B6678;
  --accent: #F2B441;
  --ok-bg: #EAF5EE; --ok-ink: #1D5E3A;
  --low-bg: #FDF2E3; --low-ink: #7A4A00;
  --foot-bg: #0F1B2D; --foot-text: #C9D2E0; --foot-muted: #9AA6B8; --foot-rule: #263552;
  --jn-j: #24324A; --jn-n: #C9A66B;
  --stream-arab: #C9A66B;
  --focus: var(--ink);
  --on-ink: #FFFFFF;
  --shadow-up: 0 1px 2px rgba(15, 27, 45, .05), 0 30px 60px -36px rgba(15, 27, 45, .35);
  --h-ring: transparent;
  /* legacy names still used by a few inline SVGs */
  --plate: var(--surface); --stone: var(--tint); --rule: var(--line); --rule-2: var(--line-strong); --faint: var(--muted);
  --ok: var(--ok-ink); --differ: var(--low-ink);
  --font-display: 'rubik', 'Segoe UI', Arial, sans-serif;
  --font-ui: 'assistant', 'Segoe UI', Arial, sans-serif;
  --fs-body: 17px;
  --wrap: 1280px; --gut: 40px;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0E141F; --surface: #161E2B; --surface-2: #1B2433; --tint: #1F2A3B; --line: #2A3547; --line-2: #222C3C; --line-strong: #3A4659;
    --ink: #F2F4F8; --ink-hover: #DCE2EC; --ink-2: #C9D2E0; --muted: #9AA6B8; --on-ink: #0E141F;
    --ok-bg: #173226; --ok-ink: #8FD9AE; --low-bg: #3A2A12; --low-ink: #F3C77E;
    --foot-bg: #0A0F18; --jn-j: #C4D1E3; --jn-n: #C9A66B;
    --shadow-up: 0 1px 2px rgba(0, 0, 0, .3), 0 30px 60px -36px rgba(0, 0, 0, .7);
    --h-ring: rgba(255, 255, 255, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0E141F; --surface: #161E2B; --surface-2: #1B2433; --tint: #1F2A3B; --line: #2A3547; --line-2: #222C3C; --line-strong: #3A4659;
  --ink: #F2F4F8; --ink-hover: #DCE2EC; --ink-2: #C9D2E0; --muted: #9AA6B8; --on-ink: #0E141F;
  --ok-bg: #173226; --ok-ink: #8FD9AE; --low-bg: #3A2A12; --low-ink: #F3C77E;
  --foot-bg: #0A0F18; --jn-j: #C4D1E3; --jn-n: #C9A66B;
  --shadow-up: 0 1px 2px rgba(0, 0, 0, .3), 0 30px 60px -36px rgba(0, 0, 0, .7);
  --h-ring: rgba(255, 255, 255, .25);
}
@media (max-width: 599px) { :root { --gut: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-ui); font-size: var(--fs-body); line-height: 1.55; overflow-x: hidden; overflow-wrap: anywhere; }
:lang(he) { font-size: 1.04em; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
h2 { font-size: 30px; line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 1.25; margin: 22px 0 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: var(--on-ink); padding: 10px 14px; z-index: 60; border-radius: 10px; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.cap { font-size: 14px; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; }
.dot.light { box-shadow: inset 0 0 0 1px rgba(15, 27, 45, .15); }
.dot.dark { box-shadow: 0 0 0 1px var(--h-ring); }
.ic { width: 20px; height: 20px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink-2); margin: 0 0 12px; }
.eyebrow .ic { width: 18px; height: 18px; }
.eyebrow.pill { font-weight: 400; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.eyebrow.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); min-height: 74px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand .logo { width: 40px; height: 40px; flex: none; }
.brand b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.15; white-space: nowrap; }
.brand small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 4px; margin-inline: auto; align-items: center; }
.nav a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-2); padding: 10px 16px; min-height: 44px; font-size: 16px; white-space: nowrap; border-radius: 999px; transition: background .15s ease-out; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--tint); color: var(--ink); font-weight: 700; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #0F1B2D; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tools { display: flex; gap: 10px; align-items: center; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.seg button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; font-size: 14px; font-weight: 600; min-height: 36px; min-width: 44px; border-radius: 999px; color: var(--ink-2); transition: background .15s ease-out; }
.seg button:hover { background: var(--tint); }
.seg.lang button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.seg.units button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 27, 45, .18); }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; width: 44px; height: 44px; padding: 0; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 24px; height: 24px; }
@media (max-width: 899px) {
  .top-in { flex-wrap: wrap; min-height: 60px; gap: 10px; }
  .brand .logo { width: 34px; height: 34px; }
  .brand small { display: none; }
  .menu-btn { display: inline-flex; margin-inline-start: auto; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0 0 6px; }
  .nav.open { display: flex; }
  .nav a { border-radius: 12px; }
  .tools { width: 100%; justify-content: space-between; display: none; padding: 4px 0 12px; }
  .tools.open { display: flex; }
}

/* ------------------------------------------------------------------ layout */
main { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gut) 24px; min-height: 60vh; }
main:focus { outline: none; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 24px; align-items: start; margin: 0 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px; margin: 0 0 24px; min-width: 0; }
.card.up { box-shadow: var(--shadow-up); }
.card > h2:first-child { margin-top: 0; }
.card .sub { color: var(--muted); font-size: 15px; margin: -4px 0 18px; }
@media (max-width: 599px) { .card { padding: 20px 18px; border-radius: 22px; } h2 { font-size: 24px; } }
.notice { background: var(--tint); color: var(--ink); padding: 12px 16px; font-size: 15px; margin: 12px 0; border-radius: 14px; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; font-size: 16px; margin: 0; }
.kv dt { color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.kv dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; font-weight: 700; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.src { font-size: 13px; color: var(--muted); margin-top: 14px; max-width: 90ch; }

/* ------------------------------------------------------------------ buttons, chips, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 18px; cursor: pointer; text-decoration: none; font-size: 16px; font-weight: 700; min-height: 48px; transition: background .15s ease-out, border-color .15s ease-out, box-shadow .15s ease-out; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn.primary:hover { background: var(--ink-hover); }
.btn.primary[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.gold { background: var(--accent); color: #0F1B2D; border-color: var(--accent); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.quiet, .btn.text { border-color: transparent; background: transparent; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; padding-inline: 8px; }
.btn.quiet:hover, .btn.text:hover { text-decoration-thickness: 2px; }
.btn.block { width: 100%; min-height: 56px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; font-size: 15px; background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; min-height: 44px; transition: background .15s ease-out, border-color .15s ease-out; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip .ck { display: none; width: 16px; height: 16px; }
.chip[aria-pressed="true"] .ck, .chip[aria-current="true"] .ck { display: inline-block; }
.tagpill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--ink); font-size: 14px; font-weight: 700; }
.tagpill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.tagpill.low { background: var(--low-bg); color: var(--low-ink); }
.tagpill .ic { width: 14px; height: 14px; }
.segc { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.segc button, .segc a { border: 0; background: transparent; padding: 8px 14px; min-height: 44px; border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; }
.segc button[aria-pressed="true"], .segc a[aria-current="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(15, 27, 45, .16); }
.segc.dark a[aria-current="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }

/* ------------------------------------------------------------------ search */
.search { position: relative; max-width: 640px; }
.search-label { display: block; font-weight: 700; font-size: 16px; margin: 0 0 10px; }
.sbox { position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-up); min-height: 68px; padding-inline: 18px 8px; gap: 10px; }
.sbox:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.sbox .s-ic { width: 24px; height: 24px; color: var(--muted); flex: none; }
.sbox input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-size: 19px; padding: 10px 0; color: var(--ink); outline: none; }
.sbox input::placeholder { color: var(--muted); opacity: 1; }
.sbox input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.sbox .sbtn { min-height: 52px; border-radius: 12px; padding-inline: 22px; }
.search .hint { font-size: 14px; color: var(--muted); margin: 10px 2px 0; }
@media (max-width: 599px) { .sbox { min-height: 58px; } .sbox .sbtn { display: none; } .sbox input { font-size: 17px; } }
.sugg { list-style: none; margin: 8px 0 0; padding: 6px; position: absolute; inset-inline: 0; top: 100%; z-index: 25; max-height: 62vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-up); }
.sugg li { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-radius: 10px; cursor: pointer; min-height: 44px; }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--tint); }
.sugg li.muted { cursor: default; }
.sugg .ty { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sugg .nm { font-weight: 700; }

/* ------------------------------------------------------------------ home */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr)); gap: 56px; align-items: center; padding: 24px 0 64px; }
.hero h1 { font-size: 66px; line-height: 1.04; letter-spacing: -0.02em; margin: 6px 0 22px; }
.hero h1 .mark { position: relative; display: inline-block; }
.hero h1 .mark svg { position: absolute; inset-inline: 0; bottom: -4px; width: 100%; height: 16px; }
.hero .lead { font-size: 21px; color: var(--ink-2); margin: 0 0 30px; max-width: 34em; }
.pop-label { font-size: 14px; font-weight: 700; color: var(--muted); margin: 26px 0 10px; }
.feat { display: flex; flex-wrap: wrap; gap: 10px; }
.feat a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s ease-out; }
.feat a:hover { border-color: var(--ink); }
.feat .dot { width: 9px; height: 9px; border-radius: 50%; }
.mapcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-up); }
.mapcard h2 { font-size: 26px; margin: 0 0 8px; }
.mapcard .mc-sub { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.lifecount { list-style: none; margin: 0 0 18px; padding: 0; }
.lifecount li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; font-size: 16px; }
.lifecount li span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.lifecount .dot { width: 13px; height: 13px; border-radius: 50%; }
.selcard { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: var(--surface-2); }
.selcard .sel-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.selcard .sel-h::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.selcard .sel-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15; margin: 0; }
.selcard .sel-d { font-size: 14px; color: var(--muted); }
.selcard .stack { margin: 12px 0 6px; }
.selcard .btn { width: 100%; margin-top: 12px; }
.mapcard .mapwrap { border-radius: 20px; }
.mapcard .map { height: 620px; }
@media (max-width: 1100px) { .mapcard { grid-template-columns: minmax(0, 1fr); } .mapcard .map { height: 460px; } }
@media (max-width: 599px) { .hero { gap: 28px; padding: 8px 0 40px; } .hero h1 { font-size: 36px; line-height: 1.08; } .hero .lead { font-size: 17px; } .mapcard { padding: 16px; border-radius: 22px; } .mapcard .map { height: 380px; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin: 0 0 88px; }
.stats > div { background: var(--surface); padding: 26px 28px; }
.stats b { display: block; font-family: var(--font-display); font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 15px; }
.sec-h { margin: 0 0 28px; }
.sec-h h2 { font-size: 42px; line-height: 1.12; margin: 0 0 10px; max-width: 22em; }
.sec-h p { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 46em; }
@media (max-width: 599px) { .sec-h h2 { font-size: 28px; } .sec-h p { font-size: 17px; } .stats b { font-size: 26px; } }
.what { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; margin: 0 0 88px; }
.wcard { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.wvis { background: var(--tint); padding: 28px 28px 0; min-height: 250px; display: flex; align-items: flex-end; }
.wmini { background: var(--surface); border-radius: 18px 18px 0 0; padding: 18px 18px 14px; width: 100%; box-shadow: var(--shadow-up); font-size: 14px; }
.wmini .cap { font-size: 13px; margin: 0 0 8px; }
.wmini .wl { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 0 0 8px; }
.wtxt { padding: 26px 28px 28px; }
.wtxt h3 { margin: 0 0 8px; font-size: 22px; }
.wtxt p { margin: 0; color: var(--ink-2); font-size: 16px; }
.dplot { margin: 4px 0 12px; }
.dplot .dl { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.dplot .dl b { color: var(--ink); }
.dplot .dt { position: relative; height: 14px; margin: 4px 0 0; }
.dplot .dt::before { content: ""; position: absolute; inset-inline: 0; top: 6px; height: 2px; background: var(--line); }
.dplot .dt i { position: absolute; top: 1px; width: 12px; height: 12px; border-radius: 50%; margin-inline-start: -6px; background: var(--ink); }
.dplot .dt i.nat { background: var(--surface); border: 2px solid var(--muted); }
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.mrow:last-child { border-bottom: 0; }
.mrow .itile { width: 34px; height: 34px; }
.mrow .mn { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.mrow .mm { color: var(--muted); white-space: nowrap; font-size: 13px; }
.band { background: var(--foot-bg); color: var(--foot-text); border-radius: 32px; padding: 56px; margin: 0 0 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; align-items: center; }
.band .eyebrow { color: var(--foot-text); }
.band .eyebrow .ic { color: var(--accent); }
.band h2 { color: #fff; font-size: 42px; line-height: 1.12; margin: 0 0 14px; }
.band p { margin: 0 0 24px; font-size: 18px; }
.band .note { font-size: 14px; color: var(--foot-muted); margin-inline-start: 14px; }
.band .bfine { font-size: 14px; color: var(--foot-muted); margin: 18px 0 0; }
.band .bq { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: q; }
.band .bq li { counter-increment: q; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--foot-rule); border-radius: 14px; padding: 12px 16px; color: #fff; }
.band .bq li::before { content: counter(q); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #0F1B2D; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 14px; }
@media (max-width: 599px) { .band { padding: 28px 22px; border-radius: 24px; } .band h2 { font-size: 28px; } }
.srcgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; margin: 28px 0 0; }
.srcgrid article { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.srcgrid .ic { width: 26px; height: 26px; }
.srcgrid h3 { font-size: 18px; margin: 12px 0 8px; }
.srcgrid p { margin: 0; color: var(--muted); font-size: 14px; }
.sources-sec { margin: 0 0 64px; }
.sources-sec .row { margin-top: 18px; }

/* ------------------------------------------------------------------ fine print (all views) */
.fine { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; margin: 24px 0 8px; font-size: 15px; color: var(--ink-2); }
.fine > .ic { width: 26px; height: 26px; margin-top: 2px; color: var(--ink); }
.fine .fb { min-width: 0; }
.fine p { margin: 0 0 6px; max-width: 110ch; }
.fine b { color: var(--ink); }
.fine .fsrc { color: var(--muted); font-size: 14px; }
.fine .btn { margin-top: 10px; }

/* ------------------------------------------------------------------ place profile */
.crumbs { font-size: 15px; color: var(--muted); margin: 4px 0 18px; }
.crumbs a { color: var(--ink-2); }
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin: 0 0 28px; }
.ph-t { min-width: 0; }
.ph-t .tl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.ph h1 { font-size: 64px; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.ph .ph-lat { font-family: var(--font-display); font-weight: 500; font-size: 30px; color: var(--muted); }
.ph .ph-he { font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--muted); margin: 6px 0 0; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.meta li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 15px; color: var(--ink-2); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tray { display: contents; }
.tray-link { display: none; }
@media (max-width: 599px) {
  .ph h1 { font-size: 31px; }
  .ph .ph-lat { font-size: 20px; }
  .ph .ph-he { font-size: 19px; }
  .actions .btn:not(.primary) { flex: 1 1 auto; }
  .tray { display: flex; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(15, 27, 45, .35); padding: 12px 16px 20px; }
  .tray #cmpBtn { flex: 1 1 auto; }
  .tray #cmpBtn[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
  .tray-link { display: inline-flex; flex: none; }
  body.has-tray main { padding-bottom: 96px; }
}
.hero2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 24px; align-items: stretch; margin: 0 0 24px; }
.hero2 > .card { margin: 0; }
.charcard { display: flex; flex-direction: column; box-shadow: var(--shadow-up); }
.charcard .lab { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; }
.charcard .big { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 14px; }
.charcard .confrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.charcard .confrow .cap { font-size: 14px; }
.charcard .chardef { font-size: 17px; color: var(--ink-2); margin: 0 0 4px; }
.charcard .sect { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.charcard .sect h3 { font-size: 17px; margin: 0 0 4px; }
.charcard .cbsline { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.charcard .strip { margin-top: auto; }
.charcard .strip p { margin: 22px 0 0; background: var(--page); border-radius: 14px; padding: 12px 16px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.charcard .strip b { color: var(--ink); }
.conf { margin: 0; }
@media (max-width: 599px) { .charcard .big { font-size: 27px; } }
/* stacked bars: data, so they keep their colours */
.stack { display: flex; height: 16px; overflow: hidden; gap: 3px; margin: 12px 0 8px; border-radius: 999px; }
.stack span { display: block; height: 100%; min-width: 3px; }
.stack span:first-child { border-start-start-radius: 999px; border-end-start-radius: 999px; }
.stack span:last-child { border-start-end-radius: 999px; border-end-end-radius: 999px; }
.stack span.light { box-shadow: inset 0 0 0 1px rgba(15, 27, 45, .15); }
.stack span.dark { box-shadow: inset 0 0 0 1px var(--h-ring); }
.stack.thin { height: 10px; gap: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); margin: 8px 0 4px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.lifelist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; font-size: 16px; }
.lifelist li { display: flex; align-items: center; gap: 8px; }
.lifelist li span { flex: 1 1 auto; }
.lifelist b { font-variant-numeric: tabular-nums; }
#streetSections { font-size: 15px; color: var(--ink-2); margin: 0 0 6px; }
/* Jews / non-Jews estimate */
.jn h3 { font-size: 17px; margin: 0; }
.jnbar { display: flex; height: 16px; gap: 3px; margin: 12px 0 10px; overflow: hidden; border-radius: 999px; }
.jnbar span { display: block; height: 100%; }
.jnbar span:first-child { border-start-start-radius: 999px; border-end-start-radius: 999px; }
.jnbar span:last-child { border-start-end-radius: 999px; border-end-end-radius: 999px; }
.jnbar .j, .jnlist .dot.j { background: var(--jn-j); }
.jnbar .n, .jnlist .dot.n { background: var(--jn-n); }
.jnlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 16px; }
.jnlist li { display: flex; align-items: center; gap: 8px; }
.jnlist b { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 22px; }
.jnnote { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
/* map card */
.mapcard2 { display: flex; flex-direction: column; }
.mc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.mc-head h2 { margin: 0; }
.mapwrap { position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--tint); }
.map { width: 100%; height: 560px; }
@media (max-width: 599px) { .map { height: 360px; } }
.maperr { padding: 24px; font-size: 15px; color: var(--ink-2); }
.layers { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; align-items: center; }
#saInd .cap { width: 100%; }
.maplibregl-popup-content { color: #0F1B2D; font-family: var(--font-ui); font-size: 15px; max-width: 280px; border-radius: 14px; padding: 12px 16px; }
.maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; }
.maplibregl-ctrl-group { border-radius: 12px !important; overflow: hidden; }
.maplibregl-ctrl-attrib { font-size: 11px; }
#shabbatBox { margin: 10px 0; font-size: 15px; background: var(--surface-2); border-radius: 16px; padding: 12px 14px; }
#shabbatBox p { margin: 6px 0; }
/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; margin: 0 0 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; min-width: 0; }
.kpi .kl { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.kpi .kv2 { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 0; }
.kpi .kv2 small { font-family: var(--font-ui); font-weight: 600; font-size: 16px; color: var(--ink-2); }
.kpi .kc { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.meter10 { display: flex; gap: 3px; margin: 10px 0 0; }
.meter10 i { flex: 1 1 0; height: 8px; border-radius: 3px; background: var(--line); }
.meter10 i.on { background: var(--ink); }
@media (max-width: 599px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .kpi { padding: 16px; } .kpi .kv2 { font-size: 24px; } }
/* in-page nav */
.pnav { position: sticky; top: 74px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; padding: 6px; margin: 0 0 24px; scrollbar-width: none; }
.pnav::-webkit-scrollbar { display: none; }
.pnav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.pnav a:hover { background: var(--tint); }
.pnav a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
@media (max-width: 899px) { .pnav { top: 60px; border-radius: 0; margin-inline: calc(-1 * var(--gut)); border-inline: 0; } }
/* who lives here: rows with a national tick */
.vleg { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.vleg span { display: inline-flex; align-items: center; gap: 8px; }
.vleg .sw { width: 18px; height: 8px; border-radius: 999px; background: var(--ink); }
.vleg .tk { width: 3px; height: 16px; border-radius: 2px; background: var(--accent); }
.vrows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 0 48px; }
.vrow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(90px, 150px); gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 16px; }
.vrow .vv { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; }
.vrow .vb { position: relative; height: 8px; border-radius: 999px; background: var(--line-2); }
.vrow .vb i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; background: var(--ink); }
.vrow .vb em { position: absolute; top: -4px; width: 3px; height: 16px; border-radius: 2px; background: var(--accent); margin-inline-start: -1.5px; }
.vrow .vn { font-size: 13px; color: var(--muted); white-space: nowrap; text-align: end; }
.vrow.txt { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 599px) { .vrow { grid-template-columns: minmax(0, 1fr) auto; } .vrow .vb, .vrow .vn { grid-column: 1 / -1; } }
/* origins */
.ptable { width: 100%; border-collapse: collapse; font-size: 16px; }
.ptable caption { text-align: start; }
.ptable th { text-align: start; font-size: 14px; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ptable td, .ptable tbody th { padding: 12px 6px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ptable tbody th { color: var(--ink); font-size: 16px; font-weight: 600; }
.ptable td.n, .ptable th.n { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable td.n { font-weight: 700; }
.ptable tr[data-k="olim_all"] th, .ptable tr[data-k="olim_all"] td { border-top: 2px solid var(--ink); }
.barrow { display: grid; grid-template-columns: minmax(90px, 40%) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 16px; padding: 7px 0; }
.barrow .track { height: 12px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.barrow .fill { height: 100%; border-radius: 999px; background: var(--ink); }
.barrow .val { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 56px; text-align: end; }
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 14px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.mstats b { display: block; font-family: var(--font-display); font-size: 26px; font-variant-numeric: tabular-nums; }
.mstats span { font-size: 14px; color: var(--muted); }
/* services */
.ctiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; margin: 6px 0 24px; }
.ctile { display: flex; align-items: center; gap: 14px; background: var(--surface-2); border-radius: 20px; padding: 16px 18px; min-width: 0; }
.itile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); flex: none; color: var(--ink); border: 1px solid var(--line-2); }
.itile .ic { width: 22px; height: 22px; }
.ctile b { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ctile span { font-size: 14px; color: var(--ink-2); }
.sbars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px 48px; align-items: start; }
.sbar h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 18px; margin: 0 0 4px; }
.sbar h3 small { font-family: var(--font-ui); font-weight: 400; font-size: 14px; color: var(--muted); }
.svc { list-style: none; margin: 0; padding: 0; }
.svc li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 16px; }
.svc li .itile { width: 36px; height: 36px; border-radius: 10px; }
.svc li .itile .ic { width: 18px; height: 18px; }
.svc li .nm { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.svc li .nm .sub2 { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.svc li .d { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; }
.svc li[hidden] { display: none; }
.svc-more { margin: 12px 0 0; }
.tag { font-size: 12px; padding: 2px 8px; background: var(--tint); color: var(--ink); margin-inline-start: 6px; white-space: nowrap; border-radius: 999px; font-weight: 600; }
.svc .gm, .gm { font-size: 14px; white-space: nowrap; font-weight: 600; }
.radius { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; margin: 4px 0 14px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); width: fit-content; max-width: 100%; }
.radius > span { padding-inline: 10px 6px; font-size: 14px; color: var(--muted); }
.radius .chip { border: 0; background: transparent; border-radius: 10px; min-height: 44px; }
.radius .chip[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
.svc-group h3 { display: flex; justify-content: space-between; align-items: baseline; }
.also { font-size: 15px; color: var(--ink-2); margin: 18px 0 0; }
/* contacts */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; margin: 0 0 24px; }
.contacts > .card { margin: 0; }
.ccard h2 { font-size: 26px; }
.coords { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.coord { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.coord b { display: block; }
.coord span { font-size: 14px; color: var(--muted); }
.coord .cl { text-align: end; font-size: 14px; white-space: nowrap; }
#reportLink { margin: 10px 0 0; }

/* ------------------------------------------------------------------ compare */
.cmp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 0 0 28px; }
.cmp-head h1 { font-size: 54px; line-height: 1.05; margin: 0 0 8px; }
.cmp-head p { margin: 0; color: var(--ink-2); }
@media (max-width: 599px) { .cmp-head h1 { font-size: 31px; } }
.cmpwrap { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow-x: auto; margin: 0 0 24px; }
.cmp { display: grid; grid-template-columns: 260px repeat(var(--n, 3), minmax(0, 1fr)); min-width: 960px; }
.cmp > div { padding: 18px 24px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.cmp > div + div { border-inline-start: 1px solid var(--line-2); }
.cmp .lab { color: var(--ink-2); font-size: 16px; border-inline-start: 0 !important; }
.cmp .lab small { color: var(--muted); font-size: 13px; }
.cmp .lab .ic { width: 18px; height: 18px; vertical-align: -3px; margin-inline-end: 6px; }
.cmp .sec { grid-column: 1 / -1; background: var(--surface-2); font-family: var(--font-display); font-weight: 700; font-size: 18px; border-inline-start: 0 !important; }
.cmp .sec small { font-family: var(--font-ui); font-weight: 400; font-size: 14px; color: var(--muted); margin-inline-start: 8px; }
.cmp .hcell { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cmp .hcell a { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.1; text-decoration: none; }
.cmp .hcell .rm { border: 0; background: transparent; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.cmp .hcell .rm:hover { background: var(--tint); color: var(--ink); }
.cmp .cell .v { display: block; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp .cell .vbar { height: 6px; border-radius: 999px; background: var(--line-2); margin-top: 8px; overflow: hidden; }
.cmp .cell .vbar i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.cmp .cell .vbar.gold i { background: var(--accent); }
.cmp .cell .cl { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.cmp .cell .small { font-size: 14px; }
.cmp .cell .cl-facts { margin-top: 10px; font-size: 14px; line-height: 1.5; }

/* ------------------------------------------------------------------ matcher */
.mhead { margin: 0 0 28px; }
.mhead h1 { font-size: 54px; line-height: 1.05; margin: 0 0 14px; }
.mhead p { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 50em; }
@media (max-width: 599px) { .mhead h1 { font-size: 31px; } .mhead p { font-size: 17px; } }
.mlayout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.mform { flex: 1 1 360px; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-up); }
@media (max-width: 899px) { .mform { max-width: none; } }
#mresBox { flex: 999 1 560px; min-width: 0; }
.q { margin: 0 0 24px; border: 0; padding: 0; min-width: 0; }
.q legend { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 12px; padding: 0; }
.q legend .qn { width: 26px; height: 26px; border-radius: 50%; background: var(--tint); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; cursor: pointer; background: var(--surface); font-size: 15px; min-height: 44px; transition: background .15s ease-out, border-color .15s ease-out; }
.opts label:hover { border-color: var(--ink); }
.opts label.any { border-style: dashed; color: var(--ink-2); }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opts .ck { display: none; width: 16px; height: 16px; }
.opts label:has(input:checked) { background: var(--ink); color: var(--on-ink); border-color: var(--ink); border-style: solid; font-weight: 700; }
.opts label:has(input:checked) .ck { display: inline-block; }
.opts label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.mform .btn.block { margin-top: 6px; }
.mform .reset { display: block; text-align: center; margin: 14px 0 0; font-size: 15px; }
.msum { font-size: 17px; margin: 6px 0 18px; color: var(--ink-2); }
.msum b { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.res { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; margin: 0 0 18px; }
.res-h { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-start; justify-content: space-between; }
.res-t { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.rank { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-family: var(--font-display); font-weight: 700; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.res h2 { font-size: 30px; line-height: 1.1; margin: 0; }
.res h2 a { text-decoration: none; }
.res .rmeta { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.scoreb { text-align: start; min-width: 140px; }
.scoreb .cap { font-size: 13px; }
.score { display: block; font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.meter { width: 140px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transform-origin: left center; animation: fillx .4s ease-out both; }
[dir="rtl"] .meter i { transform-origin: right center; }
.crits { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; padding: 0; list-style: none; }
.crits li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; min-height: 34px; }
.crits li.ok { background: var(--ok-bg); color: var(--ok-ink); }
.crits li.no { border: 1.5px dashed var(--line-strong); color: var(--ink-2); }
.crits .ic { width: 14px; height: 14px; }
.why { margin: 8px 0 0; padding-inline-start: 20px; font-size: 15px; color: var(--ink-2); }
.why li { margin: 4px 0; }
.hoodchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.hoodchips a { background: var(--tint); border-radius: 999px; padding: 6px 12px; text-decoration: none; color: var(--ink); font-weight: 600; min-height: 34px; display: inline-flex; align-items: center; }
.res .row.acts { margin-top: 18px; }
#mmore { display: flex; justify-content: center; margin: 6px 0 18px; }
.scorenote { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 22px; margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }
.scorenote summary { cursor: pointer; font-weight: 700; color: var(--ink); min-height: 32px; }
@media (max-width: 599px) { .res { padding: 20px 18px; border-radius: 22px; } .res h2 { font-size: 24px; } .mform { padding: 20px 18px; } }

/* ------------------------------------------------------------------ pages: method, sources, not found */
.doc { max-width: 820px; }
.doc h1 { font-size: 54px; line-height: 1.05; margin: 8px 0 18px; }
.doc h2 { font-size: 28px; margin: 36px 0 10px; }
.doc p, .doc li { max-width: 72ch; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); border-radius: 16px; overflow: hidden; }
.doc td, .doc th { border-bottom: 1px solid var(--line-2); padding: 10px 12px; text-align: start; vertical-align: top; }
.doc th { border-bottom: 1px solid var(--line); }
@media (max-width: 599px) { .doc h1 { font-size: 31px; } .doc h2 { font-size: 23px; } }

/* ------------------------------------------------------------------ footer */
footer { background: var(--foot-bg); color: var(--foot-text); margin-top: 64px; }
.foot { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gut) 40px; font-size: 15px; }
.foot a { color: var(--foot-text); }
.foot a:focus-visible { outline-color: #fff; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 10px; }
.foot-brand .logo { width: 36px; height: 36px; }
.foot h2 { color: #fff; font-size: 16px; margin: 0 0 12px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 4px; }
.foot li a { display: inline-flex; align-items: center; min-height: 32px; }
.foot hr { border: 0; border-top: 1px solid var(--foot-rule); margin: 32px 0 20px; }
.foot p { margin: 0 0 10px; max-width: 120ch; }
.foot #footDisclaimer b { color: #fff; }
.foot .fc { color: var(--foot-muted); font-size: 14px; }
@media (max-width: 899px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-cols > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-cols { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ first-visit modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 27, 45, .62); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); color: var(--ink); border-radius: 28px; max-width: 560px; width: 100%; padding: 28px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-up); }
.modal .handle { display: none; width: 44px; height: 5px; border-radius: 999px; background: var(--line-strong); margin: -14px auto 16px; }
.modal .mh { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.modal .mh .itile { background: var(--tint); border: 0; }
.modal h2 { margin: 0; font-size: 28px; }
.modal p { margin: 0 0 12px; color: var(--ink-2); }
.modal ul.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.modal ul.checks li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: 16px; }
.modal ul.checks .ic { width: 18px; height: 18px; margin-top: 3px; }
.modal .mlinks { display: flex; gap: 18px; margin: 0 0 16px; font-size: 15px; font-weight: 600; }
.modal .btn { width: 100%; min-height: 56px; }
@media (max-width: 599px) {
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { border-radius: 28px 28px 0 0; max-height: 92vh; padding: 28px 20px 24px; }
  .modal .handle { display: block; }
}
.print-only { display: none; }

/* ------------------------------------------------------------------ motion (respects reduced motion) */
.flydot { position: fixed; z-index: 120; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fillx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
main.enter .hero2, main.enter .kpis { animation: rise .25s cubic-bezier(.2,.7,.3,1) both; }
main.enter .charcard .stack span, main.enter .jnbar span { transform-origin: left center; animation: fillx .4s ease-out .15s both; }
[dir="rtl"] main.enter .charcard .stack span, [dir="rtl"] main.enter .jnbar span { transform-origin: right center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ static legal pages + contact form */
.langs { display: flex; flex-wrap: wrap; gap: 4px; margin-inline-start: auto; }
.langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; text-decoration: none; font-size: 15px; border-radius: 999px; color: var(--ink-2); }
.langs a:hover { background: var(--surface-2); }
.langs a[aria-current="page"] { background: var(--ink); color: var(--on-ink); font-weight: 700; }
.legal main { min-height: 50vh; }
.legal .doc { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px 40px; max-width: 900px; }
@media (max-width: 599px) { .legal .doc { padding: 22px 18px; border-radius: 22px; } }
.cform { max-width: 680px; margin: 22px 0 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.cform fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.cform legend { font-weight: 700; margin: 0 0 8px; padding: 0; }
.cform .opts label { position: static; }
.cform .opts input { position: static; opacity: 1; width: auto; height: auto; accent-color: var(--ink); }
.cform > label { display: block; font-weight: 700; margin: 16px 0 6px; }
.cform input[type="text"], .cform input[type="email"], .cform textarea { display: block; width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 10px 14px; min-height: 48px; }
.cform textarea { min-height: 160px; resize: vertical; }
.cform .hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
#cf-status { min-height: 1.5em; font-weight: 700; margin: 8px 0 0; }
#cf-status.ok { color: var(--ok-ink); }
#cf-status.err { color: var(--low-ink); }

/* ------------------------------------------------------------------ print */
@media print {
  :root { --page: #fff; --surface: #fff; --surface-2: #fff; --tint: #f2f2f2; --ink: #000; --ink-2: #222; --muted: #444; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .top, footer, .actions, .tray, .pnav, .mapwrap, .layers, .radius, .mc-head .segc, .no-print, .skip, .modal-bg, .search, #shabbatBox, .svc-more { display: none !important; }
  main { max-width: none; padding: 0; }
  .card, .kpi, .fine, .res, .cmpwrap, .ctile { box-shadow: none !important; border: 1px solid #999; break-inside: avoid; }
  .hero2, .grid2, .contacts { display: block; }
  .print-only { display: block; }
  .notice { background: #fff; border: 1px solid #000; }
  a { color: #000; text-decoration: none; }
  .stack span, .jnbar span, .vrow .vb i, .meter10 i, .dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ------------------------------------------------------------------ small shared bits */
[dir="rtl"] .ic.flip { transform: scaleX(-1); }
.hero-text, .mc-legend { min-width: 0; }
#peopleCard, #originsCard, #servicesCard, #contactsCard { scroll-margin-top: 150px; }
.charcard .nb a { color: var(--ink-2); }
.cmp .cell .v .dot { vertical-align: 1px; }
.svc li:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.mc-legend .src { margin-top: 18px; }
.badge[hidden] { display: none; }
.svc-group h3 { display: block; }
@media (max-width: 599px) { .segc { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; } .segc button { flex: none; } }
.cmp .cell .vbar { display: block; }
.cmp .cell .vbar i { height: 6px; }
ul.feat { list-style: none; margin: 0; padding: 0; }
.charcard h2.lab { font-family: var(--font-ui); font-weight: 400; font-size: 15px; line-height: 1.5; letter-spacing: 0; color: var(--ink-2); margin: 0 0 10px; }
@media (min-width: 1101px) { .mapcard { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

/* map: hover label of a statistical area (desktop) */
.sa-tip .maplibregl-popup-content { padding: 8px 12px; font-size: 14px; line-height: 1.4; box-shadow: 0 6px 18px rgba(15, 27, 45, .22); }
.sa-tip .tip-hint { color: #5B6678; font-size: 12px; }
#mapHint { margin: 10px 0 0; }

/* ------------------------------------------------------------------ static place pages and the list of places (pipeline/build_pages.py) */
.splist { columns: 3 220px; column-gap: 32px; list-style: none; margin: 0; padding: 0; }
.splist li { break-inside: avoid; margin: 0 0 8px; }
.sp-about p { font-size: 17px; max-width: 70ch; }
.sp-lead { font-size: 18px; color: var(--ink-2); max-width: 80ch; margin: -12px 0 24px; }
.sp-more { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
