/* ═══════════════════════════════════════════════
   SAJBER RADAR — Dark Cyber Theme
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Core palette */
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1520;
    --bg-card: #131a2b;
    --bg-card-hover: #182035;
    --bg-elevated: #1a2332;

    /* Borders */
    --border-subtle: rgba(56, 189, 248, 0.08);
    --border-medium: rgba(56, 189, 248, 0.15);
    --border-accent: rgba(56, 189, 248, 0.3);

    /* Text */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #38bdf8;

    /* Accent colors */
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.15);
    --green: #34d399;
    --green-glow: rgba(52, 211, 153, 0.15);
    --red: #f87171;
    --orange: #fb923c;
    --yellow: #fbbf24;
    --purple: #a78bfa;

    /* Severity */
    --severity-low: #34d399;
    --severity-low-bg: rgba(52, 211, 153, 0.1);
    --severity-medium: #fbbf24;
    --severity-medium-bg: rgba(251, 191, 36, 0.1);
    --severity-high: #fb923c;
    --severity-high-bg: rgba(251, 146, 60, 0.1);
    --severity-critical: #f87171;
    --severity-critical-bg: rgba(248, 113, 113, 0.1);

    /* Layout */
    --max-width: 1320px;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 0 20px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 30px rgba(34, 211, 238, 0.08);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--text-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-accent); }

/* ─── Background Grid ─── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(34, 211, 238, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(34, 211, 238, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Layout ─── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ─── Header / Nav ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-logo /* radar-icon: svg-friendly */
.radar-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.radar-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-logo .radar-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,0.3) 30deg, transparent 60deg);
    animation: radarSweep 3s linear infinite;
}

@keyframes radarSweep {
    to { transform: rotate(360deg); }
}

.nav-logo .radar-icon svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
}

.nav-logo span.accent { color: var(--cyan); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
}

/* ─── Hero Section ─── */
.hero {
    padding: 24px 0 24px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.hero-main {
    position: relative;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    transition: border-color 0.3s;
}

.hero-card:hover { border-color: var(--border-accent); }

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.1) 0%, rgba(10, 14, 23, 0.85) 100%);
    z-index: 1;
}

.hero-card > * { position: relative; z-index: 2; }

.hero-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-title {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-title a { color: var(--text-primary); }
.hero-title a:hover { color: var(--cyan); }

.hero-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 600px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Hero sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.radar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.radar-widget h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.radar-visual {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
    position: relative;
    border-radius: 50%;
    border: 1px solid var(--border-medium);
    background: radial-gradient(circle, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
}

.radar-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 211, 238, 0.2) 40deg, transparent 80deg);
    animation: radarSweep 4s linear infinite;
}

.radar-visual .ring {
    position: absolute;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
}

.radar-visual .ring-1 { inset: 20%; }
.radar-visual .ring-2 { inset: 40%; }
.radar-visual .crosshair-h, .radar-visual .crosshair-v {
    position: absolute;
    background: var(--border-subtle);
}
.radar-visual .crosshair-h { top: 50%; left: 0; right: 0; height: 1px; }
.radar-visual .crosshair-v { left: 50%; top: 0; bottom: 0; width: 1px; }

/* radar-stats: 3col */
.radar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px 8px;
}

.radar-stat {
    text-align: center;
}

.radar-stat .number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
}

.radar-stat .label {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
    line-height: 1.15;
    min-height: 2.3em;
}

/* ─── Alert Strip ─── */
.alert-strip {
    background: linear-gradient(90deg, var(--severity-critical-bg), rgba(248, 113, 113, 0.02));
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
}

.alert-strip .alert-icon {
    width: 20px;
    height: 20px;
    color: var(--red);
    flex-shrink: 0;
}

.alert-strip .alert-text {
    color: var(--text-secondary);
    flex: 1;
}

.alert-strip .alert-text strong {
    color: var(--red);
}

