/* Aliyah Atlas — "Street Plate" design system.
   Chrome has no hue: ink, plate white and limestone. Every saturated mark on screen is data (the CBS lifestyle ramp).
   Logical properties throughout, so Hebrew mirrors cleanly. */
:root {
  color-scheme: light;
  --page: #f1f1ee;
  --plate: #fcfcfb;
  --ink: #15171c;
  --ink-2: #3a3e47;
  --muted: #4a4e57;
  --faint: #5d6169;
  --stone: #e4ded2;
  --stone-2: #d6cfbf;
  --rule: rgba(21, 23, 28, .16);
  --rule-2: rgba(21, 23, 28, .32);
  --focus: #15171c;
  --ok: #0b6b2c;
  --differ: #8a4b00;
  --font-display: 'secular-one', 'Arial Rounded MT Bold', 'Segoe UI', system-ui, sans-serif;
  --font-ui: 'miriam-libre', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #121316; --plate: #1d1f24; --ink: #f2f1ee; --ink-2: #d6d4cf; --muted: #b4b1aa; --faint: #9a978f;
    --stone: #3b382f; --stone-2: #4a463b; --rule: rgba(242, 241, 238, .16); --rule-2: rgba(242, 241, 238, .34); --focus: #f2f1ee;
    --ok: #6fd18f; --differ: #f0a85a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #121316; --plate: #1d1f24; --ink: #f2f1ee; --ink-2: #d6d4cf; --muted: #b4b1aa; --faint: #9a978f;
  --stone: #3b382f; --stone-2: #4a463b; --rule: rgba(242, 241, 238, .16); --rule-2: rgba(242, 241, 238, .34); --focus: #f2f1ee;
  --ok: #6fd18f; --differ: #f0a85a;
}

* { 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: 16px; 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 { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
h3 { font-size: 17px; line-height: 1.3; margin: 18px 0 6px; color: var(--ink); }
.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(--plate); padding: 8px 12px; z-index: 50; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dot { width: 11px; height: 11px; border-radius: 2px; display: inline-block; flex: none; }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 30; background: var(--page); border-bottom: 2px solid var(--ink); }
.top-in { max-width: 1160px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { width: 40px; height: 30px; flex: none; }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; color: var(--muted); font-size: 13px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 8px 10px; font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule-2); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.tools { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--plate); }
.seg button { border: 0; background: transparent; padding: 5px 10px; cursor: pointer; font-size: 14px; min-height: 34px; min-width: 40px; }
.seg button + button { border-inline-start: 1px solid var(--rule-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--plate); }
.menu-btn { display: none; border: 2px solid var(--ink); background: var(--plate); border-radius: var(--r); padding: 6px 12px; min-height: 40px; cursor: pointer; }
@media (max-width: 900px) {
  .top-in { flex-wrap: wrap; }
  .menu-btn { display: inline-block; margin-inline-start: auto; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--rule); }
  .tools { width: 100%; justify-content: space-between; display: none; padding: 8px 0 4px; }
  .tools.open { display: flex; }
  .brand small { max-width: 56vw; }
}

/* ------------------------------------------------------------------ layout */
main { max-width: 1160px; margin: 0 auto; padding: 18px 16px 8px; min-height: 60vh; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; margin-top: 8px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: minmax(0, 1fr); gap: 0; } }
/* sections sit on the open page; a short ink bar marks each heading */
.card { margin: 0 0 30px; min-width: 0; }
.card > h2 { padding-top: 10px; border-top: 2px solid var(--ink); }
.notice { background: var(--stone); color: var(--ink); padding: 10px 14px; font-size: 14px; margin: 12px 0; max-width: 78ch; border-inline-start: 0; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; font-size: 15px; margin: 0; }
.kv dt { color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid var(--rule); }
.kv dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.src { font-size: 13px; color: var(--faint); margin-top: 10px; max-width: 75ch; }

