/* ── Reset & variables ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:        #2563eb;
  --accent-hover:  #1d4ed8;
  --accent-light:  #eff6ff;
  --accent-ring:   rgba(37,99,235,.15);
  --text:          #0f172a;
  --muted:         #64748b;
  --subtle:        #94a3b8;
  --border:        #e2e8f0;
  --bg:            #f8fafc;
  --white:         #ffffff;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-xs:     6px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ── Layout helpers ────────────────────────────────────────────────────────── */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Site header ───────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  max-width: 960px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  transition: color .15s, background .15s;
}

.site-nav a:hover  { color: var(--accent); background: var(--accent-light); }
.site-nav a.active { color: var(--accent); background: var(--accent-light); font-weight: 600; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 52px 20px 40px;
}

.hero-title { text-align: center; margin-bottom: 28px; }

.hero-title h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero-title p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--muted);
}

/* ── Search bar ────────────────────────────────────────────────────────────── */
.search-wrap { position: relative; }

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--subtle);
}

#searchInput {
  width: 100%;
  padding: 15px 16px 15px 48px;
  font-size: 1.0625rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
  appearance: none;
}

#searchInput::placeholder { color: var(--subtle); }

#searchInput:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

/* ── Search results panel ──────────────────────────────────────────────────── */
.search-results {
  margin-top: 16px;
}

.results-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.result-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.result-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
}

.result-number[data-size="md"] { font-size: 1.125rem; }
.result-number[data-size="sm"] { font-size: 0.875rem; }

.result-unit {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Dropdown converter ────────────────────────────────────────────────────── */
.converter-section {
  padding: 32px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.converter-widget {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.converter-cat-row {
  margin-bottom: 16px;
}

.converter-cat-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.converter-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
}

.converter-field { display: flex; flex-direction: column; gap: 8px; }

.converter-field input[type="number"],
.converter-field input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -moz-appearance: textfield;
}

.converter-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Hide number input spinners */
.converter-field input[type="number"]::-webkit-inner-spin-button,
.converter-field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

.converter-field select {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s;
}

.converter-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.converter-equals {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--muted);
  user-select: none;
}

