/* ──────────────────────────────────────────────────────────────────────────
   wc-hero.css — shared clock-card UI for the homepage hero and the
   /en/convert/{from}-to-{to} converter pages. Extracted from the homepage so
   both surfaces share one visual language.
   ────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ── World-map backdrop (opt-in via body.wc-has-map) ── */
html { overflow-x: hidden; overflow-x: clip; }
body.wc-has-map { background-color: #0a0a0a; position: relative; overflow-x: hidden; overflow-x: clip; }
body.wc-has-map::before {
  content: ''; position: absolute;            /* absolute (not fixed) → scrolls with the page */
  top: -25vh; height: 150vh; left: -25%; right: -25%;
  z-index: 0; pointer-events: none;
  background-image: url('/images/mapHeroSectionBackground_1.avif');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
body.wc-has-map .page-wrapper,
body.wc-has-map .main-wrapper { position: relative; z-index: 1; }

/* ── Status bar: live line (left) + 12h/24h toggle (right) ── */
.wc-hero-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.85rem 1.5rem; flex-wrap: wrap;
  max-width: 780px; margin: 0 auto 1.25rem;
  padding: 0 0.25rem;
  cursor: default; -webkit-user-select: none; user-select: none;
}
.wc-status-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.45em;
  font-size: clamp(0.92rem, 1.1vw, 1.1rem); color: rgba(255,255,255,0.42);
}
.wc-status-live {
  display: inline-flex; align-items: center; gap: 0.5em;
  color: rgba(255,214,10,0.95); font-weight: 600;
}
.wc-live-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #FFD60A; animation: wc-live-pulse 2.4s ease-out infinite;
}
@keyframes wc-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,214,10,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(255,214,10,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,214,10,0); }
}
.wc-status-dot { color: rgba(255,255,255,0.2); }
@media (max-width: 600px) { .wc-status-locs, .wc-status-locs + .wc-status-dot { display: none; } }

/* 12h / 24h segmented toggle */
.wc-fmt-toggle {
  display: inline-flex; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px; padding: 3px;
  cursor: pointer;
}
.wc-fmt-opt {
  border: none; background: transparent; cursor: pointer;
  color: rgba(255,255,255,0.5); font-family: inherit;
  font-size: clamp(0.82rem, 1vw, 0.95rem); font-weight: 600;
  padding: 0.42rem 1.1rem; border-radius: 100px;
  transition: background 0.15s, color 0.15s; line-height: 1;
}
.wc-fmt-opt.is-active { background: rgba(255,255,255,0.92); color: #0a0a0a; }
.wc-fmt-opt:not(.is-active):hover { color: rgba(255,255,255,0.85); }

/* ── Clock card: glassy panel ── */
.wc-clock-card {
  max-width: 780px; margin-left: auto; margin-right: auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 30px;
  padding: clamp(1.05rem, 1.6vw, 1.5rem) clamp(1.5rem, 2.8vw, 2.9rem) clamp(1.05rem, 1.6vw, 1.5rem);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.05);
  cursor: default; -webkit-user-select: none; user-select: none;
}
.wc-clock-band {
  margin-top: clamp(0.15rem, 0.5vw, 0.35rem);
  padding: clamp(0.1rem, 0.4vw, 0.3rem) clamp(0.7rem, 1.4vw, 1.1rem) clamp(0.1rem, 0.4vw, 0.3rem);
  text-align: center;
}
.wc-card-divider {
  height: 1px; border: none; margin: clamp(0.8rem, 1.3vw, 1.2rem) 0 clamp(0.75rem, 1.2vw, 1.1rem);
  background: rgba(255,255,255,0.08);
}
.wc-card-footer { display: flex; justify-content: center; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: clamp(1.5rem, 2.2vw, 2rem); }
.wc-card-footer[hidden] { display: none; }
.wc-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #FFD60A; color: #000; border: none; border-radius: 12px;
  font-family: inherit; font-weight: 600; font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  padding: 0.72rem 1.5rem; min-width: 220px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(255,214,10,0.22);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.wc-share-btn:hover { transform: translateY(-1px); background: #ffdf45; box-shadow: 0 14px 38px rgba(255,214,10,0.32); }
.wc-share-btn:active { transform: translateY(0); }
.wc-permalink {
  font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.15s;
}
.wc-permalink:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .wc-clock-card { padding: 1.4rem 1rem 1.5rem; border-radius: 22px; }
}

