/* Time-zone calculator (v1.1)
   ---------------------------------------------------------------------------
   Mirrors the Crosswind / Flight planner page rhythm: compact form on top,
   a clear "Calculate" CTA, and result cards below. Designed phone-first
   (single-column on iPhone, two-column once we hit the md breakpoint).

   The iOS bundle layers on top of this with `body.aero-native-ios
   [data-page="timezone"]` overrides in native-ios.css so the result cards
   match the rest of the native shell (deep-navy surfaces, amber accent).
*/

.tz-page {
  padding-bottom: 2.5rem;
}

/* v1.1 build 17: standalone neutral eyebrow for the Time-Zone page.
   Previously this element also wore the `.pro-badge` class, which
   prefixed a ★ glyph and shipped an amber pill — making the feature
   read as a premium-only badge. The Time-Zone Calculator is a standard
   tool alongside Crosswind and the Planner, so the eyebrow is now a
   plain blue pill with no star. */
.tz-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--aero-sky-100, #e6f1ff);
  color: var(--aero-navy-800, #102a43);
}

.tz-form {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.tz-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Force uppercase glyphs on the ICAO inputs so KJFK reads the same
   whether the user typed it lower- or upper-case. */
#tz-origin,
#tz-destination {
  text-transform: uppercase;
}

.tz-tz-hint {
  min-height: 1.2em;
  font-size: 0.82rem;
  color: #6b7785;
}
.tz-tz-hint-ok    { color: #1f7a3a; }
.tz-tz-hint-err   { color: #b3261e; }

.tz-ete-row legend.tz-ete-legend {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.tz-error {
  color: #b3261e;
  background: #fdecea;
  border: 1px solid #f9c8c0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

/* Results */
.tz-results {
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
}

.tz-results-title {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  color: var(--aero-navy-800, #102a43);
}

.tz-results-route {
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--aero-navy-800, #102a43);
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.tz-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 700px) {
  .tz-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tz-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(13, 28, 56, 0.08);
  box-shadow: 0 1px 2px rgba(13, 28, 56, 0.04);
}

.tz-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6b7e;
  margin: 0 0 8px;
}

.tz-card dl {
  margin: 0;
}

.tz-card dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(13, 28, 56, 0.05);
}
.tz-card dl > div:last-child { border-bottom: none; }

.tz-card dt {
  font-size: 0.82rem;
  color: #5b6b7e;
  flex-shrink: 0;
}

.tz-card dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  color: #0c2547;
  text-align: right;
  font-size: 0.95rem;
}

.tz-results-note {
  color: #5b6b7e;
  font-size: 0.85rem;
  margin: 1rem 0 0;
  line-height: 1.5;
}

.tz-help {
  font-size: 0.95rem;
  color: #2a3a4f;
}
.tz-help ul { padding-left: 1.25rem; }
.tz-help li { margin-bottom: 0.4rem; line-height: 1.5; }
