/* ============================================================
   Tirat Now — Master Stylesheet
   Brand: Navy #0B1426 + Signal Red #B91C1C + Heebo
   RTL-first news magazine layout
   ============================================================ */

/* ============================================================
   TYPOGRAPHY POLICY (18.4.2026):
   — BODY + TITLES + UI  = Heebo (var(--font-sans))   ← default everywhere
   — NUMERIC + DECORATIVE ACCENTS = Frank Ruhl Libre (var(--font-serif))
     used ONLY for: drop-caps, rank numbers, stats big numbers, 404 error-code,
     and any element opting in via class `.font-serif`.
   Rule of thumb: if you're adding body/reading text → use sans. If you're
   adding a standalone numeric display or a deliberate typographic accent →
   use serif.
   ============================================================ */
/* Self-hosted fonts (replaces the Google Fonts web load) — CLS fix 2026-06-13.
   Byte-identical Google woff2, hebrew+latin subsets, display:swap.
   Same-origin + preloaded (see default.hbs) => arrives before paint.
   25/10/2026 (speed round): the files ARE VARIABLE FONTS - heebo-{300..900}-hebrew.woff2 are
   one byte-identical file (wght axis 100-900), likewise each latin set and Frank Ruhl Libre
   (300-900) - yet each weight named its own URL, so one page fetched the same 12 KB / 30 KB
   file up to six times. Every face now names the -400- file: one download per subset, and
   the per-weight faces stay, so weight matching (600 -> the 700 face) renders exactly as
   before. The other weight files still ship; nothing references them. */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-400-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-400-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-400-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-400-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-400-latin.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-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/heebo-400-hebrew.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-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/heebo-400-latin.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-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/heebo-400-hebrew.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-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/heebo-400-latin.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-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/heebo-400-hebrew.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-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/heebo-400-latin.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-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/heebo-400-hebrew.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-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/heebo-400-latin.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-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/heebo-400-hebrew.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-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/heebo-400-latin.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-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/heebo-400-hebrew.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-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/heebo-400-latin.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;
}

/* Metric-matched fallback for Heebo — pre-swap text occupies the same width as
   Heebo (Hebrew size-adjust measured at 104.68% vs Arial), so any late font swap
   causes ~0 reflow. Weight range 100-900 so the 900 title is covered too.
   Belt-and-suspenders behind the same-origin preloaded fonts. CLS fix 2026-06-13. */
@font-face {
  font-family: 'Heebo Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Roboto'), local('Liberation Sans'), local('Segoe UI');
  font-weight: 100 900;
  font-style: normal;
  size-adjust: 104.68%;
  ascent-override: 100.11%;
  descent-override: 40.21%;
  line-gap-override: 0%;
}


/* ===== 1. TOKENS ===== */
:root {
    /* Brand */
    --navy-950: #070D1C;
    --navy-900: #0B1426;
    --navy-800: #101A30;
    --navy-700: #162035;
    --navy-600: #1E2B45;
    --navy-500: #2A3A58;
    --navy-400: #415073;

    --red-700: #991B1B;
    --red-600: #B91C1C;
    --red-500: #DC2626;
    --red-400: #EF4444;

    --blue-600: #2563EB;
    --blue-500: #3B82F6;
    --blue-400: #60A5FA;
    --blue-300: #93C5FD;

    --green-700: #047857;
    --green-600: #059669;
    --purple-600: #7C3AED;
    --amber-500: #F59E0B;

    --gray-50:  #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --white: #FFFFFF;
    --black: #000000;

    /* Semantic */
    --bg: var(--gray-50);
    --bg-card: var(--white);
    --bg-dark: var(--navy-900);
    --bg-darker: var(--navy-950);
    --text: var(--gray-900);
    --text-muted: var(--gray-600);
    --text-faded: var(--gray-400);
    --text-inverse: var(--white);
    --border: var(--gray-200);
    --border-strong: var(--gray-300);

    /* Category accents */
    --cat-news: var(--red-600);
    --cat-investigations: var(--navy-900);
    --cat-profiles: var(--purple-600);
    --cat-opinions: var(--amber-500);
    --cat-data: var(--green-600);
    --cat-documents: var(--blue-600);

    /* Typography */
    --font-sans: 'Heebo', 'Heebo Fallback', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-serif: 'Frank Ruhl Libre', 'Heebo', 'Heebo Fallback', Georgia, serif;
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-base: 15px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 22px;
    --fs-2xl: 28px;
    --fs-3xl: 36px;
    --fs-4xl: 48px;
    --fs-5xl: 64px;

    /* Spacing */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;

    /* Layout — reverted 2026-06-02 to 1280 (matches hero+featured).
       Real fix: '.content-wrap-full' below removes the 340px sidebar column
       for sections beneath the profile row, giving sections ~42% more
       horizontal real estate without changing the cap. */
    --container: 1280px;
    --container-narrow: 800px;
    --container-wide: 1440px;
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 10px;
    --radius-xl: 16px;

    --shadow-sm: 0 1px 2px rgba(11, 20, 38, 0.05);
    --shadow: 0 2px 6px rgba(11, 20, 38, 0.07);
    --shadow-md: 0 4px 12px rgba(11, 20, 38, 0.1);
    --shadow-lg: 0 10px 30px rgba(11, 20, 38, 0.15);
    --shadow-xl: 0 20px 50px rgba(11, 20, 38, 0.25);

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast: 150ms;
    --dur: 250ms;
    --dur-slow: 400ms;
}

/* ===== 2. RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: rtl;
    text-align: right;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 900; }
input, textarea, select { font: inherit; }

:focus-visible {
    outline: 3px solid var(--blue-400);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::selection { background: var(--red-600); color: var(--white); }

/* ===== 3. LAYOUT PRIMITIVES ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-6); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--sp-6); }
.stack > * + * { margin-top: var(--sp-6); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--navy-900);
    color: var(--white);
    padding: var(--sp-3) var(--sp-6);
    z-index: 9999;
    font-weight: 700;
}
.skip-link:focus { top: 0; }

/* Kill Ghost-injected bars/portals appearing above content */
#announcement-bar-root,
.gh-announcement-bar,
[data-announcement-bar],
#ghost-portal-root > div:first-child:not(:empty),
body > div[style*="background-color"]:first-child:not(.breaking-bar):not(.site-header),
body > iframe[id*="portal"],
body > iframe[id*="ghost"] {
    display: none !important;
}
/* Guarantee no gap before breaking-bar */
html, body { margin: 0 !important; padding: 0 !important; background: var(--bg) !important; }
.breaking-bar { margin-top: 0 !important; padding-top: 0 !important; }
body > .breaking-bar:first-of-type { position: relative; z-index: 1; }

/* ===== 4. BREAKING BAR ===== */
.breaking-bar {
    background: var(--red-600);
    color: var(--white);
    border-bottom: 1px solid var(--red-700);
    overflow: hidden;
    position: relative;
}
.breaking-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 var(--sp-6);
    height: 34px;
}
.breaking-label {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: var(--red-700);
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    margin-left: var(--sp-4);
    flex-shrink: 0;
    text-transform: uppercase;
    height: 34px;
}
.breaking-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--white);
    animation: pulse 1.6s ease-in-out infinite;
}
.breaking-scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    font-size: var(--fs-sm);
    font-weight: 500;
}
.breaking-scroll-inner {
    display: inline-block;
    animation: scroll-rtl 90s linear infinite;
    padding-right: 100%;
}
.breaking-scroll-inner span { margin-left: var(--sp-8); opacity: 0.92; }
.breaking-scroll-inner span::before { content: '•'; margin-left: var(--sp-3); color: var(--red-400); }
.breaking-scroll-inner span:first-child::before { display: none; }
/* Pause the marquee on hover/focus so a reader can stop and finish a headline.
   2026-06-16: slowed 45s→90s + pause-on-hover after 'too fast to read' feedback. */
.breaking-bar:hover .breaking-scroll-inner,
.breaking-bar:focus-within .breaking-scroll-inner { animation-play-state: paused; }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }
@keyframes scroll-rtl { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ===== 5. HEADER ===== */
.site-header {
    background: var(--navy-900);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.header-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--red-700), var(--red-500), var(--red-700));
}
.header-main {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    padding: var(--sp-4) var(--sp-6);
}
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-shrink: 0;
    color: var(--white);
}
.site-logo:hover { color: var(--white); }
/* Brand mark: canonical mark.svg from /assets/images/brand/ — LOGO_RULE 2026-05-06 */
.brand-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    object-fit: contain;
    background: transparent;
    display: block;
}
/* Legacy CSS-rendered classes: hide if still in DOM */
.brand-mark-accent, .brand-mark-letter { display: none; }
.brand-text {
    display: flex;
    flex-direction: column;
}
/* Legacy support — keep old .logo-mark hidden if still referenced */
.logo-mark { display: none; }
.logo-text-main {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1;
}
.logo-text-main .accent { color: var(--red-500); }
.logo-text-sub {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gray-400);
    margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    display: block;
    color: var(--gray-300);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-sm);
    transition: all var(--dur-fast) var(--ease);
    position: relative;
}
.main-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.06);
}
.main-nav a.active,
.main-nav a[aria-current="page"] {
    color: var(--white);
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--red-500);
}

.header-tools { display: flex; align-items: center; gap: var(--sp-2); }
.header-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--gray-300);
    transition: all var(--dur-fast) var(--ease);
}
.header-search:hover { background: rgba(255,255,255,0.08); color: var(--white); }

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--white);
    align-items: center;
    justify-content: center;
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }

/* ===== 5b. SECTIONS STRIP (all-sections navigation below header) ===== */
.sections-strip {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 800;
    box-shadow: 0 1px 0 rgba(11, 20, 38, 0.04);
}
.sections-strip-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-4);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.sections-strip-inner::-webkit-scrollbar { height: 3px; }
.sections-strip-inner::-webkit-scrollbar-track { background: transparent; }
.sections-strip-inner::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

.section-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--navy-800);
    border-radius: 999px;
    white-space: nowrap;
    transition: all var(--dur-fast) var(--ease);
    position: relative;
    text-decoration: none;
    letter-spacing: -0.2px;
}
.section-pill:hover {
    background: var(--navy-900);
    color: var(--white);
}
.section-pill.active,
.section-pill[aria-current="page"] {
    background: var(--red-600);
    color: var(--white);
}
.section-pill-alt {
    color: var(--red-700);
    font-weight: 800;
}
.section-pill-alt:hover {
    background: var(--red-600);
    color: var(--white);
}

.section-divider {
    flex-shrink: 0;
    width: 1px;
    height: 22px;
    background: var(--gray-300);
    margin: 0 var(--sp-2);
}

@media (max-width: 768px) {
    .sections-strip-inner {
        padding: var(--sp-2) var(--sp-4);
        gap: 0;
    }
    .section-pill { padding: 6px 12px; font-size: 12px; }
    .section-divider { height: 18px; margin: 0 var(--sp-1); }
}

/* When sections-strip is below the sticky site-header, site-header should still be sticky above it */
.site-header {
    z-index: 900; /* above sections-strip */
}

/* ===== 6. HERO ===== */
.hero {
    background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 100%, rgba(185, 28, 28, 0.15), transparent 50%);
    pointer-events: none;
}
.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--sp-8) var(--sp-6);
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--sp-8);
    align-items: center;
    min-height: 360px;
}
.hero-content { min-width: 0; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: var(--red-600);
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    text-transform: uppercase;
    margin-bottom: var(--sp-5);
}
.hero-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: var(--sp-4);
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--blue-300); }
.hero-excerpt {
    font-size: var(--fs-lg);
    color: var(--gray-300);
    line-height: 1.65;
    margin-bottom: var(--sp-6);
    max-width: 56ch;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
    font-size: var(--fs-sm);
    color: var(--gray-400);
}
.hero-meta .sep { color: var(--gray-600); }
.hero-meta .author { color: var(--red-400); font-weight: 700; }

.hero-image {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, transparent 60%, rgba(11, 20, 38, 0.4));
    pointer-events: none;
}

/* ===== 7. FEATURED STRIP ===== */
.featured-strip {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.featured-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.featured-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: var(--sp-4);
    align-items: center;
    padding: var(--sp-5) var(--sp-6);
    border-left: 1px solid var(--border);
    transition: background var(--dur-fast) var(--ease);
}
.featured-card:last-child { border-left: none; }
.featured-card:hover { background: var(--gray-50); }
.featured-card img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.featured-card-body { min-width: 0; }
.featured-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: var(--red-600);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.featured-card h3 {
    font-size: var(--fs-base);
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-card:hover h3 { color: var(--red-600); }
.featured-date { font-size: var(--fs-xs); color: var(--gray-500); }

/* ===== 8. CONTENT LAYOUT ===== */
.content-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-6) var(--sp-10);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--sp-10);
}
/* 2026-06-02 editor layout fix — comprehensive width solution (option A):
   .content-wrap is used ONLY at the top (profile row + sidebar widgets) and
   stays at --container (1280) so the top "looks great" as editor requested.
   Sections below use .content-wrap-full — single column, no sidebar, AND
   wider envelope (--container-wide = 1440) so they truly "use the full
   page width" without disturbing the top. This is the hermetic fix:
     - Top: unchanged width (1280, editor-approved)
     - Bottom: +12.5% width (1440) AND no empty left column
     - Mobile: both clamped to 12px padding via the shim below */
.content-wrap-full {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--sp-6) var(--sp-10);
}
.content-wrap-full .content-main { width: 100%; }
.content-main { min-width: 0; }

/* Section headers */
.section-head {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-3);
    border-bottom: 2px solid var(--border);
    position: relative;
}
.section-head::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--red-600);
}
.section-head h2 {
    font-size: var(--fs-xl);
    font-weight: 900;
    color: var(--navy-900);
    letter-spacing: -0.3px;
}
.section-head .line { flex: 1; }
.section-head .more {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--red-600);
    white-space: nowrap;
    transition: color var(--dur-fast) var(--ease);
}
.section-head .more:hover { color: var(--red-700); }
.section-head .more::after { content: ' ←'; }

.section-block { margin-bottom: var(--sp-10); }
.section-block:first-child { margin-top: var(--sp-2); }
.section-block:last-child { margin-bottom: 0; }

/* Investigations — the main course, get extra prominence */
.section-investigations .section-head h2 {
    font-size: var(--fs-2xl);
    color: var(--navy-900);
}
.section-investigations .section-head::before {
    background: var(--red-600);
    height: 4px;
    width: 80px;
}

/* ===== 9. ARTICLE CARDS ===== */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--dur) var(--ease);
    display: flex;
    flex-direction: column;
}
.card:hover {
    border-color: var(--navy-600);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.card-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}
.card:hover .card-img-wrap img { transform: scale(1.05); }
.card-tag-abs {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    background: var(--red-600);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 4px 10px;
    text-transform: uppercase;
    z-index: 2;
}
.card-tag-abs.cat-investigations { background: var(--navy-900); }
.card-tag-abs.cat-profiles { background: var(--purple-600); }
.card-tag-abs.cat-opinions { background: var(--amber-500); color: var(--navy-900); }
.card-tag-abs.cat-data { background: var(--green-600); }
.card-tag-abs.cat-documents { background: var(--blue-600); }

/* Committee badge — civic blue, appears in card-body and post header */
.badge-committee {
    display: inline-flex;
    align-items: center;
    background: var(--blue-600);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: var(--sp-2);
}
/* When used alongside hero-badge (post header / hero slides) */
.hero-badge.badge-committee {
    background: var(--blue-600);
    margin-right: var(--sp-2);
}

