/* ==========================================================================
   THE ESTUARY DISPATCH — The Journal of Watershed Soil Biology, Sustainable Fisheries & Nutrition
   Bespoke Editorial Broadsheet Design System (High-Substance Handcrafted Aesthetic)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&display=swap');

/* ---------------- CSS Variables ---------------- */
/* ---------------- CSS Variables ---------------- */
:root {
    /* Palette: warm newsprint, editorial ink, muted maritime blue, and earthen accents */
    --bg-page: #f4f0e8;
    --bg-surface: #fbfaf7;
    --bg-subtle: #ece5da;
    --bg-tint-green: #f0e6d8;
    --bg-tint-ocean: #e6edf1;
    --bg-tint-terracotta: #f2e5df;
    --bg-tint-amber: #f2ead9;
    --bg-tint-purple: #eee8ed;

    --ink-primary: #20201e;
    --ink-secondary: #4b4842;
    --ink-muted: #777168;

    /* Restrained desk colors inspired by ink, clay, brass, and weathered paper */
    --brand-forest: #263b4a;
    --brand-forest-light: #3c5362;
    --brand-emerald: #95613d;
    --brand-ocean: #3d667d;
    --brand-ocean-deep: #294d61;
    --brand-cyan: #607f89;
    --brand-terracotta: #944936;
    --brand-rust: #ad5638;
    --brand-amber: #956b2d;
    --brand-gold: #795424;
    --brand-purple: #6c5368;
    --brand-crimson: #963d38;

    --border-hairline: #d8d0c3;
    --border-strong: #263b4a;
    --border-subtle: #e6dfd4;

    --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-display: 'Libre Caslon Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --container-max: 1240px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-full: 9999px;
    --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 16px rgba(38, 59, 74, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 12px 28px rgba(38, 59, 74, 0.12), 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* ---------------- Global Reset & Typography ---------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--ink-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--brand-forest);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--brand-rust);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- Tier 1: Broadsheet Dateline & Marine Telemetry Ribbon ---------------- */
.masthead-dateline {
    background: #222c34;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-family: var(--font-sans);
    padding: 8px 0;
    border-bottom: 2px solid #151c21;
}

.dateline-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.dateline-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #cbd5e1;
}

.dateline-edition {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #d5b16d;
}

.dateline-divider {
    color: #59656d;
}

.marine-telemetry {
    color: #bdd0da;
    font-weight: 600;
}

.dateline-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search-box form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-search-box input {
    border: none;
    background: transparent;
    font-size: 0.8rem;
    color: var(--ink-primary);
    outline: none;
    width: 175px;
    font-family: inherit;
}

.nav-search-box input::placeholder {
    color: #94a3b8;
}

.nav-search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: color 0.15s;
}

.nav-search-box button:hover {
    color: var(--brand-forest);
}

.nav-subscribe-btn {
    background: #944936;
    color: #ffffff !important;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(148, 73, 54, 0.28);
}

.nav-subscribe-btn:hover {
    background: #7f3c2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(148, 73, 54, 0.35);
}

/* ---------------- Tier 2: Classical Broadsheet Journal Masthead ---------------- */
.site-masthead {
    padding: 30px 0 20px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f3 100%);
    border-bottom: 1px solid var(--border-hairline);
}

.masthead-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    color: #746554;
    margin-bottom: 10px;
    display: inline-block;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: 0;
}

.masthead-title {
    font-family: var(--font-display);
    font-size: 4.35rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.98;
    margin: 4px 0 8px 0;
    color: #202830;
}

.masthead-title a {
    color: #202830;
    text-decoration: none;
    transition: opacity 0.15s;
    display: inline-block;
    transform: scaleX(1.08);
    transform-origin: center;
    -webkit-text-stroke: 0.2px currentColor;
}

.masthead-title a:hover {
    opacity: 0.92;
}

.masthead-title .amp {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: #944936;
    margin: 0 6px;
}

.masthead-rule-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 880px;
    margin: 8px auto 0;
}

.rule-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hairline), transparent);
}

.masthead-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0;
    white-space: nowrap;
}

