/* Wars of Israel: design system v2 (contemporary documentary edition).
   White reading surfaces, cool grey support, deep navy text, restrained blue for links and states.
   Logical properties throughout so the same rules serve Hebrew (rtl) and English (ltr). */
@font-face { font-family: "Heebo"; src: url("/assets/fonts/heebo-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #FFFFFF; --surface: #F3F5F7; --surface-2: #E9EDF1;
  --ink: #142237; --ink-2: #2B3B52; --muted: #586577; --faint: #8592A3;
  --rule: #DFE5EB; --rule-2: #C8D1DB;
  --blue: #2458A6; --blue-2: #1B4583; --blue-soft: #E8EFF8;
  --navy: #142237; --navy-2: #1C2E47;
  --link: var(--blue); --link-hover: var(--blue-2); --focus: #2458A6;
  --t-war: #B23A30; --t-conflict: #B0621C; --t-uprising: #8A6B2E; --t-riots: #7A4E8C; --t-campaign: #3D6C8E;
  --t-battle: #2458A6; --t-operation: #23806A; --t-attack: #C4512B; --t-incident: #6B7684;
  --sans: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1200px; --wrap-wide: 1320px; --wrap-narrow: 760px; --gutter: clamp(16px, 4vw, 40px);
  --r: 6px; --r-lg: 10px;
  --shadow: 0 1px 2px rgba(20, 34, 55, .05), 0 10px 30px -14px rgba(20, 34, 55, .22);
  --fs-0: .8125rem; --fs-1: .9375rem; --fs-2: 1.0625rem; --fs-3: 1.25rem;
  --fs-4: clamp(1.5rem, 1.25rem + .9vw, 1.875rem); --fs-5: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --fs-6: clamp(2.15rem, 1.5rem + 2.6vw, 3.5rem);
  --top-h: 64px; --nav-h: 48px; --section: clamp(56px, 7vw, 96px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs-2); line-height: 1.65; font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.lang-he { line-height: 1.75; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.012em; overflow-wrap: break-word; }
.lang-he h1, .lang-he h2, .lang-he h3, .lang-he h4 { letter-spacing: 0; line-height: 1.28; }
p { margin: 0 0 1em; }
.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: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; color: #fff; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; fill: none; stroke: currentColor; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: calc(var(--wrap-wide) + 2 * var(--gutter)); }
.wrap-narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }
main { display: block; min-height: 50vh; }
main:focus { outline: none; }
.sep { margin-inline: .45em; color: var(--rule-2); }
.preview-bar { background: var(--navy); color: #fff; font-size: var(--fs-0); text-align: center; padding: 6px 12px; }
time, .kicker-date, .ev-date, .tl-date, .otd-year, .period-range, .tl-axis-range { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; font: 600 var(--fs-1)/1.1 var(--sans); padding: .8em 1.3em; min-height: 46px; border-radius: var(--r); border: 1px solid var(--blue); background: var(--blue); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-sm { padding: .5em .9em; min-height: 38px; font-size: var(--fs-0); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
input, select, button, textarea { font: inherit; color: inherit; }
input[type="search"], input[type="number"], input[type="text"], select { width: 100%; background: #fff; border: 1px solid var(--rule-2); border-radius: var(--r); padding: .7em .9em; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover { border-color: var(--faint); }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 88, 166, .16); outline: none; }
label, legend { font-size: var(--fs-0); font-weight: 600; color: var(--ink-2); display: block; margin-bottom: .45em; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; inset-inline-start: .9em; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-inline-start: 2.7em; }
.chip { display: inline-flex; align-items: center; gap: .45em; border: 1px solid var(--rule-2); background: #fff; color: var(--ink-2); padding: .5em .95em; min-height: 38px; border-radius: 999px; font-size: var(--fs-0); font-weight: 500; cursor: pointer; line-height: 1.3; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip[aria-pressed="true"] .type-dot { box-shadow: 0 0 0 2px #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* ---------- type markers and kickers */
.type-dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--t, var(--faint)); margin-inline-end: .5em; flex: none; }
.type-war { --t: var(--t-war); } .type-conflict { --t: var(--t-conflict); } .type-uprising { --t: var(--t-uprising); }
.type-riots { --t: var(--t-riots); } .type-campaign { --t: var(--t-campaign); } .type-battle { --t: var(--t-battle); }
.type-operation { --t: var(--t-operation); } .type-attack { --t: var(--t-attack); } .type-incident { --t: var(--t-incident); }
.kicker { font-size: var(--fs-0); font-weight: 600; color: var(--muted); margin: 0 0 .55em; display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; line-height: 1.4; }
.lang-he .kicker { font-size: .875rem; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--blue); text-decoration: underline; }
.kicker .kicker-date, .kicker time { color: var(--muted); font-weight: 400; }
.kicker-lg { font-size: var(--fs-1); }
.lang-he .kicker-lg { font-size: var(--fs-2); }

/* ---------- header and navigation */
.site-header { position: sticky; top: calc(-1 * var(--top-h)); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-header::before { content: ""; position: absolute; inset-inline: 0; top: var(--top-h); height: 1px; background: var(--rule); pointer-events: none; }
.header-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: var(--top-h) var(--nav-h); column-gap: 24px; }
.logo { grid-column: 1; grid-row: 1; align-self: center; display: block; position: relative; z-index: 2; }
.logo img { height: 38px; width: auto; }
.header-tools { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 8px; position: relative; z-index: 2; }
.main-nav { grid-column: 1 / -1; grid-row: 1 / 3; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; pointer-events: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; pointer-events: auto; }
.nav-secondary { grid-column: 2; grid-row: 1; justify-self: end; align-items: center; gap: 4px; }
.nav-secondary a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--r); color: var(--muted); font-size: var(--fs-1); font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-secondary a:hover { color: var(--ink); background: var(--surface); }
.nav-secondary a[aria-current="page"] { color: var(--blue); }
.nav-secondary .icon { width: 16px; height: 16px; }
.nav-primary { grid-column: 1 / -1; grid-row: 2; align-items: stretch; gap: clamp(4px, 1.4vw, 22px); margin-inline-start: -2px !important; }
.nav-primary a { display: flex; align-items: center; height: 100%; padding: 0 2px; color: var(--ink); font-size: var(--fs-1); font-weight: 500; text-decoration: none; white-space: nowrap; position: relative; }
.lang-he .nav-primary a { font-size: 1rem; }
.nav-primary a::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: transparent; transition: background .15s; }
.nav-primary a:hover { color: var(--blue); }
.nav-primary a:hover::after { background: var(--rule-2); }
.nav-primary a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.nav-primary a[aria-current="page"]::after { background: var(--blue); }
.icon-link, .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); color: var(--ink); background: none; border: 1px solid var(--rule); cursor: pointer; transition: background .15s, border-color .15s; }
.icon-link:hover, .menu-btn:hover { background: var(--surface); border-color: var(--rule-2); color: var(--ink); }
.icon-link .icon, .menu-btn .icon { width: 20px; height: 20px; }
.lang-link { display: inline-flex; align-items: center; gap: 7px; height: 44px; font-size: var(--fs-1); font-weight: 600; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r); padding: 0 14px; }
.lang-link .icon { width: 17px; height: 17px; color: var(--blue); }
.lang-link:hover { border-color: var(--rule-2); color: var(--ink); background: var(--surface); }
.menu-btn { display: none; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 1080px) {
  :root { --top-h: 60px; --nav-h: 0px; }
  html { scroll-padding-top: 80px; }
  .site-header { top: 0; }
  .site-header::before { display: none; }
  .header-grid { display: flex; align-items: center; height: var(--top-h); gap: 12px; }
  .logo img { height: 32px; }
  .header-tools { margin-inline-start: auto; }
  .menu-btn { display: inline-grid; }
  .main-nav { display: none; position: fixed; inset: var(--top-h) 0 0 0; z-index: 45; background: var(--bg); flex-direction: column; gap: 0; padding: 12px var(--gutter) 40px; overflow-y: auto; pointer-events: auto; border-top: 1px solid var(--rule); }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .nav-primary, .nav-secondary { gap: 0; margin: 0 !important; }
  .nav-primary a, .nav-secondary a { min-height: 54px; height: auto; padding: 12px 2px; border-bottom: 1px solid var(--rule); font-size: 1.1875rem; font-weight: 600; color: var(--ink); border-radius: 0; }
  .lang-he .nav-primary a { font-size: 1.25rem; }
  .nav-primary a::after { display: none; }
  .nav-primary a[aria-current="page"], .nav-secondary a[aria-current="page"] { color: var(--blue); }
  .nav-secondary { margin-top: 18px !important; align-items: stretch; justify-self: auto; }
  .nav-secondary a { display: flex; font-size: var(--fs-2); font-weight: 500; color: var(--ink-2); }
  .nav-secondary a:hover { background: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .header-grid { gap: 8px; }
  .logo { flex: 0 1 auto; min-width: 0; }
  .logo img { height: auto; width: 100%; max-width: 168px; max-height: 30px; object-fit: contain; object-position: inline-start; }
  .header-tools { gap: 6px; }
  .lang-link { padding: 0 10px; font-size: var(--fs-0); }
  .lang-link .icon { display: none; }
  .icon-link, .menu-btn { width: 42px; height: 42px; }
}

/* ---------- breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: var(--fs-0); color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border: solid var(--faint); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); margin-inline: 9px 11px; }
[dir="rtl"] .crumbs li + li::before { transform: rotate(-135deg); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---------- section heads (listing and tool pages) */
.section-head { padding-block: 40px 44px; margin-bottom: 48px; background: var(--surface); border-bottom: 1px solid var(--rule); }
.section-head h1 { font-size: var(--fs-6); font-weight: 800; line-height: 1.1; margin-bottom: .35em; max-width: 22ch; letter-spacing: -.022em; }
.lang-he .section-head h1 { line-height: 1.18; letter-spacing: -.005em; }
.section-head .section-intro { max-width: 46rem; }
.dek { font-size: var(--fs-3); color: var(--muted); max-width: 42em; line-height: 1.5; margin-bottom: 1em; font-weight: 400; }
.lang-he .dek { font-size: 1.3125rem; }
.section-intro { color: var(--ink-2); font-size: var(--fs-2); line-height: 1.7; }
.section-intro p:last-child { margin-bottom: 0; }
.section-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.count { font-size: var(--fs-1); font-weight: 600; color: var(--ink); margin-inline-end: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-heading-text { flex: 1 1 auto; min-width: 0; }
.section-heading-text:has(p) { flex-basis: 24rem; }
.section-title { font-size: var(--fs-5); font-weight: 800; display: flex; align-items: center; gap: .4em; margin: 0; line-height: 1.15; }
.section-heading p { color: var(--muted); margin: 10px 0 0; max-width: 44em; font-size: var(--fs-2); }
.more { display: inline-flex; align-items: center; gap: .4em; font-size: var(--fs-1); font-weight: 600; text-decoration: none; color: var(--blue); white-space: nowrap; min-height: 40px; }
.more:hover { color: var(--blue-2); text-decoration: underline; }
.empty { color: var(--muted); padding: 24px 0; }
.note { background: var(--surface); padding: 12px 14px; border-radius: var(--r); font-size: var(--fs-1); }

/* ---------- cards */
.grid { display: grid; gap: 44px 32px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; position: relative; }
.card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); margin-bottom: 16px; border-radius: var(--r); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, opacity .2s; }
.card-media img.is-pattern { opacity: .85; }
.card:hover .card-media img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .card:hover .card-media img { transform: none; } }
.card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .4em; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-title a { color: var(--blue); }
.card-text { color: var(--muted); font-size: var(--fs-1); margin: 0; line-height: 1.6; }
.lang-he .card-text { font-size: 1rem; }
.card-record .kicker-type { color: var(--t); }
.card-lg .card-media { aspect-ratio: 16 / 9; border-radius: var(--r-lg); margin-bottom: 22px; }
.card-lg .card-title { font-size: var(--fs-5); font-weight: 800; line-height: 1.14; }
.lang-he .card-lg .card-title { line-height: 1.22; }
.card-lg .card-text { font-size: var(--fs-2); max-width: 44em; }
.card-row { display: grid; grid-template-columns: minmax(96px, 150px) 1fr; gap: 20px; align-items: start; padding-block: 20px; border-top: 1px solid var(--rule); }
.card-row .card-media { margin: 0; aspect-ratio: 4 / 3; }
.card-row .card-title { font-size: 1.125rem; }
@media (max-width: 520px) { .card-row { grid-template-columns: 96px 1fr; gap: 14px; } .card-row .card-title { font-size: 1.0625rem; } }
.card.card-plain { padding-top: 20px; border-top: 1px solid var(--rule); }

