/* ============================================
   FRAMEGATE Design System v3 - Website Theme
   Based on CFG_Colors.yaml & CFG_Typography.yaml
   ============================================ */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS Variables (from YAML configs)
   ============================================ */
:root {
    /* Brand Primary (Magenta) */
    --primary-50: #fdeef3;
    --primary-100: #fbdce7;
    --primary-200: #f7b5cb;
    --primary-300: #f28aaf;
    --primary-400: #ec5691;
    --primary-500: #e7227a;
    --primary-600: #cf1e6d;
    --primary-700: #b71a60;
    --primary-800: #9f1653;
    --primary-900: #871246;
    --primary-950: #5a0c2f;
    
    /* Brand Secondary (Red) */
    --secondary-50: #fef3f2;
    --secondary-100: #fee4e2;
    --secondary-200: #fecaca;
    --secondary-300: #fca5a5;
    --secondary-400: #f87171;
    --secondary-500: #ef4444;
    --secondary-600: #dc2626;
    --secondary-700: #b91c1c;
    --secondary-800: #991b1b;
    --secondary-900: #7f1d1d;
    --secondary-950: #450a0a;
    
    /* Semantic Colors */
    --success-light: #10b981;
    --success: #059669;
    --success-dark: #047857;
    --warning-light: #fbbf24;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --error-light: #f87171;
    --error: #ef4444;
    --error-dark: #dc2626;
    --info-light: #60a5fa;
    --info: #3b82f6;
    --info-dark: #2563eb;
    
    /* System Colors */
    --bg-primary: #f7f8fc;
    --bg-secondary: #f0f1f5;
    --bg-tertiary: #e8e9ed;

    /* Brand Gray (for buttons) */
    --brand-gray: #414247;
    --text-primary: #111112;
    --text-secondary: #525252;
    --text-tertiary: #737373;
    --text-disabled: #a3a3a3;
    --border-light: #e5e5e5;
    --border-default: #d4d4d4;
    --border-dark: #a3a3a3;
    
    /* Neutral Scale */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --neutral-950: #0a0a0a;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
}

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

/* GLOBAL LINK RESET - No purple, no underlines anywhere */
a,
a:link,
a:visited {
    text-decoration: none !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Navigation
   ============================================ */
nav {
    background: var(--brand-gray);
    border-bottom: none;
    padding: var(--space-4) var(--space-6);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo,
.logo:link,
.logo:visited {
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    color: var(--primary-500) !important;
    text-decoration: none !important;
    letter-spacing: -0.025em;
}

.logo:hover {
    color: #ffffff;
    text-decoration: none !important;
}

.nav-links {
    display: flex;
    gap: var(--space-8);
}

.nav-links a,
.nav-links a:link,
.nav-links a:visited {
    text-decoration: none !important;
    color: var(--primary-500);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    text-decoration: none !important;
    color: #ffffff;
}

.nav-links a.active,
.nav-links a.active:link,
.nav-links a.active:visited,
.nav-links a.active:hover {
    text-decoration: none !important;
    color: #ffffff;
}

/* ── Hamburger Button (Mobile) ── */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-500);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Dropdown Navigation (Desktop — Two-Level Hover) ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
    margin-bottom: -0.5rem;
}

.nav-dropdown > a::after {
    content: '▾';
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Level 1: Research Areas list */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gray);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: var(--space-2) 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Invisible bridge to prevent hover gap */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
}

/* Category item (hover triggers submenu) */
.dropdown-category {
    position: relative;
}

.dropdown-category .dropdown-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    color: var(--primary-400);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-category .dropdown-section:hover {
    background: rgba(231, 34, 122, 0.1);
    color: #ffffff;
}