/* ---------------- Tier 3: Dedicated Section Navigation Bar ---------------- */
.editorial-navbar {
    background-color: #ffffff;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 3px solid #263b4a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
}

.nav-menu li {
    list-style: none;
    flex-shrink: 0;
}

.nav-menu li a {
    font-size: 0.71rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #334155;
    padding: 12px 6px;
    display: inline-block;
    border-bottom: 3px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-menu li a:hover {
    color: #944936;
    border-bottom-color: #944936;
}

.nav-menu li a.active {
    color: #263b4a;
    border-bottom-color: #263b4a;
}

/* ---------------- Breadcrumb Navigation ---------------- */
.breadcrumb {
    padding: 18px 0;
    font-size: 0.82rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--font-sans);
    border-bottom: 1px solid var(--border-hairline);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--ink-secondary);
}

.breadcrumb a:hover {
    color: var(--brand-forest);
}

.breadcrumb .sep {
    color: var(--border-hairline);
}

/* ---------------- Kicker Tags ---------------- */
.kicker-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #704b2f;
    background: #f0e6d8;
    border: 1px solid #d9c5aa;
    padding: 3px 10px;
    border-radius: 2px;
    width: fit-content;
    line-height: 1.4;
    transition: all 0.15s ease;
}

.kicker-tag.ocean {
    color: #294d61;
    background: #e6edf1;
    border-color: #b9cad3;
}

.kicker-tag.terracotta {
    color: #7f3c2e;
    background: #f2e5df;
    border-color: #d8b7aa;
}

.kicker-tag.amber {
    color: #795424;
    background: #f2ead9;
    border-color: #d9c69f;
}

.kicker-tag.purple {
    color: #6c5368;
    background: #eee8ed;
    border-color: #cfc1cc;
}

/* ---------------- Front Page Hero Editorial Grid ---------------- */
.hero-editorial-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 36px;
    padding: 36px 0 44px 0;
    border-bottom: 1px solid var(--border-hairline);
    align-items: start;
}

.lead-article {
    display: flex;
    flex-direction: column;
}

.lead-article-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.lead-article-title {
    font-family: var(--font-serif);
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.18;
    color: var(--brand-forest);
    margin: 8px 0 14px 0;
}

.lead-article-title a {
    color: var(--brand-forest);
}

.lead-article-title a:hover {
    color: var(--brand-terracotta);
}

.lead-article-excerpt {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ink-secondary);
    margin-bottom: 16px;
}

.article-byline {
    font-size: 0.8rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-sans);
}

.article-byline strong {
    color: var(--ink-primary);
    font-weight: 600;
}

/* Sidebar Wire Column */
.sidebar-dispatches {
    border-left: 1px solid var(--border-hairline);
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-forest);
    border-bottom: 2px solid var(--brand-forest);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.dispatch-card {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.dispatch-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dispatch-title {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 4px 0 6px 0;
}

.dispatch-title a {
    color: var(--ink-primary);
}

.dispatch-title a:hover {
    color: var(--brand-terracotta);
}

/* ---------------- Magazine Section & 3-Column Grid ---------------- */
.magazine-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-hairline);
}

.section-header-editorial {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-hairline);
}

.section-header-editorial h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-forest);
    line-height: 1.2;
}

.section-view-all {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brand-forest);
}

.section-view-all:hover {
    color: var(--brand-terracotta);
}