/* ---------- homepage */
.page-home main > section { padding-block: var(--section) 0; }
.page-home main > section:last-child { padding-bottom: var(--section); }

/* hero: visible H1, introduction and index search */
.page-home .home-hero { padding-block: clamp(40px, 6vw, 80px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero-title { font-size: clamp(2.3rem, 1.55rem + 3vw, 4.1rem); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; margin-bottom: .45em; max-width: 15ch; }
.lang-he .hero-title { line-height: 1.12; letter-spacing: -.01em; max-width: 14ch; }
.hero-intro { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.75; color: var(--ink-2); max-width: 38em; }
.lang-he .hero-intro { line-height: 1.85; }
.hero-intro p:last-child { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-explore { background: var(--surface); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); }
.explore-title { font-size: 1.375rem; font-weight: 700; display: flex; align-items: center; gap: .45em; margin-bottom: .4em; }
.explore-title .icon { color: var(--blue); }
.explore-intro { color: var(--muted); margin-bottom: 18px; }
.count-badge { display: block; color: var(--ink); font-weight: 700; margin-top: 6px; }
.search-inline { display: flex; gap: 8px; }
.search-inline input { flex: 1; min-width: 0; min-height: 52px; font-size: var(--fs-2); }
.search-inline .btn { min-height: 52px; }
.type-links { list-style: none; margin: 20px 0 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--rule); }
.type-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid var(--rule-2); border-radius: 999px; background: #fff; color: var(--ink-2); text-decoration: none; font-size: var(--fs-0); font-weight: 500; }
.type-links a:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-title { max-width: 18ch; } }
@media (max-width: 460px) { .search-inline { flex-direction: column; } }

