/*
Theme Name: State News Daily
Theme URI: https://statenewsdaily.com
Author: State News Daily Editorial Team
Author URI: https://statenewsdaily.com
Description: High-performance, clean, classical editorial theme engineered specifically for cultural journalism, high E-E-A-T trust scoring, and optimized Google AdSense monetization.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: statenews-daily
Tags: news, magazine, classic-journal, two-columns, custom-header, custom-menu, featured-images, theme-options, translation-ready
*/

:root {
    --primary: #0f172a;       /* Deep Slate Navy */
    --accent-red: #b91c1c;     /* Editorial Crimson */
    --accent-blue: #1d4ed8;    /* Key Takeaways Blue */
    --text-dark: #1e293b;      /* Sharp Charcoal text */
    --text-muted: #475569;     /* High contrast slate (7.58:1 WCAG AAA on white) */
    --bg-light: #f8fafc;       /* Off-white background */
    --border-color: #e2e8f0;   /* Light border */
    --card-bg: #ffffff;
    --font-serif: 'Merriweather', Georgia, serif;
    --font-title: 'Cinzel', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-serif);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.8;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-red);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOP TICKER BAR --- */
.top-bar {
    background-color: var(--primary);
    color: #e2e8f0;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #334155;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    background: var(--accent-red);
    color: #fff;
    padding: 2px 7px;
    font-weight: 700;
    font-size: 10px;
    border-radius: 3px;
    margin-right: 6px;
}

.top-links a {
    margin-left: 14px;
    color: #94a3b8;
}
.top-links a:hover {
    color: #fff;
}

/* --- MAIN HEADER --- */
.main-header {
    background: #fff;
    border-bottom: 3px double var(--primary);
    padding: 24px 0 20px;
    text-align: center;
}

.header-compact {
    padding: 16px 0 14px;
}

.header-masthead-rule {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #0f172a;
    border-bottom: 1px solid #0f172a;
    padding: 6px 4px;
    margin-bottom: 18px;
    font-family: var(--font-sans);
    font-size: 11px;
    color: #475569;
    letter-spacing: 0.5px;
}

.masthead-col {
    display: flex;
    align-items: center;
    gap: 8px;
}

.masthead-motto {
    font-style: italic;
    font-family: var(--font-serif);
    color: #334155;
    font-size: 11.5px;
}

.masthead-meta, .masthead-edition, .masthead-date {
    font-weight: 700;
    color: #0f172a;
}

@media (max-width: 860px) {
    .header-masthead-rule {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .masthead-col {
        justify-content: center;
    }
}

.header-sub {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 0;
}

.site-title {
    font-family: var(--font-title);
    font-size: 50px;
    font-weight: 900;
    letter-spacing: 3.5px;
    color: var(--primary);
    line-height: 1.08;
    margin-bottom: 6px;
}

.site-title a {
    color: var(--primary);
}

.site-tagline {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--accent-red);
    font-weight: 600;
}

/* --- NAVIGATION (REFINED EDITORIAL HEADER) --- */
.main-nav {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 2px solid #0f172a;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 48px;
}