.magazine-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.mag-card {
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-top: 3.5px solid var(--brand-forest);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(38, 59, 74, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}

.mag-card.cat-fisheries, .mag-card.cat-ocean {
    border-top-color: #3d667d;
}

.mag-card.cat-nutrition {
    border-top-color: #944936;
}

.mag-card.cat-soil {
    border-top-color: #95613d;
}

.mag-card.cat-foraging {
    border-top-color: #956b2d;
}

.mag-card.cat-editorial {
    border-top-color: #6c5368;
}

.mag-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px -4px rgba(38, 59, 74, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.mag-card-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.mag-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mag-card:hover .mag-card-img {
    transform: scale(1.05);
}

.mag-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mag-card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 8px 0 10px 0;
}

.mag-card-title a {
    color: var(--brand-forest);
    transition: color 0.15s ease;
}

.mag-card-title a:hover {
    color: var(--brand-terracotta);
}

.mag-card-desc {
    font-size: 0.92rem;
    color: var(--ink-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
}

.author-monogram {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    background: #95613d;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.author-monogram.ocean { background: #3d667d; }
.author-monogram.terracotta { background: #944936; }
.author-monogram.amber { background: #956b2d; }
.author-monogram.purple { background: #6c5368; }

/* ---------------- Article Detail Page ---------------- */
.article-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 32px auto;
}

.article-header h1 {
    font-family: var(--font-serif);
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1.18;
    color: var(--brand-forest);
    margin: 12px 0 18px 0;
}

.article-hero-img-wrap {
    max-width: 980px;
    margin: 0 auto 36px auto;
}

.article-hero-img-wrap img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-elevated);
}

.article-body-content {
    max-width: 740px;
    margin: 0 auto 50px auto;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.85;
    color: #262c28;
}

.article-body-content p {
    margin-bottom: 22px;
}

.pull-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.5;
    color: var(--brand-forest);
    border-left: 3px solid var(--brand-terracotta);
    padding: 16px 24px;
    margin: 32px 0;
    background: #f7f4ed;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------------- Authentic Database Error Leakage ---------------- */
.db-error-alert {
    background-color: #fff5f5;
    border-left: 4px solid #963d38;
    border-top: 1px solid #fed7d7;
    border-right: 1px solid #fed7d7;
    border-bottom: 1px solid #fed7d7;
    padding: 16px 20px;
    margin: 20px 0 28px 0;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: #991b1b;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.db-error-alert strong {
    font-family: var(--font-sans);
    color: #7f1d1d;
    font-weight: 700;
}

/* ---------------- Producer Dossier Grid ---------------- */
.dossier-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 36px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-subtle);
}

.dossier-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92rem;
}

.dossier-meta-table tr {
    border-bottom: 1px solid var(--border-subtle);
}

.dossier-meta-table td {
    padding: 12px 14px;
}

.dossier-meta-table td:first-child {
    font-weight: 700;
    color: var(--ink-secondary);
    width: 38%;
    background-color: #faf8f5;
    border-right: 1px solid var(--border-hairline);
}

/* ---------------- Footer Broadsheet ---------------- */
.site-footer {
    background-color: #22282d;
    color: #ece9e3;
    padding: 60px 0 30px;
    border-top: 3px solid var(--brand-forest-light);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.8px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: #cbc8c1;
    line-height: 1.65;
    margin-bottom: 14px;
}

.footer-col h4 {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    color: #ffffff;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 9px;
}

.footer-col ul li a {
    color: #cbd5ce;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #94a398;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------------- Alternate Broadsheet Components ---------------- */
.side-column {
    border-left: 1px solid var(--border-hairline);
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-column-heading {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-forest);
    border-bottom: 2px solid var(--brand-forest);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.wire-item {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.wire-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wire-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-ocean);
    display: block;
    margin-bottom: 4px;
}

.wire-title {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px 0;
}

.wire-title a {
    color: var(--ink-primary);
}

.wire-title a:hover {
    color: var(--brand-terracotta);
}

.wire-meta {
    font-size: 0.8rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-block {
    padding: 44px 0;
    border-bottom: 1px solid var(--border-hairline);
}

.section-rule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-hairline);
}

.section-rule-header h2 {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--brand-forest);
    line-height: 1.2;
}

.section-rule-header a {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brand-forest);
}

.section-rule-header a:hover {
    color: var(--brand-terracotta);
}

.dispatch-grid,
.producer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.dispatch-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.dispatch-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dispatch-card-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 6px 0 8px 0;
}

.dispatch-card-title a {
    color: var(--brand-forest);
}

.dispatch-card-title a:hover {
    color: var(--brand-terracotta);
}

.dispatch-card-excerpt {
    font-size: 0.92rem;
    color: var(--ink-secondary);
    line-height: 1.55;
    margin-bottom: 12px;
}

