/* Self-hosted fonts (SIL Open Font License). */
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/frank-ruhl-libre-hebrew-400-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/frank-ruhl-libre-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/frank-ruhl-libre-hebrew-500-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/frank-ruhl-libre-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/frank-ruhl-libre-hebrew-700-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/frank-ruhl-libre-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/frank-ruhl-libre-hebrew-900-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/frank-ruhl-libre-latin-900-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/assistant-hebrew-400-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/assistant-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/assistant-hebrew-600-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/assistant-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/assistant-hebrew-700-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/assistant-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* No signature, no vote. Palette from the Israeli ballot: envelope blue, slip white, ink. */
/* Cyrillic glyphs (Russian pages) come from PT Serif and PT Sans under the same family names. */
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/pt-serif-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('/assets/fonts/pt-serif-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/pt-sans-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('/assets/fonts/pt-sans-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

/* Ethiopic glyphs (Amharic pages) come from Noto Serif / Noto Sans Ethiopic under the same family names. */
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/noto-serif-ethiopic-ethiopic-400-normal.woff2') format('woff2'); unicode-range: U+1200-1399,U+2D80-2DDE,U+AB01-AB2E,U+1E7E0-1E7FE; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('/assets/fonts/noto-serif-ethiopic-ethiopic-700-normal.woff2') format('woff2'); unicode-range: U+1200-1399,U+2D80-2DDE,U+AB01-AB2E,U+1E7E0-1E7FE; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 800 900; font-display: swap; src: url('/assets/fonts/noto-serif-ethiopic-ethiopic-900-normal.woff2') format('woff2'); unicode-range: U+1200-1399,U+2D80-2DDE,U+AB01-AB2E,U+1E7E0-1E7FE; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/noto-sans-ethiopic-ethiopic-400-normal.woff2') format('woff2'); unicode-range: U+1200-1399,U+2D80-2DDE,U+AB01-AB2E,U+1E7E0-1E7FE; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('/assets/fonts/noto-sans-ethiopic-ethiopic-700-normal.woff2') format('woff2'); unicode-range: U+1200-1399,U+2D80-2DDE,U+AB01-AB2E,U+1E7E0-1E7FE; }