/* ------------------------------------------------------------------ buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--ink); background: var(--plate); color: var(--ink); border-radius: var(--r); padding: 8px 14px; cursor: pointer; text-decoration: none; font-size: 15px; font-weight: 600; min-height: 44px; transition: transform .08s ease, box-shadow .08s ease; }
.btn:hover { background: var(--stone); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 0 var(--rule-2); }
.btn.primary { background: var(--ink); color: var(--plate); }
.btn.primary:hover { background: var(--ink-2); }
.btn.primary[aria-pressed="true"] { background: var(--plate); color: var(--ink); }
.btn.quiet { border-color: transparent; background: transparent; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; padding-inline: 8px; }
.btn.quiet:hover { background: transparent; text-decoration-thickness: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--stone-2); border-radius: 3px; padding: 5px 10px; font-size: 14px; background: var(--stone); color: var(--ink); text-decoration: none; cursor: pointer; min-height: 44px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); color: var(--plate); border-color: var(--ink); }

/* ------------------------------------------------------------------ the plate (signature element) */
.plate { background: var(--plate); border: 2px solid var(--ink); border-radius: var(--r); padding: 4px; }
.plate-in { border: 1px solid var(--ink); border-radius: 2px; padding: 14px 18px 0; }
.pl-he { margin: 0; font-family: var(--font-display); font-size: 36px; line-height: 1.12; direction: rtl; text-align: right; }
.pl-name { margin: 2px 0 0; font-size: 32px; line-height: 1.12; }
.pl-sub { margin: 2px 0 12px; color: var(--muted); font-size: 15px; }
[dir="rtl"] .pl-latin { direction: ltr; text-align: left; font-family: var(--font-display); font-size: 26px; line-height: 1.15; margin: 2px 0 0; }
.pl-panel { margin: 0 -18px; background: var(--stone); border-top: 2px solid var(--ink); padding: 12px 18px 14px; }
.pl-panel .lab { font-size: 14px; color: var(--ink-2); }
.pl-panel .big { font-family: var(--font-display); font-size: 30px; line-height: 1.18; margin: 2px 0 4px; display: flex; align-items: flex-start; gap: 10px; }
.pl-panel .big .dot { width: 14px; height: 14px; margin-top: .42em; }
.pl-panel .basis { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .pl-he { font-size: 30px; }
  .pl-name { font-size: 26px; }
  [dir="rtl"] .pl-latin { font-size: 22px; }
  .pl-panel .big { font-size: 25px; }
  .plate-in { padding: 12px 14px 0; }
  .pl-panel { margin: 0 -14px; padding: 12px 14px 14px; }
}
.after-plate { margin: 12px 2px 0; }
.after-plate .scope { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.after-plate .nb { font-size: 13px; color: var(--muted); margin: 8px 0 0; max-width: 75ch; }
.cross { margin-top: 10px; font-size: 15px; max-width: 78ch; }
.agree { color: var(--ok); font-weight: 700; }
.differ { color: var(--differ); font-weight: 700; }
.lowconf { color: var(--differ); font-size: 14px; margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 26px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 2px 0 10px; }
.crumbs a { color: var(--muted); }
/* stacked lifestyle bar: data, so it keeps its colours; 2px surface gaps between fills */
.stack { display: flex; height: 16px; overflow: hidden; gap: 2px; margin: 12px 0 4px; }
.stack span { display: block; height: 100%; min-width: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); margin: 6px 0 10px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }

