/* =====================================================
   THE VERITA POST — Custom Design System
   Premium Nigerian Newsroom
   ===================================================== */

/* ---- CSS Variables ---- */
:root {
    /* Brand Colors */
    --burgundy: #7F1D1D;
    --burgundy-light: #991B1B;
    --burgundy-dark: #601414;
    --rich-black: #111111;
    --gold: #E5C07B;
    --gold-dark: #D4A853;
    --ivory: #FFFCF7;
    --card: #FFFFFF;
    --breaking: #B91C1C;

    /* Text */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;

    /* Borders & Surfaces */
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --surface-hover: #F9FAFB;

    /* Shadows */
    --shadow-sm: 0 2px 8px -2px rgba(17, 17, 17, 0.06);
    --shadow-md: 0 8px 24px -8px rgba(17, 17, 17, 0.08);
    --shadow-lg: 0 20px 40px -12px rgba(17, 17, 17, 0.12);
    --shadow-xl: 0 32px 64px -16px rgba(17, 17, 17, 0.16);
    --shadow-card-hover: 0 12px 32px -8px rgba(17, 17, 17, 0.14);

    /* Typography */
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-heading: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Poppins', system-ui, sans-serif;

    /* Spacing */
    --section-gap: 96px;
    --gutter: 28px;

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 200ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    /* Layout */
    --header-height: 72px;
    --ticker-height: 40px;
    --content-width: 1280px;
    --article-width: 680px;
}

/* ---- Dark Mode Variables ---- */
[data-theme="dark"] {
    --ivory: #111111;
    --card: #1A1A1A;
    --rich-black: #F5F5F5;
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border: #2A2A2A;
    --border-light: #222222;
    --surface-hover: #242424;
    --burgundy: #EF4444;
    --burgundy-light: #F87171;
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
    --shadow-card-hover: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
}

/* ---- Base Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--ivory);
    transition: background-color var(--duration-normal) var(--ease-out),
                color var(--duration-normal) var(--ease-out);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

/* ---- Typography Scale ---- */
.font-serif { font-family: var(--font-serif); }
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

.text-display {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.text-h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.text-h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
}

.text-h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
}

.text-h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
}

.text-body-lg {
    font-size: 1.125rem;
    line-height: 1.8;
}

.text-body {
    font-size: 1rem;
    line-height: 1.7;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Header responsive fixes for many nav items */
.header-inner {
    gap: 12px;
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .nav-link {
        padding: 7px 10px !important;
        font-size: 0.78rem !important;
    }
    .nav-tipline {
        padding: 7px 12px !important;
    }
}

@media (min-width: 1024px) {
    /* On smaller desktops, hide some category links to fit */
    @media (max-width: 1150px) {
        .nav-desktop .nav-link:nth-child(6),
        .nav-desktop .nav-link:nth-child(7) {
            display: none;
        }
    }
}

/* Ensure logo doesn't get squished */
.site-logo {
    flex-shrink: 0;
    min-width: 0;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container-narrow {
    max-width: var(--article-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---- Breaking News Ticker ---- */
.ticker-bar {
    height: var(--ticker-height);
    background: var(--rich-black);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 60;
}

[data-theme="dark"] .ticker-bar {
    background: var(--burgundy);
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    background: var(--breaking);
    height: 100%;
    flex-shrink: 0;
}

.ticker-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFFFFF;
    animation: pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.ticker-track {
    display: flex;
    animation: scroll-left 60s linear infinite;
    white-space: nowrap;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 32px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
}

.ticker-item a:hover {
    color: var(--gold);
}

.ticker-separator {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.header-transparent {
    background: transparent;
}

.header-scrolled {
    background: rgba(255, 252, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .header-scrolled {
    background: rgba(17, 17, 17, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.site-logo img {
    height: 36px;
    width: auto;
}

/* ---- Navigation ---- */
.nav-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 4px;
    }
}

.nav-desktop a {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--burgundy);
    background: rgba(127, 29, 29, 0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Icon Button ---- */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.icon-btn:hover {
    background: rgba(127, 29, 29, 0.08);
    color: var(--burgundy);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.75;
}

/* ---- Mobile Menu ---- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    z-index: 101;
    background: var(--card);
    padding: 32px 28px;
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: color var(--duration-fast);
}

.mobile-nav a:hover {
    color: var(--burgundy);
}

/* ---- Search Overlay ---- */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-modal {
    width: 100%;
    max-width: 640px;
    background: var(--card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: translateY(-20px);
    transition: transform var(--duration-normal) var(--ease-out);
}

.search-overlay.active .search-modal {
    transform: translateY(0);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.search-input-wrap svg {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-primary);
    outline: none;
}

.search-input-wrap input::placeholder {
    color: var(--text-muted);
}

.search-results-list {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--duration-fast);
}

.search-result-item:hover {
    background: var(--surface-hover);
}

.search-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

/* ---- Reading Progress Bar ---- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gold);
    z-index: 999;
    width: 0;
    transition: width 100ms linear;
}

/* ---- Hero Section ---- */
.hero-section {
    padding: 48px 0 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 7fr 5fr;
        gap: 28px;
    }
}

.hero-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    min-height: 400px;
}

@media (min-width: 768px) {
    .hero-main {
        min-height: 520px;
    }
}

.hero-main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.hero-main:hover .hero-main-img {
    transform: scale(1.05);
}

.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(17, 17, 17, 0.85) 0%,
        rgba(17, 17, 17, 0.3) 50%,
        transparent 100%
    );
}

.hero-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px;
}

.hero-main-content .text-display {
    color: #FFFFFF;
    margin: 12px 0;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-side-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
}

.hero-side-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border);
}

.hero-side-thumb {
    width: 100px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.hero-side-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

/* ---- Category Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.badge-burgundy {
    background: var(--burgundy);
    color: #FFFFFF;
}

.badge-gold {
    background: var(--gold);
    color: var(--rich-black);
}

.badge-breaking {
    background: var(--breaking);
    color: #FFFFFF;
    animation: badge-flash 2s ease-in-out infinite;
}

@keyframes badge-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.badge-exclusive {
    background: var(--gold);
    color: #1A1A1A;
}

.badge-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
}

/* ---- Trending Strip ---- */
.trending-section {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 40px 0;
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.trending-scroll {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.trending-scroll::-webkit-scrollbar { display: none; }

.trending-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-width: 280px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.trending-rank {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.6;
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.trending-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.4;
}

.trending-title:hover {
    color: var(--burgundy);
}

/* ---- Article Card ---- */
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border);
}

.article-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.article-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.article-card:hover .article-card-img {
    transform: scale(1.05);
}

.article-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.article-card-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* ---- Section Header ---- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
}

.section-title-bar {
    width: 4px;
    height: 28px;
    background: var(--burgundy);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--burgundy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--duration-fast) var(--ease-out);
}