.nav-menu-wrapper {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.nav-menu-wrapper::-webkit-scrollbar {
    display: none;
}

.nav-links, .main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.nav-links li, .main-nav ul li {
    margin: 0;
    padding: 0;
    display: inline-block;
    flex-shrink: 0;
}

.nav-links li a, .main-nav ul li a {
    display: inline-flex;
    align-items: center;
    padding: 14px 12px;
    color: #334155;
    white-space: nowrap;
    position: relative;
    line-height: 20px;
    transition: color 0.15s ease;
}

/* Refined animated underline */
.nav-links li a::after, .main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: var(--accent-red);
    transform: scaleX(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px 2px 0 0;
}

.nav-links li.current-menu-item a,
.main-nav ul li.current-menu-item a {
    color: var(--accent-red);
    font-weight: 700;
}

.nav-links li.current-menu-item a::after,
.main-nav ul li.current-menu-item a::after {
    transform: scaleX(1);
}

.nav-links li a:hover,
.main-nav ul li a:hover {
    color: var(--accent-red);
}

.nav-links li:hover a::after,
.main-nav ul li:hover a::after {
    transform: scaleX(1);
}

/* --- SEARCH BAR DESIGN --- */
.nav-search {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-search-form {
    margin: 0;
    padding: 0;
}

.search-box-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 5px 12px 5px 32px;
    transition: all 0.2s ease;
}

.search-box-wrap:hover {
    border-color: #94a3b8;
}

.search-box-wrap:focus-within {
    background: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.search-icon-svg {
    position: absolute;
    left: 10px;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s ease;
}

.search-box-wrap:focus-within .search-icon-svg {
    color: #0f172a;
}

.search-input-field {
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 12px;
    color: #1e293b;
    outline: none;
    width: 140px;
    transition: width 0.25s ease;
    padding: 1px 0;
}

.search-input-field:focus {
    width: 190px;
}

.search-input-field::placeholder {
    color: #475569; /* 7.58:1 WCAG AAA */
    opacity: 1;
}

/* Fallback for standard WordPress get_search_form() output */
.nav-search form.search-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-search form.search-form label {
    margin: 0;
}

.nav-search form.search-form input.search-field {
    font-family: var(--font-sans);
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 130px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.nav-search form.search-form input.search-field:focus {
    background: #fff;
    border-color: #0f172a;
}

.nav-search form.search-form input.search-submit {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background 0.15s ease;
}

.nav-search form.search-form input.search-submit:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

@media (max-width: 1100px) {
    .nav-links li a, .main-nav ul li a {
        padding: 14px 9px;
        font-size: 12px;
    }
    .search-input-field {
        width: 120px;
    }
    .search-input-field:focus {
        width: 160px;
    }
}

/* --- GOOGLE ADSENSE SLOTS --- */
.adsense-slot {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    margin: 25px 0;
    text-align: center;
    padding: 14px 20px;
    position: relative;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.02);
}

.adsense-slot.has-ad {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.adsense-slot .ad-badge {
    position: absolute;
    top: -10px;
    left: 14px;
    background: #475569;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
}

.adsense-slot .ad-content p {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.adsense-slot .ad-content span {
    font-family: var(--font-sans);
    font-size: 11px;
    color: #64748b;
}

.adsense-slot.leaderboard {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.adsense-slot.sidebar-ad {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- MAIN LAYOUT --- */
.main-layout,
.article-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 35px;
    margin-top: 25px;
    margin-bottom: 50px;
}

/* --- HERO CARD --- */
.hero-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.hero-image {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-card:hover .hero-image img {
    transform: scale(1.02);
}

.category-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--accent-red);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 4px;
}

.hero-body {
    padding: 25px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero-excerpt {
    font-size: 16px;
    color: #475569;
    margin-bottom: 15px;
}

.post-meta {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-muted);
}

/* --- SECTION DIVIDER --- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0 20px;
}

.section-divider h3 {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
    white-space: nowrap;
}

.section-divider .line {
    height: 2px;
    background: var(--primary);
    width: 100%;
}

/* --- ARTICLES GRID --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.post-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-thumb {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #0f172a;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-cat {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-red);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.card-excerpt {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.55;
}

.card-meta {
    font-family: var(--font-sans);
    font-size: 11px;
    color: #475569;
    font-weight: 500;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

/* --- SIDEBAR --- */
.content-sidebar,
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 22px;
}

.widget-title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.author-widget .author-info {
    text-align: center;
}

.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--border-color);
}

.author-widget h5 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}

.author-role {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: 10px;
}