.dispatch-card-meta {
    font-size: 0.8rem;
    color: var(--ink-muted);
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.producer-card {
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.producer-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.producer-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.producer-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brand-forest);
    background: var(--bg-tint-green);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    width: fit-content;
    margin-bottom: 8px;
}

.producer-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 6px 0;
}

.producer-title a {
    color: var(--brand-forest);
}

.producer-title a:hover {
    color: var(--brand-terracotta);
}

.producer-category {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-ocean);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.producer-desc {
    font-size: 0.92rem;
    color: var(--ink-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
}

/* Toast Notifications */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #252a2e;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast-msg.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ---------------- Responsive Styles ---------------- */
@media (max-width: 992px) {
    .hero-editorial-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-dispatches,
    .side-column {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-hairline);
        padding-top: 28px;
    }
    .magazine-grid-3,
    .dispatch-grid,
    .producer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dossier-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .masthead-title {
        font-size: 2.4rem;
    }

    .masthead-title a {
        transform: scaleX(1.02);
    }
    .magazine-grid-3,
    .dispatch-grid,
    .producer-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .article-header h1 {
        font-size: 2.1rem;
    }
    .nav-search-box {
        display: none;
    }
}

/* ==========================================================
   BROADSHEET LOAD MORE & ARCHIVAL PAGINATION
   ========================================================== */
.load-more-wrapper {
    text-align: center;
    margin: 48px auto 32px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--brand-forest);
    background-color: #f7f4ed;
    border: 2px solid var(--brand-forest);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(26, 54, 38, 0.08);
}

.btn-load-more:hover {
    background-color: var(--brand-forest);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 54, 38, 0.16);
    transform: translateY(-1px);
}

.btn-load-more:active {
    transform: translateY(0);
}

.btn-load-more:disabled,
.btn-load-more.all-loaded {
    background-color: #e5e0d3;
    border-color: #c9c3b4;
    color: var(--ink-muted);
    cursor: default;
    transform: none;
    box-shadow: none;
}

.spinner-circle {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin-loader 0.75s linear infinite;
}

@keyframes spin-loader {
    to { transform: rotate(360deg); }
}

.broadsheet-pagination {
    margin: 40px auto 20px;
    padding: 24px 0;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-info {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--ink-muted);
    font-style: italic;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-link {
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-forest);
    text-decoration: none;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: background 0.15s;
}

.page-link:hover {
    background: #f7f4ed;
    border-color: var(--brand-forest);
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-secondary);
    text-decoration: none;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: all 0.15s;
}

.page-num:hover {
    background: #f7f4ed;
    border-color: var(--brand-forest);
    color: var(--brand-forest);
}

.page-num.active {
    background: var(--brand-forest);
    border-color: var(--brand-forest);
    color: #fff;
}

/* ==========================================================
   BROADSHEET AUTHENTICITY ENHANCEMENTS (DROP CAPS & CAPTIONS)
   ========================================================== */
.drop-cap {
    float: left;
    font-family: var(--font-serif);
    font-size: 4.6rem;
    line-height: 0.8;
    padding-top: 6px;
    padding-right: 12px;
    padding-bottom: 2px;
    font-weight: 700;
    color: var(--brand-forest);
}

.photo-credit {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ink-muted);
    margin-top: 6px;
    display: block;
}

.lead-article-img-wrap {
    position: relative;
    margin-bottom: 16px;
}

.lead-article-img-wrap .photo-credit {
    margin-top: 6px;
    border-bottom: 1px solid var(--border-hairline);
    padding-bottom: 8px;
}

/* Wire Briefing Ticker */
.cascadia-wire-box {
    background: #fdfbf7;
    border: 1px solid var(--border-hairline);
    border-top: 3px solid var(--brand-terracotta);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin-top: 24px;
}

.cascadia-wire-box h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--brand-terracotta);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wire-item-compact {
    font-size: 0.86rem;
    color: var(--ink-secondary);
    line-height: 1.5;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-subtle);
}

.wire-item-compact:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wire-dateline {
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--ink-primary);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

