/*
 * The live map's board and flight card: shared by the public Live map (over
 * the globe, in site.css's palette) and the Crew Center's live map (over
 * MapLibre, in live-crew.css's). Colours come from the --t-* tokens of
 * whichever page holds them; the .ja wrapper gives the controls their reset.
 */
.jl-livedot { width: 8px; height: 8px; border-radius: 999px; background: #5CC48A; }
@keyframes jlPulse { 0% { box-shadow: 0 0 0 0 rgba(92, 196, 138, .7); } 70% { box-shadow: 0 0 0 7px rgba(92, 196, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 196, 138, 0); } }
.jl-pulse { animation: jlPulse 1.8s infinite; }
@keyframes jlIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.jl-in { flex: 1; min-height: 0; display: flex; flex-direction: column; animation: jlIn .45s cubic-bezier(.2, .8, .2, 1) both; }
.jl-in[hidden] { display: none; }
.jl-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-variant-numeric: tabular-nums; }
.jl-stat { padding: 9px 10px; border-radius: 8px; background: var(--t-tile); border: 1px solid var(--t-tileline); }
.jl-statv { margin: 0; font-size: 22px; line-height: 26px; font-weight: 600; }
.jl-statk { margin: 1px 0 0; font-size: 11px; color: var(--t-faint); }
.jl-filters { flex: none; padding: 12px 16px 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ja .jl-filter {
    appearance: none; margin: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .4px; height: 28px; padding: 0 11px; border-radius: 999px;
    background: var(--t-tile); color: var(--t-muted); border: 1px solid var(--t-tileline); transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.ja .jl-filter:hover { border-color: rgba(245, 137, 50, .6); }
.ja .jl-filter[aria-pressed="true"] { background: rgba(245, 137, 50, .16); border-color: #F58932; color: var(--t-accent2); }
.ja .jl-filter:focus-visible, .jl-row:focus-visible, .ja .jl-tab:focus-visible, .ja .jl-back:focus-visible, .ja .jl-centre:focus-visible, .jl-cc:focus-visible, .jl-link:focus-visible { outline: 2px solid var(--t-focus); outline-offset: 2px; }
.jl-rows {
    flex: 1; min-height: 80px; margin: 0; padding: 2px 14px 12px; list-style: none; overflow-y: auto; scrollbar-width: thin;
    display: flex; flex-direction: column; gap: 6px;
}
.jl-rows > li { flex: none; }
.jl-rows > li[hidden] { display: none; }
.jl-row, .jl-row:hover {
    width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 8px; color: var(--t-ink); text-decoration: none;
    background: var(--t-tile); border: 1px solid var(--t-tileline); transition: border-color .2s ease, background-color .2s ease;
}
.jl-row:hover { border-color: rgba(245, 137, 50, .6); background: rgba(245, 137, 50, .08); }
.jl-r1 { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; }
.jl-cs { font-weight: 700; color: var(--t-accent2); letter-spacing: .3px; }
.jl-rt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.jl-arrow { color: var(--t-accent); }
.jl-city { font-weight: 400; color: var(--t-faint); }
.jl-ph { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--t-muted); }
.jl-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--dot, #8FA6C4); }
.jl-r2 { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--t-faint); font-variant-numeric: tabular-nums; }
.jl-ac { white-space: nowrap; min-width: 92px; }
.jl-bar { position: relative; flex: 1; height: 3px; border-radius: 2px; background: var(--t-track); }
.jl-bar > span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--pct, 0%); border-radius: 2px; background: var(--t-accent); }
.jl-eta { white-space: nowrap; }
.jl-empty { padding: 14px 8px; font-size: 13px; line-height: 20px; color: var(--t-muted); }
.jl-foot {
    flex: none; padding: 12px 22px; border-top: 1px solid var(--t-line2); display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--t-foot); font-size: 11px; color: var(--t-faint);
}