.swap-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 16px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.swap-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Data system badge */
.system-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.system-badge--si     { background: #dbeafe; color: #1e40af; }
.system-badge--binary { background: #f0fdf4; color: #166534; }

/* ── Category filter tabs ──────────────────────────────────────────────────── */
.section {
  padding: 40px 20px;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.cat-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cat-tab {
  padding: 6px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.cat-tab:hover  { border-color: var(--accent); color: var(--accent); }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ── Popular conversions grid ──────────────────────────────────────────────── */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.popular-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  font-family: inherit;
  text-align: left;
}

.popular-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.popular-card-pair {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.popular-card-arrow { color: var(--accent); font-weight: 400; }

.popular-card-cat {
  font-size: 0.75rem;
  color: var(--subtle);
}

/* ── Dedicated page layout ─────────────────────────────────────────────────── */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 40px 20px 36px;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.page-hero p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--subtle); margin: 0 6px; }

/* ── Conversion table ──────────────────────────────────────────────────────── */
.conv-table-section { padding: 36px 20px; }

.conv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.conv-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.conv-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.conv-table tr:last-child td { border-bottom: none; }

.conv-table tr:nth-child(even) td { background: var(--bg); }

.conv-table td:last-child { color: var(--accent); font-weight: 600; }

/* ── Answer-first lead sentence ───────────────────────────────────────────── */
.answer-lead {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* ── FAQ section ───────────────────────────────────────────────────────────── */
.faq-section {
  padding: 0 20px 36px;
}

.faq-section h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.faq-a {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Explanation block ─────────────────────────────────────────────────────── */
.explanation {
  padding: 0 20px 36px;
}

.explanation-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.explanation-card h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.explanation-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.formula-block {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  color: var(--text);
}

/* ── Related conversions ───────────────────────────────────────────────────── */
.related-section { padding: 0 20px 48px; }

.related-section h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.related-link {
  display: block;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color .15s, color .15s;
}

.related-link:hover { border-color: var(--accent); color: var(--accent); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--subtle);
  background: var(--white);
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ── About-unit section ────────────────────────────────────────────────────── */
.about-unit-section {
  padding: 0 0 28px;
}
.about-unit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 760px;
  margin: 0 auto;
}
.about-unit-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.about-unit-card p {
  color: #334155;
  line-height: 1.75;
  font-size: 0.975rem;
  margin-bottom: 14px;
}
.about-unit-card p:last-child { margin-bottom: 0; }

/* ── How-conversion-works section ─────────────────────────────────────────── */
.how-works-section {
  padding: 0 0 28px;
}
.formula-inline {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9rem;
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 36px 16px 28px; }
  .section { padding: 28px 16px; }
  .converter-section { padding: 24px 16px; }
  .converter-widget { padding: 16px; }
  .converter-row { grid-template-columns: 1fr; }
  .converter-equals { padding-top: 0; }
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid  { grid-template-columns: repeat(2, 1fr); }
  .results-grid  { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
  .conv-table-section { padding: 24px 16px; }
  .explanation { padding: 0 16px 28px; }
  .faq-section { padding: 0 16px 28px; }
  .related-section { padding: 0 16px 36px; }
  .about-unit-section { padding: 0 16px 24px; }
  .about-unit-card { padding: 20px 18px; }
  .how-works-section { padding: 0 16px 24px; }
  .page-hero { padding: 28px 16px 24px; }
}

@media (max-width: 400px) {
  .converter-field input[type="number"],
  .converter-field input[type="text"] { font-size: 1.25rem; }
}

/* ── Ad slots ──────────────────────────────────────────────────────────────── */
.ad-slot {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.ad-slot--banner {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 0 auto 28px;
}

.ad-slot--rect {
  width: 300px;
  height: 250px;
  float: right;
  margin: 0 0 20px 28px;
}

@media (max-width: 768px) {
  .ad-slot--banner { height: 50px; }
  .ad-slot--rect   { display: none; }
}

/* ── Timezone section ───────────────────────────────────────────────────────── */
.tz-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 32px 0 28px; }
.tz-hero h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 6px; }
.tz-hero p { color: var(--muted); margin-bottom: 20px; font-size: 0.9375rem; }

.tz-search-wrap { position: relative; max-width: 440px; }
.tz-search-input { width: 100%; padding: 10px 16px; font-size: 0.9375rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none; background: var(--white); color: var(--text); }
.tz-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.tz-search-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); z-index: 200; max-height: 280px; overflow-y: auto; }
.tz-search-result { padding: 9px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.tz-search-result:last-child { border-bottom: none; }
.tz-search-result:hover, .tz-search-result.active { background: var(--bg); }
.tz-search-result-flag { font-size: 1.25rem; line-height: 1; }
.tz-search-result-name { font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tz-search-result-abbr { font-size: 0.7rem; font-weight: 700; background: var(--accent-light); color: var(--accent); border-radius: 3px; padding: 1px 5px; }
.tz-search-result-country { font-size: 0.75rem; color: var(--subtle); }

/* World clock grid */
.clock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 12px; padding: 24px 0 32px; }
.clock-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 16px 14px; position: relative; box-shadow: var(--shadow-sm); }
.clock-remove { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--subtle); cursor: pointer; font-size: 1.1rem; line-height: 1; width: 24px; height: 24px; border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; }
.clock-remove:hover { background: var(--bg); color: var(--text); }
.clock-flag { font-size: 1.6rem; margin-bottom: 6px; line-height: 1; }
.clock-city { font-weight: 700; font-size: 0.9375rem; color: var(--text); }
.clock-country { font-size: 0.775rem; color: var(--subtle); margin-bottom: 10px; }
.clock-time { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-bottom: 3px; }
.clock-date { font-size: 0.775rem; color: var(--muted); margin-bottom: 8px; }
.clock-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.clock-abbr   { font-size: 0.75rem; font-weight: 700; background: var(--accent-light); color: var(--accent); border-radius: 4px; padding: 2px 7px; }
.clock-offset { font-size: 0.7rem; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; color: var(--muted); font-variant-numeric: tabular-nums; }
.clock-status { display: flex; align-items: center; gap: 4px; font-size: 0.7rem; color: var(--muted); }
.clock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); flex-shrink: 0; }
.clock-dot.open { background: #22c55e; }

/* Meeting planner */
.planner-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.planner-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; min-height: 36px; align-items: center; }
.planner-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-light); border: 1px solid rgba(37,99,235,.3); border-radius: 20px; padding: 4px 8px 4px 12px; font-size: 0.8125rem; font-weight: 500; color: var(--accent); }
.planner-chip button { background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; font-size: 1rem; line-height: 1; margin-left: 2px; }