.card-body {
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-title {
    font-size: var(--fs-lg);
    font-weight: 900;
    color: var(--navy-900);
    line-height: 1.3;
    margin-bottom: var(--sp-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-title a { color: inherit; transition: color var(--dur-fast) var(--ease); }
.card-title a:hover { color: var(--red-600); }
.card-excerpt {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--sp-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    color: var(--gray-500);
    margin-top: auto;
}
.card-meta .sep { color: var(--gray-500); }
.card-meta .author { color: var(--red-600); font-weight: 700; }

.list-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--sp-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--dur) var(--ease);
}
.list-card:hover {
    border-color: var(--navy-600);
    box-shadow: var(--shadow-md);
}
.list-card .card-img-wrap {
    aspect-ratio: unset;
    height: 100%;
    min-height: 180px;
}
.list-card .card-body {
    padding: var(--sp-6);
    justify-content: center;
}
.list-card .card-title { font-size: var(--fs-xl); }
.list-card .card-excerpt { -webkit-line-clamp: 3; }

.articles-list { display: flex; flex-direction: column; gap: var(--sp-5); }

.row-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--sp-4);
    align-items: center;
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--border);
}
.row-card:last-child { border-bottom: none; }
.row-card img {
    width: 100px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.row-card h4 {
    font-size: var(--fs-base);
    font-weight: 800;
    line-height: 1.35;
    color: var(--navy-900);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.row-card:hover h4 { color: var(--red-600); }
.row-card .meta { font-size: 11px; color: var(--gray-500); }

/* ===== 10. SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: var(--sp-6); }
.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.widget-head {
    background: var(--navy-900);
    color: var(--white);
    padding: var(--sp-3) var(--sp-5);
    position: relative;
}
.widget-head::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: var(--sp-5);
    width: 30px;
    height: 2px;
    background: var(--red-500);
}
.widget-title {
    font-size: var(--fs-base);
    font-weight: 900;
    letter-spacing: -0.2px;
    color: var(--white);
}
.widget-body { padding: var(--sp-5); }

.stat-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--border);
}
.stat-row:last-child { padding-bottom: 0; border-bottom: none; }
.stat-label { font-size: var(--fs-sm); color: var(--text-muted); }
.stat-value {
    font-size: var(--fs-xl);
    font-weight: 900;
    color: var(--navy-900);
    font-variant-numeric: tabular-nums;
}
.stat-value.neg { color: var(--red-600); }
.stat-value.pos { color: var(--green-600); }
.stat-note {
    margin-top: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 2px solid var(--navy-900);
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-widget p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-3); }
.contact-btn {
    display: block;
    width: 100%;
    background: var(--navy-900);
    color: var(--white);
    text-align: center;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: var(--fs-sm);
    transition: background var(--dur-fast) var(--ease);
}
.contact-btn:hover { background: var(--red-600); color: var(--white); }
.contact-note {
    display: block;
    text-align: center;
    margin-top: var(--sp-3);
    font-size: 11px;
    color: var(--gray-500);
}

.tags-cloud { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag-pill {
    display: inline-block;
    background: var(--gray-100);
    color: var(--navy-900);
    padding: 5px 12px;
    font-size: var(--fs-xs);
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all var(--dur-fast) var(--ease);
}
.tag-pill:hover {
    background: var(--navy-900);
    color: var(--white);
    border-color: var(--navy-900);
}


.rank-list { counter-reset: rank; }
.rank-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--border);
    counter-increment: rank;
    align-items: center;
}
.rank-item:last-child { border-bottom: none; padding-bottom: 0; }
.rank-item::before {
    content: counter(rank);
    font-size: 30px;
    font-weight: 900;
    color: var(--red-600);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-align: center;
    font-family: var(--font-serif);
}
.rank-item h4 {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rank-item:hover h4 { color: var(--red-600); }

/* ===== 11. POST PAGE ===== */
.post-hero {
    background: linear-gradient(165deg, var(--navy-900), var(--navy-800));
    color: var(--white);
    padding: var(--sp-12) 0 var(--sp-16);
    position: relative;
}
.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 0%, rgba(185, 28, 28, 0.12), transparent 50%);
}
.post-hero-inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--sp-6);
    position: relative;
    text-align: center;
}
.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    color: var(--gray-400);
    margin-bottom: var(--sp-5);
}
.breadcrumbs a { color: var(--blue-300); font-weight: 700; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs .sep { opacity: 0.4; }

.post-hero .hero-badge {
    margin: 0 auto var(--sp-5);
    display: inline-flex;
}
.post-title {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--sp-5);
    letter-spacing: -0.5px;
}
.post-subtitle {
    font-size: var(--fs-lg);
    color: var(--gray-300);
    line-height: 1.6;
    max-width: 65ch;
    margin: 0 auto var(--sp-6);
}
.post-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
    font-size: var(--fs-sm);
    color: var(--gray-400);
}
.post-hero-meta .author { color: var(--red-400); font-weight: 800; }
.post-hero-meta .sep { color: var(--gray-600); }

.post-feature {
    max-width: 960px;
    margin: calc(-1 * var(--sp-12)) auto 0;
    padding: 0 var(--sp-6);
    position: relative;
    z-index: 10;
}
.post-feature img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
/* Captions take --text-muted (28/10/2026, card i-accessibility-fixes): the fixed gray-500 did
   not flip in dark mode, 3.80:1 on the dark page; --text-muted is 7.2:1 light, 12.4:1 dark. */
.post-feature-caption {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--sp-3);
    font-style: italic;
}
/* Phase 0.7 hero video — same dimensions as image, with play badge overlay */
.post-feature-video,
.post-feature iframe {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16 / 9;
    background: #000;
    display: block;
}
.hero-video-badge {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-9);
    background: var(--red-600);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    letter-spacing: 0.3px;
    pointer-events: none;
    z-index: 11;
}

.post-article {
    max-width: var(--container-narrow);
    margin: var(--sp-10) auto;
    padding: 0 var(--sp-6);
}
.post-body {
    /* Typography policy: body = Heebo (sans) to match title + site UI.
       Serif is reserved for numeric/decorative accents only. */
    font-family: var(--font-sans);
    font-size: 19px;
    line-height: 1.85;
    color: var(--gray-900);
}
.post-body p { margin-bottom: var(--sp-5); }
.post-body p:first-child::first-letter {
    font-size: 68px;
    font-weight: 900;
    color: var(--red-600);
    float: right;
    margin-left: var(--sp-3);
    line-height: 0.9;
    font-family: var(--font-serif);
}
.post-body h2 {
    font-family: var(--font-sans);
    font-size: 30px;
    font-weight: 900;
    color: var(--navy-900);
    margin: var(--sp-10) 0 var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 3px solid var(--red-600);
    display: inline-block;
    letter-spacing: -0.5px;
}
.post-body h3 {
    font-family: var(--font-sans);
    font-size: 23px;
    font-weight: 900;
    color: var(--navy-900);
    margin: var(--sp-8) 0 var(--sp-3);
    letter-spacing: -0.3px;
}
.post-body h4 {
    font-family: var(--font-sans);
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--navy-900);
    margin: var(--sp-6) 0 var(--sp-3);
}
.post-body ul, .post-body ol {
    margin: 0 var(--sp-5) var(--sp-5) 0;
    padding-right: var(--sp-5);
}
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: var(--sp-2); }
.post-body strong { color: var(--navy-900); font-weight: 800; }
.post-body em { font-style: italic; }
.post-body a {
    color: var(--red-600);
    font-weight: 700;
    border-bottom: 1px solid var(--red-600);
}
.post-body a:hover { background: var(--red-600); color: var(--white); }
.post-body blockquote {
    /* Blockquote differentiated by size/weight/italic/border — not font family. */
    font-family: var(--font-sans);
    font-size: 22px;
    line-height: 1.6;
    color: var(--navy-900);
    font-weight: 500;
    font-style: italic;
    border-right: 4px solid var(--red-600);
    padding: var(--sp-5) var(--sp-6);
    margin: var(--sp-8) 0;
    background: var(--gray-50);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body figure { margin: var(--sp-6) 0; }
.post-body figcaption {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--sp-2);
    font-style: italic;
}
.post-body img { border-radius: var(--radius); box-shadow: var(--shadow); margin: var(--sp-5) 0; }
.post-body hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: var(--sp-8) 0;
}
.post-body code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}
.post-body pre {
    background: var(--navy-900);
    color: var(--white);
    padding: var(--sp-5);
    border-radius: var(--radius);
    overflow-x: auto;
    margin: var(--sp-5) 0;
}
.post-body pre code { background: none; color: inherit; padding: 0; }

.post-share {
    max-width: var(--container-narrow);
    margin: var(--sp-8) auto;
    padding: var(--sp-6) var(--sp-6);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}
.post-share-label {
    font-weight: 800;
    color: var(--navy-900);
    font-size: var(--fs-sm);
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 700;
    transition: all var(--dur-fast) var(--ease);
    color: var(--white);
}
.share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
/* 28/10/2026 (owner, card i-accessibility-fixes): white text needs 4.5:1 (ת״י 5568). The
   brand tints measured 1.98 (WhatsApp #25D366), 2.77 (Telegram #26A5E4) and 4.23 (Facebook
   #1877F2); these are the brands' own darker shades - WhatsApp's app green 4.89, Facebook's
   2023 blue 4.82, Telegram 5.17. campaign/tests/test_front_2810.py computes every pair. */
.share-fb { background: #0866FF; }
.share-tw { background: #0F1419; }
.share-wa { background: #008069; }
.share-tg { background: #1A73A8; }
.share-cp { background: var(--navy-900); }
.share-btn svg { width: 14px; height: 14px; }
/* WhatsApp first and largest (28/10/2026, owner by name, card i-whatsapp-first): first in the
   markup, a size up here, and on a phone it stretches over the rest of its row. */
.share-btn.share-wa { padding: 11px 22px; font-size: var(--fs-md); font-weight: 800; }
.share-btn.share-wa svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
    .share-btn.share-wa { flex: 1 1 auto; justify-content: center; min-height: 44px; }
}

.post-tags {
    max-width: var(--container-narrow);
    margin: var(--sp-8) auto;
    padding: 0 var(--sp-6);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    align-items: center;
}
.post-tags-label {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--navy-900);
    margin-left: var(--sp-2);
}

.related {
    max-width: var(--container-narrow);
    margin: var(--sp-12) auto;
    padding: 0 var(--sp-6);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}

/* ===== 12. PAGE (static) ===== */
.page-hero {
    background: linear-gradient(165deg, var(--navy-900), var(--navy-800));
    color: var(--white);
    padding: var(--sp-12) 0;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900;
    margin-bottom: var(--sp-3);
    letter-spacing: -0.5px;
}
.page-hero .subtitle {
    font-size: var(--fs-lg);
    color: var(--gray-300);
    max-width: 60ch;
    margin: 0 auto;
}
.page-content {
    max-width: var(--container-narrow);
    margin: var(--sp-10) auto;
    padding: 0 var(--sp-6);
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--gray-900);
}
.page-content h2 {
    font-size: var(--fs-2xl);
    color: var(--navy-900);
    margin: var(--sp-8) 0 var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 2px solid var(--red-600);
    display: inline-block;
}
.page-content h3 { font-size: var(--fs-xl); color: var(--navy-900); margin: var(--sp-6) 0 var(--sp-3); }
.page-content p { margin-bottom: var(--sp-4); }
.page-content ul, .page-content ol { margin: 0 var(--sp-5) var(--sp-4) 0; padding-right: var(--sp-5); }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
/* 25/10/2026 — data tables in a story (data_story.py) and on the answer pages (answer_pages.py):
   the theme had no table style, so a table read as unaligned text. */
.post-body table, .page-content table { width: 100%; border-collapse: collapse; margin: var(--sp-3) 0 var(--sp-6); font-size: var(--fs-base); }
.post-body th, .post-body td, .page-content th, .page-content td { border-bottom: 1px solid var(--border); padding: var(--sp-2) var(--sp-3); text-align: start; vertical-align: top; }
.post-body th, .page-content th { background: var(--gray-100); color: var(--navy-900); font-weight: 800; }
/* 05/11/2026 — on a phone a table wider than the column scrolled the whole page sideways:
   data-urban-renewal-tirat-2026-10 (7 columns, 534px in a 342px column at 390px) and
   data-accidents-tirat-202608 (462px). A table cannot be narrower than its content, so here
   the table itself becomes the scroll box and the page stays still. Phones only: as a block,
   a table narrower than the column no longer stretches to 100%, and above 640px every table
   measured that day fits. */
@media (max-width: 640px) {
    .post-body table, .page-content table { display: block; max-width: 100%; overflow-x: auto; }
}
.page-content a { color: var(--red-600); font-weight: 700; border-bottom: 1px solid var(--red-600); }

/* ===== 13. TAG / ARCHIVE ===== */
.archive-hero {
    background: linear-gradient(165deg, var(--navy-900), var(--navy-800));
    color: var(--white);
    padding: var(--sp-10) 0;
}
.archive-hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}
.archive-hero .badge {
    display: inline-block;
    background: var(--red-600);
    color: var(--white);
    padding: 4px 12px;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--sp-3);
}
.archive-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: var(--sp-3);
}
/* cat_hero (Phase B7): the editor-picked featured article surfaced in the
   section hero — a pill link on the dark overlay, design-preserving. */
.archive-hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--sp-2);
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: var(--white);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(2px);
    transition: background var(--dur) var(--ease);
}
.archive-hero-feature:hover { background: rgba(255, 255, 255, 0.26); }
.archive-hero .description {
    font-size: var(--fs-lg);
    color: var(--gray-300);
    max-width: 70ch;
}
.archive-count {
    font-size: var(--fs-sm);
    color: var(--gray-400);
    margin-top: var(--sp-3);
}

/* ===== 14. PROFILE PAGE ===== */
.profile-hero {
    background: linear-gradient(165deg, var(--navy-900), var(--navy-800));
    color: var(--white);
    padding: var(--sp-12) 0 var(--sp-16);
    position: relative;
    overflow: hidden;
}
.profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.15), transparent 50%);
}
.profile-hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--sp-6);
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--sp-10);
    align-items: center;
    position: relative;
}
.profile-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--red-600);
    box-shadow: var(--shadow-xl);
    background: var(--navy-700);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-header .badge {
    display: inline-block;
    background: var(--red-600);
    color: var(--white);
    padding: 4px 12px;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--sp-3);
}
.profile-header h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -0.8px;
    margin-bottom: var(--sp-3);
}
.profile-header .role {
    font-size: var(--fs-xl);
    color: var(--blue-300);
    font-weight: 700;
    margin-bottom: var(--sp-4);
}
.profile-header .description {
    font-size: var(--fs-md);
    color: var(--gray-300);
    line-height: 1.7;
    max-width: 60ch;
}

.profile-stats {
    max-width: var(--container);
    margin: calc(-1 * var(--sp-10)) auto 0;
    padding: 0 var(--sp-6);
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
}
.profile-stat {
    background: var(--white);
    border-top: 4px solid var(--red-600);
    padding: var(--sp-5);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
}
.profile-stat .val {
    font-size: 38px;
    font-weight: 900;
    color: var(--navy-900);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.profile-stat .label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-top: var(--sp-2);
}

.profile-body {
    max-width: var(--container);
    margin: var(--sp-12) auto;
    padding: 0 var(--sp-6);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--sp-10);
}
.profile-timeline {
    position: relative;
    padding-right: var(--sp-8);
    border-right: 2px solid var(--border);
}
.profile-event {
    position: relative;
    padding-bottom: var(--sp-8);
}
.profile-event::before {
    content: '';
    position: absolute;
    right: calc(-1 * var(--sp-8) - 9px);
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--red-600);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--red-600);
}
.profile-event .date {
    font-size: var(--fs-sm);
    color: var(--red-600);
    font-weight: 800;
    margin-bottom: var(--sp-2);
}
.profile-event h3 {
    font-size: var(--fs-xl);
    color: var(--navy-900);
    margin-bottom: var(--sp-2);
}
.profile-event p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== 15. DATA PAGE ===== */
.data-hero {
    background: linear-gradient(165deg, var(--navy-900), var(--navy-800));
    color: var(--white);
    padding: var(--sp-12) 0;
    text-align: center;
}
.data-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: var(--sp-3);
    letter-spacing: -0.5px;
}
.data-hero p { font-size: var(--fs-lg); color: var(--gray-300); max-width: 60ch; margin: 0 auto; }

.data-grid {
    max-width: var(--container);
    margin: var(--sp-10) auto;
    padding: 0 var(--sp-6);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
}
.data-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
    box-shadow: var(--shadow-sm);
}
.data-card .label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--red-600);
    font-weight: 800;
    margin-bottom: var(--sp-3);
}
.data-card h2 {
    font-size: var(--fs-xl);
    color: var(--navy-900);
    margin-bottom: var(--sp-5);
}
.data-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--sp-5);
    margin: var(--sp-5) 0;
}
.data-compare .big {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    color: var(--red-600);
    font-variant-numeric: tabular-nums;
}
.data-compare .big.pos { color: var(--green-600); }
.data-compare .caption {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-top: var(--sp-2);
}
.data-compare .vs {
    font-size: var(--fs-xl);
    font-weight: 900;
    color: var(--gray-400);
}
.data-bars {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
}
.data-bar {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: var(--sp-3);
    align-items: center;
    font-size: var(--fs-sm);
}
.data-bar .bar-track {
    height: 24px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.data-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red-600), var(--red-500));
    border-radius: var(--radius-sm);
}
.data-bar .bar-val { font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; }

.data-source {
    font-size: var(--fs-xs);
    color: var(--gray-500);
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border);
}

/* ===== 16. CONTACT / SEND MATERIAL PAGE ===== */
.contact-grid {
    max-width: var(--container);
    margin: var(--sp-10) auto;
    padding: 0 var(--sp-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
}
.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
}
.contact-card h2 {
    font-size: var(--fs-2xl);
    color: var(--navy-900);
    margin-bottom: var(--sp-3);
}
.contact-card p { color: var(--text-muted); margin-bottom: var(--sp-5); line-height: 1.7; }
.contact-card ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.contact-card ul li {
    padding-right: var(--sp-5);
    position: relative;
    color: var(--text-muted);
    line-height: 1.6;
}
.contact-card ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--red-600);
    border-radius: 50%;
}

.form-group { margin-bottom: var(--sp-5); }
.form-group label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: var(--sp-2);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    background: var(--gray-50);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: var(--fs-base);
    transition: all var(--dur-fast) var(--ease);
}
.form-group textarea { resize: vertical; min-height: 140px; font-family: inherit; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}
.form-submit {
    background: var(--red-600);
    color: var(--white);
    padding: var(--sp-3) var(--sp-8);
    font-size: var(--fs-md);
    font-weight: 800;
    border-radius: var(--radius-sm);
    transition: background var(--dur-fast) var(--ease);
}
.form-submit:hover { background: var(--red-700); }
.form-note {
    font-size: var(--fs-xs);
    color: var(--gray-500);
    margin-top: var(--sp-3);
    line-height: 1.6;
}

