/* ============================================================
   הכותרת — design system
   Ink-navy + amber newspaper. Frank Ruhl Libre display, Heebo body.
   ============================================================ */

/* --- fonts (self-hosted, Hebrew + Latin subsets, variable) --- */
@font-face {
  font-family: 'Frank Ruhl Libre';
  src: url('/assets/fonts/frankruhllibre-he.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
  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';
  src: url('/assets/fonts/frankruhllibre-latin.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Heebo';
  src: url('/assets/fonts/heebo-he.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  src: url('/assets/fonts/heebo-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* --- tokens --- */
:root {
  --ink:        #0A1F3C;
  --ink-soft:   #1B3A63;
  --ink-line:   #17325A;
  --amber:      #C9861B;
  --amber-deep: #A2670C;
  --amber-wash: #FDF6E9;
  --paper:      #FFFFFF;
  --tint:       #F5F7FA;
  --tint-2:     #EDF1F6;
  --rule:       #DFE5EC;
  --rule-soft:  #EAEEF3;
  --body:       #1E2A38;
  --muted:      #5A6B80;
  --live:       #C0392B;

  --ff-display: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --ff-sans:    'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gut: 22px;
  --r: 3px;                       /* newspapers do not have rounded corners */
  --shadow-1: 0 1px 2px rgba(10,31,60,.06), 0 3px 12px rgba(10,31,60,.05);
  --shadow-2: 0 4px 14px rgba(10,31,60,.08), 0 18px 44px rgba(10,31,60,.09);
}

/* --- reset + the 3-layer horizontal-scroll guard --- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  min-height: 100%; width: 100%; max-width: 100vw;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  position: relative;
  transform: translateZ(0);
  background: var(--paper);
  color: var(--body);
  font-family: var(--ff-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-soft); text-decoration-color: rgba(201,134,27,.5); text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }
h1, h2, h3, h4, p, li { overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--ink); line-height: 1.24; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.005em; }
p { margin: 0 0 1.15em; }
button { font: inherit; }
::selection { background: var(--amber); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============================================================
   MASTHEAD — centered serif wordmark between hairlines
   ============================================================ */
.mast { background: var(--paper); border-bottom: 1px solid var(--rule); }

.mast__strip {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  font-size: 12.5px; letter-spacing: .02em;
}
.mast__strip-in { display: flex; align-items: center; gap: 14px; height: 34px; }
.mast__date { font-weight: 400; white-space: nowrap; }
.mast__live {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--live); color: #fff;
  font-weight: 700; font-size: 11px; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 2px; white-space: nowrap;
}
.mast__live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; animation: pulse 1.9s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.mast__ticker { flex: 1; min-width: 0; overflow: hidden; }
.mast__ticker span {
  display: block; white-space: nowrap; color: rgba(255,255,255,.8);
  animation: tick 34s linear infinite;
}
@keyframes tick { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .mast__ticker span { animation: none; white-space: normal; }
  .mast__live::before { animation: none; }
}

.mast__brand { text-align: center; padding: 26px 0 18px; }
.mast__logo {
  display: inline-block; text-decoration: none;
  font-family: var(--ff-display); font-weight: 900;
  font-size: clamp(38px, 8.5vw, 62px); line-height: 1;
  color: var(--ink); letter-spacing: -.02em;
}
.mast__logo::after {
  content: ''; display: block; height: 3px; margin-top: 9px;
  background: linear-gradient(90deg, transparent, var(--amber) 18%, var(--amber) 82%, transparent);
}
.mast__tagline {
  margin-top: 9px; font-size: 12.5px; letter-spacing: .16em;
  color: var(--muted); font-weight: 500;
}

.mast__nav { border-top: 1px solid var(--rule); background: var(--paper); }
.mast__nav-in {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mast__nav-in::-webkit-scrollbar { display: none; }
.mast__nav a {
  flex: none; padding: 13px 15px; font-size: 15px; font-weight: 500;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent; transition: .16s;
}
.mast__nav a:hover, .mast__nav a[aria-current="page"] {
  color: var(--amber-deep); border-bottom-color: var(--amber);
}

/* compact masthead — used on the funnel + thank-you routes */
.mast--slim .mast__brand { padding: 15px 0 13px; }
.mast--slim .mast__logo { font-size: clamp(26px, 6vw, 34px); }
.mast--slim .mast__logo::after { height: 2px; margin-top: 6px; }
.mast--slim .mast__tagline, .mast--slim .mast__nav { display: none; }

/* ============================================================
   SHARED BITS
   ============================================================ */
.kicker {
  display: inline-block; font-family: var(--ff-sans);
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--amber-deep); text-transform: none; margin-bottom: 8px;
}
.sec-head {
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 22px;
}
.sec-head h2 { font-size: 22px; margin: 0; font-weight: 800; }
.sec-head span { font-size: 13px; color: var(--muted); }

.meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.meta__sep { opacity: .4; }
.cat-tag {
  display: inline-block; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  padding: 3px 9px; border-radius: 2px; text-decoration: none;
}
.cat-tag--amber { background: var(--amber); }
.cat-tag:hover { color: #fff; background: var(--amber-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--amber); color: #fff; font-weight: 700; font-size: 17px;
  padding: 14px 28px; border: 0; border-radius: var(--r); cursor: pointer;
  text-decoration: none; transition: .16s; box-shadow: 0 2px 0 var(--amber-deep);
}
.btn:hover { background: var(--amber-deep); color: #fff; box-shadow: 0 2px 0 #7d4f08; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--ink { background: var(--ink); box-shadow: 0 2px 0 #06162B; }
.btn--ink:hover { background: var(--ink-soft); box-shadow: 0 2px 0 #06162B; }
.btn--wide { width: 100%; }

/* ============================================================
   HOMEPAGE
   ============================================================ */
.home { padding: 30px 0 10px; }
.lead-grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .lead-grid { grid-template-columns: 1fr; gap: 26px; } }

.lead-story { border-bottom: 1px solid var(--rule); padding-bottom: 26px; }
.lead-story__fig { position: relative; margin: 0 0 16px; overflow: hidden; border-radius: var(--r); background: var(--tint-2); }
.lead-story__fig img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.lead-story__fig .cat-tag { position: absolute; inset-inline-start: 12px; top: 12px; }
.lead-story h2 { font-size: clamp(27px, 4.3vw, 40px); font-weight: 900; margin-bottom: 12px; }
.lead-story h2 a { color: inherit; text-decoration: none; }
.lead-story h2 a:hover { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--amber); }
.lead-story__sub { font-size: 18.5px; color: #40506A; margin-bottom: 12px; }

.side-list { display: grid; gap: 0; }
.side-list__item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--rule-soft); }
.side-list__item:first-child { padding-top: 0; }
.side-list__item img { width: 92px; height: 68px; object-fit: cover; border-radius: var(--r); background: var(--tint-2); }
.side-list__item h3 { font-size: 17px; font-weight: 700; margin: 0 0 5px; line-height: 1.32; }
.side-list__item h3 a { color: inherit; text-decoration: none; }
.side-list__item h3 a:hover { color: var(--amber-deep); }

.most-read { background: var(--tint); border-top: 3px solid var(--ink); padding: 18px; margin-top: 26px; }
.most-read h3 { font-size: 17px; margin: 0 0 12px; }
.most-read ol { margin: 0; padding: 0; list-style: none; counter-reset: mr; }
.most-read li { counter-increment: mr; display: grid; grid-template-columns: 26px 1fr; gap: 11px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15.5px; line-height: 1.45; }
.most-read li:first-child { border-top: 0; padding-top: 0; }
.most-read li::before { content: counter(mr); font-family: var(--ff-display); font-weight: 900; font-size: 22px; color: var(--amber); line-height: 1; }
.most-read a { color: var(--ink); text-decoration: none; font-weight: 500; }
.most-read a:hover { color: var(--amber-deep); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 34px 0 10px; }
@media (max-width: 860px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 540px) { .card-grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; }
.card__fig { margin: 0 0 12px; overflow: hidden; border-radius: var(--r); background: var(--tint-2); }
.card__fig img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__fig img { transform: scale(1.035); }
.card h3 { font-size: 19.5px; font-weight: 700; margin: 8px 0 7px; line-height: 1.32; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--amber-deep); }
.card p { font-size: 15.5px; color: var(--muted); margin: 0 0 9px; }

/* homepage promo band → the panel */
.promo {
  margin: 40px 0 34px; background: var(--ink); color: #fff;
  border-radius: var(--r); padding: 30px 32px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
}
.promo::before {
  content: ''; position: absolute; inset-inline-end: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,134,27,.28), transparent 68%);
}
.promo__k { color: var(--amber); font-size: 12px; font-weight: 700; letter-spacing: .12em; margin-bottom: 7px; }
.promo h2 { color: #fff; font-size: clamp(21px, 3.2vw, 29px); margin: 0 0 7px; }
.promo p { color: rgba(255,255,255,.76); margin: 0; font-size: 16px; }
.promo .btn { position: relative; white-space: nowrap; }
@media (max-width: 720px) { .promo { grid-template-columns: 1fr; padding: 24px 20px; } }

/* ============================================================
   ARTICLE
   ============================================================ */
.art { padding: 26px 0 40px; }
.art__grid { display: grid; grid-template-columns: minmax(0,1fr) 312px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .art__grid { grid-template-columns: 1fr; gap: 30px; } }

.art__head { margin-bottom: 20px; }
.art h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; line-height: 1.16; margin: 10px 0 14px; }
.art__stamp {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--muted);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 10px 0; margin-top: 16px;
}
.art__share { display: flex; gap: 7px; margin-inline-start: auto; }
.art__share a {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--r);
  color: var(--muted); transition: .16s;
}
.art__share a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.hero-fig { position: relative; margin: 0 0 24px; border-radius: var(--r); overflow: hidden; background: var(--ink); }
.hero-fig img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.hero-fig__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,17,34,.92) 0%, rgba(6,17,34,.45) 34%, transparent 62%); pointer-events: none; }
.hero-fig__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 20px 22px; color: #fff; }
.hero-fig__tag {
  display: inline-block; background: var(--amber); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  padding: 4px 10px; border-radius: 2px; margin-bottom: 9px;
}
.hero-fig__txt { display: block; font-family: var(--ff-display); font-weight: 700; font-size: clamp(15px, 2.4vw, 19px); line-height: 1.4; }
.hero-fig__credit { display: block; margin-top: 8px; font-size: 11.5px; color: rgba(255,255,255,.62); }
.hero-fig__credit a { color: rgba(255,255,255,.7); }