.dropdown-category .chevron {
    font-size: 1em;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.dropdown-category:hover .chevron {
    opacity: 1;
}

/* Level 2: Articles submenu (appears on hover) */
.dropdown-submenu {
    position: absolute;
    left: 100%;
    top: -2px;
    background: var(--brand-gray);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: var(--space-2) 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    pointer-events: none;
}

.dropdown-category:hover .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-submenu a {
    display: block;
    padding: var(--space-2) var(--space-4);
    color: var(--primary-400);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dropdown-submenu a:hover {
    background: rgba(231, 34, 122, 0.15);
    color: #ffffff;
}

.dropdown-submenu a.active {
    color: #ffffff;
}

.submenu-empty {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    color: var(--neutral-500);
    font-style: italic;
}

/* Legacy dropdown styles (kept for compatibility) */
.dropdown-menu a,
.dropdown-menu a:link,
.dropdown-menu a:visited {
    text-decoration: none !important;
    color: var(--primary-400);
}

.dropdown-menu a:hover {
    text-decoration: none !important;
}

.dropdown-menu a.active,
.dropdown-menu a.active:link,
.dropdown-menu a.active:visited,
.dropdown-menu a.active:hover {
    text-decoration: none !important;
    color: #ffffff;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: var(--space-2) 0;
}

/* ============================================
   Hero Section (Homepage)
   ============================================ */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16) var(--space-6);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.hero-content h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: -0.025em;
    line-height: var(--leading-tight);
}

.tagline {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    font-weight: var(--font-normal);
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.btn,
.btn:link,
.btn:visited {
    padding: var(--space-3) var(--space-6);
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--brand-gray);
    color: var(--primary-500);
}

.btn-primary:hover {
    background: var(--neutral-800);
    color: var(--primary-400);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-gray);
    border: 1px solid var(--brand-gray);
}

.btn-secondary:hover {
    background: var(--brand-gray);
    color: var(--primary-500);
}

/* ============================================
   Content Pages (GEO-optimized structure)
   ============================================ */
.content-page {
    flex: 1;
    padding: var(--space-16) var(--space-6);
    background: var(--bg-primary);
}

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

/* H1 - Main Question (GEO) */
.content-page h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
    line-height: var(--leading-tight);
}

/* Summary / Intro */
.summary {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--border-light);
    line-height: var(--leading-relaxed);
}

/* H2 - Sub-Questions (GEO) */
.content-page h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
    line-height: var(--leading-snug);
}

/* H3 - Sub-sections / FAQ Questions */
.content-page h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    line-height: var(--leading-snug);
}

/* H4 - Details */
.content-page h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-top: var(--space-6);
    margin-bottom: var(--space-2);
}

/* Paragraphs */
.content-page p {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
}

/* Lists */
.content-page ul,
.content-page ol {
    margin-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.content-page li {
    margin-bottom: var(--space-2);
    line-height: var(--leading-relaxed);
}

/* Strong / Bold */
.content-page strong {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

/* Links */
.content-page a,
.content-page a:link,
.content-page a:visited {
    color: var(--primary-600) !important;
    text-decoration: none !important;
    font-weight: var(--font-medium);
}

.content-page a:hover {
    text-decoration: underline !important;
    color: var(--primary-700) !important;
}

/* Practical Example Box */
.example-box {
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary-500);
    padding: var(--space-4) var(--space-6);
    margin: var(--space-6) 0;
    border-radius: 0 6px 6px 0;
}

.example-box p {
    margin-bottom: 0;
    font-size: var(--text-sm);
}

.example-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
    display: block;
}

/* FAQ Section */
.faq-section {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-light);
}

.faq-section h2 {
    margin-top: 0;
}

.faq-section h3 {
    font-size: var(--text-lg);
    margin-top: var(--space-6);
}

.faq-section p {
    color: var(--text-secondary);
}

/* Conclusion */
.conclusion {
    margin-top: var(--space-12);
    padding: var(--space-6);
    background: var(--neutral-900);
    color: #ffffff;
    border-radius: 8px;
}

.conclusion p {
    color: var(--neutral-200);
    margin-bottom: 0;
}

/* Sources */
.sources {
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-light);
}

.sources h2 {
    font-size: var(--text-lg);
    margin-top: 0;
    margin-bottom: var(--space-4);
}

.sources ul {
    list-style: none;
    margin-left: 0;
}

