/* ==========================================
   Grid Intelligence: GETs & Adaptive Grids 2026
   Design System: Electric Indigo, Amber & Slate
   ========================================== */

:root {
    --primary-color:   #6366f1;
    --secondary-color: #4f46e5;
    --accent-color:    #818cf8;
    --success-color:   #10b981;
    --warning-color:   #f59e0b;
    --danger-color:    #ef4444;
    --info-color:      #3b82f6;
    --slate-color:     #1e293b;
    --amber-color:     #d97706;
    --gold-color:      #d4af37;

    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;

    --bg-primary:   #ffffff;
    --bg-secondary: #eef2ff;
    --bg-tertiary:  #e0e7ff;
    --bg-dark:      #0f172a;

    --border-color: #e0e7ff;
    --shadow-sm: 0 1px 3px rgba(99,102,241,0.07);
    --shadow-md: 0 4px 12px rgba(99,102,241,0.10);
    --shadow-lg: 0 10px 30px rgba(99,102,241,0.12);
    --shadow-xl: 0 20px 40px rgba(99,102,241,0.18);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
}

/* ---- Loading Screen ---- */
.loading-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #3730a3 100%);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.6s ease;
}
.loading-screen.hidden { opacity: 0; pointer-events: none; }
.loader { text-align: center; }
.loader .pulse {
    width: 70px; height: 70px; border-radius: 50%;
    background: rgba(129,140,248,0.25);
    animation: pulse 1.5s ease-in-out infinite;
    margin: 0 auto;
}
.loader p { color: white; margin-top: 18px; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.5px; }
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.3; }
}

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.header-container {
    max-width: 1500px; margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
}
.logo-link {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none; color: var(--text-primary);
    font-weight: 800; font-size: 1.2rem;
}
.main-nav { display: flex; gap: 1.75rem; }
.nav-link {
    text-decoration: none; color: var(--text-secondary);
    font-weight: 500; font-size: 0.95rem;
    transition: color var(--transition-fast);
}
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.reports-link { color: var(--primary-color); font-weight: 700; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ---- Reading Progress ---- */
.reading-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--accent-color));
    z-index: 101; transition: width 0.1s linear;
}

/* ---- Main Layout ---- */
.report-container {
    max-width: 1500px; margin: 0 auto;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: start;
}