/* ─── Section Headers ─── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-top: 32px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 20px;
    background: var(--cyan);
    border-radius: 2px;
}

.section-link {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover { color: var(--cyan); }

/* ─── Article Cards ─── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.article-card .card-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-card .card-title {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.article-card .card-title a {
    color: var(--text-primary);
    transition: color 0.2s;
}

.article-card .card-title a:hover { color: var(--cyan); }

.article-card .card-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.card-countries {
    display: flex;
    gap: 4px;
}

/* ─── Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-severity { border: 1px solid; }

.severity-low {
    color: var(--severity-low);
    border-color: rgba(52, 211, 153, 0.3);
    background: var(--severity-low-bg);
}

.severity-medium {
    color: var(--severity-medium);
    border-color: rgba(251, 191, 36, 0.3);
    background: var(--severity-medium-bg);
}

.severity-high {
    color: var(--severity-high);
    border-color: rgba(251, 146, 60, 0.3);
    background: var(--severity-high-bg);
}

.severity-critical {
    color: var(--severity-critical);
    border-color: rgba(248, 113, 113, 0.3);
    background: var(--severity-critical-bg);
    animation: criticalPulse 2s ease-in-out infinite;
}

@keyframes criticalPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
    50% { box-shadow: 0 0 8px 2px rgba(248, 113, 113, 0.15); }
}

.badge-category {
    color: var(--text-accent);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.badge-breaking {
    color: #fff;
    background: var(--red);
    animation: criticalPulse 2s ease-in-out infinite;
}

.badge-status {
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.badge-tag {
    color: var(--text-muted);
    background: rgba(100, 116, 139, 0.08);
    border: 1px solid rgba(100, 116, 139, 0.12);
    font-size: 0.68rem;
    text-transform: none;
    font-weight: 500;
}

/* ─── Country Navigation ─── */
.countries-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 24px 0;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.country-chip:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.country-chip .flag { font-size: 1rem; }

/* ─── Category Cards ─── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.category-card:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.category-card .cat-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ─── Article Detail Page ─── */
.article-page {
    padding: 40px 0 80px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.article-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.article-content .article-header { margin-bottom: 32px; }

.article-content .article-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.article-content .article-summary {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-content .article-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--text-primary);
    padding-left: 14px;
    border-left: 3px solid var(--cyan);
}

.article-body p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
}

.article-body ul {
    margin: 12px 0;
    padding-left: 24px;
}

.article-body li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-body strong { color: var(--text-primary); }

.article-body code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--cyan);
}

/* Article sidebar */
.article-sidebar {
    position: sticky;
    top: 80px;
}

.threat-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.threat-panel h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.threat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
}

.threat-row .label { color: var(--text-muted); }
.threat-row .value { color: var(--text-primary); font-weight: 500; }

.threat-row .value.mono {
    font-family: 'JetBrains Mono', monospace;
    color: var(--cyan);
}

.editor-note {
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 24px;
}

.editor-note h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cyan);
    margin-bottom: 8px;
}

.editor-note p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Sources List ─── */
.sources-list {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.sources-list h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.sources-list a {
    display: block;
    font-size: 0.85rem;
    padding: 6px 0;
    color: var(--text-accent);
}

/* ─── Footer ─── */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 360px;
}

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─── Page Header (category/country) ─── */
.page-header {
    padding: 40px 0 8px;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ─── 404 ─── */
.error-page {
    text-align: center;
    padding: 120px 0;
}

.error-page h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    color: var(--cyan);
    opacity: 0.3;
}

.error-page p {
    color: var(--text-secondary);
    margin-top: 12px;
}

/* ─── Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-card { animation: fadeInUp 0.4s ease both; }
.article-card:nth-child(2) { animation-delay: 0.05s; }
.article-card:nth-child(3) { animation-delay: 0.1s; }
.article-card:nth-child(4) { animation-delay: 0.15s; }
.article-card:nth-child(5) { animation-delay: 0.2s; }
.article-card:nth-child(6) { animation-delay: 0.25s; }


/* ─── Twemoji Flag Sizing ─── */
img.emoji {
    height: 1.2em;
    width: 1.2em;
    margin: 0 0.05em 0 0.1em;
    vertical-align: -0.15em;
    display: inline-block;
}
.country-chip img.emoji {
    height: 1.1em;
    width: 1.1em;
}


