/* Minimal custom overrides for Pico CSS */

:root {
    --wsmc-blue: #003366;
    --risk-high: #dc3545;
    --risk-moderate: #fd7e14;
    --risk-low: #28a745;
}

.risk-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
}

.risk-high { background-color: var(--risk-high); }
.risk-moderate { background-color: var(--risk-moderate); }
.risk-low { background-color: var(--risk-low); }

.oil-summary {
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.oil-summary dt { font-weight: bold; }

.calc-table td:last-child {
    text-align: right;
    font-family: monospace;
}

header {
    background-color: var(--wsmc-blue);
    color: white;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

header h1 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
}

header small {
    color: #aaccee;
}

header nav {
    margin-top: 0.5rem;
}

header nav a {
    color: #aaccee;
    margin-right: 1.5rem;
    font-size: 0.85rem;
    text-decoration: none;
}

header nav a:hover {
    color: white;
    text-decoration: underline;
}

footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--pico-muted-color);
    margin-top: 2rem;
    padding: 1rem;
}

/* --- Methodology page --- */

.toc {
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.toc ol {
    margin-bottom: 0;
}

.toc a {
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

.methodology-section {
    scroll-margin-top: 5rem;
}

.formula {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.0rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 0.25rem;
    padding: 0.75rem 1.25rem;
    margin: 1rem 0;
    overflow-x: auto;
    text-align: center;
    line-height: 2;
}

.formula var {
    font-style: italic;
    font-weight: normal;
}

.coeff-table td:first-child {
    font-family: 'Georgia', serif;
    font-style: italic;
}

.coeff-table td:last-child,
.coeff-table th:last-child {
    text-align: right;
    font-family: monospace;
    font-size: 0.9rem;
}

.decision-node {
    border-left: 3px solid var(--wsmc-blue);
    padding-left: 1rem;
    margin: 0.5rem 0;
}

.references li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.back-to-top {
    font-size: 0.8rem;
    text-align: right;
    margin-top: 0.5rem;
}
