/*
Theme Name: Yoruba Times Custom v2
Theme URI: https://theyorubatimes.com
Author: The Yoruba Times Team
Author URI: https://theyorubatimes.com
Description: Visegrad24-inspired modern news theme for The Yoruba Times — clean, image-forward journalism layout. v2.1 fixes empty homepage (front-page.php).
Version: 2.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yorubatimes-custom
*/

/* ==========================================================================
   Visegrad24-style homepage (v- prefix)
   ========================================================================== */
.v-home { padding-bottom: 24px; }

.v-hero { margin-bottom: 8px; }
.v-hero-link { display: block; color: inherit; }
.v-hero-media {
    position: relative;
    min-height: clamp(380px, 56vw, 620px);
    background: #0b0f19;
    overflow: hidden;
}
.v-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v-hero-img--empty {
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #7f1d1d 140%);
}
.v-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 10%, rgba(0,0,0,.78) 100%);
}
.v-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(380px, 56vw, 620px);
    padding-top: 48px;
    padding-bottom: clamp(28px, 5vw, 52px);
    color: #fff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.v-hero-title {
    font-size: clamp(30px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 800;
    margin: 14px 0 14px;
    max-width: 18ch;
}
.v-hero-dek {
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.55;
    color: rgba(255,255,255,.88);
    max-width: 58ch;
    margin-bottom: 16px;
}

.v-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.v-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.v-tags--on-dark .v-tag {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.28);
    color: #fff;
}

.v-byline {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-top: auto;
    padding-top: 10px;
}
.v-byline--on-dark {
    color: rgba(255,255,255,.85);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}
.v-sep { opacity: .55; }

.v-section {
    padding-top: 36px;
}
.v-section--tight { padding-top: 28px; padding-bottom: 0; }
.v-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.v-section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.v-section-more {
    font-size: 13px;
    font-weight: 650;
    color: #b91c1c;
    white-space: nowrap;
}
.v-section-more:hover { text-decoration: underline; }

.v-grid {
    display: grid;
    gap: 22px;
}
.v-grid--3 { grid-template-columns: repeat(3, 1fr); }
.v-grid--4 { grid-template-columns: repeat(4, 1fr); }