/* ---- Sidebar ---- */
.sidebar {
    position: sticky; top: 80px;
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.sidebar-header { margin-bottom: 1rem; }
.sidebar-header h3 { font-size: 0.9rem; color: var(--primary-color); font-weight: 700; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.sidebar-nav a {
    text-decoration: none; color: var(--text-secondary);
    font-size: 0.8rem; padding: 0.45rem 0.6rem;
    border-radius: 6px; transition: all var(--transition-fast);
    font-weight: 500;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--bg-tertiary); color: var(--primary-color); }
.sidebar-nav a.toc-section { font-weight: 700; font-size: 0.82rem; color: var(--slate-color); margin-top: 0.35rem; }
.metrics-widget { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.metrics-widget h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.75rem; }
.metric-item { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; font-size: 0.78rem; border-bottom: 1px dashed var(--border-color); }
.metric-label { color: var(--text-secondary); }
.metric-value { font-weight: 700; font-family: var(--font-mono); font-size: 0.75rem; }
.metric-value.negative { color: var(--danger-color); }
.metric-value.warning { color: var(--warning-color); }
.metric-value.positive { color: var(--success-color); }
.metric-value.primary { color: var(--primary-color); }

/* ---- Main Content ---- */
.main-content { max-width: 100%; }

/* ---- Hero Section ---- */
.hero-section { margin-bottom: 2rem; }
.classification-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #a5b4fc; padding: 0.6rem 1.5rem; border-radius: 10px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px;
    font-weight: 700; margin-bottom: 1.5rem;
}
.classification-date { color: #c7d2fe; }
.hero-content { margin-bottom: 1.5rem; }
.report-metadata { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.badge {
    display: inline-block; padding: 0.3rem 0.8rem;
    border-radius: 20px; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.sector-badge { background: #eef2ff; color: var(--primary-color); border: 1px solid #c7d2fe; }
.type-badge { background: #fef3c7; color: var(--amber-color); border: 1px solid #fde68a; }
.geo-badge { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.tech-badge { background: #fce7f3; color: #9d174d; border: 1px solid #fbcfe8; }
.priority-badge { background: #fee2e2; color: var(--danger-color); border: 1px solid #fecaca; }

.hero-title { margin-bottom: 1.5rem; }
.title-main {
    display: block; font-size: 2rem; font-weight: 900;
    color: var(--slate-color); line-height: 1.2; margin-bottom: 0.25rem;
}
.title-sub {
    display: block; font-size: 1.15rem; font-weight: 600;
    color: var(--primary-color); line-height: 1.4;
}
.hero-abstract {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem; border-radius: 0 10px 10px 0;
    margin-bottom: 1.5rem;
}
.lead-text { font-size: 0.97rem; color: var(--text-secondary); line-height: 1.85; }

/* ---- Stats Dashboard ---- */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex; gap: 0.75rem; align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card.stat-danger { border-top: 3px solid var(--danger-color); }
.stat-card.stat-warning { border-top: 3px solid var(--warning-color); }
.stat-card.stat-primary { border-top: 3px solid var(--primary-color); }
.stat-card.stat-info { border-top: 3px solid var(--info-color); }
.stat-card.stat-success { border-top: 3px solid var(--success-color); }
.stat-icon { font-size: 1.5rem; flex-shrink: 0; }
.stat-content { flex: 1; }
.stat-number { font-size: 1.5rem; font-weight: 900; font-family: var(--font-mono); margin-bottom: 0.1rem; }
.stat-unit { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.4; }

/* ---- Sources Banner ---- */
.sources-banner {
    background: #f8fafc; border: 1px solid #e2e8f0;
    padding: 1rem 1.25rem; border-radius: 10px;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.sources-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); white-space: nowrap; }
.source-logos { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.source-tag {
    background: white; border: 1px solid #e2e8f0;
    padding: 0.25rem 0.65rem; border-radius: 15px;
    font-size: 0.7rem; font-weight: 600; color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* ---- AIO Summary ---- */
.aio-summary {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 2.5rem; border-radius: 16px; color: white; margin-bottom: 2.5rem;
}

/* ---- Data Sources Section ---- */
.data-sources-section {
    background: #f8fafc; border: 1px solid #e2e8f0;
    padding: 1.75rem; border-radius: 12px; margin-bottom: 2.5rem;
}

/* ---- Section Main ---- */
.section-main { margin-bottom: 3rem; padding-top: 1rem; }
.section-header { margin-bottom: 1.5rem; border-bottom: 2px solid var(--border-color); padding-bottom: 1rem; }
.section-title {
    font-size: 1.6rem; font-weight: 800; color: var(--slate-color);
    display: flex; align-items: center; gap: 1rem;
}
.section-number {
    font-size: 2.5rem; font-weight: 900; color: var(--accent-color);
    opacity: 0.3; font-family: var(--font-mono);
}
.section-meta { display: flex; gap: 1rem; margin-top: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.reading-time { display: flex; align-items: center; gap: 0.3rem; }
.section-priority { color: var(--danger-color); font-weight: 600; }

/* ---- Content Blocks ---- */
.content-block { margin-bottom: 1.75rem; }
.content-block h3 { font-size: 1.15rem; font-weight: 700; color: var(--slate-color); margin-bottom: 0.75rem; }
.content-block p { color: var(--text-secondary); line-height: 1.85; margin-bottom: 0.75rem; }
.highlight-block {
    background: #fffbeb; border-left: 4px solid var(--warning-color);
    padding: 1.5rem; border-radius: 0 10px 10px 0;
}
.highlight-block .block-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.danger-block {
    background: #fef2f2; border-left: 4px solid var(--danger-color);
    padding: 1.5rem; border-radius: 0 10px 10px 0;
}
.info-block {
    background: #eff6ff; border-left: 4px solid var(--info-color);
    padding: 1.5rem; border-radius: 0 10px 10px 0;
}
.success-block {
    background: #ecfdf5; border-left: 4px solid var(--success-color);
    padding: 1.5rem; border-radius: 0 10px 10px 0;
}

.check-list { list-style: none; padding: 0; }
.check-list li {
    padding: 0.4rem 0; padding-left: 1.75rem;
    position: relative; color: var(--text-secondary); font-size: 0.93rem; line-height: 1.7;
}
.check-list li::before {
    content: '▸'; position: absolute; left: 0; color: var(--primary-color); font-weight: 700;
}

/* ---- Key Findings ---- */
.key-findings h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: var(--slate-color); }
.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.finding-card {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.finding-number {
    font-size: 2rem; font-weight: 900; color: var(--accent-color);
    opacity: 0.25; font-family: var(--font-mono); display: block;
    margin-bottom: 0.25rem;
}
.finding-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--slate-color); margin-bottom: 0.4rem; }
.finding-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }

/* ---- Tables ---- */
.comparison-table {
    width: 100%; border-collapse: collapse; font-size: 0.85rem;
    margin: 1.25rem 0; border-radius: 10px; overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
}
.comparison-table thead { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.comparison-table thead th {
    color: white; padding: 0.85rem 0.75rem; text-align: left;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700;
}
.comparison-table thead th:first-child { border-radius: 8px 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 8px 0 0; }
.comparison-table tbody td {
    padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary); line-height: 1.5;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(even) { background: var(--bg-secondary); }
.comparison-table tbody tr:hover { background: var(--bg-tertiary); }
.comparison-table tbody td:first-child { font-weight: 600; color: var(--slate-color); }

/* ---- Equation Blocks ---- */
.mathjax-block {
    text-align: center; padding: 1.5rem;
    background: rgba(99,102,241,0.04);
    border-radius: 10px; margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}
.equation-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem; margin: 1rem 0;
}
.eq-card {
    background: var(--bg-secondary); padding: 1rem; border-radius: 8px;
    border: 1px solid var(--border-color);
}
.eq-card h4 { font-size: 0.85rem; font-weight: 700; color: var(--primary-color); margin-bottom: 0.35rem; }
.eq-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }

/* ---- Playbook Cards ---- */
.playbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem; margin: 1.25rem 0;
}
.playbook-card {
    border: 1px solid var(--border-color); border-radius: 12px;
    padding: 1.5rem; background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.playbook-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.playbook-card .pb-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.playbook-card h4 { font-size: 1rem; font-weight: 700; color: var(--slate-color); margin-bottom: 0.4rem; }
.playbook-card .pb-tagline {
    font-size: 0.75rem; font-weight: 600; color: var(--primary-color);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem;
}
.playbook-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }

/* ---- Accordion / FAQ ---- */
.faq-section { margin-top: 2.5rem; }
.faq-item {
    border: 1px solid var(--border-color); border-radius: 10px;
    margin-bottom: 0.75rem; overflow: hidden;
}
.faq-question {
    background: var(--bg-secondary); padding: 1rem 1.25rem;
    font-weight: 700; font-size: 0.9rem; color: var(--slate-color);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    transition: background var(--transition-fast);
}
.faq-question:hover { background: var(--bg-tertiary); }
.faq-answer {
    padding: 0 1.25rem; max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 600px; padding: 1rem 1.25rem; border-top: 1px solid var(--border-color); }
.faq-toggle { font-size: 1.2rem; color: var(--primary-color); transition: transform var(--transition-fast); }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ---- References ---- */
.references-section { margin-top: 2.5rem; }
.ref-list { list-style: none; padding: 0; }
.ref-list li {
    padding: 0.4rem 0; font-size: 0.78rem; color: var(--text-muted);
    border-bottom: 1px solid #f1f5f9; line-height: 1.6;
}
.ref-list li a { color: var(--primary-color); text-decoration: none; }
.ref-list li a:hover { text-decoration: underline; }

/* ---- Scenario Cards ---- */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem; margin: 1.25rem 0;
}
.scenario-card {
    border: 2px solid var(--border-color); border-radius: 12px;
    padding: 1.5rem;
}
.scenario-card.optimistic { border-color: var(--success-color); background: #f0fdf4; }
.scenario-card.pessimistic { border-color: var(--danger-color); background: #fef2f2; }
.scenario-card.neutral { border-color: var(--warning-color); background: #fffbeb; }
.scenario-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.scenario-card.optimistic h4 { color: #065f46; }
.scenario-card.pessimistic h4 { color: #991b1b; }
.scenario-card.neutral h4 { color: var(--amber-color); }
.scenario-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ---- Glossary Terms ---- */
.glossary-term { color: var(--primary-color); font-weight: 600; cursor: help; border-bottom: 1px dotted var(--accent-color); }
.glossary-term:hover { color: var(--secondary-color); }
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem; margin: 1rem 0;
}
.glossary-item {
    background: var(--bg-secondary); padding: 0.75rem 1rem; border-radius: 8px;
    border: 1px solid var(--border-color);
}
.glossary-item strong { display: block; font-size: 0.8rem; color: var(--slate-color); margin-bottom: 0.2rem; }
.glossary-item span { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }

/* ---- Footer ---- */
.report-footer {
    margin-top: 3rem; padding: 2rem; background: var(--bg-dark);
    border-radius: 14px; color: #94a3b8; text-align: center;
    font-size: 0.8rem;
}
.report-footer p { margin-bottom: 0.5rem; }

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .report-container { grid-template-columns: 240px 1fr; padding: 1.5rem; gap: 1.5rem; }
}
@media (max-width: 1024px) {
    .report-container { grid-template-columns: 1fr; }
    .sidebar { position: relative; top: 0; max-height: none; }
    .header-container { padding: 0.75rem 1.25rem; }
    .main-nav { gap: 1rem; }
    .nav-link { font-size: 0.85rem; }
    .title-main { font-size: 1.5rem; }
    .title-sub { font-size: 1rem; }
    .section-title { font-size: 1.3rem; }
    .comparison-table { font-size: 0.75rem; }
    .comparison-table thead th, .comparison-table tbody td { padding: 0.5rem; }
}
@media (max-width: 640px) {
    .report-container { padding: 1rem; }
    .stats-dashboard { grid-template-columns: 1fr; }
    .findings-grid { grid-template-columns: 1fr; }
    .playbook-grid { grid-template-columns: 1fr; }
    .scenario-grid { grid-template-columns: 1fr; }
    .aio-summary { padding: 1.5rem; }
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
}

/* ═══════════════════════════════════════════
   ENHANCED: Chart Containers & Canvas
   ═══════════════════════════════════════════ */
.chart-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}
.chart-section .chart-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem; padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}
.chart-section .chart-header h4 {
    font-size: 1rem; font-weight: 700; color: var(--slate-color); margin: 0;
}
.chart-section .chart-header .chart-badge {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px;
    padding: 0.2rem 0.6rem; border-radius: 10px;
    font-weight: 700;
}
.chart-badge.live { background: #d1fae5; color: #065f46; }
.chart-badge.model { background: #eef2ff; color: #4338ca; }
.chart-wrapper {
    position: relative; width: 100%; min-height: 340px;
    display: flex; align-items: center; justify-content: center;
}
.chart-wrapper canvas { width: 100% !important; max-height: 380px; }
.chart-caption {
    text-align: center; font-size: 0.72rem; color: var(--text-muted);
    margin-top: 0.75rem; font-style: italic;
}
.charts-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem; margin: 1.5rem 0;
}

/* ═══════════════════════════════════════════
   INTERACTIVE ROI CALCULATOR WIDGET
   ═══════════════════════════════════════════ */
.calculator-widget {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 16px; padding: 2rem; margin: 2rem 0;
    color: white; box-shadow: 0 15px 40px rgba(49,46,129,0.25);
}
.calculator-widget .calc-header {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem;
}
.calculator-widget .calc-header h4 {
    font-size: 1.1rem; font-weight: 800; color: #a5b4fc; margin: 0;
}
.calculator-widget .calc-header .calc-badge {
    background: rgba(165,180,252,0.2); color: #a5b4fc;
    padding: 0.25rem 0.7rem; border-radius: 12px;
    font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 1px; font-weight: 700;
}
.calc-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem; margin-bottom: 1.5rem;
}
.calc-field { display: flex; flex-direction: column; gap: 0.35rem; }
.calc-field label {
    font-size: 0.75rem; font-weight: 600; color: #c7d2fe;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.calc-field input {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(165,180,252,0.3);
    border-radius: 8px; padding: 0.7rem 0.9rem; color: white;
    font-size: 0.95rem; font-weight: 600; font-family: var(--font-mono);
    outline: none; transition: border-color var(--transition-fast);
}
.calc-field input:focus { border-color: #818cf8; }
.calc-field .field-hint {
    font-size: 0.65rem; color: #94a3b8; margin-top: 0.15rem;
}
.calc-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem; margin-top: 1.5rem;
}
.calc-result-card {
    background: rgba(255,255,255,0.08); border-radius: 10px;
    padding: 1.1rem; text-align: center;
    border: 1px solid rgba(165,180,252,0.2);
}
.calc-result-card .result-label {
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 1px; color: #94a3b8; margin-bottom: 0.35rem;
}
.calc-result-card .result-value {
    font-size: 1.5rem; font-weight: 900; font-family: var(--font-mono);
    margin-bottom: 0.15rem;
}
.calc-result-card .result-sub {
    font-size: 0.68rem; color: #94a3b8;
}
.result-green { color: #34d399; }
.result-red { color: #f87171; }
.result-amber { color: #fbbf24; }
.calc-bar-comparison {
    margin-top: 1.5rem;
}
.calc-bar-row {
    display: flex; align-items: center; margin-bottom: 0.7rem;
    font-size: 0.78rem; font-weight: 600;
}
.calc-bar-row .bar-label { width: 120px; flex-shrink: 0; color: #c7d2fe; }
.calc-bar-row .bar-track {
    flex: 1; height: 22px; background: rgba(255,255,255,0.08);
    border-radius: 11px; overflow: hidden; position: relative;
}
.calc-bar-row .bar-fill {
    height: 100%; border-radius: 11px; transition: width 0.5s ease;
    display: flex; align-items: center; padding-left: 10px;
    font-size: 0.7rem; font-family: var(--font-mono); color: white;
}
.bar-dlr { background: linear-gradient(90deg, #34d399, #10b981); } /* Annual Savings */
.bar-newline { background: linear-gradient(90deg, #f59e0b, #d97706); } /* DLR Investment */

/* ═══════════════════════════════════════════
   DOWNLOAD BUTTON — C-Suite PDF Brief
   ═══════════════════════════════════════════ */
.download-brief-bar {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24; border-radius: 14px;
    padding: 1.25rem 1.75rem; margin-bottom: 2rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.download-brief-bar .brief-info { display: flex; align-items: center; gap: 1rem; }
.download-brief-bar .brief-icon {
    font-size: 2rem; flex-shrink: 0;
}
.download-brief-bar .brief-text h4 {
    font-size: 1rem; font-weight: 800; color: #92400e; margin: 0 0 0.2rem;
}
.download-brief-bar .brief-text p {
    font-size: 0.78rem; color: #92400e; margin: 0; opacity: 0.75;
}
.download-brief-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white; padding: 0.75rem 1.5rem; border-radius: 10px;
    text-decoration: none; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; border: none;
    box-shadow: 0 4px 15px rgba(180,83,9,0.3);
    transition: all var(--transition-base); white-space: nowrap;
}
.download-brief-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180,83,9,0.4);
}

/* ═══════════════════════════════════════════
   PRINT STYLES — 2-Page Executive Brief Only
   ═══════════════════════════════════════════ */
.print-brief { display: none; }

@media print {
    /* Hide ALL screen content */
    body, .site-header, .sidebar, .reading-progress,
    .download-brief-bar, .calculator-widget,
    .chart-section, .faq-section, .glossary-grid,
    .report-footer, .aio-summary, .loading-screen,
    .hero-section, .report-metadata, .sources-banner,
    .data-sources-section, .section-main, .classification-banner,
    .stats-dashboard, .scenario-grid, .playbook-grid,
    .references-section, .metrics-widget, .key-findings,
    nav, header, footer, aside, .report-container > *,
    .main-content > * { display: none !important; }

    /* Show ONLY print brief */
    .print-brief { display: block !important; }

    /* Print page setup */
    @page { size: A4; margin: 1.5cm 1.8cm; }
    html, body {
        margin: 0; padding: 0;
        font-size: 9pt; line-height: 1.45;
        font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
        color: #1e293b; background: white;
    }
    .print-brief { max-width: 100%; padding: 0; }

    /* Cover block */
    .print-cover {
        text-align: center; margin-bottom: 18pt;
        padding-bottom: 14pt;
        border-bottom: 2px solid #6366f1;
    }
    .print-cover h1 { font-size: 16pt; font-weight: 900; margin: 6pt 0 4pt; color: #1e1b4b; }
    .print-subtitle { font-size: 10pt; font-weight: 600; color: #6366f1; margin: 0 0 6pt; }
    .print-meta { font-size: 7pt; color: #94a3b8; margin: 0; text-transform: uppercase; letter-spacing: 0.5px; }

    /* Section headings */
    .print-brief h2 {
        font-size: 11pt; font-weight: 800; color: #1e1b4b;
        margin: 14pt 0 6pt; padding-bottom: 3pt;
        border-bottom: 1px solid #e0e7ff;
        page-break-after: avoid;
    }

    /* Body text */
    .print-brief p { font-size: 8.5pt; line-height: 1.5; margin: 0 0 8pt; color: #334155; orphans: 3; widows: 3; }
    .print-brief li { font-size: 8pt; line-height: 1.45; margin-bottom: 4pt; color: #334155; }
    .print-brief ol { margin: 4pt 0 10pt; padding-left: 18pt; }
    .print-brief strong { color: #1e293b; }

    /* Stats row */
    .print-stats {
        display: flex; gap: 12pt; margin: 12pt 0;
        page-break-inside: avoid;
    }
    .print-stat {
        flex: 1; text-align: center; padding: 8pt 6pt;
        border: 1px solid #e0e7ff; border-radius: 6pt;
        background: #eef2ff;
    }
    .ps-val { display: block; font-size: 14pt; font-weight: 900; color: #6366f1; font-family: 'JetBrains Mono', monospace; }
    .ps-label { display: block; font-size: 6.5pt; color: #64748b; margin-top: 2pt; text-transform: uppercase; letter-spacing: 0.3px; }

    /* Print table */
    .print-table {
        width: 100%; border-collapse: collapse;
        font-size: 7.5pt; margin: 8pt 0;
        page-break-inside: avoid;
    }
    .print-table thead { background: #1e293b !important; -webkit-print-color-adjust: exact; color-adjust: exact; }
    .print-table th {
        color: white; padding: 5pt 6pt; text-align: left;
        font-size: 7pt; text-transform: uppercase; letter-spacing: 0.3px;
    }
    .print-table td { padding: 4pt 6pt; border-bottom: 1px solid #e2e8f0; }
    .print-table tr:nth-child(even) td { background: #f8fafc; -webkit-print-color-adjust: exact; }

    /* Footer */
    .print-divider { border-top: 1px solid #cbd5e1; margin: 14pt 0 10pt; }
    .print-footer-text { font-size: 6.5pt; color: #94a3b8; text-align: center; margin: 0; }
}
