/* Airspace FLOW: airport conditions and METAR/ATIS presentation.
   Load after modern.css and flow-redesign.css. */
body.airspace-flow-open .flow-condition-strip {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding: 10px 2px;
  border: 0;
  border-top: 1px solid rgba(214, 232, 218, .12);
  border-bottom: 1px solid rgba(214, 232, 218, .12);
  border-radius: 0;
  background: transparent;
  color: #dce7de;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* The overview grid pairs this short strip with a tall arrivals list. Keep it
   at content height instead of stretching it into a large empty column. */
body.airspace-flow-open .flow-dashboard-lower > .flow-condition-strip { align-self: start; }

body.airspace-flow-open .flow-condition-category {
  flex: 0 0 auto;
  color: var(--flow-accent, #93f99c);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

body.airspace-flow-open .flow-condition-strip > span:not(.flow-condition-category) {
  color: #c4d0c7;
  white-space: nowrap;
}

body.airspace-flow-open .flow-condition-strip > span + span:not(.flow-condition-category) {
  position: relative;
  padding-left: clamp(12px, 2vw, 22px);
}

body.airspace-flow-open .flow-condition-strip > span + span:not(.flow-condition-category)::before {
  position: absolute;
  top: 50%;
  left: 0;
  height: 20px;
  border-left: 1px solid rgba(214, 232, 218, .16);
  content: "";
  transform: translateY(-50%);
}

body.airspace-flow-open .flow-condition-strip button {
  margin-left: auto;
  padding: 8px 0 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #aef4b5;
  font-size: 11px;
  font-weight: 730;
}

body.airspace-flow-open .flow-condition-strip button:hover { color: #d5ffda; }

/* Weather view: make the observations read like one instrument panel, not six cards. */
body.airspace-flow-open .flow-airport-context {
  min-height: 0;
  align-content: start;
  gap: 0;
  padding: 14px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.airspace-flow-open .flow-airport-context > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(214, 232, 218, .13);
}

body.airspace-flow-open .flow-airport-context > header h2 {
  margin: 0;
  color: #f0f5f1;
  font-size: 19px;
  letter-spacing: -.035em;
}

body.airspace-flow-open .flow-metar-content { min-width: 0; }

body.airspace-flow-open .flow-metar-content .airport-weather-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-bottom: 1px solid rgba(214, 232, 218, .13);
}

body.airspace-flow-open .flow-metar-content .airport-weather-card {
  display: grid;
  min-width: 0;
  min-height: 67px;
  align-content: center;
  gap: 5px;
  padding: 10px 14px 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.airspace-flow-open .flow-metar-content .airport-weather-card:nth-child(3n + 2),
body.airspace-flow-open .flow-metar-content .airport-weather-card:nth-child(3n) {
  padding-left: 14px;
  border-left: 1px solid rgba(214, 232, 218, .11);
}

body.airspace-flow-open .flow-metar-content .airport-weather-card:nth-child(n + 4) {
  border-top: 1px solid rgba(214, 232, 218, .1);
}

body.airspace-flow-open .flow-metar-content .airport-weather-card small {
  color: #92a198;
  font-size: 10px;
  letter-spacing: .025em;
}

body.airspace-flow-open .flow-metar-content .airport-weather-card b {
  overflow: visible;
  color: #edf4ee;
  font-size: 15px;
  font-weight: 680;
  text-overflow: clip;
  white-space: normal;
}

body.airspace-flow-open .flow-metar-content .airport-weather-card .weather-category {
  color: var(--flow-accent, #93f99c);
  font-size: 16px;
  letter-spacing: .01em;
}

body.airspace-flow-open .flow-metar-content .airport-raw-metar {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 15px 0 13px;
  border: 0;
  border-bottom: 1px solid rgba(214, 232, 218, .13);
  border-radius: 0;
  background: transparent;
}

body.airspace-flow-open .flow-metar-content .airport-raw-metar > div {
  align-items: baseline;
  color: #e4eee6;
  font-size: 12px;
}

body.airspace-flow-open .flow-metar-content .airport-raw-metar > div b {
  font-size: 12px;
  font-weight: 720;
}

body.airspace-flow-open .flow-metar-content .airport-raw-metar p {
  margin: 0;
  color: #d8e4da;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}

body.airspace-flow-open .flow-metar-content .airport-raw-metar > small {
  color: #84938a;
  font-size: 9px;
}

body.airspace-flow-open .flow-atis-card {
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(214, 232, 218, .13);
  border-radius: 0;
  background: transparent;
}

body.airspace-flow-open .flow-atis-card > summary {
  position: relative;
  display: flex;
  min-height: 30px;
  align-items: center;
  color: #e5eee7;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}

body.airspace-flow-open .flow-atis-card > summary::-webkit-details-marker { display: none; }
body.airspace-flow-open .flow-atis-card > summary::after {
  margin-left: auto;
  color: #9aac9f;
  content: "+";
  font-size: 18px;
  font-weight: 400;
}
body.airspace-flow-open .flow-atis-card[open] > summary::after { content: "−"; }

body.airspace-flow-open .flow-atis-card p {
  max-width: 90ch;
  margin: 8px 0 2px;
  color: #bac9bd;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.airspace-flow-open .flow-metar-content .airport-taf {
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(214, 232, 218, .13);
  border-radius: 0;
  color: #e5eee7;
  font-size: 12px;
}
body.airspace-flow-open .flow-metar-content .airport-taf > summary { font-weight: 720; cursor: pointer; }
body.airspace-flow-open .flow-metar-content .airport-taf p { margin: 8px 0 0; color: #bac9bd; line-height: 1.6; }

body.airspace-flow-open .flow-airport-context .airport-empty,
body.airspace-flow-open .flow-airport-context .airport-loading {
  padding: 18px 0;
  color: #9aa99f;
  font-size: 12px;
}

body.light-mode.airspace-flow-open .flow-condition-strip { border-color: rgba(30, 55, 39, .15); color: #28372e; }
body.light-mode.airspace-flow-open .flow-condition-strip > span:not(.flow-condition-category),
body.light-mode.airspace-flow-open .flow-metar-content .airport-weather-card b,
body.light-mode.airspace-flow-open .flow-metar-content .airport-raw-metar > div,
body.light-mode.airspace-flow-open .flow-atis-card > summary { color: #28372e; }
body.light-mode.airspace-flow-open .flow-metar-content .airport-weather-card:nth-child(3n + 2),
body.light-mode.airspace-flow-open .flow-metar-content .airport-weather-card:nth-child(3n),
body.light-mode.airspace-flow-open .flow-metar-content .airport-weather-grid,
body.light-mode.airspace-flow-open .flow-metar-content .airport-weather-card:nth-child(n + 4),
body.light-mode.airspace-flow-open .flow-metar-content .airport-raw-metar,
body.light-mode.airspace-flow-open .flow-atis-card { border-color: rgba(30, 55, 39, .13); }
body.light-mode.airspace-flow-open .flow-metar-content .airport-raw-metar p,
body.light-mode.airspace-flow-open .flow-atis-card p { color: #4e5f54; }

@media (max-width: 600px) {
  body.airspace-flow-open .flow-condition-strip { min-height: 50px; gap: 10px; font-size: 11px; }
  body.airspace-flow-open .flow-condition-strip > span + span:not(.flow-condition-category) { padding-left: 10px; }
  body.airspace-flow-open .flow-metar-content .airport-weather-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.airspace-flow-open .flow-metar-content .airport-weather-card { min-height: 58px; padding: 9px 10px 9px 0; }
  body.airspace-flow-open .flow-metar-content .airport-weather-card:nth-child(3n + 2),
  body.airspace-flow-open .flow-metar-content .airport-weather-card:nth-child(3n) { padding-left: 0; border-left: 0; }
  body.airspace-flow-open .flow-metar-content .airport-weather-card:nth-child(n + 4) { border-top: 0; }
  body.airspace-flow-open .flow-metar-content .airport-weather-card:nth-child(even) { padding-left: 12px; border-left: 1px solid rgba(214, 232, 218, .11); }
  body.airspace-flow-open .flow-metar-content .airport-weather-card:nth-child(n + 3) { border-top: 1px solid rgba(214, 232, 218, .1); }
}

@media (max-width: 390px) {
  body.airspace-flow-open .flow-condition-strip { flex-wrap: wrap; gap: 6px 10px; }
  body.airspace-flow-open .flow-condition-strip button { margin-left: 0; }
}
