/* First Class airport card tab: weather in plain words and the runway the wind favours. */

.airport-weather-pane {
  --awp-amber: #f3ac3c;
  --awp-red: #ef5a5f;
  --awp-wind: #7fd0ff;
  flex: 0 0 318px;
  box-sizing: border-box;
  padding: 10px 12px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(2, 6, 13, 0.78), rgba(4, 9, 18, 0.56));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #eef3fa;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
/* Engraved cockpit placard. */
.awp-placard {
  padding: 2px 7px 1px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #232b38, #151b25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 rgba(0, 0, 0, 0.5);
  color: rgba(232, 238, 247, 0.86);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.awp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.awp-report,
.awp-by {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(196, 210, 228, 0.72);
}
.awp-report.is-special {
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(243, 172, 60, 0.16);
  box-shadow: inset 0 0 0 1px rgba(243, 172, 60, 0.55);
  color: #ffd08a;
}
.awp-report.is-changed { animation: awp-flash 1.2s ease-out 1; }

.awp-rows {
  margin: 8px 0 0;
}
.awp-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 4px 4px;
  margin: 0 -4px;
  border-radius: 5px;
}
.awp-row + .awp-row {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.awp-row.is-changed { animation: awp-flash 1.4s ease-out 1; }
@keyframes awp-flash {
  0% { background-color: rgba(127, 208, 255, 0.24); }
  100% { background-color: rgba(127, 208, 255, 0); }
}
.awp-row dt {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(178, 194, 214, 0.78);
}
.awp-row dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: #f2f6fb;
}
.awp-row-wind {
  align-items: center;
}
.awp-row-wind dd {
  display: flex;
  align-items: center;
  gap: 8px;
}
.awp-line { display: block; }
.awp-dim { color: rgba(190, 204, 222, 0.7); font-weight: 500; }

/* Windsock: one stripe per ~3 kt, fully out at 15 kt, as on a real airfield. */
.awp-sock {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: visible;
}
.awp-sock-ring { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; }
.awp-sock-n { fill: rgba(220, 230, 242, 0.6); font-size: 6px; font-weight: 700; text-anchor: middle; }
.awp-sock-cone {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform 250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.awp-sock-orange { fill: #ff6a1a; }
.awp-sock-white { fill: #f7f5ee; }
.awp-sock-off { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 0.6; }
.awp-sock-pole { fill: #c9d1dc; stroke: #0b1018; stroke-width: 0.8; }

.awp-outlook {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.awp-sub {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(178, 194, 214, 0.78);
}
.awp-sub span {
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  color: rgba(178, 194, 214, 0.6);
}
.awp-outlook ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.awp-outlook li {
  position: relative;
  padding: 2px 0 2px 12px;
  font-size: 11.5px;
  line-height: 1.38;
  color: rgba(226, 234, 244, 0.88);
}
.awp-outlook li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(226, 234, 244, 0.55);
}

.awp-raw-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 9px 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 234, 244, 0.86);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.awp-raw-toggle::before {
  content: "";
  width: 10px;
  height: 12px;
  border-radius: 1px;
  background: linear-gradient(#f3efe2 0 0) 2px 3px / 6px 1px no-repeat, linear-gradient(#f3efe2 0 0) 2px 6px / 6px 1px no-repeat, linear-gradient(#f3efe2 0 0) 2px 9px / 4px 1px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(243, 239, 226, 0.8);
}
.awp-raw-toggle:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.26); }
.awp-raw-toggle:focus-visible { outline: 2px solid rgba(255, 210, 58, 0.9); outline-offset: 2px; }

/* Raw report as a cockpit printer slip: off-white paper with a torn top edge. */
.awp-printout {
  position: relative;
  margin-top: 9px;
  padding: 9px 10px 8px;
  border-radius: 0 0 3px 3px;
  background: #f3efe2;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  animation: awp-feed 220ms cubic-bezier(0.22, 0.61, 0.36, 1) 1;
}
.awp-printout::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -5px;
  height: 5px;
  background: linear-gradient(135deg, transparent 3.5px, #f3efe2 0) 0 0 / 7px 5px repeat-x, linear-gradient(-135deg, transparent 3.5px, #f3efe2 0) 0 0 / 7px 5px repeat-x;
}
.awp-printout[hidden] { display: none; }
.awp-printout pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, Menlo, Monaco, monospace;
  font-size: 11px;
  line-height: 1.45;
  color: #23211b;
}
@keyframes awp-feed {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(-6px 0 0 0); }
}