/* ===== 17. DOCUMENTS PAGE ===== */
.docs-list {
    max-width: var(--container-narrow);
    margin: var(--sp-10) auto;
    padding: 0 var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.doc-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-right: 4px solid var(--blue-600);
    border-radius: var(--radius);
    padding: var(--sp-5) var(--sp-6);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--sp-5);
    align-items: center;
    transition: all var(--dur-fast) var(--ease);
}
.doc-item:hover { box-shadow: var(--shadow-md); border-right-color: var(--red-600); }
.doc-meta { font-size: var(--fs-xs); color: var(--gray-500); margin-bottom: var(--sp-1); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.doc-title { font-size: var(--fs-lg); font-weight: 800; color: var(--navy-900); margin-bottom: var(--sp-2); }
.doc-desc { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }
.doc-dl {
    background: var(--navy-900);
    color: var(--white);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 800;
    white-space: nowrap;
    transition: background var(--dur-fast) var(--ease);
}
.doc-dl:hover { background: var(--red-600); color: var(--white); }
.doc-dl--soon {
    background: var(--gray-200);
    color: var(--text-muted);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 700;
    white-space: nowrap;
    cursor: default;
    user-select: none;
}

/* ===== 18. FOOTER ===== */
.site-footer {
    background: var(--navy-950);
    color: var(--gray-400);
    border-top: 3px solid var(--red-600);
    margin-top: var(--sp-16);
}
.footer-main {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--sp-12) var(--sp-6) var(--sp-8);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--sp-10);
}
.footer-brand .logo-text-main { color: var(--white); font-size: 30px; }
.footer-brand p {
    font-size: var(--fs-sm);
    line-height: 1.7;
    margin-top: var(--sp-4);
    max-width: 45ch;
}
/* 5.0 decision 8ד (owner, 18/10/2026): the site's tagline, «עיתונות חופשית. בעיר שלך.» */
.footer-brand p.brand-tagline {
    color: var(--white);
    font-size: var(--fs-lg, 1.25rem);
    font-weight: 900;
    line-height: 1.3;
}
.footer-col h3 {
    color: var(--white);
    font-size: var(--fs-base);
    font-weight: 900;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--navy-700);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a {
    font-size: var(--fs-sm);
    color: var(--gray-400);
    transition: color var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: var(--red-400); }
.footer-bottom {
    border-top: 1px solid var(--navy-700);
    padding: var(--sp-5) var(--sp-6);
}
.footer-bottom-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-3);
    font-size: var(--fs-xs);
    color: var(--gray-400);
}
.footer-social { display: flex; gap: var(--sp-3); }
.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--dur-fast) var(--ease);
}
.footer-social a:hover { background: var(--red-600); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }

/* ===== 19. PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--sp-2);
    margin: var(--sp-10) 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--sp-4);
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--navy-900);
    font-weight: 700;
    font-size: var(--fs-sm);
    border-radius: var(--radius-sm);
    transition: all var(--dur-fast) var(--ease);
}
.pagination a:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.pagination .current { background: var(--red-600); color: var(--white); border-color: var(--red-600); }
/* Numbered pagination (Mako-style). Numbers read LTR — 1 on the left, ascending
   rightward — even though the page is RTL (numerals are inherently LTR). */
/* direction:ltr !important — beats the global `div{direction:rtl!important}` override. */
.pagination__nums { display: flex; direction: ltr !important; gap: var(--sp-2); align-items: center; }
.pagination__gap {
    min-width: auto; height: auto; border: none; background: none;
    padding: 0 var(--sp-1); color: var(--text-muted); font-weight: 700;
}
.pagination__fallback { display: flex; gap: var(--sp-2); align-items: center; }
.pagination__count { min-width: auto; border: none; background: none; color: var(--text-muted); }

/* ===== 20. ERROR PAGE ===== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--sp-12) var(--sp-6);
    background: linear-gradient(165deg, var(--navy-900), var(--navy-800));
    color: var(--white);
}
.error-inner { max-width: 560px; }
.error-code {
    font-size: clamp(100px, 20vw, 200px);
    font-weight: 900;
    color: var(--red-500);
    line-height: 1;
    letter-spacing: -5px;
    font-family: var(--font-serif);
}
.error-msg { font-size: var(--fs-2xl); color: var(--white); margin: var(--sp-5) 0; }
.error-sub { font-size: var(--fs-md); color: var(--gray-400); margin-bottom: var(--sp-6); }
.error-back {
    display: inline-block;
    background: var(--red-600);
    color: var(--white);
    padding: var(--sp-3) var(--sp-6);
    font-weight: 800;
    border-radius: var(--radius-sm);
    transition: background var(--dur-fast) var(--ease);
}
.error-back:hover { background: var(--red-700); color: var(--white); }

/* ===== 21. RESPONSIVE ===== */
@media (max-width: 1024px) {
    .content-wrap { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
    .profile-hero-inner { grid-template-columns: 180px 1fr; gap: var(--sp-6); }
    .profile-avatar { width: 180px; height: 180px; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .profile-body { grid-template-columns: 1fr; }
    .hero-inner { grid-template-columns: 1fr; gap: var(--sp-6); min-height: auto; padding: var(--sp-8) var(--sp-6); }
    .hero-image { max-height: 320px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-inner { grid-template-columns: 1fr 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .data-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .main-nav.open {
        display: flex;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--navy-900);
        flex-direction: column;
        padding: var(--sp-4);
        border-top: 1px solid var(--navy-700);
        gap: 0;
    }
    .main-nav.open a { padding: var(--sp-4); border-bottom: 1px solid var(--navy-800); }
    .logo-text-main { font-size: 22px; }
    .logo-text-sub { font-size: 9px; letter-spacing: 2px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-mark-letter { font-size: 26px; }
    .brand-mark-accent { width: 7px; height: 7px; }
    .breaking-label { font-size: 10px; }
    .featured-inner { grid-template-columns: 1fr; }
    .featured-card { border-left: none; border-bottom: 1px solid var(--border); }
    .featured-card:last-child { border-bottom: none; }
    .grid-3, .grid-2, .related-grid { grid-template-columns: 1fr; }
    .list-card { grid-template-columns: 1fr; }
    .list-card .card-img-wrap { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
    .sidebar { grid-template-columns: 1fr; }
    .post-body { font-size: 17px; }
    .post-body h2 { font-size: 24px; }
    .post-body h3 { font-size: 20px; }
    .post-feature { margin-top: calc(-1 * var(--sp-8)); padding: 0 var(--sp-4); }
    .footer-main { grid-template-columns: 1fr; gap: var(--sp-6); padding: var(--sp-8) var(--sp-6); }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .profile-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .profile-avatar { margin: 0 auto; width: 140px; height: 140px; }
    .profile-stats { grid-template-columns: 1fr 1fr; }
    .profile-stat .val { font-size: 28px; }
    .data-compare { grid-template-columns: 1fr; gap: var(--sp-3); }
    .data-compare .big { font-size: 56px; }
    .data-bar { grid-template-columns: 100px 1fr auto; font-size: 12px; }
    .section-head h2 { font-size: var(--fs-lg); }
    .hero-title { font-size: 26px; }
    .post-title { font-size: 28px; }
    .post-body p:first-child::first-letter { font-size: 54px; }
    .container, .container-narrow, .container-wide { padding: 0 var(--sp-4); }
    .breaking-inner { padding: 0 var(--sp-4); }
    .header-main { padding: var(--sp-3) var(--sp-4); }
}

/* ===== 22a. PEOPLE GRID (מי בטירת כרמל) ===== */
.people-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-5);
}
.person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-3);
    padding: var(--sp-5) var(--sp-3);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: inherit;
    transition: all var(--dur) var(--ease);
    position: relative;
}
.person-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--red-600);
}
.person-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 0 8px 2px rgba(239,68,68,0.55), 0 0 18px 5px rgba(239,68,68,0.30), 0 0 30px 9px rgba(220,38,38,0.16);
}
.person-name {
    font-size: var(--fs-base);
    font-weight: 900;
    color: var(--navy-900);
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.person-role {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
}
.person-card:hover .person-name { color: var(--red-600); }

@media (max-width: 1024px) {
    .people-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .people-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
    .person-avatar { width: 72px; height: 72px; }
    .person-name { font-size: var(--fs-sm); }
    .person-role { font-size: 11px; }
}
@media (max-width: 480px) {
    .people-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 22b. HOMEPAGE SECTIONS ===== */

.section-intro {
    font-size: var(--fs-md);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 75ch;
    margin: calc(-1 * var(--sp-4)) 0 var(--sp-6);
    padding-right: var(--sp-4);
    border-right: 3px solid var(--red-600);
}

/* Profile cards grid (homepage) */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}
.profile-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: var(--sp-4);
    align-items: center;
    padding: var(--sp-5);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--dur) var(--ease);
    color: inherit;
    position: relative;
    overflow: hidden;
}
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: var(--red-600);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}
.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--navy-500);
}
.profile-card:hover::before { opacity: 1; }
.profile-card-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
    border: 3px solid var(--red-600);
    flex-shrink: 0;
}
.profile-card-body { min-width: 0; }
.profile-card-body h3 {
    font-size: var(--fs-lg);
    font-weight: 900;
    color: var(--navy-900);
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}
.profile-card-body .role {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: var(--sp-2);
    line-height: 1.3;
}
.profile-card-arrow {
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--red-600);
    letter-spacing: 0.5px;
}
.profile-card:hover .profile-card-arrow { color: var(--red-700); }

/* Data preview cards (homepage) */
.data-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}
.data-preview-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--red-600);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
}
.data-preview-card .label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--red-600);
    font-weight: 800;
    margin-bottom: var(--sp-3);
}
.data-preview-card .compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--sp-3);
    margin: var(--sp-3) 0;
    text-align: center;
}
.data-preview-card .big {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    color: var(--red-600);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-serif);
}
.data-preview-card .big.pos { color: var(--green-600); }
.data-preview-card .cap {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-top: 4px;
}
.data-preview-card .vs {
    font-size: var(--fs-sm);
    font-weight: 900;
    color: var(--gray-400);
}
.data-preview-card .big-single {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    color: var(--red-600);
    text-align: center;
    font-family: var(--font-serif);
    margin: var(--sp-3) 0 var(--sp-1);
}
.data-preview-card .big-cap {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-align: center;
    margin-bottom: var(--sp-3);
}
.data-preview-card .note {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: auto;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
    .profiles-grid { grid-template-columns: repeat(2, 1fr); }
    .data-preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .profiles-grid { grid-template-columns: 1fr; }
    .profile-card { grid-template-columns: 72px 1fr; gap: var(--sp-3); padding: var(--sp-4); }
    .profile-card-avatar { width: 72px; height: 72px; font-size: 18px; }
    .data-preview-card .big { font-size: 34px; }
    .data-preview-card .big-single { font-size: 48px; }
    .section-intro { font-size: var(--fs-sm); padding-right: var(--sp-3); }
}

/* ===== 22c. LIFE GRID (homepage sections) ===== */

.life-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}
.life-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-6) var(--sp-4);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--dur) var(--ease);
    color: inherit;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.life-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    background: var(--red-600);
    transition: width var(--dur) var(--ease);
}
.life-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--navy-500);
}
.life-card:hover::before { width: 4px; }
.life-icon {
    font-size: 36px;
    line-height: 1;
}
.life-name {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.2px;
}
.life-count {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 600;
    margin-top: 2px;
}
.life-card:hover .life-name { color: var(--red-600); }
.life-card.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.life-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}
.life-card.disabled:hover::before { width: 0; }
.life-card.disabled .life-count {
    color: var(--red-600);
    font-weight: 800;
}

/* Empty section (no posts yet) */
.empty-section {
    opacity: 0.85;
}
.empty-section .section-intro {
    background: var(--gray-50);
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--radius);
    border-right: 3px solid var(--red-600);
    margin: 0;
}

/* Crime section accent — heavier, more urgent feel */
.section-crime .section-head::before {
    background: var(--red-700);
    height: 3px;
}
.section-crime .section-head h2 {
    color: var(--red-700);
}

@media (max-width: 1024px) {
    .life-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .life-grid { grid-template-columns: repeat(2, 1fr); }
    .life-card { padding: var(--sp-4) var(--sp-2); }
    .life-icon { font-size: 28px; }
    .life-name { font-size: var(--fs-xs); }
}

/* ===== 22. UTILITIES ===== */
.text-red { color: var(--red-600); }
.text-green { color: var(--green-600); }
.text-muted { color: var(--text-muted); }
.font-serif { font-family: var(--font-serif); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ===== 23. PRINT (upgraded 2026-05-25 — Phase 21 UX block A3) =====
   Clean printout: hides chrome, shows source URL next to links so the
   printed copy stays referenceable. A4 page with sensible margins.
   Force light-on-white regardless of dark mode preference. */
@media print {
    @page {
        size: A4;
        margin: 18mm 16mm 22mm 16mm;
    }
    /* Force light, ignore dark-mode override */
    html, html[data-theme="dark"] {
        --bg: #fff;
        --bg-card: #fff;
        --text: #000;
        --text-muted: #333;
        --border: #ccc;
    }
    html, body {
        background: white !important;
        color: black !important;
        font-size: 11pt;
        line-height: 1.55;
    }
    /* Hide all chrome */
    .site-header,
    .sections-strip,
    .breaking-bar,
    .site-footer,
    .post-share,
    .sidebar,
    .related,
    .header-controls,
    .reading-progress,
    .nav-toggle,
    .header-search,
    .main-nav,
    .breadcrumbs,
    .post-tags,
    .hero-video-badge,
    .post-feature-video,
    .install-prompt,
    [data-popup-root],
    [data-follow-cluster],
    [data-save-toggle],
    [data-share-quote],
    .save-list-page-empty,
    iframe { display: none !important; }
    /* Article body sizing for print legibility */
    body { font-size: 12pt; }
    .post-page { max-width: 100%; margin: 0; padding: 0; }
    .post-body, .post-content { font-size: 12pt; line-height: 1.6; color: black; }
    .post-title, .page-hero h1, h1, h2, h3, h4 { color: black; page-break-after: avoid; }
    .post-title { font-size: 22pt; margin: 12pt 0 8pt; }
    .post-subtitle { font-size: 14pt; color: #333; margin-bottom: 12pt; }
    h2 { font-size: 16pt; margin-top: 14pt; }
    h3 { font-size: 13pt; margin-top: 12pt; }
    p { orphans: 3; widows: 3; }
    img { max-width: 100% !important; page-break-inside: avoid; filter: none !important; }
    figure { page-break-inside: avoid; margin: 8pt 0; }
    figcaption { font-size: 9pt; color: #555; }
    blockquote {
        border-right: 3pt solid #999;
        padding-right: 8pt;
        margin: 8pt 0;
        font-style: italic;
        color: #333;
    }
    a { color: black; text-decoration: underline; }
    /* Show absolute URL after links (skip anchors + mailto + tel + fragment-only) */
    .post-body a[href^="http"]:after,
    .post-content a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
        word-break: break-all;
    }
    /* Hero block: keep image + headline, drop video */
    .post-hero, .page-hero {
        background: none !important;
        color: black !important;
        padding: 8pt 0 !important;
    }
    /* Footer line with source URL + brand + print date */
    .post-page::after {
        content: "tiratnow.news · נדפס מתוך אתר טירת הכרמל עכשיו";
        display: block;
        margin-top: 24pt;
        padding-top: 8pt;
        border-top: 1pt solid #999;
        font-size: 9pt;
        color: #555;
        text-align: center;
    }
    /* Avoid widow/orphan on tables, lists */
    tr, li { page-break-inside: avoid; }
}

/* ===== 24. MOTION REDUCED ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== V3 FIX: list-card aspect ratio for 16:9 graphics (safe override) ===== */
.list-card .card-img-wrap {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 160px !important;
    max-height: 280px !important;
}
.list-card .card-img-wrap img,
.card .card-img-wrap img {
    object-position: center center !important;
}
@media (max-width: 820px) {
    .list-card {
        grid-template-columns: 1fr !important;
    }
    .list-card .card-img-wrap {
        aspect-ratio: 16 / 9 !important;
        max-height: 240px !important;
    }
}

/* =========================================================
 * 22b. SECTION ACCENTS — added 2026-04-28
 * Three hero categories (פוליטי / פלילים / ספורט) get
 * distinctive accent colors and slightly larger cards.
 * ========================================================= */

/* === Politi (navy emphasis) === */
.section-politi .section-head::before {
    background: var(--navy-900);
    height: 3px;
}
.section-politi .section-head h2 {
    color: var(--navy-900);
    letter-spacing: -0.5px;
}

/* === Sport (green emphasis) === */
.section-sport .section-head::before {
    background: #047857;
    height: 3px;
}
.section-sport .section-head h2 {
    color: #047857;
}

/* === Hero-emphasis sections — make these blocks visually heavier === */
.section-hero-emphasis {
    margin-block: var(--sp-8);
    padding-block: var(--sp-3) 0;
}
.section-hero-emphasis .section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 900;
}
.section-hero-emphasis .section-intro {
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--navy-900);
}

/* === 4-column grid (used by hero sections) === */
.grid-4 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;  /* first card slightly wider */
    gap: var(--sp-4);
}
.grid-4 .card-hero-mini {
    grid-row: span 2;
    grid-column: 1 / 2;
}
.grid-4 .card-hero-mini .card-img-wrap img {
    height: 320px;
    width: 100%;
    object-fit: cover;
}
.grid-4 .card-hero-mini .card-title {
    font-size: var(--fs-lg);
    line-height: 1.25;
    font-weight: 800;
}
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-4 .card-hero-mini {
        grid-row: span 1;
        grid-column: 1 / -1;
    }
    .grid-4 .card-hero-mini .card-img-wrap img { height: 280px; }
}
@media (max-width: 640px) {
    .grid-4 { grid-template-columns: 1fr; gap: var(--sp-3); }
    .grid-4 .card-hero-mini .card-img-wrap img { height: 220px; }
}