.sources li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.sources a,
.sources a:link,
.sources a:visited {
    font-style: italic;
    color: var(--primary-600) !important;
    text-decoration: none !important;
}

/* Screenshot Figures */
.screenshot-figure {
    margin: 2rem 0;
    padding: 0;
}

.screenshot-figure img {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.screenshot-caption {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.screenshot-caption strong {
    color: var(--text-secondary);
}

.screenshot-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.mvp-note {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--neutral-50);
    border-left: 3px solid var(--primary-500);
    border-radius: 0 6px 6px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-light);
}

.contact-section a,
.contact-section a:link,
.contact-section a:visited {
    color: var(--primary-600) !important;
    text-decoration: none !important;
}

/* Scientific Sources Section */
.sources-section {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-light);
}

.sources-section h2 {
    margin-top: 0;
    margin-bottom: var(--space-6);
}

.sources-section h3 {
    font-size: var(--text-lg);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.sources-section ol {
    margin-left: var(--space-8);
    margin-bottom: var(--space-4);
}

.sources-section li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    line-height: var(--leading-relaxed);
}

.sources-section em {
    font-style: italic;
}

/* ============================================
   Footer
   ============================================ */
footer {
    text-align: center;
    padding: var(--space-6);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

footer a,
footer a:link,
footer a:visited {
    color: var(--text-tertiary);
    text-decoration: none !important;
}

footer a:hover {
    color: var(--primary-600);
    text-decoration: none !important;
}

/* Separator dot */
footer span.sep {
    margin: 0 var(--space-2);
}

/* ============================================
   Framegate Discourse Intelligence — Artikel-Klassen
   Für HTML-Exports aus der Thesis Engine
   ============================================ */

/* Figure/Plot Container */
.figure-container {
    margin: var(--space-8) 0;
    text-align: center;
}

.figure-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-light);
    border-radius: 6px;
}

.figure-caption {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-2);
    font-style: italic;
}

/* Data Table */
.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
    font-size: var(--text-sm);
}

.content-page th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: var(--font-semibold);
    text-align: left;
    padding: var(--space-3) var(--space-4);
    border-bottom: 2px solid var(--primary-500);
}

.content-page td {
    padding: var(--space-2) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.content-page tr:hover td {
    background: var(--bg-secondary);
}

/* Metric Cards (Dashboard-Summaries) */
.metric-cards {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.metric-card {
    flex: 1;
    min-width: 120px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: var(--space-4) var(--space-6);
    text-align: center;
    background: #ffffff;
}

.metric-card .value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--primary-500);
}

.metric-card .label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Verdict Badge */
.verdict {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: 4px;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    text-transform: uppercase;
}