/* ── Clock digits ── */
.wc-clock {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: #F5F7FC;
}
.wc-clock .wc-sec { color: #6E7896; }
.wc-ampm { font-size: 0.32em; font-weight: 700; color: #6E7896; margin-left: 0.22em; letter-spacing: 0.02em; line-height: 1; vertical-align: baseline; }
#wc-hero-clock.is-12h { font-size: clamp(3rem, 11.5vw, 9rem) !important; }
.wc-clock-sep {
  color: rgba(255,255,255,0.3);
  font-weight: 300;
  position: relative;
  bottom: 0.1em;
  letter-spacing: -0.12em;
  margin-left: -0.10em;
}

/* ── Meta row (city pill · stacked tz · date) ── */
.wc-hero-meta {
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  color: rgba(255,255,255,0.5);
  margin: 0; line-height: 1.25;
  display: flex; align-items: center; gap: 0.7em; flex-wrap: wrap;
}
.wc-hero-meta strong { color: #fff; font-weight: 700; }
.wc-meta-tz { display: inline-flex; flex-direction: column; line-height: 1.1; }
.wc-meta-tz .wc-meta-abbr { font-size: 0.92em; }
.wc-meta-tz .wc-meta-off  { color: rgba(255,255,255,0.34); font-size: 0.82em; font-weight: 500; }
.wc-meta-abbr { color: rgba(255,214,10,0.9); font-weight: 700; letter-spacing: 0.01em; }
.wc-meta-sep  { color: rgba(255,255,255,0.2); margin: 0 0.18em; }
.wc-meta-day  { color: rgba(255,255,255,0.32); }
.wc-meta-behind { color: rgba(255,255,255,0.5); font-weight: 500; }

/* ── Compare prompt / add button ── */
.wc-compare-prompt { margin-top: 0; }
.wc-compare-label {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem); font-weight: 400;
  color: rgba(255,255,255,0.4); margin-bottom: 0.4rem;
}
.wc-add-btn {
  display: inline-flex; align-items: center; gap: 0.48rem;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 100px;
  color: rgba(255,255,255,0.78);
  font-size: clamp(0.95rem, 1.3vw, 1.12rem); font-weight: 600;
  padding: 0.62rem 1.15rem 0.62rem 1rem;
  cursor: pointer; font-family: inherit; user-select: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.wc-add-btn:hover {
  background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.55);
  color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}
.wc-add-btn:hover .wc-pill-chevron { opacity: 0.85; transform: translateY(1px); }
.wc-add-btn svg { pointer-events: none; }

/* ── Stacked comparison blocks ── */
.wc-cmp-block { margin-bottom: 0.85rem; }
.wc-cmp-meta {
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  color: rgba(255,255,255,0.48);
  margin-bottom: 0.5rem;
  line-height: 1.25;
  display: flex; align-items: center; gap: 0.7em; flex-wrap: wrap;
}
.wc-cmp-meta strong { color: #fff; font-weight: 700; }
.wc-cmp-clock { font-size: clamp(2.2rem, 6.8vw, 4.6rem) !important; }
.wc-cmp-clock-row { display: flex; align-items: center; gap: 1rem; }
.wc-remove-circle {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
}
.wc-remove-circle:hover { color: #fff; }
.wc-cmp-diff { display: none; }
.wc-cmp-separator {
  height: 1px; background: rgba(255,255,255,0.08);
  margin: 0.3rem 0 1rem; border: none;
}

/* ── Time-shift slider ── */
.wc-cmp-slider-wrap { max-width: none; padding-top: 1.75rem; }
@media (max-width: 600px) { .wc-cmp-slider-wrap { padding-top: 1rem; } }
.wc-slider-tooltip-zone { position: relative; height: 44px; pointer-events: none; }
.wc-slider-tooltip {
  position: absolute; bottom: 10px;
  transform: translateX(-50%);
  background: #1d1a2e;
  border: 1px solid rgba(88,66,148,0.55);
  border-radius: 10px;
  padding: 0.38rem 0.65rem 0.38rem 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
  white-space: nowrap; pointer-events: auto; z-index: 10;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}
.wc-slider-tooltip::before {
  content: '';
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(88,66,148,0.55);
  border-bottom: 0;
}
.wc-slider-tooltip::after {
  content: '';
  position: absolute; top: calc(100% - 1px); left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #1d1a2e;
  border-bottom: 0;
}
.wc-slider-tooltip-val {
  font-size: 0.9rem; font-weight: 600; color: #fff;
  font-variant-numeric: tabular-nums;
}
.wc-tt-hint { font-size: 1rem; font-weight: 600; color: #8089a8; white-space: nowrap; letter-spacing: 0.01em; }
.wc-slider-tooltip.is-hint { background: none; border: none; box-shadow: none; padding: 0; bottom: 0.65rem; }
.wc-slider-tooltip.is-hint::before,
.wc-slider-tooltip.is-hint::after { display: none; }
.wc-slider-tooltip-x {
  width: 18px; height: 18px; flex-shrink: 0;
  background: none; border: none;
  color: rgba(255,255,255,0.6); cursor: pointer; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s; line-height: 1; pointer-events: auto;
}
.wc-slider-tooltip-x:hover { color: #fff; }
.wc-pill-track {
  position: relative; height: 40px;
  touch-action: none; cursor: pointer;
}
.wc-pill-bar {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  height: 18px; border-radius: 40px;
  background: #322543; border: 1px solid #736680;
  overflow: hidden;
}
.wc-pill-fill {
  position: absolute; top: 0; bottom: 0;
  background: #FFD60A;
  border-radius: 40px;
  pointer-events: none; z-index: 1;
}
.wc-pill-thumb {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 38px; border-radius: 40px;
  background: #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.55);
  pointer-events: none; z-index: 3; will-change: left;
  transition: box-shadow 0.12s;
}
.wc-pill-track:active .wc-pill-thumb {
  box-shadow: 0 4px 14px rgba(0,0,0,0.6), 0 0 0 6px rgba(255,255,255,0.06);
}
.wc-pill-ticks {
  display: flex; margin-top: 0.55rem;
  pointer-events: none; user-select: none;
  opacity: 0.5; transition: opacity 0.22s ease;   /* always shown; dimmed at "Now" */
}
.wc-pill-ticks.is-visible { opacity: 1; }          /* full once the time is shifted */
.wc-pill-ticks span {
  flex: 1; text-align: center;
  font-size: 11px; font-weight: 700; color: #d9d9d9; opacity: 0.5;
  letter-spacing: 0.01em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wc-pill-ticks span:nth-child(1), .wc-pill-ticks span:nth-child(13) { opacity: 0.2; }
.wc-pill-ticks span:nth-child(2), .wc-pill-ticks span:nth-child(12) { opacity: 0.35; }
.wc-pill-ticks span:nth-child(3), .wc-pill-ticks span:nth-child(11) { opacity: 0.4; }
@media (max-width: 600px) {
  .wc-pill-ticks { display: none; }
}
.wc-cmp-slider {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 10;
  margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none;
}
.wc-cmp-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 58px; height: 40px;
  cursor: grab; background: transparent;
}
.wc-cmp-slider:active::-webkit-slider-thumb { cursor: grabbing; }
.wc-cmp-slider::-moz-range-thumb {
  width: 58px; height: 40px;
  cursor: grab; background: transparent; border: none; opacity: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   Home hero redesign — prominent city control, tz caption, search + chips,
   boarding-pass comparison rows, in-card action bar. Scoped to .wc-home so the
   pair/entity pages keep their existing card styling.
   ══════════════════════════════════════════════════════════════════════════ */

/* a touch more breathing room below the card while comparing (taller card) */
.wc-comparing .wc-clock-card { margin-bottom: 2.25rem; }

/* Single-view meta: enlarged name control (left) + date (right) */
.wc-home #wc-hero-meta { justify-content: space-between; }
.wc-meta-left { display: flex; align-items: center; gap: 0.55em; flex-wrap: wrap; width: 100%; }
/* zone (left) + date (right) share one line; wraps below the pill on mobile */
.wc-meta-row2 { display: flex; align-items: baseline; gap: 0.5em; flex: 1 1 auto; min-width: 0; }
.wc-home #wc-hero-meta .wc-city-pill {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 600;
  padding: 0.24em 0.55em 0.24em 0.7em;
}
.wc-home #wc-hero-meta .wc-pill-chevron { width: 12px; height: 7px; opacity: 0.7; }

/* "Your time" indicator on the local clock */
.wc-localtag {
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.22em 0.6em; border-radius: 100px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.62); font-size: 0.72rem; font-weight: 600;
  white-space: nowrap; line-height: 1;
}
.wc-localtag svg { opacity: 0.8; }

/* tz/offset shown inline, right after the local city pill */
.wc-home #wc-hero-meta .wc-meta-sub {
  font-size: clamp(0.85rem, 1.1vw, 0.98rem); color: rgba(255,255,255,0.5); white-space: nowrap;
}
.wc-home #wc-hero-meta .wc-meta-sub .wc-meta-abbr { color: rgba(255,214,10,0.9); font-weight: 700; }
.wc-details {
  color: rgba(255,255,255,0.42); text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2); text-underline-offset: 2px;
  transition: color 0.15s;
}
.wc-details:hover { color: #fff; }
.wc-details .wc-ext { vertical-align: -1px; opacity: 0.7; }

/* "Compare times" section + inline search field — dashed ghost style, matching
   the in-card "+ Add city or timezone" affordance used in compare mode */
.wc-search-wrap { margin-top: 1.3rem; }
.wc-search {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem; width: 100%;
  background: rgba(255,255,255,0.045); border: 1.5px dashed rgba(255,255,255,0.32);
  border-radius: 12px; padding: 0.9rem 1.1rem; cursor: pointer; font-family: inherit;
  color: rgba(255,255,255,0.78);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.wc-search:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); color: #fff; }
.wc-search:focus-visible { outline: none; border-color: rgba(255,214,10,0.6); color: #fff; }
.wc-search-ic { flex: none; }
.wc-search-ph { font-size: clamp(0.95rem, 1.3vw, 1.05rem); }
.wc-search-sub { color: rgba(255,255,255,0.4); }
.wc-search:hover .wc-search-sub { color: rgba(255,255,255,0.6); }
.wc-search-short { display: none; } /* mobile-only short label (see @media below) */

/* Popular quick-pick chips */
.wc-quick-chips { display: flex; flex-wrap: nowrap; overflow: hidden; align-items: center; gap: 0.4rem; margin-top: 0.8rem; }
.wc-chips-label { font-size: 0.72rem; color: rgba(255,255,255,0.3); margin-right: 0.1rem; flex: none; }
.wc-chip {
  flex: none; white-space: nowrap; line-height: 1.3;
  background: rgba(255,255,255,0.05); border: 1px solid transparent;
  color: rgba(255,255,255,0.62); font-size: 0.72rem; font-family: inherit;
  padding: 0.12rem 0.62rem; border-radius: 100px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.wc-chip:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); color: #fff; }

/* Compare header: back-to-single */
.wc-cmp-head { display: flex; margin-bottom: 0.4rem; }
.wc-cmp-back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: rgba(255,255,255,0.5); font-size: 0.82rem; padding: 0.2rem 0.1rem;
  transition: color 0.15s;
}
.wc-cmp-back:hover { color: #fff; }

/* Boarding-pass comparison rows — 2×2 grid: name | time on the top line
   (aligned by their middle), sub | date on the bottom line (shared baseline) */
.wc-cmp-row {
  display: grid; grid-template-columns: 1fr auto;
  column-gap: 1.25rem; row-gap: 0.5rem; align-items: center;
}
.wc-cmp-sep { height: 1px; background: rgba(255,255,255,0.08); margin: 1rem 0; }
.wc-cmp-row-top { grid-column: 1; grid-row: 1; display: inline-flex; align-items: center; gap: 0.5em; flex-wrap: wrap; }
.wc-home .wc-cmp-row .wc-city-pill {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600;
  padding: 0.24em 0.55em 0.24em 0.7em;
}
.wc-home .wc-cmp-row .wc-pill-chevron { width: 12px; height: 7px; opacity: 0.7; }
.wc-home .wc-cmp-row .wc-cmp-time {
  grid-column: 2; grid-row: 1; justify-self: end;
  font-size: clamp(2.4rem, 7vw, 4.2rem) !important;
}
.wc-cmp-row-sub { grid-column: 1; grid-row: 2; align-self: baseline; font-size: 0.92rem; color: rgba(255,255,255,0.48); }
.wc-cmp-row-sub .wc-meta-abbr { color: rgba(255,214,10,0.9); font-weight: 700; }
.wc-cmp-row-sub .wc-meta-behind { color: rgba(255,255,255,0.6); }
.wc-cmp-row-meta { grid-column: 2; grid-row: 2; justify-self: end; align-self: baseline; display: flex; align-items: baseline; gap: 0.5rem; }
.wc-cmp-row-meta .wc-date-btn { margin-left: 0; }
/* Removable city pill (added rows): name+▾ segment | ✕ segment in one outline */
.wc-pill-removable {
  display: inline-flex; align-items: stretch;
  border: 1.5px solid rgba(255,255,255,0.32); border-radius: 100px;
  background: rgba(255,255,255,0.08); overflow: hidden;
  transition: border-color 0.18s;
}
.wc-pill-removable:hover { border-color: rgba(255,255,255,0.5); }
.wc-home .wc-cmp-row .wc-pill-removable .wc-city-pill { border: none; background: none; border-radius: 0; }
.wc-pill-removable .wc-city-pill:hover { box-shadow: none; background: rgba(255,255,255,0.06); }
.wc-pill-x {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-left: 1.5px solid rgba(255,255,255,0.2);
  background: none; cursor: pointer; color: rgba(255,255,255,0.62);
  padding: 0 0.85em; font-family: inherit;
  transition: color 0.15s, background 0.15s;
}
.wc-pill-x:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Add another place */
/* Matches the prominent single-state search button (.wc-search) on the home hero:
   taller, thicker dashed outline, subtle fill. */
.wc-cmp-add {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; margin-top: 1rem;
  background: rgba(255,255,255,0.045); border: 1.5px dashed rgba(255,255,255,0.32);
  border-radius: 12px; padding: 0.9rem 1.1rem; cursor: pointer; font-family: inherit;
  color: rgba(255,255,255,0.78); font-size: 0.95rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.wc-cmp-add:hover { border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.08); }
/* a→b (fixedPair) pages: the converter widget with fixed places — no Add button,
   and the added pill isn't removable (changing a pill navigates to the new pair). */
.wc-fixed-pair #wc-cmp-add { display: none; }
.wc-fixed-pair .wc-pill-x { display: none; }

/* In-card action bar */
.wc-actions-divider { margin: 1.1rem 0 1rem; }
.wc-card-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.wc-card-actions .wc-share-btn { min-width: 13em; gap: 0.5rem; padding: 0.78rem 1.5rem; font-size: clamp(1rem, 1.2vw, 1.08rem); white-space: nowrap; }
.wc-action-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: transparent; border: 1.5px solid rgba(255,255,255,0.25); border-radius: 12px;
  color: rgba(255,255,255,0.85); font-size: clamp(0.95rem, 1.1vw, 1.02rem); font-weight: 600;
  text-decoration: none; padding: 0.78rem 1.5rem; white-space: nowrap; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.wc-action-secondary[hidden] { display: none; }
.wc-action-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); color: #fff; }
.wc-action-secondary .wc-ext { opacity: 0.8; }

@media (max-width: 600px) {
  /* Keep the desktop two-column boarding-pass layout (name | time on top,
     zone | date below) — just scale the type down so it fits a phone. */
  .wc-cmp-row { column-gap: 0.6rem; row-gap: 0.25rem; }
  .wc-home .wc-cmp-row .wc-cmp-time { font-size: clamp(1.45rem, 6.6vw, 2.1rem) !important; }
  .wc-home .wc-cmp-row .wc-city-pill { white-space: nowrap; font-size: clamp(0.92rem, 3.6vw, 1.12rem); padding: 0.22em 0.5em 0.22em 0.62em; }
  .wc-home .wc-cmp-row .wc-pill-chevron { width: 10px; height: 6px; }
  .wc-pill-x { padding: 0 0.5em; }
  .wc-cmp-row-sub { font-size: 0.76rem; }
  /* Keep the bottom line (zone) clear of the date on the right */
  .wc-cmp-row-sub .wc-sub-details { display: none; }
  .wc-cmp-sep { margin: 0.7rem 0; }
  .wc-card-actions { flex-direction: column; align-items: stretch; }
  .wc-card-actions .wc-share-btn, .wc-action-secondary { white-space: normal; }
  .wc-search { padding: 0.85rem 1rem; }
  /* Swap the long CTA label for a short one so it never wraps on a phone */
  .wc-search-full { display: none; }
  .wc-search-short { display: inline; }
  /* Single-view meta: pill on its own line, zone + date share the next line */
  .wc-meta-row2 { flex-basis: 100%; }
  /* Converter hub: tighten the hero so the live card + slider sit higher and the
     slider stays reachable on a phone. Scoped via .cl-hero-cv since the shared
     .cl-hero / heading-style-h1 classes are used across many pages. */
  .cl-hero-cv .heading-style-h1 { font-size: 2rem; line-height: 1.08; }
  .cl-hero-cv .cl-sub { font-size: 0.95rem; line-height: 1.45; margin-top: 0.55rem; }
}

/* ── Timezone abbreviation: dotted-underline trigger + info tooltip ── */
.wc-tz-trig {
  cursor: help; text-decoration: underline dotted; text-decoration-color: rgba(255,214,10,0.55);
  text-underline-offset: 3px; -webkit-text-decoration: underline dotted rgba(255,214,10,0.55);
}
.wc-tz-trig:hover, .wc-tz-trig:focus-visible { text-decoration-color: rgba(255,214,10,0.95); outline: none; }
.wc-tz-tip {
  position: fixed; z-index: 10000; width: max-content; max-width: 250px;
  background: #1a1c26; border: 1px solid rgba(255,255,255,0.13); border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.6); padding: 0.8rem 0.9rem; color: #fff;
}
.wc-tz-tip[hidden] { display: none; }
.wc-tz-tip::after {
  content: ''; position: absolute; left: var(--arrow-x, 50%); bottom: -6px;
  width: 11px; height: 11px; background: #1a1c26;
  border-right: 1px solid rgba(255,255,255,0.13); border-bottom: 1px solid rgba(255,255,255,0.13);
  transform: translateX(-50%) rotate(45deg);
}
.wc-tz-tip.is-below::after {
  bottom: auto; top: -6px;
  border: none; border-left: 1px solid rgba(255,255,255,0.13); border-top: 1px solid rgba(255,255,255,0.13);
}
.wc-tz-tip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.9rem; }
.wc-tz-tip-abbr { font-size: 1.1rem; font-weight: 700; color: #FFD60A; letter-spacing: 0.01em; }
.wc-tz-tip-off { font-size: 0.85rem; color: rgba(255,255,255,0.55); font-variant-numeric: tabular-nums; }
.wc-tz-tip-name { font-size: 0.88rem; color: rgba(255,255,255,0.82); margin-top: 0.25rem; }
.wc-tz-tip-link {
  display: inline-flex; align-items: center; gap: 0.32rem; margin-top: 0.7rem;
  font-size: 0.82rem; font-weight: 600; color: #9db8ff; text-decoration: none;
}
.wc-tz-tip-link:hover { color: #bcd0ff; text-decoration: underline; text-underline-offset: 2px; }
.wc-tz-tip-link .wc-ext { opacity: 0.85; }

/* ── City search dropdown ── */
.wc-pill-dd {
  position: fixed;
  background: #1a1c26;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8), 0 4px 16px rgba(0,0,0,0.45);
  width: min(320px, calc(100vw - 16px));
  z-index: 9999;
  overflow: hidden;
}
.wc-pill-dd[hidden] { display: none !important; }
.wc-pill-dd-search {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.78rem 0.9rem 0.78rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.wc-pill-dd-search-icon { color: rgba(255,255,255,0.26); flex-shrink: 0; }
.wc-pill-dd-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: 0.9rem; font-family: inherit; line-height: 1.4;
}
.wc-pill-dd-input::placeholder { color: rgba(255,255,255,0.22); }
.wc-pill-dd-results {
  max-height: 264px; overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.wc-pill-dd-results::-webkit-scrollbar { width: 4px; }
.wc-pill-dd-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.wc-pill-dd-group {
  padding: 0.5rem 1rem 0.3rem;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
}
.wc-pill-dd-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 1rem; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.1s; outline: none;
}
.wc-pill-dd-item:last-child { border-bottom: none; }
.wc-pill-dd-item:hover, .wc-pill-dd-item.is-focused { background: rgba(255,255,255,0.07); }
.wc-pill-dd-item-main { flex: 1; min-width: 0; }
.wc-pill-dd-item-name { font-size: 0.88rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-pill-dd-item-country { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-top: 0.08rem; }
.wc-pill-dd-item-time { font-size: 0.84rem; color: rgba(255,255,255,0.42); font-variant-numeric: tabular-nums; flex-shrink: 0; margin-left: 0.75rem; }
.wc-pill-dd-empty { padding: 1.25rem 1rem; text-align: center; color: rgba(255,255,255,0.28); font-size: 0.85rem; }

/* ── City pill button ── */
.wc-city-pill {
  display: inline-flex; align-items: center; gap: 0.38em;
  padding: 0.22em 0.72em 0.22em 0.88em;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  color: #fff; font-weight: 700; font-size: inherit;
  cursor: pointer; font-family: inherit; line-height: 1.35;
  vertical-align: middle; user-select: none;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.wc-city-pill:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.14);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}
.wc-city-pill:hover .wc-pill-chevron { opacity: 0.85; transform: translateY(1px); }
.wc-pill-chevron {
  opacity: 0.5; flex-shrink: 0; display: block;
  transition: opacity 0.18s, transform 0.18s;
  pointer-events: none;
}

/* ── Clock + date button row ── */
.wc-clock-date-row { display: flex; align-items: baseline; }
.wc-date-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.2em 0.7em;
  border: 1.5px solid transparent;
  border-radius: 100px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: clamp(0.85rem, 1.35vw, 1.12rem);
  font-weight: 600; font-family: inherit; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  margin-left: auto;
}
.wc-date-btn:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06); color: #fff;
}
.wc-date-btn.is-picked {
  border-color: rgba(255,214,10,0.55);
  color: rgba(255,214,10,0.9);
  background: rgba(255,214,10,0.07);
}

/* ── Date picker popover ── */
.wc-date-picker {
  position: fixed; z-index: 2000;
  background: #241b33;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px; padding: 1rem;
  box-shadow: 0 16px 56px rgba(0,0,0,0.75); width: 272px;
}
.wc-dp-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.55rem;
}
.wc-dp-title { font-size: 0.92rem; font-weight: 700; color: #fff; }
.wc-dp-nav {
  background: none; border: none;
  color: rgba(255,255,255,0.45); font-size: 1.2rem; line-height: 1;
  cursor: pointer; padding: 0.2rem 0.5rem; border-radius: 7px;
  font-family: inherit;
  transition: background 0.14s, color 0.14s;
}
.wc-dp-nav:hover { background: rgba(255,255,255,0.1); color: #fff; }
.wc-dp-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.1rem;
}
.wc-dp-weekday {
  text-align: center; font-size: 0.62rem; font-weight: 600;
  color: rgba(255,255,255,0.28); letter-spacing: 0.06em;
  padding: 0.25rem 0; text-transform: uppercase;
}
.wc-dp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.wc-dp-day {
  text-align: center; padding: 0.4rem 0; border-radius: 7px;
  font-size: 0.82rem; color: rgba(255,255,255,0.72); cursor: pointer;
  border: none; background: none; font-family: inherit;
  transition: background 0.12s, color 0.12s;
}
.wc-dp-day:hover { background: rgba(255,255,255,0.1); color: #fff; }
.wc-dp-day.is-today { color: rgba(255,214,10,0.9); font-weight: 700; }
.wc-dp-day.is-selected {
  background: rgba(255,214,10,0.18); color: rgba(255,214,10,1); font-weight: 700;
}
.wc-dp-day.is-other-month { color: rgba(255,255,255,0.2); }
.wc-dp-day.is-other-month:hover { color: rgba(255,255,255,0.45); }
.wc-dp-footer {
  margin-top: 0.65rem; padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: center;
}
.wc-dp-today-btn {
  background: none; border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; color: rgba(255,255,255,0.5);
  font-size: 0.78rem; font-family: inherit; font-weight: 600;
  padding: 0.3rem 0.9rem; cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.wc-dp-today-btn:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.38); }

/* ── City / timezone card grids (homepage sections, linkified) ── */
.wc-cities-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
/* ── City cards: a matched day/night pair ──
   Both share structure and a corner glow near their icon; they read apart by
   temperature + brightness — day = lighter periwinkle "sky" with a warm sun
   glow; night = deep indigo with a cool moonlight glow. */
.wc-city-card {
  position: relative;
  display: block; text-decoration: none;
  color: rgba(255,255,255,0.88);
  background: rgba(13,16,34,0.70);   /* neutral fallback (cards always get is-day/is-night) */
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 0.9rem 1.1rem;            /* symmetric — the explore arrow now appears on hover beside the title */
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: box-shadow .15s, transform .15s, border-color .15s, background .25s ease;
}
/* Day — lit blue sky base, warm amber sun glow top-right */
.wc-city-card.is-day {
  background:
    radial-gradient(80px 64px at 89% 13%, rgba(255,205,95,0.18) 0%, rgba(255,180,80,0.06) 48%, transparent 72%),
    radial-gradient(230px 190px at 104% -8%, rgba(255,165,70,0.055) 0%, transparent 70%),
    rgba(46,58,120,0.46);
  border-color: rgba(125,145,215,0.24);
}
/* Night — deep indigo base, cool silver-blue moonlight glow top-right */
.wc-city-card.is-night {
  background:
    radial-gradient(80px 64px at 89% 13%, rgba(158,176,240,0.11) 0%, rgba(120,142,215,0.04) 50%, transparent 74%),
    radial-gradient(230px 190px at 104% -8%, rgba(80,102,190,0.06) 0%, transparent 72%),
    rgba(14,17,38,0.72);
  border-color: rgba(96,112,180,0.20);
}
.wc-city-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.45); transform: translateY(-2px); border-color: rgba(255,255,255,0.14); }
.wc-city-card.is-day:hover {
  background:
    radial-gradient(86px 70px at 89% 13%, rgba(255,210,105,0.25) 0%, rgba(255,185,85,0.08) 48%, transparent 72%),
    radial-gradient(240px 200px at 104% -8%, rgba(255,170,75,0.075) 0%, transparent 70%),
    rgba(48,60,124,0.48);
  border-color: rgba(255,200,120,0.24);
}
.wc-city-card.is-night:hover {
  background:
    radial-gradient(86px 70px at 89% 13%, rgba(168,186,245,0.16) 0%, rgba(128,150,222,0.06) 50%, transparent 74%),
    radial-gradient(240px 200px at 104% -8%, rgba(90,112,200,0.09) 0%, transparent 72%),
    rgba(16,20,44,0.74);
  border-color: rgba(140,158,225,0.30);
}
.wc-city-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; }
.wc-city-name { font-weight: 700; font-size: 0.95rem; color: #fff; }
/* timezone cards: full zone name under the title */
.wc-tz-fullname { font-size: 0.74rem; color: rgba(255,255,255,0.46); margin: 0.12rem 0 0; line-height: 1.25; }
.wc-city-card.is-night .wc-tz-fullname { color: rgba(255,255,255,0.4); }
/* all grid cards: on hover, an arrow after the title signals the card is clickable (alongside the title underline) */
.wc-city-card .wc-city-name { position: relative; }
.wc-city-card .wc-city-name::after {
  content: '\2192'; position: absolute; left: 100%; top: 50%;
  margin-left: 0.4em; transform: translateY(-50%);
  color: rgba(255,255,255,0.6); font-weight: 400;
  opacity: 0; transition: opacity 0.15s ease, transform 0.15s ease; pointer-events: none;
}
.wc-city-card:hover .wc-city-name::after { opacity: 1; transform: translateY(-50%) translateX(3px); }
.wc-city-tr { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.wc-city-dn { line-height: 1; color: rgba(100,115,180,0.65); }
.wc-city-card.is-night .wc-city-dn { color: rgba(255,255,255,0.92); }
.wc-city-card.is-day .wc-city-dn { color: #FFC53D; }
.wc-city-card:hover .wc-city-name { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,0.3); }
.wc-city-time {
  font-family: "JetBrains Mono", monospace; font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
  font-size: 1.75rem; letter-spacing: -0.02em; margin: 0 0 0.18rem;
  color: #F5F7FC;
}
.wc-city-time .wc-clock-sep { color: rgba(255,255,255,0.3); font-weight: 300; }
.wc-city-time .wc-sec { color: #6E7896; font-weight: 500; font-size: 1.2rem; }
.wc-city-time .wc-city-ampm { color: #6E7896; font-weight: 700; font-size: 0.6rem; letter-spacing: 0.02em; vertical-align: baseline; }
.wc-city-meta { font-size: 0.78rem; color: rgba(255,255,255,0.28); }
.wc-city-offset { font-weight: 600; color: rgba(255,255,255,0.42); }
/* live zone abbreviation in the meta row — a faint amber tint marks it as the zone identity */
.wc-city-tzabbr { font-weight: 600; color: rgba(255,200,120,0.66); letter-spacing: 0.02em; }
.wc-city-card.is-night .wc-city-tzabbr { color: rgba(255,205,140,0.56); }
/* ── DST-across-the-year sparkline (timezone cards) ──
   Warm amber spans = daylight time (summer), cool blue = standard (winter),
   white marker = today. The caption names which variant is active now and
   when the other begins. */
.wc-dst { margin-top: 0.7rem; }
.wc-dst-bar {
  position: relative; height: 7px; border-radius: 100px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
}
.wc-dst-now {
  position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px;
  background: #fff; border-radius: 2px; box-shadow: 0 0 5px rgba(0,0,0,0.8); z-index: 2;
}
/* clock-change boundary tick + its date label */
.wc-dst-tick {
  position: absolute; top: -2px; bottom: -2px; width: 1px; margin-left: -0.5px;
  background: rgba(255,255,255,0.4);
}
.wc-dst-marks { position: relative; height: 0.8rem; margin-top: 0.3rem; }
.wc-dst-mark {
  position: absolute; transform: translateX(-50%); white-space: nowrap;
  font-size: 0.6rem; color: rgba(255,255,255,0.42);
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.wc-dst-cap { margin-top: 0.34rem; font-size: 0.7rem; color: rgba(255,255,255,0.42); }
.wc-dst-cap b { font-weight: 700; }
.wc-dst-cap b.dst { color: #FFC53D; }
.wc-dst-cap b.std { color: #9DB0E8; }
.wc-dst-cap.is-muted { color: rgba(255,255,255,0.28); }
/* Night cards read a touch dimmer than day — "asleep vs awake" — which widens
   the day/night contrast without hurting legibility. */
.wc-city-card.is-night .wc-city-name { color: rgba(255,255,255,0.78); }
.wc-city-card.is-night .wc-city-time { color: rgba(214,221,240,0.74); }
.wc-city-card.is-night .wc-city-time .wc-clock-sep { color: rgba(255,255,255,0.22); }
@media (max-width: 600px) {
  .wc-cities-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .wc-city-card { padding: 0.8rem 0.9rem; border-radius: 16px; }
  .wc-city-name { font-size: 0.88rem; }
  .wc-city-time { font-size: 1.5rem; }
  .wc-city-time .wc-sec { font-size: 1.05rem; }
  .wc-city-meta { font-size: 0.72rem; }
}