.v-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
}
.v-card:hover {
    transform: translateY(-3px);
    border-color: #d1d5db;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 28px rgba(0,0,0,.08);
}
.v-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}
.v-card-media {
    aspect-ratio: 16 / 10;
    background: #e5e7eb;
    overflow: hidden;
}
.v-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.v-card:hover .v-card-media img { transform: scale(1.04); }
.v-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827, #374151);
    color: rgba(255,255,255,.35);
    font-size: 42px;
    font-weight: 800;
}
.v-card-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.v-card-title {
    font-size: 17px;
    line-height: 1.28;
    font-weight: 750;
    letter-spacing: -.015em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.v-card:hover .v-card-title { color: #b91c1c; }
.v-card-dek {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}
.v-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    font-weight: 650;
    color: #1f2937;
    transition: .15s ease;
}
.v-chip:hover {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.v-empty {
    padding: 48px 0;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
}

@media (max-width: 1100px) {
    .v-grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .v-grid--3,
    .v-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .v-hero-title { max-width: none; }
}
@media (max-width: 640px) {
    .v-grid--3,
    .v-grid--4 { grid-template-columns: 1fr; }
    .v-hero-media,
    .v-hero-content { min-height: 440px; }
}

/* ==========================================================================
   Design tokens (inspired by Visegrad24: black/white, clean sans, image-first)
   ========================================================================== */
:root {
    --bg: #ffffff;
    --bg-soft: #f6f7f8;
    --ink: #030712;
    --ink-2: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --accent: #b91c1c;        /* deep red — action / news */
    --accent-hover: #991b1b;
    --donate: #111827;        /* V24-like dark donate */
    --donate-hover: #000;
    --gold: #ca8a04;          /* optional Yoruba gold accent */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
    --container: 1200px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; }

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: .2s ease;
    white-space: nowrap;
    background: transparent;
    color: var(--ink);
}

.btn-ghost {
    border-color: var(--line-strong);
    background: #fff;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-soft); }

.btn-donate {
    background: var(--donate);
    color: #fff;
    border-color: var(--donate);
}
.btn-donate:hover { background: var(--donate-hover); color: #fff; }

.btn-dark {
    background: var(--ink);
    color: #fff;
}
.btn-dark:hover { background: #111; color: #fff; }

.btn-outline-light {
    border-color: rgba(255,255,255,.45);
    color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

.btn-lg { padding: 14px 26px; font-size: 14px; }
.btn-block { width: 100%; }

.icon-btn {
    width: 40px; height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    transition: .2s ease;
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--line-strong); }

/* ==========================================================================
   Utility bar + Header (V24 clean white)
   ========================================================================== */
.utility-bar {
    background: var(--ink);
    color: #cfd1d2;
    font-size: 12px;
}
.utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    gap: 16px;
}
.utility-social { display: flex; gap: 14px; }
.u-social {
    color: #cfd1d2;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .04em;
}
.u-social:hover { color: #fff; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: grid;
    /* Logo left | flexible nav | actions right — extra column gap keeps logo clear of menu */
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 48px;
    row-gap: 12px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    justify-self: start;
    margin-right: 12px; /* breathing room before nav */
    padding-right: 8px;
}
.brand-mark {
    width: 44px; height: 44px;
    object-fit: contain;
    border-radius: 8px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -.02em;
    color: var(--ink);
}
.brand-tag {
    font-size: 11px;
    color: var(--muted);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
}
.brand .custom-logo {
    max-height: 48px;
    width: auto;
    max-width: 180px; /* stop wide logos from crowding the nav */
    object-fit: contain;
}
.brand--footer .brand-name { color: #fff; font-size: 20px; }

.primary-nav {
    justify-self: center;
    min-width: 0;
    margin-left: 8px; /* extra separation from logo */
}
.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    align-items: center;
    justify-content: center;
}
.nav-list a,
.nav-list li a {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    padding: 6px 0;
    position: relative;
}
.nav-list a:hover { color: var(--accent); }
.nav-list li { display: inline; }

.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-toggle { display: none; }

/* ==========================================================================
   News Update ticker
   ========================================================================== */
.news-ticker {
    display: flex;
    align-items: stretch;
    background: #0b0f19;
    color: #fff;
    min-height: 40px;
    overflow: hidden;
    border-bottom: 2px solid var(--accent);
}
.ticker-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 0 16px;
    z-index: 2;
}
.ticker-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,.6);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
    70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.ticker-viewport {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 55s linear infinite;
}
.ticker-item {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 500;
    padding: 0 4px;
}
.ticker-item:hover { color: #fecaca; }
.ticker-sep { color: #4b5563; padding: 0 14px; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   Homepage — hero + grids (V24 layout language)
   ========================================================================== */
.site-main { padding-bottom: 48px; }

.hero-v24 {
    padding-top: 28px;
    padding-bottom: 8px;
}
.hero-card { display: block; border-radius: var(--radius); overflow: hidden; }
.hero-media {
    position: relative;
    min-height: clamp(360px, 52vw, 560px);
    background: #111827 center/cover no-repeat;
    display: flex;
    align-items: flex-end;
}
.hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.78) 100%);
}
.hero-copy {
    position: relative;
    z-index: 1;
    padding: clamp(24px, 4vw, 48px);
    max-width: 820px;
    color: #fff;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.2vw, 48px);
    line-height: 1.12;
    letter-spacing: -.03em;
    font-weight: 800;
    margin: 12px 0 14px;
}
.hero-dek {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255,255,255,.88);
    max-width: 640px;
    margin-bottom: 16px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.cat-pill--sm {
    background: var(--bg-soft);
    border-color: var(--line);
    color: var(--muted);
    margin-bottom: 10px;
}
.story-card .cat-pill--sm { color: var(--accent); background: #fef2f2; border-color: #fecaca; }

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,.8);
}
.meta-row--sm { color: var(--muted); margin-top: 10px; }
.meta-author { font-weight: 600; color: inherit; }
.meta-dot { opacity: .55; }

