/* 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; }

/* 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: 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; }
.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; }
.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; } }

/* ---------- 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 { 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; }
}
