/* SPDX-License-Identifier: MIT */

:root {
    color-scheme: light dark;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #121116;
    color: #f5f3f7;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -5rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    color: #121116;
    z-index: 2;
}

.skip-link:focus {
    top: 1rem;
}

.site-header,
main {
    width: min(100% - 2rem, 52rem);
    margin-inline: auto;
}

.site-header {
    padding-block: 3rem 1.5rem;
}

.site-header h1 {
    margin-block: 0.25rem;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.1;
}

.eyebrow {
    margin: 0;
    color: #b9c7ff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.filter-panel {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #5e5966;
    border-radius: 0.75rem;
    background: #201e25;
}

select,
button {
    min-height: 2.75rem;
    border: 1px solid #8a8492;
    border-radius: 0.5rem;
    padding-inline: 0.75rem;
    font: inherit;
}

button {
    background: #526ed3;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

select:focus-visible,
button:focus-visible,
.table-scroll:focus-visible,
a:focus-visible {
    outline: 3px solid #aebdff;
    outline-offset: 3px;
}

#result-status {
    min-height: 1.5rem;
    font-weight: 600;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid #5e5966;
    border-radius: 0.75rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #201e25;
}

caption {
    padding: 0.75rem;
    text-align: left;
}

th,
td {
    padding: 0.75rem;
    border-top: 1px solid #5e5966;
    text-align: left;
}

@media (min-width: 38rem) {
    .filter-panel {
        grid-template-columns: 1fr 1fr auto;
        align-items: end;
    }
}

@media (prefers-reduced-motion: no-preference) {
    button {
        transition: background-color 150ms ease;
    }

    button:hover {
        background: #6b84df;
    }
}