.section-block { padding-top: 36px; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.section-more {
    font-size: 13px;
    font-weight: 650;
    color: var(--accent);
}
.section-more:hover { text-decoration: underline; }

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.story-grid--4 { grid-template-columns: repeat(4, 1fr); }
.story-grid--3 { grid-template-columns: repeat(3, 1fr); }

.story-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.story-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}
.story-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.story-thumb {
    aspect-ratio: 16 / 10;
    background: #e5e7eb center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumb-fallback {
    font-size: 36px;
    font-weight: 800;
    color: #9ca3af;
}
.story-body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.story-title {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: -.015em;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.story-card:hover .story-title { color: var(--accent); }
.story-excerpt {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Article / archive / pages
   ========================================================================== */
.article-page { padding: 36px 0 56px; }
.article-header { max-width: 760px; margin-bottom: 28px; }
.article-title {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -.03em;
    font-weight: 800;
    margin: 14px 0 16px;
}
.article-header .meta-row { color: var(--muted); }
.article-header .cat-pill {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--accent);
}
.article-hero-image {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
}
.article-hero-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}
.article-body { max-width: 720px; }
.article-nav { max-width: 720px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-nav .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.article-nav .nav-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.article-nav .nav-title { font-weight: 700; font-size: 15px; }

.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose p { margin-bottom: 1.15em; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .6em; letter-spacing: -.02em; color: var(--ink); }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; color: var(--ink); }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.25em; list-style: disc; }
.prose li { margin-bottom: .4em; }
.prose .lead { font-size: 19px; color: var(--ink); }

.archive-header { padding: 36px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.archive-title { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.archive-desc { margin-top: 8px; color: var(--muted); }
.pagination-wrap { padding: 36px 0 12px; }
.pagination-wrap .nav-links,
.pagination-wrap .page-numbers {
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.page-numbers {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
.page-numbers.current,
.page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.page-shell { padding: 40px 0 64px; max-width: 820px; }
.page-hero { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-hero h1 {
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.15;
    letter-spacing: -.03em;
    font-weight: 800;
    margin: 12px 0 12px;
}
.page-lead { font-size: 17px; color: var(--muted); }
.page-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 24px 0 32px;
}
.principle-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px;
}
.principle-card h3 { font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.principle-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

.mission-quote {
    margin: 32px 0;
    padding: 24px 26px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    font-size: 18px;
    font-style: italic;
    border: none;
}

.donate-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 18px;
    margin: 28px 0 36px;
}
.donate-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--bg-soft);
}
.donate-card--featured {
    background: #fff;
    border-color: var(--ink);
}
.donate-card h2 { font-size: 18px; margin: 0 0 14px; }
.donate-card ul { margin: 0 0 18px 1.1em; list-style: disc; }
.donate-card li { margin-bottom: 8px; font-size: 14.5px; }
.bank-details p { margin-bottom: 8px; font-size: 14.5px; }
.hint { font-size: 14px; color: var(--muted); }
.text-link { color: var(--accent); font-weight: 650; font-size: 14px; }
.text-link:hover { text-decoration: underline; }

/* Contact form */
.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin: 12px 0 6px;
    color: var(--ink);
    font-family: var(--font);
}
.field-rect {
    border-radius: 10px !important;
    width: 100%;
}
.contact-form textarea.field {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font);
}
.about-page .prose p { text-wrap: pretty; }

/* ==========================================================================
   Donate + Newsletter bands + Footer
   ========================================================================== */