.verdict-supported    { background: #d1fae5; color: #065f46; }
.verdict-refuted      { background: #fee2e2; color: #991b1b; }
.verdict-ambiguous    { background: #fef3c7; color: #92400e; }
.verdict-insufficient { background: var(--bg-tertiary); color: var(--neutral-700); }

/* Disclaimer */
.disclaimer {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-12);
    border-radius: 6px;
}

/* ============================================
   Page Sections (Atlantic Pulse, multi-section layouts)
   ============================================ */
.page-section {
    padding: var(--space-16) var(--space-6);
}

.section-light {
    background: var(--bg-primary);
}

.section-gray {
    background: var(--neutral-100);
}

.section-dark {
    background: var(--neutral-800);
    color: var(--neutral-100);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: #ffffff;
}

.section-dark p {
    color: var(--neutral-200);
}

.section-dark a,
.section-dark a:link,
.section-dark a:visited {
    color: var(--primary-300) !important;
}

.section-dark a:hover {
    color: var(--primary-200) !important;
}

/* Container for section content */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: var(--text-4xl);
    }

    .tagline {
        font-size: var(--text-lg);
    }

    .content-page h1 {
        font-size: var(--text-3xl);
    }

    .content-page h2 {
        font-size: var(--text-xl);
    }

    .content-page {
        padding: var(--space-8) var(--space-4);
    }

    /* ── Hamburger visible on mobile ── */
    .hamburger {
        display: block;
    }

    /* ── Nav links: hidden by default, vertical when open ── */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--brand-gray);
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: var(--space-4);
        gap: var(--space-1);
        z-index: 1000;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links > a {
        padding: var(--space-3) var(--space-2);
    }

    /* ── Mobile: nav-container relative for positioning ── */
    .nav-container {
        position: relative;
    }

    /* ── Mobile: dropdown becomes inline accordion ── */
    .nav-dropdown {
        position: static;
    }

    .nav-dropdown > a::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .nav-dropdown.dropdown-open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 500px;
    }

    .nav-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-dropdown > a::after {
        content: '▸';
        display: inline-block !important;
        font-size: 0.75rem;
        margin-left: 0.5rem;
        transition: transform 0.2s ease;
    }

    .nav-dropdown.dropdown-open > a::after {
        transform: rotate(90deg);
    }

    .nav-dropdown::after {
        display: none;
    }

    /* ── Mobile: categories stack vertically, no flyout ── */
    .dropdown-category .dropdown-section {
        padding: var(--space-2) var(--space-3);
    }

    .dropdown-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 var(--space-4);
        min-width: auto;
    }

    .dropdown-category .chevron {
        display: none;
    }

    .dropdown-submenu a {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    /* ── Mobile: article hero smaller ── */
    .article-hero {
        padding: var(--space-16) var(--space-4) var(--space-8);
    }

    .article-hero h1 {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: var(--text-3xl);
    }

    .content-page h1 {
        font-size: var(--text-2xl);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Framegate Metric Cards — Mobile */
    .metric-card {
        min-width: 90px;
        padding: var(--space-3);
    }

    .metric-card .value {
        font-size: var(--text-2xl);
    }
}

/* ============================================
   Research Article Styles (Scientific Papers)
   ============================================ */

/* Article Hero (matching Atlantic Pulse style) */
.article-hero {
    padding: var(--space-24) var(--space-6) var(--space-16);
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--neutral-100) 100%);
}

.article-hero h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: -0.025em;
    line-height: var(--leading-tight);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.article-hero .subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

.article-hero .article-meta {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

.article-hero .article-meta span {
    margin: 0 var(--space-2);
}

/* Document Header (legacy style, fallback) */
.document-header {
    border-bottom: 3px solid var(--primary-500);
    padding-bottom: var(--space-8);
    margin-bottom: var(--space-12);
}

.document-header h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    max-width: 800px;
}

.document-meta {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-4);
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

/* Section headings with Magenta accent */
.content-page h2 {
    font-size: 24px;
    font-weight: var(--font-bold);
    margin-top: var(--space-16);
    margin-bottom: var(--space-6);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-light);
    color: var(--text-primary);
    border-left: 4px solid var(--primary-500);
    padding-left: var(--space-4);
}

/* First h2 after abstract shouldn't have top border */
.abstract-box + h2 {
    border-top: none;
    padding-top: 0;
    margin-top: var(--space-12);
}

