/* Self-hosted fonts (SIL Open Font License, see fonts/OFL-*.txt). Heebo is the Hebrew companion of Roboto, the font of jewishhome.news. */
@font-face { font-family: 'Frank Ruhl Libre'; 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-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-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-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-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-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: 'Heebo'; font-weight: 400; font-display: swap; src: url('/assets/fonts/heebo-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: 'Heebo'; font-weight: 400; font-display: swap; src: url('/assets/fonts/heebo-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: 'Heebo'; font-weight: 500; font-display: swap; src: url('/assets/fonts/heebo-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: 'Heebo'; font-weight: 500; font-display: swap; src: url('/assets/fonts/heebo-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: 'Heebo'; font-weight: 700; font-display: swap; src: url('/assets/fonts/heebo-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: 'Heebo'; font-weight: 700; font-display: swap; src: url('/assets/fonts/heebo-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: 'Heebo'; font-weight: 900; font-display: swap; src: url('/assets/fonts/heebo-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: 'Heebo'; font-weight: 900; font-display: swap; src: url('/assets/fonts/heebo-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; }

/* Cyrillic (Russian) and Ge'ez (Amharic) letters: Noto Serif / Noto Sans, under the same family names. */
@font-face { font-family: 'Frank Ruhl Libre'; font-weight: 400; font-display: swap; src: url('/assets/fonts/noto-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-weight: 400; font-display: swap; src: url('/assets/fonts/noto-serif-ethiopic-ethiopic-400-normal.woff2') format('woff2'); unicode-range: U+1200-139F,U+2D80-2DDF,U+AB01-AB2F,U+1E7E0-1E7FF; }
@font-face { font-family: 'Frank Ruhl Libre'; font-weight: 700; font-display: swap; src: url('/assets/fonts/noto-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: 'Frank Ruhl Libre'; font-weight: 700; font-display: swap; src: url('/assets/fonts/noto-serif-ethiopic-ethiopic-700-normal.woff2') format('woff2'); unicode-range: U+1200-139F,U+2D80-2DDF,U+AB01-AB2F,U+1E7E0-1E7FF; }
@font-face { font-family: 'Frank Ruhl Libre'; font-weight: 900; font-display: swap; src: url('/assets/fonts/noto-serif-cyrillic-900-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-weight: 900; font-display: swap; src: url('/assets/fonts/noto-serif-ethiopic-ethiopic-900-normal.woff2') format('woff2'); unicode-range: U+1200-139F,U+2D80-2DDF,U+AB01-AB2F,U+1E7E0-1E7FF; }
@font-face { font-family: 'Heebo'; font-weight: 400; font-display: swap; src: url('/assets/fonts/noto-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: 'Heebo'; font-weight: 400; font-display: swap; src: url('/assets/fonts/noto-sans-ethiopic-ethiopic-400-normal.woff2') format('woff2'); unicode-range: U+1200-139F,U+2D80-2DDF,U+AB01-AB2F,U+1E7E0-1E7FF; }
@font-face { font-family: 'Heebo'; font-weight: 500; font-display: swap; src: url('/assets/fonts/noto-sans-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Heebo'; font-weight: 500; font-display: swap; src: url('/assets/fonts/noto-sans-ethiopic-ethiopic-500-normal.woff2') format('woff2'); unicode-range: U+1200-139F,U+2D80-2DDF,U+AB01-AB2F,U+1E7E0-1E7FF; }
@font-face { font-family: 'Heebo'; font-weight: 700; font-display: swap; src: url('/assets/fonts/noto-sans-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: 'Heebo'; font-weight: 700; font-display: swap; src: url('/assets/fonts/noto-sans-ethiopic-ethiopic-700-normal.woff2') format('woff2'); unicode-range: U+1200-139F,U+2D80-2DDF,U+AB01-AB2F,U+1E7E0-1E7FF; }
@font-face { font-family: 'Heebo'; font-weight: 900; font-display: swap; src: url('/assets/fonts/noto-sans-cyrillic-900-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Heebo'; font-weight: 900; font-display: swap; src: url('/assets/fonts/noto-sans-ethiopic-ethiopic-900-normal.woff2') format('woff2'); unicode-range: U+1200-139F,U+2D80-2DDF,U+AB01-AB2F,U+1E7E0-1E7FF; }

/* Look and feel of jewishhome.news: Prussian-blue masthead and footer, warm paper,
   heavy sans headlines (Roboto there, Heebo here), serif body text, red accents. */
:root {
  --paper: #fff8f5;
  --ink: #111111;
  --muted: #666666;
  --navy: #002444;
  --navy-foot: #002147;
  --red: #a40000;
  --crumb: #e00000;
  --link: #0b4f8a;
  --line: #e7dcd6;
  --card: #ffffff;
  --ok: #1e6b3a;
  --sans: 'Heebo', 'Roboto', 'Segoe UI', Arial, sans-serif;
  --serif: 'Frank Ruhl Libre', 'Gentium Book Plus', Georgia, serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 30px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.75; }
a { color: var(--link); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; display: block; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #f2c200; outline-offset: 2px; }

/* ---------- masthead ---------- */
.masthead { background: var(--navy); color: #fff; }
.mast { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #c9d6e6; flex: none; }
.logo img { width: 150px; height: 150px; display: block; }
.logo .tagline { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.04em; margin-top: -10px; }
.mast-side { flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; font-family: var(--sans); font-weight: 700; font-size: 1.2rem; }
.nav a { color: #fff; text-decoration: none; padding: 10px 16px; border-radius: 2px; }
.nav a + a { position: relative; }
.nav a + a::before { content: ''; position: absolute; inset-inline-start: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }
.mast-tools { display: flex; align-items: center; gap: 12px; }
.mini-search { display: flex; align-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 4px; padding-inline: 10px 4px; }
.mini-search input { background: transparent; border: 0; color: #fff; font-family: var(--sans); font-size: 0.95rem; padding: 8px 4px; width: 220px; }
.mini-search input::placeholder { color: #c9d6e6; }
.mini-search button { background: transparent; border: 0; color: #fff; font-size: 1.1rem; padding: 6px; cursor: pointer; }
.support { background: var(--red); color: #fff; text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: 1rem; padding: 9px 18px; border-radius: 3px; white-space: nowrap; }
.support:hover { background: #c00000; }
@media (max-width: 900px) {
  .mast { gap: 12px; padding-block: 8px; }
  .logo img { width: 76px; height: 76px; }
  .logo .tagline { margin-top: -4px; font-size: 0.7rem; }
  .mast-side { align-items: flex-end; gap: 8px; }
  .mast-tools .mini-search { display: none; }
  .nav { justify-content: flex-end; font-size: 1rem; }
  .nav a { padding: 6px 8px; }
  .support { padding: 6px 14px; font-size: 0.92rem; }
}

/* ---------- shared bits ---------- */
.block-label { margin: 0 0 18px; font-family: var(--sans); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.block-label span { display: inline-block; background: var(--navy); color: #fff; padding: 8px 18px; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
.meta { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); text-transform: uppercase; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; }
.meta > * + *::before { content: '|'; color: #c9bdb6; margin-inline: 8px; }
.meta .cat { color: var(--ink); font-weight: 700; }
.meta .cat + .cat::before { content: '/'; }
.meta a { color: var(--ink); }
.excerpt { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin: 6px 0 10px; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 1000px) { .with-side { grid-template-columns: minmax(0, 1fr); } }
.popular { border: 1px solid #222; border-radius: 6px; background: var(--card); padding: 16px 18px; position: sticky; top: 16px; }
.popular h2 { font-family: var(--sans); font-weight: 900; font-size: 1.45rem; margin: 0 0 10px; }
.popular ol { list-style: none; margin: 0; padding: 0; }
.popular li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.popular li:first-child { border-top: 0; }
.popular .num { color: var(--crumb); font-family: var(--sans); font-weight: 900; font-size: 1.6rem; line-height: 1; }
.popular a { color: var(--ink); text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.35; }
.popular a:hover { color: var(--link); }

/* ---------- home ---------- */
.home { padding-top: 28px; }
.lead-img img { display: block; width: 100%; background: #fff; }
.lead h2 { font-family: var(--sans); font-weight: 900; font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.5px; margin: 18px 0 10px; }
.lead h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.lead h2 a:hover, .card h3 a:hover { color: var(--link); }
.lead .excerpt { font-size: 1.05rem; }
.more { padding: 40px 0 20px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card-img img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.card h3 { font-family: var(--sans); font-weight: 900; font-size: 1.3rem; line-height: 1.25; margin: 12px 0 6px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.article-wrap { padding-top: 22px; padding-bottom: 40px; }
.article-wrap:not(.with-side) .article { max-width: 860px; margin-inline: auto; }
.crumbs { font-family: var(--sans); font-weight: 700; font-size: 0.85rem; color: var(--crumb); text-transform: uppercase; margin-bottom: 14px; }
.crumbs a { color: var(--crumb); text-decoration: none; }
.tag { display: inline-block; margin: 0 0 12px; font-family: var(--sans); font-weight: 700; font-size: 0.78rem; color: #fff; background: var(--navy); padding: 3px 14px; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.article-head h1 { font-family: var(--sans); font-weight: 900; font-size: clamp(2.1rem, 5.5vw, 3.5rem); line-height: 1.1; letter-spacing: -1px; margin: 0 0 14px; }
.dek { font-size: 1.15rem; line-height: 1.55; margin: 0 0 16px; }
.article-head .meta { border-top: 1px solid var(--line); padding-top: 12px; }
.article-head .meta .by strong { color: var(--ink); }
.orig { font-family: var(--sans); font-size: 0.88rem; margin: 6px 0 0; }
/* Language buttons above the masthead (same look as the Bitnai site) */
.langbar { background: #001a33; font-family: var(--sans); }
.langbar ul { list-style: none; margin: 0; padding: 7px 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.langbar a { display: block; min-width: 84px; text-align: center; padding: 4px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 3px; color: #fff; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.langbar a:hover, .langbar a:focus-visible { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.langbar a[aria-current] { background: #fff; color: #002444; border-color: #fff; font-weight: 700; }
@media (max-width: 640px) {
  .langbar ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 0; }
  .langbar a { min-width: 0; padding: 6px 2px; font-size: .85rem; }
}
@media print { .langbar { display: none; } }
.share { display: flex; align-items: center; gap: 8px; margin: 14px 0 22px; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.share > span { margin-inline-end: 4px; text-transform: uppercase; }
.sh { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 16px; padding: 0; cursor: pointer; }
.sh:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.sh.copied { background: var(--ok); color: #fff; border-color: var(--ok); }
.hero-img { margin: 0 0 26px; }
.hero-img img { display: block; width: 100%; background: #fff; }
.equation { margin: 1.5em 0; padding: 18px 22px; border: 1px solid var(--rule, #c9d2dc); border-inline-start: 4px solid #092343; border-radius: 6px; background: rgba(9,35,67,.05); }
.equation p { margin: 0 0 .4em; }
.equation .eq { margin: .2em 0 .6em; font-size: 1.6em; font-weight: 700; letter-spacing: .04em; text-align: center; unicode-bidi: isolate; }
.equation ul { margin: 0; padding-inline-start: 1.2em; }
.ev-eq { margin: 1.6em 0; padding: 20px 22px 18px; border: 1px solid #c9d2dc; border-inline-start: 4px solid #092343; border-radius: 6px; background: #f4f6f9; color: #1d2329; }
.ev-eq-head { margin: 0 0 1em; font-family: var(--sans); font-size: 13px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #092343; }
.ev-eq-head a { color: #092343; }
.ev-eq-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 8px 12px; text-align: center; }
.ev-eq-term { flex: 0 1 112px; min-width: 82px; }
.ev-eq-sym { font-family: Georgia, 'Times New Roman', serif; font-size: 2.6em; font-weight: 700; line-height: 1; color: #092343; }
.ev-eq-sym.c { color: #a40000; }
.ev-eq-cap { font-family: var(--sans); font-size: 13px; line-height: 1.35; margin-top: 7px; color: #3a4552; }
.ev-eq-op { flex: 0 0 auto; font-size: 2em; line-height: 1.25; color: #7a8696; }
.ev-eq-line { margin: 1.1em 0 0; font-size: 15px; line-height: 1.5; text-align: center; }
.ev-eq-line strong { unicode-bidi: isolate; }
[dir="rtl"] .ev-eq-head { letter-spacing: 0; }
.hero-img figcaption { font-size: .92em; color: var(--muted); margin-top: 8px; text-align: center; }
.toc { background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--navy); padding: 14px 20px; margin: 0 0 28px; font-family: var(--sans); font-size: 1rem; }
.toc h2 { font-size: 1.05rem; font-weight: 900; margin: 0 0 6px; }
.toc ol { margin: 0; padding-inline-start: 22px; line-height: 1.8; }
.prose h2 { font-family: var(--sans); font-weight: 900; font-size: 1.75rem; letter-spacing: -0.5px; line-height: 1.25; margin: 44px 0 12px; scroll-margin-top: 16px; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 1.35rem; line-height: 1.3; margin: 32px 0 10px; scroll-margin-top: 16px; }
.prose p, .prose li { margin: 0 0 1em; }
.prose ol, .prose ul { padding-inline-start: 1.4em; }
.prose strong { font-weight: 700; }
.figure { margin: 24px 0; background: #fff; border: 1px solid var(--line); padding: 8px; }
.figure img { display: block; width: 100%; }
.table-wrap { margin: 20px 0 28px; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.92rem; line-height: 1.5; background: #fff; border: 1px solid var(--line); }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--navy); color: #fff; font-weight: 700; }
.prose tbody tr:nth-child(even) td { background: #fbf4f0; }
@media (max-width: 680px) {
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: auto; }
  .prose tr { border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .prose td { border: 0; padding: 3px 0; background: none !important; }
  .prose td::before { content: attr(data-label) ': '; font-weight: 700; }
  .prose tbody tr:nth-child(even) { background: #fbf4f0; }
}
.translated { font-family: var(--sans); color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 32px; }

/* ---------- comments, forms ---------- */
.comments { margin-top: 44px; font-family: var(--sans); }
.comment-list { list-style: none; padding: 0; margin: 0 0 28px; }
.comment { background: var(--card); border: 1px solid var(--line); padding: 12px 16px; margin-bottom: 12px; }
.comment p { margin: 0 0 8px; white-space: pre-line; overflow-wrap: anywhere; }
.comment-head { color: var(--muted); font-size: 0.9rem; }
.comment-head strong { color: var(--ink); }
.muted { color: var(--muted); }
.comment-form, .search-form, .admin-key { display: grid; gap: 6px; max-width: 640px; }
.comment-form label, .search-form label, .admin-key label { font-weight: 700; margin-top: 6px; }
input[type="text"], input[type="search"], input[type="password"], textarea { font: inherit; font-family: var(--sans); font-size: 1rem; padding: 10px 12px; border: 1px solid #b9b0aa; border-radius: 3px; background: #fff; width: 100%; }
.mini-search input[type="search"] { border: 0; background: transparent; width: 220px; padding: 8px 4px; }
button { font: inherit; font-family: var(--sans); font-weight: 700; font-size: 1rem; background: var(--navy); color: #fff; border: 0; border-radius: 3px; padding: 10px 18px; cursor: pointer; justify-self: start; }
button:hover { background: #0a3a66; }
button:disabled { opacity: 0.6; cursor: wait; }
button.danger { background: var(--red); }
.comment-form button { background: var(--red); }
.rules { color: var(--muted); font-size: 0.92rem; margin: 0 0 4px; }
.hp { position: absolute; inset-inline-start: -9999px; }
.status { min-height: 1.5em; margin: 6px 0 0; font-family: var(--sans); }
.status.ok { color: var(--ok); }
.status.err { color: var(--red); }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }

/* ---------- search ---------- */
.search-page { padding-top: 32px; }
.results { list-style: none; padding: 0; margin: 20px 0 56px; }
.results li { background: var(--card); border: 1px solid var(--line); padding: 14px 18px; margin-bottom: 12px; }
.results h2 { font-family: var(--sans); font-weight: 900; font-size: 1.35rem; margin: 0 0 6px; }
.results h2 a { color: var(--ink); text-decoration: none; }
.results p { margin: 0 0 6px; }
.section-title { font-family: var(--sans); font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 36px 0 20px; line-height: 1.2; }

/* ---------- admin ---------- */
.admin-list { list-style: none; padding: 0; }
.admin-list li { background: #fff; border: 1px solid var(--line); padding: 12px 16px; margin-bottom: 12px; font-family: var(--sans); }
.admin-list p { margin: 0 0 8px; }
.comment-text { white-space: pre-line; }
.admin-tools button { margin-inline-end: 6px; }
.check { font-weight: 400 !important; display: flex; gap: 8px; align-items: center; }

/* ---------- footer ---------- */
.foot { background: var(--navy-foot); color: #c9d6e6; font-family: var(--sans); margin-top: 56px; padding: 44px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.6fr 1.3fr; gap: 32px; }
.foot h2 { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; line-height: 1.4; font-size: 0.92rem; }
.foot a { color: #c9d6e6; text-decoration: none; font-weight: 500; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-recent li::before { content: '←'; margin-inline-end: 6px; color: #8fa6c2; }
.foot-brand { border-inline-start: 1px solid rgba(255, 255, 255, 0.15); padding-inline-start: 28px; text-align: center; }
.foot-brand p { font-size: 0.92rem; margin: 14px 0; }
.foot-brand .mini-search { margin: 0 auto; max-width: 300px; }
.foot-logos { display: flex; align-items: center; justify-content: center; gap: 10px; }
.foot-logos img { display: block; }
.foot-logos a:first-child img { width: 150px; height: 150px; }
.seal { align-self: flex-end; opacity: 0.9; }
.seal img { width: 40px; height: 40px; }
.seal:hover { opacity: 1; }
.copy { font-size: 0.82rem !important; color: #8fa6c2; }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 24px; }
}
/* With a single lead story and no sidebar, set picture and headline side by side. */
.home:not(.with-side) .lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 40px; }
.home:not(.with-side) .lead > * { grid-column: 2; }
.home:not(.with-side) .lead > h2 { grid-row: 2; margin-top: 0; }
.home:not(.with-side) .lead > .meta { grid-row: 3; }
.home:not(.with-side) .lead > .excerpt { grid-row: 4; }
.home:not(.with-side) .lead > .lead-img { grid-column: 1; grid-row: 1 / span 5; }
@media (max-width: 900px) { .home:not(.with-side) .lead { display: block; } }

/* ---------- the advertisement for gedoleitorah.com (a frame; see build.js) ---------- */
.gt-stone { clear: both; margin: 30px auto; line-height: 0; }
.gt-stone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 3px; }
.gt-stone-band { height: 260px; max-width: 860px; }
.gt-stone-wide { height: 260px; margin-bottom: 0; }
/* in an article's side column the list stays put and the advertisement follows the reader down the page */
.side.has-stone { align-self: stretch; }
.side.has-stone .popular { position: static; }
.side.has-stone .gt-stone-tall { position: sticky; top: 16px; }
.grid-stone { grid-column: 1 / -1; }
.grid-stone .gt-stone { margin: 6px auto; }
.grid-stone:empty { display: none; }
.gt-stone-tall { height: 590px; max-width: 340px; margin: 26px auto; }
@media (max-width: 640px) { .gt-stone-band, .gt-stone-wide { height: 430px; max-width: 400px; } }

/* ---------- printing an article: just the article, in black on white ---------- */
.print-only { display: none; }
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; color: #000; font-size: 12pt; line-height: 1.55; }
  .masthead, .foot, .share, .comments, .side, .skip, .toc, .crumbs, .gt-stone { display: none !important; }
  .article-wrap { display: block; padding: 0; max-width: none; }
  .article { max-width: none; }
  .print-only { display: block; font-family: var(--sans); font-size: 9pt; color: #444; margin: 0 0 8pt; }
  .article-head h1 { font-size: 24pt; letter-spacing: 0; }
  .tag { border: 1px solid #000; background: none; color: #000; clip-path: none; }
  .hero-img img { max-height: 90mm; width: auto; margin-inline: auto; }
  .figure, .table-wrap, .prose tr { break-inside: avoid; }
  .prose h2, .prose h3 { break-after: avoid; }
  .prose a { color: #000; text-decoration: underline; }
  .prose thead th { background: #ddd !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- admin: reader statistics ---------- */
.admin-wrap { max-width: 1100px; padding-bottom: 40px; }
.admin h2 { font-family: var(--sans); font-weight: 900; font-size: 1.5rem; margin: 32px 0 12px; }
.admin h3 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin: 24px 0 8px; }
.period { display: flex; gap: 6px; flex-wrap: wrap; }
.period button { background: #fff; color: var(--navy); border: 1px solid var(--navy); padding: 6px 14px; font-size: 0.92rem; }
.period button.on { background: var(--navy); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.tile { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 12px 14px; font-family: var(--sans); }
.tile .n { display: block; font-size: 1.9rem; font-weight: 900; line-height: 1.1; color: var(--ink); }
.tile .l { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.chart { background: #fff; border: 1px solid var(--line); padding: 8px; }
.chart svg { width: 100%; height: auto; font-family: var(--sans); }
.stat-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.92rem; background: #fff; border: 1px solid var(--line); }
.stat-table th, .stat-table td { text-align: start; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stat-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.stat-table .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; }
.hint { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin: 4px 0 8px; }
[hidden] { display: none !important; }
.stat-table td[dir] { text-align: left; }
/* admin: language picker, grouped comments, article matrix */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-bar .admin-tools { margin: 0; }
.lang-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-pick button { background: #fff; color: var(--navy); border: 1px solid var(--navy); padding: 6px 14px; font-size: 0.95rem; font-family: var(--sans); }
.lang-pick button.on { background: var(--navy); color: #fff; font-weight: 700; }
.lang-badge { display: inline-block; background: var(--navy); color: #fff !important; text-decoration: none; padding: 0 8px; border-radius: 3px; font-size: 0.85rem; }
.comment-group { background: #fff; border: 1px solid var(--line); margin-bottom: 10px; font-family: var(--sans); }
.comment-group > summary { cursor: pointer; padding: 10px 14px; display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.comment-group > summary .g-count { font-weight: 400; color: var(--muted); white-space: nowrap; }
.comment-group .admin-list { margin: 0; padding: 0 14px 4px; }
.comment-group .admin-list li { border: 0; border-top: 1px solid var(--line); padding: 10px 0; margin: 0; }
.stat-table .sub { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.stat-table tr.site-row td { background: #faf6f3; color: var(--muted); }
.stat-table tbody tr.site-row:first-of-type td, .stat-table tr:not(.site-row) + tr.site-row td { border-top: 2px solid var(--line); }
.muted { color: var(--muted); font-family: var(--sans); }
.xpost { margin: 24px auto; max-width: 550px; }
.xpost > blockquote { margin: 0; }
.xpost figcaption { font-size: .92em; color: var(--muted, #555); margin-top: 8px; }
.xpost figcaption p { margin: 0; }
.video { margin: 24px 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.square { aspect-ratio: 1 / 1; max-width: 560px; margin: 0 auto; background: #f4f6f9; }
.video figcaption { font-size: .92em; color: var(--muted); margin-top: 8px; }
.video figcaption p { margin: 0; }
@media print { .video-frame { display: none; } }
.audio { margin: 24px 0; }
.audio iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; }
.audio audio { display: block; width: 100%; }
.audio figcaption { font-size: .92em; color: var(--muted); margin-top: 8px; }
.audio figcaption p { margin: 0; }
@media print { .audio iframe { display: none; } }
.signup { margin-top: 40px; margin-bottom: 40px; padding: 26px 28px; background: #f4f6f9; border-top: 4px solid var(--navy, #002444); }
.signup h2 { margin: 0 0 6px; font-size: 1.35rem; }
.signup p { margin: 0 0 14px; }
.signup-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.signup-fields label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; font-size: .9rem; }
.signup-fields input { padding: 10px 12px; border: 1px solid #b9c0ca; border-radius: 3px; font: inherit; }
.signup-fields button { padding: 11px 22px; background: #a40000; color: #fff; border: 0; border-radius: 3px; font: inherit; font-weight: 700; cursor: pointer; }
.signup-fields button[disabled] { opacity: .6; cursor: default; }
.signup-consent { display: block; margin-top: 10px; font-size: .9rem; }
.signup .status { margin: 10px 0 0; font-weight: 700; }
.signup form.done .signup-fields, .signup form.done .signup-consent { display: none; }
@media print { .signup { display: none; } }
.support-monthly { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); padding: 7px 14px; margin-inline-start: 6px; }
.support-monthly:hover { background: rgba(255,255,255,.12); }
@media (max-width: 700px) { .support-monthly { display: none; } }

/* a series box: the seal of the series and where this article stands in it */
.series { display: flex; gap: 1rem; align-items: center; margin: 0 0 1.5rem; padding: 0.75rem 1rem; border: 1px solid #c9d2dc; border-inline-start: 4px solid #092343; border-radius: 6px; background: #f4f6f9; color: #1d2329; }
.series img { flex: none; width: 72px; height: 72px; }
.series div { display: grid; gap: 0.2rem; font-size: 0.95rem; line-height: 1.5; min-width: 0; }
.series strong { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #092343; }
@media print { .series img { display: none; } }