.author-bio {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.popular-list {
    list-style: none;
}

.popular-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.popular-list li:last-child {
    border-bottom: none;
}

.popular-list .rank {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 800;
    color: #475569;
    line-height: 1;
}

.popular-list h6 {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 3px;
}

.popular-list .meta {
    font-family: var(--font-sans);
    font-size: 11px;
    color: #475569;
    font-weight: 500;
}

.legal-widget p {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #334155;
    line-height: 1.6;
}

/* --- ARTICLE SINGLE STYLING --- */
.article-main {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 35px 40px;
}

.breadcrumbs {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.article-category {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent-red);
    text-transform: uppercase;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    margin: 8px 0 14px;
}

.article-subtitle {
    font-size: 18px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.author-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-mini-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-family: var(--font-sans);
    font-size: 14px;
    color: #0f172a;
    display: block;
}

.author-credentials {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.publish-date {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-muted);
}

/* KEY TAKEAWAYS (MÔ PHỎNG TOOL BÁO CHÍ) */
.key-takeaways {
    background: #f0f7ff;
    border-left: 4px solid var(--accent-blue);
    border-radius: 6px;
    padding: 18px 22px;
    margin: 25px 0;
    font-family: var(--font-sans);
}

.takeaways-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.key-takeaways ul {
    margin-left: 20px;
    font-size: 14.5px;
    color: #1e293b;
    line-height: 1.6;
}

.key-takeaways li {
    margin-bottom: 6px;
}

/* DROP CAP */
.drop-cap {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 58px;
    font-weight: 900;
    float: left;
    line-height: 0.85;
    margin-right: 10px;
    margin-top: 6px;
    color: var(--primary);
}

.article-body p {
    margin-bottom: 22px;
    font-size: 17.5px;
}

.article-body h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 35px 0 15px;
    line-height: 1.3;
}

/* ARTICLE FIGURE */
.article-figure, .wp-block-image {
    margin: 30px 0;
    text-align: center;
}

.article-figure img, .wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-figure figcaption {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

/* FILM DETAILS STRUCTURED DATA */
.film-details-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 35px 0;
}

.details-heading {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 14px;
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 8px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 14px;
}