/* === Local (umbrella) — subtle color === */
.section-local .section-head h2 {
    color: var(--navy-700, #1E3A5F);
}

/* === Section-pill accent colors (nav strip) === */
.section-pill-politi {
    border-color: var(--navy-900) !important;
    color: var(--navy-900) !important;
    font-weight: 800;
}
.section-pill-politi:hover,
.section-pill-politi.active {
    background: var(--navy-900) !important;
    color: white !important;
}
.section-pill-crime {
    border-color: var(--red-700) !important;
    color: var(--red-700) !important;
    font-weight: 800;
}
.section-pill-crime:hover,
.section-pill-crime.active {
    background: var(--red-700) !important;
    color: white !important;
}
.section-pill-sport {
    border-color: #047857 !important;
    color: #047857 !important;
    font-weight: 800;
}
.section-pill-sport:hover,
.section-pill-sport.active {
    background: #047857 !important;
    color: white !important;
}
/* End of 2026-04-28 section accents */

/* =========================================================
 * 23. HERO CAROUSEL — added 2026-04-28
 * 5 rotating slides, auto-advance every 7s, JS+CSS hybrid.
 * ========================================================= */
.hero-carousel {
    position: relative;
    margin-block: var(--sp-4) var(--sp-6);
    container-type: inline-size;
}
.hero-carousel-track {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    /* Desktop (>1024px) base — tall enough for the 4:3 hero image at half-width so its
       bottom isn't clipped by overflow:hidden (the max-width breakpoints set their own). */
    min-height: 520px;
}
.hero-carousel-track .hero-slide {
    position: absolute;
    inset: 0;
    margin: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    pointer-events: none;
}
/* The fade runs only once the carousel MOVES (28/10/2026, owner by name, card i-hero-speed).
   Lighthouse mobile on the live home page that day: the hero image painted 4.2s in, 1.35s of
   it after the image had already loaded. The card's likely cause - not proven in a browser -
   is this 0.6s transition, which every slide carried, the first included, together with the
   script that starts the carousel. Now nothing can animate the first picture: it is shown by
   CSS alone (the :first-child rule below), with no transition and no script, and main.js adds
   .hero-carousel--moving on its first move to another slide; from then on slides fade. */
.hero-carousel--moving .hero-carousel-track .hero-slide {
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}
@media (prefers-reduced-motion: reduce) {
    .hero-carousel--moving .hero-carousel-track .hero-slide { transition: none; }
}
.hero-carousel-track .hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}
/* First slide active by default (no JS) - and at once: no transition reaches it before the
   carousel has moved (above) */
.hero-carousel-track .hero-slide:first-child:not([aria-hidden="true"]) {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-3);
    margin-top: var(--sp-3);
}
.hero-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--navy-900);
    background: var(--white);
    color: var(--navy-900);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
}
.hero-nav-btn:hover {
    background: var(--navy-900);
    color: var(--white);
    transform: scale(1.05);
}
.hero-carousel-dots {
    display: flex;
    gap: 0;
    align-items: center;
}
/* The button is a 24x24 tap target and the dot is drawn inside it by ::before, at the size it
   always had (28/10/2026, owner by name, card i-small-fixes: on a phone the whole button was
   7px - too small for a finger; 24px is WCAG 2.5.8). The 24px buttons sit edge to edge, so
   the dots keep a visible gap without one between the buttons. */
.hero-dot {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.hero-dot::before {
    content: "";
    box-sizing: border-box;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    /* slate — visible on BOTH the light page bg and the dark page bg (was navy-25%,
       invisible dark-on-dark in dark mode, so only the active dot showed). */
    border: 1px solid rgba(148, 163, 184, 0.85);
    background: rgba(148, 163, 184, 0.45);
    transition: all 0.25s var(--ease);
}
.hero-dot:hover::before { background: rgba(148, 163, 184, 0.85); }
.hero-dot.active::before {
    background: var(--red-700);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.2);
}
@media (max-width: 768px) {
    .hero-carousel-track { min-height: 460px; }
    .hero-nav-btn { width: 32px; height: 32px; font-size: 18px; }
    .hero-dot::before { width: 8px; height: 8px; }
}
/* End hero-carousel */

/* =========================================================
 * 24. KOENIG EDITOR IMAGE WIDTHS — required by Ghost (2026-04-28)
 * Fixes the 2 theme validation errors:
 *   .kg-width-wide  → image breaks out of content column
 *   .kg-width-full  → image goes edge-to-edge
 * ========================================================= */
.kg-image-card { margin: var(--sp-6) 0; }
.kg-image-card img { display: block; max-width: 100%; height: auto; }

.kg-width-wide {
    width: 100vw;
    max-width: 1280px;
    position: relative;
    right: 50%;
    margin-right: -50vw;
    margin-left: -50vw;
}
.kg-width-wide img { width: 100%; }

.kg-width-full {
    width: 100vw;
    position: relative;
    right: 50%;
    margin-right: -50vw;
    margin-left: -50vw;
}
.kg-width-full img { width: 100%; }

@media (max-width: 1024px) {
    .kg-width-wide,
    .kg-width-full {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        right: 0;
    }
}
/* End Koenig widths */


/* ===== MOBILE_FIXES_2026_04_29 — sticky nav + hero responsive ===== */

/* --- 1. Sticky sections-strip across mobile (Chrome iOS = Safari WebKit) --- */
/* Both .site-header AND .sections-strip can't have top:0 — they fight on iOS.
   On mobile, header scrolls away (saves vertical space), sections-strip stays at top:0. */
@media (max-width: 768px) {
    .site-header {
        position: relative !important;
    }
    .sections-strip {
        position: sticky !important;
        top: 0 !important;
        z-index: 900 !important;
        background: var(--white);
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    }
}

/* On desktop, both stay sticky but stacked properly */
@media (min-width: 769px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 901;
    }
    .sections-strip {
        position: sticky;
        top: 71px;  /* below header (logo + accent) */
        z-index: 900;
    }
}

/* --- 2. Hero: better iPhone proportions --- */
@media (max-width: 640px) {
    .hero-carousel-track { min-height: 480px; } /* slides are position:absolute */
    .hero-inner {
        padding: 20px 16px !important;
        gap: 14px !important;
        min-height: 0 !important;
    }
    .hero-title {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin: 8px 0 !important;
    }
    .hero-excerpt {
        font-size: 13px !important;
        line-height: 1.5 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 8px !important;
    }
    .hero-image {
        aspect-ratio: 16/10 !important;
        max-height: 200px;
        margin-top: 8px;
    }
    .hero-meta { font-size: 11px !important; }
    .hero-badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
    .hero-carousel-controls {
        padding: 8px 12px !important;
    }
    .hero-nav-btn { width: 30px !important; height: 30px !important; font-size: 16px !important; }
    .hero-dot::before { width: 7px !important; height: 7px !important; }   /* the dot; the button stays 24px */
}

@media (max-width: 420px) {
    .hero-title { font-size: 19px !important; }
    .hero-carousel-track { min-height: 440px; }
    .hero-image { aspect-ratio: 16/9 !important; max-height: 170px; }
    .hero-inner { padding: 14px 12px !important; }
    .hero-excerpt { -webkit-line-clamp: 1; }
}

/* --- 3. People grid — tighter on iPhone --- */
@media (max-width: 480px) {
    .people-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .person-avatar { width: 64px !important; height: 64px !important; }
    .person-name { font-size: 12px !important; line-height: 1.2; }
    .person-role { font-size: 10px !important; }
}

/* --- 4. Container padding on iPhone (avoid edge-touching) --- */
@media (max-width: 640px) {
    .header-main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .sections-strip-inner {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .content-wrap,
    .content-wrap-full {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ===== /MOBILE_FIXES_2026_04_29 ===== */


/* ============================================================
 * UI_BUGFIX_2026_05_06 — hero crop consistency + breaking ticker iOS robustness
 * Targets: Bug 2 (hero image cropped inconsistently across slides/widths),
 *          Bug 3 (breaking ticker not visible/animating on iPhone Chrome/Safari).
 * Strict CSS-only. No JS, no markup change beyond index.hbs Bug 1.
 * ============================================================ */

/* --- Hero crop consistency: standardize on 4:3 to match Ghost feature_image source ratio --- */
.hero-image img {
    object-fit: cover;
    object-position: center center;  /* explicit; some browsers default differently */
}

/* Override the 16:10 / 16:9 mobile crops so all slides crop consistently from a 4:3 source.
   Drop max-height caps so aspect-ratio drives image size — image looks full-bleed, premium. */
@media (max-width: 640px) {
    .hero-image {
        aspect-ratio: 4 / 3 !important;
        max-height: none !important;
    }
    .hero-carousel-track { min-height: 540px; }  /* fits text block + 4:3 image at viewport width */
}
@media (max-width: 420px) {
    .hero-image {
        aspect-ratio: 4 / 3 !important;
        max-height: none !important;
    }
    .hero-carousel-track { min-height: 500px; }
}

/* --- Breaking ticker iOS robustness --- */
/* Force GPU compositing on the animated layer (iOS WebKit stability) */
.breaking-scroll-inner {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);  /* promote to compositor layer on older WebKit */
}

/* Reduced-motion + animation-fail fallback: show items as a horizontally scrollable static row.
   Ensures content remains visible if the keyframe animation glitches on iOS. */
@media (prefers-reduced-motion: reduce) {
    .breaking-scroll-inner {
        animation: none !important;
        -webkit-animation: none !important;
        transform: none !important;
        padding-right: 0 !important;
        white-space: nowrap;
    }
    .breaking-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* End UI_BUGFIX_2026_05_06 */

/* === SECTION_HEADER_AI_GRADIENT 2026-05-07 ===
   Subtle animated sheen overlay on the channel/tag archive hero, ON TOP
   of the section feature image. Gives a 'live' feel without being noisy.
*/
/* ============================================================
   ARCHIVE HERO — RESPONSIVE <picture> SYSTEM
   Replaces the old `background-image` hero with a modern art-directed
   <picture>/srcset element. Each section provides 3 compositions:
     mobile  ≤ 600px  → section-{slug}-mobile-{720|1440}.webp
     tablet  ≤ 1024px → section-{slug}-tablet-{1200|1800}.webp
     desktop ≥ 1025px → section-{slug}-desktop-{1600|2400}.webp
     fallback JPEG → section-{slug}-desktop-1600.jpg
   Focal-point fine-tuned per section via --hero-focal CSS variable.

   Stacking inside .archive-hero--with-image:
     z=0  → .archive-hero__photo (the <picture>/<img>)
     z=1  → .archive-hero__veil  (gradient darkening for text contrast)
     z=2  → ::before (sheen) + ::after (red rim) animated overlays
     z=3  → .archive-hero-inner (badge + h1 + description text)
   ============================================================ */

.archive-hero--with-image {
    position: relative;
    overflow: hidden;
    min-height: clamp(240px, 32.5vw, 460px);
    display: flex;
    align-items: center;
    isolation: isolate;
}
.archive-hero--with-image .archive-hero-inner { width: 100%; }

/* IMAGE LAYER (z=0) */
.archive-hero--with-image .archive-hero__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    margin: 0;
}
.archive-hero--with-image .archive-hero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-focal, 50% 50%);
}

/* GRADIENT VEIL (z=1) — darkens photo so live overlay text reads cleanly */
.archive-hero--with-image .archive-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(rgba(11,20,38,0.42), rgba(11,20,38,0.56));
}

/* ANIMATED OVERLAYS (z=2) — sheen + rim, decorative, brand-aligned */
.archive-hero--with-image::before,
.archive-hero--with-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    will-change: background-position, opacity;
}
/* Slow horizontal sweep — like a slow camera glide over the scene */
.archive-hero--with-image::before {
    background: linear-gradient(110deg,
        rgba(255,255,255,0)   0%,
        rgba(255,255,255,0)  35%,
        rgba(255,255,255,0.07) 50%,
        rgba(255,255,255,0)  65%,
        rgba(255,255,255,0) 100%);
    background-size: 220% 100%;
    animation: hero-sheen 14s ease-in-out infinite;
}
/* Diagonal red rim that pulses slowly — brand accent */
.archive-hero--with-image::after {
    background: radial-gradient(120% 90% at 100% 0%,
        rgba(185,28,28,0.0)  60%,
        rgba(185,28,28,0.06) 80%,
        rgba(185,28,28,0.0) 100%);
    animation: hero-rim 8s ease-in-out infinite;
}
@keyframes hero-sheen {
    0%   { background-position: 200% 50%; opacity: 0.7; }
    50%  { background-position: -100% 50%; opacity: 1.0; }
    100% { background-position: -300% 50%; opacity: 0.7; }
}
@keyframes hero-rim {
    0%, 100% { opacity: 0.55; transform: translateX(0); }
    50%      { opacity: 1.0;  transform: translateX(-8px); }
}
@media (prefers-reduced-motion: reduce) {
    .archive-hero--with-image::before,
    .archive-hero--with-image::after { animation: none; }
}

/* TEXT CONTENT (z=3) — above photo + veil + animated overlays */
.archive-hero-inner { position: relative; z-index: 3; }

/* PER-SECTION FOCAL POINT OVERRIDES
   Default focal point is 50% 50% (center). Each section can fine-tune
   without re-encoding the image by setting --hero-focal here. Values
   are CSS object-position percentages (x y). Safe to change anytime. */
body.tag-crime          .archive-hero__photo img { --hero-focal: 50% 50%; }
body.tag-news           .archive-hero__photo img { --hero-focal: 50% 50%; }
body.tag-politics       .archive-hero__photo img { --hero-focal: 50% 45%; }
body.tag-culture        .archive-hero__photo img { --hero-focal: 42% 50%; }
body.tag-education      .archive-hero__photo img { --hero-focal: 45% 50%; }
body.tag-sports         .archive-hero__photo img { --hero-focal: 50% 42%; }
body.tag-health         .archive-hero__photo img { --hero-focal: 50% 45%; }
body.tag-opinions       .archive-hero__photo img { --hero-focal: 40% 50%; }
body.tag-investigations .archive-hero__photo img { --hero-focal: 50% 45%; }
body.tag-real-estate    .archive-hero__photo img { --hero-focal: 55% 30%; }
body.tag-local          .archive-hero__photo img { --hero-focal: 50% 50%; }
.archive-hero--profiles .archive-hero__photo img { --hero-focal: 42% 50%; }
/* End ARCHIVE HERO RESPONSIVE PICTURE SYSTEM */

/* ═══════════════════════════════════════════════════════════════════
   PHASE 21 UX BLOCK A — Dark mode + Font scale + Header controls
   (2026-05-25 — editor-approved, WCAG-aligned)
   ═══════════════════════════════════════════════════════════════════
   Behavior:
   - Default theme follows OS via prefers-color-scheme.
   - Explicit user choice (saved in localStorage via early script in
     default.hbs) sets [data-theme="light"|"dark"] on <html>, overriding.
   - Font scale: WCAG 100/125/150% via [data-fontscale="125"|"150"] on
     <html>; rescales --fs-base which body inherits from.
   - All overrides limited to semantic vars (--bg/--text/--border…) so
     downstream rules don't need touching.
   ═══════════════════════════════════════════════════════════════════ */

/* --- OS preference: auto-dark if no explicit choice --- */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) {
        --bg:           #0B1426;
        --bg-card:      #101A30;
        --bg-dark:      #070D1C;
        --bg-darker:    #04080F;
        /* 2026-06-05 WCAG AAA bump (editor approved) — all 3 text vars pass 7:1 on #0B1426
           text 16.7:1 / muted 12.4:1 / faded 7.2:1 (was 3.8:1, failed AA) */
        --text:         #F3F4F6;
        --text-muted:   #CBD5E1;
        --text-faded:   #94A3B8;
        --text-inverse: #0B1426;
        --border:       #1E2B45;
        --border-strong:#2A3A58;
        --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
        --shadow:    0 2px 6px rgba(0,0,0,0.5);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.6);
        --shadow-lg: 0 10px 30px rgba(0,0,0,0.7);
    }
    /* Cards / sections need card-bg, not gray */
    html:not([data-theme]) .news-card,
    html:not([data-theme]) .sidebar,
    html:not([data-theme]) .sections-strip {
        background: var(--bg-card);
    }
    html:not([data-theme]) .post-content {
        color: var(--text);
    }
}

/* --- Explicit user choice: dark --- */
html[data-theme="dark"] {
    --bg:           #0B1426;
    --bg-card:      #101A30;
    --bg-dark:      #070D1C;
    --bg-darker:    #04080F;
    /* 2026-06-05 WCAG AAA bump (editor approved) — see comment above */
    --text:         #F3F4F6;
    --text-muted:   #CBD5E1;
    --text-faded:   #94A3B8;
    --text-inverse: #0B1426;
    --border:       #1E2B45;
    --border-strong:#2A3A58;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow:    0 2px 6px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.6);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.7);
}
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .sections-strip {
    background: var(--bg-card);
}
html[data-theme="dark"] .post-content {
    color: var(--text);
}