.section-link:hover {
    gap: 10px;
}

.section-link svg {
    width: 16px;
    height: 16px;
}

/* ---- Article Grid ---- */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .article-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .article-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Category Section ---- */
.category-section {
    padding: var(--section-gap) 0;
}

.category-section:nth-child(even) {
    background: var(--surface-hover);
}

[data-theme="dark"] .category-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.category-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .category-featured-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

/* ---- Investigations Section ---- */
.investigations-section {
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--burgundy-dark) 100%);
    padding: var(--section-gap) 0;
    color: #FFFFFF;
}

[data-theme="dark"] .investigations-section {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D1111 100%);
}

.investigations-section .section-title {
    color: #FFFFFF;
}

.investigations-section .section-title-bar {
    background: var(--gold);
}

.investigations-section .article-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.investigations-section .article-card-body {
    color: rgba(255, 255, 255, 0.9);
}

.investigations-section .text-h3 {
    font-family: var(--font-serif);
    color: var(--ivory);
}

.investigations-section .article-card-meta {
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Author Card ---- */
.author-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.author-avatar-sm {
    width: 32px;
    height: 32px;
}

.author-avatar-lg {
    width: 80px;
    height: 80px;
}

/* ---- Article Page ---- */
.article-hero-img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
}

.article-body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 1.6em;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 2.5em 0 1em;
    color: var(--text-primary);
}

.article-body h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    margin: 2em 0 0.8em;
}

.article-body blockquote {
    border-left: 4px solid var(--burgundy);
    padding: 16px 24px;
    margin: 2em 0;
    background: var(--surface-hover);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
    padding-left: 1.5em;
    margin-bottom: 1.6em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body img {
    border-radius: var(--radius-md);
    margin: 2em 0;
}

/* ---- Reactions Bar ---- */
.reactions-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 40px 0;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-out);
}

.reaction-btn:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.reaction-btn.active {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: #FFFFFF;
}

.reaction-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
}

.reaction-count {
    font-weight: 600;
    font-size: 0.82rem;
}

/* ---- Comments ---- */
.comment-section {
    padding-top: 48px;
}

.comment-form-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 40px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--burgundy);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.comment-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-body {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding-left: 46px;
}

.comment-replies {
    padding-left: 46px;
    margin-top: 8px;
}

