@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-page: #ffffff;
    --bg-surface: #f8fafc;
    --bg-surface-alt: #f1f5f9;
    --border-light: #e2e8f0;
    --border-dark: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --accent: #dc2626;
    --accent-dark: #991b1b;
    --accent-light: #fef2f2;
    --accent-border: #fecaca;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'PT Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

html {
    background-color: #ffffff;
    color: #0f172a;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background-color: var(--bg-surface-alt);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    color: #0f172a;
}

/* ==================== HEADER ==================== */

.site-topbar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.78rem;
    padding: 6px 20px;
    border-bottom: 1px solid #1e293b;
}

.topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-inner a {
    color: #94a3b8;
}

.topbar-inner a:hover {
    color: #ffffff;
}

.site-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.nav-logo {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    object-fit: cover;
    background: #0f172a;
    flex-shrink: 0;
}

.nav-brand-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    display: block;
}

.nav-brand-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-menu li a {
    display: block;
    padding: 6px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.nav-menu li a:hover {
    background: var(--bg-surface);
    color: #0f172a;
}

.nav-menu li a.active {
    background: var(--accent-light);
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #0f172a;
    padding: 4px;
}

.mobile-nav {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 16px 20px;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none !important;
}

.mobile-nav a.active {
    background: var(--accent-light);
    color: var(--accent);
}

/* ==================== HERO / HEADER BLOCK ==================== */

.dossier-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 48px 20px 40px;
}

.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.hero-author-bar {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-author-bar strong {
    color: #0f172a;
}

.hero-emblem-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.hero-emblem-box img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin: 0 auto 10px;
    border: 1px solid var(--border-light);
}

.hero-emblem-box .caption {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.hero-emblem-box a {
    font-size: 0.82rem;
    font-weight: 600;
}

/* ==================== 4 CATEGORIES GRID ==================== */

.main-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 44px 20px 70px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0f172a;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}

.category-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    border-color: var(--border-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-num {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
}

.tag-published {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.tag-wip {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}

.card-action.disabled {
    color: var(--text-muted);
}

/* ==================== SUMMARY CALLOUT ==================== */

.dossier-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 24px 28px;
}

.dossier-summary h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.dossier-summary p {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== LONGREAD ARTICLE ==================== */

.article-body-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.article-top {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.article-top-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 10px;
}

.article-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 16px;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-byline strong {
    color: #0f172a;
}

.article-content section {
    margin-bottom: 40px;
}

.article-content h2 {
    font-size: 1.38rem;
    font-weight: 700;
    color: #0f172a;
    margin: 36px 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    margin: 24px 0 10px;
}

.article-content p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #1e293b;
    margin-bottom: 18px;
}

.article-content p strong {
    color: #0f172a;
}

.lead-p {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    font-weight: 500;
    color: #0f172a !important;
}

/* ==================== EVIDENCE FIGURES ==================== */

.doc-figure {
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    overflow: hidden;
    margin: 26px 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doc-figure:hover {
    border-color: #475569;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.doc-figure img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #f8fafc;
    display: block;
}

.doc-figure figcaption {
    padding: 10px 16px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.fig-label {
    font-weight: 700;
    color: #0f172a;
}

.fig-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.figure-pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 26px 0;
}

.figure-pair .doc-figure {
    margin: 0;
}

/* ==================== DATA BLOCKS & DOSSIER ==================== */

.data-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 18px 20px;
    margin: 20px 0;
}

.data-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.data-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 8px;
}

.data-item:last-child {
    border-bottom: none;
}

.data-name {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 130px;
}

.data-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    justify-content: flex-end;
}

.btn-copy {
    background: #ffffff;
    border: 1px solid var(--border-dark);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-copy:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Quote */
.quote-banner {
    background: var(--bg-surface);
    border-left: 4px solid var(--accent);
    padding: 18px 22px;
    margin: 24px 0;
    border-radius: 0 6px 6px 0;
}

.quote-banner .speaker {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.quote-banner blockquote {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    line-height: 1.65;
    color: #1e293b;
    font-style: italic;
}

/* Dossier Card */
.dossier-card {
    background: #ffffff;
    border: 2px solid #0f172a;
    border-radius: 6px;
    overflow: hidden;
    margin: 26px 0;
}

.dossier-card-head {
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
}

.dossier-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dossier-field {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px;
    font-size: 0.92rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.dossier-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.field-label {
    font-weight: 600;
    color: var(--text-muted);
}

.field-val {
    color: #0f172a;
    font-weight: 500;
}

/* Verdict */
.alert-verdict {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: 6px;
    margin: 30px 0;
}

.alert-verdict h3 {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.alert-verdict p {
    color: #7f1d1d;
    font-size: 0.94rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* WIP Status */
.wip-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    margin: 36px 0;
}

.wip-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.wip-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 20px;
}

/* ==================== LIGHTBOX & TOAST ==================== */

.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.92);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img-el {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background: #ffffff;
    object-fit: contain;
}

.lightbox-caption-el {
    margin-top: 12px;
    font-size: 0.88rem;
    color: #f1f5f9;
    text-align: center;
    max-width: 680px;
}

.lightbox-btn-close {
    position: absolute;
    top: 18px;
    right: 24px;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.toast-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.toast-box.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== FOOTER ==================== */

.site-footer-bar {
    background: #0f172a;
    color: #cbd5e1;
    padding: 44px 20px;
    border-top: 1px solid #1e293b;
}

.footer-content {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid #334155;
    object-fit: cover;
}

.footer-info h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-info p {
    font-size: 0.78rem;
    color: #94a3b8;
}

.footer-right {
    text-align: right;
    font-size: 0.82rem;
    color: #94a3b8;
}

.footer-right strong {
    color: #ffffff;
}

.footer-right a {
    color: #f87171;
    font-weight: 600;
}

.btn-link {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
}

.btn-link-dark {
    background: #0f172a;
    color: #ffffff !important;
}

.btn-link-dark:hover {
    background: #1e293b;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 820px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-emblem-box {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .hero-emblem-box img {
        margin: 0;
        width: 72px;
        height: 72px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .figure-pair {
        grid-template-columns: 1fr;
    }

    .dossier-field {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 680px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        text-align: left;
    }
}
