/* The airspace page (airspace.html). Colours and type come from app.css. */
.a-page { overflow: hidden; }
.a-nav {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px 6px;
  flex-wrap: wrap;
  padding: 7px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-size: 13.5px;
}
.a-nav > a { color: var(--muted); text-decoration: none; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.a-nav > a:hover { color: var(--text); background: var(--panel-2); }
.a-nav > a.on { color: var(--accent); border-color: var(--accent); background: rgba(76, 201, 240, 0.08); }
.a-key { margin-left: auto; display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.a-key-group { display: inline-flex; align-items: center; gap: 5px; }
.a-key-group b { font-weight: 600; color: var(--text); margin-right: 2px; }
.a-key .chip { padding: 2px 10px; font-size: 12.5px; }

.a-view { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 20px 40px; outline: none; }
.a-view a.to { color: var(--accent); text-decoration: none; font-weight: 600; }
.a-view a.to:hover { text-decoration: underline; }
.a-view a.to .lbl { font-weight: 400; color: var(--muted); }
.v-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.v-head h1 { margin: 0; font-size: 22px; font-weight: 650; }
.v-head p { margin: 0; flex-basis: 100%; font-size: 13.5px; }
.v-kind { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.v-sec { margin-top: 18px; }
.v-sec h2 { margin: 0 0 7px; font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; }
.v-sec h2 small { font: 12px var(--mono); color: var(--faint); letter-spacing: 0; margin-left: 4px; }
.v-none, .v-more { margin: 4px 0; font-size: 13px; }
.v-more { color: var(--faint); }
.v-cols { columns: 2 420px; column-gap: 28px; }
.v-cols .v-sec { break-inside: avoid; }
.v-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.v-list.freqs li, .v-list.ties li { display: grid; grid-template-columns: minmax(150px, 250px) 1fr; gap: 10px; align-items: baseline; }
.v-list .f { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-list .acs { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; }
.fixes { margin: 0; line-height: 1.9; font-size: 13.5px; }
.fixes sup { color: var(--muted); font-size: 10px; margin-left: 1px; }
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; white-space: nowrap; font-weight: 400; }

/* ---------------------------------------------------------------- inferred: how a fact was arrived at */
.st { font-size: 11px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; font-weight: 500; }
.st.done { color: #4ade80; border-color: rgba(74, 222, 128, 0.45); }
.st.read_back, .st.heard { color: var(--accent); border-color: rgba(76, 201, 240, 0.45); }
.st.stated { color: var(--amber); border-color: rgba(245, 185, 66, 0.45); border-style: dashed; }
.st.not_established { color: var(--muted); border-color: var(--faint); border-style: dotted; }
.st.contradicted { color: var(--live); border-color: rgba(255, 107, 107, 0.5); }
.ended { font-size: 11px; color: var(--faint); margin-left: 2px; }
/* ---------------------------------------------------------------- heard: how sure the transcript is of the words. A number and a bar, never a mark. */
.hp { display: inline-flex; align-items: center; gap: 5px; font: 11px var(--mono); color: var(--muted); white-space: nowrap; }
.hp i { display: inline-block; width: 26px; height: 6px; background: var(--line); position: relative; }
.hp i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); background: color-mix(in srgb, var(--live) calc((1 - var(--p)) * 200%), #b9c6d2); }
.hp.low { color: var(--text); }
.hw { border-bottom: 2px solid color-mix(in srgb, var(--live) calc((1 - var(--p)) * 200%), #5d7183); padding-bottom: 0; }
.hw.none { border-bottom: 1px dotted var(--faint); }
.hw sub { font: 10.5px var(--mono); color: var(--muted); margin-left: 2px; vertical-align: baseline; position: relative; top: 0.3em; }

.facts { display: flex; flex-wrap: wrap; gap: 5px 8px; }
.fact { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 13px; }
.fact.stated, .fact.not_established { border-style: dashed; background: none; }
.fact.not_established .says { color: var(--muted); }
.fact.contradicted .says { text-decoration: line-through; text-decoration-color: var(--live); }
.fact.over { opacity: 0.6; }
.fact q { quotes: "“" "”"; }
.fact .for { color: var(--muted); font-size: 12px; }
.fact .could { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.fact .could a.to { font-weight: 500; }
.ties .fact { padding: 0 6px; border-radius: 999px; }
.fact .what { font: 650 12px var(--mono); color: var(--text); }

.rws { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px 14px; align-items: start; }
.rw { display: flex; align-items: baseline; align-content: flex-start; gap: 6px; flex-wrap: wrap; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; }
.rw b { font: 650 14px var(--mono); min-width: 34px; }
.rw.idle { border-color: transparent; padding-top: 0; padding-bottom: 0; }
.rw.idle b { color: var(--faint); font-weight: 500; }

/* ---------------------------------------------------------------- exchanges */
.thread { margin: 0 0 14px; padding: 9px 12px 6px; border: 1px solid var(--line); border-radius: 10px; background: rgba(17, 25, 34, 0.55); }
.thread h3 { margin: 0 0 5px; font-size: 15px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.thread h3 .muted { font-size: 12.5px; font-weight: 400; }
.thread .facts { margin-bottom: 6px; }
.xs { list-style: none; margin: 0; padding: 0; }
.x { padding: 6px 0 7px; border-top: 1px solid var(--line); }
.xs > .x:first-child { border-top: 0; }
.x-head { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; }
.x-head time { font-family: var(--mono); color: var(--muted); }
.x-head a.to { font-family: var(--mono); font-weight: 600; }
.x-head a.to .lbl { font-family: var(--sans); }
.x-act { margin-left: auto; display: flex; gap: 10px; align-items: baseline; }
.x-act a, .x-play { color: var(--muted); font-size: 12px; text-decoration: none; background: none; border: 0; padding: 0; }
.x-act a:hover, .x-play:hover { color: var(--accent); }
.x-text { margin-top: 2px; }
.turn { display: grid; grid-template-columns: 14px 1fr auto; gap: 6px; align-items: baseline; }
.turn[data-who="aircraft"] { margin-left: 16px; }
.turn.other .t-words { color: var(--muted); }
.t-who { font: 600 11px var(--mono); color: var(--faint); }
.t-words { overflow-wrap: anywhere; }
.turn .who { font-size: 12px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.x-facts { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 7px; }
.x-facts .fact { font-size: 12.5px; padding: 1px 7px; }
.x-freq { list-style: none; margin: 10px 0 2px; padding: 3px 0; border-top: 2px solid var(--line); font-size: 13px; display: flex; gap: 8px; align-items: baseline; }
.thread-all > .x-freq:first-child { margin-top: 0; border-top: 0; }
.x-freq + .x { border-top: 0; }

.a-player { flex: none; display: flex; align-items: center; gap: 12px; padding: 6px 16px; border-top: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.a-player audio { height: 30px; flex: 1; max-width: 520px; }
.a-player .ghost { padding: 1px 9px; }

@media (max-width: 760px) {
  .a-key { margin-left: 0; }
  .a-view { padding: 12px 12px 36px; }
  .v-list.freqs li, .v-list.ties li { grid-template-columns: 1fr; gap: 1px; }
  .turn { grid-template-columns: 14px 1fr; }
  .turn .who { grid-column: 2; }
}
