/* ==========================================================================
   flights.css — /flights/: the watch list, the map and the notification
   switch. Sits on site.css and pages.css.
   ========================================================================== */

.fl {
  --fl-card: rgba(255,255,255,.72);
  --fl-line: rgba(47,74,114,.14);
}

/* --------------------------------------------------------------- Add -- */
/* The italic intro line at the top doubles as the fold line for the
   add-a-flight boxes once there are flights on the list, with a small
   chevron after it when it can fold. */
.fl__adder { margin: .55rem 0 0; }
.fl__adder > summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  font-size: .95rem;
  font-style: italic;
  color: var(--ink-soft);
}
.fl__adder[open] > summary { margin-bottom: .9rem; }
.fl__adder > summary::-webkit-details-marker { display: none; }
.fl__adderchev {
  display: inline-block; width: .9em; height: .9em; margin-left: .3em; vertical-align: -.1em;
  transform: rotate(-90deg); transition: transform 150ms var(--ease);
}
.fl__adder[open] .fl__adderchev { transform: none; }
.fl__adder.is-first > summary { cursor: default; pointer-events: none; }
.fl__adder.is-first .fl__adderchev { display: none; }
.fl__add {
  display: flex; flex-wrap: wrap; gap: .5rem;
  max-width: 30rem; margin: 0 auto;
}
.fl__add input {
  flex: 1; min-width: 0;
  padding: .8rem 1rem;
  border: 1px solid var(--fl-line);
  border-radius: 999px;
  background: var(--fl-card);
  font: inherit; font-size: 1rem;
  color: var(--ink-deep);
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.fl__add .fl__dayin { flex: 0 0 auto; width: auto; padding: .6rem 1rem; font-size: .92rem; text-transform: none; }
.fl__add .fl__break { flex: 0 0 100%; height: 0; }
.fl__add .fl__namein { flex: 1 1 8rem; padding: .6rem 1rem; font-size: .92rem; text-transform: none; }
.fl__add input::placeholder { text-transform: none; color: var(--ink-soft); opacity: .8; }
/* the site's .btn, as tall as the flight box */
.fl__add .fl__addbtn { flex: 0 0 auto; padding: .8rem 1.3rem; font-size: .95rem; }
.fl__readrow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .6rem;
  max-width: 30rem; margin: .6rem auto 0;
  font-size: .85rem; color: var(--ink-soft);
}
.fl__readbtn svg { width: 1.1rem; height: 1.1rem; }
/* the camera dialog: a live picture with a frame to aim with */
/* the whole picture shows (contain), since the whole picture is what's read */
.fl__camview { position: relative; width: fit-content; max-width: 100%; margin: .7rem auto 0; border-radius: 14px; overflow: hidden; background: #111; }
.fl__camview video { display: block; max-width: 100%; max-height: 55svh; min-height: 8rem; }
.fl__camview.is-off { width: auto; height: 3rem; background: rgba(47,74,114,.08); }
.fl__camview.is-off :is(video, .fl__camframe) { display: none; }
.fl__camframe {
  position: absolute; inset: 14% 8%; border-radius: 10px;
  border: 3px solid rgba(255,255,255,.85); box-shadow: 0 0 0 999px rgba(0,0,0,.15); pointer-events: none;
}
.fl__camstatus { min-height: 2.6em; margin: .8rem .2rem 0; font-size: .9rem; line-height: 1.45; }
.fl__preview { max-width: 30rem; margin: .5rem auto 0; padding: 0 1rem; font-size: .85rem; color: var(--ink-soft); }
.fl__preview[hidden] { display: none; }
.fl__picks { display: grid; gap: .4rem; max-width: 30rem; margin: .7rem auto 0; }
.fl__picks[hidden] { display: none; }
.fl__picks p { margin: 0; text-align: center; font-size: .88rem; color: var(--ink-soft); }
.fl__pick {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem;
  padding: .6rem 1rem;
  border: 1px solid var(--fl-line); border-radius: var(--radius);
  background: var(--fl-card); color: var(--ink-deep);
  font: inherit; text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.fl__pick b { font-size: 1.02rem; }
.fl__pick span { font-size: .85rem; color: var(--ink-soft); }
.fl__pick:hover { border-color: var(--ink); }
.fl__pickall { justify-self: center; }
.fl__adder.is-dropping { outline: 2px dashed var(--ink); outline-offset: 6px; border-radius: var(--radius); }
.fl__status { text-align: center; margin: .7rem 0 0; min-height: 1.4em; font-size: .92rem; }
.fl__status:empty { min-height: 0; margin: 0; }

/* ------------------------------------------------------ Notifications -- */
.fl__alerts {
  display: flex; align-items: center; gap: .85rem;
  margin-top: 1.2rem;
  padding: .9rem 1rem;
  background: var(--fl-card);
  border: 1px solid var(--fl-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
/* in the gear's settings dialog it drops the card */
.fl__setdlg .fl__alerts { margin-top: .6rem; padding: 0; background: none; border: 0; box-shadow: none; }
.fl__setstatus { margin-top: .6rem; }
.fl__setstatus:empty { display: none; }
.fl__alerts[hidden] { display: none; }
.fl__alerticon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(47,74,114,.1); color: var(--ink); flex: 0 0 auto; }
.fl__alerticon svg { width: 1.2rem; height: 1.2rem; }
.fl__alerttext { display: grid; gap: .1rem; flex: 1; min-width: 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.45; }
.fl__alerttext strong { color: var(--ink); font-size: .92rem; }
/* text-link buttons: the site's look (underlined, ink, 600) */
.fl__textbtn {
  justify-self: start;
  padding: 0; margin-top: .15rem;
  border: 0; background: none;
  font: inherit; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.fl__textbtn[hidden] { display: none; }
/* Friends' Share with a friend (js/flights.js): its own line, clear of Details and Fewer details below. */
.fl__friendbtn { display: block; margin: .8rem 0 .55rem; }
.fl__kinds { justify-content: flex-start; align-items: center; margin-top: .45rem; }
.fl__kinds .fl__textbtn { margin: 0 0 0 .3rem; white-space: nowrap; }
/* A phone needs the bell's room for the three choices. */
@media (max-width: 440px) { .fl__alerts.is-on .fl__alerticon { display: none; } }
.fl__kinds[hidden] { display: none; }
.fl__alerts .switch[hidden] { display: none; }

/* ------------------------------------------------------------- Cards -- */
.fl__list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.fl__empty { margin-top: 1.4rem; text-align: center; font-size: .92rem; color: var(--ink-soft); font-style: italic; }
.fl__empty[hidden] { display: none; }

.fl__card {
  position: relative;
  padding: 1rem 1.1rem .9rem 1.25rem;
  background: var(--fl-card);
  border: 1px solid var(--fl-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
/* the flight's color, as on the map */
.fl__card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--fl-color, var(--ink));
}
/* A takeoff or landing flips the card over once, side to side, about
   its vertical axis, pausing a second halfway so the back of the card,
   which reads "Takeoff" or "Landing" (data-flip), can be read, like a
   game's "Final" on /sports/. Corners aren't clipped while it turns:
   clipping would flatten the card, and the back would show its front.
   A landed card's fade waits too (it flattens the same way) and comes in
   once the card is round. */
.fl__list { perspective: 1400px; }
.fl__card.is-flipping {
  overflow: visible;
  transform-style: preserve-3d;
  animation: fl-flip 1.8s both;
}
.fl__card.is-flipping > * { backface-visibility: hidden; }
.fl__card[data-flip]::after {
  content: attr(data-flip);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink-deep);
  transform: rotateY(180deg) translateZ(1px);
  backface-visibility: hidden;
}
@keyframes fl-flip {
  0%   { transform: rotateY(0); animation-timing-function: cubic-bezier(.45, .05, .3, 1); }
  22%  { transform: rotateY(-180deg) scale(1.04); box-shadow: var(--shadow-md); }
  78%  { transform: rotateY(-180deg) scale(1.04); box-shadow: var(--shadow-md); animation-timing-function: cubic-bezier(.45, .05, .3, 1); }
  100% { transform: rotateY(-360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fl__card.is-flipping { animation: fl-glow 1.4s ease-out; }
  .fl__card[data-flip]::after { content: none; }
  @keyframes fl-glow {
    0%   { box-shadow: 0 0 0 0 var(--fl-color, var(--ink)); }
    30%  { box-shadow: 0 0 0 5px var(--fl-color, var(--ink)); }
    100% { box-shadow: var(--shadow-sm); }
  }
}
.fl__card.is-picked { outline: 2px solid var(--fl-color, var(--ink)); outline-offset: -1px; }
.fl__card[data-ended] { opacity: .66; transition: opacity .6s; }
.fl__card[data-ended].is-flipping { opacity: 1; transition: none; }

/* Finished flights, below the map: a compact card each, kept until the
   watch is deleted. Full strength, since where to meet it is the point. */
.fl__doneh { margin: 1.6rem 0 0; font-size: 1.2rem; }
.fl__doneh[hidden], .fl__list--done[hidden] { display: none; }
.fl__list--done { margin-top: .6rem; gap: .6rem; }
.fl__card--done { padding: .7rem 1rem .7rem 1.2rem; }
.fl__card--done[data-ended] { opacity: 1; }
.fl__card--done .fl__label { font-size: 1.15rem; }
.fl__donenote { margin-top: .35rem; font-size: .94rem; color: var(--ink-soft); }
.fl__meet { margin-top: .25rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.fl__units { margin-top: 1.2rem; text-align: center; }
.fl__units[hidden] { display: none; }

.fl__top { display: flex; align-items: flex-start; gap: .6rem; }
.fl__name { flex: 1; min-width: 0; }
.fl__label { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; color: var(--ink-deep); }
/* On a card that folds, the headline folds and unfolds it, like Details.
   No text selection, so a long press doesn't select it instead. */
.fl__labelbtn {
  display: block; max-width: 100%;
  background: none; border: 0; padding: 0; margin: 0;
  text-align: left; cursor: pointer;
  overflow-wrap: anywhere;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.fl__sub { margin-top: .15rem; font-size: .88rem; color: var(--ink-soft); }
.fl__sub span { white-space: nowrap; }
.fl__pill {
  display: inline-block;
  margin-top: .45rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(47,74,114,.1); color: var(--ink);
  white-space: nowrap;
}
.fl__pill[data-state="airborne"],
.fl__pill[data-state="descending"] { background: color-mix(in srgb, var(--c-good) 13%, transparent); color: var(--c-good); }
.fl__pill[data-state="landed"]     { background: var(--ink); color: #fff; }
.fl__pill[data-state="lost"],
.fl__pill[data-state="gone"]       { background: color-mix(in srgb, var(--c-warn) 14%, transparent); color: var(--c-warn); }
.fl__pill[data-state="emergency"]  { background: var(--c-bad); color: #fff; }
.fl__remove {
  flex: 0 0 auto;
  width: 2rem; height: 2rem; margin: -.25rem -.4rem 0 0;
  border: 0; border-radius: 50%;
  background: none; color: var(--ink-soft);
  font-size: 1.35rem; line-height: 1;
  cursor: pointer;
}
.fl__bell {
  flex: 0 0 auto;
  width: 2rem; height: 2rem; margin: -.25rem -.3rem 0 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: none; color: var(--ink);
  cursor: pointer;
}
.fl__bell svg { width: 1.05rem; height: 1.05rem; }
.fl__bell[aria-pressed="false"] { color: var(--ink-soft); opacity: .6; }
.fl__bell:hover { background: rgba(47,74,114,.08); }
.fl__remove:hover, .fl__rename:hover { background: rgba(47,74,114,.08); color: var(--ink); }
.fl__remove[data-sure="true"], .fl__remove[data-sure="true"]:hover { background: var(--c-bad); color: #fff; }
.fl__rename {
  flex: 0 0 auto;
  width: 2rem; height: 2rem; margin: -.25rem -.3rem 0 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: none; color: var(--ink-soft);
  cursor: pointer;
}
.fl__rename svg { width: 1rem; height: 1rem; }
.fl__renamebox { display: flex; gap: .4rem; }
.is-renaming .fl__pill, .is-renaming .fl__bell, .is-renaming .fl__rename, .is-renaming .fl__remove { display: none; }
.fl__renamebox input {
  flex: 1; min-width: 0;
  padding: .35rem .7rem;
  border: 1px solid var(--fl-line); border-radius: var(--radius-sm);
  font: inherit; font-size: 1.05rem; color: var(--ink-deep);
  background: #fff;
}
.fl__renamebox .btn { padding: .35rem .9rem; }

.fl__route { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; }
.fl__ap { min-width: 0; }
.fl__ap:last-child { text-align: right; }
.fl__ap b { display: block; font-size: 1.15rem; letter-spacing: .03em; color: var(--ink-deep); }
.fl__ap span { display: block; font-size: .82rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9rem; }
.fl__ap:last-child span { margin-left: auto; }
.fl__bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(47,74,114,.15); }
.fl__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--fl-color, var(--ink)); }
.fl__bar svg {
  position: absolute; top: 50%;
  width: 1.15rem; height: 1.15rem;
  margin: -.575rem 0 0 -.575rem;
  fill: var(--fl-color, var(--ink));
  transform: rotate(90deg);
}
.fl__usual { margin-top: .6rem; font-size: .93rem; color: var(--ink-soft); }
.fl__usual + .fl__route.is-usual { margin-top: .35rem; }
.fl__route.is-usual .fl__bar { background: none; border-top: 2px dashed rgba(47,74,114,.25); height: 0; }
.fl__route.is-usual .fl__ap:not(:first-child):not(:last-child) { text-align: center; }
.fl__route.is-usual .fl__ap:not(:first-child):not(:last-child) span { max-width: 6rem; }
.fl__sched { margin-top: .7rem; font-size: .93rem; color: var(--ink-soft); }
.fl__sched p { margin: 0 0 .25rem; }
.fl__sched .fl__soon { margin: .35rem 0 0; font-size: .88rem; }
.fl__sched small { font-size: .85rem; opacity: .85; }
.fl__miss {
  display: grid; gap: .2rem;
  margin-top: .7rem; padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--c-warn) 12%, transparent);
  font-size: .93rem; color: var(--c-warn);
}
.fl__miss p { margin: 0; }
.fl__faabanner { margin: 1rem 0 0; }
.fl__faabanner[hidden] { display: none; }
.fl__miss .fl__textbtn { color: var(--c-warn); }
.fl__miss .fl__textbtn[disabled] { opacity: .6; cursor: default; }
.fl__sched ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.fl__sched li { display: grid; gap: .1rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.fl__sched li.is-mine { font-weight: 700; }
.fl__sched li b { color: var(--ink-deep); }
.fl__sched s { opacity: .6; }
.fl__sched i { font-style: normal; color: var(--ink-soft); }
.fl__sched em { font-style: normal; font-weight: 700; color: var(--c-bad); }
.fl__destbtn { display: block; margin-top: .55rem; font-size: .9rem; }
.fl__destbox { margin-top: .55rem; max-width: 18rem; }
.fl__destbox input { text-transform: uppercase; font-size: .95rem; }
.fl__destbox input::placeholder { text-transform: none; }

.fl__stats { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; margin-top: .8rem; font-size: .9rem; color: var(--ink-soft); }
.fl__stats b { display: block; font-size: 1rem; color: var(--ink-deep); font-variant-numeric: tabular-nums; }
.fl__stats .fl__until { display: block; font-size: .85rem; }
.fl__note { margin-top: .7rem; font-size: .93rem; line-height: 1.5; color: var(--ink-soft); }

.fl__show {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .75rem;
  padding: .4rem .8rem;
  border: 1px solid var(--fl-line); border-radius: 999px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: .86rem; font-weight: 700;
  cursor: pointer;
}
.fl__show svg { width: .95rem; height: .95rem; color: var(--fl-color, var(--ink)); }
.fl__show:hover { background: rgba(47,74,114,.06); }
.fl__events { margin-top: .7rem; font-size: .88rem; color: var(--ink-soft); }
.fl__events summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
.fl__events summary::-webkit-details-marker { display: none; }
.fl__events summary::before { content: '\25B8'; display: inline-block; margin-right: .35rem; transition: transform 150ms var(--ease); }
.fl__events[open] summary::before { transform: rotate(90deg); }
.fl__events ol { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .2rem; }
.fl__events time { display: inline-block; min-width: 4.6rem; font-variant-numeric: tabular-nums; color: var(--ink); }

/* --------------------------------------------------------------- Map -- */
.fl__mapwrap { margin-top: 1.4rem; }
.fl__mapbox { position: relative; }
.fl__maptools { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.fl__chip { box-shadow: var(--shadow-sm); }
.fl__chip[hidden] { display: none; }
a.fl__lmlink { text-decoration: none; }
.fl__map {
  height: min(62vh, 32rem);
  min-height: 18rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #e8ecf2;
  border: 1px solid var(--fl-line);
  box-shadow: var(--shadow-sm);
}
.fl__credit { margin-top: .9rem; text-align: center; }
.fl__mapnote { margin-top: .5rem; text-align: center; font-size: .8rem; color: var(--ink-soft); min-height: 1.2em; }
.fl__mapnote button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* planes on the map: the marker turns with the plane's track */
.fl__me { width: 16px; height: 16px; border-radius: 50%; background: #2f6fd6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,111,214,.25), 0 1px 3px rgba(0,0,0,.4); }
.fl__plane { width: 30px; height: 30px; cursor: pointer; }
.fl__plane svg { width: 100%; height: 100%; display: block; fill: var(--fl-color, var(--ink)); stroke: #fff; stroke-width: 1.2; paint-order: stroke; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35)); }
.fl__plane--near { width: 20px; height: 20px; }
/* nearby planes take their altitude's color (altColor); the picked one gets a dark outline */
.fl__plane--near svg { fill: var(--fl-color, #59677d); stroke: #1d3153; stroke-width: .9; }
.fl__plane--near.is-picked { width: 26px; height: 26px; z-index: 2; }
.fl__plane--near.is-picked svg { stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 0 2px #1d3153) drop-shadow(0 0 1px #1d3153); }
.fl__plane--ground svg { opacity: .55; }
.fl__plane--near.fl__plane--ground svg { opacity: .85; }

/* the altitude strip under the map while Planes nearby is on */
.fl__legend { display: flex; align-items: flex-start; gap: .5rem; margin-top: .45rem; font-size: .7rem; color: var(--ink-soft); }
.fl__legend[hidden] { display: none; }
.fl__legendgnd { display: flex; align-items: center; gap: .3rem; line-height: 10px; }
.fl__legendgnd::before { content: ''; width: 10px; height: 10px; border-radius: 2px; background: hsl(0 0% 62%); }
.fl__legendlbl {
  flex: 1; display: flex; justify-content: space-between;
  padding-top: 12px; position: relative;
}
.fl__legendlbl::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 2px;
  /* altColor at 0, 2k, 4k, 6k, 8k, 9k, 11k, 20k, 30k, 40k ft, spaced on a 0–40k scale */
  background: linear-gradient(90deg,
    hsl(20 88% 50%) 0%, hsl(32.5 88% 54%) 5%, hsl(43 88% 51.5%) 10%, hsl(54 88% 45.6%) 15%, hsl(72 88% 42.6%) 20%,
    hsl(85 88% 41%) 22.5%, hsl(140 88% 41%) 27.5%, hsl(193 88% 46%) 50%, hsl(247 88% 56.6%) 75%, hsl(300 88% 43%) 100%);
}

/* Full screen: the map section fills the screen (setFull) */
.fl__fullbtn { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; }
.fl__fullbtn svg { width: 1em; height: 1em; }
.fl__mapwrap.is-full {
  position: fixed; inset: 0; z-index: 1000; margin: 0;
  display: flex; flex-direction: column;
  padding: max(.6rem, env(safe-area-inset-top)) max(.6rem, env(safe-area-inset-right)) max(.4rem, env(safe-area-inset-bottom)) max(.6rem, env(safe-area-inset-left));
  background: var(--season-bg-flat, #dfe4ee);
}
.fl__mapwrap.is-full .fl__mapbox { flex: 1; min-height: 0; }
.fl__mapwrap.is-full .fl__map { height: 100%; min-height: 0; }
.fl__mapwrap.is-full .fl__mapnote { margin-top: .35rem; }
/* The page's status line shows under the map only in full screen, where the real one is out of sight */
.fl__fullstatus { display: none; margin: .2rem 0 0; text-align: center; }
.fl__mapwrap.is-full .fl__fullstatus:not(:empty) { display: block; }
html.fl-full, html.fl-full body { overflow: hidden; }

/* Wind (js/flights.js): speed colors stretched from a low-res canvas, streaks over them */
.fl__windcv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fl__windcv[hidden] { display: none; }
.fl__windbar { margin-top: .5rem; display: grid; gap: .4rem; }
.fl__windbar[hidden] { display: none; }
.fl__windlevels .chip { padding: .3rem .75rem; font-size: .8rem; }
.fl__windkey { font-size: .7rem; color: var(--ink-soft); }
.fl__windlbl { display: flex; justify-content: space-between; padding-top: 12px; position: relative; }
.fl__windlbl::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 2px; background: var(--fl-windgrad); }
.fl__windnote { margin: 0; text-align: center; font-size: .75rem; color: var(--ink-soft); min-height: 1.1em; }
/* placed by its schedule, not seen: a guess (guessAt) */
.fl__plane--guess svg { opacity: .5; stroke-dasharray: 2 2; }

.fl__info {
  position: absolute; left: .7rem; right: .7rem; bottom: 2.2rem;
  max-width: 22rem;
  padding: .8rem .95rem;
  background: rgba(255,255,255,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: .84rem; color: var(--ink-soft);
  z-index: 3;
}
.fl__info[hidden] { display: none; }
.fl__info h3 { margin: 0 1.6rem .15rem 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink-deep); }
.fl__info p { margin: .1rem 0; }
.fl__info .fl__close { position: absolute; top: .3rem; right: .35rem; width: 1.8rem; height: 1.8rem; border: 0; border-radius: 50%; background: none; font-size: 1.25rem; color: var(--ink-soft); cursor: pointer; }
.fl__info .fl__addbtn { margin-top: .55rem; padding: .5rem 1rem; font-size: .85rem; }

.fl .maplibregl-ctrl-attrib { font-size: 10px; }

/* A plane type that opens its cabin photos (cabinBtn, openCabin). */
.fl__cabinbtn {
  padding: 0; border: 0; background: none;
  font: inherit; color: inherit;
  text-decoration: underline dotted; text-underline-offset: .18em;
  cursor: pointer;
}
.fl__cabinbtn:hover { color: var(--ink-deep); }
.fl__cabindlg { width: min(40rem, calc(100vw - 2rem)); }
.fl__cabindlg h3 { margin-top: 1rem; }
.fl__cabindlg a { color: var(--ink-deep, #2b3d5c); text-decoration: underline; text-underline-offset: .15em; }
.fl__cabinnote { margin: .4rem 0 0; color: #5a6b86; font-size: .85rem; }
.fl__cabingrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .7rem; }
.fl__cabingrid figure { margin: 0; }
.fl__cabingrid img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); background: rgba(47,74,114,.08);
}
.fl__cabingrid figcaption { margin-top: .2rem; font-size: .75rem; line-height: 1.35; color: #5a6b86; overflow-wrap: anywhere; }

/* Folded cards (a flight more than a day off, a finished one below the
   map) and the Details button that opens them up (foldKind in js/flights.js). */
.fl__brief { margin-top: .55rem; font-size: .97rem; color: var(--ink-soft); }
.fl__brief b { color: var(--ink); }
.fl__fold {
  display: inline-flex; align-items: center; gap: .3rem;
  margin: .6rem 0 -.2rem -.45rem; padding: .3rem .45rem;
  border: 0; border-radius: 8px;
  background: none; color: var(--ink);
  font: inherit; font-size: .9rem; font-weight: 700;
  cursor: pointer;
}
.fl__fold:hover { background: rgba(47,74,114,.08); }
.fl__fold svg { width: 1rem; height: 1rem; transition: transform .2s; }
.fl__fold[aria-expanded="true"] svg { transform: rotate(180deg); }
.fl__list--done .fl__card[data-ended] { opacity: 1; }

/* A number with several legs that day: pick which to follow (js/flights.js legPickHtml). */
.fl__legpick { margin-top: .6rem; padding: .6rem .7rem; border-radius: 12px; background: rgba(47,74,114,.07); color: var(--ink-deep); }
.fl__legpick > p { margin: 0 0 .45rem; }
.fl__legchips { display: flex; flex-wrap: wrap; gap: .4rem; }
.fl__legchip small { font-size: .8em; opacity: .8; margin-left: .2rem; }
.fl__legchip[disabled][aria-pressed="true"] { opacity: .75; }
.fl__legbtns { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0 0 !important; }
.fl__legmore { margin: .45rem 0 0 !important; }