/* chronological collection of periods */
.period-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.period-card { display: flex; flex-direction: column; min-width: 0; }
.period-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.period-media { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); margin-bottom: 18px; }
.period-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.period-link:hover .period-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .period-link:hover .period-media img { transform: none; } }
.period-range { font-size: var(--fs-1); font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.period-label { font-size: 1.3125rem; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.period-link:hover .period-label { color: var(--blue); }
.period-count { font-size: var(--fs-0); color: var(--muted); }
.period-top { list-style: none; margin: 14px 0 0; padding: 0; font-size: var(--fs-1); }
.period-top li { border-top: 1px solid var(--rule); }
.period-top a { display: block; padding: 9px 0; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.period-top a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 1100px) { .period-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .period-scroller { padding-inline: 0; }
  .period-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-inline: var(--gutter); padding-bottom: 8px; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
  .period-card { flex: 0 0 78%; scroll-snap-align: start; }
}

/* news: image-led lead and quieter updates column */
.page-home .home-news { padding-block: var(--section); margin-top: var(--section); background: var(--surface); border-block: 1px solid var(--rule); }
.page-home .home-news + section { padding-top: var(--section); }
.news-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.news-lead .card-title { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.news-latest { background: var(--bg); border-radius: var(--r-lg); padding: 24px 26px 18px; border: 1px solid var(--rule); }
.rail-title { font-size: var(--fs-2); font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t-war); box-shadow: 0 0 0 4px rgba(178, 58, 48, .14); }
.latest-list { list-style: none; margin: 0 0 8px; padding: 0; }
.latest-list li + li { border-top: 1px solid var(--rule); }
.latest-list a { display: block; padding: 16px 0; text-decoration: none; color: var(--ink); }
.latest-list time { display: block; font-size: var(--fs-0); color: var(--muted); margin-bottom: 4px; }
.latest-list span { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; display: block; }
.latest-list a:hover span { color: var(--blue); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* featured history: one prominent feature with supporting stories */
.feature-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.feature-rows .card-row:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; gap: 12px; } .feature-rows .card-row:first-child { border-top: 1px solid var(--rule); padding-top: 20px; } }

/* battles: orderly image-led grid */
.battle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.battle-grid .card-media { aspect-ratio: 16 / 10; }
@media (max-width: 960px) { .battle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .battle-grid { grid-template-columns: 1fr; } }

/* discover: on this day + map */
.discover-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.discover-otd { display: flex; flex-direction: column; min-width: 0; padding-top: 4px; }
.panel-title { font-size: var(--fs-4); font-weight: 800; display: flex; align-items: center; gap: .45em; margin-bottom: .35em; }
.panel-title .icon { color: var(--blue); }
.panel-intro { color: var(--muted); margin: 0; }
.discover-otd .more { margin-top: auto; padding-top: 12px; }
.discover-map { background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); min-width: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 28px; align-items: start; }
.home-map-frame { display: block; position: relative; background: #E6ECF2; border-radius: var(--r); overflow: hidden; aspect-ratio: 1000 / 1072; width: 100%; border: 1px solid var(--rule); }
.home-map-frame .basemap, .home-map-frame .map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-map-frame .dot { fill: var(--t); stroke: #fff; stroke-width: 2; }
.home-map-frame:hover { border-color: var(--blue); }
@media (max-width: 1100px) { .discover-map { grid-template-columns: 1fr; } .home-map-frame { max-height: 560px; } }
@media (max-width: 860px) { .discover-grid { grid-template-columns: 1fr; } }

/* reading: guides and analysis */
.reading-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.reading-grid > :only-child { grid-column: 1 / -1; }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list > li:first-child .card-row { border-top: 0; padding-top: 0; }
.analysis-list .card-row { grid-template-columns: 1fr minmax(90px, 120px); padding-block: 22px; }
.analysis-list .card-row:first-child { border-top: 0; padding-top: 0; }
.analysis-list .card-row .card-media { order: 2; }
.analysis-list .card-title { font-size: 1.3125rem; line-height: 1.3; }
@media (max-width: 900px) { .reading-grid { grid-template-columns: 1fr; } }

/* partner content: clearly separated block */
.partner-box { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 44px); background: var(--surface); }
.partner-box .section-title { font-size: var(--fs-4); }
.partner-intro { color: var(--muted); }
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.partner-grid .card-media { aspect-ratio: 16 / 9; background: #fff; }
.partner-grid .card-title { font-size: 1.125rem; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .partner-grid { grid-template-columns: 1fr; } }

/* ---------- on this day */
.otd-today { font-size: var(--fs-2); color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.otd-list { list-style: none; margin: 0 0 6px; padding: 0; }
.otd-list li { display: grid; grid-template-columns: 5.2em 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--rule); }
.otd-list .otd-year { font-size: 1.75rem; font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -.01em; }
.otd-list .otd-ago { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; margin-top: 6px; letter-spacing: 0; }
.otd-list a { color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.45; }
.otd-list a:hover { color: var(--blue); text-decoration: underline; }
.otd-list .otd-day { display: block; font-size: var(--fs-0); color: var(--muted); }
.otd-list .otd-note { color: var(--muted); font-size: var(--fs-1); }
.otd-noscript { display: block !important; }
.otd-page { background: var(--surface); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); margin-bottom: 40px; }
.otd-page .otd-today { color: var(--ink); font-size: var(--fs-4); font-weight: 800; margin-bottom: 12px; }
.month-nav ul { list-style: none; padding: 0; margin: 0 0 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.month-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border: 1px solid var(--rule-2); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--ink-2); font-size: var(--fs-1); font-weight: 500; }
.month-nav a:hover { border-color: var(--blue); color: var(--blue); }
.otd-month { margin-bottom: 48px; scroll-margin-top: 90px; }
.otd-month h2 { font-size: var(--fs-4); font-weight: 800; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.otd-days { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 36px; }
.otd-days > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-content: start; scroll-margin-top: 90px; }
.otd-days dt { font-weight: 700; grid-row: span 9; color: var(--ink); font-size: var(--fs-1); }
.otd-days dd { margin: 0; grid-column: 2; line-height: 1.45; }
.otd-year { font-weight: 700; color: var(--blue); margin-inline-end: .35em; }
.otd-kind { display: block; font-size: var(--fs-0); color: var(--muted); }
.otd-days > div.is-today { background: var(--blue-soft); box-shadow: 0 0 0 8px var(--blue-soft); border-radius: 2px; }
@media (max-width: 520px) { .otd-days > div { grid-template-columns: 1fr; } .otd-days dt { grid-row: auto; } .otd-days dd { grid-column: 1; } }

