@charset "UTF-8";
/* home2 — alternate home layout (sibling of /home, opt-in via /home2 URL).
   Reuses every existing component; only structural placement changes:
   - Hero is minimal (eyebrow + stats anchored to bottom; no updates / war-band)
   - Updates panel moved to top of leftCont (above calendar)
   - War-band moved to bottom of rightCont (below summary tabs)
   - wide-map-container pulled out of .container for full-bleed layout
   - onThisDay wrapped in a max-width container */

/* ── Hero — Disney-style 3D parallax martyr-photo wall + bottom layout */

/* Stage fills the .Header and sits below .headerContainer. */
.Header .wall-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

/* Tilted 3D plane holding rows */
.Header .wall-3d {
    position: absolute;
    top: 50%; left: 50%;
    width: 240vw;
    transform: translate(-50%, -50%) rotateX(14deg) rotateY(-18deg) rotateZ(-2deg);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    gap: 1.1vw;
    direction: ltr;
}

/* Row — drifts horizontally; even rows reverse direction */
.Header .wall-row {
    display: flex;
    gap: 1.1vw;
    flex: none;
    white-space: nowrap;
    will-change: transform;
    animation: wallDriftL var(--dur, 80s) linear infinite;
}
.Header .wall-row:nth-child(even) { animation-name: wallDriftR; }
.Header .wall-row:nth-child(1) { --dur:  90s; }
.Header .wall-row:nth-child(2) { --dur: 130s; }
.Header .wall-row:nth-child(3) { --dur:  75s; }
.Header .wall-row:nth-child(4) { --dur: 110s; }
.Header .wall-row:nth-child(5) { --dur:  95s; }
.Header .wall-row:nth-child(6) { --dur: 140s; }
.Header .wall-row:nth-child(7) { --dur:  85s; }
.Header .wall-row:nth-child(8) { --dur: 120s; }
.Header .wall-row:nth-child(9) { --dur: 100s; }

/* Card — small photo tile with vignette + dim filter */
.Header .wallcard {
    position: relative;
    flex: none;
    width: 6.5vw; height: 9.5vw;
    min-width: 80px; min-height: 115px;
    background: #1a1a22 center top / cover no-repeat;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 16px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.05);
    filter: grayscale(0.6) brightness(0.65) contrast(1.1) blur(1.3px);
    opacity: 0.5;
}
.Header .wallcard::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.45) 100%);
}

/* Drift keyframes — opposite directions for visual interest; doubled content
   inside each .wall-row makes the -50% translate loop seamlessly. */