.art__body { font-size: 18px; line-height: 1.85; color: var(--body); }
.art__body > p:first-of-type { font-size: 20px; }
.art__lede {
  font-size: 19.5px !important; font-weight: 500; color: var(--ink);
  border-inline-start: 4px solid var(--amber); padding-inline-start: 16px;
  margin-bottom: 24px !important;
}
.art__body h2 { font-size: clamp(22px, 3.4vw, 28px); margin: 34px 0 14px; }
.art__body h2::before {
  content: ''; display: block; width: 46px; height: 3px;
  background: var(--amber); margin-bottom: 12px;
}
.art__body ul { padding-inline-start: 20px; margin: 0 0 1.2em; }
.art__body li { margin-bottom: 9px; }
.art__body li::marker { color: var(--amber); }
.art__body figure { margin: 26px 0; }
.art__body figure img { width: 100%; border-radius: var(--r); }
.art__body figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; padding-inline-start: 10px; border-inline-start: 2px solid var(--rule); }

.pull {
  border-block: 2px solid var(--ink); padding: 18px 0; margin: 30px 0;
  font-family: var(--ff-display); font-size: clamp(19px, 3vw, 24px);
  font-weight: 700; line-height: 1.45; color: var(--ink);
}
.pull cite { display: block; font-family: var(--ff-sans); font-size: 14px; font-weight: 500; font-style: normal; color: var(--muted); margin-top: 9px; }

