/* ================================================================
   Washington Reporter — Main Stylesheet
   Extracted from client HTML mockups, Feb 2026
   ================================================================ */

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Design Tokens ── */
:root {
    --navy: #1B2A4A;
    --red: #C4302B;
    --red-dark: #A52522;
    --white: #FFFFFF;
    --off-white: #F7F8FA;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);

    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1100px;
}

html { scroll-behavior: smooth; }

html {
    background: var(--gray-900);
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.site-main {
    padding-top: 64px; /* nav height */
    flex: 1;
}

/* ── WP Admin Bar offset ── */
.admin-bar .site-nav { top: 32px; }
.admin-bar .site-main { padding-top: 96px; } /* 64 nav + 32 admin bar */
@media (max-width: 782px) {
    .admin-bar .site-nav { top: 46px; }
    .admin-bar .site-main { padding-top: 110px; } /* 64 nav + 46 admin bar */
}

/* ── Navigation ── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s ease;
}

.site-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    text-decoration: none;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.nav-logo-accent { color: var(--red); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover { color: var(--navy); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--red);
    transition: width 0.2s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
    background: var(--red-dark) !important;
    transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    position: relative;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    position: absolute;
    left: 7px;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.mobile-toggle span:nth-child(1) { top: 9px; }
.mobile-toggle span:nth-child(2) { top: 17px; }
.mobile-toggle span:nth-child(3) { top: 25px; }

.mobile-toggle.active span:nth-child(1) {
    top: 17px;
    transform: rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    top: 17px;
    transform: rotate(-45deg);
}

/* ── Breaking Banner ── */
.breaking {
    background: var(--navy);
    color: var(--white);
    padding: 0.6rem 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.breaking-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breaking-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Section Labels ── */
.label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
}

/* ── Section Headings ── */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-head h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--navy);
}

.see-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
}

.see-all:hover { text-decoration: underline; }

/* ── Hero Story ── */
.hero {
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-image {
    border-radius: 12px;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-100);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content .label { margin-bottom: 0.75rem; }

.hero h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero h2 a { color: inherit; }
.hero h2 a:hover { color: var(--red-dark); }

.hero-excerpt {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.hero-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.hero-meta span + span::before {
    content: '·';
    margin: 0 0.5rem;
}

/* ── Story Cards (Latest Stories grid) ── */
.latest {
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.story-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.story-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-100);
}

.story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-body {
    padding: 1.25rem;
}

.story-body .label { margin-bottom: 0.5rem; }

.story-body h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.story-body h3 a { color: inherit; }
.story-body h3 a:hover { color: var(--red); }

.story-body p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.story-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ── Stories Grid — 2 Column Variant ── */
.stories-grid--2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
}

/* ── Newsletter Card ── */
a.newsletter-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.newsletter-card .story-thumb {
    aspect-ratio: 16/5;
}

.newsletter-card .story-thumb {
    position: relative;
}

.newsletter-card .story-thumb > img,
.newsletter-card .story-thumb > .fallback-thumb {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.newsletter-card:hover .story-thumb > img,
.newsletter-card:hover .story-thumb > .fallback-thumb {
    opacity: 1;
}

.newsletter-card .story-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--navy);
    opacity: 0.55;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.newsletter-card:hover .story-thumb::after {
    opacity: 0.15;
}

/* Disable story-thumb overlay when triptych is present (panels have their own) */
.newsletter-card .story-thumb:has(.story-thumb__triptych)::after {
    display: none;
}

.newsletter-card .story-thumb img {
    object-position: bottom;
}

.story-thumb__triptych {
    display: flex;
    width: 100%;
    height: 100%;
    background: var(--navy);
}

.story-thumb__triptych-panel {
    min-width: 0;
    overflow: hidden;
    position: relative;
    flex: 1 1 36%;
    margin-left: -3%;
}

.story-thumb__triptych-panel:first-child {
    margin-left: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
    z-index: 3;
}

.story-thumb__triptych-panel:nth-child(2) {
    clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
    z-index: 2;
}

.story-thumb__triptych-panel:last-child {
    clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

.story-thumb__triptych-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--navy);
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.newsletter-card:hover .story-thumb__triptych-panel::after {
    opacity: 0.15;
}

.story-thumb__triptych-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.newsletter-card:hover .story-thumb__triptych-panel img {
    opacity: 1;
}

.newsletter-card .story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
}

.newsletter-card .story-body {
    display: flex;
    flex-direction: column;
}

.newsletter-card .story-body .label {
    align-self: flex-start;
}

.newsletter-card__issue {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsletter-card__cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
}

.newsletter-card:hover h3 {
    color: var(--red);
}

