/* ==========================================================
   COMPARE TIME ZONES — page-specific styles
   Loaded after style.css; reuses its tokens, buttons, fields,
   hero, cards, ad rails and header. No token is redefined here.
   Same architecture as planner.css / tzc.css: a dedicated,
   page-specific stylesheet rather than a shared cross-tool file.
   ========================================================== */

.ctz-hero-lead{ font-size: 1.12rem; color: var(--navy); font-weight: 600; margin: 18px 0 0; }

.ctz-tool{ padding: 0 0 24px; margin-top: -28px; }
.ctz-card{
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px 30px;
}
.ctz-card-head{ margin-bottom: 16px; }
.ctz-card-head h2{ font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.ctz-card-head p{ color: var(--ink-soft); font-size: 0.95rem; margin: 6px 0 0; }

.ctz-cities{ display: flex; flex-direction: column; gap: 6px; }
.ctz-city-row{
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 8px 14px; display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 2px 12px; align-items: center;
}
/* Scoped to this compact row context only — the shared .field rules
   used across the rest of the site (search form, planner, converter)
   are untouched. */
.ctz-city-row .field{ gap: 3px; }
.ctz-city-row .field label{ font-size: 0.72rem; }
.ctz-city-row .field input[type="text"]{ padding: 7px 14px; font-size: 0.88rem; }
.ctz-city-field{ position: relative; min-width: 0; }
.ctz-city-meta{
  grid-column: 1 / -1; margin: 0; font-size: 0.74rem; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; line-height: 1.4;
}
.ctz-sep{ color: #C0B6A5; }
.ctz-flag{ font-size: 0.9rem; margin-right: 4px; }
.ctz-remove{
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--card); color: var(--ink-soft); display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ctz-remove:hover{ background: var(--red-tint); border-color: var(--red); color: var(--red); }
.ctz-remove[disabled]{ opacity: .4; cursor: not-allowed; }

.ctz-ac{
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); max-height: 260px; overflow-y: auto; padding: 6px;
}
.ctz-ac[hidden]{ display: none; }
.ctz-ac li{
  padding: 9px 13px; font-size: 0.85rem; cursor: pointer; border-radius: var(--radius-sm);
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.ctz-ac li:hover, .ctz-ac li.is-active{ background: var(--blue-tint); }
.ctz-ac .ctz-ac-zone{ font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); flex-shrink: 0; }

.ctz-add-row{ display: flex; align-items: center; gap: 14px; margin: 10px 0 0; flex-wrap: wrap; }
.ctz-limit-note{ font-size: 0.78rem; color: var(--ink-soft); }

.ctz-controls{
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--border-soft); align-items: start;
}
.ctz-controls .field{ grid-column: auto; }
.ctz-time-field{ display: flex; flex-direction: column; }
.ctz-now-link{
  align-self: flex-start; margin-top: 8px; font-size: 0.8rem; color: var(--blue-deep);
  text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px;
  background: none; border: none; padding: 0; cursor: pointer; white-space: nowrap;
}
.ctz-now-link:hover{ color: var(--blue); text-decoration-color: var(--blue); }

/* ---------- Local time summary ---------- */
.ctz-summary{ padding: 44px 0 0; }
.ctz-summary-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.ctz-summary-card{
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 4px;
}
.ctz-summary-city{ font-size: 0.85rem; color: var(--ink-soft); }
.ctz-summary-time{ font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.03em; color: var(--navy); }
.ctz-summary-meta{ font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); }
.ctz-summary-shift{
  display: inline-block; margin-top: 2px; font-size: 0.64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--blue-deep); background: var(--blue-tint); padding: 2px 8px; border-radius: var(--radius-pill);
  align-self: flex-start;
}
.ctz-summary-shift[hidden]{ display: none; }