/* ---------- records index */
.index-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-bottom: 72px; }
.period-nav { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.period-nav ul { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--rule); }
.period-nav a { display: block; padding: 10px 16px; text-decoration: none; color: var(--ink-2); border-inline-start: 2px solid transparent; margin-inline-start: -1px; line-height: 1.3; font-weight: 500; font-size: var(--fs-1); }
.period-nav a:hover { border-color: var(--blue); color: var(--blue); }
.period-nav small { display: block; color: var(--muted); font-size: var(--fs-0); margin-top: 3px; font-weight: 400; }
.index-group { margin-bottom: 64px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.index-group > h2, .tl-period > h2 { font-size: var(--fs-5); font-weight: 800; display: flex; flex-direction: column; gap: 4px; margin-bottom: 28px; }
.index-group > h2 small, .tl-period > h2 small { order: -1; font-size: var(--fs-1); font-weight: 700; color: var(--blue); }
.event-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.event-list li { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--rule); padding: 14px 0; }
.event-list a { flex: 1; display: grid; grid-template-columns: 11.5em 1fr; gap: 18px; text-decoration: none; color: var(--ink); min-width: 0; }
.event-list a:hover .ev-title { color: var(--blue); }
.ev-date { color: var(--muted); font-size: var(--fs-1); }
.ev-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.ev-type { font-size: var(--fs-0); color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) {
  .index-layout { grid-template-columns: 1fr; gap: 0; }
  .period-nav { position: static; margin-bottom: 36px; }
  .period-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; }
  .period-nav a { border: 1px solid var(--rule-2); border-radius: var(--r); margin: 0; padding: 9px 12px; font-size: var(--fs-0); min-height: 44px; }
}
@media (max-width: 560px) { .event-list a { grid-template-columns: 1fr; gap: 3px; } .event-list li { flex-direction: column; gap: 4px; } }