.timeline-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; overflow: hidden; }
.timeline-scroll { overflow-x: auto; }
.timeline-header { display: flex; margin-bottom: 4px; }
.timeline-label-col { width: 110px; flex-shrink: 0; font-size: 0.7rem; color: var(--subtle); }
.timeline-hours { display: flex; flex: 1; min-width: 504px; }
.timeline-hour-label { flex: 1; text-align: center; font-size: 0.65rem; color: var(--subtle); user-select: none; }
.timeline-row { display: flex; align-items: center; margin-bottom: 5px; }
.timeline-city-name { width: 110px; flex-shrink: 0; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 5px; padding-right: 8px; }
.timeline-cells { display: flex; gap: 2px; flex: 1; min-width: 504px; }
.timeline-cell { flex: 1; height: 34px; border-radius: 3px; cursor: pointer; transition: opacity .1s; position: relative; }
.timeline-cell:hover { opacity: .75; }
.timeline-cell.biz { background: #4ade80; }
.timeline-cell.early-late { background: #fbbf24; }
.timeline-cell.night { background: #cbd5e1; }
.timeline-cell.selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.timeline-now { position: relative; }
.timeline-now::after { content: ''; position: absolute; top: -4px; bottom: -4px; left: 50%; width: 2px; background: var(--accent); border-radius: 1px; pointer-events: none; }
.timeline-legend { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--muted); }
.legend-dot { width: 12px; height: 12px; border-radius: 2px; }

.time-detail { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 12px; }
.time-detail-label { font-size: 0.775rem; color: var(--muted); margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.time-detail-cities { display: flex; flex-wrap: wrap; gap: 16px; }
.time-detail-city { display: flex; align-items: center; gap: 8px; }
.time-detail-time { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.time-detail-name { font-size: 0.8rem; color: var(--muted); }

.planner-share { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8125rem; cursor: pointer; color: var(--text); font-family: inherit; }
.planner-share:hover { border-color: var(--accent); color: var(--accent); }
.planner-share-copied { border-color: #22c55e; color: #166534; }

/* Pair page */
.tz-pair-live { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin: 24px 0; }
.tz-pair-arrow { font-size: 1.25rem; color: var(--subtle); text-align: center; }
.tz-pair-city-block { text-align: center; }
.tz-pair-flag { font-size: 2rem; margin-bottom: 4px; }
.tz-pair-city-name { font-size: 0.875rem; color: var(--muted); margin-bottom: 2px; }
.tz-pair-time { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 2px; }
.tz-pair-date { font-size: 0.8rem; color: var(--subtle); }
.tz-pair-abbr { font-size: 0.775rem; font-weight: 600; color: var(--muted); margin-top: 4px; }

.meeting-times-section { padding: 0 0 28px; }
.meeting-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.mt-slot { padding: 7px 12px; border-radius: var(--radius-xs); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.mt-slot.good { background: #dcfce7; color: #166534; }
.mt-slot.ok   { background: #fef9c3; color: #854d0e; }
.mt-slot.bad  { background: var(--bg); color: var(--subtle); font-weight: 400; }

/* Timezone nav link */
.site-nav a.tz-nav { color: var(--accent); font-weight: 600; }

@media (max-width: 640px) {
  .tz-hero h1 { font-size: 1.4rem; }
  .clock-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .clock-time { font-size: 1.5rem; }
  .tz-pair-live { grid-template-columns: 1fr; gap: 12px; }
  .tz-pair-arrow { display: none; }
  .timeline-city-name { width: 80px; font-size: 0.72rem; }
  .timeline-cells { min-width: 400px; }
}
