/* ─── Top Bar ─────────────────────────────────────────────────────────────── */
#top-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Each block inside the header */
#top-bar > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-right: 1px solid var(--border);
  min-height: 56px;
}
#top-bar > div:last-child { border-right: none; margin-left: auto; }

.label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Airport */
#airport-designator {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-h);
  letter-spacing: 2px;
}

/* Weather grid */
.weather-grid {
  display: flex;
  gap: 16px;
}
.w-field { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.w-label { font-size: 9px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); }
.w-val { font-family: var(--font-mono); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Editable blocks */
.editable-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

/* Frequencies */
#freq-list { display: flex; gap: 6px; flex-wrap: wrap; }
.freq-tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--freq-color);
  font-weight: 600;
  letter-spacing: .5px;
}

/* Add flight button + theme toggle */
#action-block { padding: 10px 18px; gap: 8px; }

/* Airport Information block */
#atis-block {
  flex: 0 0 auto;
}

/* QNH step buttons */
.qnh-step {
  padding: 3px 4px;
  opacity: .7;
}
.qnh-step:hover { opacity: 1; }
.qnh-step .icon { width: 14px; height: 14px; }

/* Runway inline select */
#sel-rwy {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  border-radius: 0;
  padding: 2px 4px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  width: 5ch;
  text-align: center;
  transition: border-color .15s, color .15s;
}
#sel-rwy:hover,
#sel-rwy:focus { border-bottom-color: var(--accent); color: var(--accent-h); }
/* Dropdown options need a solid background to be readable */
#sel-rwy option { background: var(--surface); color: var(--text); font-size: 14px; }
