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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #FFFFFF;
    color: #0F172A;
}

h1 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

h2, h3 {
    letter-spacing: -0.01em;
    font-weight: 600;
}

/* Navbar link hover/active on the light steel-blue sidebar (dark overlay, not white) */
.mantine-NavLink-root:hover {
    background-color: rgba(12, 30, 64, 0.08) !important;
}
.mantine-NavLink-root[data-active] {
    background-color: rgba(12, 30, 64, 0.14) !important;
}
.mantine-NavLink-root[data-active] .mantine-NavLink-label {
    color: #0C1E40 !important;
    font-weight: 600;
}

/* Metric cards (dmc.Paper with .metric-card) */
.metric-card {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.metric-card .metric-label {
    color: #64748B;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.metric-card .metric-value {
    color: #0C1E40;
    font-weight: 700;
    font-size: 1.4rem;
}

/* Collapsible explanation panels (components.explain) */
.explain-body {
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.6;
    max-width: 62rem;
}
.explain-body p { margin: 0 0 0.6em 0; }
.explain-body ul, .explain-body ol { margin: 0 0 0.6em 0; padding-left: 1.2rem; }
.explain-body li { margin-bottom: 0.25em; }
.explain-body code {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 4px;
    padding: 0 0.25em;
    font-size: 0.85em;
}
.explain-body table { border-collapse: collapse; margin: 0.4em 0 0.8em 0; }
.explain-body th, .explain-body td {
    border-bottom: 1px solid #E2E8F0;
    padding: 0.3em 0.9em 0.3em 0;
    text-align: left;
}
.explain-body th { color: #0C1E40; font-weight: 600; }

/* Factor screen: dense tables scroll inside their own container */
.factor-table-wrap { overflow-x: auto; max-width: 100%; }