/* ---------- timeline */
.tl-controls { position: sticky; top: var(--nav-h); z-index: 20; background: var(--bg); padding: 16px 0 8px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.tl-status, .results-status { font-size: var(--fs-1); color: var(--muted); margin: 4px 0 10px; font-weight: 500; }
.tl-axis { margin-bottom: 52px; }
.tl-axis ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.tl-axis li { min-width: 0; }
.tl-axis a { display: block; height: 100%; padding: 14px 14px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid transparent; text-decoration: none; color: var(--ink); line-height: 1.3; position: relative; overflow: hidden; }
.tl-axis a::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); opacity: .5; }
.tl-axis a:hover { border-color: var(--blue); background: #fff; }
.tl-axis-range { display: block; font-size: var(--fs-0); color: var(--blue); font-weight: 700; }
.tl-axis-label { display: block; font-weight: 600; font-size: var(--fs-1); margin: 4px 0; }
.tl-axis-count { display: block; font-size: var(--fs-0); color: var(--muted); }
.tl-period { margin-bottom: 60px; scroll-margin-top: calc(var(--nav-h) + 160px); }
.tl-list { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-list::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: calc(10.5em + 23px); width: 2px; background: var(--rule); }
.tl-item { display: grid; grid-template-columns: 10.5em 1fr; gap: 0 48px; position: relative; padding-bottom: 30px; scroll-margin-top: calc(var(--nav-h) + 160px); }
.tl-item::before { content: ""; position: absolute; top: 7px; inset-inline-start: calc(10.5em + 18px); width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--t); }
.tl-item.is-major::before { background: var(--t); width: 14px; height: 14px; inset-inline-start: calc(10.5em + 17px); top: 6px; }
.tl-date { font-size: var(--fs-1); color: var(--muted); font-weight: 600; text-align: end; padding-top: 1px; line-height: 1.4; }
.tl-card .kicker { color: var(--t); margin-bottom: .3em; }
.tl-card h3 { font-size: 1.1875rem; margin-bottom: .3em; }
.tl-card h3 a { color: var(--ink); text-decoration: none; }
.tl-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.tl-card p:last-child { color: var(--muted); font-size: var(--fs-1); margin: 0; max-width: 46em; }
.tl-item.is-major .tl-card h3 { font-size: 1.375rem; font-weight: 800; }
.tl-item:target .tl-card { background: var(--blue-soft); box-shadow: 0 0 0 10px var(--blue-soft); border-radius: 2px; }
.tl-item[hidden], .tl-period[hidden] { display: none; }
@media (max-width: 680px) {
  .tl-controls { position: static; }
  .tl-axis ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-list::before { inset-inline-start: 6px; }
  .tl-item { grid-template-columns: 1fr; padding-inline-start: 32px; }
  .tl-item::before, .tl-item.is-major::before { inset-inline-start: 0; }
  .tl-date { text-align: start; font-size: var(--fs-0); margin-bottom: 2px; }
}

