body {
    font-family: 'Consolas', 'Courier New', monospace;
    background: #000;
    color: #ccc;
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* height must stay a fixed 100vh, not min-height/auto — with an auto height, this being a flex
       container means .main's "flex: 1 fills the remaining space" stops meaning anything (there's no
       definite remaining space to fill without a definite container size), so it collapses to fit its own
       content instead of the viewport, and the virtualized flight table's giant off-screen row area then
       drives the whole page's height. With height staying fixed, .main's min-height/overflow below can
       still make it (and, as a last resort, this overflow) scroll when zoom shrinks the effective viewport
       enough that the fixed-height chrome above .main no longer fits inside it. */
    overflow-y: auto;
}

/* ── Top bar ──────────────────────────────────────────────── */
.topbar {
    background: #0a0a0a;
    border-bottom: 1px solid #333;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.topbar h1 { font-size: 15px; color: #cccc44; font-weight: normal; letter-spacing: 2px; }


#practice-areas {
    padding: 16px;
}

#practice-areas details {
    margin-bottom: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
}

#practice-areas summary {
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    background: #252525;
}

.aircraft-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
    border-top: 1px solid #333;
}

.aircraft-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.field-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.field-value {
    font-size: 0.95rem;
    font-weight: 500;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.aircraft-field:first-child .field-value {
    font-weight: 700;
}

.aircraft-registration {
    font-weight: 700;
    color: #4da3ff;
    text-decoration: none;
}

.aircraft-registration:hover {
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 600px) {
    .aircraft-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}