/* one flight */
.jl-dh { flex: none; padding: 12px 16px; border-bottom: 1px solid var(--t-line2); background: linear-gradient(180deg, rgba(245, 137, 50, .12), rgba(245, 137, 50, 0)); }
.jl-dh1 { display: flex; align-items: center; gap: 10px; }
.ja .jl-back {
    appearance: none; margin: 0; padding: 0; cursor: pointer; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px;
    background: var(--t-tile); border: 1px solid var(--t-tileline); color: var(--t-ink); transition: border-color .2s ease;
}
.ja .jl-back:hover { border-color: rgba(245, 137, 50, .6); }
.jl-dcs { margin: 0; flex: 1; min-width: 0; font-size: 30px; line-height: 34px; font-weight: 600; letter-spacing: -.8px; color: var(--t-ink); }
.jl-dphase {
    flex: none; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px;
    background: var(--t-tile); border: 1px solid var(--t-tileline); font-size: 12px; font-weight: 600; color: var(--t-ink);
}
.jl-dphase .jl-dot { animation: jlPulse 1.8s infinite; }
.jl-dsub { margin: 6px 0 0 42px; font-size: 12.5px; line-height: 18px; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-dsub b { font-weight: 600; color: var(--t-ink); }
.jl-route { flex: none; padding: 14px 18px 12px; border-bottom: 1px solid var(--t-line2); }
.jl-ends { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.jl-end { min-width: 0; }
.jl-end + .jl-ttg + .jl-end { text-align: right; }
.jl-endid { margin: 0; font-size: 28px; line-height: 30px; font-weight: 700; letter-spacing: .4px; }
.jl-endc { margin: 2px 0 0; font-size: 12px; color: var(--t-muted); white-space: nowrap; }
.jl-ttg { text-align: center; padding-bottom: 2px; font-variant-numeric: tabular-nums; }
.jl-ttgv { margin: 0; font-size: 18px; line-height: 22px; font-weight: 600; color: var(--t-accent2); }
.jl-ttgk { margin: 0; font-size: 11px; color: var(--t-faint); }
.jl-prog { position: relative; margin: 12px 6px 0; height: 18px; }
.jl-prog > span { position: absolute; }
.jl-pdash { left: 0; right: 0; top: 8px; height: 2px; background: repeating-linear-gradient(90deg, var(--t-dash) 0 6px, transparent 6px 11px); }
.jl-pfill { left: 0; top: 7px; height: 4px; border-radius: 2px; width: var(--pct, 0%); background: linear-gradient(90deg, rgba(245, 137, 50, .15), #F58932); box-shadow: 0 0 12px rgba(245, 137, 50, .55); }
.jl-pfrom { left: -5px; top: 4px; width: 10px; height: 10px; border-radius: 999px; background: #F58932; box-shadow: 0 0 0 3px rgba(245, 137, 50, .25); }
.jl-pto { right: -5px; top: 4px; width: 10px; height: 10px; border-radius: 999px; background: var(--t-panelsolid); border: 2px solid var(--t-dash2); }
.jl-pplane { top: -3px; left: var(--pct, 0%); width: 24px; height: 24px; margin-left: -12px; color: var(--t-ink); filter: drop-shadow(0 0 6px rgba(245, 137, 50, .9)); }
.jl-pplane svg { display: block; transform: rotate(90deg); }
.jl-flown { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--t-muted); font-variant-numeric: tabular-nums; }
.jl-flown b { font-weight: 600; color: var(--t-ink); }
.jl-times { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; font-variant-numeric: tabular-nums; }
.jl-time, .jl-tile, .jl-kv, .jl-box, .jl-prof, .jl-stat2 { min-width: 0; border-radius: 8px; background: var(--t-tile); border: 1px solid var(--t-tileline); }
.jl-time { padding: 8px 10px; }
.jl-k, .jl-timek { margin: 0; font-size: 10px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: var(--t-faint); }
.jl-timek { margin: 0 0 3px; display: flex; justify-content: space-between; gap: 6px; }
.jl-timek span + span { letter-spacing: .2px; text-transform: none; white-space: nowrap; color: var(--c, var(--t-faint)); }
.jl-timer { margin: 0; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--t-muted); }
.jl-timer + .jl-timer { margin-top: 1px; }
.jl-timer b { color: var(--c, var(--t-ink)); font-weight: 600; }
.jl-tabs { flex: none; display: flex; gap: 2px; padding: 4px 12px 0; border-bottom: 1px solid var(--t-line2); }
.ja .jl-tab {
    appearance: none; margin: 0; cursor: pointer; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 9px 10px;
    color: var(--t-faint); box-shadow: inset 0 -2px 0 transparent; transition: color .2s ease;
}
.ja .jl-tab:hover { color: var(--t-ink); }
.ja .jl-tab[aria-selected="true"] { color: var(--t-ink); box-shadow: inset 0 -2px 0 #F58932; }
.jl-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 14px 18px 16px; }
.jl-body:focus-visible { outline: 2px solid var(--t-focus); outline-offset: -2px; }
.jl-body[hidden] { display: none; }
.jl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.jl-tile { padding: 9px 10px; }
.jl-tile .jl-k { white-space: nowrap; }
.jl-tilev { margin: 3px 0 0; font-size: 18px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jl-tilev span { font-size: 11px; font-weight: 500; color: var(--t-faint); margin-left: 3px; }
.jl-tiles2 { margin: 1px 0 0; font-size: 11px; color: var(--c, var(--t-faint)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.jl-prof { margin-top: 12px; padding: 10px 12px 8px; }
.jl-profh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.jl-profh span { font-size: 11px; color: var(--t-muted); font-variant-numeric: tabular-nums; }
.jl-prof canvas { display: block; width: 100%; height: 118px; margin-top: 6px; }
.jl-log { margin-top: 12px; }
.jl-log > .jl-k, .jl-sec { margin: 0 0 6px; }
.jl-step { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--t-faint); }
.jl-step i { width: 10px; height: 10px; margin-left: 3px; border-radius: 999px; background: transparent; border: 2px solid var(--t-dash); }
.jl-step[data-state="done"], .jl-step[data-state="cur"] { color: var(--t-ink); }
.jl-step[data-state="done"] i { background: #F58932; border-color: #F58932; }
.jl-step[data-state="cur"] i { border-color: #F58932; }
.jl-step[data-state="cur"] span:first-of-type { font-weight: 600; }
.jl-pos { margin: 10px 0 0; font-size: 11px; line-height: 17px; color: var(--t-faint); font-variant-numeric: tabular-nums; }
.jl-routebox {
    margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--t-tile); border: 1px solid var(--t-tileline);
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 11.5px; line-height: 19px; color: var(--t-ink2); word-break: break-word;
}
.jl-kvs { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.jl-kv { padding: 8px 10px; }
.jl-kvv { margin: 2px 0 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-box { margin-top: 12px; padding: 10px 12px; font-variant-numeric: tabular-nums; }
.jl-box + .jl-box { margin-top: 8px; }
.jl-boxh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.jl-boxh span { font-size: 12px; color: var(--t-muted); }
.jl-boxh b { font-weight: 600; color: var(--t-ink); }
.jl-fuelbar, .jl-paxbar { margin-top: 8px; display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--t-track); }
.jl-fuelbar span { width: var(--w, 0%); }
.jl-fuelbar span:nth-child(1), .jl-sw--burn { background: #F58932; }
.jl-fuelbar span:nth-child(2), .jl-sw--trip { background: rgba(255, 178, 115, .45); }
.jl-fuelbar span:nth-child(3), .jl-sw--res { background: var(--t-res); }
.jl-paxbar span { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, #3E8FE0, #7FB0E8); }
.jl-legend { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--t-muted); }
.jl-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.jl-note { margin: 7px 0 0; font-size: 11px; color: var(--t-muted); }
.jl-pilot { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; background: var(--t-tile); border: 1px solid var(--t-tileline); }
.jl-av {
    position: relative; overflow: hidden; flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
    background: linear-gradient(135deg, #F58932, #A4520E); color: #FFFFFF; font-size: 16px; font-weight: 700; letter-spacing: .5px;
}
.jl-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jl-pt { min-width: 0; display: flex; flex-direction: column; }
.jl-ptn { font-size: 16px; line-height: 21px; font-weight: 600; }
.jl-ptl { font-size: 12px; line-height: 18px; color: var(--t-muted); }
.jl-ptiles { margin-top: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-variant-numeric: tabular-nums; }
.jl-stat2 { padding: 8px 10px; }
.jl-stat2 p { margin: 0; font-size: 16px; font-weight: 600; }
.jl-stat2 p + p { font-size: 11px; font-weight: 400; color: var(--t-faint); }
.jl-sec { margin: 14px 0 6px; }
.jl-table { margin: 0; border-radius: 8px; border: 1px solid var(--t-tileline); overflow: hidden; }
.jl-table div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; font-size: 12px; border-bottom: 1px solid var(--t-tileline); background: var(--t-tile); }
.jl-table dt { color: var(--t-muted); }
.jl-table dd { margin: 0; font-weight: 600; text-align: right; }

/* Time on the network: a dot in the flight's colour on the board, and on the
   card a bar along the red-orange-green scale, cut off at the flight's share. */
.jl-net { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-weight: 600; color: var(--t-muted); }
.jl-netdot { width: 7px; height: 7px; border-radius: 50%; background: var(--net); box-shadow: 0 0 0 2px color-mix(in srgb, var(--net) 28%, transparent); }
.jl-table .jl-netrow { align-items: flex-start; }
.jl-netrow dd { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.jl-netv { display: inline-flex; align-items: center; gap: 6px; }
.jl-netv::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--net); }
.jl-netbar { position: relative; display: block; width: 132px; height: 5px; border-radius: 3px; background: var(--t-track); overflow: hidden; }
.jl-netbar::before {
  content: ""; position: absolute; inset: 0; border-radius: 3px;
  background: linear-gradient(90deg, #D63B2F 0%, #D63B2F 50%, #EF8A1F 70%, #2F9E5B 100%);
  clip-path: inset(0 calc(100% - var(--pct, 0%)) 0 0);
}
.jl-netsub { font-size: 11px; font-weight: 500; color: var(--t-faint); }
.jl-link, .jl-link:hover {
    margin: 8px 0 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--t-ink); text-decoration: none;
    transition: color .2s ease;
}
.jl-link:hover { color: #F58932; }
.jl-dfoot {
    flex: none; padding: 12px 18px; border-top: 1px solid var(--t-line2); display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--t-foot);
}
.ja .jl-centre {
    appearance: none; margin: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 6px;
    background: #F58932; border: 0; color: #141250; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.jl-cc, .jl-cc:hover { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--t-ink); text-decoration: none; white-space: nowrap; }
.jl-cc:hover { color: #F58932; }

.jl-rows, .jl-body {
    scrollbar-width: thin; scrollbar-color: var(--t-scroll) transparent; scrollbar-gutter: stable; overscroll-behavior: contain;
}
.jl-rows:hover, .jl-body:hover { scrollbar-color: var(--t-scroll-hover) transparent; }
.jl-rows::-webkit-scrollbar, .jl-body::-webkit-scrollbar { width: 8px; }
.jl-rows::-webkit-scrollbar-track, .jl-body::-webkit-scrollbar-track { background: transparent; margin-block: 6px; }
.jl-rows::-webkit-scrollbar-thumb, .jl-body::-webkit-scrollbar-thumb {
    background: var(--t-scroll); background-clip: padding-box; border: 2px solid transparent; border-radius: 999px;
}
.jl-rows::-webkit-scrollbar-thumb:hover, .jl-body::-webkit-scrollbar-thumb:hover,
.jl-rows::-webkit-scrollbar-thumb:active, .jl-body::-webkit-scrollbar-thumb:active {
    background-color: var(--t-scroll-hover);
}

@media (prefers-reduced-motion: reduce) {
    .jl-in, .jl-pulse, .jl-dphase .jl-dot { animation: none; }
}
