/* The flight map is self-contained and scales as a single piece of airfield signage. */
.flightboard {
  --fb-ink: #233b2f;
  --fb-ground: #f3dfa0;
  --fb-cream: #fff6d7;
  --fb-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  min-width: 0;
  color: var(--fb-ink);
}
.flightboard[data-ready] {
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  border: 1.5px solid #344431;
  border-radius: 15px;
  background: var(--fb-ground);
  box-shadow: 0 5px 0 #b4b597;
}
.fb-theatre { position: relative; background: var(--fb-ground); }
.fb-map { display: block; width: 100%; height: auto; overflow: visible; }
.fb-map text { fill: var(--fb-ink); }
.fb-cartography { fill: none; stroke: #acaa71; stroke-width: 1; opacity: .56; }
.fb-map-label text {
  font: 600 11px var(--fb-mono);
  letter-spacing: 1.6px;
  fill: #5c644a;
}
.fb-routes { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.fb-track { stroke: #acac78; stroke-width: 7; }
.fb-track-dashes { stroke: #f5e6af; stroke-width: 1.25; stroke-dasharray: 3.5 6; }
.fb-selected-track { stroke: #374f3f; stroke-width: 7.5; }
.fb-selected-dashes { stroke: #f4da76; stroke-width: 1.65; stroke-dasharray: 3.5 6; }
.fb-agent { cursor: pointer; }
.fb-tag-shadow { fill: #847e52; opacity: .46; }
.fb-agent-card, .fb-gate-card { fill: var(--fb-cream); stroke: #55634a; stroke-width: 1.2; }
.fb-agent[aria-pressed="true"] .fb-agent-card { fill: #ffbd80; stroke: #483f2b; stroke-width: 2; }
.fb-agent:hover .fb-agent-card { stroke: #1d3024; stroke-width: 2; }
.fb-agent:focus { outline: none; }
.fb-agent:focus-visible .fb-agent-card { stroke: #233b2f; stroke-width: 3.5; stroke-dasharray: 4 2; }
.fb-app-name, .fb-agent-name { font: 650 17px/1 "Public Sans",system-ui,sans-serif; letter-spacing: -.75px; }
.fb-gate .fb-app-name { font-size: 15.5px; }
.fb-bolt { fill: #596348; }
.fb-gate.fb-current .fb-gate-card { fill: #e2edbd; stroke: #415338; stroke-width: 1.8; }
.fb-custom-chip rect { fill: #d5dfa9; }
.fb-custom-chip text { font: 700 16px system-ui,sans-serif; fill: #374420; }
.fb-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: .65rem;
  padding: .85rem clamp(.7rem, 2vw, 1.25rem);
  background: #233b2f;
  color: #fff8e1;
}
.fb-readout-main { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.fb-identity { width: 32px; height: 32px; flex: 0 0 auto; object-fit: contain; }
.fb-custom-letter { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 24%; background: #d5dfa9; color: #374420; font: 650 17px/1 system-ui,sans-serif; }
.fb-workspace { display: block; color: #cad5bb; font: 500 .63rem/1.4 var(--fb-mono); text-transform: uppercase; letter-spacing: .055em; }
.fb-action { display: block; margin-top: .12rem; font: 650 clamp(.77rem,1.3vw,1rem)/1.25 "Public Sans", system-ui, sans-serif; letter-spacing: -.025em; }
.fb-status { display: inline-flex; align-items: center; gap: .38rem; flex: none; border: 1px solid #839781; border-radius: 2rem; padding: .26rem .53rem; color: #edf5da; font: 600 .64rem/1.2 var(--fb-mono); white-space: nowrap; }
.fb-status::before { content: ''; width: .38rem; height: .38rem; border-radius: 50%; background: #ccdf97; }
.flightboard[data-flight-state="blocked"] .fb-status { color: #ffd7ba; border-color: #c59070; }
.flightboard[data-flight-state="blocked"] .fb-status::before { background: #ffa675; }
.fb-playback { position: absolute; z-index: 1; right: 2.7%; bottom: 3%; display: flex; gap: 4px; }
.fb-playback button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #566347;
  border-radius: 50%;
  padding: 0;
  color: #293c30;
  background: #f9edc5;
  cursor: pointer;
}
.fb-playback button:hover, .fb-playback button:focus-visible { background: #fffae3; }
.fb-playback button:focus-visible { outline: 2px solid #233b2f; outline-offset: 2px; }
.fb-playback svg { display: block; width: 15px; height: 15px; }
.fb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (max-width: 520px) {
  .fb-map-label text { font-size: 14px; letter-spacing: 1.2px; }
  .fb-readout { min-height: 60px; }
  .fb-theatre { padding-bottom: 1.4rem; }
  .fb-playback { right: .55rem; bottom: .32rem; }
  .fb-playback button { width: 25px; height: 25px; }
  .fb-playback svg { width: 13px; height: 13px; }
}