.comment-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    margin-left: 46px;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--burgundy);
    cursor: pointer;
    background: none;
    border: none;
}

/* ---- Forms (Premium Styled) ---- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.1);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 44px;
}

.form-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    accent-color: var(--burgundy);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
}

.btn-primary {
    background: var(--burgundy);
    color: #FFFFFF;
    border-color: var(--burgundy);
}

.btn-primary:hover {
    background: var(--burgundy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--card);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--rich-black);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
    margin-top: var(--section-gap);
}

[data-theme="dark"] .site-footer {
    background: #0A0A0A;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--duration-fast);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--duration-fast);
}

.footer-social a:hover {
    background: var(--burgundy);
    color: #FFFFFF;
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* ---- Newsletter Box ---- */
.newsletter-box {
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    color: #FFFFFF;
    text-align: center;
    margin: var(--section-gap) 0;
}

.newsletter-box .text-h2 {
    color: #FFFFFF;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 28px auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.6); }
.newsletter-form input:focus { border-color: var(--gold); }

.newsletter-form .btn {
    background: var(--gold);
    color: #1A1A1A;
    border-color: var(--gold);
    font-weight: 600;
}

.newsletter-form .btn:hover {
    background: var(--gold-dark);
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--duration-fast);
}

.pagination a:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
}

.pagination .active {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: #FFFFFF;
}

/* ---- Skeleton Loader ---- */
.skeleton {
    background: linear-gradient(90deg,
        var(--border-light) 25%,
        var(--border) 50%,
        var(--border-light) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; margin-bottom: 12px; width: 80%; }
.skeleton-img { aspect-ratio: 16/10; }

/* ---- Scroll Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Author Page ---- */
.author-profile {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 48px 0;
}

.author-profile-info {
    flex: 1;
}

.author-stats {
    display: flex;
    gap: 32px;
    margin: 20px 0;
}

.author-stat {
    text-align: center;
}

.author-stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--burgundy);
}

.author-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.author-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--duration-fast);
}

.author-social a:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
}

/* ---- Alert / Flash Messages ---- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

[data-theme="dark"] .alert-success {
    background: rgba(22, 101, 52, 0.2);
    border-color: rgba(22, 101, 52, 0.3);
    color: #86EFAC;
}

[data-theme="dark"] .alert-error {
    background: rgba(153, 27, 27, 0.2);
    border-color: rgba(153, 27, 27, 0.3);
    color: #FCA5A5;
}

/* ---- Share Buttons ---- */
.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    transition: all var(--duration-fast);
}

.share-btn:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
    transform: translateY(-2px);
}

.share-btn svg { width: 18px; height: 18px; }

/* ---- Ad Slot ---- */
.ad-slot {
    text-align: center;
    margin: 32px 0;
}

.ad-slot img {
    border-radius: var(--radius-md);
    max-width: 100%;
    margin: 0 auto;
}

.ad-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

/* ---- Responsive Tweaks ---- */
@media (max-width: 640px) {
    :root {
        --section-gap: 64px;
        --gutter: 20px;
    }

    .hero-main {
        min-height: 300px;
    }

    .hero-main-content {
        padding: 24px;
    }

    .author-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-stats {
        justify-content: center;
    }

    .author-social {
        justify-content: center;
    }
}

/* Alpine.js x-cloak — hide until Alpine loads */
[x-cloak] {
    display: none !important;
}

/* Ensure overlays start hidden */
.search-overlay:not(.active),
.mobile-overlay:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.mobile-drawer:not(.active) {
    transform: translateX(100%);
    pointer-events: none;
}

/* ==========================================
   ARTICLE PAGE — AUTHOR BYLINE
   ========================================== */

/* Author card in article header */
.author-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 200ms ease-out;
}

.author-card:hover {
    opacity: 0.85;
}

/* Author avatar in byline — SMALL, ROUND, CONSTRAINED */
.author-card .author-avatar,
.article-body .author-avatar,
.author-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
    background: var(--surface-hover);
    display: block;
}

/* Larger version for author profile page */
.author-avatar-lg {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0;
}

/* Small variant for cards */
.author-avatar-sm {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0;
}

