/* Plane-spotting board — /{destination}/plane-spotting and the block on /flights.
 *
 * Airport-agnostic: no colour or copy here assumes a particular airport. Where the
 * block renders inside the airport portal layout it borrows that layout's variables,
 * so a portal with custom branding gets a board that matches rather than fights it.
 */

.spot-page { padding-block: 1.5rem 3rem; }

.spot-head h1 { margin: 0 0 .5rem; }

/* The summary sentence is the page's answer. Give it room. */
.spot-summary {
    font-size: 1.125rem;
    line-height: 1.55;
    max-width: 64ch;
    margin: 0 0 2rem;
}

/* ---- the two cards ---- */

.spot-board {
    padding: 20px 0;
    background: var(--airport-gray-50, #f8f9fa);
    border-top: 1px solid var(--airport-gray-200, #e5e7eb);
    border-bottom: 1px solid var(--airport-gray-200, #e5e7eb);
    margin-bottom: 2rem;
}

.spot-title {
    margin: 0 0 .75rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--airport-gray-600, #4b5563);
}

.spot-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.spot-card {
    background: #fff;
    border: 1px solid var(--airport-gray-200, #e5e7eb);
    border-left: 4px solid var(--airport-gray-300, #d1d5db);
    border-radius: .5rem;
    padding: 1rem 1.25rem;
}

/* The two fleets read as different things at a glance, without colour being the
   only signal — each card also carries its kicker in words. */
.spot-card--international { border-left-color: #24528f; }
.spot-card--regional      { border-left-color: #0f766e; }

.spot-card-kicker {
    margin: 0 0 .35rem;
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--airport-gray-500, #6b7280);
}

.spot-aircraft { margin: 0 0 .25rem; font-size: 1.375rem; line-height: 1.25; }

.spot-badge {
    display: inline-block;
    margin-left: .5rem;
    padding: .1rem .5rem;
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: 999px;
    background: var(--airport-primary, #1e3a5f);
    color: #fff;
    vertical-align: middle;
}

.spot-route { margin: 0 0 .25rem; color: var(--airport-gray-700, #374151); }
.spot-airline { font-weight: 600; }
.spot-flightno { margin-left: .4rem; font-variant-numeric: tabular-nums; }
.spot-origin { margin-left: .4rem; }

.spot-seats { margin: 0 0 .5rem; font-size: .875rem; color: var(--airport-gray-600, #6b7280); }

.spot-eta { margin: 0; font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1.1; }

.spot-eta-label {
    display: block;
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--airport-gray-500, #6b7280);
}

.spot-revised {
    display: inline-block;
    margin-left: .35rem;
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #b45309;
    vertical-align: middle;
}

/* Empty until the script fills it — no reserved blank line without JS. */
.spot-countdown:empty { display: none; }
.spot-countdown {
    margin: .25rem 0 0;
    font-size: .9375rem;
    color: var(--airport-primary, #1e3a5f);
    font-variant-numeric: tabular-nums;
}

.spot-wind { margin: 1rem 0 0; font-size: .9375rem; color: var(--airport-gray-600, #4b5563); }

.spot-flightcat {
    display: inline-block;
    margin-left: .4rem;
    padding: .05rem .4rem;
    font-size: .6875rem;
    border: 1px solid var(--airport-gray-300, #d1d5db);
    border-radius: .25rem;
}

/* ---- conditions ---- */

.spot-conditions { margin-bottom: 2.5rem; }

.spot-conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin: 0;
}
.spot-conditions-grid div { margin: 0; }
.spot-conditions-grid dt {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
}
.spot-conditions-grid dd { margin: .15rem 0 0; font-size: 1rem; }

.spot-metar { margin-top: 1rem; }
.spot-metar summary { cursor: pointer; font-size: .875rem; }
.spot-metar pre {
    overflow-x: auto;
    padding: .6rem .75rem;
    background: #f3f4f6;
    border-radius: .375rem;
    font-size: .8125rem;
    white-space: pre-wrap;
    word-break: break-word;
}
.spot-metar-time { margin: .35rem 0 0; font-size: .8125rem; color: #6b7280; }

/* ---- upcoming table ---- */

.spot-upcoming { overflow-x: auto; }

.spot-table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: .9375rem;
}
.spot-table th,
.spot-table td {
    text-align: left;
    padding: .5rem .75rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}
.spot-table thead th {
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #4b5563;
    border-bottom-width: 2px;
}
.spot-table td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .spot-cards { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
    .spot-card { background: #111827; border-color: #374151; }
    .spot-board { background: #0b1220; border-color: #374151; }
    .spot-table th, .spot-table td { border-bottom-color: #374151; }
    .spot-metar pre { background: #1f2937; }
}
