/* Time pages. Builds on style.css. */

.tz-card { text-align: center; }
.tz-card .lead { margin: 8px 0 0; }
.tz-card .lead:first-child { margin: 0; color: var(--muted); }
.tz-now { margin: 4px 0 0; }
/* Room for the longest reading, "12:59:59 م" / "12:59:59 PM" (10–11 characters), so the
   clocks don't grow or wrap when the script fills them in: two-digit hours used to shift
   the layout every evening (CLS 0.07, 2026-10-20). */
.tm-live[data-show="clock"] { display: inline-block; min-width: 11ch; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tz-big {
  display: inline-block;
  min-width: 11ch;
  white-space: nowrap;
  font-size: clamp(40px, 11vw, 76px);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tz-date { margin: 0; min-height: 1.5em; color: var(--muted); }

.tz-homes, .tz-zones { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.tz-homes li, .tz-zones li { display: flex; gap: 6px; align-items: baseline; }
.tz-homes .tm-live, .tz-zones .tm-live { font-weight: 600; font-variant-numeric: tabular-nums; }
.tz-zones small { color: var(--muted); }

.tz-search { margin-top: 0; }
.tz-table td, .tz-table th { white-space: nowrap; }
.tz-table td { font-variant-numeric: tabular-nums; }
.tz-table small { color: var(--muted); font-weight: 400; }
.tz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tz-chips a { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 15px; }

.tz-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: end; }
.tz-fields + .tz-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tz-fields .field { margin-top: 12px; }
.tz-fields select, .tz-fields input { width: 100%; }
.tz-swap { min-height: 44px; margin-bottom: 2px; }
.tz-result { display: flex; flex-direction: column; align-items: center; margin-top: 16px; }
.tz-result-main { font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--group-strong); }
.tz-result-sub { color: var(--muted); }
