/* ================================================================
   HOMEPAGE V4 — Premium News Homepage
   ================================================================
   Layout: Full-width hero → Main + sidebar (NYT/WaPo)
   3-tier categories: Rich → Medium → Compact
   Mobile-first: sidebar content surfaces inline on small screens
   Prefix: v4-*  (coexists with V3)
   ================================================================ */


/* ── Container ──────────────────────────────────────────────────── */
.v4-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 40px;
}
@media (min-width: 768px) {
    .v4-container { padding: 0 22px 48px; }
}
@media (min-width: 1280px) {
    .v4-container { padding: 0 28px 56px; }
}


/* ── Shared Primitives ──────────────────────────────────────────── */
.v4-src-icon {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}
.v4-dot { color: var(--text-muted, #9CA3AF); }
.v4-comments {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.v4-comments svg { opacity: 0.55; }

.v4-card-title {
    font-family: var(--font-serif, Georgia, "Times New Roman", serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.38;
    color: var(--text, #1A1A1A);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 5px;
}
.v4-card-meta {
    font-size: 12px;
    color: var(--text-muted, #9CA3AF);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.v4-meta-source {
    font-weight: 600;
    color: var(--text-secondary, #4A4A4A);
}


/* ── Category Headers ───────────────────────────────────────────── */
.v4-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 14px 0 0;
    border-top: 2px solid var(--brand, #1E3A5F);
}
.v4-cat-header--rich {
    border-top: 3px solid #C9A84C;
    margin-bottom: 20px;
}
.v4-cat-header--compact {
    border-top: 1px solid var(--border, #E5E7EB);
    margin-bottom: 14px;
}
.v4-cat-title {
    font-family: var(--font-serif, Georgia, "Times New Roman", serif);
    font-size: 19px;
    font-weight: 800;
    color: var(--text, #1A1A1A);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}
.v4-cat-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand, #1E3A5F);
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    white-space: nowrap;
}
.v4-cat-more:hover { text-decoration: underline; }


/* ================================================================
   ① TOP STORIES — Full-width Split Hero
   ================================================================ */
.v4-ts {
    padding: 28px 0 0;
    border-top: 4px solid #C9A84C;
}
.v4-ts-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}
.v4-ts-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-serif, Georgia, "Times New Roman", serif);
    font-size: 13px;
    font-weight: 800;
    color: #C9A84C;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}
.v4-ts-label svg { fill: currentColor; }
.v4-ts-hint {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted, #9CA3AF);
    letter-spacing: 0.03em;
}

/* Split grid */
.v4-ts-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 768px) {
    .v4-ts-split {
        grid-template-columns: 3fr 2fr;
        gap: 0;
    }
}

/* Hero (left) */
.v4-ts-hero {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 3px;
}
.v4-ts-hero:hover { text-decoration: none; }
.v4-ts-hero-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.v4-ts-hero:hover .v4-ts-hero-img { transform: scale(1.02); }
.v4-ts-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 48px 20px 20px;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
    color: #fff;
}
@media (min-width: 768px) {
    .v4-ts-hero-overlay { padding: 56px 24px 22px; }
}

/* Badges */
.v4-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 3px 9px;
    margin-bottom: 10px;
    border-radius: 2px;
}
.v4-badge-flash { background: var(--live, #DC2626); color: #fff; }
.v4-badge-live { background: var(--live, #DC2626); color: #fff; }
.v4-badge-dev { background: #D97706; color: #fff; }
.v4-badge-analysis { background: rgba(37, 99, 235, 0.85); color: #fff; }
.v4-badge-cat { background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.92); backdrop-filter: blur(4px); }
.v4-pulse {
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: v4pulse 1.5s infinite;
}
@keyframes v4pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Hero typography */
.v4-ts-hero-title {
    font-family: var(--font-serif, Georgia, "Times New Roman", serif);
    font-size: clamp(24px, 4.5vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 8px;
    letter-spacing: -0.015em;
}
.v4-ts-hero-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 479px) {
    .v4-ts-hero-excerpt { display: none; }
    .v4-ts-hero-title { font-size: 22px; }
}
@media (min-width: 480px) and (max-width: 767px) {
    .v4-ts-hero-excerpt { -webkit-line-clamp: 1; }
}
.v4-ts-hero-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.v4-ts-hero-meta .v4-src-icon { filter: brightness(10); }

/* Sidebar (right) — top stories sidebar items */
.v4-ts-sidebar {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border, #E5E7EB);
}
@media (min-width: 768px) {
    .v4-ts-sidebar {
        border-top: none;
        border-left: 1px solid var(--border, #E5E7EB);
    }
}
.v4-ts-side-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--border, #E5E7EB);
    text-decoration: none;
    color: inherit;
    min-height: 44px; /* touch target */
}
.v4-ts-side-item:last-child { border-bottom: none; }
.v4-ts-side-item:hover { background: var(--bg-secondary, #F7F8FA); text-decoration: none; }
.v4-ts-side-text { flex: 1; min-width: 0; }
.v4-ts-side-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand, #1E3A5F);
    margin-bottom: 2px;
}
.v4-ts-side-title {
    font-family: var(--font-serif, Georgia, "Times New Roman", serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.32;
    color: var(--text, #1A1A1A);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px;
}
@media (min-width: 768px) {
    .v4-ts-side-title { font-size: 15px; line-height: 1.35; }
}
.v4-ts-side-item:hover .v4-ts-side-title { text-decoration: underline; }
.v4-ts-side-meta {
    font-size: 11px;
    color: var(--text-muted, #9CA3AF);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.v4-ts-side-thumb {
    width: 88px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    border-radius: 3px;
}
@media (min-width: 768px) {
    .v4-ts-side-thumb { width: 100px; height: 66px; }
}
@media (min-width: 1024px) {
    .v4-ts-side-thumb { width: 110px; height: 72px; }
}


/* ================================================================
   MAIN + SIDEBAR 2-COLUMN LAYOUT
   ================================================================ */
.v4-layout {
    display: block;
    margin-top: 20px;
}
@media (min-width: 1024px) {
    .v4-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 0;
        align-items: start;
        margin-top: 28px;
    }
}
@media (min-width: 1200px) {
    .v4-layout {
        grid-template-columns: 1fr 340px;
    }
}

.v4-main {
    min-width: 0;
}
@media (min-width: 1024px) {
    .v4-main {
        padding-right: 28px;
        border-right: 1px solid var(--border, #E5E7EB);
    }
}

/* Desktop sidebar — hidden on mobile (content surfaces via .v4-mobile-sidebar) */
.v4-sidebar {
    display: none;
}
@media (min-width: 1024px) {
    .v4-sidebar {
        display: block;
        padding-left: 28px;
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    .v4-sidebar::-webkit-scrollbar { width: 3px; }
    .v4-sidebar::-webkit-scrollbar-thumb { background: var(--border, #E5E7EB); border-radius: 2px; }
    .v4-sidebar { scrollbar-width: thin; scrollbar-color: var(--border, #E5E7EB) transparent; }
}

/* Mobile sidebar — surfaces inline between sections (< 1024px) */
.v4-mobile-sidebar {
    display: block;
    padding: 24px 0 8px;
    border-top: 1px solid var(--border, #E5E7EB);
    margin-top: 8px;
}
@media (min-width: 1024px) {
    .v4-mobile-sidebar { display: none; }
}


/* ================================================================
   ② RICH CATEGORY SECTIONS — Featured overlay + side stack
   ================================================================ */
.v4-cat-rich {
    padding: 22px 0 18px;
}
@media (min-width: 768px) {
    .v4-cat-rich { padding: 28px 0 24px; }
}

/* Featured + Side grid */
.v4-rich-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .v4-rich-grid {
        grid-template-columns: 3fr 2fr;
        gap: 0;
        align-items: start;
    }
}

/* Featured card */
.v4-rich-featured {
    display: block;
    text-decoration: none;
    color: inherit;
}
.v4-rich-featured:hover { text-decoration: none; }
.v4-rich-feat-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    margin-bottom: 10px;
}
.v4-rich-feat-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.v4-rich-featured:hover .v4-rich-feat-img { transform: scale(1.02); }
.v4-rich-feat-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 36px 18px 16px;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.82) 100%);
}
@media (min-width: 768px) {
    .v4-rich-feat-overlay { padding: 40px 20px 18px; }
}
.v4-rich-feat-placeholder {
    width: 100%; aspect-ratio: 16/9;
    background: var(--bg-tertiary, #EEF1F5);
    border-radius: 3px;
}
.v4-rich-feat-title {
    font-family: var(--font-serif, Georgia, "Times New Roman", serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.22;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
@media (min-width: 768px) { .v4-rich-feat-title { font-size: 23px; } }
@media (min-width: 1024px) { .v4-rich-feat-title { font-size: 25px; } }
.v4-rich-featured:hover .v4-rich-feat-title { text-decoration: underline; }

.v4-rich-feat-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary, #4A4A4A);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 7px;
}

/* Side stack */
.v4-rich-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
@media (min-width: 768px) {
    .v4-rich-side { padding-left: 20px; }
}
.v4-rich-side-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-light, #F3F4F6);
    text-decoration: none;
    color: inherit;
    min-height: 44px; /* touch target */
}
.v4-rich-side-card:first-child { padding-top: 0; }
.v4-rich-side-card:last-child { border-bottom: none; padding-bottom: 0; }
.v4-rich-side-card:hover .v4-card-title { text-decoration: underline; }
.v4-rich-side-img {
    width: 100px; height: 66px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    border-radius: 3px;
}
@media (min-width: 768px) {
    .v4-rich-side-img { width: 120px; height: 80px; }
}
@media (min-width: 1024px) {
    .v4-rich-side-img { width: 116px; height: 76px; }
}
.v4-rich-side-text { flex: 1; min-width: 0; }
.v4-rich-side-text .v4-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.36;
}
@media (min-width: 768px) {
    .v4-rich-side-text .v4-card-title { font-size: 15px; }
}

/* Bottom row: 3-column grid */
.v4-rich-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border, #E5E7EB);
}
@media (min-width: 480px) {
    .v4-rich-bottom { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .v4-rich-bottom { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.v4-rich-bottom-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.v4-rich-bottom-card:hover .v4-card-title { text-decoration: underline; }
.v4-rich-bottom-img-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    border-radius: 3px;
}
.v4-rich-bottom-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.v4-rich-bottom-card:hover .v4-rich-bottom-img { transform: scale(1.02); }
.v4-rich-bottom-card .v4-card-title {
    font-size: 14px;
    font-weight: 600;
    -webkit-line-clamp: 3;
    margin-bottom: 5px;
}
@media (min-width: 768px) {
    .v4-rich-bottom-card .v4-card-title { font-size: 15px; }
}


/* ================================================================
   ② MEDIUM CATEGORY SECTIONS — Lead horizontal + compact grid
   ================================================================ */
.v4-cat-medium {
    padding: 20px 0;
}
@media (min-width: 768px) {
    .v4-cat-medium { padding: 26px 0; }
}

/* Lead story */
.v4-med-lead {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 12px;
    align-items: start;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border, #E5E7EB);
}
@media (min-width: 640px) {
    .v4-med-lead {
        grid-template-columns: 5fr 7fr;
        gap: 24px;
        align-items: center;
    }
}
.v4-med-lead:hover { text-decoration: none; }
.v4-med-lead-img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    border-radius: 3px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.v4-med-lead:hover .v4-med-lead-img { transform: scale(1.015); }
.v4-med-lead-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.v4-med-lead-title {
    font-family: var(--font-serif, Georgia, "Times New Roman", serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text, #1A1A1A);
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 640px) { .v4-med-lead-title { font-size: 21px; margin-bottom: 8px; } }
@media (min-width: 768px) { .v4-med-lead-title { font-size: 23px; } }
.v4-med-lead:hover .v4-med-lead-title { text-decoration: underline; }
.v4-med-lead-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary, #4A4A4A);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 5px;
}
@media (min-width: 640px) {
    .v4-med-lead-excerpt {
        font-size: 15px;
        line-height: 1.52;
        -webkit-line-clamp: 3;
        margin-bottom: 8px;
    }
}

/* Grid: compact cards */
.v4-med-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 640px) {
    .v4-med-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }
}
.v4-med-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-light, #F3F4F6);
    text-decoration: none;
    color: inherit;
    min-height: 44px; /* touch target */
}
.v4-med-card:last-child { border-bottom: none; }
@media (min-width: 640px) {
    .v4-med-card:nth-last-child(1),
    .v4-med-card:nth-last-child(2) { border-bottom: none; }
}
.v4-med-card:hover { background: var(--bg-secondary, #F7F8FA); }
.v4-med-card:hover .v4-card-title { text-decoration: underline; }
.v4-med-card-thumb {
    width: 96px;
    height: 64px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 3px;
}
@media (min-width: 768px) {
    .v4-med-card-thumb { width: 110px; height: 72px; }
}
.v4-med-card-text { flex: 1; min-width: 0; }


/* ================================================================
   ③ LISTEN — Daily Briefing Player
   ================================================================ */
.v4-listen { padding: 24px 0; }
.v4-listen-card {
    border: 1px solid var(--border, #E5E7EB);
    background: var(--bg, #fff);
    border-radius: 4px;
    overflow: hidden;
}
.v4-listen-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light, #F3F4F6);
}
.v4-listen-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text, #1A1A1A);
    text-decoration: none;
}
.v4-listen-brand:hover { text-decoration: underline; }
.v4-listen-date { font-size: 12px; color: var(--text-muted, #9CA3AF); }
.v4-listen-list { display: flex; flex-direction: column; }
.v4-listen-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light, #F3F4F6);
    min-height: 48px; /* touch target */
}
.v4-listen-row:last-child { border-bottom: none; }
.v4-listen-row.is-latest { background: var(--bg-secondary, #F7F8FA); }
.v4-listen-play {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand, #1E3A5F);
    color: #fff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background 0.2s;
}
.v4-listen-play:hover { background: #15304f; }
.v4-listen-play:active { transform: scale(0.96); }
.v4-listen-play svg { width: 16px; height: 16px; }
.v4-listen-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
    text-decoration: none; color: inherit;
}
.v4-listen-info:hover { text-decoration: underline; }
.v4-listen-line1 {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600;
}
.v4-listen-icon { display: flex; color: var(--text-muted, #9CA3AF); }
.v4-listen-name { color: var(--text, #1A1A1A); }
.v4-listen-latest {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    color: var(--live, #DC2626); letter-spacing: 0.4px;
}
.v4-listen-meta { font-size: 12px; color: var(--text-muted, #9CA3AF); }
.v4-listen-arrow {
    color: var(--text-muted, #9CA3AF); flex-shrink: 0;
    display: flex;
    padding: 8px; /* bigger touch target */
    margin: -8px;
}
.v4-listen-arrow:hover { color: var(--brand, #1E3A5F); }


/* ================================================================
   ④ FOR YOU
   ================================================================ */
.v4-foryou {
    padding: 22px 0;
    border-top: 1px solid var(--border, #E5E7EB);
}
@media (min-width: 1024px) {
    .v4-foryou { padding: 28px 0; }
}
.v4-foryou-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
    padding-top: 12px;
    border-top: 2px solid var(--brand, #1E3A5F);
}
.v4-foryou-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text, #1A1A1A); margin: 0;
}
.v4-foryou-reason {
    font-size: 12px;
    color: var(--text-muted, #6B7280);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ================================================================
   ⑤ MORE SECTIONS — Compact: lead + list
   ================================================================ */
.v4-more-section {
    padding: 14px 0;
}
@media (min-width: 768px) {
    .v4-more-section { padding: 20px 0; }
}

/* Lead: horizontal */
.v4-more-lead {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 12px;
    align-items: start;
    text-decoration: none;
    color: inherit;
    margin-bottom: 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border, #E5E7EB);
    min-height: 44px; /* touch target */
}
@media (min-width: 640px) {
    .v4-more-lead {
        gap: 20px;
        align-items: center;
    }
}
.v4-more-lead:hover .v4-more-lead-title { text-decoration: underline; }
.v4-more-lead-img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}
.v4-more-lead-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.v4-more-lead-title {
    font-family: var(--font-serif, Georgia, "Times New Roman", serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.28;
    color: var(--text, #1A1A1A);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px) { .v4-more-lead-title { font-size: 19px; } }

/* Compact list */
.v4-more-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 640px) {
    .v4-more-list {
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }
}
.v4-more-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light, #F3F4F6);
    text-decoration: none;
    color: inherit;
    min-height: 44px; /* touch target */
}
.v4-more-item:last-child { border-bottom: none; }
@media (min-width: 640px) {
    .v4-more-item:nth-last-child(1),
    .v4-more-item:nth-last-child(2) { border-bottom: none; }
}
.v4-more-item:hover { background: var(--bg-secondary, #F7F8FA); }
.v4-more-item:hover .v4-card-title { text-decoration: underline; }
.v4-more-item-thumb {
    width: 88px;
    aspect-ratio: 4/3;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 3px;
}
@media (min-width: 768px) {
    .v4-more-item-thumb { width: 108px; }
}
.v4-more-item-text {
    display: flex; flex-direction: column;
    justify-content: center; min-width: 0;
}


/* ================================================================
   ⑥ SIDEBAR — Most Read
   ================================================================ */
.v4-sb-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text, #1A1A1A);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand, #1E3A5F);
}
.v4-sb-heading svg { fill: currentColor; }
.v4-sb-mostread .v4-sb-heading svg { color: var(--live, #DC2626); }

.v4-mr-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.v4-mr-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light, #F3F4F6);
}
.v4-mr-item:last-child { border-bottom: none; }

.v4-mr-rank {
    font-family: var(--font-serif, Georgia, "Times New Roman", serif);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: #C9A84C;
    min-width: 26px;
    text-align: center;
    flex-shrink: 0;
    padding-top: 1px;
}
/* Subtle scale: later ranks are slightly smaller/lighter */
.v4-mr-item:nth-child(n+4) .v4-mr-rank {
    font-size: 22px;
    opacity: 0.75;
}
.v4-mr-item:nth-child(n+8) .v4-mr-rank {
    font-size: 20px;
    opacity: 0.55;
}

.v4-mr-link {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    min-height: 44px; /* touch target */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.v4-mr-link:hover .v4-mr-title { text-decoration: underline; }

.v4-mr-title {
    font-family: var(--font-serif, Georgia, "Times New Roman", serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.32;
    color: var(--text, #1A1A1A);
    margin: 0 0 3px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.v4-mr-cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--brand, #1E3A5F);
}


/* ================================================================
   ⑦ SIDEBAR — Newsletter CTA
   ================================================================ */
.v4-sb-newsletter {
    margin-top: 28px;
    padding: 20px;
    background: #0D1B2A;
    color: #fff;
    border-radius: 4px;
}
.v4-sb-newsletter .v4-sb-heading {
    color: #fff;
    border-bottom-color: #C9A84C;
}
.v4-sb-newsletter .v4-sb-heading svg { stroke: #C9A84C; }
.v4-sb-nl-desc {
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.78;
    margin: 0 0 14px;
}
.v4-sb-nl-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.v4-sb-nl-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.18);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}
.v4-sb-nl-input::placeholder { color: rgba(255,255,255,0.45); }
.v4-sb-nl-input:focus { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.1); }
.v4-sb-nl-btn {
    width: 100%;
    padding: 10px 18px;
    background: #C9A84C;
    color: #0D1B2A;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    border: 1px solid #C9A84C;
    border-radius: 0 0 4px 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background 0.2s;
}
.v4-sb-nl-btn:hover { background: #b8983f; }
.v4-sb-nl-btn:active { transform: scale(0.98); }
.v4-sb-nl-langs {
    margin: 10px 0 0;
    font-size: 11px;
    opacity: 0.35;
    text-align: center;
}

/* Mobile newsletter — wider horizontal layout */
.v4-sb-newsletter--mobile {
    margin-top: 20px;
}
@media (min-width: 480px) {
    .v4-sb-newsletter--mobile .v4-sb-nl-form {
        flex-direction: row;
    }
    .v4-sb-newsletter--mobile .v4-sb-nl-input {
        border-bottom: 1px solid rgba(255,255,255,0.18);
        border-right: none;
        border-radius: 4px 0 0 4px;
        flex: 1;
    }
    .v4-sb-newsletter--mobile .v4-sb-nl-btn {
        border-radius: 0 4px 4px 0;
        width: auto;
        white-space: nowrap;
        padding: 10px 22px;
    }
}


/* ================================================================
   READ STATE
   ================================================================ */
.v4-container [data-post-id].is-read { opacity: 0.5; }
.v4-container [data-post-id].is-read:hover { opacity: 0.75; }


/* ================================================================
   MOBILE-FIRST RESPONSIVE — Small phones through tablets
   ================================================================ */

/* iPhone SE / very small screens (320px) */
@media (max-width: 359px) {
    .v4-container { padding: 0 12px 32px; }
    .v4-ts-hero-title { font-size: 20px; }
    .v4-ts-hero-overlay { padding: 32px 14px 14px; }
    .v4-ts-side-thumb { width: 76px; height: 52px; }
    .v4-ts-side-title { font-size: 13px; }
    .v4-rich-feat-title { font-size: 18px; }
    .v4-rich-feat-overlay { padding: 28px 14px 12px; }
    .v4-rich-side-img { width: 84px; height: 56px; }
    .v4-med-lead-title { font-size: 16px; }
    .v4-med-card-thumb { width: 80px; height: 54px; }
    .v4-more-item-thumb { width: 76px; }
    .v4-cat-title { font-size: 16px; }
    .v4-mr-rank { font-size: 22px; min-width: 22px; }
    .v4-mr-title { font-size: 13px; }
}

/* Standard phones (360-389px) */
@media (min-width: 360px) and (max-width: 389px) {
    .v4-ts-hero-title { font-size: 22px; }
    .v4-rich-feat-title { font-size: 19px; }
    .v4-med-card-thumb { width: 88px; height: 58px; }
}

/* Larger phones — iPhone 14 / Pixel 7 (390-427px) */
@media (min-width: 390px) and (max-width: 427px) {
    .v4-ts-hero-title { font-size: 24px; }
    .v4-rich-feat-title { font-size: 20px; }
}

/* Max phones — iPhone 14 Pro Max (428-479px) */
@media (min-width: 428px) and (max-width: 479px) {
    .v4-ts-hero-title { font-size: 26px; }
    .v4-rich-feat-title { font-size: 21px; }
}

/* Small tablet portrait (480-639px) */
@media (min-width: 480px) and (max-width: 639px) {
    .v4-ts-side-item { padding: 14px 16px; }
    .v4-ts-side-title { font-size: 15px; }
}

/* Tablet portrait + landscape (640-767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .v4-ts-hero-title { font-size: 28px; }
}

/* Tablet (768-1023px) — 2 column TS split already active */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Most Read in mobile sidebar: 2-column layout */
    .v4-mobile-sidebar .v4-mr-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }
    /* Rich bottom: 3-col on tablet+ */
    .v4-rich-bottom { grid-template-columns: repeat(3, 1fr); }
}


/* ================================================================
   AD SLOTS — IAB Standard Compliant
   ================================================================
   Industry standard ad dimensions:
   - Leaderboard: 728×90 (desktop) / 320×50 (mobile)
   - Billboard:   970×250 (desktop) / 320×100 (mobile)
   - In-Feed:     variable width / 300×250 medium rectangle (mobile)

   References: IAB New Ad Portfolio (2024), Coalition for Better Ads
   ================================================================ */

/* Base ad wrapper — shared by all V4 ad types */
.v4-ad {
    position: relative;
    margin: 28px 0;
    padding: 0;
    text-align: center;
    clear: both;
}
.v4-ad::before,
.v4-ad::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--border, #E5E7EB);
}
.v4-ad::before { margin-bottom: 12px; }
.v4-ad::after { margin-top: 12px; }

/* "Advertisement" label — IAB/FTC disclosure requirement */
.v4-ad-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted, #9CA3AF);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    text-align: center;
}

/* Ad creative container — centers the ad unit */
.v4-ad-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
}

/* Placeholder dimensions text (debug mode) */
.v4-ad-dims {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted, #9CA3AF);
    font-family: var(--font-mono, "SF Mono", "Consolas", monospace);
    letter-spacing: 0.5px;
}
.v4-ad-dims--mobile { display: none; }
@media (max-width: 639px) {
    .v4-ad-dims--desktop { display: none; }
    .v4-ad-dims--mobile { display: inline; }
}

/* ── Native Ad (after Top Stories) ──────────────────────────────── */
.v4-ad--native {
    margin: 24px 0 20px;
}
.v4-ad--native .v4-ad-container {
    max-width: 728px;
    min-height: 90px;
    border: 1px solid var(--border, #E5E7EB);
    border-radius: 3px;
    background: var(--bg-secondary, #FAFBFC);
}
@media (max-width: 767px) {
    .v4-ad--native .v4-ad-container {
        max-width: 320px;
        min-height: 50px;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .v4-ad--native .v4-ad-container {
        max-width: 468px;
        min-height: 60px;
    }
}

/* ── Banner Ad (mid-page divider) ───────────────────────────────── */
.v4-ad--banner {
    margin: 32px 0 24px;
    padding: 20px 0;
}
.v4-ad--banner::before,
.v4-ad--banner::after {
    height: 0;
    margin: 0;
}
.v4-ad--banner .v4-ad-label {
    margin-bottom: 14px;
}
.v4-ad--banner .v4-ad-container {
    max-width: 728px;
    min-height: 90px;
    background: var(--bg-secondary, #FAFBFC);
    border: 1px solid var(--border, #E5E7EB);
    border-radius: 3px;
}
@media (max-width: 639px) {
    .v4-ad--banner .v4-ad-container {
        max-width: 320px;
        min-height: 100px;
    }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .v4-ad--banner .v4-ad-container {
        max-width: 468px;
        min-height: 60px;
    }
}

/* ── In-Feed Ad (between category sections) ─────────────────────── */
.v4-ad--infeed {
    margin: 16px 0;
}
.v4-ad--infeed::before { margin-bottom: 10px; }
.v4-ad--infeed::after { margin-top: 10px; }
.v4-ad--infeed .v4-ad-container {
    max-width: 728px;
    min-height: 90px;
    background: var(--bg-secondary, #FAFBFC);
    border: 1px solid var(--border-light, #F3F4F6);
    border-radius: 3px;
}
@media (max-width: 639px) {
    .v4-ad--infeed .v4-ad-container {
        max-width: 300px;
        min-height: 250px;
    }
}


/* ================================================================
   DARK MODE
   ================================================================ */

/* Ads dark */
[data-theme="dark"] .v4-ad::before,
[data-theme="dark"] .v4-ad::after,
[data-theme="dim"] .v4-ad::before,
[data-theme="dim"] .v4-ad::after { background: var(--border, #2F3336); }

[data-theme="dark"] .v4-ad-container,
[data-theme="dim"] .v4-ad-container {
    background: var(--bg-secondary, #16181C);
    border-color: var(--border, #2F3336);
}

/* Top Stories */
[data-theme="dark"] .v4-ts,
[data-theme="dim"] .v4-ts { border-top-color: #D4B55A; }
[data-theme="dark"] .v4-ts-label,
[data-theme="dim"] .v4-ts-label { color: #D4B55A; }
[data-theme="dark"] .v4-ts-side-cat,
[data-theme="dim"] .v4-ts-side-cat { color: var(--brand, #60A5FA); }

/* Layout */
@media (min-width: 1024px) {
    [data-theme="dark"] .v4-main,
    [data-theme="dim"] .v4-main { border-right-color: var(--border, #2F3336); }
}

/* Category Headers */
[data-theme="dark"] .v4-cat-header,
[data-theme="dim"] .v4-cat-header { border-top-color: var(--brand, #60A5FA); }
[data-theme="dark"] .v4-cat-header--rich,
[data-theme="dim"] .v4-cat-header--rich { border-top-color: #D4B55A; }
[data-theme="dark"] .v4-cat-more,
[data-theme="dim"] .v4-cat-more { color: var(--brand, #60A5FA); }

/* Rich sections */
[data-theme="dark"] .v4-rich-feat-title,
[data-theme="dim"] .v4-rich-feat-title { color: #fff; }

/* Medium sections */
[data-theme="dark"] .v4-med-lead-title,
[data-theme="dim"] .v4-med-lead-title { color: var(--text, #E7E9EA); }
[data-theme="dark"] .v4-med-lead-excerpt,
[data-theme="dim"] .v4-med-lead-excerpt { color: var(--text-secondary, #d1d5db); }
[data-theme="dark"] .v4-meta-source,
[data-theme="dim"] .v4-meta-source { color: var(--text-secondary, #d1d5db); }

/* More sections */
[data-theme="dark"] .v4-more-lead-title,
[data-theme="dim"] .v4-more-lead-title { color: var(--text, #E7E9EA); }

/* Listen */
[data-theme="dark"] .v4-listen-card,
[data-theme="dim"] .v4-listen-card {
    border-color: var(--border, #2F3336);
    background: var(--bg-secondary, #16181C);
}
[data-theme="dark"] .v4-listen-row.is-latest,
[data-theme="dim"] .v4-listen-row.is-latest { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .v4-listen-play,
[data-theme="dim"] .v4-listen-play { background: var(--brand, #60A5FA); }

/* For You */
[data-theme="dark"] .v4-foryou-header,
[data-theme="dim"] .v4-foryou-header { border-top-color: #D4B55A; }

/* Sidebar */
[data-theme="dark"] .v4-sb-heading,
[data-theme="dim"] .v4-sb-heading {
    color: var(--text, #E7E9EA);
    border-bottom-color: var(--brand, #60A5FA);
}
[data-theme="dark"] .v4-mr-title,
[data-theme="dim"] .v4-mr-title { color: var(--text, #E7E9EA); }
[data-theme="dark"] .v4-mr-rank,
[data-theme="dim"] .v4-mr-rank { color: #D4B55A; }
[data-theme="dark"] .v4-mr-cat,
[data-theme="dim"] .v4-mr-cat { color: var(--brand, #60A5FA); }

[data-theme="dark"] .v4-sb-newsletter,
[data-theme="dim"] .v4-sb-newsletter {
    background: var(--bg-secondary, #16181C);
    border: 1px solid var(--border, #2F3336);
}
[data-theme="dark"] .v4-sb-nl-input,
[data-theme="dim"] .v4-sb-nl-input {
    border-color: var(--border, #2F3336);
    background: var(--bg-tertiary, #1D1F23);
    color: var(--text, #E7E9EA);
}
[data-theme="dark"] .v4-sb-nl-btn,
[data-theme="dim"] .v4-sb-nl-btn {
    background: #D4B55A; color: #0D1B2A; border-color: #D4B55A;
}

/* Mobile sidebar dark */
[data-theme="dark"] .v4-mobile-sidebar,
[data-theme="dim"] .v4-mobile-sidebar {
    border-top-color: var(--border, #2F3336);
}