:root {
  --paper: #fafaf7;
  --ink: #14203a;
  --muted: #535b6e;
  --blue: #2e57a8;
  --blue-deep: #1d3c7d;
  --blue-wash: #e8eef8;
  --stone: #ebe9e3;
  --line: #d6d3ca;
  --olive: #56682a;
  --red: #a52a2a;
  --red-wash: #f6e7e5;
  --serif: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --sans: 'Assistant', 'Segoe UI', Arial, sans-serif;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
[lang='en'] body, body[lang='en'] { line-height: 1.62; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.22em; font-weight: 700; }
p { margin: 0 0 1em; }
q { quotes: '״' '״'; }
[lang='en'] q { quotes: '“' '”'; }
cite { font-style: normal; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 66ch; }
.lead { font-size: 1.14em; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 22px; height: 28px; }
.brand svg.flag { width: 30px; height: auto; border: 1px solid var(--line); }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav .lang { color: var(--muted); font-weight: 400; }
.nav .to-sign { color: var(--blue-deep); }
@media (max-width: 720px) {
  .nav a:not(.to-sign):not(.lang) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1.08rem;
  background: var(--blue); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  padding: 14px 26px; border-radius: 3px; box-shadow: 0 2px 0 var(--blue-deep);
}
.btn:hover { background: var(--blue-deep); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.link-quiet { font-family: var(--sans); font-weight: 600; color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 1.6rem + 5.2vw, 5.4rem); font-weight: 900; line-height: 1.02; margin-bottom: 0.35em; }
.hero .lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.counter { margin-top: 36px; font-family: var(--sans); max-width: 460px; }
.counter-line { display: flex; align-items: baseline; gap: 10px; }
.counter b { font-size: 2.2rem; font-weight: 700; color: var(--olive); font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--stone); border-radius: 4px; overflow: hidden; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; width: 0; background: var(--olive); border-radius: 4px; transition: width 1s ease-out; min-width: 3px; }
.counter small { color: var(--muted); font-size: 0.95rem; line-height: 1.45; display: block; }
.slip-art { max-width: 380px; width: 100%; justify-self: center; }
.slip-art .slip { animation: draw 1.3s cubic-bezier(.2,.7,.2,1) 0.35s both; }
@keyframes draw { from { transform: translateY(150px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .slip-art .slip { animation: none; } .bar i { transition: none; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .slip-art { max-width: 260px; order: -1; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.stone { background: var(--stone); }
.section.ink { background: var(--ink); color: #f1f2f5; }
.section.ink a { color: #c9d6f2; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }

.why p:first-of-type { font-size: 1.18em; }

/* ---------- record: strip ---------- */
.strip { margin: 8px 0 10px; }
.strip svg { width: 100%; height: auto; overflow: visible; }
.strip text { font-family: var(--sans); font-size: 13px; fill: var(--muted); }
.strip-caption { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); margin-bottom: 40px; }

/* ---------- record: lanes ---------- */
.lanes-head, .row { display: grid; grid-template-columns: 1fr 132px 1fr; }
.lanes-head { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--muted); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.lanes-head span:last-child { grid-column: 3; }
.rows { position: relative; list-style: none; margin: 0; padding: 0; }
.rows::before { /* the spine */
  content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: calc(50% - 1px); width: 2px; background: var(--ink); opacity: 0.85;
}
.row { position: relative; padding-block: 26px; border-bottom: 1px solid var(--line); align-items: start; }
.row .card { background: var(--paper); border: 1px solid var(--line); padding: 18px 20px 14px; border-radius: 2px; position: relative; }
.row .voted { border-inline-start: 4px solid var(--blue); }
.row .got { border-inline-start: 4px solid var(--red); background: #fff; }
.row .card p { margin: 0 0 0.6em; font-size: 0.98em; line-height: 1.6; }
.row .year { justify-self: center; align-self: center; position: relative; z-index: 1; background: var(--stone); padding: 6px 4px; text-align: center; font-family: var(--serif); font-weight: 900; font-size: 1.12rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.row .year .mark { display: block; margin: 6px auto 0; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--stone); }
.row .arrow { position: absolute; top: 50%; height: 2px; background: var(--red); inset-inline-start: calc(50% + 28px); width: calc(66px - 28px); }
.row .arrow::after { content: ''; position: absolute; inset-inline-end: -2px; top: -5px; border: 6px solid transparent; border-inline-start: 8px solid var(--red); }
[dir='rtl'] .row .arrow::after { border-inline-start: 8px solid var(--red); }
.src { font-family: var(--sans); font-size: 0.86rem; line-height: 1.45; color: var(--muted); margin: 0; }
.src a { color: var(--blue-deep); }
.src a::after { content: ' ↗'; font-size: 0.85em; }
.broken-tag { display: inline-block; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; color: var(--red); background: var(--red-wash); padding: 1px 8px; border-radius: 2px; margin-bottom: 8px; }
@media (max-width: 820px) {
  .lanes-head { display: none; }
  .rows::before { inset-inline-start: 11px; }
  .row { grid-template-columns: 1fr; gap: 10px; padding-inline-start: 34px; }
  .row .year { justify-self: start; background: none; padding: 0; order: -1; position: static; }
  .row .year .mark { position: absolute; inset-inline-start: 5px; top: 30px; margin: 0; box-shadow: 0 0 0 4px var(--stone); }
  .row .arrow { display: none; }
  .row .voted::before { content: attr(data-lane); display: block; font-family: var(--sans); font-size: 0.82rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 4px; }
  .row .got::before { content: attr(data-lane); display: block; font-family: var(--sans); font-size: 0.82rem; font-weight: 700; color: var(--red); margin-bottom: 4px; }
}

/* ---------- conditions ---------- */
.conditions ol { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; gap: 0; }
.conditions li { counter-increment: c; display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding-block: 28px; border-top: 1px solid var(--line); }
.conditions li:last-child { border-bottom: 1px solid var(--line); }
.conditions li::before { content: counter(c); font-family: var(--serif); font-weight: 900; font-size: 4.4rem; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px var(--blue); }
.conditions h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); }
.conditions p { color: var(--muted); max-width: 64ch; margin: 0; }
@media (max-width: 600px) { .conditions li { grid-template-columns: 52px 1fr; gap: 12px; } .conditions li::before { font-size: 3rem; } }

/* ---------- teeth ---------- */
.teeth-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.teeth-list h3 { margin-bottom: 0.25em; }
.teeth-list > div { padding-block: 18px; border-top: 1px solid rgba(255,255,255,0.18); }
.teeth-list p { margin: 0; color: #cfd4df; }
.court { background: #fff; color: var(--ink); padding: 26px 28px; border-top: 6px solid var(--red); }
.court ul { margin: 0; padding-inline-start: 1.1em; }
.court li { margin-bottom: 0.9em; line-height: 1.6; }
.court li:last-child { margin-bottom: 0; }
.eshkol { font-size: 1.25em; max-width: 46ch; color: #fff; }
@media (max-width: 860px) { .teeth-grid { grid-template-columns: 1fr; } }

/* ---------- halacha teaser ---------- */
.qlist { list-style: none; margin: 0 0 32px; padding: 0; columns: 2; column-gap: 48px; }
.qlist li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qlist a { text-decoration: none; color: var(--ink); font-size: 1.08em; }
.qlist a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 720px) { .qlist { columns: 1; } }

/* ---------- sign ---------- */
.sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.pledge-doc { background: #fff; border: 1px solid var(--line); padding: 28px 30px 24px; box-shadow: 0 1px 0 var(--line), 0 18px 30px -24px rgba(20,32,58,0.35); }
.pledge-title { display: flex; align-items: center; gap: 12px; }
.flag { width: 46px; height: auto; flex: none; border: 1px solid var(--line); }
.pledge-doc ol { padding-inline-start: 1.2em; margin: 0; }
.pledge-doc li { margin-bottom: 0.8em; font-size: 0.97em; line-height: 1.62; }
.pledge-doc .sigline { margin-top: 22px; border-top: 1px dashed var(--muted); padding-top: 6px; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
form.pledge { font-family: var(--sans); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; font-size: 1rem; }
.field input[type='text'], .field input[type='email'], .field input[type='tel'] {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 11px 12px; border: 1px solid #b9b6ad; border-radius: 3px; background: #fff; color: var(--ink);
}
.field input:focus { border-color: var(--blue); outline: 3px solid var(--blue-wash); outline-offset: 0; }
.field .hint { font-size: 0.88rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.field .err { display: none; font-size: 0.92rem; color: var(--red); font-weight: 600; margin-top: 4px; }
.field.invalid input { border-color: var(--red); }
.field.invalid .err { display: block; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-bottom: 12px; font-size: 1rem; line-height: 1.45; }
.field label.check { display: grid; font-weight: 400; margin-bottom: 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hp { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.4em; }
.form-status.bad { color: var(--red); }
.done { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--olive); padding: 26px 28px; font-family: var(--sans); }
.done h3 { font-family: var(--serif); }
.share { display: flex; gap: 8px; margin-top: 10px; }
.share input { flex: 1; font: inherit; padding: 9px 10px; border: 1px solid var(--line); background: var(--paper); direction: ltr; }
.share button { font: inherit; font-weight: 700; padding: 9px 14px; border: 1px solid var(--blue); color: var(--blue-deep); background: #fff; cursor: pointer; border-radius: 3px; }
@media (max-width: 860px) { .sign-grid { grid-template-columns: 1fr; } .two { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); font-family: var(--sans); }
.stats h3 { font-family: var(--serif); }
.stats .note { color: var(--muted); font-size: 0.92rem; }
.places { list-style: none; margin: 0; padding: 0; }
.places li { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 52px; gap: 10px; align-items: center; padding: 5px 0; }
.places .pbar { height: 10px; background: var(--olive); border-radius: 2px; min-width: 4px; }
.places .n { font-variant-numeric: tabular-nums; text-align: end; color: var(--muted); }
.recent { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.recent li { padding: 4px 0; break-inside: avoid; }
.recent small { color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* ---------- privacy + footer ---------- */
.privacy dl { display: grid; grid-template-columns: 200px 1fr; gap: 10px 28px; margin: 0; font-family: var(--sans); font-size: 1.02rem; }
.privacy dt { font-weight: 700; }
.privacy dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .privacy dl { grid-template-columns: 1fr; } .privacy dd { margin-bottom: 10px; } }
.site-foot { border-top: 1px solid var(--line); padding-block: 28px 40px; font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }

/* ---------- halacha page ---------- */
.page-head { padding-block: clamp(40px, 6vw, 80px) 24px; }
.page-head h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.8rem); font-weight: 900; }
.toc { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.toc li { counter-increment: q; padding: 8px 0; border-bottom: 1px solid var(--line); }
.toc a { text-decoration: none; color: var(--ink); }
.toc a::before { content: counter(q) '. '; color: var(--blue); font-weight: 700; }
.qa { padding-block: 40px; border-top: 2px solid var(--ink); scroll-margin-top: 80px; }
.qa h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); max-width: 30ch; }
.qa p { max-width: 68ch; }
.qa q { font-weight: 500; color: var(--blue-deep); }
.back { margin-top: 48px; }

/* ---------- draft languages ---------- */
.draft-banner { background: #fff4d6; color: #5a4300; font-family: var(--sans); font-size: 0.95rem; text-align: center; padding: 8px var(--gutter); border-bottom: 1px solid #e8d49a; }

/* ---------- owner's numbers page (/admin/) ---------- */
body.admin { background: #eef1f6; }
.adm-wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.adm-top { background: var(--blue-deep); color: #fff; }
.adm-top .adm-wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-block: 14px; }
.adm-brand { font-family: 'Frank Ruhl Libre', serif; font-weight: 900; font-size: 1.5rem; }
.adm-brand-sub { font-family: 'Assistant', sans-serif; font-weight: 600; font-size: .95rem; opacity: .8; margin-inline-start: 10px; }
.adm-stamp { font-size: .9rem; opacity: .85; }
main.adm-wrap { padding-block: 24px 64px; display: grid; gap: 20px; }
#out { display: grid; gap: 20px; }
.admin [hidden] { display: none !important; }
.adm-card { background: #fff; border: 1px solid #dfe3ea; border-radius: 10px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(20,32,58,.05); }
.adm-card h1 { font-size: 1.6rem; margin: 0 0 6px; }
.adm-card h2 { font-size: 1.15rem; margin: 0 0 4px; }
.adm-muted { color: #5a6378; font-size: .92rem; margin: 0 0 14px; }
.adm-key { max-width: 460px; display: grid; gap: 10px; }
.adm-key input[type=password] { font: inherit; padding: 11px 12px; border: 1px solid #c9cfda; border-radius: 6px; }
.adm-check { display: flex; gap: 8px; align-items: center; }
.adm-btn { font: inherit; font-weight: 600; padding: 10px 18px; border: 0; border-radius: 6px; background: var(--blue-deep); color: #fff; cursor: pointer; margin: 0 8px 8px 0; }
.adm-btn:hover { background: var(--blue); }
.adm-btn-quiet { background: #fff; color: var(--blue-deep); border: 1px solid #c9cfda; }
.adm-btn-quiet:hover { background: var(--blue-wash); }
.adm-msg { color: #a12a2a; min-height: 1.2em; margin: 0; }

.adm-tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; }
.adm-tile { display: flex; flex-direction: column; gap: 4px; }
.adm-tile-label { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5a6378; }
.adm-tile-num { font-family: 'Frank Ruhl Libre', serif; font-weight: 900; font-size: 2.4rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.adm-tile-main { border-top: 4px solid var(--blue-deep); }
.adm-tile-foot { font-size: .88rem; color: #5a6378; }
.adm-progress { height: 8px; background: #e6eaf1; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.adm-progress span { display: block; height: 100%; background: var(--blue-deep); border-radius: 4px; min-width: 2px; }

.adm-scroll { overflow-x: auto; }
.adm-table { border-collapse: separate; border-spacing: 0; width: 100%; font-variant-numeric: tabular-nums; font-size: .95rem; border: 1px solid #dfe3ea; border-radius: 8px; overflow: hidden; }
.adm-table th, .adm-table td { padding: 11px 14px; text-align: start; border-bottom: 1px solid #e6e9ef; vertical-align: middle; }
.adm-table tr > * + * { border-inline-start: 1px solid #eef0f4; }
.adm-table thead th { background: var(--blue-deep); color: #fff; font-weight: 600; font-size: .88rem; white-space: normal; vertical-align: bottom; border-bottom: 0; }
.adm-table thead th + th { border-inline-start-color: rgba(255,255,255,.15); }
.adm-table tbody tr:nth-child(even) > * { background: #f6f8fb; }
.adm-table tbody tr:hover > * { background: var(--blue-wash); }
.adm-table tbody tr:last-child > * { border-bottom: 0; }
.adm-table .num { text-align: end; white-space: nowrap; }
.adm-table .strong { font-weight: 700; }
.adm-table tbody th { white-space: nowrap; }
.lang-en { display: block; font-weight: 700; }
.lang-native { display: block; font-size: .85rem; color: #5a6378; font-weight: 400; }
.bar-cell { min-width: 170px; }
.bar-val { display: block; font-weight: 600; margin-bottom: 4px; }
.adm-hbar { height: 10px; background: #e6eaf1; border-radius: 0 4px 4px 0; }
.adm-hbar span { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; }
.adm-days td .s { font-weight: 700; color: var(--blue-deep); }
.adm-days td .sep { color: #a0a7b5; }
.adm-days td.zero { color: #b3b9c5; }
.adm-days td.zero .s { color: #b3b9c5; font-weight: 400; }
.adm-empty { text-align: center !important; color: #5a6378; padding: 22px !important; }

.adm-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.adm-chart { padding-inline-start: 34px; }
.adm-vbars { position: relative; height: 170px; }
.adm-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.adm-gridline { border-top: 1px solid #e6e9ef; position: relative; height: 0; }
.adm-gridline:last-child { border-top-color: #c9cfda; }
.adm-gridline span { position: absolute; inset-inline-end: calc(100% + 6px); top: -.6em; font-size: .75rem; color: #8a92a3; }
.adm-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.adm-col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.adm-col:hover { background: rgba(46,87,168,.07); }
.adm-colbar { display: block; width: 100%; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 0; }
.adm-col:hover .adm-colbar { background: var(--blue-deep); }
.adm-xaxis { display: flex; justify-content: space-between; font-size: .75rem; color: #8a92a3; margin-top: 6px; }
.adm-tools .adm-muted { margin-top: 10px; margin-bottom: 0; }

@media (max-width: 860px) {
  .adm-tiles { grid-template-columns: 1fr 1fr; }
  .adm-charts { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .adm-tile-num { font-size: 1.9rem; }
  .adm-card { padding: 16px; }
}
main.adm-wrap > *, #out > *, .adm-tiles > *, .adm-charts > * { min-width: 0; }