.content-page h3 {
    font-size: 18px;
    font-weight: var(--font-semibold);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.content-page h4 {
    font-size: 15px;
    font-weight: var(--font-semibold);
    margin-top: var(--space-5);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

/* Abstract box */
.abstract-box {
    background-color: var(--neutral-50, #f9fafb);
    border-left: 4px solid var(--primary-500);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
    border-radius: 4px;
}

.abstract-box p {
    margin-bottom: var(--space-3);
    font-size: 15px;
    line-height: 1.75;
}

/* Key finding highlight box */
.key-finding {
    background: linear-gradient(135deg, #fff5f9 0%, #f9f0fc 100%);
    border-left: 4px solid var(--primary-500);
    padding: var(--space-6);
    margin: var(--space-6) 0;
    border-radius: 4px;
    border-right: 1px solid var(--neutral-200, #e5e7eb);
}

.key-finding h4 {
    color: var(--primary-600);
    margin-top: 0;
}

/* Example / callout boxes */
.content-page .example-box {
    background-color: var(--neutral-50, #f9fafb);
    border-left: 4px solid var(--primary-500);
    padding: var(--space-5);
    margin: var(--space-6) 0;
    border-radius: 4px;
}

.content-page .example-box strong {
    color: var(--primary-600);
}

/* Limitation / warning callout */
.limitation-callout {
    background-color: #fef3c7;
    border-left: 4px solid var(--warning-light, #f59e0b);
    padding: var(--space-4);
    margin: var(--space-4) 0;
    border-radius: 4px;
}

.limitation-callout strong {
    color: #d97706;
}

/* Tables in articles */
.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
    font-size: 14px;
    background-color: var(--bg-secondary, #ffffff);
}

.content-page table thead {
    background-color: var(--neutral-100, #f3f4f6);
    border-bottom: 2px solid var(--primary-500);
}

.content-page table th {
    padding: var(--space-3);
    text-align: left;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-500);
}

.content-page table td {
    padding: var(--space-3);
    border-bottom: 1px solid var(--neutral-200, #e5e5e5);
    color: var(--text-primary);
}

.content-page table tr:nth-child(even) {
    background-color: var(--neutral-50, #f9fafb);
}

.content-page table tr:hover {
    background-color: #fef5f9;
}

.table-wrapper {
    overflow-x: auto;
    margin: var(--space-6) 0;
    border: 1px solid var(--neutral-200, #e5e5e5);
    border-radius: 4px;
}

/* Code blocks */
.content-page code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background-color: var(--neutral-100, #f3f4f6);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: #d63384;
}

.content-page pre {
    background-color: var(--neutral-100, #f3f4f6);
    padding: var(--space-4);
    border-radius: 4px;
    overflow-x: auto;
    margin: var(--space-4) 0;
    font-size: 13px;
    line-height: 1.5;
}

.content-page pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

/* Statistical notation */
.stat-notation {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-600);
    font-weight: var(--font-medium);
}

/* References section */
.references-section {
    background-color: var(--neutral-50, #f9fafb);
    padding: var(--space-6);
    border-radius: 4px;
    margin-top: var(--space-8);
}

.references-section ul {
    list-style: none;
    margin-left: 0;
}

.references-section li {
    margin-bottom: var(--space-3);
    padding-left: 24px;
    text-indent: -24px;
    line-height: 1.75;
    font-size: 14px;
}

/* Document footer */
.document-footer {
    border-top: 2px solid var(--neutral-200, #e5e5e5);
    padding-top: var(--space-8);
    margin-top: var(--space-16);
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-copyright {
    margin-top: var(--space-2);
    font-style: italic;
}

/* Section label (CONTEXT, EVIDENCE, etc.) */
.section-header {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-2);
}

/* Three-Tier Epistemology Boxes (Know / Suspect / Cannot Prove) */
.three-tier {
    display: grid;
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.three-tier-item {
    border-radius: 8px;
    padding: var(--space-6);
    border-left: 4px solid var(--border-default);
}

.three-tier-item h4 {
    margin-top: 0;
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.three-tier-item p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.three-tier-item ul {
    margin-left: var(--space-4);
    margin-bottom: 0;
}

.three-tier-item li {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2);
}

.three-tier-item.know {
    background: #f0fdf4;
    border-left-color: var(--success);
}

.three-tier-item.know h4 {
    color: #065f46;
}

.three-tier-item.suspect {
    background: #fffbeb;
    border-left-color: var(--warning);
}

.three-tier-item.suspect h4 {
    color: #92400e;
}

.three-tier-item.cant-prove {
    background: var(--neutral-50);
    border-left-color: var(--neutral-400);
}

.three-tier-item.cant-prove h4 {
    color: var(--neutral-700);
}

/* Lists in articles */
.content-page ul,
.content-page ol {
    margin-left: 24px;
    margin-bottom: var(--space-4);
}

.content-page li {
    margin-bottom: var(--space-2);
    line-height: 1.75;
}
