:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-heading: #0b3d91;
    --color-border: #444444;
    --color-header-bg: #0b3d91;
    --color-header-text: #ffffff;
    --color-row-alt: #f2f5fa;
    --color-remote-bg: #eef7ee;
    --color-link: #0b3d91;
    --color-focus: #d4380d;
}

p.subtitle {
    margin-top: 0;
    font-size: 1rem;
    color: #333333;
}

.legend {
    margin: 1rem 0 1.5rem 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: var(--color-row-alt);
    font-size: 0.95rem;
}

.legend strong {
    color: var(--color-heading);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 1rem;
}

caption {
    text-align: left;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

th,
td {
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

thead th {
    background-color: var(--color-header-bg);
    color: var(--color-header-text);
}

tbody th[scope="row"] {
    background-color: #dbe4f3;
    color: var(--color-text);
    white-space: nowrap;
}

tbody tr:nth-child(even) {
    background-color: var(--color-row-alt);
}

.mode-remote {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background-color: var(--color-remote-bg);
    border: 1px solid #2e7d32;
    color: #1b5e20;
    font-size: 0.85rem;
    font-weight: 600;
}

a {
    color: var(--color-link);
    text-decoration: underline;
}

a:focus,
a:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

a:hover {
    text-decoration: none;
}

footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #444444;
}