/* ──────────────────────────────────────────────────────────────────
   FIX 2026-06-02 — article body readability in dark mode.
   The original Phase 21 block targeted `.post-content`, but the actual
   article container in post.hbs is `.post-body`. Without this override,
   body text + headings + strong + blockquote stayed at `--navy-900`
   (dark) on a `--bg: #0B1426` (dark) → invisible.

   Fix uses semantic vars so future theme tweaks propagate automatically.
   Covers BOTH `@prefers-color-scheme: dark` (no explicit choice) AND
   `[data-theme="dark"]` (user toggle).
   ────────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) .post-body,
    html:not([data-theme]) .post-body p,
    html:not([data-theme]) .post-body li,
    html:not([data-theme]) .post-body h1,
    html:not([data-theme]) .post-body h2,
    html:not([data-theme]) .post-body h3,
    html:not([data-theme]) .post-body h4,
    html:not([data-theme]) .post-body strong,
    html:not([data-theme]) .post-body em {
        color: var(--text);
    }
    html:not([data-theme]) .post-body blockquote {
        color: var(--text);
        background: var(--bg-card);
    }
    /* h2 underline + first-letter stay brand-red (legible on dark bg) */
}
html[data-theme="dark"] .post-body,
html[data-theme="dark"] .post-body p,
html[data-theme="dark"] .post-body li,
html[data-theme="dark"] .post-body h1,
html[data-theme="dark"] .post-body h2,
html[data-theme="dark"] .post-body h3,
html[data-theme="dark"] .post-body h4,
html[data-theme="dark"] .post-body strong,
html[data-theme="dark"] .post-body em {
    color: var(--text);
}
html[data-theme="dark"] .post-body blockquote {
    color: var(--text);
    background: var(--bg-card);
}

/* Image dimming in dark mode (avoids retina-burn on pure-white photos) */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) img:not([data-no-dim]) { filter: brightness(0.92); }
}
html[data-theme="dark"] img:not([data-no-dim]) { filter: brightness(0.92); }

/* ──────────────────────────────────────────────────────────────────
   FIX 2026-06-08 — extend dark-mode text-color coverage.
   The .post-body block above covers the article body. ~40 other
   selectors across cards/profiles/pages/data-viz/pagination/people
   still used `color: var(--navy-900)` (#0B1426) or `color: var(--gray-900)`
   (#111827) → in dark mode these are dark-on-dark and UNREADABLE.
   Reported by editor on Chrome iPhone dark mode 2026-06-08. Root cause:
   theme historically used brand-navy directly for text instead of going
   through the `--text` semantic var (which IS dark-mode aware).
   Each selector below appears with `color: var(--navy-900)` or
   `color: var(--gray-900)` in light mode; this block flips them to
   `--text` only when the page is in dark mode. Light mode untouched.
   Both `@prefers-color-scheme: dark` (OS preference, no toggle) and
   `[data-theme="dark"]` (explicit user toggle) covered.
   ────────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) :is(
        .featured-card h3,
        .featured-card .card-title,
        .section-head h2,
        .section-investigations .section-head h2,
        .section-politi .section-head h2,
        .profiles-group .section-head h2,
        .card-title,
        .post-title,
        .post-subtitle,
        .stat-value,
        .rank-item h4,
        .post-share-label,
        .post-tags-label,
        .page-content,
        .page-content h2,
        .page-content h3,
        .page-content h4,
        .profile-stat .val,
        .profile-event h3,
        .data-card h2,
        .data-bar .bar-val,
        .contact-card h2,
        .contact-card p,
        .doc-title,
        .person-name,
        .profile-card-body h3,
        .life-name,
        .section-hero-emphasis .section-intro,
        .archive-hero h1,
        .hero-meta .sep,
        .post-hero-meta .sep
    ) {
        color: var(--text);
    }
}
html[data-theme="dark"] :is(
    .featured-card h3,
    .featured-card .card-title,
    .section-head h2,
    .section-investigations .section-head h2,
    .section-politi .section-head h2,
    .profiles-group .section-head h2,
    .card-title,
    .post-title,
    .post-subtitle,
    .stat-value,
    .rank-item h4,
    .post-share-label,
    .post-tags-label,
    .page-content,
    .page-content h2,
    .page-content h3,
    .page-content h4,
    .profile-stat .val,
    .profile-event h3,
    .data-card h2,
    .data-bar .bar-val,
    .contact-card h2,
    .contact-card p,
    .doc-title,
    .person-name,
    .profile-card-body h3,
    .life-name,
    .section-hero-emphasis .section-intro,
    .archive-hero h1,
    .hero-meta .sep,
    .post-hero-meta .sep
) {
    color: var(--text);
}

/* ──────────────────────────────────────────────────────────────────
   FIX 2026-06-14 — dark-mode WCAG AA contrast pass (IS 5568 / WCAG 2.1 AA).
   axe-core audit of home + article + /advertise (run in dark mode) flagged
   only color-contrast. Three sub-categories, all dark-mode-only — LIGHT MODE
   IS UNTOUCHED (already passes: gray-500 4.63–4.83, red-600 6.19–6.47 on
   white/#F9FAFB). Each pair below recomputed with WCAG math:

   (a) Card backgrounds that stayed hardcoded white while their text flipped
       light (the 2026-06-08 text fix didn't flip the surface) → text was
       light-on-white = invisible. Flip the surface to the dark card token.
         .featured-strip / .featured-card / .person-card
   (b) Muted meta text — gray-500 #6B7280 on the dark card (#101A30) = 3.58,
       fails 4.5. Remap to --text-faded #94A3B8 = 6.75 PASS.
         .card-meta (time/sep) · .featured-date · .row-card .meta
   (c) Small brand-red text — red-600 #B91C1C on dark navy = 2.67–2.84, fails.
       Remap to a lighter brand red #EF4444 (red-400) = 4.60–4.89 PASS. Keeps
       brand hue, only used in dark mode.
         .section-head .more · .card-meta .author · .featured-tag
         .ad-card__cta · .ad-slot__house-cta
   (d) Dark-on-dark titles — navy-900 #0B1426 on #101A30 = 1.06, invisible.
       Remap to --text. (Light mode keeps navy-900.)
         .ad-card__title · .ad-slot__house-title
   NOTE: white-on-official-social-brand-color (FB/WhatsApp/Telegram share +
   follow buttons) is a known axe false-positive — those are the platforms'
   mandated brand colors and are intentionally left as-is.
   ────────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    /* (a) surfaces */
    html:not([data-theme]) .featured-strip { background: var(--bg-card); }
    html:not([data-theme]) .featured-card:hover { background: var(--bg-dark); }
    html:not([data-theme]) .person-card { background: var(--bg-card); }
    /* (b) muted meta */
    html:not([data-theme]) :is(
        .card-meta, .card-meta .sep, .featured-date, .row-card .meta
    ) { color: var(--text-faded); }
    /* (c) small brand-red — incl. in-article links (#B91C1C=2.84 on dark body).
       The underline (border-bottom) is kept so links stay distinguishable. */
    html:not([data-theme]) :is(
        .section-head .more, .card-meta .author, .featured-tag,
        .ad-card__cta, .ad-slot__house-cta, .post-body a
    ) { color: #EF4444; }
    html:not([data-theme]) .post-body a { border-bottom-color: #EF4444; }
    html:not([data-theme]) .section-head .more:hover { color: #F87171; }
    /* (d) dark-on-dark titles */
    html:not([data-theme]) :is(
        .ad-card__title, .ad-slot__house-title
    ) { color: var(--text); }
}
html[data-theme="dark"] .featured-strip { background: var(--bg-card); }
html[data-theme="dark"] .featured-card:hover { background: var(--bg-dark); }
html[data-theme="dark"] .person-card { background: var(--bg-card); }
html[data-theme="dark"] :is(
    .card-meta, .card-meta .sep, .featured-date, .row-card .meta
) { color: var(--text-faded); }
html[data-theme="dark"] :is(
    .section-head .more, .card-meta .author, .featured-tag,
    .ad-card__cta, .ad-slot__house-cta, .post-body a
) { color: #EF4444; }
html[data-theme="dark"] .post-body a { border-bottom-color: #EF4444; }
html[data-theme="dark"] .section-head .more:hover { color: #F87171; }
html[data-theme="dark"] :is(
    .ad-card__title, .ad-slot__house-title
) { color: var(--text); }

/* --- Font scale (WCAG 100/125/150% via root override) --- */
html[data-fontscale="125"] { --fs-base: 18.75px; --fs-md: 20px; --fs-lg: 22.5px; }
html[data-fontscale="150"] { --fs-base: 22.5px;  --fs-md: 24px; --fs-lg: 27px; }
/* Body re-anchors to --fs-base when set */
html[data-fontscale] body { font-size: var(--fs-base); }
html[data-fontscale] .post-content,
html[data-fontscale] .post-content p,
html[data-fontscale] .post-content li {
    font-size: calc(var(--fs-base) * 1.13);  /* article-body proportional */
    line-height: 1.75;
}

/* --- Header controls cluster (theme + font) --- */
.header-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-end: 4px;
}
.header-controls button,
.header-controls .ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--gray-300);
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: all var(--dur-fast) var(--ease);
    cursor: pointer;
}
.header-controls button:hover,
.header-controls .ctrl-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}
.header-controls .ctrl-fsize { font-family: var(--font-sans); }
.header-controls .ctrl-theme svg { width: 18px; height: 18px; }
.header-controls .ctrl-fsize-a { font-size: 12px; }
.header-controls .ctrl-fsize-b { font-size: 15px; }
.header-controls .ctrl-fsize-c { font-size: 18px; }
.header-controls .ctrl-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.12);
    margin: 0 2px;
}
@media (max-width: 640px) {
    .header-controls .ctrl-fsize-a,
    .header-controls .ctrl-fsize-b,
    .header-controls .ctrl-fsize-c,
    .header-controls .ctrl-divider { display: none; }
}
/* Active state */
.header-controls button[aria-pressed="true"] {
    background: var(--red-700);
    color: var(--white);
}
/* End PHASE 21 UX BLOCK A */

/* ═══════════════════════════════════════════════════════════════════
   PHASE 21 UX BLOCK A2 — Reading progress bar + View Transitions
   (2026-05-25)
   - Progress bar fixed top of viewport, 3px, red, scales via JS.
   - View transitions: smooth cross-fade between page nav for browsers
     that support @view-transition (Chrome 111+, Safari 18+). Falls back
     to default page swap silently elsewhere.
   ═══════════════════════════════════════════════════════════════════ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1000;
    background: transparent;
    pointer-events: none;
    contain: strict;
}
.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--red-600), var(--red-500));
    transform-origin: right center;  /* RTL: progress fills from right */
    transform: scaleX(0);
    transition: transform 80ms linear;
    will-change: transform;
}

/* View Transitions API — smooth navigation between pages.
   Browsers that support it use these durations; others ignore the rule. */
@view-transition {
    navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 220ms;
    animation-timing-function: var(--ease);
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reading-progress-bar { transition: none; }
    ::view-transition-old(root),
    ::view-transition-new(root) { animation-duration: 0ms; }
}
/* End PHASE 21 UX BLOCK A2 */

/* ═══════════════════════════════════════════════════════════════════
   PHASE 21 UX BLOCK A4 — Reading mode (focused article view)
   (2026-05-25)
   When user clicks 📖 in header (post pages only), <html> gets
   [data-readingmode="on"], which: hides nav chrome, widens article,
   suppresses share/related/sidebar, and tightens header.
   ═══════════════════════════════════════════════════════════════════ */
html[data-readingmode="on"] .sections-strip,
html[data-readingmode="on"] .breaking-bar,
html[data-readingmode="on"] .main-nav,
html[data-readingmode="on"] .header-search,
html[data-readingmode="on"] .post-share,
html[data-readingmode="on"] .related,
html[data-readingmode="on"] .sidebar,
html[data-readingmode="on"] .post-tags,
html[data-readingmode="on"] .breadcrumbs,
html[data-readingmode="on"] .post-hero-meta .sep:last-of-type,
html[data-readingmode="on"] [data-follow-cluster] {
    display: none !important;
}
html[data-readingmode="on"] .site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}
html[data-readingmode="on"] .site-logo,
html[data-readingmode="on"] .logo-text-main,
html[data-readingmode="on"] .logo-text-sub {
    color: var(--text) !important;
}
html[data-readingmode="on"] .header-controls .ctrl-btn {
    color: var(--text-muted);
}
html[data-readingmode="on"] .post-page,
html[data-readingmode="on"] .post-article,
html[data-readingmode="on"] .post-body,
html[data-readingmode="on"] .post-content {
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: var(--bg-card) !important;
    color: var(--text) !important;
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
}
html[data-readingmode="on"] .post-content,
html[data-readingmode="on"] .post-body {
    font-size: 17px;
    line-height: 1.85;
}
html[data-readingmode="on"] .post-feature {
    max-width: 720px;
    margin: 0 auto var(--sp-6);
}
html[data-readingmode="on"] .ctrl-reading {
    background: var(--red-700);
    color: var(--white);
}
/* End PHASE 21 UX BLOCK A4 */

/* ═══════════════════════════════════════════════════════════════════
   PHASE 21 UX BLOCK A5 — Related-by-entity rail (Person mentions)
   (2026-05-25)
   Layout: 1 prominent hero card on the right (RTL), 2-3 smaller cards
   stacked on the left. If more than one person is mentioned, CSS hides
   subsequent rails so the page doesn't bloat.
   ═══════════════════════════════════════════════════════════════════ */
.related-by-entity {
    max-width: var(--container);
    margin: var(--sp-12) auto var(--sp-8);
    padding: 0 var(--sp-6);
}
/* Only the first related-by-entity is visible */
.related-by-entity ~ .related-by-entity { display: none; }

.related-by-entity .section-head { position: relative; }
.related-by-entity .section-head-link {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--red-600);
}
.related-by-entity .section-head-link:hover { color: var(--red-700); text-decoration: underline; }

.related-by-entity-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--sp-6);
    align-items: stretch;
}
@media (max-width: 820px) {
    .related-by-entity-grid { grid-template-columns: 1fr; }
}

.rbe-hero {
    grid-row: span 3;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rbe-hero:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rbe-hero .card-img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}
.rbe-hero .card-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
}
.rbe-hero .card-body {
    padding: var(--sp-5);
    display: flex; flex-direction: column; gap: var(--sp-3);
    flex: 1;
}
.rbe-hero .card-title {
    font-size: var(--fs-2xl);
    line-height: 1.2;
}
.rbe-hero .card-title a { color: var(--text); }
.rbe-hero .card-title a:hover { color: var(--red-600); }
.rbe-hero .card-excerpt {
    font-size: var(--fs-md);
    color: var(--text-muted);
    line-height: 1.55;
}
.rbe-hero .card-meta {
    font-size: var(--fs-xs);
    color: var(--text-faded);
    margin-top: auto;
}

.rbe-small {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--sp-4);
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rbe-small:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.rbe-small .card-img-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}
.rbe-small .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.rbe-small .card-body {
    padding: var(--sp-3) var(--sp-4) var(--sp-3) 0;
    display: flex; flex-direction: column; gap: var(--sp-2);
}
.rbe-small .card-title {
    font-size: var(--fs-md);
    line-height: 1.3;
    font-weight: 700;
}
.rbe-small .card-title a { color: var(--text); }
.rbe-small .card-title a:hover { color: var(--red-600); }
.rbe-small .card-meta {
    font-size: var(--fs-xs);
    color: var(--text-faded);
}
@media (max-width: 820px) {
    .rbe-small { grid-template-columns: 80px 1fr; }
    .rbe-hero .card-title { font-size: var(--fs-xl); }
}
/* End PHASE 21 UX BLOCK A5 */

/* ═══════════════════════════════════════════════════════════════════
   PHASE 21 UX BLOCK B6 — Share-on-selection tooltip
   (2026-05-25)
   Floating pill above text selection inside .post-body. WhatsApp + Telegram
   + Copy. Hidden until selection happens. Width-capped, mobile-aware.
   ═══════════════════════════════════════════════════════════════════ */
.share-quote {
    position: absolute;
    z-index: 950;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    background: var(--navy-900);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    direction: rtl;
}
.share-quote[hidden] { display: none; }
.share-quote::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border: 6px solid transparent;
    border-top-color: var(--navy-900);
    border-bottom: 0;
}
.sq-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    color: var(--white);
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: background var(--dur-fast) var(--ease);
}
.sq-btn:hover { background: rgba(255,255,255,0.12); }
.sq-wa svg { color: #25D366; }
.sq-tg svg { color: #0088CC; }
.sq-copy svg { color: var(--gray-300); }
@media (max-width: 640px) {
    .share-quote { padding: 4px; gap: 2px; }
    .sq-btn { padding: 6px 8px; font-size: 12px; }
}
/* End PHASE 21 UX BLOCK B6 */

/* ═══════════════════════════════════════════════════════════════════
   PHASE 21 UX BLOCK B7 — Save for later (🔖)
   (2026-05-25)
   - Floating FAB on each post page (top-right, sticky-ish — fixed)
   - Counter badge in header next to 🔖 (count of saved items)
   - Modal panel listing all saved articles, with per-item delete + clear-all
   - localStorage only (no auth, no backend), capped at 100 items
   ═══════════════════════════════════════════════════════════════════ */

/* Per-post FAB */
.post-save-fab {
    position: fixed;
    top: 100px;
    inset-inline-end: 16px;
    z-index: 850;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-muted);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-fast) var(--ease);
    border: 1px solid var(--border);
}
.post-save-fab:hover { background: var(--gray-100); color: var(--text); transform: translateY(-1px); }
.post-save-fab.saved {
    background: var(--red-600);
    color: var(--white);
    border-color: var(--red-700);
}
.post-save-fab.saved svg { fill: currentColor; }
@media (max-width: 820px) {
    .post-save-fab { top: auto; bottom: 80px; inset-inline-end: 12px; }
}

