.chapter-footer-primary {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
}

.chapter-world-clocks-slot {
  display: flex;
  width: 100%;
  justify-content: center;
}

.chapter-world-clocks {
  --chapter-clock-ink: var(--color-near-black, #202227);
  display: grid;
  width: min(100%, 34rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(0.35rem, 1.5vw, 1.5rem);
}

.chapter-world-clocks--dark {
  --chapter-clock-ink: var(--color-near-white, #f1f2e4);
}

.chapter-world-clock {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  color: var(--chapter-clock-ink);
}

.chapter-world-clock__face {
  position: relative;
  width: clamp(3.75rem, 5vw, 5.5rem);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.chapter-world-clock__face::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.24rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.chapter-world-clock__hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 1px;
  height: 34%;
  background: currentColor;
  transform: translateX(-50%) rotate(var(--clock-rotation, 0deg));
  transform-origin: 50% 100%;
}

.chapter-world-clock__hand--hour {
  width: 1.5px;
  height: 25%;
}

.chapter-world-clock__hand--second {
  height: 39%;
  background: var(--color-red, #b81c1c);
}

.chapter-world-clock__caption {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: center;
  gap: 0.35em;
  font-size: clamp(0.6rem, 0.75vw, 0.875rem);
  line-height: 1.2;
  white-space: nowrap;
}

.chapter-world-clock__city {
  color: var(--color-red, #b81c1c);
  font-weight: 800;
}

.chapter-world-clock__time {
  flex: 0 0 8ch;
  color: var(--chapter-clock-ink);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 64rem) {
  .chapter-footer-primary {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 1.2fr) minmax(0, 1fr);
  }

  .chapter-world-clocks-slot {
    position: absolute;
    inset: 0;
    align-items: center;
    pointer-events: none;
  }

  .chapter-footer-meet {
    grid-column: 3;
  }
}

@media (max-width: 24rem) {
  .chapter-world-clock__caption {
    gap: 0.2em;
    font-size: 0.56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-world-clock__hand {
    transition: none;
  }
}
