/* ============================================================
   Rights Defenders — "Documentary Dossier" Design System
   Palette:  Deep navy #081326 / Navy #0B1F3A / Gold #B8912B
             Gold-light #D4A93C / Paper #FAF9F6 / Ink #1E2328
   Type:     Source Serif 4 (headlines) + Inter (UI/body)
   Signature: laurel-wreath seal + case-file labeling, drawn
              from the RDI mark. Evidence over ornament.
   ============================================================ */

:root {
    --navy-950: #081326;
    --navy-900: #0B1F3A;
    --navy-800: #12294D;
    --navy-700: #1a3a5c;
    --gold-600: #B8912B;
    --gold-500: #D4A93C;
    --gold-050: rgba(184, 145, 43, 0.08);
    --paper: #FAF9F6;
    --paper-dim: #F2EFE8;
    --ink: #1E2328;
    --ink-soft: #4a5568;
    --ink-faint: #8a8a8a;
    --line: #e8e5df;
    --line-strong: #d4cfc6;
    --shadow-card: 0 1px 2px rgba(8, 19, 38, 0.06);
    --shadow-card-hover: 0 16px 40px rgba(8, 19, 38, 0.14);
    --radius: 3px;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background-color: var(--paper);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.25;
    color: var(--navy-900);
    letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; margin-bottom: 0.5em; }
h2 { font-size: 1.7rem; margin-bottom: 0.5em; }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
h4 { font-size: 1.05rem; margin-bottom: 0.35em; }

p, ul, ol { margin-bottom: 1rem; }

a { color: var(--gold-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: #9c7a23; text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; border-radius: 2px; }

/* Case-file / eyebrow label — used wherever content is literally
   classified (category, country, doc type). Not decorative. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-600);
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--gold-600);
    display: inline-block;
}

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
    position: absolute; top: -100%; left: 0;
    background: var(--navy-900); color: var(--paper);
    padding: 0.5rem 1rem; z-index: 1000; font-weight: 600;
    border-radius: 0 0 4px 0; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Site Header ───────────────────────────────────────────── */
.site-header {
    background: var(--navy-950);
    border-bottom: 1px solid rgba(184, 145, 43, 0.35);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.site-logo {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; min-width: 0; max-width: 100%;
    padding: 0.35rem 0.45rem; color: var(--paper); text-decoration: none;
}
.site-logo img {
    display: block; width: clamp(140px, 18vw, 220px); max-width: 220px;
    height: auto; max-height: 72px; object-fit: contain;
}
.site-logo:hover { color: var(--gold-600); text-decoration: none; }

@media (max-width: 640px) {
    .nav-container { min-height: 70px; padding: 0.75rem 1rem; }
    .site-logo { padding: 0.3rem 0.35rem; }
    .site-logo img { width: min(220px, 100%); max-width: 240px; max-height: 72px; }
}

/* ── Primary Nav ───────────────────────────────────────────── */
.primary-nav ul { display: flex; list-style: none; gap: 0.25rem; margin: 0; align-items: center; }

.primary-nav a {
    position: relative;
    color: var(--paper);
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0.85rem; right: 0.85rem; bottom: 0.28rem;
    height: 2px;
    background: var(--gold-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.primary-nav a:hover { color: var(--gold-500); text-decoration: none; }
.primary-nav a:hover::after { transform: scaleX(1); }

.primary-nav .nav-cta {
    margin-left: 0.5rem;
    border: 1px solid var(--gold-600);
    border-radius: 4px;
    padding: 0.45rem 0.9rem;
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: var(--gold-600); color: var(--navy-950); }

/* ── Mobile Nav Toggle ─────────────────────────────────────── */
.mobile-nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px; z-index: 101;
}
.mobile-nav-toggle span {
    display: block; width: 26px; height: 2.5px; background: var(--paper);
    transition: transform 0.3s, opacity 0.3s; border-radius: 2px;
}
.mobile-nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Content Containers ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 3.5rem; }
.container-wide { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem 3.5rem; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 120% 100% at 15% -10%, #163458 0%, var(--navy-950) 55%), var(--navy-950);
    color: var(--paper);
    padding: 5.5rem 1.5rem 4rem;
    isolation: isolate;
}

/* Global-monitoring dot grid — signature texture, not stock imagery */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(212, 169, 60, 0.35) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 0%, transparent 70%);
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 1.5rem;
}
.hero-eyebrow .seal { width: 22px; height: 22px; flex-shrink: 0; }

.hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.1rem);
    color: var(--paper);
    line-height: 1.15;
    margin: 0 auto 0.55em;
}

.hero p {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 2.25rem;
    color: rgba(250, 249, 246, 0.82);
    line-height: 1.6;
}

