:root {
    --bg: #f4f6f8;
    --card: #ffffff;
    --ink: #1c2733;
    --muted: #5a6b7b;
    --line: #d8e0e8;
    --accent: #1f6feb;
    --cold: #2b6cb0;
    --warm: #c0532b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;

    > nav {
        background-color: white;
        display: flex;
        justify-content: center;
        font-size: 20px;
        gap: 15px;
    }
}


main {
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;

}

h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
.lead { color: var(--muted); margin: 0 0 1.5rem; }

.filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.filter label {
    display: flex;
    flex-direction: column;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    gap: .3rem;
}

.filter select {
    font-size: 1rem;
    padding: .45rem .6rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    min-width: 11rem;
}

.filter button {
    font-size: 1rem;
    padding: .5rem 1.1rem;
    border: 0;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}
.filter button:hover { background: color-mix(in srgb, var(--accent), black 40%); }



.count { font-weight: 600; }
.avg   { color: var(--accent); font-weight: 600; }

table {
    width: 700px;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

td.table_station { width: !important 200px; }
th, td {
    text-align: left;
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--line);
}
th {
    background: #eef2f6;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fafcfe; }

td.temp { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 1.5rem; text-align: center; color: var(--muted); }


.display {
    font-size: 42px;
    min-height: 30px;
}
