/* ── The Nexus — Public Intelligence Site ──────────────── */

:root, [data-theme="dark"] {
    --bg: #08090c;
    --bg-card: #10131a;
    --bg-card-hover: #161b26;
    --bg-surface: #0d0f14;
    --border: #1a1f2e;
    --border-accent: #2a3040;
    --accent: #4f9cf7;
    --accent-dim: #4f9cf744;
    --accent-glow: #4f9cf722;
    --green: #34d399;
    --green-dim: #34d39944;
    --red: #f87171;
    --red-dim: #f8717144;
    --yellow: #fbbf24;
    --yellow-dim: #fbbf2444;
    --purple: #a78bfa;
    --orange: #fb923c;
    --text: #c9d1d9;
    --text-bright: #f0f6fc;
    --text-dim: #484f58;
    --text-muted: #6e7681;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
    --header-bg: rgba(8, 9, 12, 0.82);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-width: 1200px;
    --radius: 8px;
}

[data-theme="light"] {
    --bg: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --bg-surface: #f0f2f5;
    --border: #d0d7de;
    --border-accent: #b0b8c1;
    --accent: #0969da;
    --accent-dim: #0969da44;
    --accent-glow: #0969da15;
    --green: #1a7f37;
    --green-dim: #1a7f3744;
    --red: #cf222e;
    --red-dim: #cf222e44;
    --yellow: #9a6700;
    --yellow-dim: #9a670044;
    --purple: #8250df;
    --orange: #bc4c00;
    --text: #1f2328;
    --text-bright: #000000;
    --text-dim: #656d76;
    --text-muted: #6e7681;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
    --header-bg: rgba(248, 249, 250, 0.82);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── View transitions ──────────────────────────────────── */

.view {
    display: none;
}

.view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.view.view-enter {
    animation: viewIn 0.3s ease forwards;
}

@keyframes viewIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll-triggered fade-in ──────────────────────────── */

.fade-in-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* ── Skeleton loading ──────────────────────────────────── */

.skeleton-block {
    background: linear-gradient(90deg, var(--border) 25%, var(--bg-card-hover) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card { pointer-events: none; }

/* ── Header — backdrop blur ────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    font-size: 22px;
    color: var(--accent);
    line-height: 1;
}

.logo-mark-svg {
    vertical-align: middle;
    border-radius: 4px;
    filter: drop-shadow(0 0 6px var(--accent-dim));
}

.footer-logo-svg {
    vertical-align: middle;
    border-radius: 3px;
    margin-right: 4px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-bright);
}

/* ── Nav — animated underline ──────────────────────────── */

.main-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px 10px;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.2s;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.25s ease, left 0.25s ease;
}

.nav-btn:hover {
    color: var(--text);
}

.nav-btn.active {
    color: var(--accent);
}

.nav-btn.active::after {
    width: 60%;
    left: 20%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-toggle, .rss-link, .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.search-toggle:hover, .rss-link:hover, .theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
}

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
}

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

.meta-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

/* ── Search bar ────────────────────────────────────────── */

.search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid transparent;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
}

.search-bar.open {
    max-height: 60px;
    border-bottom-color: var(--border);
}

.search-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
}

.search-bar-inner input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 15px;
}

.search-bar-inner input::placeholder { color: var(--text-dim); }

.search-kbd {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
    cursor: pointer;
}

/* ── Content ───────────────────────────────────────────── */

.content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 24px 72px;
    min-height: calc(100vh - 60px - 60px);
}

.section-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.loading-pulse {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 48px 0;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

/* ── Briefing View — gradient top border ───────────────── */

.briefing-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 48px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.briefing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--purple), var(--green));
    border-radius: 12px 12px 0 0;
}

.briefing-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.briefing-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.briefing-body {
    color: var(--text);
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-wrap;
}

.briefing-body strong, .briefing-body b {
    color: var(--text-bright);
    font-weight: 600;
}

.briefing-meta {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

/* ── Share bar ─────────────────────────────────────────── */

.share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.share-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.share-btn:hover { color: var(--accent); border-color: var(--accent-dim); }

.share-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    opacity: 0;
}

.article-card:hover .share-btn-sm { opacity: 1; }
.share-btn-sm:hover { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-glow); }

.article-share {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    margin-top: 4px;
}

/* ── Briefing archive ──────────────────────────────────── */

.briefing-archive h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.archive-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.archive-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    text-decoration: none;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.archive-link:hover, .archive-link.active {
    color: var(--accent);
    border-color: var(--accent-dim);
    background: var(--accent-glow);
}

/* ── Feed View ─────────────────────────────────────────── */

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.category-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cat-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}

.cat-btn:hover { color: var(--text); border-color: var(--border-accent); }
.cat-btn.active { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-glow); }

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

