/* Design tokens. Every colour on a page comes from here, so light and dark stay in step (spec §12). */
:root {
    color-scheme: light dark;
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #15181d;
    --muted: #5a6270;
    --border: #dde1e6;
    --accent: #0a6680;
    --accent-text: #ffffff;
    --ok: #17703a;
    --bad: #b3261e;
    --radius: 0.5rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1216;
        --surface: #171b21;
        --text: #e7ebf0;
        --muted: #9ba5b3;
        --border: #2c333d;
        --accent: #5cb8d1;
        --accent-text: #0f1216;
        --ok: #4cc27a;
        --bad: #f2796f;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--accent);
}

h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

h1:focus {
    outline: none;
}

.lead {
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.muted {
    color: var(--muted);
}

.ok {
    color: var(--ok);
}

.bad {
    color: var(--bad);
}

.status {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    gap: 0.5rem 1.5rem;
    grid-template-columns: max-content 1fr;
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
}

.status dt {
    color: var(--muted);
}

.status dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.button {
    background: var(--accent);
    border: 0;
    border-radius: var(--radius);
    color: var(--accent-text);
    cursor: pointer;
    font: inherit;
    padding: 0.5rem 1rem;
}

.button:disabled {
    cursor: progress;
    opacity: 0.6;
}

.button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.blazor-error-boundary {
    background: var(--bad);
    color: #ffffff;
    padding: 1rem;
}

    .blazor-error-boundary::after {
        content: "Something went wrong in this part of the page.";
    }