/* ------------------------------------------------------------------ home */
.hero { padding: 26px 0 10px; max-width: 780px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.08; margin: 0 0 10px; }
.hero > p { font-size: 18px; color: var(--ink-2); margin: 0 0 18px; max-width: 62ch; }
.search { position: relative; max-width: 780px; }
.search .plate-in { padding: 10px 16px 12px; }
.search .pl-he { font-size: 24px; min-height: 1.15em; color: var(--muted); }
.search .pl-he.has { color: var(--ink); }
.search input { width: 100%; border: 0; background: transparent; font-family: var(--font-display); font-size: 26px; padding: 4px 0 2px; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--faint); opacity: 1; font-family: var(--font-ui); font-size: 20px; }
.search .plate:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.sugg { list-style: none; margin: 0; padding: 10px 0 8px; position: absolute; inset-inline: 0; top: 100%; z-index: 20; max-height: 62vh; overflow-y: auto; border-inline-start: 4px solid var(--ink); padding-inline-start: 10px; background: var(--page); box-shadow: 0 10px 0 var(--page); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.sugg li { position: relative; display: flex; gap: 10px; align-items: baseline; justify-content: space-between; margin: 0 0 6px; padding: 9px 30px 9px 14px; background: var(--plate); border: 2px solid var(--ink); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); animation: slideoff .16s cubic-bezier(.2,.7,.3,1) both; }
[dir="rtl"] .sugg li { padding: 9px 14px 9px 30px; clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); }
.sugg li:nth-child(2) { animation-delay: .03s; } .sugg li:nth-child(3) { animation-delay: .06s; } .sugg li:nth-child(4) { animation-delay: .09s; }
.sugg li:nth-child(5) { animation-delay: .12s; } .sugg li:nth-child(n+6) { animation-delay: .15s; }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--stone); }
.sugg li.muted { clip-path: none; border-style: dashed; cursor: default; animation: none; }
.sugg .ty { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sugg .nm { font-family: var(--font-display); font-size: 18px; }
@keyframes slideoff { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
[dir="rtl"] .sugg li { animation-name: slideoff-rtl; }
@keyframes slideoff-rtl { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 6px; max-width: 780px; }
@media (max-width: 600px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini { display: block; text-decoration: none; color: var(--ink); background: var(--stone); border-radius: 3px; min-height: 44px; }
.mini span { display: block; padding: 6px 10px 7px; }
.mini .he { font-family: var(--font-display); font-size: 17px; line-height: 1.15; direction: rtl; text-align: right; }
.mini .la { font-family: var(--font-display); font-size: 15px; line-height: 1.2; }
.mini:hover { background: var(--stone-2); }
.status { font-size: 14px; color: var(--muted); max-width: 78ch; margin: 14px 0 0; }
.homemap { margin: 30px 0; }
.homemap h2, .national h2 { padding-top: 10px; border-top: 2px solid var(--ink); flex: 1 1 auto; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 34px 0; }
.how h3 { margin: 0 0 4px; font-size: 18px; }
.how p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 46ch; }
@media (max-width: 900px) { .how { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.national { margin: 30px 0; max-width: 780px; }

/* ------------------------------------------------------------------ tables & bars */
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th { text-align: start; font-size: 13px; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 2px solid var(--ink); }
.ptable td { padding: 7px 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.ptable td.n { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable .bar { height: 8px; min-width: 2px; }
.ptable .pname { display: flex; gap: 8px; align-items: center; min-width: 0; flex-wrap: wrap; }
.ptable .letters { font-size: 12px; color: var(--ink-2); border: 1px solid var(--rule-2); border-radius: 2px; padding: 0 4px; white-space: nowrap; font-family: var(--font-display); }
.ptable button.x { border: 1px solid var(--rule-2); background: var(--plate); color: var(--ink); cursor: pointer; padding: 0 6px; font-size: 13px; border-radius: 2px; line-height: 1.5; }
.ptable button.x[aria-expanded="true"] { background: var(--ink); color: var(--plate); }
.explain { font-size: 14px; color: var(--ink-2); background: var(--stone); padding: 7px 9px; margin-top: 6px; max-width: 60ch; }
.barrow { display: grid; grid-template-columns: minmax(90px, 40%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 15px; padding: 4px 0; }
.barrow .track { height: 10px; box-shadow: inset 0 -1px 0 var(--rule); }
.barrow .fill { height: 100%; background: var(--ink-2); }
.barrow .val { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 52px; text-align: end; }
.svc { list-style: none; margin: 0; padding: 0; }
.svc li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.svc li .nm { min-width: 0; }
.svc li .d { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: end; }
.tag { font-size: 12px; padding: 1px 6px; background: var(--stone); color: var(--ink); margin-inline-start: 5px; white-space: nowrap; border-radius: 2px; }
.radius { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 8px 0; font-size: 14px; }
.fine { font-size: 13px; color: var(--muted); border-top: 2px solid var(--ink); margin-top: 26px; padding-top: 10px; }
.fine p { margin: 4px 0; max-width: 75ch; }

/* ------------------------------------------------------------------ map */
.mapwrap { position: relative; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--stone); }
.map { width: 100%; height: 420px; }
.mapwrap.tall .map { height: 540px; }
@media (max-width: 600px) { .map, .mapwrap.tall .map { height: 360px; } }
.maperr { padding: 24px; font-size: 15px; color: var(--ink-2); }
.layers { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; align-items: center; }
.maplibregl-popup-content { color: #15171c; font-family: var(--font-ui); font-size: 14px; max-width: 280px; border-radius: 3px; }
.maplibregl-ctrl-attrib { font-size: 11px; }
#shabbatBox { margin: 6px 0 10px; font-size: 15px; }
#shabbatBox p { margin: 6px 0; max-width: 70ch; }

/* ------------------------------------------------------------------ compare / matcher */
.cmp { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
.cmp .cell { background: var(--plate); border: 1px solid var(--rule-2); padding: 10px 12px; min-width: 0; font-size: 14px; }
.cmp .cell b { display: block; font-size: 15px; }
.cmp .cell .kv { font-size: 14px; }
.cmp-h { font-family: var(--font-display); font-size: 18px; margin: 22px 0 8px; padding-top: 8px; border-top: 2px solid var(--ink); }
.q { margin: 0 0 18px; border: 0; padding: 0; }
.q legend { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--stone-2); border-radius: 3px; padding: 7px 12px; cursor: pointer; background: var(--stone); font-size: 15px; min-height: 44px; }
.opts input { accent-color: var(--ink); margin: 0; }
.opts label:has(input:checked) { background: var(--ink); color: var(--plate); border-color: var(--ink); }
.opts label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
#mform { padding: 16px; background: var(--plate); border: 2px solid var(--ink); border-radius: var(--r); }
.res { border-top: 2px solid var(--ink); padding: 12px 0 14px; margin: 0; }
.res h3 { margin: 0; font-size: 21px; }
.res h3 a { text-decoration: none; }
.score { font-family: var(--font-display); font-size: 26px; font-variant-numeric: tabular-nums; }
.why { margin: 8px 0 0; padding-inline-start: 18px; font-size: 15px; color: var(--ink-2); }
.why li { margin: 3px 0; }

/* ------------------------------------------------------------------ pages / footer / modal */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.1; margin: 14px 0 14px; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; padding-top: 10px; border-top: 2px solid var(--ink); }
.doc p, .doc li { max-width: 72ch; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc td, .doc th { border-bottom: 1px solid var(--rule); padding: 7px 6px; text-align: start; vertical-align: top; }
.doc th { border-bottom: 2px solid var(--ink); }
footer { border-top: 2px solid var(--ink); background: var(--page); margin-top: 28px; }
.foot { max-width: 1160px; margin: 0 auto; padding: 16px; font-size: 14px; color: var(--ink-2); }
.foot p { margin: 5px 0; max-width: 90ch; }
.foot a { color: var(--ink-2); }
.modal-bg { position: fixed; inset: 0; background: rgba(12, 13, 16, .6); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--plate); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); max-width: 560px; width: 100%; padding: 4px; max-height: 90vh; overflow-y: auto; }
.modal > * { margin-inline: 16px; }
.modal h2 { margin-top: 14px; font-size: 24px; }
.modal ul { padding-inline-start: 20px; margin-block: 8px 12px; font-size: 15px; }
.modal li { margin: 4px 0; }
.modal .row { justify-content: flex-end; margin: 0; padding: 12px 16px; background: var(--stone); border-top: 2px solid var(--ink); margin-inline: 0; }
.print-only { display: none; }

/* ------------------------------------------------------------------ motion (respects reduced motion) */
.explain { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .22s cubic-bezier(.2,.7,.3,1), opacity .18s ease; }
.explain.open { max-height: 14em; opacity: 1; }
.flydot { position: fixed; z-index: 120; width: 12px; height: 12px; border-radius: 2px; background: var(--ink); pointer-events: none; }
@keyframes seat { 0% { opacity: 0; transform: translateY(-6px); } 70% { opacity: 1; transform: translateY(1px); } 100% { transform: none; } }
@keyframes panel { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: 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 #placePlate { animation: seat .22s cubic-bezier(.2,.7,.3,1) both; }
main.enter #placePlate .pl-panel { animation: panel .24s cubic-bezier(.2,.7,.3,1) .12s both; }
main.enter .after-plate .stack span { transform-origin: left center; animation: fillx .55s cubic-bezier(.2,.7,.3,1) .26s both; }
[dir="rtl"] main.enter .after-plate .stack span { transform-origin: right center; }
main.enter .grid2 { animation: rise .25s cubic-bezier(.2,.7,.3,1) .1s both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !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 10px; text-decoration: none; font-size: 15px; border: 2px solid transparent; border-radius: var(--r); color: var(--ink-2); }
.langs a:hover { border-color: var(--rule-2); color: var(--ink); }
.langs a[aria-current="page"] { border-color: var(--ink); background: var(--plate); color: var(--ink); }
.legal main { min-height: 50vh; }
.cform { max-width: 680px; margin: 22px 0 10px; padding: 16px; background: var(--plate); border: 2px solid var(--ink); border-radius: var(--r); }
.cform fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.cform legend { font-weight: 600; margin: 0 0 8px; padding: 0; }
.cform .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.cform > label { display: block; font-weight: 600; margin: 14px 0 4px; }
.cform input[type="text"], .cform input[type="email"], .cform textarea { display: block; width: 100%; font: inherit; color: var(--ink); background: var(--page); border: 2px solid var(--ink); border-radius: var(--r); padding: 9px 10px; min-height: 44px; }
.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: 600; margin: 8px 0 0; }
#cf-status.ok { color: var(--ok); }
#cf-status.err { color: var(--differ); }
#reportLink { margin: 10px 0 0; }

/* ------------------------------------------------------------------ print */
@media print {
  :root { --page: #fff; --plate: #fff; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .top, footer, .actions, .mapwrap, .layers, .radius, .tabs, .no-print, .skip, .modal-bg, .search, #shabbatBox { display: none !important; }
  main { max-width: none; padding: 0; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .card { break-inside: avoid; }
  .print-only { display: block; }
  .notice { background: #fff; border: 1px solid #000; }
  a { color: #000; text-decoration: none; }
}

/* character estimate: confidence + CBS figures */
.pl-panel .conf { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.cbsline { font-size: 14px; color: var(--muted); margin: 6px 0 0; max-width: 78ch; }
.lifelist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.lifelist li { display: inline-flex; align-items: center; gap: 7px; }
.lifelist b { font-variant-numeric: tabular-nums; }

/* estimated Jewish / non-Jewish share (inside the plate panel) */
:root { --jn-j: #2f3d52; --jn-n: #b5761a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --jn-j: #c4d1e3; --jn-n: #e3a24a; } }
:root[data-theme="dark"] { --jn-j: #c4d1e3; --jn-n: #e3a24a; }
.pl-panel .jn { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule-2); }
.jnbar { display: flex; height: 14px; gap: 2px; margin: 8px 0 6px; overflow: hidden; }
.jnbar span { display: block; height: 100%; }
.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: 4px 22px; font-size: 17px; }
.jnlist li { display: flex; align-items: center; gap: 7px; }
.jnlist b { font-variant-numeric: tabular-nums; font-size: 20px; }
.jnnote { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.svc .gm { font-size: 12px; margin-inline-start: 6px; white-space: nowrap; }
@media print { .jnbar span { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