/* Fallback initial when no avatar */
.comment-avatar-placeholder,
.author-avatar-fallback-inline {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    border-radius: 50%;
    background: var(--burgundy);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* =====================================================
   V5 EDITORIAL UX REFINEMENT
   A quieter, clearer hierarchy for the public newsroom.
   ===================================================== */

:root {
    --section-gap: 76px;
    --radius-sm: 7px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --article-width: 740px;
}

.home-edition-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-grid { grid-template-columns: 1fr; gap: 22px; }
.hero-main { border-radius: var(--radius-lg); min-height: 460px; }
.hero-main-content { max-width: 900px; padding: clamp(24px, 4vw, 48px); }
.hero-main-content .text-display { max-width: 850px; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.04; }
.hero-main:hover .hero-main-img { transform: scale(1.018); }
.hero-side { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--border); }
.hero-side-card {
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 16px 0;
    background: transparent;
}
.hero-side-card:hover { transform: none; box-shadow: none; border-color: var(--burgundy); }
.hero-side-card:hover h3, .hero-side-card:hover h4 { color: var(--burgundy); }
.hero-side-thumb { border-radius: 6px; width: 112px; height: 76px; }

@media (min-width: 760px) {
    .hero-side { grid-template-columns: repeat(2, 1fr); column-gap: 26px; }
}
@media (min-width: 1100px) {
    .hero-grid { grid-template-columns: minmax(0, 2.15fr) minmax(320px, .85fr); gap: 34px; }
    .hero-side { display: flex; border-top: 0; }
    .hero-main { min-height: 560px; }
}

.latest-news-section { padding: 34px 0 6px; }
.latest-news-shell { border-top: 3px solid var(--rich-black); }
.latest-news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 14px;
    border-bottom: 1px solid var(--border);
}
.latest-news-heading h2, .archive-header h1 { font-family: var(--font-serif); }
.latest-news-heading h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1; }
.latest-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--burgundy);
    font-family: var(--font-heading);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.latest-news-list { display: grid; grid-template-columns: 1fr; }
.latest-news-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}
.latest-news-item time { color: var(--burgundy); font-family: var(--font-heading); font-size: .72rem; font-weight: 700; }
.latest-news-copy span { color: var(--text-muted); font-family: var(--font-heading); font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.latest-news-copy h3 { margin-top: 3px; font-family: var(--font-heading); font-size: .91rem; line-height: 1.35; }
.latest-news-item svg { color: var(--text-muted); transition: transform 180ms ease, color 180ms ease; }
.latest-news-item:hover h3, .latest-news-item:hover svg { color: var(--burgundy); }
.latest-news-item:hover svg { transform: translateX(3px); }
@media (min-width: 860px) {
    .latest-news-list { grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
}

.article-card { border-radius: var(--radius-md); box-shadow: none; }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.article-card:hover .article-card-img { transform: scale(1.02); }
.article-card-body { padding: 18px; }
.category-section:nth-child(even) { background: transparent; }
.category-section + .category-section { border-top: 1px solid var(--border-light); }
.section-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.45rem, 3vw, 2rem); }
.section-title-bar { width: 3px; height: 24px; }

.article-breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: .72rem;
    font-weight: 600;
}
.article-breadcrumb a:hover { color: var(--burgundy); }
.article-trust-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 15px 0;
    margin: 4px 0 26px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.article-trust-strip span, .article-trust-strip strong { display: block; }