/* ---------- Timeline ---------- */
.ctz-timeline-section{ padding: 44px 0 0; }
.ctz-panel{
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 30px 32px;
}
.ctz-panel h2{ font-size: 1.35rem; }
.ctz-panel-sub{ color: var(--ink-soft); font-size: 0.9rem; margin: 8px 0 24px; }
.ctz-tl-wrap{ overflow-x: auto; }
.ctz-tl{ display: flex; flex-direction: column; gap: 12px; position: relative; min-width: 560px; }
.ctz-tl-row{ display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; }
.ctz-tl-name{ font-size: 0.85rem; font-weight: 600; color: var(--navy); min-width: 0; }
.ctz-tl-name span{ display: block; font-weight: 400; font-size: 0.72rem; color: var(--ink-soft); }
.ctz-tl-track{
  position: relative; height: 30px; border-radius: var(--radius-sm);
  background: var(--bg-subtle); border: 1px solid var(--border-soft); overflow: hidden;
}
.ctz-tl-block{ position: absolute; top: 0; bottom: 0; background: var(--tz-ct); }
.ctz-tl-overlap{
  position: absolute; top: 0; bottom: 0; background: rgba(198,113,57,0.18);
  border-left: 2px solid var(--blue); border-right: 2px solid var(--blue);
}
.ctz-tl-marker{
  position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--navy); z-index: 3;
}
.ctz-tl-marker::before{
  content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--navy);
}
.ctz-tl-axis{ display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; margin-top: 6px; }
.ctz-tl-ticks{ display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.66rem; color: #A19786; }
.ctz-tl-legend{ display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; font-size: 0.78rem; color: var(--ink-soft); }
.ctz-tl-key{ display: flex; align-items: center; gap: 8px; }
.ctz-tl-swatch{ width: 14px; height: 10px; border-radius: 3px; background: var(--tz-ct); }
.ctz-tl-swatch.is-overlap{ background: rgba(198,113,57,0.22); border: 1px solid var(--blue); }
.ctz-tl-swatch.is-marker{ width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }

.ctz-overlap-note{
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border); font-size: 0.95rem;
  font-weight: 600; color: var(--navy);
}
.ctz-overlap-note.is-none{ color: var(--ink-soft); font-weight: 500; }

/* ---------- Pairwise difference summary ---------- */
.ctz-diffs{ padding: 44px 0 0; }
.ctz-diffs-list{ display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.ctz-diffs-list p{ margin: 0; font-size: 0.95rem; color: var(--navy); }

/* ---------- Cross-links ---------- */
.ctz-cross{ padding: 56px 0 0; }
.ctz-cross-card{
  background: linear-gradient(135deg, #402310, #2E2B25); color: var(--bg-subtle);
  border-radius: var(--radius-lg); padding: 34px 38px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
}
.ctz-cross-card h2{ color: #FFFCF6; font-size: 1.35rem; }
.ctz-cross-card p{ margin: 10px 0 0; color: #C0B6A5; font-size: 0.94rem; max-width: 58ch; }
.ctz-cross-card .btn-primary{ white-space: nowrap; }
.ctz-converter-link{ display: inline-block; margin: 18px 0 0; font-size: 0.88rem; }

/* ---------- SEO content ---------- */
.ctz-info{ padding: 72px 0 0; }
.ctz-info-body{ max-width: 68ch; color: var(--ink-soft); font-size: 0.96rem; }
.ctz-info-body p{ margin: 14px 0 0; text-wrap: pretty; }
.ctz-info-body ol{ list-style: decimal; margin: 14px 0 0; padding-left: 22px; }
.ctz-info-body li{ margin-bottom: 6px; }

.ctz-faq{ padding: 64px 0 0; }
.ctz-faq-list{ max-width: 800px; display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.ctz-faq-item{
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 20px 24px;
}
.ctz-faq-item summary{
  cursor: pointer; list-style: none; font-weight: 600; color: var(--navy); font-size: 0.98rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ctz-faq-item summary::-webkit-details-marker{ display: none; }
.ctz-faq-item summary::after{ content: '+'; font-size: 1.3rem; color: var(--blue); line-height: 1; }
.ctz-faq-item[open] summary::after{ content: '−'; }
.ctz-faq-item p{ margin: 14px 0 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 720px){
  .ctz-card{ padding: 20px 18px; border-radius: var(--radius-md); }
  .ctz-city-row{ grid-template-columns: minmax(0, 1fr) 32px; padding: 8px 12px; }
  .ctz-controls{ grid-template-columns: 1fr; gap: 14px; }
  .ctz-panel{ padding: 22px 18px; }
  .ctz-cross-card{ grid-template-columns: 1fr; padding: 24px; }
  .ctz-cross-card .btn-primary{ width: 100%; }
  /* The timeline itself scrolls horizontally on narrow screens rather
     than trying to compress 24 hours of labelled scale into ~340px —
     this keeps hour labels and working-hours bands legible instead of
     illegibly squeezed, per the "contained horizontal scroll only if
     necessary" allowance. */
  .ctz-tl{ min-width: 560px; }
}