.newsletter-card:hover .newsletter-card__cta {
    text-decoration: underline;
}

/* ── Special Edition Newsletter Card ── */

.newsletter-card--special .story-thumb__triptych {
    background: var(--navy);
}

.newsletter-card--special .story-thumb__triptych-panel::after {
    display: none;
}

.newsletter-card--special .story-thumb__triptych-panel img {
    opacity: 1;
}

.newsletter-card--special .story-thumb::after {
    display: none;
}

.newsletter-card--special .story-thumb > img,
.newsletter-card--special .story-thumb > .fallback-thumb {
    opacity: 1;
}

.newsletter-card--special {
    background: var(--navy);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.newsletter-card--special:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-card--special .story-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.newsletter-card--special .label {
    display: inline-block;
    background: var(--white);
    color: var(--red);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 4px;
}

.newsletter-card--special h3 {
    color: var(--white);
}

.newsletter-card--special:hover h3 {
    color: rgba(255, 255, 255, 0.85);
}

.newsletter-card--special .newsletter-card__issue,
.newsletter-card--special .story-body p {
    color: rgba(255, 255, 255, 0.65);
}

.newsletter-card--special .story-meta span {
    color: rgba(255, 255, 255, 0.45);
}

.newsletter-card--special .newsletter-card__cta {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.45rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.newsletter-card--special:hover .newsletter-card__cta {
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
}

.no-results {
    padding: 3rem 0;
    text-align: center;
    color: var(--gray-500);
}

/* ── Two Column Layout ── */
.two-col {
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
}

/* ── Story List Items ── */
.section-block { margin-bottom: 3rem; }
.section-block:last-child { margin-bottom: 0; }

.story-list-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-200);
    align-items: flex-start;
}

.story-list-item:last-child { border-bottom: none; }

.story-list-thumb {
    width: 120px; height: 80px;
    background: var(--gray-100);
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
}

.story-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-list-content h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.story-list-content h4 a { color: inherit; }
.story-list-content h4 a:hover { color: var(--red); }

.story-list-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 0.35rem;
}

/* ── Sidebar ── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-card h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.sidebar-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--red); }

.sidebar-link .ts {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
    margin-top: 0.2rem;
}

/* Newsletter signup */
.newsletter-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
}

