:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --accent: #4f46e5;
    --accent-light: #6366f1;
    --accent-bg: #eef2ff;
    --accent-border: #c7d2fe;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --pink: #ec4899;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Questrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 24px 32px;
    font-size: 15px;
}

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

/* Site Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.site-header .logo {
    height: 36px;
    width: auto;
}

.site-header .header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.site-header .header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.site-header .header-nav a:hover {
    color: var(--accent);
}

/* Back Navigation */
.back-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.back-nav:hover {
    color: var(--accent-light);
}

/* Report Badge */
.report-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
}

.report-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

/* Page Title */
.page-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.page-meta svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
}

.page-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1000px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .kpi-grid { grid-template-columns: 1fr; }
}

.kpi-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}

.kpi-card.highlight {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 1px var(--accent-light);
}

.kpi-card.success {
    border-color: var(--success);
    background: linear-gradient(135deg, #ffffff, #ecfdf5);
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.kpi-label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.kpi-sublabel {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Summary Card */
.summary-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.summary-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.summary-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Two Column Cards */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 800px) {
    .two-col-grid { grid-template-columns: 1fr; }
}

.two-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.two-chart-grid .chart-cell {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

@media (max-width: 800px) {
    .two-chart-grid { grid-template-columns: 1fr; }
}

.driver-card, .challenge-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
}

.driver-card { border-left: 4px solid var(--success); }
.challenge-card { border-left: 4px solid var(--danger); }

.card-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon.green { background: var(--success-light); color: var(--success); }
.card-icon.red { background: var(--danger-light); color: var(--danger); }
.card-icon svg { width: 20px; height: 20px; }

.card-header-row h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.bullet-list { list-style: none; }

.bullet-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.driver-card .bullet-list li::before { background: var(--success); }
.challenge-card .bullet-list li::before { background: var(--danger); }

/* Insights Card */
.insights-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 24px;
}

.insights-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.insights-header svg { width: 20px; height: 20px; color: var(--accent); }
.insights-header h3 { font-size: 15px; font-weight: 600; color: var(--accent); }

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .insights-grid { grid-template-columns: 1fr; }
}

.insight-box {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
}

.insight-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-primary);
    padding: 8px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.nav-tab {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Questrial', sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    white-space: nowrap;
}

.nav-tab:hover { color: var(--text-primary); background: var(--bg-secondary); }
.nav-tab.active { background: var(--accent); color: white; }

/* Chart Section */
.chart-section {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}

.chart-title-bar {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-title-bar h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-body {
    display: grid;
    grid-template-columns: 380px 1fr;
}

@media (max-width: 900px) {
    .chart-body { grid-template-columns: 1fr; }
}

.chart-insights-panel {
    padding: 28px;
    border-right: 1px solid var(--border);
    background: var(--bg-primary);
}

@media (max-width: 900px) {
    .chart-insights-panel { border-right: none; border-bottom: 1px solid var(--border); }
}

.chart-insights-panel h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 20px;
}

.insight-text { margin-bottom: 16px; }
.insight-text p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.insight-text strong { color: var(--text-primary); font-weight: 600; }

.chart-canvas-area { padding: 28px; }
.chart-wrapper { position: relative; width: 100%; height: 320px; }

.chart-legend {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-dot { width: 10px; height: 10px; border-radius: 50%; }

.chart-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
    font-size: 13px;
}

.chart-body .chart-source { grid-column: 1 / -1; }
.chart-source .source-text { color: #94a3b8; }

.get-data {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.get-data:hover { color: var(--accent-light); }
.get-data svg { width: 14px; height: 14px; }

/* Chart Panel States */
.chart-panel { display: none; }
.chart-panel.active { display: block; }

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-secondary); }

/* Dual Chart Container */
.dual-chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 900px) {
    .dual-chart-container { grid-template-columns: 1fr; }
}

.dual-chart-panel { display: flex; flex-direction: column; }

.dual-chart-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.dual-chart-panel .chart-wrapper { height: 280px; }