/* Letters to the Editor Box */
.letters-section {
    margin: 50px 0 30px;
    background: #fff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 32px;
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.letter-card {
    background: #fbf9f4;
    border: 1px solid var(--border-hairline);
    border-left: 3px solid var(--brand-forest);
    padding: 20px;
    border-radius: var(--radius-sm);
}

.letter-card p {
    font-family: var(--font-serif);
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--ink-secondary);
    font-style: italic;
    margin-bottom: 12px;
}

.letter-author {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-forest);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.letter-affiliation {
    font-size: 0.78rem;
    color: var(--ink-muted);
}

/* ==========================================================
   DISPATCH ARCHIVE BLOG-STYLE FILTER & CONTROL SYSTEM
   ========================================================== */
.dispatch-filter-panel {
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 36px;
    box-shadow: 0 4px 16px rgba(38, 59, 74, 0.05);
}

.filter-topic-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 18px;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.topic-chip:hover {
    background: #f1f5f9;
    color: var(--brand-forest);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.topic-chip .chip-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.topic-chip.active {
    background: #263b4a;
    color: #ffffff !important;
    border-color: #263b4a;
    box-shadow: 0 2px 8px rgba(38, 59, 74, 0.22);
}

.topic-chip.active .chip-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.topic-chip.blue.active {
    background: #3d667d;
    border-color: #3d667d;
    box-shadow: 0 2px 8px rgba(61, 102, 125, 0.22);
}

/* Visible only during deliberate UNION requests; values remain raw by design. */
.union-result-surface {
    margin: 24px 0;
    padding: 18px;
    overflow-x: auto;
    background: #fffdf8;
    border: 2px solid var(--brand-terracotta);
    color: var(--ink-primary);
    font-family: var(--font-mono);
    font-size: 0.86rem;
}

.union-result-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.union-result-row:last-child {
    margin-bottom: 0;
}

.union-result-value {
    min-width: 2rem;
    padding: 3px 6px;
    border: 1px solid var(--border-hairline);
    background: var(--bg-surface);
}

.union-result-surface table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
}

.union-result-surface th,
.union-result-surface td {
    padding: 7px 10px;
    border: 1px solid var(--border-hairline);
    text-align: left;
}

.topic-chip.terracotta.active {
    background: #944936;
    border-color: #944936;
    box-shadow: 0 2px 8px rgba(148, 73, 54, 0.22);
}

.topic-chip.ocean.active {
    background: #607f89;
    border-color: #607f89;
    box-shadow: 0 2px 8px rgba(96, 127, 137, 0.22);
}

.topic-chip.amber.active {
    background: #956b2d;
    border-color: #956b2d;
    box-shadow: 0 2px 8px rgba(149, 107, 45, 0.22);
}

.filter-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    white-space: nowrap;
}

.filter-select {
    padding: 7px 14px;
    font-size: 0.84rem;
    font-family: var(--font-sans);
    color: var(--ink-primary);
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-select:hover, .filter-select:focus {
    border-color: #263b4a;
    background-color: #ffffff;
}

.filter-search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 2px 10px;
    flex-grow: 1;
    min-width: 220px;
    transition: border-color 0.15s ease;
}

.filter-search-box:focus-within {
    border-color: #263b4a;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(38, 59, 74, 0.1);
}

.filter-search-box input {
    border: none;
    background: transparent;
    padding: 6px 8px;
    font-size: 0.84rem;
    color: var(--ink-primary);
    outline: none;
    width: 100%;
    font-family: inherit;
}

.filter-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    padding: 4px;
}

.filter-search-btn:hover {
    color: var(--brand-forest);
}

.filter-reset-btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: #963d38;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.filter-reset-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.filter-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-subtle);
    font-size: 0.84rem;
    color: #64748b;
}

.filter-tally strong {
    color: var(--ink-primary);
}

.active-filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    background: #f0e6d8;
    color: #704b2f;
    border: 1px solid #d9c5aa;
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.filter-tag-pill.ocean {
    background: #e6edf1;
    color: #294d61;
    border-color: #b9cad3;
}

.filter-tag-pill.terracotta {
    background: #f2e5df;
    color: #7f3c2e;
    border-color: #d8b7aa;
}

.filter-tag-pill a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    line-height: 1;
}

.filter-tag-pill a:hover {
    color: #963d38;
}