.details-table th {
    width: 25%;
    text-align: left;
    padding: 8px 10px;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.details-table td {
    padding: 8px 10px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.details-table ul {
    list-style: none;
}

.details-table ul li {
    margin-bottom: 4px;
}

/* PULL QUOTE */
.article-quote, blockquote {
    background: #fdfbf7;
    border-left: 5px solid var(--accent-red);
    padding: 22px 28px;
    margin: 35px 0;
    font-style: italic;
    font-size: 18px;
    color: #334155;
    border-radius: 0 6px 6px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.02);
}

.article-quote cite {
    display: block;
    margin-top: 10px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: #64748b;
    font-style: normal;
    font-weight: 600;
}

/* VIDEO EMBED */
.video-embed-container, .responsive-embed {
    margin: 35px 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-title {
    background: #1e293b;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 12px;
    padding: 10px 15px;
    letter-spacing: 0.5px;
}

.responsive-video iframe, .responsive-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
}

.video-caption {
    display: block;
    background: #1e293b;
    color: #94a3b8;
    font-family: var(--font-sans);
    font-size: 11px;
    padding: 6px 15px;
}

/* EDITOR'S NOTE */
.editors-note {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 30px 0;
    font-family: var(--font-sans);
    font-size: 13.5px;
    color: #991b1b;
}

.editors-note strong {
    color: var(--accent-red);
    letter-spacing: 0.5px;
    margin-right: 6px;
}

/* AUTHOR BIO BOX */
.author-bio-box {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 22px;
    margin: 40px 0 30px;
    align-items: center;
}

.bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bio-content h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.bio-content p {
    font-family: var(--font-sans);
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
}

/* RELATED ESSAYS */
.related-essays {
    border-top: 2px solid var(--primary);
    padding-top: 25px;
    margin-top: 35px;
}

.related-essays h3 {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.related-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.related-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.related-card h5 {
    font-family: var(--font-serif);
    font-size: 14.5px;
    padding: 12px;
    line-height: 1.4;
}

/* PAGINATION */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 35px 0;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
}

.pagination .current, .pagination .page-current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* --- FOOTER --- */
.main-footer {
    background: var(--primary);
    color: #e2e8f0;
    padding: 50px 0 30px;
    font-family: var(--font-sans);
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 26px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: #fff;
}

.footer-col h4 {
    font-size: 13px;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #cbd5e1;
}

.footer-col ul li a:hover {
    color: #fff;
}

.copyright {
    margin-top: 20px;
    font-size: 11px;
    color: #64748b;
}

/* --- RESPONSIVE MOBILE OPTIMIZATION --- */
@media (max-width: 900px) {
    .main-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .site-title {
        font-size: 34px;
    }
    .hero-title {
        font-size: 22px;
    }
    .article-title {
        font-size: 26px;
    }
    .article-main {
        padding: 20px;
    }
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- TOC & TRUST BADGES --- */
.header-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.trust-badge {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.publish-meta {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-muted);
}

.article-toc-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    padding: 18px 22px;
    margin: 28px 0;
}

.toc-title {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 10px;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px 18px;
}

.toc-list li a {
    font-family: var(--font-sans);
    font-size: 13.5px;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.toc-list li a::before {
    content: "§";
    color: var(--accent-red);
    font-weight: bold;
    margin-right: 6px;
}

.toc-list li a:hover {
    color: var(--accent-red);
}

/* =============================================================
   RESPONSIVE BREAKPOINTS - 768px TABLET & 480px MOBILE
   Phase 2 Professional Upgrade v1.2.0
============================================================= */

@media (max-width: 768px) {
    body { font-size: 16px; }
    .site-title { font-size: 28px; letter-spacing: 1.5px; }
    .site-tagline { font-size: 11px; letter-spacing: 2px; }
    .main-header { padding: 20px 0 14px; }
    .hero-image { height: 240px; }
    .hero-title { font-size: 20px; }
    .hero-body { padding: 18px; }
    .article-title { font-size: 22px; }
    .article-main { padding: 18px 16px; }
    .article-body p { font-size: 16.5px; }
    .article-body h3 { font-size: 21px; }
    .article-quote, blockquote { font-size: 16px; padding: 16px 18px; }
    .author-bio-box { flex-direction: column; text-align: center; }
    .bio-avatar { margin: 0 auto; }
    .related-grid { grid-template-columns: 1fr; }
    .article-meta-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
    .articles-grid { grid-template-columns: 1fr; gap: 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-logo { font-size: 22px; }
    .drop-cap { font-size: 46px; }
    .article-toc-box { padding: 14px 16px; }
    .key-takeaways { padding: 14px 16px; }
    .film-details-box { padding: 14px 16px; }
}

@media (max-width: 480px) {
    body { font-size: 15.5px; }
    .container { padding: 0 14px; }
    .site-title { font-size: 22px; letter-spacing: 1px; }
    .hero-image { height: 190px; }
    .hero-title { font-size: 18px; }
    .hero-body { padding: 14px; }
    .hero-excerpt { font-size: 14px; }
    .article-title { font-size: 20px; line-height: 1.3; }
    .article-subtitle { font-size: 15px; }
    .article-main { padding: 14px 12px; border-radius: 0; border-left: none; border-right: none; }
    .article-body p { font-size: 16px; margin-bottom: 18px; }
    .article-body h3 { font-size: 19px; margin: 25px 0 12px; }
    .card-thumb { height: 160px; }
    .card-title { font-size: 16px; }
    .drop-cap { font-size: 40px; }
    .nav-links li a, .main-nav ul li a { padding: 12px 8px; font-size: 11px; }
    .search-input-field { width: 80px; }
    .search-input-field:focus { width: 120px; }
    .main-layout, .article-layout { gap: 20px; }
    .article-toc-box ol { padding-left: 18px; }
    .key-takeaways ul { padding-left: 16px; font-size: 14px; }
    .pagination a, .pagination span { padding: 6px 10px; font-size: 12px; }
    .author-bio-box { padding: 14px; }
    .details-table th, .details-table td { font-size: 13px; padding: 6px 8px; }
    .trust-badge { font-size: 10px; }
    .top-bar { display: none; }
}

@media print {
    .main-nav, .top-bar, .content-sidebar, .article-sidebar,
    .adsense-slot, .related-essays, .main-footer, .pagination { display: none !important; }
    .article-layout, .article-main { grid-template-columns: 1fr; border: none; padding: 0; box-shadow: none; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
}


/* =========================================================
   REMEDIATION V1.3.0 FIXES: SELECTORS & RESPONSIVE GUARDS
   ========================================================= */

/* FIX-08: Screen reader text helper */
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* FIX-05: Synchronize Video Responsive Embed Selectors */
.video-responsive-container,
.responsive-video,
.responsive-embed,
.archival-media-unit {
    position: relative;
    width: 100%;
    margin: 25px 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}

.video-responsive-container iframe,
.responsive-video iframe,
.responsive-embed iframe,
.archival-media-unit iframe {
    display: block;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border: 0;
}

/* FIX-05: Film Specification Sheets & Tables */
.film-spec-sheet,
.film-details-box {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 25px 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
}

.spec-table,
.details-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 280px;
}

.spec-table th, .spec-table td,
.details-table th, .details-table td {
    padding: 10px 14px;
    font-size: 13.5px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.spec-table th, .details-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--primary);
    width: 32%;
}

/* FIX-05: TOC Box Overflow Guard on Small Mobile Screens (320px) */
.article-toc-box {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .article-main {
        padding: 20px 16px !important;
    }
    .article-title {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }
    .articles-grid {
        grid-template-columns: 1fr !important;
    }
}

/* FIX-08: WCAG AA Compliant Search Placeholder & Input Contrast */
.search-form input[type="search"],
.search-field {
    color: #0f172a !important; /* Contrast ratio 15.4:1 against white */
    background-color: #ffffff !important;
    border: 1px solid #64748b !important;
}

.search-form input[type="search"]::placeholder,
.search-field::placeholder {
    color: #475569 !important; /* Contrast ratio 7.0:1 - Exceeds WCAG AA 4.5:1 requirement */
    opacity: 1 !important;
}

.search-form input[type="search"]::-webkit-input-placeholder,
.search-field::-webkit-input-placeholder {
    color: #475569 !important;
    opacity: 1 !important;
}

.search-form input[type="search"]::-moz-placeholder,
.search-field::-moz-placeholder {
    color: #475569 !important;
    opacity: 1 !important;
}

/* FIX-05 / RESPONSIVE: Multi-breakpoint layout guards (320px, 390px, 1280px) */
@media (max-width: 320px) {
    body {
        font-size: 15px;
    }
    .header-branding .site-title {
        font-size: 18px !important;
    }
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .article-header h1 {
        font-size: 20px !important;
    }
    .spec-table th, .spec-table td {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}

@media (min-width: 321px) and (max-width: 390px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .article-header h1 {
        font-size: 22px !important;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1240px;
    }
    .article-layout {
        grid-template-columns: 1fr 340px;
        gap: 40px;
    }
}

/* ================================================================
 * NEW YORK TIMES BROADSHEET EDITORIAL ENHANCEMENTS
 * ================================================================ */

/* --- BROADSHEET ASYMMETRIC LEAD HERO --- */
.hero-broadsheet {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 36px;
    background: #ffffff;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 35px;
    margin-bottom: 40px;
    align-items: start;
}

.hero-broadsheet-lead {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.kicker-wrap, .header-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: var(--font-sans);
}

.nyt-kicker {
    color: var(--accent-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.kicker-sep {
    color: #94a3b8;
    font-size: 12px;
}

.kicker-topic {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #334155;
    letter-spacing: 0.8px;
}

.hero-broadsheet .hero-title {
    font-family: var(--font-title);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.3px;
    color: var(--primary);
    margin-bottom: 14px;
}

.hero-broadsheet .hero-title a:hover {
    color: var(--accent-red);
}

.hero-deck {
    font-family: var(--font-serif);
    font-size: 16.5px;
    line-height: 1.5;
    font-style: italic;
    color: #334155;
    margin-bottom: 16px;
    border-left: 3px solid var(--accent-red);
    padding-left: 12px;
}

.broadsheet-meta {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: #475569;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.broadsheet-meta .author a {
    font-weight: 700;
    color: #0f172a;
}

.hero-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 18px;
}

.hero-read-more {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.hero-read-more:hover {
    color: var(--primary);
}

.hero-broadsheet-media {
    display: flex;
    flex-direction: column;
}

.hero-image-link {
    display: block;
    overflow: hidden;
    border-radius: 3px;
    background: #0f172a;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.hero-image-link img {
    transition: transform 0.4s ease;
    display: block;
}

.hero-image-link:hover img {
    transform: scale(1.02);
}

.hero-caption {
    font-family: var(--font-sans);
    font-size: 11px;
    line-height: 1.5;
    color: #475569;
    margin-top: 8px;
    font-style: italic;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}

@media (max-width: 900px) {
    .hero-broadsheet {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* --- BROADSHEET SECTION DIVIDER --- */
.broadsheet-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0 25px;
}

.broadsheet-line {
    flex: 1;
    height: 1px;
    background: #cbd5e1;
    border-top: 1px solid #0f172a;
}

.broadsheet-heading {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0f172a;
    white-space: nowrap;
}

/* --- BROADSHEET SECONDARY GRID --- */
.broadsheet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 35px;
}

.broadsheet-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.broadsheet-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* --- ARTICLE PAGE NYT FEATURES --- */
.article-deck {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.5;
    color: #334155;
    font-style: italic;
    margin-top: 12px;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 3px solid var(--accent-red);
}

.archive-stamp {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- AUTHENTIC NYTIMES 3-LINE DROP CAP --- */
.article-body > p:first-of-type::first-letter,
.article-body .drop-cap-p::first-letter {
    font-family: var(--font-title);
    float: left;
    font-size: 3.8rem;
    line-height: 0.82;
    padding-top: 4px;
    padding-right: 12px;
    padding-bottom: 2px;
    color: #0f172a;
    font-weight: 900;
}

/* --- EDITORIAL PULLQUOTE STYLING --- */
.editorial-pullquote {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.6;
    font-style: italic;
    color: #0f172a;
    border-top: 2px solid #0f172a;
    border-bottom: 1px solid #cbd5e1;
    padding: 24px 20px;
    margin: 36px 0;
    text-align: center;
    background: #fafaf9;
}

/* --- POST NAVIGATION BROADSHEET --- */
.post-navigation-broadsheet {
    margin: 36px 0 32px 0;
    padding: 22px 0;
    border-top: 2px solid #0f172a;
    border-bottom: 1px solid #cbd5e1;
}
.post-navigation-broadsheet .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
}
.post-navigation-broadsheet .nav-previous,
.post-navigation-broadsheet .nav-next {
    flex: 1;
}
.post-navigation-broadsheet .nav-next {
    text-align: right;
}
.post-navigation-broadsheet .nav-divider {
    width: 1px;
    background-color: #cbd5e1;
}
.post-navigation-broadsheet a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease-in-out;
}
.post-navigation-broadsheet a:hover .nav-title {
    color: #991b1b;
}
.post-navigation-broadsheet .nav-meta {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 5px;
}
.post-navigation-broadsheet .nav-title {
    display: block;
    font-family: var(--font-title);
    font-size: 1.05rem;
    line-height: 1.35;
    color: #0f172a;
    font-weight: 600;
}
@media (max-width: 640px) {
    .post-navigation-broadsheet .nav-links {
        flex-direction: column;
        gap: 16px;
    }
    .post-navigation-broadsheet .nav-next {
        text-align: left;
    }
    .post-navigation-broadsheet .nav-divider {
        display: none;
    }
}

/* --- IN-ARTICLE AD STYLING --- */
.in-article-ad-container {
    margin: 36px 0;
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    background: #fafaf9;
    text-align: center;
}
.ad-label-broadsheet {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 8px;
}

/* --- MOBILE "ANSWER-FIRST" & COLLAPSIBLE DOSSIER --- */
.direct-answer-card {
    background: #f8fafc;
    border-left: 4px solid #991b1b;
    padding: 14px 18px;
    margin: 18px 0 22px 0;
    border-radius: 0 4px 4px 0;
}
.direct-answer-tag {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #991b1b;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.direct-answer-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.55;
    color: #1e293b;
    margin: 0;
    font-style: italic;
}

details.article-toc-box summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}
details.article-toc-box summary::-webkit-details-marker {
    display: none;
}
details.article-toc-box summary .toc-title {
    margin-bottom: 0;
}
details.article-toc-box[open] summary .toc-title {
    margin-bottom: 12px;
}

/* HIDE LEADERBOARD ON MOBILE (<768px) TO PROTECT FIRST SCREEN VIEWPORT */
@media (max-width: 767px) {
    .desktop-only-ad,
    .adsense-slot.leaderboard {
        display: none !important;
    }
    .direct-answer-card {
        padding: 12px 14px;
        margin: 14px 0 18px 0;
    }
}

