:root { --world-clock-height: 0px; --site-header-height: 90px; }
html { scroll-padding-top: calc(var(--site-header-height) + 16px); }
body { padding-top: 0; }
body > header { top: 0; }
#world-clock-bar {
  --world-card-width: 156;
  --world-loop-width: 1092px;
  --world-loop-duration: 43.68s;
  position: relative;
  color: #f5f3ee;
  background: radial-gradient(ellipse at 50% 0, #153548, transparent 70%), #071622;
  border-bottom: 1px solid #c8a56880;
  padding-top: env(safe-area-inset-top, 0px);
}
.world-clock-inner { display: grid; grid-template-columns: 190px minmax(0, 1fr); max-width: 1800px; margin-inline: auto; padding-inline: clamp(16px, 3.2vw, 60px); }
.world-clock-calendar { display: grid; grid-template-columns: 27px 1fr; align-content: center; align-items: center; column-gap: 11px; row-gap: 10px; padding: 16px 18px 16px 0; padding-inline: 0 18px; border-inline-end: 1px solid #c8a56824; }
.world-clock-globe { width: 27px; height: 27px; color: #d9b976; }
.world-calendar-copy { display: flex; flex-direction: column; gap: 4px; }
.world-date-label { font-size: .875rem; line-height: 1.4; color: #acbfcc; }
.world-reference-date { font-size: .9375rem; font-weight: 500; line-height: 1.5; color: #eddbb7; }
.world-motion-toggle { grid-column: 2; justify-self: start; width: 30px; height: 28px; display: grid; place-items: center; background: transparent; border: 1px solid #c8a56855; border-radius: 4px; color: #d9b976; padding: 5px; }
.world-motion-toggle:hover { background: #c8a56816; }
.world-motion-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.world-play-icon, .is-paused .world-pause-icon { display: none; }
.is-paused .world-play-icon { display: block; }
.world-clocks-viewport { min-width: 0; overflow: hidden; direction: ltr; mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.world-clocks-viewport:focus-visible { outline: 2px solid #dfc28e; outline-offset: -3px; }
.world-clock-track { display: flex; width: max-content; direction: ltr; animation: world-clock-drift var(--world-loop-duration) linear infinite; will-change: transform; }
.world-clock-list { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); flex: 0 0 var(--world-loop-width); width: var(--world-loop-width); list-style: none; margin: 0; padding: 0; }
.world-clock { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 13px 10px 11px; min-width: 0; }
.world-clock-dial { display: block; width: 78px; height: 78px; padding: 4px; border: 1px solid #a7833d; border-radius: 50%; background: conic-gradient(from 10deg, #987233, #f3dc9a 14%, #a47b35 28%, #e5c77e 46%, #72521e 63%, #f0d28d 82%, #987233); box-shadow: 0 3px 8px #0008, inset 0 0 0 1px #f6e4a865; margin-bottom: 4px; }
.world-clock-dial > svg { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #1a3445, #081722 80%); box-shadow: inset 0 0 0 1px #71582d, inset 0 2px 7px #000a; }
.world-clock-city-row { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 22px; }
.world-clock-flag { width: 28px; height: 18px; object-fit: contain; filter: drop-shadow(0 1px 2px #0008); }
.world-clock-city { font-size: .875rem; line-height: 1.5; color: #e3dccd; white-space: nowrap; }
.world-clock-time { display: block; font-size: .875rem; line-height: 1.4; font-weight: 500; letter-spacing: .035em; font-variant-numeric: tabular-nums; color: #dcbf84; white-space: nowrap; }
.world-clock-date { font-size: .75rem; line-height: 1.4; color: #91a9b9; white-space: nowrap; }
.is-paused .world-clock-track, .world-clocks-viewport:focus-within .world-clock-track { animation-play-state: paused; }
@media (hover: hover) { .world-clocks-viewport:hover .world-clock-track { animation-play-state: paused; } }
@keyframes world-clock-drift { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--world-loop-width))); } }
@media (max-width: 1050px) { .world-clock-inner { grid-template-columns: 170px minmax(0,1fr); padding-inline: 16px; } .world-clock-calendar { column-gap: 9px; } }
@media (max-width: 650px) {
  #world-clock-bar { --world-card-width: 144; }
  .world-clock-inner { display: block; padding-inline: 0; }
  .world-clock-calendar { display: flex; gap: 8px; padding: 7px 16px; border-inline-end: 0; border-bottom: 1px solid #c8a56822; }
  .world-clock-globe { width: 17px; height: 17px; flex-shrink: 0; }
  .world-calendar-copy { flex: 1; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .world-date-label, .world-reference-date { font-size: .875rem; }
  .world-motion-toggle { width: 28px; height: 26px; flex-shrink: 0; margin-inline-start: 4px; }
  .world-clock { padding-block: 10px; }
  .world-clock-dial { width: 68px; height: 68px; }
  .world-clock-flag { width: 25px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .world-clock-track { animation: none; transform: none; will-change: auto; }
  .world-clock-copy, .world-motion-toggle { display: none; }
  .world-clocks-viewport { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #ad8b50 #071622; }
}
@media print { #world-clock-bar { display: none; } }
