/* Home page flight (home-flight.js): the dashed page route, the plane on it and the phase label written along the line
   behind the plane. The layer spans the page above the sections and never takes a click. The route is drawn in page
   coordinates, so the layer is laid out left to right in both directions; the Arabic route is mirrored by the script. */
html.da-home .flight-layer {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 4;
  width: 100%;
  height: 0;
  overflow: visible;
  direction: ltr;
  pointer-events: none;
}
html.da-home .fl-svg {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  overflow: visible;
}
html.da-home .fl-path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
  opacity: 0.32;
}
html.da-home .fl-plane,
html.da-home .fl-label {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  margin: 0;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.12s, color 0.2s;
}
html.da-home .fl-plane {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  color: var(--brand);
  fill: currentColor;
}
html.da-home .fl-label {
  width: max-content;
  padding: 0;
  transform-origin: 50% 50%;
  font: 500 11px/1 var(--body);
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--muted);
}
html.da-home[dir="rtl"] .fl-label span {
  direction: rtl;
}
html.da-home .fl-label b {
  font-weight: 500;
  color: var(--brand-ink);
}
html.da-home .fl-label i {
  margin-inline-start: 10px;
  font: 500 10px/1 var(--mono);
  font-style: normal;
  letter-spacing: 0;
  opacity: 0.85;
}
/* white over the stats band, the hero board and the final panel, so the plane never sinks into them */
html.da-home .flight-layer.on-dark .fl-plane,
html.da-home .flight-layer.on-dark .fl-label,
html.da-home .flight-layer.on-dark .fl-label b {
  color: #fff;
}
/* reduced motion and low fps: the route stays, the plane and its label are already down on the runway */
html.da-home .flight-layer.is-still .fl-plane,
html.da-home .flight-layer.is-still .fl-label {
  display: none;
}
@media (max-width: 767px) {
  html.da-home .fl-plane,
  html.da-home .fl-label {
    position: fixed;
  }
  html.da-home .fl-plane {
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
  }
  html.da-home .fl-label {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.da-home .fl-plane,
  html.da-home .fl-label {
    display: none;
  }
}
