#worldtime-index,
#worldtime-country,
#worldtime-region,
#worldtime-city {
  display: grid;
  gap: 1.5rem;
}

.worldtime-hero,
.worldtime-section,
.worldtime-clock-panel {
  border: 1px solid #dce4ec;
  border-radius: 18px;
  background: #fff;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 12px 32px rgba(30, 56, 78, 0.07);
}

.worldtime-hero {
  background: linear-gradient(135deg, #fff 0%, #f4f8f8 62%, #eaf4f3 100%);
  color: #17384b;
  overflow: hidden;
  position: relative;
}

.worldtime-hero::after {
  content: "";
  position: absolute;
  width: 14rem;
  height: 14rem;
  right: -4rem;
  top: -7rem;
  border: 1px solid rgba(43, 123, 131, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 2.7rem rgba(43, 123, 131, 0.05), 0 0 0 5.4rem rgba(43, 123, 131, 0.035);
}

.worldtime-hero > * {
  position: relative;
  z-index: 1;
}

.worldtime-hero p:first-child,
.worldtime-kicker,
.worldtime-section-heading > p {
  margin: 0 0 0.4rem;
  color: #2b7b83;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.worldtime-hero p:first-child,
.worldtime-hero a {
  color: #2b7b83;
}

.worldtime-hero h1 {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
}

.worldtime-clock-panel {
  text-align: center;
  background: #f8fbfd;
}

.worldtime-clock-panel h2 {
  margin: 0;
  color: #314554;
  font-size: 1rem;
}

.world-clock {
  display: block;
  margin: 0.25rem 0;
  color: #09243a;
  font-size: clamp(3rem, 10vw, 6rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.world-date {
  margin: 0 0 1.5rem;
  color: #637584;
  font-size: 1.05rem;
}

.worldtime-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  overflow: hidden;
}

.worldtime-facts div {
  padding: 0.85rem;
  border-right: 1px solid #dce4ec;
}

.worldtime-facts div:last-child { border-right: 0; }
.worldtime-facts dt { color: #70808c; font-size: 0.75rem; }
.worldtime-facts dd { margin: 0.25rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.worldtime-facts a { color: #0b6972; }
.worldtime-note { color: #637584; font-size: 0.88rem; }

.worldtime-difference {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  color: #536975;
}

.worldtime-difference strong { color: #0b6972; }
.worldtime-section-heading h2 { margin: 0; }

.place-grid,
.sun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.place-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.2rem 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  color: #17384b;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.place-card:hover { border-color: #2b7b83; transform: translateY(-2px); }
.place-card.is-current { border-color: #2b7b83; background: #f0f7f7; }
.place-card .country-flag { grid-column: 1; font-size: 1.45rem; line-height: 1; }
.place-card > span:first-child:not(.country-flag) { color: #71838f; font-size: 0.72rem; grid-column: 2; }
.place-card strong { grid-column: 2; }
.place-card .place-current-time {
  grid-column: 2;
  color: #536975;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.place-card .material-icons { grid-column: 3; grid-row: 1 / -1; }
.country-card { align-content: center; }
.country-card .country-flag { grid-row: 1 / 3; align-self: center; }
.country-card strong { grid-row: 1; align-self: end; }
.country-card .place-current-time { grid-row: 2; align-self: start; }
.country-card .material-icons { grid-row: 1 / 3; align-self: center; }
.city-list-card { grid-template-columns: 1fr auto; align-content: center; }
.city-list-card strong { grid-column: 1; grid-row: 1; align-self: end; }
.city-list-card .place-current-time { grid-column: 1; grid-row: 2; align-self: start; }
.city-list-card .material-icons { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.continent-groups { display: grid; gap: 1.75rem; margin-top: 1.25rem; }
.continent-group h3 { margin: 0; color: #314554; font-size: 1.08rem; }
.continent-group .place-grid { margin-top: 0.7rem; }

.sun-grid article {
  padding: 1rem;
  border-radius: 12px;
  background: #f2f7f8;
  text-align: center;
}

.sun-grid .material-icons { color: #d9852d; font-size: 2rem; }
.sun-grid h3 { margin: 0.35rem 0; color: #657784; font-size: 0.8rem; }
.sun-grid strong { color: #17384b; font-size: 1.5rem; }

.world-map {
  min-height: 260px;
  margin-top: 1rem;
  border-radius: 14px;
  background: #cfe7ec;
  overflow: hidden;
}

.world-map svg { display: block; width: 100%; height: auto; }
.world-map .ocean { fill: #cfe7ec; }
.world-map .graticule { fill: none; stroke: rgba(62, 110, 126, 0.17); stroke-width: 0.7; }
.world-map .country { fill: #edf3e8; stroke: #8da0a1; stroke-width: 0.65; vector-effect: non-scaling-stroke; }
.world-map .country.is-selected { fill: #f5ca6d; stroke: #7a5a16; stroke-width: 1.3; }
.world-map .night { fill: rgba(7, 19, 40, 0.48); stroke: none; pointer-events: none; }
.world-map .terminator { fill: none; stroke: rgba(220, 239, 245, 0.82); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.world-map .city-marker circle { fill: #fff; stroke: #0d5967; stroke-width: 2; vector-effect: non-scaling-stroke; }
.world-map .city-marker.is-selected circle { fill: #ef6c4d; stroke: #fff; r: 6; }
.world-map .city-marker text { fill: #102b3a; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; font: 700 12px sans-serif; }
.world-map .city-marker.is-selected text { font-size: 14px; }
.world-map-loading { padding: 2rem; text-align: center; color: #536975; }
.worldtime-attribution { margin: 0.5rem 0 0; color: #7b8992; font-size: 0.72rem; text-align: right; }
.worldtime-attribution a { color: inherit; }

.worldtime-clock-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.overview-clock-card { min-width: 0; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid #dce4ec; border-radius: 14px; background: #f6fafb; }
.overview-clock-card > p:first-child { margin: 0; color: #536975; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; }
.overview-clock-local { border-color: #c6dddd; background: #f0f7f7; color: #17384b; }
.overview-clock-local > p:first-child, .overview-clock-local .overview-clock-date { color: #536975; }
.overview-clock-local .overview-clock-time { color: #09243a; }
.overview-clock-time { display: block; margin: 0.35rem 0; color: #09243a; font-size: clamp(2.25rem, 7vw, 4rem); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.overview-clock-date { min-height: 1.4em; margin: 0; color: #637584; }
.overview-clock-zone { margin: 0.75rem 0 0; font-size: 0.88rem; }
.overview-clock-zone a { color: #0b6972; font-weight: 700; }

.major-city-cloud { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.major-city-chip { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem; border: 1px solid #cfdce3; border-radius: 999px; background: #f7fafb; color: #17384b; text-decoration: none; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.major-city-chip:hover { border-color: #2b7b83; background: #eef7f7; transform: translateY(-1px); }
.major-city-chip strong { font-size: 0.95rem; }
.major-city-chip time { color: #637584; font-size: 0.82rem; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .worldtime-clock-overview { grid-template-columns: 1fr; }
  .overview-clock-card { padding: 1rem; }
  .worldtime-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worldtime-facts div:nth-child(2) { border-right: 0; }
  .worldtime-facts div:nth-child(-n + 2) { border-bottom: 1px solid #dce4ec; }
  .worldtime-difference { flex-direction: column; gap: 0.2rem; }
  .world-map .city-marker:not(.is-selected):nth-of-type(n + 5) { display: none; }
}