/* inline CTA rail inside the article body */
.rail {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--amber-wash); border: 1px solid #F0DFBE;
  border-inline-start: 4px solid var(--amber);
  padding: 16px 18px; margin: 28px 0; border-radius: var(--r);
}
.rail__txt { flex: 1; min-width: 200px; font-size: 16px; font-weight: 500; color: var(--ink); }
.rail .btn { font-size: 15.5px; padding: 11px 22px; }

/* age selector */
.ages { background: var(--tint); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px; margin: 28px 0; }
.ages__label { display: block; font-family: var(--ff-display); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 14px; }
.ages__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
@media (max-width: 520px) { .ages__row { grid-template-columns: repeat(2, 1fr); } }
.ages__pill {
  display: block; text-align: center; text-decoration: none;
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r);
  padding: 12px 6px; font-weight: 700; font-size: 16px; color: var(--ink); transition: .15s;
}
.ages__pill:hover { border-color: var(--amber); background: var(--amber); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-1); }
.ages__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* sidebar */
.aside { position: sticky; top: 18px; }
.side-cta {
  background: var(--ink); color: #fff; border-radius: var(--r);
  padding: 24px 22px; position: relative; overflow: hidden;
}
.side-cta::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px;
  background: linear-gradient(90deg, var(--amber), #E8B454);
}
.side-cta__k { color: var(--amber); font-size: 11.5px; font-weight: 700; letter-spacing: .11em; margin-bottom: 9px; }
.side-cta h3 { color: #fff; font-size: 21px; margin: 0 0 10px; line-height: 1.3; }
.side-cta p { color: rgba(255,255,255,.74); font-size: 15px; margin: 0 0 18px; }
.side-cta .btn { width: 100%; }
.side-cta__note { font-size: 12.5px; color: rgba(255,255,255,.55); text-align: center; margin: 12px 0 0; }
.side-cta__hr { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 18px 0 14px; }
.side-cta__minor { font-size: 13.5px; color: rgba(255,255,255,.68); margin: 0; }

.side-box { border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: 18px; margin-top: 22px; }
.side-box h3 { font-size: 17px; margin: 0 0 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--ink); color: rgba(255,255,255,.66); margin-top: 50px; font-size: 14.5px; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding: 40px 0 30px; }
@media (max-width: 760px) { .foot__top { grid-template-columns: 1fr; gap: 24px; } }
.foot__logo { font-family: var(--ff-display); font-weight: 900; font-size: 30px; color: #fff; margin-bottom: 10px; }
.foot p { margin: 0 0 10px; line-height: 1.7; }
.foot h4 { color: #fff; font-size: 15px; font-family: var(--ff-sans); font-weight: 700; letter-spacing: .05em; margin: 0 0 12px; }
.foot nav { display: grid; gap: 9px; }
.foot a { color: rgba(255,255,255,.72); text-decoration: none; }
.foot a:hover { color: var(--amber); }
.foot__bar { border-top: 1px solid rgba(255,255,255,.13); padding: 16px 0 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }
.foot__legal { font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 1.65; max-width: 78ch; margin: 0; }

/* section overflow guards — second line of defence */
.mast, .home, .art, .foot, .promo, .lead-grid, .panel-page { overflow-x: clip; max-width: 100%; }