/* Header counter */
.ctrl-saved { position: relative; }
.ctrl-saved-count {
    position: absolute;
    top: -2px;
    inset-inline-end: -2px;
    background: var(--red-600);
    color: var(--white);
    font-size: 9px;
    font-weight: 900;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Saved panel modal */
.saved-panel {
    position: fixed;
    inset: 0;
    z-index: 1100;
}
.saved-panel[hidden] { display: none; }
.saved-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}
.saved-panel-inner {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    bottom: 0;
    width: min(420px, 100%);
    background: var(--bg-card);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    direction: rtl;
}
.saved-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-5) var(--sp-5) var(--sp-3);
    border-bottom: 1px solid var(--border);
}
.saved-panel-head h2 {
    font-size: var(--fs-xl);
    color: var(--text);
}
.saved-panel-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    transition: background var(--dur-fast) var(--ease);
}
.saved-panel-close:hover { background: var(--gray-100); color: var(--text); }
.saved-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-3) var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.saved-empty {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-align: center;
    padding: var(--sp-12) var(--sp-4);
}
.saved-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: var(--sp-3);
    padding: var(--sp-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    align-items: center;
}
.saved-item-img {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--gray-200);
}
.saved-item-img img { width: 100%; height: 100%; object-fit: cover; }
.saved-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.saved-item-title {
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.3;
}
.saved-item-title a { color: var(--text); }
.saved-item-title a:hover { color: var(--red-600); }
.saved-item-date {
    font-size: var(--fs-xs);
    color: var(--text-faded);
}
.saved-item-del {
    font-size: var(--fs-xs);
    color: var(--red-600);
    align-self: flex-start;
    padding: 2px 0;
    transition: color var(--dur-fast) var(--ease);
}
.saved-item-del:hover { color: var(--red-700); text-decoration: underline; }
.saved-panel-foot {
    padding: var(--sp-4) var(--sp-5);
    border-top: 1px solid var(--border);
    text-align: center;
}
.saved-clear {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius);
    transition: all var(--dur-fast) var(--ease);
}
.saved-clear:hover { color: var(--red-600); background: var(--gray-100); }
/* Mobile: panel comes from bottom instead of side */
@media (max-width: 640px) {
    .saved-panel-inner {
        top: auto;
        inset-inline-start: 0;
        inset-inline-end: 0;
        bottom: 0;
        width: 100%;
        height: 85vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}
/* End PHASE 21 UX BLOCK B7 */
/* ═══════════════════════════════════════════════════════════════════
   FOLLOW WIDGETS (hnf-) — 2026-06-15
   All classes prefixed `hnf-` to avoid collisions:
   (1) .hnf-pill   — the brand pill (the site's own icons and brand colours).
   (2) .hnf-end    — end-of-article line + the pills (spec 10 item 1, owner
       23/10/2026; replaced the 2026-06-15 three-tile .hnf-block). Keeps
       data-follow-cluster, so print + reading-mode CSS still hide it. No animation.
   (3) .wa-bar     — «הצטרפו בוואטסאפ», phones only, while the channel setting is set.
   The top byline strip (סידור A) and its scroll-in glow went on 28/10/2026 (owner by
   name, card i-whatsapp-first): it pushed the article down on a phone and repeated
   the end-of-article line. Brand: wa #008069, tg #1A73A8, fb #0866FF, ig gradient -
   the 4.5:1 shades of 28/10/2026. prefers-reduced-motion disables hover transforms.
   ═══════════════════════════════════════════════════════════════════ */

/* ================= (1) THE PILL ================= */
.hnf-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s, filter .15s;
}
/* hover darkens, never lightens: a lighter tint would drop the white text under 4.5:1 */
.hnf-pill:hover { transform: translateY(-2px); filter: brightness(.92); }
.hnf-pill svg { width: 17px; height: 17px; flex: 0 0 auto; }
.hnf-pill-name { line-height: 1; }
/* 28/10/2026 (card i-accessibility-fixes): the same darker brand shades as the share bar
   (Telegram was 3.02:1, Facebook 4.23:1), and an Instagram gradient whose every stop holds
   4.5:1 under white text - the light orange end of the old one measured 2.34:1. (The WhatsApp
   pill, card i-whatsapp-first, left on 10/11/2026: the end-of-article card is the article's one
   invitation to the channel - partials/wa-endcard.hbs.) */