.newsletter-form button {
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover { background: var(--red-dark); }

/* Ad placeholder */
.ad-placeholder {
    border-radius: 12px;
    overflow: hidden;
}

.ad-placeholder a { display: block; }
.ad-placeholder img { width: 100%; height: auto; }

.ad-placeholder--empty {
    background: var(--gray-100);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Opinion Banner ── */
.opinion-banner {
    background: var(--off-white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 3rem 0;
}

.opinion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.opinion-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.opinion-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.opinion-card h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.opinion-card h4 a { color: inherit; }
.opinion-card h4 a:hover { color: var(--red); }

.opinion-card .author {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ── Article Template ── */
.breadcrumb {
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--navy); }

.breadcrumb .sep {
    margin: 0 0.4rem;
    color: var(--gray-300);
}

.article-header { margin-bottom: 2rem; }

.article-header h1 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.article-header .sub-headline {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.article-header .sub-headline p {
    margin-bottom: 0.75em;
}

.article-header .sub-headline p:last-child {
    margin-bottom: 0;
}

.byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.byline-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.byline-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.byline-info .byline-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.byline-info .byline-name a { color: inherit; }
.byline-info .byline-name a:hover { color: var(--red); }

.byline-info .byline-date {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.share-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.share-btn:hover {
    background: var(--navy);
    color: var(--white);
}

/* Featured image */
.featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: var(--gray-100);
}

.featured-image img {
    width: 100%;
    height: auto;
}

.image-caption {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
}

/* Article body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--navy);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover { color: var(--red-dark); }

/* Pull quotes */
.pull-quote {
    border-left: 4px solid var(--red);
    padding: 1.5rem 0 1.5rem 2rem;
    margin: 2rem 0;
}

.pull-quote p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 0.5rem !important;
}

.pull-quote-attr {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    font-style: normal;
}

/* Comments */
.comments {
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
    margin-top: 2rem;
}

.comments h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.comments p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.comments a { color: var(--red); }
.comments a:hover { text-decoration: underline; }

/* Author box (sidebar) */
.author-box {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.author-box-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    overflow: hidden;
}

.author-box-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.author-box-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.author-box-bio {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* Read Next */
.read-next {
    border-top: 1px solid var(--gray-200);
    padding: 3rem 0;
    margin-top: 2rem;
}

.read-next h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.read-next-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.read-next-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.read-next-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.read-next-card h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.read-next-card h4 a { color: inherit; }
.read-next-card h4 a:hover { color: var(--red); }

.read-next-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* ── Footer ── */
.site-footer {
    background: var(--gray-900);
    padding: 2.5rem 2rem;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* ── Site Search (pre-footer) ── */
.site-search {
    background: var(--off-white);
    padding: 3.5rem 0;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.site-search__title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.site-search__form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.site-search__input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.site-search__input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 2px rgba(27, 42, 74, 0.15);
}

.site-search__button {
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.site-search__button:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

/* ── Archive / Category Pages ── */
.archive-header {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.archive-header h1 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--navy);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 3rem 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.pagination .current {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ── Load More ── */
.load-more-wrap {
    text-align: center;
    padding: 2rem 0 3rem;
}

.load-more-btn {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--navy);
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.load-more-btn:hover {
    background: var(--navy);
    color: var(--white);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Gravity Forms in Sidebar ── */
.sidebar-card--gf .gform_wrapper .gform_heading {
    display: none;
}

.sidebar-card--gf .gform_wrapper .gfield {
    margin-bottom: 0;
}

.sidebar-card--gf .gform_wrapper .gform_fields {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.sidebar-card--gf .gform_wrapper .gfield:not(.gfield--type-html):not(.gfield--type-hidden) {
    flex: 1;
}

.sidebar-card--gf .gform_wrapper .gfield_label {
    display: none;
}

.sidebar-card--gf .gform_wrapper input[type="text"],
.sidebar-card--gf .gform_wrapper input[type="email"] {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
}

.sidebar-card--gf .gform_wrapper .gform_footer {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.sidebar-card--gf .gform_wrapper input[type="submit"],
.sidebar-card--gf .gform_wrapper .gform_button,
.sidebar-card--gf .gform_wrapper button[type="submit"] {
    width: auto;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ── Subscribe Modal ── */
.subscribe-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.subscribe-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.subscribe-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 42, 74, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.subscribe-modal__card {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s ease;
}

.subscribe-modal.is-open .subscribe-modal__card {
    transform: translateY(0) scale(1);
}

.subscribe-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-modal__close:hover {
    color: var(--gray-800);
    background: var(--gray-100);
}

.subscribe-modal__title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}

.subscribe-modal__text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* ── Imported Newsletter (Substack) ── */

.imported-newsletter p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.imported-newsletter h1 {
    font-size: 1.6rem;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 900;
    color: var(--navy);
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    line-height: 1.3;
}

.imported-newsletter h1:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.imported-newsletter h2 {
    font-size: 1.3rem;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.imported-newsletter h4 {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.imported-newsletter h5 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-600);
}

.imported-newsletter ol,
.imported-newsletter ul {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.imported-newsletter li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.imported-newsletter li p {
    margin-bottom: 0.25rem;
}

/* Pullquote / sponsor blocks */
.imported-newsletter .pullquote {
    background: var(--off-white);
    border-left: 4px solid var(--red);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.imported-newsletter .pullquote h5 {
    margin-bottom: 0;
}

/* Images */
.imported-newsletter .captioned-image-container {
    margin: 1.5rem 0;
}

.imported-newsletter .captioned-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.imported-newsletter .image-caption {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Substack buttons → site-styled links */
.imported-newsletter .button-wrapper {
    margin: 1.25rem 0 2rem;
    text-align: right;
}

.imported-newsletter .button-wrapper .button {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.imported-newsletter .button-wrapper .button:hover {
    text-decoration: underline;
}

.imported-newsletter .button-wrapper .button span::after {
    content: ' →';
}

/* Code tags (used for ad copy in Substack imports) */
.imported-newsletter code {
    font-family: inherit;
    font-size: inherit;
    background: none;
    padding: 0;
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Hide Substack UI cruft */
.imported-newsletter .image-link-expand,
.imported-newsletter .pencraft {
    display: none;
}

/* ── Animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .stories-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .opinion-grid { grid-template-columns: 1fr; }
    .read-next-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        gap: 1rem;
    }

    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links { flex-wrap: wrap; justify-content: center; }
    .newsletter-form { flex-direction: column; }
    .site-search__form { flex-direction: column; }
    .site-search__title { font-size: 1.2rem; }
    .stories-grid--2col { grid-template-columns: 1fr; }
    .subscribe-modal { padding: 1rem; }
    .subscribe-modal__card { padding: 2rem 1.5rem; }
    .subscribe-modal__title { font-size: 1.2rem; }
    .hero h2 { font-size: 1.6rem; }
    .article-header h1 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .story-list-thumb { width: 90px; height: 60px; }
}