.donate-band {
    background: #0b0f19;
    color: #fff;
    padding: 56px 0;
}
.donate-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.donate-band-copy { max-width: 640px; }
.donate-band-copy h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}
.donate-band-copy p { color: #cfd1d2; font-size: 15px; line-height: 1.65; }
.donate-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.donate-band .btn-donate {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}
.donate-band .btn-donate:hover { background: #f3f4f6; color: var(--ink); }

.newsletter-band {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 40px 0;
}
.newsletter-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.newsletter-band h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.newsletter-band p { color: var(--muted); font-size: 14.5px; max-width: 380px; }

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1 1 320px;
    max-width: 460px;
}
.newsletter-form--stack { flex-direction: column; max-width: none; }
.field {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 14px;
    background: #fff;
    outline: none;
}
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(3,7,18,.08); }
.newsletter-form--stack .field,
.newsletter-form--stack .btn { border-radius: 10px; width: 100%; }

.form-success {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
    font-weight: 600;
}
.form-success.show { display: block; }

.site-footer {
    background: #0b0f19;
    color: #cfd1d2;
    padding: 56px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    margin-bottom: 40px;
}
.footer-brand p { margin: 12px 0 16px; font-size: 14px; line-height: 1.6; color: #9ca3af; }
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-social a { font-size: 13px; font-weight: 650; color: #e5e7eb; }
.footer-social a:hover { color: #fff; }
.site-footer h4 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: #9ca3af; }
.footer-links a:hover { color: #fff; }
.footer-note { font-size: 13px; color: #9ca3af; margin-bottom: 12px; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 12.5px;
    color: #6b7280;
}
.footer-tagline { font-style: italic; }

/* ==========================================================================
   Modals + mobile nav + scroll top
   ========================================================================== */
.mobile-nav {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 200;
}
.mobile-nav.active { display: block; }
.mobile-nav-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 90vw);
    background: #fff;
    padding: 20px;
    box-shadow: -8px 0 30px rgba(0,0,0,.15);
    overflow-y: auto;
}
.mobile-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.mobile-nav-list { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-list a {
    display: block;
    padding: 14px 8px;
    font-size: 17px;
    font-weight: 650;
    border-bottom: 1px solid var(--line);
}
.mobile-nav-list a:hover { color: var(--accent); }

.overlay-modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(3,7,18,.72);
    z-index: 250;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.overlay-modal.active { display: flex; }
.overlay-close, .modal-close {
    position: absolute;
    top: 20px; right: 24px;
    background: none; border: none;
    color: #fff; font-size: 28px; cursor: pointer;
}
.modal-close { color: var(--muted); top: 12px; right: 14px; font-size: 22px; }
.search-form { width: min(100%, 640px); }
.search-field {
    width: 100%;
    padding: 18px 22px;
    border: none;
    border-radius: 999px;
    font-size: 20px;
    outline: none;
}
.modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    width: min(100%, 420px);
    text-align: center;
}
.modal-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }

.scroll-top {
    display: none;
    position: fixed;
    right: 20px; bottom: 20px;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--ink);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 90;
    box-shadow: var(--shadow);
}
.scroll-top.visible { display: block; }

.empty-state { color: var(--muted); grid-column: 1 / -1; padding: 40px 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .story-grid--4 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .primary-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .header-inner { grid-template-columns: 1fr auto; }
    .story-grid,
    .story-grid--3,
    .story-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .donate-grid { grid-template-columns: 1fr; }
    .principles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 28px, var(--container)); }
    .utility-bar { display: none; }
    .header-cta .btn-ghost { display: none; }
    .brand-tag { display: none; }
    .story-grid,
    .story-grid--3,
    .story-grid--4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .newsletter-form { flex-direction: column; max-width: none; }
    .newsletter-form .field,
    .newsletter-form .btn { width: 100%; border-radius: 10px; }
    .hero-media { min-height: 420px; }
    .donate-band-inner { flex-direction: column; align-items: flex-start; }
    .article-nav .nav-links { grid-template-columns: 1fr; }
    .ticker-label { font-size: 10px; padding: 0 12px; }
}

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