/* Archetype Cards */
.archetype-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .archetype-grid { grid-template-columns: 1fr; }
}

.archetype-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.archetype-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: var(--accent-border);
}

.archetype-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.archetype-badge.digital { background: #ecfdf5; color: #059669; }
.archetype-badge.intensive { background: #fffbeb; color: #d97706; }
.archetype-badge.light { background: #f0f4ff; color: #4f46e5; }
.archetype-badge.offline { background: #fef2f2; color: #dc2626; }

.archetype-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.archetype-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    min-height: 44px;
}

.state-list {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.stat-row {
    display: flex;
    gap: 40px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.stat-item { display: flex; flex-direction: column; gap: 4px; }

.stat-item .stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-item .stat-value.green { color: var(--success); }
.stat-item .stat-value.red { color: var(--danger); }

.stat-item .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Navigation Cards */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 800px) {
    .nav-grid { grid-template-columns: 1fr; }
}

.nav-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    gap: 16px;
}

.nav-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.nav-card .num {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.4;
}

.nav-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.nav-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Navigation Footer */
.nav-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.nav-footer a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-footer a:hover { color: var(--accent-light); }

/* Disclaimer */
.disclaimer {
    margin-top: 32px;
    padding: 16px 20px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
}

.disclaimer strong {
    color: #78350f;
}

/* Report Footer */
.report-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-brand { font-weight: 600; color: var(--accent); }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Metric Cards */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

.metric-card {
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.metric-card .metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.metric-card .metric-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.metric-card .metric-change {
    font-size: 11px;
    margin-top: 4px;
}

.metric-card .metric-change.positive { color: var(--success); }
.metric-card .metric-change.negative { color: var(--danger); }

/* Alert Box */
.alert-box {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.alert-box.warning {
    background: linear-gradient(90deg, #fef3c7, #fef9c3);
    border-left: 4px solid #f59e0b;
}

.alert-box.info {
    background: linear-gradient(90deg, #e0e7ff, #eef2ff);
    border-left: 4px solid #4f46e5;
}

.alert-box.success {
    background: linear-gradient(90deg, #d1fae5, #ecfdf5);
    border-left: 4px solid #10b981;
}

.alert-box h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.alert-box p { font-size: 13px; line-height: 1.6; }

/* Competitive Moat Visual */
.moat-visual {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.moat-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
}

.moat-item::after {
    content: '→';
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 20px;
}

.moat-item:last-child::after { display: none; }

.moat-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.moat-icon svg { width: 24px; height: 24px; color: var(--accent); }

.moat-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.moat-item p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Product Suite Comparison */
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.product-cell {
    background: var(--bg-primary);
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
}

.product-cell.header {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.product-cell.row-header {
    background: var(--bg-secondary);
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    padding-left: 16px;
}

.product-cell .check { color: var(--success); font-size: 16px; }
.product-cell .cross { color: var(--text-muted); font-size: 14px; }

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Base mobile adjustments */
@media (max-width: 768px) {
    body {
        padding: 16px;
        font-size: 14px;
    }

    .container {
        max-width: 100%;
    }

    /* Header */
    .site-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }

    .site-header .logo {
        height: 28px;
    }

    .site-header .header-nav {
        gap: 16px;
    }

    .site-header .header-nav a {
        font-size: 13px;
    }

    /* Page Title */
    .page-title {
        font-size: 24px !important;
        line-height: 1.3;
    }

    /* Report Badge */
    .report-badge {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Page Meta */
    .page-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    /* KPI Grid */
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .kpi-card {
        padding: 16px 12px;
    }

    .kpi-value {
        font-size: 22px !important;
    }

    .kpi-label {
        font-size: 11px;
    }

    .kpi-sublabel {
        font-size: 10px;
    }

    /* Navigation Tabs */
    .nav-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-tab {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1 1 auto;
        min-width: 45%;
        text-align: center;
    }

    /* Chart Sections */
    .chart-section {
        border-radius: 12px;
    }

    .chart-title-bar {
        padding: 16px;
    }

    .chart-title-bar h3 {
        font-size: 15px;
    }

    .chart-body {
        flex-direction: column;
    }

    .chart-insights-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }

    .chart-canvas-area {
        padding: 16px;
    }

    .chart-wrapper {
        height: 250px !important;
        min-height: 250px !important;
    }

    .chart-legend {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .legend-item {
        font-size: 11px;
    }

    /* Two Column Grid */
    .two-col-grid,
    .two-chart-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tables */
    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }

    /* Moat Visual */
    .moat-visual {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .moat-item {
        padding: 16px 12px;
    }

    .moat-item h4 {
        font-size: 12px;
    }

    .moat-item p {
        font-size: 10px;
    }

    /* Archetype Grid */
    .archetype-grid {
        grid-template-columns: 1fr !important;
    }

    .archetype-card {
        padding: 20px;
    }

    /* Nav Cards */
    .nav-grid {
        grid-template-columns: 1fr !important;
    }

    .nav-card {
        padding: 16px;
    }

    .nav-card .num {
        font-size: 14px;
        width: 32px;
        height: 32px;
    }

    .nav-card h3 {
        font-size: 15px;
    }

    /* Footer */
    .nav-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav-footer a {
        font-size: 13px;
    }

    .report-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    /* Disclaimer */
    .disclaimer {
        padding: 14px 16px;
        font-size: 11px;
    }

    /* Summary Card */
    .summary-card {
        padding: 20px;
    }

    .summary-card h2 {
        font-size: 16px;
    }

    .summary-card p {
        font-size: 13px;
    }

    /* Driver/Challenge Cards */
    .driver-card,
    .challenge-card {
        padding: 16px;
    }

    /* Bullet List */
    .bullet-list li {
        font-size: 13px;
        padding-left: 16px;
    }

    /* Product Grid (comparison table) */
    .product-grid {
        font-size: 10px;
        grid-template-columns: 1.5fr repeat(5, 1fr) !important;
    }

    .product-cell {
        padding: 8px 4px;
    }

    /* Alert Box */
    .alert-box {
        padding: 16px;
    }

    .alert-box h4 {
        font-size: 13px;
    }

    .alert-box p {
        font-size: 12px;
    }

    /* Stat Row */
    .stat-row {
        gap: 16px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    /* Metric Grid (4 col) */
    .metric-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Definition Grid */
    .definition-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .page-title {
        font-size: 20px !important;
    }

    .kpi-grid {
        grid-template-columns: 1fr !important;
    }

    .kpi-value {
        font-size: 20px !important;
    }

    .nav-tab {
        min-width: 100%;
    }

    .chart-wrapper {
        height: 200px !important;
        min-height: 200px !important;
    }

    .moat-visual {
        grid-template-columns: 1fr !important;
    }

    .product-grid {
        overflow-x: auto;
        display: block;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .chart-wrapper {
        height: 200px !important;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .nav-tab,
    .nav-card,
    .kpi-card {
        cursor: pointer;
    }

    .nav-tab:active,
    .nav-card:active {
        transform: scale(0.98);
    }
}

/* Report Title Box */
.report-title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8f7ff 0%, #fff 100%);
    border: 1px solid #e2e0f5;
    border-left: 4px solid #5f259f;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(95,37,159,0.08);
}

.report-title {
    margin: 0;
    font-family: 'DM Serif Display', serif;
    font-size: 38px;
    letter-spacing: -0.5px;
    color: #1e293b;
}

.report-logo {
    height: 48px;
}

@media (max-width: 768px) {
    .report-title-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        text-align: center;
    }

    .report-title {
        font-size: 26px;
        order: 2;
    }

    .report-logo {
        height: 40px;
        order: 1;
    }
}

@media (max-width: 480px) {
    .report-title {
        font-size: 22px;
    }

    .report-logo {
        height: 36px;
    }
}