/* ─── Flag Icons (flagcdn.com) ─── */
.flag-icon {
    display: inline-block;
    vertical-align: -2px;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(255,255,255,0.15);
}
.country-chip .flag-icon {
    width: 20px;
    height: 15px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-sidebar { flex-direction: row; }
    .radar-widget { flex: 1; }
    .alert-strip { flex: 1; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-subtle);
        padding: 16px;
    }
    .hero-card { min-height: 280px; padding: 24px; }
    .hero-title { font-size: 1.4rem; }
    .hero-sidebar { flex-direction: column; }
    .articles-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .article-content { padding: 24px; }
    .article-content .article-title { font-size: 1.35rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* lock radar-icon svg sizing */
.nav-logo .radar-icon svg,
.footer-brand .radar-icon svg { width: 100% !important; height: 100% !important; }

/* kill legacy radar sweep on logo (::before leaked outside icon) */
.nav-logo .radar-icon::before,
.footer-brand .radar-icon::before { content: none !important; display: none !important; animation: none !important; }

/* nav-search */
.nav-search {
    position: relative;
    margin-left: 20px;
    min-width: 220px;
}
.nav-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.15s ease;
}
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search-input:focus {
    border-color: var(--cyan);
    background: rgba(34, 211, 238, 0.06);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.12);
}
.nav-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(5, 11, 20, 0.98);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    max-height: 380px;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(8px);
}
.nav-search-results:empty { display: none; }
.nav-search-item {
    display: block;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.12s ease;
}
.nav-search-item:hover { background: rgba(34, 211, 238, 0.08); }
.nav-search-item:last-child { border-bottom: none; }
.nav-search-title {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 3px;
}
.nav-search-meta {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.nav-search-empty {
    padding: 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* push nav-logo left, group links+search right */
.nav-inner .nav-logo { margin-right: auto; }
.nav-inner .nav-links { margin-left: 0; }


/* article enhancements */

/* Tag chips at bottom of article */
.tag-chips-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-medium);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.tag-chips-bottom .tag-chips-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 6px;
}
.tag-chip-link {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.15s ease;
}
.tag-chip-link:hover {
    background: rgba(34, 211, 238, 0.15);
    border-color: var(--cyan);
}

/* Tag cloud on homepage */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
}
.tag-cloud-item {
    color: var(--cyan);
    text-decoration: none;
    transition: opacity 0.15s ease;
    line-height: 1.5;
}
.tag-cloud-item:hover {
    opacity: 0.7;
    text-decoration: underline;
}
.tag-cloud-item .tag-count {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-left: 2px;
}

/* CVSS score colors */
.cvss-score-val {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}
.cvss-low      { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.cvss-medium   { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.cvss-high     { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.cvss-critical { background: rgba(239, 68, 68, 0.15); color: #ef4444; }


/* === Phase 2 #8 Podtask 6 v2: members_only === */
.badge-members {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-weight: 600;
}
.members-only-teaser {
  font-size: 1.05em;
  line-height: 1.65;
  margin: 0 0 24px 0;
  padding-bottom: 24px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}
.members-only-gate {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(245, 158, 11, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  margin: 16px 0;
}
.members-only-lock {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.85;
}
.members-only-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #fbbf24;
}
.members-only-text {
  font-size: 0.95em;
  line-height: 1.6;
  margin: 0 0 22px 0;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.members-only-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.members-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  transition: transform 0.1s, opacity 0.15s;
}
.members-btn:hover { transform: translateY(-1px); }
.members-btn-primary {
  background: #22d3ee;
  color: #0a0a0a;
}
.members-btn-primary:hover { opacity: 0.9; }
.members-btn-secondary {
  background: transparent;
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: #22d3ee;
}
.members-btn-secondary:hover {
  background: rgba(34, 211, 238, 0.1);
}
@media (max-width: 600px) {
  .members-only-gate { padding: 24px 16px; }
  .members-only-lock { font-size: 40px; }
}