.hnf-p-tg { background: #1A73A8; }
.hnf-p-fb { background: #0866FF; }
.hnf-p-ig { background: linear-gradient(45deg,#B45309,#C2410C 25%,#C5225B 50%,#A3238E 75%,#833AB4); }
/* 08/11/2026 (owner by name, tiktok-youtube-on-site-0811): TikTok's black, 21:1; YouTube's red
   darkened to #CC0000, 5.89:1 - the brand's own #FF0000 is 4.00:1 under white. */
.hnf-p-tt { background: #000000; }
.hnf-p-yt { background: #CC0000; }

/* ================= (2) END OF ARTICLE — one line, three pills =================
   spec 10 item 1 (owner, Friday 23/10/2026): «רוצים את טירת כרמל ראשונים? עקבו אחרינו» and
   Instagram · Facebook · Telegram, right after the article body. Mobile first: the three
   pills share one row at phone width (44px touch targets), and take their own width from
   600px. When the WhatsApp channel is set (28/10/2026) it comes first and, on a phone,
   takes a row of its own above the three. */
.hnf-end {
    max-width: 760px;
    margin: var(--sp-6) auto var(--sp-5);
    padding: 0 var(--sp-4);
    text-align: center;
}
.hnf-end-line {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text, #0B1426);   /* flips in both dark modes: OS-preferred and chosen */
}
.hnf-end-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.hnf-end .hnf-pill {
    /* five pills since 08/11/2026 (the channel's own row above them left on 10/11/2026): three
       to a phone row, never five squeezed into one (a 28% basis fits three with their gaps at
       320px and never four) */
    flex: 1 1 28%;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding: 10px 8px;
    font-size: 14px;
}
@media (min-width: 600px) {
    .hnf-end-btns { gap: 10px; }
    .hnf-end .hnf-pill { flex: 0 0 auto; padding: 11px 20px; font-size: 15px; }
}

/* ---- reduced motion: no hover transforms ---- */
@media (prefers-reduced-motion: reduce) {
    .hnf-pill:hover { transform: none !important; }
}

/* ================= (3) «הצטרפו בוואטסאפ» — PHONES ONLY =================
   28/10/2026 (owner by name, card i-whatsapp-first). default.hbs renders it only while the
   theme setting whatsapp_channel holds the channel's link; this shows it only up to
   768px. One thin line under the header, in the normal flow: not fixed, not sticky, no
   animation. White on WhatsApp's green, 4.89:1. In FIRST_SCREEN (build_critical_css.py),
   so it never paints unstyled. */
.wa-bar { display: none; }
@media (max-width: 768px) {
    .wa-bar { display: block; background: #008069; }
    .wa-bar-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 36px;
        padding: 6px 16px;
        color: #fff;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.2;
        text-decoration: none;
    }
    .wa-bar-link svg { width: 18px; height: 18px; flex: 0 0 auto; }
}
/* ================= (4) + (6) THE CHANNEL IN THE PAGE'S FLOW =================
   10/11/2026. The floating phone banner was turned down («צף ובולט ומסתיר»); of the alternatives
   the owner kept, after their preview, one invitation at the bottom of each page - «ברוב ההדמויות
   למטה יש כפילות בהזמנות בסמיכות גדולה. זה מיותר»: the end-of-article card (4) and the home
   list's card (6). The share row's follow button (5) never shipped. Both speak the top bar's
   language - WhatsApp's app green #008069 under white, weight 800, 4.89:1 - inside the flow of
   the page: never fixed, never sticky, no animation. Phones and desktop alike. A sponsor's
   private preview hides both (default.hbs marks it before the first paint). */
html[data-sponsor-preview] .wa-endcard,
html[data-sponsor-preview] .wa-homecard { display: none !important; }

/* (4) end of article - partials/wa-endcard.hbs: one line after the body. The question and the
   call keep their own lines when a phone is too narrow for both, never a word apart. */
.wa-endcard {
    max-width: 760px;
    margin: var(--sp-6) auto 0;
    padding: 0 var(--sp-4);
}
.wa-endcard-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #008069;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}
.wa-endcard-q, .wa-endcard-cta { white-space: nowrap; }
.wa-endcard-cta { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* hover darkens, never lightens: white keeps its 4.5:1 */
.wa-endcard-link:hover { filter: brightness(.92); }
.wa-endcard-link:focus-visible { outline: 3px solid #008069; outline-offset: 3px; }

/* (6) the home list - partials/wa-homecard.hbs: a .list-card whose picture is WhatsApp's green
   with the site's mark and WhatsApp's glyph, and whose byline is «להצטרפות לערוץ». */
.wa-homecard { color: inherit; text-decoration: none; }
.wa-homecard .card-img-wrap.wa-homecard-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #008069;
    color: #fff;
}
.wa-homecard-logos { display: flex; align-items: center; gap: 16px; }
.wa-homecard-logos img { width: 56px; height: 56px; border-radius: 8px; }
.wa-homecard-logos svg { width: 52px; height: 52px; flex: 0 0 auto; }
.wa-homecard-brand { font-size: 17px; font-weight: 800; line-height: 1.2; }
.wa-homecard-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #008069;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}
.wa-homecard:hover .card-title { color: #008069; }
html[data-theme="dark"] .wa-homecard:hover .card-title { color: #4ADE80; }
.wa-homecard:focus-visible { outline: 3px solid #008069; outline-offset: 3px; }
/* the green ring is 4.68:1 on the light page and 3.76:1 on the dark one, where white is 18:1 */
html[data-theme="dark"] .wa-endcard-link:focus-visible,
html[data-theme="dark"] .wa-homecard:focus-visible { outline-color: #fff; }
@media print {
    .wa-endcard, .wa-homecard { display: none !important; }
}
/* End FOLLOW WIDGETS (hnf-) */

/* =========================================================
   TIER B3 NAV — 2026-05-25
   Why: editor-approved emphasis on top-row scan-ability;
   חינוך/בריאות/דעות kept reachable but visually subordinate.
   ========================================================= */
.main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}
.main-nav-row {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.main-nav-row-primary > a {
    font-size: var(--fs-sm);
    font-weight: 700;
}
.main-nav-row-secondary {
    padding-top: 2px;
    margin-top: 2px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.main-nav-row-secondary > a {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.72;
    padding: 4px 12px;
}
.main-nav-row-secondary > a:hover { opacity: 1; }

.section-pill-divider {
    flex-shrink: 0;
    width: 1px;
    height: 18px;
    background: var(--gray-300);
    margin: 0 var(--sp-2);
}
.section-pill-secondary {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.78;
    padding: 6px 12px;
}
.section-pill-secondary:hover { opacity: 1; }

.archive-hero--profiles {
    background: linear-gradient(180deg, #0B1426 0%, #1E2B45 100%);
    color: #fff;
}
.archive-hero--profiles .archive-hero-inner .breadcrumbs a,
.archive-hero--profiles .archive-hero-inner h1 { color: #fff; }
.archive-hero--profiles .archive-hero-inner .description { color: rgba(255,255,255,0.85); }
.archive-hero--profiles .archive-hero-inner .badge {
    background: var(--red-500);
    color: #fff;
}
.profiles-group { margin-bottom: var(--sp-8); }
.profiles-group .section-head h2 {
    font-size: 22px;
    color: var(--navy-900);
}
.profiles-loading {
    border-radius: var(--radius);
    border: 1px dashed var(--gray-300);
}

@media (max-width: 768px) {
    .main-nav.open .main-nav-row-primary,
    .main-nav.open .main-nav-row-secondary {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
        justify-content: stretch;
    }
    .main-nav.open .main-nav-row-secondary {
        margin-top: var(--sp-2);
        padding-top: var(--sp-2);
        border-top: 1px solid var(--navy-800);
    }
    .main-nav.open .main-nav-row-secondary > a {
        font-size: 13px;
        opacity: 0.85;
        padding: var(--sp-3) var(--sp-4);
    }
    .section-pill-divider { display: none; }
}
/* End TIER B3 NAV */

/* ============================================================
   AD SLOTS — first-light (v3.0 Stage 3, house-ads, zero-CLS)
   Reserved-height boxes; inner content is swapped server-side later
   without changing the box → no layout shift, no live-collapse.
   Uses only existing design tokens so it adapts to dark mode.
   ============================================================ */
.ad-slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-inline: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    overflow: hidden;
}
.ad-slot__label {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 7px;
    border-end-end-radius: 6px;
    border: 1px solid var(--border);
    border-top: 0;
    border-inline-start: 0;
    pointer-events: none;
}
.ad-slot__house {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    text-decoration: none;
    text-align: center;
    padding: 10px 16px;
    color: var(--text);
}
.ad-slot__house-title { font-weight: 800; font-size: var(--fs-md, 1rem); color: var(--navy-900); }
.ad-slot__house-cta   { font-weight: 700; font-size: var(--fs-sm, .875rem); color: var(--red-600); }
.ad-slot__house:hover .ad-slot__house-cta { text-decoration: underline; text-underline-offset: 3px; }

/* footer_banner: full-width responsive box, ~90px tall (728x90 family) */
.ad-slot--footer {
    width: 100%;
    max-width: 970px;
    min-height: 96px;            /* reserves height → zero CLS */
    margin-block: 24px;
}
@media (max-width: 600px) {
    .ad-slot--footer { min-height: 110px; }   /* mobile creative is taller */
}
.ad-slot-wrap { padding-inline: 16px; }

/* native sponsored feed-card (house ad) */
.ad-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 200px; gap: 6px; text-align: center; padding: 20px;
    background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius, 8px);
}
.ad-card__label { position: absolute; top: 8px; inset-inline-start: 8px; font-size: 10px;
    font-weight: 700; color: var(--text-muted); background: var(--bg); padding: 2px 7px; border-radius: 4px; }
.ad-card__link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.ad-card__title { font-weight: 800; font-size: var(--fs-md, 1rem); color: var(--navy-900); }
.ad-card__cta { font-weight: 700; font-size: var(--fs-sm, .875rem); color: var(--red-600); }
.ad-card__link:hover .ad-card__cta { text-decoration: underline; text-underline-offset: 3px; }

/* in-article banner (injected by main.js after p3/p7, reserved height) */
.ad-slot--inline { width: 100%; max-width: 728px; min-height: 140px; margin: 24px auto; }
@media (max-width: 600px) { .ad-slot--inline { min-height: 170px; } }

/* mobile_anchor: fixed bottom, mobile-only, dismissible (pure CSS), safe-area inset */
.ad-anchor-toggle { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.ad-slot--anchor { display: none; }
.ad-anchor-spacer { display: none; }
@media (max-width: 768px) {
    .ad-slot--anchor {
        display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
        width: 100%; min-height: 56px; margin: 0; border-radius: 0;
        border-inline: 0; border-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, .12);
    }
    .ad-anchor-spacer { display: block; height: 56px; }
    .ad-anchor-toggle:checked ~ .ad-slot--anchor,
    .ad-anchor-toggle:checked ~ .ad-anchor-spacer { display: none; }
}
.ad-anchor__close {
    position: absolute; top: 4px; inset-inline-end: 6px; width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
    color: var(--text-muted); background: var(--bg); border: 1px solid var(--border);
    border-radius: 50%; cursor: pointer; text-decoration: none;
}

/* The editor's ad in a slot (assets/js/ads.js, owner by name 28/10/2026, i-ad-manager). The
   creative takes the exact height the slot already reserves, and the picture is fitted inside
   it (contain), so an ad of any shape never moves the page. The label above it is untouched. */
.ad-slot__creative { padding: 0; gap: 0; }
.ad-slot__creative img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ad-slot--footer .ad-slot__creative { height: 96px; }
.ad-slot--inline .ad-slot__creative { height: 140px; }
.ad-slot--anchor .ad-slot__creative { height: 56px; }
@media (max-width: 600px) {
    .ad-slot--footer .ad-slot__creative { height: 110px; }
    .ad-slot--inline .ad-slot__creative { height: 170px; }
}
.ad-card .ad-slot__creative { width: 100%; gap: 8px; }
.ad-card .ad-slot__creative img { height: 140px; border-radius: 6px; }

/* «תוכן שיווקי» on a sponsored article and its cards (owner by name 28/10/2026, i-sponsored-article).
   The internal tag #sponsored prints these; the label is the same words as the native ad card's. */
.sponsored-banner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    margin: 0 0 12px; font-size: var(--fs-sm, .875rem); color: var(--text-muted);
}
.sponsored-banner__label, .sponsored-label {
    display: inline-block; font-weight: 800; letter-spacing: .02em; color: var(--navy-900);
    background: #fde68a; border: 1px solid #f59e0b; border-radius: 4px; padding: 2px 8px;
}
.sponsored-label { font-size: 11px; margin-bottom: 6px; padding: 1px 7px; }
.sponsored-nobyline + .sep { display: none; }
html[data-theme="dark"] .sponsored-banner__label, html[data-theme="dark"] .sponsored-label { color: #1c1917; }
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) .sponsored-banner__label, html:not([data-theme]) .sponsored-label { color: #1c1917; }
}

/* ===== /advertise — owner-UX landing v2 (qualitative, no numbers; CLS-safe: all CSS/SVG) =====
   Editor-approved 2026-06-14. 6 sections: hero · why · ad-format showcase · promise ·
   how-it-works · CTA. WCAG AA verified light + dark. CTA → Telegram (inviolable). */
.adv { padding-block: clamp(18px, 4vw, 30px) clamp(48px, 8vw, 76px); }
.adv__wrap { max-width: 880px; margin-inline: auto; padding-inline: var(--sp-6); }
.adv-section { margin-top: clamp(48px, 9vw, 84px); }
.adv-section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(26px, 5vw, 40px); }
.adv-section__title { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 900; line-height: 1.25;
    color: var(--text); margin: 0 0 10px; }
.adv-section__sub { color: var(--text-muted); font-size: var(--fs-md); line-height: 1.6; margin: 0; }

/* hero — navy panel */
.adv-hero { position: relative; overflow: hidden; text-align: center; color: #fff;
    background: linear-gradient(155deg, var(--navy-800) 0%, var(--navy-900) 58%, var(--navy-950) 100%);
    border-radius: var(--radius-xl); padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 56px); }
.adv-hero__wm { position: absolute; inset: auto auto -.46em -.12em; font-family: var(--font-serif);
    font-weight: 900; font-size: clamp(220px, 44vw, 400px); line-height: .8; color: #fff; opacity: .05;
    pointer-events: none; user-select: none; }
.adv-hero > * { position: relative; }
.adv-hero__mark { width: 64px; height: 64px; margin: 0 auto 18px; }
.adv-kicker { display: inline-block; font-weight: 700; font-size: var(--fs-sm); letter-spacing: .04em;
    color: var(--red-400); border: 1px solid var(--red-400); border-radius: 999px; padding: 5px 16px; margin-bottom: 16px; }
.adv-hero__title { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 900; line-height: 1.15; color: #fff; margin: 0 0 16px; }
.adv-hero__title .accent { color: var(--red-400); }
.adv-hero__lead { font-size: var(--fs-lg); line-height: 1.7; color: rgba(255, 255, 255, .88); max-width: 600px; margin: 0 auto 28px; }
.adv-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.adv-hero__trust { margin-top: 22px; font-size: var(--fs-sm); color: rgba(255, 255, 255, .74); }

/* buttons */
.adv-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.05rem; text-decoration: none;
    padding: 14px 30px; border-radius: 10px; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.adv-btn svg { width: 22px; height: 22px; flex: none; }
.adv-btn--tg { background: var(--red-600); color: #fff; box-shadow: 0 6px 20px rgba(185, 28, 28, .28); }
.adv-btn--tg:hover { background: var(--red-700); transform: translateY(-1px); }
.adv-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); padding: 13px 26px; }
.adv-btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .75); }

/* why cards */
.adv-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.adv-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 24px;
    text-align: center; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.adv-card:hover { transform: translateY(-3px); border-color: var(--red-500); box-shadow: 0 8px 24px rgba(11, 20, 38, .10); }
.adv-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
    border-radius: 50%; background: var(--navy-900); color: #fff; margin-bottom: 16px; }
.adv-card__icon svg { width: 28px; height: 28px; }
.adv-card h3 { font-size: var(--fs-lg); font-weight: 800; color: var(--text); margin: 0 0 8px; }
.adv-card p { color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ad-format showcase — schematic placement mockups (decorative, aria-hidden) */
.adv-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.adfmt { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.adfmt__frame { position: relative; height: 148px; border-radius: var(--radius); overflow: hidden; background: var(--bg);
    border: 1px solid var(--border); padding: 12px; display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.adfmt h3 { font-size: var(--fs-md); font-weight: 800; color: var(--text); margin: 0 0 4px; }
.adfmt p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.55; margin: 0; }
.mock-line { height: 8px; border-radius: 4px; background: var(--border-strong); opacity: .75; flex: none; }
.mock-line.s { width: 55%; } .mock-line.m { width: 78%; }
.mock-title { height: 11px; width: 68%; border-radius: 4px; background: var(--text-faded); flex: none; }
.mock-ad { position: relative; border: 1px dashed var(--red-500); background: rgba(220, 38, 38, .10); border-radius: 6px;
    display: flex; align-items: center; justify-content: center; color: var(--text); font-weight: 800; font-size: 11px; }
.mock-ad__tag { position: absolute; top: 5px; inset-inline-start: 6px; font-size: 9px; font-weight: 700; letter-spacing: .02em;
    color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.adfmt__frame--feed .mock-ad { height: 46px; }
.adfmt__frame--article .mock-ad { height: 40px; margin-block: 3px; }
.adfmt__frame--footer { justify-content: space-between; }
.adfmt__frame--footer .mock-ad { height: 34px; margin-top: 2px; }
.adfmt__frame--mobile { align-items: center; justify-content: center; background: var(--bg); }
.mock-phone { width: 78px; height: 118px; border: 2px solid var(--border-strong); border-radius: 12px; background: var(--bg-card);
    padding: 8px 7px 0; display: flex; flex-direction: column; gap: 5px; position: relative; overflow: hidden; }
.mock-phone .mock-ad { position: absolute; inset-inline: 5px; bottom: 5px; height: 22px; font-size: 9px; }
.mock-phone .mock-ad__close { position: absolute; top: 2px; inset-inline-end: 4px; font-size: 11px; color: var(--text-muted); font-weight: 700; }

/* steps */
.adv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.adv-step { text-align: center; }
.adv-step__num { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%;
    background: var(--navy-900); color: #fff; font-family: var(--font-serif); font-weight: 900; font-size: 1.7rem; margin-bottom: 14px; }
.adv-step h3 { font-size: var(--fs-lg); font-weight: 800; color: var(--text); margin: 0 0 6px; }
.adv-step p { color: var(--text-muted); line-height: 1.6; margin: 0; }

/* promise band (navy) */
.adv-promise { background: linear-gradient(155deg, var(--navy-800), var(--navy-900)); color: #fff; border-radius: var(--radius-xl);
    padding: clamp(38px, 6vw, 58px) clamp(24px, 5vw, 48px); }
.adv-promise .adv-section__title { color: #fff; }
.adv-promise .adv-section__sub { color: rgba(255, 255, 255, .82); }
.adv-promise__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 6px; }
.adv-promise__item { text-align: center; }
.adv-promise__check { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; background: rgba(239, 68, 68, .18);
    color: var(--red-400); align-items: center; justify-content: center; margin-bottom: 12px; }
.adv-promise__check svg { width: 24px; height: 24px; }
.adv-promise__item h3 { color: #fff; font-size: var(--fs-lg); font-weight: 800; margin: 0 0 6px; }
.adv-promise__item p { color: rgba(255, 255, 255, .84); line-height: 1.6; margin: 0; }

/* final CTA (navy) */
.adv-cta { text-align: center; color: #fff; border-radius: var(--radius-xl); position: relative; overflow: hidden;
    background: linear-gradient(155deg, var(--navy-800), var(--navy-900) 70%, var(--navy-950));
    padding: clamp(42px, 7vw, 66px) clamp(24px, 5vw, 48px); }
.adv-cta h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 900; margin: 0 0 12px; }
.adv-cta p { color: rgba(255, 255, 255, .86); max-width: 540px; margin: 0 auto 26px; line-height: 1.65; }
.adv-cta__note { margin-top: 16px; font-size: var(--fs-sm); color: rgba(255, 255, 255, .68); }
#how { scroll-margin-top: 72px; }

/* /advertise/ leads (owner by name 28/10/2026, card i-advertise-leads): the three-field form and
   the live numbers. Each is hidden in the HTML and shown only by the page's script, from
   /ads/advertise.json - a switch that is off or a number below the owner's threshold leaves the
   page exactly as it was. (Its WhatsApp button was removed 07/11/2026, owner by name.) */
.adv-btn[hidden], .adv-stats[hidden], .adv-lead[hidden] { display: none; }
.adv-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 auto 22px; }
.adv-stats__item { min-width: 160px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px; padding: 12px 18px; }
.adv-stats__num { display: block; font-size: 1.7rem; font-weight: 900; color: #fff; }
.adv-stats__label { font-size: var(--fs-sm); color: rgba(255, 255, 255, .82); }
.adv-stats__asof { flex-basis: 100%; font-size: 12px; color: rgba(255, 255, 255, .62); }
.adv-lead { scroll-margin-top: 72px; }
.adv-form { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 30px); }
.adv-form label { display: block; font-weight: 700; font-size: var(--fs-sm); color: var(--text); margin-bottom: 6px; }
.adv-form input[type="text"], .adv-form input[type="tel"] { width: 100%; box-sizing: border-box; padding: 12px 14px;
    border: 1px solid var(--border-strong); border-radius: 8px; font: inherit; font-size: 1rem; background: var(--bg); color: var(--text); }
.adv-form input[type="tel"] { direction: ltr; text-align: right; }
.adv-consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; }
.adv-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.adv-consent label { font-weight: 400; color: var(--text-muted); margin: 0; }
.adv-form__notice { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; margin: 0; }
.adv-form__notice a { color: var(--red-600); }
.adv-form__send { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.adv-form__status { font-weight: 700; margin: 0; }
.adv-form__status.is-ok { color: #15803d; }
.adv-form__status.is-err { color: var(--red-600); }
.adv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* dark-mode: ad-slot LABELS use adaptive var(--text) (passes AA both modes); the red dashed
   border + legal tag carry the "ad" cue. Navy bands carry their own white-on-navy. */
html[data-theme="dark"] .mock-ad { border-color: var(--red-400); }
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) .mock-ad { border-color: var(--red-400); }
}

/* ===== AI-writer credit + «הצוות שלנו» (owner, by name, Saturday 24/10/2026) =====
   «שקיפות ברורה. אבל לא צריך להפריע»: one word after the name, never a banner. The label
   (partials/writer-label.hbs) sits in the byline's own meta line and inherits that line's
   grey, so it carries the light/dark contrast work each line already has. Single source:
   assets/data/writers.json -> campaign/build_writers.py. */
.writer-ai { font-weight: 400; white-space: nowrap; }
/* A card's meta line does not wrap, so on a phone the extra word squeezed the name and the
   date into two lines each. Only where a label is present: wrap whole items instead. */
.card-meta:has(.writer-ai) { flex-wrap: wrap; row-gap: 2px; }
.card-meta:has(.writer-ai) > * { white-space: nowrap; }
.writer-team-link { white-space: nowrap; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.team-intro { font-size: var(--fs-lg); }
.page-content .team-roster { list-style: none; margin: 0 0 var(--sp-6); padding: 0; display: grid; gap: var(--sp-3); }
@media (min-width: 641px) { .page-content .team-roster { grid-template-columns: 1fr 1fr; } }
.team-card {
    display: flex; align-items: center; gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4); line-height: 1.45;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
}
.team-avatar {
    flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy-900); color: var(--white); font-weight: 900; font-size: var(--fs-lg);
}
.team-card-body { min-width: 0; }
.page-content .team-card p { margin: 0; }
.team-credit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sp-2); font-weight: 800; }
.page-content .team-credit a.team-name { border-bottom: 0; }
.team-credit .writer-ai, .team-beat { color: var(--gray-500); }
.team-beat { font-size: var(--fs-sm); }
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) :is(.team-credit .writer-ai, .team-beat) { color: var(--text-faded); }
    html:not([data-theme]) .page-content .team-credit a.team-name { color: var(--red-400); }
}
html[data-theme="dark"] :is(.team-credit .writer-ai, .team-beat) { color: var(--text-faded); }
html[data-theme="dark"] .page-content .team-credit a.team-name { color: var(--red-400); }

/* ============================================================
   REEL STRIP — «הרילס באתר» (owner by name, Friday 23/10/2026)
   partials/reel-strip.hbs: the latest daily reel (or the Friday edition) on the homepage.
   Hidden until /content/files/latest-reel.json names a reel. Mobile first: the 9:16 player
   beside its story list at every width. Semantic vars only, so dark mode follows by itself.
   ============================================================ */
.reel-strip[hidden],
.reel-strip [hidden] { display: none !important; }
/* while hidden it is still content-main's first child: keep the next block's first-child gap */
.reel-strip[hidden] + .section-block { margin-top: var(--sp-2); }
.reel-strip .section-head { margin-bottom: var(--sp-4); }
.reel-strip-when {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}
.reel-strip-body {
    display: grid;
    grid-template-columns: minmax(128px, 40%) minmax(0, 1fr);
    gap: var(--sp-4);
    align-items: start;
}
.reel-strip-media { min-width: 0; }
.reel-strip-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    background: var(--navy-900);
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow);
}
.reel-strip-credit {
    margin: var(--sp-1) 0 0;
    font-size: var(--fs-xs);
    color: var(--text-faded);
    text-align: center;
}
.reel-strip-kicker {
    display: inline-block;
    margin: 0 0 var(--sp-2);
    padding: 2px var(--sp-2);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--white);
    background: var(--red-600);
    border-radius: var(--radius-sm);
}
.reel-strip-stories { list-style: none; margin: 0; padding: 0; counter-reset: reel; }
.reel-strip-stories li {
    counter-increment: reel;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: var(--sp-2);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--border);
}
.reel-strip-stories li:last-child { border-bottom: 0; }
.reel-strip-stories li::before {
    content: counter(reel);
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: var(--fs-lg);
    line-height: 1.2;
    color: var(--red-600);
}
.reel-strip-stories a {
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.reel-strip-stories a:hover { color: var(--red-600); }
/* phone width: three stories beside the player, so the list never outgrows it */
@media (max-width: 480px) {
    .reel-strip-stories li:nth-child(n+4) { display: none; }
}
@media (min-width: 641px) {
    .reel-strip-body { grid-template-columns: 220px minmax(0, 1fr); gap: var(--sp-6); align-items: center; }
    .reel-strip-stories a { font-size: var(--fs-base); -webkit-line-clamp: 2; }
}
/* the Friday edition inside its weekly post (weekly_reel_post.py's HTML card) */
.post-content .hn-week-reel video,
.gh-content .hn-week-reel video { max-width: 100%; height: auto; }

/* ============================================================
   FRIDAY MAGAZINE — «מגזין שישי» (owner 23/10/2026, decisions.jsonl topic friday-magazine-2310)
   partials/magazine-cover.hbs (the cover: issue page + Friday homepage), custom-magazine.hbs
   (one issue), filled by assets/js/magazine.js. Mobile first. The cover is the site's navy in
   both modes (as the hero is); everything else runs on the semantic variables, so dark mode
   follows by itself. Nameplate option ג: the ח mark beside «מגזין שישי», the issue line under it.
   ============================================================ */
.mag-cover[hidden], .mag-cover [hidden],
.mag-issue[hidden], .mag-issue [hidden], .mag-fallback[hidden] { display: none !important; }
/* The Friday homepage: set by magazine.js ONLY inside the window, with every check passed. */
html.mag-takeover .hero-carousel,
html.mag-takeover #main > section.hero { display: none !important; }
html.mag-takeover #reel-strip { display: none !important; }

.mag-cover {
    max-width: var(--container);
    margin: var(--sp-4) auto var(--sp-6);
    padding-inline: var(--sp-4);
}
.mag-strip {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-2);
    padding: 9px var(--sp-4);
    background: var(--red-600);
    color: var(--white);
    font-size: var(--fs-sm);
    font-weight: 800;
    border-radius: var(--radius);
}
.mag-strip:hover { background: var(--red-700); color: var(--white); }
.mag-strip-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--white);
    animation: mag-pulse 1.8s ease-in-out infinite;
}
.mag-strip-text { flex: 1; min-width: 0; }
.mag-strip-go { white-space: nowrap; font-weight: 700; opacity: 0.92; }
@keyframes mag-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .mag-strip-dot { animation: none; } }

.mag-cover-card {
    position: relative;
    display: grid;
    grid-template-areas: "plate" "media" "text";
    background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.mag-cover-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 100%, rgba(185, 28, 28, 0.18), transparent 55%);
    pointer-events: none;
}
.mag-nameplate {
    grid-area: plate;
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-inline: var(--sp-4);
    padding: var(--sp-4) 0 var(--sp-3);
    border-bottom: 2px solid var(--red-600);
}
.mag-mark { width: 46px; height: 46px; flex: 0 0 46px; border-radius: var(--radius); }
.mag-nameplate-words { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.mag-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--white);
}
.mag-issue-line {
    margin-top: 4px;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--gray-300);
}
.mag-cover-media {
    grid-area: media;
    position: relative;
    margin: var(--sp-4) var(--sp-4) 0;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy-950);
}
.mag-cover-img { width: 100%; height: 100%; object-fit: cover; }
.mag-cover-media .mag-credit {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    max-width: 100%;
    padding: 3px 8px;
    background: rgba(7, 13, 28, 0.72);
    color: var(--gray-200);
    border-start-end-radius: var(--radius-sm);
}
.mag-credit { font-size: 11px; line-height: 1.4; color: var(--text-faded); }
.mag-cover-text { grid-area: text; position: relative; padding: var(--sp-4) var(--sp-4) var(--sp-6); }
.mag-kicker {
    display: inline-block;
    margin-bottom: var(--sp-2);
    padding: 3px 10px;
    background: var(--red-600);
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 1px;
}
.mag-headline {
    font-size: 27px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: var(--white);
    margin-bottom: var(--sp-2);
}
.mag-headline a { color: inherit; }
.mag-headline a:hover { color: var(--blue-300); }
.mag-dek { font-size: var(--fs-md); line-height: 1.55; color: var(--gray-300); margin-bottom: var(--sp-4); }
.mag-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    background: var(--red-600);
    color: var(--white);
    font-weight: 800;
    border-radius: var(--radius);
}
.mag-cta:hover { background: var(--red-700); color: var(--white); }
/* dark mode: the navy cover and Shabbat card sit on a navy page - a hairline keeps their edge */
html[data-theme="dark"] .mag-cover-card,
html[data-theme="dark"] .mag-shabbat { box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-lg); }
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) .mag-cover-card,
    html:not([data-theme]) .mag-shabbat { box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-lg); }
}
@media (min-width: 900px) {
    .mag-cover { padding-inline: var(--sp-6); }
    .mag-cover-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
        grid-template-areas: "plate media" "text media";
        grid-template-rows: auto 1fr;
        min-height: 440px;
    }
    .mag-nameplate { margin: 0 var(--sp-8); padding: var(--sp-8) 0 var(--sp-4); }
    .mag-mark { width: 56px; height: 56px; flex-basis: 56px; }
    .mag-title { font-size: 44px; }
    .mag-issue-line { font-size: var(--fs-sm); }
    .mag-cover-media { margin: 0; aspect-ratio: auto; border-radius: 0; min-height: 100%; }
    .mag-cover-text { padding: var(--sp-6) var(--sp-8) var(--sp-8); align-self: end; }
    .mag-headline { font-size: clamp(30px, 3.2vw, 42px); }
    .mag-dek { font-size: var(--fs-lg); max-width: 46ch; }
}