/* ---------- explore */
.explore-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; padding-bottom: 72px; align-items: start; }
.explore-form { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 20px; background: var(--surface); border-radius: var(--r-lg); padding: 24px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: var(--fs-1); margin: 0; cursor: pointer; line-height: 1.3; min-height: 36px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; flex: none; }
.check .type-dot { margin: 0; }
.form-actions { display: flex; gap: 8px; }
.result-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.result, .result-list > li { border-bottom: 1px solid var(--rule); }
.result a, .result-list li > a { display: grid; grid-template-columns: 1fr; padding: 20px 12px; margin-inline: -12px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.result .kicker { color: var(--t); margin-bottom: 6px; }
.result-title { display: block; font-size: 1.1875rem; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.result-text { display: block; color: var(--muted); font-size: var(--fs-1); max-width: 48em; }
.result a:hover .result-title, .result-list li > a:hover .result-title { color: var(--blue); }
.result a:hover, .result-list li > a:hover { background: var(--surface); }
.result[hidden] { display: none; }
.filters > summary { cursor: pointer; font-weight: 700; font-size: var(--fs-2); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.filters[open] > summary::after { content: "\2212"; }
.filters-body { display: grid; gap: 20px; margin-top: 12px; }
@media (min-width: 901px) { .filters > summary { display: none; } .filters-body { margin-top: 0; } }
@media (max-width: 900px) { .explore-layout { grid-template-columns: 1fr; gap: 28px; } .explore-form { position: static; padding: 18px; } .filters { border-top: 1px solid var(--rule); padding-top: 8px; } }

/* ---------- search */
.search-form { margin-bottom: 20px; }
.search-form input { font-size: var(--fs-3); min-height: 60px; }
.hint { font-size: var(--fs-0); color: var(--muted); margin-top: 8px; }
mark { background: #FFF1B8; color: inherit; padding: 0 .05em; border-radius: 2px; }

/* ---------- maps */
.map-app { padding-bottom: 72px; }
.map-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--surface); border-radius: var(--r); padding: 4px; gap: 4px; max-width: 100%; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: var(--fs-1); font-weight: 600; color: var(--muted); min-height: 40px; }
.seg button[aria-selected="true"] { background: #fff; color: var(--blue); box-shadow: 0 1px 2px rgba(20, 34, 55, .12); }
.seg button:hover:not([aria-selected="true"]) { color: var(--ink); }
.select-inline { display: flex; align-items: center; gap: 10px; margin: 0; }
.select-inline span { margin: 0; white-space: nowrap; }
.select-inline select { width: auto; min-width: 220px; }
.map-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.map-stage { position: relative; width: 100%; background: #E6ECF2; border-radius: var(--r-lg); border: 1px solid var(--rule); overflow: hidden; max-height: 84vh; margin-inline: auto; }
.map-stage .basemap, .map-stage .map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.basemap .sea { fill: #E6ECF2; } .basemap .land { fill: #FFFFFF; stroke: #B5C0CC; stroke-width: .6; }
.basemap .lake { fill: #D4E1EC; stroke: #AFC2D3; stroke-width: .5; } .basemap .river { fill: none; stroke: #A7BFD5; stroke-width: 1; }
.basemap .border { fill: none; stroke: #8794A4; stroke-width: 1; stroke-dasharray: 4 3; } .basemap .border.disputed { stroke-dasharray: 1.5 3; stroke: #9AA6B4; }
.map-label { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: #7A8797; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; }
.lang-he .map-label { letter-spacing: 0; font-size: 17px; }
.map-label-sm { font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: none; fill: #677486; }
.lang-he .map-label-sm { font-size: 13px; }
.pin { cursor: pointer; outline: none; }
.pin circle { fill: var(--t, var(--t-battle)); stroke: #fff; stroke-width: 2.4; transition: stroke-width .15s; }
.pin text { font: 700 10px var(--sans); fill: #fff; text-anchor: middle; pointer-events: none; }
.pin-war, .pin-conflict, .pin-uprising, .pin-riots, .pin-campaign { --t: var(--t-war); }
.pin-battle, .pin-operation, .pin-incident { --t: var(--t-battle); }
.pin-attack { --t: var(--t-attack); }
.pin:hover circle { stroke: var(--ink); stroke-width: 3; }
.pin:focus-visible circle { stroke: var(--ink); stroke-width: 4.5; }
.pin.is-active circle { stroke: var(--ink); stroke-width: 4.5; }
.pin.is-dim { opacity: .16; }
.map-panel { background: var(--surface); border-radius: var(--r-lg); padding: 22px; min-height: 180px; position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; }
.map-panel h3 { font-size: 1.25rem; display: flex; gap: 6px; align-items: center; }
.map-panel ul { list-style: none; margin: 0; padding: 0; }
.map-panel li a { display: block; padding: 12px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.map-panel li a:hover .result-title { color: var(--blue); }
.map-panel .result-title { font-size: 1.0625rem; }
.map-panel-empty { color: var(--muted); margin: 0; }
.map-note { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-0); color: var(--ink-2); margin: 16px 0 10px; max-width: 62em; background: var(--blue-soft); padding: 12px 14px; border-radius: var(--r); }
.map-note .icon { color: var(--blue); margin-top: 2px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-0); color: var(--ink-2); margin-bottom: 48px; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--rule-2); }
.lg-war { background: var(--t-war); } .lg-battle { background: var(--t-battle); } .lg-attack { background: var(--t-attack); }
.map-lists { columns: 2 340px; column-gap: 48px; }
.map-lists > h2 { column-span: all; font-size: var(--fs-4); font-weight: 800; margin-bottom: 24px; }
.place-group { margin-bottom: 28px; break-inside: avoid; }
.place-group h3 { font-size: 1.125rem; display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.place-group h3 .icon { color: var(--blue); }
.place-group h3 small { font-weight: 400; color: var(--muted); font-size: var(--fs-0); }
.place-group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.place-group li { border-bottom: 1px solid var(--rule); }
.place-group li a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); }
.place-group li a:hover .result-title { color: var(--blue); }
.place-group .result-title { font-size: 1.0625rem; }
.place-group [hidden] { display: none; }
@media (max-width: 900px) { .map-body { grid-template-columns: 1fr; } .map-panel { position: static; max-height: none; } .select-inline select { min-width: 0; } }
@media (max-width: 520px) { .map-toolbar { flex-direction: column; align-items: stretch; } .seg { display: grid; grid-template-columns: 1fr 1fr; } .seg button { padding: 8px; font-size: var(--fs-0); } .select-inline { display: grid; grid-template-columns: auto 1fr; } .select-inline select { width: 100%; } }

/* ---------- article pages */
.article-head { padding-block: 40px 30px; }
.article-head h1 { font-size: var(--fs-6); font-weight: 800; max-width: 21ch; margin-bottom: .35em; line-height: 1.08; letter-spacing: -.022em; }
.lang-he .article-head h1 { max-width: 22ch; line-height: 1.16; letter-spacing: -.005em; }
.article-head .dek { max-width: 38em; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; font-size: var(--fs-1); color: var(--muted); margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); max-width: 100%; }
.meta-line .icon { color: var(--blue); margin-inline-end: 3px; }
.meta-line time { color: var(--muted); }
.hero-figure { margin: 0 0 48px; }
.hero-figure img { width: 100%; height: auto; background: var(--surface); border-radius: var(--r-lg); }
.hero-figure figcaption { font-size: var(--fs-0); color: var(--muted); margin-top: 12px; max-width: 62em; line-height: 1.55; }
.img-kind { display: inline-block; font-weight: 600; font-size: .75rem; color: var(--ink-2); background: var(--surface); padding: 1px 8px; border-radius: 4px; margin-inline-end: 6px; vertical-align: 1px; }
.lang-he .img-kind { font-size: .8125rem; }
.img-kind-archival { background: var(--navy); color: #fff; }
.credit { display: inline-block; }
.period-band { height: clamp(80px, 11vw, 150px); overflow: hidden; margin: 0 auto 48px; max-width: calc(var(--wrap-wide) + 2 * var(--gutter)); padding-inline: var(--gutter); }
.period-band img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 80px); padding-bottom: 72px; align-items: stretch; }
.article-layout > .article-aside { order: 2; }
.article-layout-single { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }
.article-main { min-width: 0; }
.article-aside { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.article-aside .toc { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 1023px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-layout > .article-aside { order: 0; }
  .article-aside .toc { position: static; }
}
.facts { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 20px 22px 22px; font-size: var(--fs-1); background: var(--bg); }
.facts > h2 { font-size: var(--fs-2); font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.facts dl { margin: 0; }
.facts dl > div { padding: 11px 0; border-top: 1px solid var(--rule); display: grid; gap: 3px; }
.facts dl > div:first-child { border-top: 0; }
.facts dt { font-size: var(--fs-0); color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; color: var(--ink); line-height: 1.5; font-weight: 500; }
.facts dd ul { margin: 0; padding-inline-start: 1.1em; }
.facts dd li { margin-bottom: 2px; }
.facts-links { margin: 16px 0 0; font-size: var(--fs-1); font-weight: 600; }
.mini-map { margin: 16px 0 0; }
.mini-map-frame { background: #E6ECF2; border-radius: var(--r); overflow: hidden; aspect-ratio: 300 / 220; }
.mini-map-frame svg { width: 100%; height: 100%; display: block; }
.pin-dot { fill: var(--t-war); stroke: #fff; stroke-width: 2.5; }
.pin-ring { fill: none; stroke: var(--t-war); stroke-width: 1.5; opacity: .5; }
.mini-map figcaption { font-size: var(--fs-0); color: var(--muted); margin-top: 8px; }

.toc { border-inline-start: 2px solid var(--rule); padding: 2px 0 2px 18px; }
[dir="rtl"] .toc { padding: 2px 18px 2px 0; }
.toc h2 { font-size: var(--fs-1); font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.toc ol { margin: 0; padding: 0; list-style: none; font-size: var(--fs-1); }
.toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--blue); }
.article-layout-single .toc { margin-bottom: 32px; }

.prose { font-size: 1.15625rem; line-height: 1.8; max-width: 70ch; color: var(--ink); overflow-wrap: break-word; }
.lang-he .prose { font-size: 1.21875rem; line-height: 1.9; max-width: 66ch; }
.prose > p:first-child { font-size: 1.3125rem; line-height: 1.65; color: var(--ink); font-weight: 400; }
.lang-he .prose > p:first-child { font-size: 1.375rem; }
.prose h2 { font-size: var(--fs-4); font-weight: 800; margin: 2.1em 0 .6em; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h3 { font-size: 1.25rem; margin: 1.7em 0 .45em; scroll-margin-top: calc(var(--nav-h) + 24px); color: var(--ink); }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; padding-inline-start: .2em; }
.prose li::marker { color: var(--blue); }
.prose blockquote { margin: 1.6em 0; padding: .2em 1.3em; border-inline-start: 3px solid var(--blue); font-size: 1.25rem; color: var(--ink-2); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose a { color: var(--link); }
.prose img { margin: 1.4em 0; border-radius: var(--r); }
.prose p > img { margin: 1.5rem auto .5rem; background: var(--surface); }
.prose ul:has(> li > strong:first-child) { list-style: none; padding: 0; margin-top: 1.2em; position: relative; border-inline-start: 2px solid var(--rule); margin-inline-start: 6px; }
.prose ul:has(> li > strong:first-child) > li { position: relative; padding-inline-start: 24px; margin-bottom: 1.1em; }
.prose ul:has(> li > strong:first-child) > li::before { content: ""; position: absolute; top: .62em; inset-inline-start: -7px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.prose ul:has(> li > strong:first-child) > li > strong:first-child { display: block; font-size: var(--fs-1); color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--rule); border-radius: var(--r); max-width: 100%; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-1); line-height: 1.5; }
.prose th, .prose td { padding: 11px 13px; border-bottom: 1px solid var(--rule); text-align: start; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.sub-events { margin-top: 56px; max-width: 70ch; }
.sub-events h2 { font-size: var(--fs-4); font-weight: 800; }
.sub-events .event-list a { grid-template-columns: 9em 1fr; }
@media (max-width: 560px) { .sub-events .event-list a { grid-template-columns: 1fr; } }
.evidence-note { margin-top: 52px; max-width: 70ch; background: var(--surface); border-radius: var(--r-lg); padding: 18px 22px; font-size: var(--fs-1); }
.evidence-note h2 { font-size: var(--fs-1); font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.evidence-note p { margin: 0; color: var(--ink-2); }
.sources { margin-top: 32px; font-size: var(--fs-1); max-width: 70ch; }
.sources h2 { font-size: 1.25rem; }
.sources ol { padding-inline-start: 1.4em; color: var(--ink-2); margin: 0; }
.byline-foot { margin-top: 32px; font-size: var(--fs-0); color: var(--muted); padding-top: 14px; border-top: 1px solid var(--rule); max-width: 70ch; }
.partner-label { background: var(--navy); color: #fff; padding: 3px 10px; border-radius: 4px; font-weight: 600; }
.partner-notice { margin-top: 48px; background: var(--surface); border-radius: var(--r-lg); padding: 16px 20px; font-size: var(--fs-1); color: var(--ink-2); max-width: 70ch; }
.partner-notice p { margin: 0; }
.related { background: var(--surface); border-top: 1px solid var(--rule); padding-block: 56px 72px; }
.related .section-title { font-size: var(--fs-4); margin-bottom: 28px; }
.related .card-media { background: #fff; }
.static-page { padding-bottom: 72px; }
.static-page .article-head h1 { font-size: var(--fs-5); }
.static-page .prose { max-width: 70ch; }
.pager { display: flex; justify-content: center; gap: 22px; align-items: center; margin: 48px 0 72px; font-size: var(--fs-1); }
.pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-2); border-radius: var(--r); text-decoration: none; font-weight: 600; }
.list-grid { padding-bottom: 32px; }
.list-grid > .card-lg { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: center; border-bottom: 1px solid var(--rule); padding-bottom: 40px; }
.list-grid > .card-lg .card-media { margin: 0; }
@media (max-width: 800px) { .list-grid > .card-lg { grid-template-columns: 1fr; gap: 0; } .list-grid > .card-lg .card-media { margin-bottom: 18px; } }
.notfound { padding-block: 72px 88px; }
.notfound h1 { font-size: var(--fs-6); font-weight: 800; }
.notfound .search-inline { margin: 28px 0; max-width: 560px; }

/* ---------- footer */
.site-footer { background: var(--navy); color: #C6CEDA; margin-top: 0; font-size: var(--fs-1); }
.page-home .site-footer, .related + .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 64px; padding-block: 64px 44px; }
.footer-about img { height: 40px; width: auto; margin-bottom: 20px; }
.footer-about p { max-width: 30em; color: #AAB5C4; line-height: 1.7; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.site-footer h2 { font-size: var(--fs-1); font-weight: 700; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; columns: 2 150px; column-gap: 24px; }
.site-footer li { padding: 5px 0; break-inside: avoid; }
.site-footer a, .site-footer .linklike { color: #D5DCE6; text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 30px; font-size: var(--fs-0); color: #94A0B1; }
.footer-bottom p { margin: 0; }
.footer-bottom::before { content: ""; position: absolute; top: 0; inset-inline: var(--gutter); height: 1px; background: #2A3C57; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }
main + .site-footer { margin-top: 56px; }
.page-home main + .site-footer, .page-record main + .site-footer, .page-article main + .site-footer { margin-top: 0; }

/* ---------- consent */
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-inline-start: auto; background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; font-size: var(--fs-1); }
.consent p { margin: 0 0 14px; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

@media print {
  .site-header, .site-footer, .consent, .toc, .related, .map-panel, .preview-bar, .skip { display: none !important; }
  body { background: #fff; }
  .article-layout { display: block; }
  .facts { margin-bottom: 24px; }
  a { color: inherit; }
}
@media (min-width: 900px) { .hero-figure img { aspect-ratio: 2 / 1; object-fit: cover; } }
.index-group .grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

/* video embed: click-to-load, nothing from YouTube is fetched in a frame until the reader presses play */
.video-embed { margin: 44px 0 0; max-width: 70ch; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); }
.video-facade { position: absolute; inset: 0; display: block; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.video-facade:hover img { opacity: 1; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-facade:hover .video-play rect, .video-facade:focus-visible .video-play rect { fill: var(--blue); opacity: 1; }
.video-facade:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed figcaption { font-size: var(--fs-0); color: var(--muted); margin-top: 12px; line-height: 1.55; }
.video-notice { display: block; margin-top: 4px; color: var(--faint); }
.prose .video-embed { margin: 2.2em 0 2.4em; }
.prose .video-embed img { margin: 0; border-radius: 0; }
.prose .video-embed figcaption { font-size: var(--fs-0); line-height: 1.55; }

/* partner content widget inside news reports */
.prose .partner-widget { margin: 1.8em 0 2em; padding: 16px 18px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); font-size: 1rem; line-height: 1.4; }
.partner-widget-label { margin: 0 0 12px !important; font-size: var(--fs-0) !important; font-weight: 700; line-height: 1.3 !important; color: var(--muted) !important; }
.partner-widget-label a { color: inherit; text-decoration: none; }
.partner-widget-label a:hover { color: var(--blue); text-decoration: underline; }
.partner-widget-list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.partner-widget-list li { margin: 0 !important; padding: 0 !important; }
.partner-widget-list li::marker { content: none; }
.pw-item { display: flex; flex-direction: column; gap: 9px; text-decoration: none; color: var(--ink); height: 100%; }
.pw-thumb { display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #fff; }
.prose .pw-thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .35s ease; }
.pw-item:hover .pw-thumb img { transform: scale(1.03); }
.pw-title { font-size: 1rem; font-weight: 600; line-height: 1.38; }
.lang-he .pw-title { font-size: 1.0625rem; }
.pw-item:hover .pw-title { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
@media (prefers-reduced-motion: reduce) { .pw-item:hover .pw-thumb img { transform: none; } }
@media (max-width: 640px) {
  .partner-widget-list { grid-template-columns: 1fr; gap: 0; }
  .partner-widget-list li + li { border-top: 1px solid var(--rule); }
  .pw-item { flex-direction: row; align-items: center; gap: 14px; padding: 10px 0; }
  .partner-widget-list li:first-child .pw-item { padding-top: 0; }
  .partner-widget-list li:last-child .pw-item { padding-bottom: 0; }
  .pw-thumb { flex: 0 0 104px; }
}
.prose .pw-item, .prose .pw-item:visited { color: var(--ink); text-decoration: none; }
.prose .pw-item:hover .pw-title { color: var(--blue); }
.prose .partner-widget-label { font-size: .875rem !important; letter-spacing: .01em; }
/* source document figure inside an article */
.prose img.doc-figure { display: block; width: 100%; height: auto; margin: 1.8em 0 .6em; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
.prose p:has(> img.doc-figure) { margin: 0; }
.prose .doc-caption { display: block; font-size: var(--fs-0); font-style: normal; color: var(--muted); line-height: 1.55; margin-bottom: 2em; }

.video-frame-native video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; display: block; }