/* ── Article cards — hover shadow ──────────────────────── */

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-card);
}

.article-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.article-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.article-category {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 3px 8px;
    border-radius: 4px;
}

.article-sentiment {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.article-sentiment.positive { background: var(--green); box-shadow: 0 0 6px var(--green-dim); }
.article-sentiment.negative { background: var(--red); box-shadow: 0 0 6px var(--red-dim); }
.article-sentiment.neutral { background: var(--yellow); box-shadow: 0 0 6px var(--yellow-dim); }

.article-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-bright);
}

.article-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.article-title a:hover { color: var(--accent); }

.article-summary {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

.article-source {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

.article-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

.article-entities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.entity-pill {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.2s;
}

.entity-pill.person { border-color: var(--purple); color: var(--purple); }
.entity-pill.organization { border-color: var(--accent); color: var(--accent); }
.entity-pill.place { border-color: var(--orange); color: var(--orange); }
.entity-pill.topic { border-color: var(--green); color: var(--green); }

.load-more {
    display: block;
    margin: 32px auto 0;
    padding: 10px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more:hover { border-color: var(--accent-dim); color: var(--accent); }

/* ── Entities View ─────────────────────────────────────── */

.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.entity-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
}

.entity-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.entity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.entity-icon.person { background: #a78bfa22; color: var(--purple); }
.entity-icon.organization { background: #4f9cf722; color: var(--accent); }
.entity-icon.place { background: #fb923c22; color: var(--orange); }
.entity-icon.topic { background: #34d39922; color: var(--green); }

.entity-info { flex: 1; min-width: 0; }

.entity-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entity-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

.entity-count {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ── Conflicts View ────────────────────────────────────── */

.conflict-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--yellow);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
}

.conflict-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.conflict-card.major { border-left-color: var(--red); }
.conflict-card.minor { border-left-color: var(--yellow); }
.conflict-card.nuance { border-left-color: var(--accent); }

.conflict-severity {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
}

.conflict-card.major .conflict-severity { color: var(--red); background: var(--red-dim); }
.conflict-card.minor .conflict-severity { color: var(--yellow); background: var(--yellow-dim); }
.conflict-card.nuance .conflict-severity { color: var(--accent); background: var(--accent-dim); }

.conflict-desc {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.conflict-sources {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.conflict-source {
    padding: 12px 16px;
    background: var(--bg-surface);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.conflict-source-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.conflict-source-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.conflict-source-title a { color: inherit; text-decoration: none; }
.conflict-source-title a:hover { color: var(--accent); }

.conflict-source-feed {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

.conflict-entities {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

/* ── Article Detail View ───────────────────────────────── */

.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 48px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.article-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 12px 12px 0 0;
}

.article-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 24px;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
}

.article-detail-back:hover { color: var(--accent); }

.article-detail-category {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 16px;
}

.article-detail-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-detail-summary {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 24px;
}

.article-detail-entities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.article-detail-entities .entity-pill {
    font-size: 11px;
    padding: 4px 12px;
}

.article-detail-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--accent-glow);
    border: 1px solid var(--accent-dim);
    border-radius: 6px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.article-detail-source-link:hover {
    background: var(--accent-dim);
    color: var(--text-bright);
}

.article-detail-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .article-detail-card { padding: 24px 20px; }
    .article-detail-title { font-size: 22px; }
}

/* ── About View ────────────────────────────────────────── */

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 32px;
    margin-top: 0;
    letter-spacing: -0.5px;
}

#view-privacy,
#view-about,
#view-article {
    padding-top: 0;
}

.about-body p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text);
}

.about-body h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-bright);
    margin: 36px 0 16px;
    letter-spacing: -0.3px;
}

.about-body a { color: var(--accent); text-decoration: none; }
.about-body a:hover { text-decoration: underline; }

.source-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.source-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
}

/* ── Footer ────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-dim);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

.footer-sep { color: var(--border); }

.footer-rss {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 11px;
}

.footer-rss:hover { color: var(--accent); }

/* ── Empty state ───────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-dim);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state-text {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.empty-state-sub {
    font-size: 13px;
    color: var(--text-dim);
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 768px) {
    .header-inner { padding: 0 16px; gap: 12px; }
    .header-meta { display: none; }
    .content { padding: 20px 16px 48px; }
    .briefing-hero { padding: 24px 20px; }
    .briefing-title { font-size: 22px; }
    .feed-grid { grid-template-columns: 1fr; }
    .entity-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .conflict-sources { grid-template-columns: 1fr; }
    .nav-btn { padding: 6px 10px 8px; font-size: 12px; }
    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 15px; letter-spacing: 2px; }
    .main-nav { gap: 2px; }
    .nav-btn { padding: 6px 8px 8px; font-size: 11px; }
    .search-toggle, .rss-link { display: none; }
}