/* --- the issue page --- */
.mag-issue {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--sp-4) var(--sp-10);
}
.mag-toc { margin: 0 0 var(--sp-8); }
.mag-toc-list {
    display: flex;
    gap: var(--sp-2);
    overflow-x: auto;
    padding-bottom: var(--sp-2);
    scrollbar-width: thin;
    list-style: none;
}
.mag-toc-item { flex: 0 0 auto; }
.mag-toc-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    min-height: 44px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.mag-toc-link:hover { border-color: var(--red-600); color: var(--red-600); }
.mag-toc-n { font-family: var(--font-serif); font-weight: 900; color: var(--red-600); }
@media (min-width: 900px) {
    .mag-issue { padding-inline: var(--sp-6); }
    .mag-toc-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
    .mag-toc-link { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

.mag-sec { margin-bottom: var(--sp-10); scroll-margin-top: 84px; }
.mag-sec-head {
    display: flex;
    align-items: baseline;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
    padding-bottom: var(--sp-2);
    border-bottom: 2px solid var(--border);
}
.mag-num {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 900;
    line-height: 0.9;
    color: var(--red-600);
}
.mag-sec-title { font-size: var(--fs-xl); font-weight: 900; color: var(--text); letter-spacing: -0.3px; }
@media (min-width: 900px) {
    .mag-num { font-size: 68px; }
    .mag-sec-title { font-size: var(--fs-2xl); }
}

.mag-stories { list-style: none; display: grid; gap: var(--sp-3); }
.mag-story-link {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: var(--sp-3);
    align-items: start;
    padding: var(--sp-3);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
}
.mag-story-link:hover .mag-story-title { color: var(--red-600); }
.mag-story-img { width: 112px; height: 84px; object-fit: cover; border-radius: var(--radius); background: var(--border); }
.mag-story-link:not(:has(.mag-story-img)) { grid-template-columns: minmax(0, 1fr); }
.mag-story-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mag-story-tag { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--red-600); }
.mag-story-title { font-size: var(--fs-md); font-weight: 800; line-height: 1.35; }
.mag-story-excerpt { display: none; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }
@media (min-width: 700px) {
    .mag-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
    .mag-story-link { grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden; }
    .mag-story-img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
    .mag-story-body { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
    .mag-story-title { font-size: var(--fs-lg); }
    .mag-story-excerpt { display: block; }
}
@media (min-width: 1000px) { .mag-stories { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.mag-video-body {
    display: grid;
    grid-template-columns: minmax(120px, 40%) minmax(0, 1fr);
    gap: var(--sp-4);
    align-items: start;
}
.mag-video-player {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    background: var(--navy-900);
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow);
}
.mag-video-media .mag-credit { text-align: center; margin-top: var(--sp-1); }
.mag-video-list { list-style: none; counter-reset: magv; }
.mag-video-list li {
    counter-increment: magv;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: var(--sp-2);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--border);
}
.mag-video-list li::before {
    content: counter(magv);
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: var(--fs-xl);
    line-height: 1.1;
    color: var(--red-600);
}
.mag-video-list a { font-size: var(--fs-sm); font-weight: 700; line-height: 1.4; color: var(--text); }
.mag-video-list a:hover { color: var(--red-600); }
@media (min-width: 700px) {
    .mag-video-body { grid-template-columns: 240px minmax(0, 1fr); gap: var(--sp-8); align-items: center; }
    .mag-video-list a { font-size: var(--fs-md); }
}
.mag-more { display: inline-block; margin-top: var(--sp-3); font-weight: 800; color: var(--red-600); }

.mag-stance {
    position: relative;
    padding: var(--sp-6) var(--sp-5) var(--sp-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-inline-start: 5px solid var(--red-600);
    border-radius: var(--radius-lg);
}
.mag-stance::before {
    content: '”';
    position: absolute;
    top: -6px;
    inset-inline-end: var(--sp-4);
    font-family: var(--font-serif);
    font-size: 92px;
    line-height: 1;
    color: var(--red-600);
    opacity: 0.25;
}
.mag-stance-text { position: relative; font-size: var(--fs-lg); line-height: 1.75; color: var(--text); }
.mag-stance-signed { margin-top: var(--sp-3); font-weight: 800; color: var(--text-muted); }

.mag-opinion {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: var(--sp-4);
    align-items: start;
    padding: var(--sp-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.mag-opinion:not(:has(.mag-op-figure)) { grid-template-columns: minmax(0, 1fr); }
.mag-op-photo { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; border: 3px solid var(--red-600); }
.mag-op-figure .mag-credit { margin-top: 4px; text-align: center; }
.mag-opinion + .mag-opinion { margin-top: var(--sp-4); }   /* the week's columns, one under the other (06/11/2026) */
.mag-op-label { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--text-muted); }
.mag-op-author { font-size: var(--fs-sm); font-weight: 800; color: var(--red-600); }
.mag-op-ai {
    display: inline-block;
    margin-inline-start: var(--sp-2);
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}
.mag-op-headline { margin: 4px 0 var(--sp-2); font-size: var(--fs-xl); line-height: 1.3; color: var(--text); }
.mag-op-headline a { color: inherit; }
.mag-op-headline a:hover { color: var(--red-600); }
.mag-op-quote {
    padding-inline-start: var(--sp-3);
    border-inline-start: 3px solid var(--border-strong);
    font-size: var(--fs-md);
    font-style: italic;
    line-height: 1.6;
    color: var(--text-muted);
}
/* «כל הטורים השבוע»: every column past the three large cards, one short row each - the column's
   name, the writer, a link (owner by name 09/11/2026, columns-open-items-0911). */
.mag-op-all {
    margin-top: var(--sp-5);
    padding: var(--sp-4) var(--sp-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red-600);
    border-radius: var(--radius-lg);
}
.mag-op-all-title { margin: 0 0 var(--sp-2); font-size: var(--fs-md); font-weight: 900; color: var(--text); }
.mag-op-list { margin: 0; padding: 0; list-style: none; }
.mag-op-row + .mag-op-row { border-top: 1px solid var(--border); }
.mag-op-row-link, .mag-op-row--plain {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: var(--sp-3);
    row-gap: 2px;
    padding: var(--sp-3) 0;
    color: var(--text);
}
.mag-op-row-name { font-size: var(--fs-md); font-weight: 800; line-height: 1.35; }
.mag-op-row-author { font-size: var(--fs-sm); font-weight: 700; color: var(--red-600); }
.mag-op-row-go { margin-inline-start: auto; font-size: var(--fs-sm); font-weight: 800; color: var(--red-600); white-space: nowrap; }
.mag-op-row-link:hover .mag-op-row-name { color: var(--red-600); }

.mag-number {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-6) var(--sp-5);
    background: linear-gradient(160deg, var(--red-600), var(--red-700));
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.mag-number-value {
    font-family: var(--font-serif);
    font-size: 84px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}
.mag-number-label { margin-top: var(--sp-1); font-size: var(--fs-xl); font-weight: 800; }
.mag-number-source { margin-top: var(--sp-4); font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.86); }
.mag-number-source a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .mag-number-value { font-size: 112px; } }

.mag-weekend { display: grid; gap: var(--sp-5); }
.mag-events { list-style: none; display: grid; gap: var(--sp-2); }
.mag-event {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 2px var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.mag-ev-when { grid-row: span 2; font-weight: 800; color: var(--red-600); font-size: var(--fs-sm); }
.mag-ev-what { font-weight: 800; color: var(--text); }
.mag-ev-what a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); }
.mag-ev-where { font-size: var(--fs-sm); color: var(--text-muted); }
.mag-shabbat {
    padding: var(--sp-5);
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--sp-10);
}
.mag-weekend .mag-shabbat { margin-bottom: 0; }
.mag-shabbat-title { font-size: var(--fs-lg); font-weight: 900; margin-bottom: var(--sp-3); color: var(--white); }
.mag-shabbat-times { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.mag-shabbat-row { padding: var(--sp-3); background: rgba(255, 255, 255, 0.06); border-radius: var(--radius); }
.mag-shabbat-row dt { font-size: var(--fs-sm); color: var(--gray-300); }
.mag-shabbat-row dd { font-family: var(--font-serif); font-size: 36px; font-weight: 900; line-height: 1.1; }
.mag-shabbat-parsha { margin-top: var(--sp-3); font-weight: 700; color: var(--gray-300); }
@media (min-width: 800px) { .mag-weekend { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }

.mag-photo { margin: 0; }
.mag-photo-img { width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--border); }
.mag-photo-cap { display: flex; flex-direction: column; gap: 2px; margin-top: var(--sp-2); }
.mag-photo-caption { font-size: var(--fs-md); color: var(--text); font-weight: 700; }

.mag-sponsor { margin: 0 0 var(--sp-8); }
.mag-sponsor-slot, .mag-sponsor--set {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--sp-5);
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--text-muted);
}
.mag-sponsor--set { border-style: solid; flex-direction: row; justify-content: center; gap: var(--sp-3); }
.mag-sponsor-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--text-faded); }
.mag-sponsor-text { font-weight: 700; }
.mag-sponsor-slot:hover { border-color: var(--red-600); color: var(--red-600); }
.mag-sponsor-logo { max-height: 40px; width: auto; }
.mag-sponsor-name { font-weight: 800; color: var(--text); }
.mag-foot {
    padding: var(--sp-6) var(--sp-4);
    text-align: center;
    border-top: 2px solid var(--red-600);
}
.mag-foot-next { font-size: var(--fs-lg); font-weight: 900; color: var(--text); }
.mag-foot-small { margin-top: 4px; font-size: var(--fs-sm); color: var(--text-muted); }
.mag-fallback { max-width: 800px; margin: var(--sp-6) auto; padding: 0 var(--sp-4); }

/* ============================================================
 * HEADER_FIT_2026_10_24 — an article page's header carries one more button (מצב קריאה), and its
 * fixed content measured 398px: at 375px and at 360px every article scrolled sideways by ~23px and
 * the logo was cut. Measured on the live site: hiding .site-header alone brought scrollWidth back to
 * the viewport, and these four values bring it to 375/375 and 360/360. Narrow screens only.
 * ============================================================ */
@media (max-width: 420px) {
    .header-main { gap: 8px; }
    .header-tools { gap: 4px; }
    .header-controls { gap: 0; }
    .logo-text-main { font-size: 19px; }
}
/* HEADER_FIT_2026_11_05 — the fit above stopped at 360px. At 320px an article's header measured
 * 338px in a 308px row, so every article scrolled sideways by 30px and the menu button sat off the
 * screen (the home page, one button shorter, fitted by eating its own left padding). Measured on
 * the live site 05/11. Every control stays; each is a little smaller, and an article at 320 keeps
 * ~10px to spare between logo and buttons. Below 360px only, so 360 and up render as before. */
@media (max-width: 359px) {
    .site-logo { gap: 8px; }
    .brand-mark { width: 32px; height: 32px; }
    .logo-text-main { font-size: 16px; }
    .header-tools { gap: 2px; }
    .header-controls { margin-inline-end: 0; }
    .header-controls .ctrl-btn { width: 28px; height: 28px; }
    .header-search { width: 32px; height: 32px; }
    .nav-toggle { width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════════════════════════════════
   KNESSET ELECTIONS 2026 — /elections-2026-tirat/ (owner by name 25/10/2026)
   page-elections-2026-tirat.hbs + assets/js/election-results.js, and the politics section
   link (partials/election-results-link.hbs). NEUTRAL BY RULE: one grey for every bar, no colour
   per list, no pictures. Semantic tokens only (--bg-card/--text/--border), so dark mode follows.
   Mobile first: tables scroll inside their own box, never the page.
   ═══════════════════════════════════════════════════════════════════ */
.er-breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); margin-bottom: 10px; color: var(--text-muted); }
.er-breadcrumbs a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.er-page { padding: 0 16px; }
.er-page .page-content { padding: 0; margin: 24px auto; color: var(--text); }
.er-results { margin: 24px 0 40px; padding: 20px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); }
.er-results h2 { margin: 0 0 12px; font-size: var(--fs-xl); }
.er-results h3 { margin: 24px 0 8px; font-size: var(--fs-lg); }
.er-sample { margin: -20px -16px 16px; padding: 10px 16px; background: var(--gray-100); color: var(--gray-900); border-bottom: 3px solid var(--amber-500); border-radius: var(--radius-lg) var(--radius-lg) 0 0; font-weight: 800; text-align: center; letter-spacing: .02em; }
.er-pending p { margin: 0 0 10px; line-height: 1.7; }
.er-pending a, .er-source a, .er-names-note a, .er-national-source a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.er-status { margin: 0 0 4px; font-weight: 700; }
.er-updated { margin: 0 0 16px; font-size: var(--fs-sm); color: var(--text-muted); }
.er-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; }
.er-total { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.er-total dt { font-size: var(--fs-xs); color: var(--text-muted); }
.er-total dd { margin: 2px 0 0; font-size: var(--fs-lg); font-weight: 800; font-variant-numeric: tabular-nums; }
.er-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); }
.er-table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.er-table caption { text-align: start; padding: 10px 12px; font-size: var(--fs-sm); color: var(--text-muted); caption-side: top; }
.er-table th, .er-table td { padding: 9px 12px; text-align: start; border-top: 1px solid var(--border); vertical-align: top; }
.er-table thead th { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 700; border-top: 0; white-space: nowrap; }
.er-table tbody th { font-weight: 700; }
.er-letters { white-space: nowrap; font-weight: 700; }
.er-votes { min-width: 120px; }
.er-num, .er-pct { font-variant-numeric: tabular-nums; white-space: nowrap; }
.er-bar { display: block; height: 6px; margin-top: 6px; background: var(--gray-500); border-radius: 3px; }
.er-threshold-note, .er-names-note, .er-source, .er-national-source { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }
.er-ballots { margin-top: 24px; }
.er-ballots summary { cursor: pointer; font-weight: 800; padding: 10px 0; }
.er-ballot-table td, .er-ballot-table th { font-size: var(--fs-sm); white-space: nowrap; }
.er-ballot-lists { white-space: normal !important; min-width: 260px; }
.er-section-link-wrap { max-width: var(--container); margin: 16px auto 0; padding: 0 16px; }
.er-section-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); color: var(--text); text-decoration: none; }
.er-section-link__label { font-size: var(--fs-xs); font-weight: 800; color: var(--text-muted); }
.er-section-link__title { font-size: var(--fs-lg); }
.er-section-link__go { margin-inline-start: auto; }
@media (min-width: 640px) {
    .er-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .er-results { padding: 24px; }
    .er-sample { margin: -24px -24px 16px; }
}
   25/10/2026 — CONTENT PHASE: the related rail by entity + the hub's latest block
   (owner, by name: «שלב 3 · לבנות ולהציג 5 דוגמאות»). Both render only when their theme
   setting is on (related_by_entities / hub_latest_block, default off), so these rules
   match nothing until then.
   ═══════════════════════════════════════════════════════════════════ */
/* a rail whose cards were all the article itself (or empty) is not shown */
.related-ranked .related:not(:has(article.card)) { display: none; }
/* the FIRST rail with a card wins: the most specific tag, else the section */
.related-ranked .related:has(article.card) ~ .related { display: none; }
/* five fetched so the article itself can be skipped; four shown */
.related-ranked .related-grid > .card:nth-of-type(n+5) { display: none; }
/* a person rail above (.related-by-entity) already is the entity rail */
.related-by-entity ~ .related-ranked { display: none; }
.hub-latest:not(:has(article.card)) { display: none; }
.hub-latest { max-width: var(--container); margin: var(--sp-12) auto var(--sp-8); padding: 0 var(--sp-6); }
.hub-latest .section-head { position: relative; }
.hub-latest .section-head-link { position: absolute; inset-inline-end: 0; top: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--red-600); }

/* ============================================================
 * SEO_THEME_2510 — owner-approved SEO stage 1 (25/10/2026)
 * (1) .site-title: the home page's one h1 element wraps the logo link (partials/header.hbs). It
 *     takes the link's place as the header's flex item and adds nothing of its own: the
 *     logo looks exactly as on every other page.
 * (2) .post-review: the human-review line under an AI writer's byline, the meta line's grey.
 * (3) .hnf-pref: Google «Preferred sources» under the end-of-article follow pills - a
 *     quieter outline pill, 44px touch height, the theme's own colours in light and dark.
 * ============================================================ */
.site-title { margin: 0; display: flex; flex-shrink: 0; font: inherit; line-height: normal; }
.post-review {
    margin: var(--sp-2) 0 0;
    font-size: var(--fs-xs);
    line-height: 1.5;
    color: var(--gray-400);
}
.hnf-pref { margin: 12px 0 0; }
.hnf-pref-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}
.hnf-pref-link:hover { border-color: var(--text-muted); }
.hnf-pref-link svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--amber-500); }