.article-trust-strip span { margin-bottom: 3px; color: var(--text-muted); font-family: var(--font-heading); font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.article-trust-strip strong { font-family: var(--font-heading); font-size: .75rem; font-weight: 600; }
.article-trust-strip .trust-verified strong { color: #15803D; }
.article-hero-img { border-radius: var(--radius-lg); max-height: 630px; }
.article-body { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.08rem, 2vw, 1.18rem); line-height: 1.88; }
.article-body > p:first-child::first-letter {
    float: left;
    margin: .08em .1em 0 0;
    color: var(--burgundy);
    font-family: var(--font-serif);
    font-size: 3.5em;
    line-height: .78;
}
.article-body a { color: var(--burgundy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.2; }

.article-source-note {
    margin: 34px 0 18px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--burgundy);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(127, 29, 29, .045), rgba(229, 192, 123, .055));
}
.article-source-note > span {
    color: var(--burgundy);
    font-family: var(--font-heading);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.article-source-note p {
    margin: 7px 0 0;
    color: var(--text-secondary);
    font-size: .82rem;
    line-height: 1.65;
}
.article-source-note a { color: var(--burgundy); font-weight: 700; text-decoration: underline; }

.latest-archive { padding: 54px 0 84px; }
.archive-header { max-width: 700px; padding-bottom: 28px; margin-bottom: 12px; border-bottom: 3px solid var(--rich-black); }
.archive-header p { margin-top: 10px; color: var(--text-secondary); }
.latest-archive-list { max-width: 980px; }
.latest-archive-item { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.latest-archive-image img { width: 100%; height: 92px; object-fit: cover; border-radius: 6px; }
.archive-story-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--text-muted); font-family: var(--font-heading); font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.archive-story-meta a, .archive-story-meta span { color: var(--burgundy); }
.latest-archive-copy h2 { margin: 7px 0; font-family: var(--font-serif); font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.18; }
.latest-archive-copy h2 a:hover { color: var(--burgundy); }
.latest-archive-copy > p { display: none; color: var(--text-secondary); font-size: .86rem; }
.empty-newsroom { padding: 70px 0; color: var(--text-muted); }
@media (min-width: 700px) {
    .article-trust-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .latest-archive-item { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
    .latest-archive-image img { height: 145px; }
    .latest-archive-copy > p { display: block; }
}

@media (max-width: 640px) {
    :root { --gutter: 18px; --section-gap: 58px; }
    .home-edition-line span:first-child { display: none; }
    .hero-section { padding-top: 24px; }
    .hero-main { min-height: 410px; }
    .hero-main-content .article-card-meta-sep, .hero-main-content .author-avatar-sm { display: none; }
    .latest-news-heading .section-link { font-size: .72rem; }
    .article-trust-strip { gap: 10px; }
    .article-body > p:first-child::first-letter { font-size: 3em; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-main-img, .article-card-img, .latest-news-item svg { transition: none !important; }
    .hero-main:hover .hero-main-img, .article-card:hover .article-card-img { transform: none; }
}

/* =====================================================
   V6 NEWSROOM POLISH
   Mobile clarity, stable ticker geometry and consistent archives.
   ===================================================== */

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.ticker-label {
    position: relative;
    z-index: 2;
}

.ticker-window {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-track {
    flex: 0 0 max-content;
    width: max-content;
    will-change: transform;
}

.site-header.header-transparent {
    background: rgba(255, 252, 247, .94);
    border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .site-header.header-transparent {
    background: rgba(17, 17, 17, .96);
}

.article-print-area > .container-narrow:first-of-type {
    padding-top: 34px !important;
}

.article-print-area > .container-narrow:first-of-type > .text-display {
    max-width: 760px;
    font-weight: 400;
    line-height: 1.06;
}

.article-print-area > .container-narrow:first-of-type > .text-body-lg {
    max-width: 700px;
    line-height: 1.65;
}

.article-trust-strip strong {
    line-height: 1.45;
}

.article-grid {
    align-items: stretch;
}

.article-card-body .text-h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.22;
}

.search-input-wrap:focus-within {
    border-color: var(--burgundy) !important;
    box-shadow: 0 0 0 3px rgba(127, 29, 29, .08);
}

@media (min-width: 1180px) {
    .footer-grid {
        grid-template-columns: minmax(240px, 1.8fr) repeat(4, minmax(120px, 1fr));
        gap: 36px;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 66px;
        --ticker-height: 36px;
    }

    .ticker-label {
        gap: 6px;
        padding: 0 12px;
        font-size: .64rem;
        letter-spacing: .06em;
    }

    .ticker-pulse {
        width: 6px;
        height: 6px;
    }

    .ticker-item {
        padding: 0 20px;
        font-size: .73rem;
    }

    .site-logo img {
        max-width: 178px;
        max-height: 32px;
    }

    .header-actions {
        gap: 2px;
    }

    .header-actions .icon-btn {
        width: 40px;
        height: 40px;
    }

    .article-print-area > .container-narrow:first-of-type {
        padding-top: 24px !important;
    }

    .article-breadcrumb {
        margin-bottom: 18px;
    }

    .article-print-area > .container-narrow:first-of-type > .text-display {
        font-size: clamp(1.85rem, 8.2vw, 2.25rem);
        line-height: 1.08;
        margin-bottom: 16px !important;
    }

    .article-print-area > .container-narrow:first-of-type > .text-body-lg {
        font-size: 1.02rem;
        line-height: 1.62;
        margin-bottom: 20px !important;
    }

    .article-trust-strip {
        margin-bottom: 22px;
    }

    .article-trust-strip strong {
        font-size: .7rem;
    }

    .article-hero-img {
        border-radius: 8px;
    }

    .latest-archive {
        padding-top: 38px;
    }

    .archive-header {
        padding-bottom: 20px;
    }

    .latest-archive-item {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 15px;
        padding: 18px 0;
    }

    .latest-archive-image img {
        height: 78px;
    }

    .latest-archive-copy h2 {
        font-size: 1.08rem;
    }

    .footer-grid {
        gap: 34px 24px;
    }

    .site-footer {
        padding-top: 56px;
    }

    .footer-bottom {
        margin-top: 42px;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none !important;
    }

    .ticker-window {
        overflow-x: auto;
        scrollbar-width: none;
    }
}