@keyframes wallDriftL {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes wallDriftR {
    from { transform: translate3d(-50%, 0, 0); }
    to   { transform: translate3d(0, 0, 0); }
}

/* Center vignette — darkens edges + middle so headerContainer text reads. */
.Header .wall-veil {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 55% 38% at 50% 50%,
            rgba(10,10,18,0) 0%,
            rgba(10,10,18,0.55) 55%,
            rgba(10,10,18,0.95) 90%,
            rgba(10,10,18,1) 100%),
        linear-gradient(to bottom,
            rgba(10,10,18,0.55) 0%, transparent 25%,
            transparent 75%, rgba(10,10,18,0.65) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .Header .wall-row { animation: none !important; }
    .Header .wall-3d  { transform: translate(-50%, -50%) rotateX(8deg) rotateY(-10deg); }
}
@media (max-width: 768px) {
    .Header .wall-3d {
        width: 320vw;
        transform: translate(-50%, -50%) rotateX(10deg) rotateY(-14deg);
    }
    .Header .wallcard { width: 14vw; height: 20vw; min-width: 70px; min-height: 100px; }
    .Header .wall-row { gap: 2vw; }
}

/* Make sure headerContainer paints ON TOP of the wall stage */
.Header .headerContainer { position: relative; z-index: 5; }

.Header { padding-bottom: 0; }
.headerContainer {
    /* Override base flex-column-center so content pins to the bottom */
    height: auto !important;
    min-height: 100%;
}
.Header .headerContainer {
    max-width: 1200px;
    display: flex;
    justify-content: center;
}

/* Year-to-date eyebrow+stats live inside the dark war-band section now —
   see Block 3 below for the `.home-warband-{head,stats}.is-year` modifiers. */

/* ── Section 2 — homeWrap layout overrides ────────────────────────────── */
.home-wrap.homeWrap { background: none; }
/* leftCont needs more breathing room: it now hosts updates + calendar +
   shireen counter (3 stacked items). Default top margin from base CSS
   is -370px which only made sense with the prev DOM. Reset. */
.home-wrap .leftCont,
.home-wrap .rightCont {
    flex: 1 1 0;
    width: 50%;
    min-width: 0;
    margin-top: 0;
}
.home-wrap .leftCont {
    max-width: 500px;
}
.home-wrap .rightCont {
    padding-top: 40px;
}

/* Summary card — soft fading panel framing the date-range tabs */
.home-summary-card {
    background: linear-gradient(180deg, #ededed, transparent);
    padding: 20px;
    border-radius: 20px;
    margin: 20px 0;
}

/* ── Summary block — tabular parallel disclosure ────────────────────────
   Two-card totals header (WB + Gaza) above a 3-col table that shows the
   SAME category list on both region sides. No bars / charts — memorial
   data, not a contest. */
.summary-comparison {
    --wb-color: #4a73c4;
    --gz-color: #c4413f;
}
.summary-totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.summary-total {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    border-top: 3px solid;
}
.summary-total--wb { border-top-color: var(--wb-color); }
.summary-total--gz { border-top-color: var(--gz-color); }
.summary-total-num {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #18181b;
    font-variant-numeric: tabular-nums;
}
.summary-total-label {
    margin-top: 6px;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71717a;
    font-weight: 600;
}

/* Unified-category table — same row labels on both region sides */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.summary-table thead th {
    padding: 8px 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #71717a;
    text-align: center;
    border-bottom: 1px solid #e4e4e7;
}
.summary-table thead th.summary-th-label { text-align: start; color: #52525b; }
.summary-th-val--wb { color: var(--wb-color) !important; }
.summary-th-val--gz { color: var(--gz-color) !important; }
.summary-table tbody .summary-row:nth-child(odd) {
    background: #efefef;
}
.summary-cat-label {
    padding: 8px 10px 8px 4px;
    font-weight: 500;
    color: #18181b;
    text-align: start;
    line-height: 1.4;
}
.summary-val {
    padding: 8px 10px;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #18181b;
    width: 22%;
}
.summary-val--wb { color: var(--wb-color); }
.summary-val--gz { color: var(--gz-color); }

/* Governorate variant — two parallel ranked tables (gov names differ per
   region so they can't share rows). Same visual language, no bars. */
.summary-gov-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.summary-gov-col {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border-top: 2px solid;
}
.summary-gov-col--wb { border-top-color: var(--wb-color); }
.summary-gov-col--gz { border-top-color: var(--gz-color); }
.summary-gov-col tbody .summary-gov-row:nth-child(odd) {
    background: #fafafa;
}
.summary-gov-label {
    padding: 7px 10px 7px 4px;
    font-weight: 500;
    color: #18181b;
    text-align: start;
    line-height: 1.35;
}
.summary-gov-val {
    padding: 7px 10px;
    text-align: end;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #18181b;
    width: 30%;
}
.summary-gov-col--wb .summary-gov-val { color: var(--wb-color); }
.summary-gov-col--gz .summary-gov-val { color: var(--gz-color); }

.summary-caveat {
    margin: 12px 0 0;
    font-size: 11.5px;
    line-height: 1.55;
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.summary-caveat::before {
    content: "ⓘ";
    color: #d97706;
    flex-shrink: 0;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .summary-cat-label { padding: 6px 4px; font-size: 12.5px; }
    .summary-val { padding: 6px 4px; font-size: 12.5px; }
    .summary-gov-cols { grid-template-columns: 1fr; gap: 14px; }
}

/* ── Section 3 — onThisDay wrapper ─────────────────────────────────────── */
.onThisD {
    margin: 40px auto;
}
/* Annual martyrs Chart.js canvas — needs a sized parent (chart-js + the
   `maintainAspectRatio:false` option both pick height from the wrapper). */
.home-annual-chart-wrap {
    position: relative;
    width: 100%;
    height: clamp(260px, 38vw, 500px);
}

/* ── Responsive ──────────────────────────────────────────────────────────
   3-col homeWrap collapses to a single stacked column at <992px. The base
   global `.homeWrap` 768px rule (style-black.css) only kicks in on phones;
   this block handles the tablet/narrow-laptop range too. */
@media (max-width: 992px) {
    .home-wrap.homeWrap {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .home-wrap .rightCont,
    .home-wrap .leftCont {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
    }
}
@media (max-width: 768px) {
    .Header:has(.headerContainer) { min-height: auto; }
    .headerContainer { min-height: auto; }

    /* Summary block — flatten nested paddings/margins so it doesn't pile up
       inside .rightCont's full-width mobile column. */
    .home-wrap .summaryTableBtns { padding: 5px; margin: 0; }
    .home-wrap .SummaryTitel    { margin: 8px 0 12px; font-size: 16px; }
    .home-wrap .summaryTable    { padding: 8px 0 0; }
    .home-wrap .segmented-picker > label { font-size: 12px; }
}


/* ============================================================
   Extracted from inline <style> blocks in pages/home.php
   (renames already applied — h2/home2/hero3 prefixes gone)
   ============================================================ */

/* --- Block 1: Hero — sphere + editorial column (hero-grid) --- */
        /* Home3-style hero grid — editorial column on the left, sphere on the right */
        .Header .hero-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
            gap: clamp(24px, 4vw, 56px);
            align-items: center;
            margin-bottom: 32px;
            position: relative; z-index: 5;
        }
        .Header .hero-left { color: #fafafa; }
        .Header .hero-headline {
            width: 100%;
            max-width: 400px;
            margin: 18px auto 8px;
            font-family: 'Cairo','Inter Tight',sans-serif;
            font-weight: 900;
            font-size: clamp(36px, 4.8vw, 58px);
            letter-spacing: -0.025em;
            color: #fafafa;
        }
        [dir="ltr"] .Header .hero-headline {
            max-width: 520px;
        }
        .Header .hero-headline .hi {
            display: block;
            float: none;
            background: linear-gradient(180deg, transparent 60%, rgb(255 234 78 / 64%) 60%);
            padding: 0 4px;
        }
        .Header .hero-bignum {
            clear: both;
            font-family: 'Cairo','Inter Tight',sans-serif;
            font-weight: 900;
            font-size: clamp(48px, 7vw, 104px);
            line-height: 0.95;
            color: #c83236;
            letter-spacing: -0.04em;
            margin: 8px 0 6px;
            font-variant-numeric: tabular-nums;
        }
        .Header .hero-lede {
            margin: 14px 0 24px;
            color: #d4d4d8;
            font-size: 15px; line-height: 1.75;
        }
        .Header .hero-lede strong { color: #fafafa; font-weight: 700; }
        .Header .hero-ctas {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-top: 4px;
        }
        .Header .hero-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 11px 22px;
            border-radius: 8px;
            font-family: 'Cairo', sans-serif;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.02em;
            text-decoration: none;
            transition: transform .2s ease, background-color .2s ease,
                        border-color .2s ease, color .2s ease;
            white-space: nowrap;
        }
        .Header .hero-cta--primary {
            background: linear-gradient(135deg, #cc3333, #b82d44);
            color: #fff;
            border: 1px solid transparent;
            box-shadow: 0 4px 14px rgb(204 51 51 / 0.28);
        }
        .Header .hero-cta--primary:hover {
            transform: translateY(-1px);
            background: linear-gradient(135deg, #d94545, #c33450);
            color: #fff;
        }
        .Header .hero-cta--secondary {
            background: transparent;
            color: #fafafa;
            border: 1px solid rgb(255 255 255 / 0.22);
        }
        .Header .hero-cta--secondary:hover {
            transform: translateY(-1px);
            background: rgb(255 255 255 / 0.06);
            border-color: rgb(255 255 255 / 0.4);
            color: #fff;
        }
        @media (max-width: 920px) {
            .Header .hero-grid { grid-template-columns: 1fr; }
            .Header .hero-grid .home-sphere { order: -1; max-width: 480px; margin: 0 auto; }
        }

        .home-sphere {
            position: relative;
            width: 100%; max-width: 480px;
            aspect-ratio: 1/1;
            margin-inline: auto;
            perspective: 1600px; perspective-origin: 50% 50%;
            cursor: grab; user-select: none; touch-action: none;
        }
        .home-sphere:active { cursor: grabbing; }
        .home-sphere-inner {
            position: absolute; inset: 0;
            transform-style: preserve-3d;
            will-change: transform;
        }
        .home-sphere-cell {
            position: absolute;
            top: 50%; left: 50%;
            width: 60px; height: 60px;
            margin: -30px 0 0 -30px;
            border-radius: 6px;
            background: rgba(255,255,255,0.04) center / cover no-repeat;
            box-shadow: 0 4px 14px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            transition: filter .3s ease;
        }
        .home-sphere-cell::after {
            content: ""; position: absolute; inset: 0;
            border-radius: 6px;
            background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.25));
        }
        .home-sphere-cell:hover { filter: brightness(1.2); z-index: 10; }
        .home-sphere-tip {
            position: absolute;
            top: 0; left: 0;
            transform: translate(-50%, calc(-100% - 14px));
            padding: 6px 12px;
            background: rgba(9, 9, 11, 0.92);
            color: #fafafa;
            font-family: 'Cairo', sans-serif;
            font-size: 13px; font-weight: 600;
            line-height: 1.3;
            white-space: nowrap;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 6px;
            box-shadow: 0 4px 14px rgba(0,0,0,0.45);
            opacity: 0; pointer-events: none;
            transition: opacity .2s ease;
            z-index: 50;
        }
        @media (prefers-reduced-motion: reduce) {
            .home-sphere-inner { transform: rotateX(-8deg) rotateY(20deg); }
        }
        @media (max-width: 768px) {
            .home-sphere { max-width: 280px; margin-inline: auto; }
        }

/* --- Block 2: OnThisDay + war-band --- */

/* Vertical updates feed — sits in .home-right-row beside the YTD stats. */
.home-updates-feed {
    width: 100%;
    border-radius: 10px;
    padding: 0 20px;
}
.home-updates-feed-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px; letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #dc2626; font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e4e7;
}
.home-updates-feed-list {
    list-style: none;
    margin: 0; padding: 0;
}
.home-updates-feed-item {
    display: flex; flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid #f4f4f5;
    font-size: 13px; line-height: 1.55;
}
.home-updates-feed-item:last-child { border-bottom: none; padding-bottom: 0; }
.home-updates-feed-time {
    font-family: 'Cairo', monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #b45309;
    white-space: nowrap;
}
.home-updates-feed-text {
    color: #18181b;
}

/* --- Block 3: War-band section (WB + Gaza stat cards since Oct 7, 2023) --- */
.home-warband-section {
    background: #0a0a0e;
    color: #f4f4f5;
    padding: clamp(35px, 5vw, 40px) clamp(20px, 4vw, 56px);
    border-block: 1px solid #18181b;
    position: relative;
    overflow: hidden;
}
.home-warband-section::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 18% 18%, rgba(220,38,38,0.10), transparent 60%),
        radial-gradient(ellipse 50% 40% at 82% 82%, rgba(126,168,240,0.07), transparent 60%);
}
.home-warband-inner {
    max-width: 1200px; margin: 0 auto;
    position: relative; z-index: 1;
}
.home-warband-head {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    color: #d4d4d8;
    margin-bottom: 32px;
}
.home-warband-head strong {
    color: #fafafa; font-weight: 800; font-size: 18px;
    margin: 0 4px;
}
.home-warband-head .last-update {
    opacity: 0.6;
    font-size: 12px;
}
/* Pulsing red status dot — used in the war-band heading and the updates
   feed title. Generic so any "live" indicator can pick it up. */
.pulse-dot {
    flex-shrink: 0;
    width: 9px; height: 9px; border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 0 rgba(220,38,38,0.55);
    animation: pulse-dot 1.8s cubic-bezier(0.66,0,0,1) infinite;
}

/* Year-to-date stats — lives in .rightCont above the updates feed.
   Light-column variant: stacked cards on white, distinct from the dark
   war-band card system below the homeWrap. */
.home-ytd-head {
    margin: 0 0 12px;
    color: #b45309;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 700;
}
.home-ytd-head strong {
    color: #18181b;
    font-size: inherit;
    margin: 0 4px;
    font-weight: 900;
}
/* Side-by-side row holding the YTD stats block + the updates feed. */
.home-right-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
}
.home-right-row > .home-ytd,
.home-right-row > .home-updates-feed {
    flex: 1 1 0;
    min-width: 0;
}

.home-ytd-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.home-ytd-card {
    display: flex; flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, #fff, #fafafa);
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 16px 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-ytd-card:hover {
    transform: translateY(-2px);
    border-color: #d4d4d8;
    box-shadow: 0 6px 16px rgb(0 0 0 / 0.08);
}
.home-ytd-num {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 900;
    color: #18181b;
    line-height: 1;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}
.home-ytd-bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 10px auto 8px;
    border-radius: 2px;
}
.home-ytd-label {
    font-family: 'IBM Plex Mono','Cairo',monospace;
    font-size: 12px;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    line-height: 1.3;
}
.home-ytd-update {
    margin-top: 6px;
    font-family: tahoma;
    font-size: 10px;
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.home-ytd-update.is-missing { opacity: 0.5; }

@media (max-width: 768px) {
    .home-right-row { flex-direction: column; }
}
@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(220,38,38,0.55); }
    80%  { box-shadow: 0 0 0 12px rgba(220,38,38,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

.home-warband-cols {
    display: flex; flex-direction: column;
    gap: 14px;
}
/* Each region is a horizontal row: label on the start side, stats on the end. */
.home-warband-col {
    display: flex; align-items: stretch;
    gap: clamp(16px, 2vw, 28px);
}
.home-warband-col-label {
    flex: 0 0 auto;
    align-self: center;
    font-family: 'Cairo', sans-serif;
    font-size: clamp(14px, 1.4vw, 16px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    width: clamp(96px, 10vw, 140px);
}
.home-warband-col.is-wb   .home-warband-col-label { color: #7ea8f0; }
.home-warband-col.is-gaza .home-warband-col-label { color: #f08080; }
.home-warband-stats {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.home-warband-stats .wn {
    display: flex; flex-direction: column;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.home-warband-stats .wn:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
}
.home-warband-stats .wn-num {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 900;
    color: #fafafa;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.home-warband-stats .wn-num.approx::before {
    content: "~ ";
    color: #ffffff;
    font-weight: 500;
    font-size: 18px;
    opacity: 0.4;
}
.home-warband-stats .wn-bar {
    display: block;
    height: 3px;
    margin: 10px auto;
    border-radius: 2px;
}
.home-warband-stats .wn-label {
    font-family: 'IBM Plex Mono','Cairo',monospace;
    font-size: 10px;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.home-warband-sources {
    margin-top: 32px;
    text-align: center;
    font-size: 11px;
    color: #71717a;
    line-height: 1.8;
}
.home-warband-sources .gaza-note { color: #d97706; }

@media (max-width: 768px) {
    .home-warband-col { flex-direction: column; gap: 14px; }
    .home-warband-col-label { width: auto; align-self: flex-start; }
    .home-warband-stats { grid-template-columns: repeat(2, 1fr); }
}

/* --- Block 4: Recent martyrs grid (home-recent-section) --- */
/* Lives inside .rightCont under the updates feed — no full-bleed framing. */
.home-recent-section {
    margin-top: 20px;
}
.home-recent-inner { max-width: 100%; }
.home-recent-head { margin: 30px 0 16px; }
.home-recent-title {
    font-family: 'Cairo','Inter Tight',sans-serif;
    font-weight: 900;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #09090b;
    margin: 50px 0 15px;
}
.home-recent-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0; /* .myrcard has its own 7px margin */
    max-height: 475px;
    overflow: hidden;
}
.home-recent-grid a.myrcard {
    text-decoration: none;
    color: inherit;
}
/* Disable the scroll-to-bloom animation on the home recent grid (the
   inherited .myrcard rule from martyrs-year.css applies it by default). */
.home-recent-grid .myrcard:has(.martBody) {
    animation: none !important;
}


/* --- Block 5: Scrolly slide content — beat typography + vis cards + illustrations --- */
/* @property registers --cat-bg as a real color so it interpolates inside
   gradient stops. Without it, var() changes snap rather than animate. */
@property --cat-bg { syntax: '<color>'; inherits: true; initial-value: #dc2626; }
.home-stats-beat .b-cat { font-family: 'IBM Plex Mono','Cairo',monospace; font-size: 24px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cat); font-weight: bold; text-shadow: 2px 2px 3px #0000006b; }
.home-stats-beat .b-num { font-family: 'Cairo','Inter Tight',sans-serif; font-weight: 900; font-size: clamp(48px, 6vw, 80px); line-height: 1; letter-spacing: -0.03em; color: #ffffff; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.home-stats-beat .b-pct { font-family: 'IBM Plex Mono','Cairo',monospace; font-size: 13px; color: #ffffffa8; margin-bottom: 18px; }
.home-stats-beat .b-pct strong { color: var(--cat); font-weight: 600; }
.home-stats-beat .b-head { font-family: 'Cairo','Inter Tight',sans-serif; font-size: 22px; font-weight: 800; line-height: 1.3; color: #ffffff; margin-bottom: 10px; letter-spacing: -0.015em; }
.home-stats-beat .b-body { color: #ffffffa8; font-size: 15px; line-height: 1.7; }


.home-stats-cards {
    padding: 18px 24px 22px;
}
.home-stats-cards .c-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* Cards now use the .myrcard markup so they inherit the glassy listing-card
   look from martyrs-year.css. These overrides adapt sizing for the narrow
   vis panel and preserve the cross-fade transition between category switches. */
.home-stats-cards .myrcard:has(.martBody) {
    width: auto;          /* fill the grid cell instead of the fixed 150px */
    margin: 0;
    transition: opacity .5s ease, transform .5s ease;
    animation: none !important;   /* opt out of scroll-to-bloom in sticky panel */
    will-change: opacity, transform;
}
.home-stats-cards .myrcard:has(.martBody).is-out {
    opacity: 0;
    transform: translateY(8px);
}

/* === Minimal variant — photo-only 100×100, 5×5 grid, no info strip =====
   Toggle by adding `is-minimal` to the .home-stats-cards element. */
.home-stats-cards.is-minimal .c-grid {
    display: grid;
    grid-template-columns: repeat(5, 80px);
    justify-content: center;
    gap: 8px;
    mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
}
.home-stats-cards.is-minimal .myrcard:has(.martBody) {
    width: 80px;
}
.home-stats-cards.is-minimal .myrcard:has(.martBody) .MartPhoto {
    height: 80px;
    border-radius: 10px;
}
.home-stats-cards.is-minimal .myrcard:has(.martBody) .MartPhoto::after {
    display: none;
}
.home-stats-cards.is-minimal .myrcard:has(.martBody) .martBody {
    display: none;
}
/* Thumb is now a plain <a> link — entire card click → /martyrs/show/<id>. */
.home-stats-cards.is-minimal .myrcard {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* === Detainees illustration — animated cell + birds flying free =========
   Hidden by default; shown only when the detainees beat is active (the JS
   sets data-key="detainees" on .home-stats-vis). */
.home-illust-detainees {
    /* overlay the cards block so the swap is a cross-fade, not a layout shift */
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: opacity .6s ease, visibility .6s ease, transform .6s ease;
    text-align: center;
    padding: 20px 24px;
    overflow: hidden;
}
.home-stats-cards {
    transition: opacity .4s ease;
    position: relative;
}
.home-stats-vis[data-key="detainees"] .home-illust-detainees {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.home-stats-vis[data-key="detainees"] .home-stats-cards,
.home-stats-vis[data-key="demolitions"] .home-stats-cards {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.home-illust-demolitions {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: opacity .6s ease, visibility .6s ease, transform .6s ease;
    text-align: center;
    padding: 20px 24px;
}
.home-stats-vis[data-key="demolitions"] .home-illust-demolitions {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.home-stats-vis[data-key="demolitions"] .home-illust-demolitions img.home-illust-svg {
    top: 0px;
    max-width: 36vw;
}

.home-illust-svg {
    display: block;
    width: 100%;
    max-width: 60vh;
    margin: 0 auto 14px;
    height: auto;
    position: absolute;
    left: 0;
    top: -90px;
}

@media (max-width: 900px) {
    .home-stats-vis { display: none; }
    .home-stats-beat { padding: 0 32px; }
}

/* --- Block 6: Home-stats Splide section (sliding deck) + per-slide grid + toggle --- */
.home-stats {
    --cat-bg: #dc2626;
    color: #e4e4e7;
    border-block: 1px solid #18181b;
    background:
        linear-gradient(to left, var(--cat-bg) 0%, transparent 55%),
        #09090b;
    background-blend-mode: screen, normal;
    transition: --cat-bg 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    height: 600px;
    overflow: hidden;
    padding: 0;
    position: relative;
}
.home-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(30px, 6vw, 35px) clamp(20px, 4vw, 56px) 0;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.home-stats .home-stats-head {
    margin-bottom: 28px;
    padding: 12px 42px 20px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 24px rgba(0,0,0,0.3);
    display: inline-block;
    align-self: flex-start;
}
.home-stats .home-stats-head h2 {
    font-family: 'Cairo','Inter Tight',sans-serif; font-weight: 900;
    font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -0.025em;
    color: #fafafa; line-height: 1.15; margin: 4px 0 0;
}
.home-stats-grid { flex: 1; min-height: 0; position: relative; }
.home-stats-splide {
    height: 100%;
    position: relative; /* anchors absolute pagination + progress */
}
.home-stats-splide .splide__track,
.home-stats-splide .splide__list,
.home-stats-splide .splide__slide {
    height: 100%;
}
/* Each slide is a 2-column grid (beat | vis) — so each slide carries its
   own self-contained content, no shared panel needed. */
.home-stats-slide-grid {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: stretch;
}
.home-stats-slide-grid .home-stats-vis {
    position: relative;
}
@media (max-width: 900px) {
    .home-stats-slide-grid { grid-template-columns: 1fr; }
    .home-stats-slide-grid .home-stats-vis { display: none; }
}
.home-stats .home-stats-beat {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
/* Splide pagination styles live in a second <style> block AFTER the
   Splide CSS link (search "home-stats splide pagination override" near
   the bottom of the page) — that's the cleanest way to win the cascade
   without `!important` since Splide ships its own vertical-mode default. */
/* Splide autoplay progress bar — keep it pinned to the top edge. */
/* Overall-progress bar (driven by JS on slide change). Replaces Splide's
   built-in per-slide autoplay progress so the bar reflects deck-wide
   completion (1/N → N/N). */
.home-stats .home-stats-overall-progress {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 4px;
    background: rgba(255,255,255,0.06);
    z-index: 5;
    pointer-events: none;
}
.home-stats .home-stats-overall-progress > i {
    display: block;
    height: 100%;
    width: 0;
    background: #ffb21f;
    box-shadow: 0 0 12px #ffb21f, 0 0 4px #ffb21f;
    /* Width is driven by JS rAF — no CSS transition/animation here so
       bullet-jumps don't trigger a flicker. */
}

/* ═════════════════════════════════════════════════════════════════════════

   Home summary band widgets — moved 2026-05-12 from style-black.css.

   - .segmented-picker: by-gender/by-age/by-gov radio tabs above the table.

   - #dpSummary + span.dp-date: jquery-date-range-picker trigger pill.

   - .summaryTable + .SummaryTitel: container for the AJAX-loaded body.

   The picker itself (jquery-date-range-picker DOM) is styled by

   rebuilt/css/date-range-picker.css.

   ═════════════════════════════════════════════════════════════════════════ */
.segmented-picker {
    align-items: center;
    background-color: #e1e1e1;
    color: #666;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    padding: 2px;
    width: 100%;
    direction: ltr;
}
.segmented-picker > input {
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}
.segmented-picker
    > input:nth-last-of-type(1):checked
    ~ label:last-of-type::before {
    left: 0;
}
.segmented-picker
    > input:nth-last-of-type(2):checked
    ~ label:last-of-type::before {
    left: -100%;
}
.segmented-picker
    > input:nth-last-of-type(3):checked
    ~ label:last-of-type::before {
    left: -200%;
}
.segmented-picker
    > input:nth-last-of-type(4):checked
    ~ label:last-of-type::before {
    left: -300%;
}
.segmented-picker > label {
    align-items: center;
    cursor: pointer;
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 8px;
    position: relative;
}
.segmented-picker > input:checked + label > span {
    color: #000;
    font-weight: bold;
}
.segmented-picker > label > span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}
.segmented-picker > label:not(:first-of-type)::after {
    background-color: rgba(0, 0, 0, 0.12);
    content: "";
    display: block;
    height: 16px;
    left: 0;
    position: absolute;
    width: 1px;
    z-index: 0;
}
.segmented-picker > label:last-of-type::before {
    background-color: white;
    border-radius: 6px;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.12),
        0 0 0 2px #d7d8da;
    content: "";
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: 0.25s ease;
    width: 100%;
    z-index: 1;
}
/* dpSummary — date-range trigger on the homepage summary band. Sits inline
   in a sentence, so we use inline-flex rather than block. Pill shape +
   site-red accent matches the picker palette. */
#dpSummary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e0c5cb;
    padding: 4px 14px;
    color: #444;
    border-radius: 18px;
    margin-inline-start: 6px;
    margin-inline-end: 2px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 2px rgba(184, 45, 68, 0.08);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    user-select: none;
    white-space: nowrap;
    vertical-align: middle;
}
/* Doubled class boosts specificity over any future #dpSummary color override. */
span.dp-date.dp-date {
    color: #b82d44;
}
#dpSummary::before {
    content: "📅";
    font-size: 13px;
    line-height: 1;
    margin-inline-end: 2px;
    /* Emoji color glyph stays even if color change applied to text */
}
#dpSummary::after {
    content: "▾";
    font-size: 9px;
    line-height: 1;
    color: #c98a96;
    margin-inline-start: 2px;
    transition: transform 0.15s ease;
}
#dpSummary:hover {
    background: #fce7eb;
    border-color: #b82d44;
    box-shadow: 0 2px 6px rgba(184, 45, 68, 0.18);
}
#dpSummary:hover::after { color: #b82d44; transform: translateY(1px); }
#dpSummary:focus,
#dpSummary:focus-visible {
    outline: none;
    border-color: #b82d44;
    box-shadow: 0 0 0 3px rgba(184, 45, 68, 0.18);
}
#dpSummary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(184, 45, 68, 0.18);
}
/* ─── Summary table (home page — West Bank / Gaza split) ──────────────────
   Markup is generated by api/summary.php (?by=age|gov|gender). Two outer
   <td>s become "column cards"; their nested <table> holds the rows. The
   styling here turns the generic Bootstrap table into a paired card layout
   with a branded header band and large feature totals.
   ───────────────────────────────────────────────────────────────────────── */
.summaryTable {
    padding: 8px 0 0;
}
.SummaryTitel {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 20px 0;
}