.awp-runway {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.awp-rwy-body {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 7px;
}
.awp-diagram { width: 100px; height: 100px; overflow: visible; }
.awp-ring { fill: rgba(255, 255, 255, 0.025); stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.awp-ring-n { fill: rgba(220, 230, 242, 0.55); font-size: 8px; font-weight: 700; text-anchor: middle; }
.awp-strip { stroke: #5a6170; stroke-width: 3.4; }
.awp-strip.is-on { stroke: #eef2f7; }
.awp-arrow { fill: var(--airport-popup-accent, #ffd23a); stroke: rgba(0, 0, 0, 0.6); stroke-width: 0.5; }
.awp-wind {
  transform-box: view-box;
  transform-origin: 50px 50px;
  transition: transform 250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.awp-wind line { stroke: var(--awp-wind); stroke-width: 2; stroke-linecap: round; }
.awp-wind path { fill: var(--awp-wind); }

/* Runway designators painted like a threshold: piano keys above the number. */
.awp-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}
.awp-rwy {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 42px;
  padding: 4px 0 3px;
  border-radius: 3px;
  background: radial-gradient(circle at 30% 20%, #3a3f47, #262a31 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.awp-rwy i {
  width: 32px;
  height: 8px;
  background: repeating-linear-gradient(90deg, #f2f2ee 0 2.5px, transparent 2.5px 5px);
}
.awp-rwy b {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f7f7f3;
}
.awp-comp {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(214, 224, 238, 0.86);
}
.awp-comp b { color: #ffffff; font-weight: 700; }
.awp-comp.is-amber b { color: var(--awp-amber); }
.awp-comp.is-red b { color: var(--awp-red); }
.awp-also {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(190, 204, 222, 0.72);
}

/* Phone: one compact column inside the Weather tab; the runway shows as painted tiles with the wind numbers. */

html.airshow-mobile-runtime .airport-weather-pane {
  padding: 5px 9px 7px;
  font-size: 11px;
}
html.airshow-mobile-runtime .airport-weather-pane > .awp-head,
html.airshow-mobile-runtime .awp-row-press,
html.airshow-mobile-runtime .awp-row-clouds .awp-line:nth-child(n + 2),
html.airshow-mobile-runtime .awp-outlook,
html.airshow-mobile-runtime .awp-raw-toggle,
html.airshow-mobile-runtime .awp-printout,
html.airshow-mobile-runtime .awp-runway > .awp-head,
html.airshow-mobile-runtime .awp-diagram,
html.airshow-mobile-runtime .awp-also { display: none; }
html.airshow-mobile-runtime .awp-rows { margin-top: 0; }
html.airshow-mobile-runtime .awp-row { grid-template-columns: 62px 1fr; padding: 1.5px 4px; gap: 6px; }
html.airshow-mobile-runtime .awp-row dt { font-size: 9px; }
html.airshow-mobile-runtime .awp-row-wind dd { gap: 6px; }
html.airshow-mobile-runtime .awp-sock { flex-basis: 28px; width: 28px; height: 28px; }
html.airshow-mobile-runtime .awp-runway { margin-top: 5px; padding-top: 5px; }
html.airshow-mobile-runtime .awp-rwy-body { display: block; margin-top: 0; }
html.airshow-mobile-runtime .awp-rwy-info { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
html.airshow-mobile-runtime .awp-tiles { grid-row: 1 / span 2; flex-wrap: nowrap; gap: 3px; margin: 0; }
html.airshow-mobile-runtime .awp-rwy { width: 34px; padding: 3px 0 2px; }
html.airshow-mobile-runtime .awp-rwy i { width: 24px; height: 6px; }
html.airshow-mobile-runtime .awp-rwy b { font-size: 11.5px; }
html.airshow-mobile-runtime .awp-comp { font-size: 10.5px; line-height: 1.35; }

@media (prefers-reduced-motion: reduce) {
  .awp-row.is-changed,
  .awp-report.is-changed,
  .awp-printout { animation: none; }
  .awp-sock-cone,
  .awp-wind { transition: none; }
}