.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* Trust / proof strip — sits directly under the hero, above the fold */
.proof-strip {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 3rem auto 0;
    display: flex;
    justify-content: center;
    gap: clamp(1.75rem, 5vw, 4rem);
    flex-wrap: wrap;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(184, 145, 43, 0.25);
}

.proof-stat { text-align: center; }
.proof-stat strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.9rem;
    color: var(--gold-500);
    line-height: 1;
    margin-bottom: 0.3em;
}
.proof-stat span {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(250, 249, 246, 0.65);
}

@media (max-width: 640px) {
    .hero { padding: 3.25rem 1.25rem 3rem; }
    .proof-strip { gap: 1.5rem 2rem; margin-top: 2.25rem; padding-top: 1.75rem; }
    .proof-stat strong { font-size: 1.5rem; }
}

/* ── Laurel divider — signature motif reused as section break ── */
.laurel-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin: 3.5rem 0 2.25rem;
    color: var(--gold-600);
}
.laurel-divider svg { width: 26px; height: 26px; flex-shrink: 0; opacity: 0.85; }
.laurel-divider::before, .laurel-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    max-width: 140px;
    background: var(--line);
}

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem;
    padding-bottom: 0.9rem; border-bottom: 2px solid var(--navy-900);
}
.section-header h2 { margin-bottom: 0; }
.section-header .view-all { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em; }
.section-header .view-all:hover { text-decoration: none; }

/* ── Card Grid ─────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}
.card-grid.featured { grid-template-columns: 1.15fr 1fr; }

/* ── Card — reads like a case-file dossier entry ─────────────── */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--line-strong);
}

.card-image-wrap { position: relative; overflow: hidden; }
.card-image {
    width: 100%; height: 220px; object-fit: cover; background: var(--paper-dim); display: block;
    transition: transform 0.5s ease;
}
.card:hover .card-image { transform: scale(1.04); }

.card-body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-body h2, .card-body h3 { font-size: 1.22rem; margin-bottom: 0.45em; line-height: 1.35; }
.card-body h2 a, .card-body h3 a { color: var(--navy-900); }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--gold-600); text-decoration: none; }

.card-summary { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.1rem; flex: 1; }

