*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── SKIP LINK ──────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px;
  left: -999px;
  padding: 0.5rem 1rem;
  background: #3DB3F4;
  color: #000;
  font-weight: 600;
  border-radius: 0 0 6px 0;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  left: 0;
}

/* ── VISUALLY HIDDEN UTILITY ────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: 'Figtree', sans-serif;
  min-height: 100vh;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem 3rem;
  border-top: 4px solid #3DB3F4;
  border-bottom: 4px solid #3DB3F4;
}

/* ── COCKPIT ────────────────────────────────────── */
.cockpit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 560px;
}

.cockpit-header {
  text-align: center;
}

.cockpit-header h1 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2rem;
  font-weight: 400;
  color: #3DB3F4;
  letter-spacing: 0.3em;
}

.cockpit-header .obs-time {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.12em;
  margin-top: 0.25rem;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-input {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  padding: 0.375rem 0.75rem;
  width: 5.75rem;
  text-align: center;
  text-transform: uppercase;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: #3DB3F4;
  outline: none;
}

.search-input:focus-visible {
  outline: 2px solid #3DB3F4;
  outline-offset: 2px;
}

.btn-update {
  background: #3DB3F4;
  border: none;
  border-radius: 6px;
  color: #000;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.375rem 0.875rem;
  text-transform: uppercase;
  transition: background 0.15s;
}

.btn-update:hover {
  background: #60c6ff;
}

.btn-update:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.status-msg {
  font-size: 0.875rem;
  color: #888;
  text-align: center;
  padding: 0.5rem;
}

.error-msg {
  font-size: 0.875rem;
  color: #ef4444;
  text-align: center;
  padding: 0.5rem;
}

/* ── INSTRUMENT PANEL ───────────────────────────── */
.instrument-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-wrap svg {
  width: 100%;
  max-width: 240px;
  height: auto;
}

/* ── INFO STRIP ─────────────────────────────────── */
.info-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
}

.info-card {
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  padding: 0.6rem 0.875rem;
}

.info-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.info-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.45;
}

/* ── RAW METAR ──────────────────────────────────── */
.raw-metar {
  width: 100%;
  background: #080808;
  border: 1px solid #181818;
  border-radius: 6px;
  padding: 0.6rem 0.875rem;
}

.raw-metar .raw-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.raw-metar .raw-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: #888;
  word-break: break-all;
  line-height: 1.5;
}

/* ── GAUGE LABEL (outside the circle) ──────────── */
.gauge-label {
  text-align: center;
  font-family: 'Figtree', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 400px) {
  .instrument-panel {
    gap: 0.625rem;
  }
}
