/* /onair/ page. Uses the tokens from /site.css. */
.onair main { padding-top: 1.6rem; padding-bottom: 3rem; }
.back { margin: 0 0 1.4rem; font-size: .9rem; }
.back a { text-decoration: none; }
.onair h1 { max-width: none; }
.onair .lede { max-width: 46rem; }

.oa-live { scroll-margin-top: 4rem; }
.oa-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem 1.2rem; margin: 0 0 1rem; }
.oa-controls label { max-width: 100%; display: flex; flex-direction: column; gap: .25rem; font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.oa-controls select { font: 1rem var(--sans); padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); min-width: 0; max-width: 100%; }
#oa-country { width: 24rem; }
.oa-controls select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.oa-count { margin: 0 0 .55rem; color: var(--muted); font-size: .92rem; }
.oa-count b { font: 700 1.6rem/1 var(--mono); color: var(--amber); margin-right: .2rem; font-variant-numeric: tabular-nums; }

.oa-panes { display: grid; gap: 1rem; }
@media (min-width: 900px) { .oa-panes { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.oa-map { height: clamp(20rem, 55vh, 34rem); border: 1px solid var(--rig-line); border-radius: 14px; background: var(--rig); overflow: hidden; }
.oa-list { max-height: clamp(20rem, 55vh, 34rem); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.oa-list table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.oa-list th { position: sticky; top: 0; background: var(--surface); text-align: left; font: 600 .7rem var(--sans); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.oa-list td { padding: .35rem .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.oa-list tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.call { font: 700 .92rem var(--mono); text-decoration: none; }
.sw { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .4rem; vertical-align: .02em; }
@media (max-width: 599px) {
  .oa-list .khz { display: none; }
  .oa-list td, .oa-list th { padding-left: .45rem; padding-right: .45rem; }
}
.oa-empty { padding: 1rem; color: var(--muted); margin: 0; }
.oa-note { font-size: .82rem; color: var(--muted); margin: .6rem 0 0; }
.oa-note .dot { display: inline-block; width: .7rem; height: .7rem; border: 2px solid var(--muted); border-radius: 50%; vertical-align: -.05em; }
.oa-live .note { margin: 1rem 0 0; }

/* map popups and tiles follow the theme */
.leaflet-container { font: .88rem/1.45 var(--sans); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
}
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }

/* leaderboard */
.oa-board { margin-top: 3rem; }
.oa-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; }
.oa-tabs button { font: .88rem var(--sans); padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); color: var(--ink); cursor: pointer; }
.oa-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.oa-bars { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.oa-bars button { display: grid; grid-template-columns: 2rem minmax(0, 13rem) minmax(0, 1fr) 4.5rem; align-items: center; gap: .6rem;
  width: 100%; padding: .3rem .4rem; border: 0; border-radius: 6px; background: none; color: var(--ink); font: .92rem var(--sans); text-align: left; cursor: pointer; }
.oa-bars button:hover, .oa-bars button:focus-visible { background: var(--surface); }
.oa-bars li.on button { background: var(--amber-bg); }
.oa-bars .rk { font: 600 .8rem var(--mono); color: var(--muted); text-align: right; }
.oa-bars .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-bars .nm small { font: 600 .72rem var(--mono); color: var(--muted); margin-left: .2rem; }
.oa-bars .bar { height: .7rem; background: var(--line); border-radius: 2px; overflow: hidden; }
.oa-bars .bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.oa-bars .v { font: 700 .9rem var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) {
  .oa-bars button { grid-template-columns: 1.6rem minmax(0, 1fr) 4rem; }
  .oa-bars .bar { grid-column: 2 / 4; grid-row: 2; }
}
.oa-more { margin-top: .8rem; font: .9rem var(--sans); padding: .45rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--accent); cursor: pointer; }