.card-meta {
    font-size: 0.82rem; color: var(--ink-faint);
    display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; align-items: center;
    padding-top: 0.85rem; border-top: 1px solid var(--line);
    margin-top: auto;
}
.card-meta time { font-weight: 600; color: #666; }

/* ── Tags ──────────────────────────────────────────────────── */
.tag {
    display: inline-block; background: var(--paper-dim); color: #5a4e2f;
    padding: 0.22em 0.65em; border-radius: 3px; font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
}
.tag:hover { background: #e8e1d3; color: #3d351f; text-decoration: none; }
.tag-gold { background: var(--gold-600); color: #fff; }
.tag-gold:hover { background: #9c7a23; color: #fff; }
.tag-navy { background: var(--navy-900); color: var(--paper); }
.tag-navy:hover { background: var(--navy-800); color: var(--paper); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }

/* Verified-report seal — laurel motif borrowed directly from the
   logo mark, used only where a document is an authored, sourced
   report. This is the one "risk" element; used sparingly. */
.tag-verified {
    display: inline-flex; align-items: center; gap: 0.4em;
    background: var(--navy-950); color: var(--gold-500);
    padding: 0.28em 0.7em 0.28em 0.5em; border-radius: 3px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.tag-verified svg { width: 15px; height: 15px; }

/* ── Article Detail ────────────────────────────────────────── */
.article-header { margin-bottom: 2.25rem; }
.article-header h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.22; margin-top: 0.5rem; }

.article-meta {
    font-size: 0.92rem; color: #666;
    display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
    margin: 1.1rem 0; padding-bottom: 1.35rem; border-bottom: 1px solid var(--line);
}
.article-meta svg { vertical-align: -0.15em; margin-right: 0.25rem; color: var(--ink-faint); }

.article-featured-image {
    width: 100%; max-height: 520px; object-fit: cover;
    border-radius: var(--radius); margin-bottom: 2.25rem;
    box-shadow: 0 1px 3px rgba(8,19,38,0.08);
}

/* ── Article Body ──────────────────────────────────────────── */
.article-body { font-size: 1.08rem; line-height: 1.8; color: var(--ink); }
.article-body p { margin-bottom: 1.3rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.article-body h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.6rem; }
.article-body blockquote {
    border-left: 3px solid var(--gold-600); padding: 0.85rem 0 0.85rem 1.5rem;
    margin: 1.75rem 0; color: var(--ink-soft); font-style: italic;
    background: var(--gold-050); border-radius: 0 6px 6px 0; font-family: var(--serif); font-size: 1.1rem;
}
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body img { max-width: 100%; height: auto; border-radius: 4px; margin: 1rem 0; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Reports ───────────────────────────────────────────────── */
.report-card { border-left: 3px solid var(--gold-600); }
.report-pdf-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-weight: 700; font-size: 0.9rem; letter-spacing: 0.01em;
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-block; padding: 0.5rem 0.95rem; border: 1px solid var(--line);
    border-radius: 4px; font-size: 0.92rem; font-weight: 600; color: var(--ink);
    background: #fff; transition: all 0.2s;
}
.pagination a:hover { background: var(--navy-900); color: var(--paper); border-color: var(--navy-900); text-decoration: none; }
.pagination .current { background: var(--navy-900); color: var(--paper); border-color: var(--navy-900); }
.pagination .disabled { color: #ccc; pointer-events: none; }

/* ── Filter Bar ────────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; align-items: center; }
.filter-label { font-weight: 700; font-size: 0.85rem; color: #666; margin-right: 0.25rem; }

.filter-form {
    align-items: flex-end; gap: 0.9rem; margin-bottom: 2rem;
    padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
.filter-form label {
    display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; color: #5a5a5a;
}
.filter-form select {
    min-width: 210px; padding: 0.65rem 0.9rem; border: 1px solid var(--line-strong);
    border-radius: 4px; font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
    background: #fff; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-form select:hover { border-color: #b5aea1; }
.filter-form select:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 3px var(--gold-050); }
.filter-form .btn { padding: 0.65rem 1.5rem; }

/* ── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumbs { display: flex; flex-wrap: wrap; list-style: none; gap: 0.4rem; font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.5rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: #ccc; }
.breadcrumbs a { color: var(--ink-faint); }
.breadcrumbs a:hover { color: var(--gold-600); }

/* ── Sidebar ───────────────────────────────────────────────── */
.article-sidebar { margin-top: 3rem; padding-top: 1.75rem; border-top: 2px solid var(--navy-900); }
.article-sidebar h3 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.related-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.related-list li { padding-bottom: 0.85rem; border-bottom: 1px solid var(--paper-dim); }
.related-list li:last-child { border-bottom: none; }
.related-list .related-title { font-weight: 600; font-size: 1rem; color: var(--navy-900); display: block; }
.related-list .related-title:hover { color: var(--gold-600); }
.related-list .related-date { font-size: 0.8rem; color: var(--ink-faint); }

/* ── About Page ────────────────────────────────────────────── */
.about-hero {
    background: var(--navy-950);
    color: var(--paper);
    padding: 3.5rem 1.5rem;
    text-align: center;
    margin: -3rem -1.5rem 3rem;
    border-radius: 0 0 8px 8px;
}
.about-hero h1 { color: var(--paper); margin-bottom: 0.4em; }
.about-hero p { color: rgba(250,249,246,0.8); max-width: 560px; margin: 0 auto; }

.about-section { margin-bottom: 2.75rem; }
.about-section p { max-width: 720px; }

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    list-style: none;
    margin-top: 1rem;
}
.principles-grid li {
    background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold-600);
    border-radius: 4px; padding: 1.25rem 1.4rem;
}
.principles-grid strong { display: block; font-family: var(--serif); color: var(--navy-900); font-size: 1.05rem; margin-bottom: 0.35rem; }

/* ── Trust / commitment panel (home) ──────────────────────── */
.trust-panel {
    margin-top: 1rem;
    padding: 3rem 2.5rem;
    background: var(--navy-950);
    border-radius: 8px;
    color: var(--paper);
    position: relative;
    overflow: hidden;
}
.trust-panel::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(212, 169, 60, 0.18) 1px, transparent 1px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(ellipse 60% 100% at 100% 0%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 100% at 100% 0%, #000 0%, transparent 70%);
}
.trust-panel-inner { position: relative; z-index: 1; }
.trust-panel h2 { color: var(--paper); text-align: center; font-size: 1.6rem; margin-bottom: 2rem; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 960px; margin: 0 auto; }
.trust-item { text-align: center; }
.trust-item .seal-icon { width: 34px; height: 34px; color: var(--gold-500); margin: 0 auto 0.9rem; }
.trust-item h3 { font-size: 1.05rem; color: var(--gold-500); margin-bottom: 0.5rem; }
.trust-item p { font-size: 0.92rem; color: rgba(250,249,246,0.75); margin-bottom: 0; }

@media (max-width: 768px) {
    .trust-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .trust-panel { padding: 2.25rem 1.5rem; }
}

/* ── Contact Form ──────────────────────────────────────────── */
.contact-form-group { margin-bottom: 1.25rem; }
.contact-form-group label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.92rem; }
.contact-form-group input, .contact-form-group textarea {
    width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--line-strong);
    border-radius: 4px; font-family: var(--sans); font-size: 1rem; background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form-group input:focus, .contact-form-group textarea:focus {
    outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 3px var(--gold-050);
}
.contact-form-group textarea { min-height: 160px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; }

/* ── Validation ────────────────────────────────────────────── */
.field-validation-error { color: #c53030; font-size: 0.85rem; font-weight: 500; display: block; margin-top: 0.3rem; }
.input-validation-error { border-color: #c53030 !important; box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1) !important; }
.validation-summary {
    background: #fff5f5; border: 1px solid #feb2b2; border-radius: 6px;
    padding: 1rem 1.25rem; margin-bottom: 1.5rem; color: #c53030; font-weight: 500; max-width: 600px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.75rem 1.5rem; border: none; border-radius: 4px;
    font-family: var(--sans); font-size: 0.94rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
    letter-spacing: 0.01em;
}
.btn-primary { background: var(--gold-600); color: #fff; }
.btn-primary:hover { background: #9c7a23; color: #fff; text-decoration: none; }
.btn-navy { background: var(--navy-900); color: var(--paper); }
.btn-navy:hover { background: var(--navy-800); color: var(--paper); text-decoration: none; }
.btn-outline { background: transparent; border: 1.5px solid rgba(250,249,246,0.55); color: var(--paper); }
.btn-outline:hover { background: rgba(250,249,246,0.1); border-color: var(--paper); color: var(--paper); text-decoration: none; }

/* ── Empty State ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--ink-faint); }
.empty-state h3 { color: var(--ink-soft); margin-bottom: 0.5rem; }

/* ── Success Message ───────────────────────────────────────── */
.success-message {
    background: #ecfdf5; border: 1px solid #6ee7b7; border-radius: 6px;
    padding: 1rem 1.25rem; margin-bottom: 1.5rem; color: #065f46; font-weight: 500;
}

/* ── Error Page ────────────────────────────────────────────── */
.error-page { text-align: center; padding: 4rem 1.5rem; }
.error-page h1 { font-size: 3rem; color: var(--navy-900); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--navy-950); color: #c4c8d0; padding: 3.5rem 1.5rem 1.5rem; margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-logo { display: block; width: clamp(100px, 16vw, 130px); height: auto; object-fit: contain; margin-bottom: 0.85rem; }
.footer-brand p { font-size: 0.9rem; opacity: 0.75; max-width: 30ch; }
.footer-links h4, .footer-contact h4, .footer-feed h4 {
    color: var(--paper); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 0.9rem; font-family: var(--sans); font-weight: 700;
}
.footer-links ul { list-style: none; margin: 0; }
.footer-links a { color: #c4c8d0; font-size: 0.9rem; display: block; padding: 0.25rem 0; }
.footer-links a:hover { color: var(--gold-500); text-decoration: none; }
.footer-contact address { font-style: normal; font-size: 0.9rem; }
.footer-contact a { color: #c4c8d0; }
.footer-contact a:hover { color: var(--gold-500); }
.feed-link { display: inline-flex; align-items: center; gap: 0.35rem; color: #c4c8d0; font-size: 0.9rem; }
.feed-link:hover { color: var(--gold-500); text-decoration: none; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem;
    text-align: center; font-size: 0.82rem; opacity: 0.6;
}

.list-style-none { list-style: none; padding: 0; margin: 0; }

/* ── Scroll reveal (progressive enhancement, JS toggles .is-visible) ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    html { font-size: 16px; }
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.4rem; }
    .mobile-nav-toggle { display: flex; }
    .primary-nav {
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: var(--navy-950); padding: 5rem 1.5rem 2rem; z-index: 100;
    }
    .primary-nav.open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 0.5rem; align-items: stretch; }
    .primary-nav a { font-size: 1.15rem; padding: 0.75rem 0; display: block; border-bottom: 1px solid rgba(255,255,255,0.1); border-radius: 0; }
    .primary-nav a::after { display: none; }
    .primary-nav .nav-cta { margin-left: 0; text-align: center; margin-top: 0.5rem; }
    .card-grid { grid-template-columns: 1fr; }
    .card-grid.featured { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .container, .container-wide { padding: 2rem 1rem 2.5rem; }
    .article-header h1 { font-size: 1.8rem; }
    .section-header { flex-direction: column; gap: 0.5rem; }
    .about-hero { margin: -2rem -1rem 2.5rem; padding: 2.75rem 1.25rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .mobile-nav-toggle, .skip-link, .hero::before, .trust-panel::before { display: none; }
    body { background: #fff; color: #000; }
    a { color: #000; text-decoration: underline; }
}
