/* exacttimelive.com — styles
   Palette, type scale and spacing follow measurements taken from the live page:
   #ffffff / #333333 / #000000 / #6e6e6e / #eeeeee, accents #3a49c9 and #232a55.
   Montserrat for UI text; Arial Black (or the bundled Archivo Black) for the big digits. */

/* ── fonts ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/montserrat-400.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/montserrat-500.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/montserrat-600.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat-700.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-900.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../assets/fonts/archivo-black.woff2") format("woff2");
}

/* ── tokens ────────────────────────────────────────────────────────────── */

:root {
  --c-bg: #f4f6fb;
  --c-ink: #1d2130;
  --c-black: #000000;
  --c-muted: #5c6172;
  --c-panel: #e6e9f7;
  --c-panel-hover: #d8ddf2;
  --c-crimson: #3a49c9;
  --c-purple: #232a55;
  --c-dark: #171b2e;
  --c-line: #dde1f0;

  --font: "Montserrat", Arial, Helvetica, sans-serif;
  --font-clock: "Arial Black", "Archivo Black", "Arial Bold", Arial-BoldMT, Arial, Helvetica, sans-serif;

  --pad: 5%;
  --clock-size: clamp(60px, 18.5vw, 223px);
  --clock-squeeze: 0.955;
  --header-h: 60px;
}

/* ── base ──────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-overlay {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--c-crimson);
  outline-offset: 3px;
}

::selection {
  background: var(--c-crimson);
  color: #fff;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--c-ink);
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 10px;
}

/* ── header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 246, 251, 0.94);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  backdrop-filter: saturate(1.2) blur(6px);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(244, 246, 251, 0.97);
  box-shadow: 0 1px 0 rgba(29, 33, 48, 0.10);
}

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding-left: var(--pad);
  padding-right: max(0px, calc(var(--pad) - 20px));
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 141px;
  height: var(--header-h);
  padding: 0 16px;
  background: var(--c-crimson);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  background: #2f3aa8;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--c-ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn svg {
  width: 24px;
  height: 24px;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

#openAccount {
  color: #6e6e6e;
}

#openAccount:hover {
  color: var(--c-ink);
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding: 20px var(--pad) 72px;
}

.hero-status {
  margin: 0;
  font-size: 36px;
  line-height: 1.11;
  font-weight: 900;
  letter-spacing: -0.012em;
  color: var(--c-ink);
}

.hero-note,
.hero-place {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.34;
  color: var(--c-ink);
}

.hero-note a,
.hero-place a,
.hero-readout a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.hero-note a:hover,
.hero-readout a:hover {
  color: var(--c-crimson);
}

.clock-row {
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
}

.clock {
  display: flex;
  align-items: flex-start;
  color: #1d2130;
  font-family: var(--font-clock);
  font-weight: 400;
  font-size: var(--clock-size);
  line-height: 0.86;
  letter-spacing: -0.012em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: scaleX(var(--clock-squeeze));
  transform-origin: center;
}

.clock-digits {
  display: flex;
  align-items: baseline;
}

.clock-digit {
  display: inline-block;
}

.clock-digit.is-empty::before {
  content: "0";
  visibility: hidden;
}

.clock-colon {
  display: inline-block;
  transform: translateY(-0.06em);
}

.clock-meridiem {
  align-self: flex-end;
  margin: 0 0 0.42em 0.12em;
  font-family: var(--font);
  font-size: clamp(13px, 1.5vw, 22px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #555;
}

.hero-readout {
  margin-top: 33px;
  text-align: right;
}

.hero-date {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.012em;
}

.hero-observance {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.hero-observance a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-observance a.muted {
  color: #6d6d6d;
  text-decoration: none;
}

.hero-sun {
  margin: 1px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.hero-sun .sep {
  margin: 0 0.5em;
  color: var(--c-ink);
}

.hero-sun a.is-active {
  font-weight: 600;
}

/* chips */

.chips {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 76px;
  padding: 9px 16px;
  border: 0;
  background: var(--c-panel);
  color: var(--c-ink);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.chip:hover {
  background: var(--c-panel-hover);
}

.chip.is-current {
  box-shadow: inset 0 -3px 0 var(--c-crimson);
}

.chip-city {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap;
}

.chip-time {
  font-size: 18px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chip-small .chip-city,
.chip-small .chip-time {
  font-size: 15px;
}

.favorites[hidden] {
  display: none;
}

.favorites {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.favorites-label {
  font-size: 14px;
  color: #6d6d6d;
}

.favorites-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.favorites-list li {
  position: relative;
  display: flex;
  align-items: center;
}

.chip-remove {
  border: 0;
  background: none;
  color: #6e6e6e;
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px 2px 2px;
  cursor: pointer;
}

.chip-remove:hover {
  color: var(--c-crimson);
}

/* hero actions under the readout */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.hero-action {
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hero-action:hover {
  border-color: var(--c-ink);
  background: var(--c-panel);
}

.hero-action:focus-visible {
  outline: 2px solid var(--c-crimson);
  outline-offset: 2px;
}

/* ── dark band ─────────────────────────────────────────────────────────── */

.band-dark {
  padding: 60px var(--pad);
  background: var(--c-dark);
  color: #fff;
}

.zone-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 16px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 28px;
  line-height: 1.2;
}

.zone-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.zone-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 22px;
  max-width: 1140px;
  margin: 74px auto 0;
}

.cloud-item {
  font-size: var(--fs, 16px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.cloud-item.is-featured {
  background: #fff;
  color: #000;
  padding: 1px 6px;
}

.cloud-item:hover {
  background: var(--c-crimson);
  color: #fff;
}

/* panels */

.band-tools {
  display: grid;
  align-items: start;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
  max-width: 1290px;
  margin: 64px auto 0;
}

.panel {
  background: #fff;
  color: var(--c-ink);
  padding: 24px 26px 22px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.panel-title span {
  color: var(--c-crimson);
}

.panel-actions {
  font-size: 13px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6d6d6d;
  cursor: pointer;
  user-select: none;
}

.switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--c-crimson);
  margin: 0;
}

.panel-foot {
  margin: 14px 0 0;
  font-size: 13px;
  color: #6f6f6f;
  line-height: 1.5;
}

.diff-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.diff-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto 84px 168px;
  gap: 10px;
  align-items: baseline;
  padding: 7px 6px;
  border-top: 1px solid var(--c-line);
  cursor: pointer;
  transition: background 0.12s ease;
}

.diff-row:last-child {
  border-bottom: 1px solid var(--c-line);
}

.diff-row:hover {
  background: #f7f7f7;
}

.diff-row.is-current .diff-city::after {
  content: " •";
  color: var(--c-crimson);
}

.diff-city {
  font-size: 16px;
  font-weight: 900;
}

.diff-time {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.diff-delta {
  font-size: 14px;
  color: #555;
  text-align: right;
  white-space: nowrap;
}

.diff-date {
  font-size: 12.5px;
  color: #737373;
  text-align: right;
  white-space: nowrap;
}

/* converter */

.converter-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-top: 6px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f6f6f;
}

.field-wide {
  grid-column: 1 / -1;
}

.select,
input.select,
select,
input[type="datetime-local"] {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: var(--c-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.3;
  border-radius: 0;
}

select:focus,
input:focus {
  outline: 2px solid var(--c-crimson);
  outline-offset: -1px;
  border-color: var(--c-crimson);
}

.when-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.when-row input {
  flex: 1 1 190px;
}

.btn {
  padding: 9px 16px;
  border: 1px solid var(--c-ink);
  background: var(--c-ink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  background: #000;
}

.btn-ghost {
  background: #fff;
  color: var(--c-ink);
  border-color: #d8d8d8;
}

.btn-ghost:hover {
  background: #f2f2f2;
  color: var(--c-ink);
}

.converter-out {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  text-align: center;
}

.conv-city {
  grid-row: 1;
  font-size: 13px;
  color: #6f6f6f;
}

.conv-time {
  grid-row: 2;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.conv-arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 22px;
  color: #bbb;
}

.conv-delta {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 13px;
  color: #6d6d6d;
  line-height: 1.4;
}

/* ── quote ─────────────────────────────────────────────────────────────── */

.band-quote {
  padding: 128px var(--pad) 112px;
  background: var(--c-purple);
  color: #fff;
  text-align: center;
}

.quote {
  max-width: 1290px;
  margin: 0 auto;
}

.quote p {
  margin: 0;
  font-size: 40px;
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: -0.012em;
}

.quote-credit {
  margin-top: 8px;
  font-size: 19px;
  font-style: italic;
  line-height: 1.4;
}

.quote {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.quote.is-swapping {
  opacity: 0;
  transform: translateY(6px);
}

.quote-actions {
  margin: 34px 0 0;
}

.quote-btn {
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.quote-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.quote-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ── footer ────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 60px var(--pad) 90px;
  background: var(--c-dark);
  color: #fff;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  column-gap: 30px;
  max-width: 1120px;
  margin-top: 0;
}

.footer-col {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
  line-height: 2.05;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
  transition: color 0.12s ease;
}

.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-current {
  background: #fff;
  color: #000 !important;
  padding: 3px 6px;
}

.footer-fine {
  margin-top: 58px;
  scroll-margin-top: 84px;
  font-size: 14px;
  line-height: 1.6;
  color: #a8a8a8;
}

.footer-fine p {
  margin: 0 0 8px;
}

.languages a,
.fine-links a {
  color: #a9a9a9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.languages a:hover {
  color: #ccc;
}

.languages a {
  text-decoration-color: #5a5a5a;
}

.languages a.is-active {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.fine-legal {
  margin-top: 12px;
  font-size: 12.5px;
  color: #a9a9a9;
}

.fine-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
}

.fine-sep {
  opacity: 0.55;
}

/* ── second page: time here & there ───────────────────────────────────── */

.view[hidden] {
  display: none;
}

.page-wrap {
  padding: 30px var(--pad) 84px;
}

.page-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-crimson);
}

.page-title {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 0;
  max-width: 46em;
  font-size: 18px;
  line-height: 1.5;
  color: #444;
}

.there-clocks {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  max-width: 940px;
  margin-top: 28px;
  padding: 28px 26px;
  background: var(--c-panel);
}

.there-clock {
  min-width: 0;
  text-align: center;
}

.there-place {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

.there-time {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.there-date {
  margin: 7px 0 0;
  font-size: 14px;
  color: #666;
}

.there-arrow {
  font-size: 26px;
  color: #a8a8a8;
}

.page-converter {
  max-width: 940px;
  margin-top: 20px;
  padding: 26px 28px 24px;
  border: 1px solid var(--c-line);
}

.page-related {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 34px 0 0;
  font-size: 14px;
  color: #6d6d6d;
}

.page-related span {
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6e6e6e;
}

.page-related a {
  color: var(--c-crimson);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page-related a:hover {
  border-bottom-color: var(--c-crimson);
}

.page-back {
  margin: 26px 0 0;
  font-size: 15px;
}

.page-back a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-back a:hover {
  color: var(--c-crimson);
}

/* ── third page: daylight saving time ────────────────────────────────── */

.year-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 26px;
}

.year-btn {
  min-width: 64px;
  padding: 9px 12px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: var(--c-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.year-btn:hover {
  background: #f2f2f2;
}

.year-btn.is-active {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}

.dst-summary {
  margin: 20px 0 10px;
  font-size: 14px;
  color: #666;
}

.dst-table-wrap {
  max-width: 940px;
}

.dst-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.dst-table th {
  text-align: left;
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--c-line);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f6f6f;
}

.dst-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #efefef;
  vertical-align: top;
}

.dst-table tr.dst-month th {
  padding: 18px 10px 6px;
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--c-ink);
}

.dst-date {
  width: 70px;
  white-space: nowrap;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.dst-where {
  min-width: 180px;
}

.dst-place {
  display: block;
  font-weight: 900;
}

.dst-zone {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6f6f6f;
}

.dst-change {
  width: 240px;
}

.dst-times {
  display: block;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dst-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6d6d6d;
}

.dst-row.dst-start .dst-times {
  color: #1f7a4d;
}

.dst-row.dst-end .dst-times {
  color: #a33b57;
}

.dst-empty {
  padding: 18px 10px;
  color: #6d6d6d;
}

.dst-note {
  max-width: 940px;
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #6f6f6f;
}

@media (max-width: 760px) {
  .year-btn {
    min-width: 0;
    flex: 1 0 calc(20% - 6px);
    padding: 8px 6px;
    font-size: 14px;
  }

  .dst-table {
    font-size: 14px;
  }

  .dst-table th,
  .dst-table td {
    padding: 9px 6px;
  }

  .dst-date {
    width: 46px;
    font-size: 13px;
  }

  .dst-where {
    min-width: 0;
  }

  .dst-change {
    width: 126px;
  }

  .dst-times {
    font-size: 13.5px;
  }

  .dst-meta {
    font-size: 11px;
  }

  .dst-zone {
    display: none;
  }
}

/* ── fourth page: week number ───────────────────────────────────────── */

.week-now {
  max-width: 940px;
  margin-top: 28px;
  padding: 26px 28px 24px;
  background: var(--c-panel);
}

.week-now-place {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

.week-now-number {
  margin: 0;
  font-size: clamp(44px, 6.5vw, 72px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.week-now-of {
  margin-left: 12px;
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0;
  color: #666;
}

.week-now-range {
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 600;
}

.week-now-meta {
  margin: 4px 0 0;
  font-size: 14px;
  color: #666;
}

.week-lookup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  max-width: 940px;
  margin: 26px 0 16px;
}

.week-lookup label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f6f6f;
}

.week-lookup input {
  width: 200px;
  padding: 9px 10px;
  border: 1px solid #d8d8d8;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-ink);
}

.week-lookup-result {
  flex: 1 1 320px;
  margin: 0;
  font-size: 14px;
  color: #555;
}

.week-table td {
  font-variant-numeric: tabular-nums;
}

.week-table .week-num {
  width: 110px;
  font-weight: 900;
}

.week-row.is-current {
  background: #fdf2f5;
}

.week-row.is-current .week-num {
  color: var(--c-crimson);
}

.week-row.is-current .week-num::after {
  content: "now";
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  background: var(--c-crimson);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}

@media (max-width: 760px) {
  .week-now {
    margin-top: 22px;
    padding: 20px 18px 18px;
  }

  .week-now-number {
    font-size: 46px;
  }

  .week-now-range {
    font-size: 15px;
  }

  .week-lookup input {
    width: 100%;
  }

  .week-table .week-num {
    width: 78px;
  }
}

/* ── fifth page: countdown ───────────────────────────────────────────── */

.cd-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  max-width: 720px;
  margin-top: 28px;
}

.cd-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cd-field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f6f6f;
}

.cd-field label span {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: #b0b0b0;
}

.cd-field input,
.cd-field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8d8d8;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-ink);
}

.cd-hint,
.cd-submit {
  grid-column: 1 / -1;
}

.cd-hint {
  margin: 0;
  min-height: 1.2em;
  font-size: 13.5px;
  color: var(--c-crimson);
}

.cd-submit {
  justify-self: start;
  padding: 12px 22px;
  font-size: 15px;
}

.cd-presets {
  margin-top: 46px;
}

.page-subtitle {
  margin: 26px 0 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6d6d6d;
}

.cd-preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 940px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cd-preset {
  display: block;
  padding: 11px 15px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: var(--c-ink);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cd-preset:hover {
  border-color: var(--c-ink);
  transform: translateY(-1px);
}

.cd-preset span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: #6f6f6f;
}

.cd-hero {
  padding-top: 2px;
}

.cd-target {
  margin: 4px 0 0;
  font-size: 16px;
  color: #666;
}

.cd-clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 940px;
  margin-top: 30px;
}

.cd-unit {
  padding: 22px 10px 18px;
  background: var(--c-panel);
  text-align: center;
}

.cd-value {
  display: block;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.cd-label {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d6d6d;
}

.cd-clock.is-done .cd-value {
  color: var(--c-crimson);
}

.cd-state {
  min-height: 1.4em;
  margin: 18px 0 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-crimson);
}

.cd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .cd-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cd-clock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cd-unit {
    padding: 18px 8px 14px;
  }

  .cd-preset-list {
    gap: 8px;
  }

  .cd-preset {
    flex: 1 1 100%;
  }
}

/* ── overlays ──────────────────────────────────────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 24px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.overlay[hidden] {
  display: none;
}

.overlay.is-open {
  opacity: 1;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.42);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.search-panel,
.menu-panel,
.sheet-panel,
.modal-panel {
  position: relative;
  width: min(660px, 100%);
  max-height: 84vh;
  overflow: auto;
  background: #fff;
  padding: 18px 20px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(-8px);
  transition: transform 0.18s ease;
}

.search-panel:focus,
.menu-panel:focus,
.sheet-panel:focus,
.modal-panel:focus {
  outline: none;
}

.overlay.is-open .search-panel,
.overlay.is-open .menu-panel,
.overlay.is-open .sheet-panel,
.overlay.is-open .modal-panel {
  transform: none;
}

.menu-panel {
  width: min(390px, 100%);
}

.sheet-panel {
  width: min(600px, 100%);
}

.modal-panel {
  width: min(680px, 100%);
}

/* search */

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-ink);
}

.search-field svg {
  width: 22px;
  height: 22px;
  color: #666;
  flex: 0 0 auto;
}

.search-field input {
  flex: 1;
  min-width: 0;
  padding: 3px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  color: var(--c-ink);
}

.search-field input:focus {
  outline: none;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-hint {
  margin: 9px 0 2px;
  font-size: 13px;
  color: #767676;
}

.search-locate {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 10px 0 4px;
  padding: 10px 10px;
  border: 1px solid #e2e2e2;
  background: #fafafa;
  color: var(--c-ink);
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.search-locate svg {
  width: 20px;
  height: 20px;
  color: var(--c-crimson);
  flex: 0 0 auto;
}

.search-locate:hover {
  background: #f2f2f2;
  border-color: #d6d6d6;
}

.search-locate[disabled] {
  opacity: 0.6;
  cursor: default;
}

.search-results {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  max-height: min(56vh, 420px);
  overflow: auto;
}

.search-results li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px 14px;
  padding: 9px 10px;
  cursor: pointer;
}

.search-results li.is-active {
  background: #f2f2f2;
}

.search-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.search-meta {
  font-size: 12px;
  color: #6f6f6f;
  line-height: 1.3;
}

.search-time {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 19px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.search-empty {
  padding: 16px 10px;
  color: #6f6f6f;
  font-size: 14px;
}

/* menu */

.menu-head,
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.menu-head h2,
.sheet-head h2,
.modal-panel h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.menu-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 11px 4px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: none;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.menu-item:hover {
  background: #f7f7f7;
}

.menu-value {
  color: #6f6f6f;
  font-size: 14px;
  white-space: nowrap;
}

.menu-foot {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #6e6e6e;
  line-height: 1.5;
}

.lang-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 18px;
}

.lang-list .menu-item {
  font-size: 15px;
  padding: 8px 4px;
}

.lang-list .menu-value {
  font-size: 11px;
  color: #bbb;
}

/* sheet */

.sheet-kicker {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6e6e6e;
}

.facts {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 8px 18px;
  margin: 18px 0 0;
  font-size: 15px;
}

.facts dt {
  color: #6f6f6f;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fact-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 500 !important;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* modal copy */

.modal-body {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}

.modal-body p {
  margin: 0 0 12px;
}

.modal-body a {
  color: var(--c-crimson);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.copy-area {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  background: #fafafa;
  color: var(--c-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-ink);
  resize: vertical;
}

.modal-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f2f2f2;
  padding: 1px 4px;
}

.modal-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 4px;
}

.modal-body h3 {
  margin: 26px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f6f6f;
}

.modal-body h3:first-child {
  margin-top: 4px;
}

.modal-body kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  border: 1px solid #dcdcdc;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #fafafa;
  font-family: inherit;
  font-size: 0.85em;
  font-weight: 600;
  text-align: center;
}

.modal-lead {
  font-size: 17px;
  font-weight: 500;
}

.build-line {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e6e6e6;
  font-size: 12.5px;
  color: #7a7a7a;
}

.faq dt {
  font-weight: 900;
  margin-top: 10px;
}

.faq dd {
  margin: 2px 0 0;
  color: #555;
}

/* toast */

/* ── sixth page: time zones ─────────────────────────────────────────── */

.zone-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 940px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.zone-card {
  padding: 20px 22px 18px;
  background: #fff;
  border: 1px solid var(--c-line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zone-card.is-focus {
  border-color: var(--c-crimson);
  box-shadow: 0 0 0 2px rgba(58, 73, 201, 0.18);
}

.zone-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
}

.zone-name {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #6e6e6e;
}

.zone-time {
  margin: 12px 0 0;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.zone-date {
  margin: 6px 0 0;
  font-size: 13px;
  color: #666;
}

.zone-meta {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #6f6f6f;
}

@media (max-width: 980px) {
  .zone-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .zone-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .zone-card {
    padding: 16px 18px;
  }
}

/* ── tenth page: blog ────────────────────────────────────────────────── */

.blog-list {
  max-width: 820px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
}

.post details {
  border-bottom: 1px solid var(--c-line);
}

.post summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  list-style: none;
}

.post summary::-webkit-details-marker {
  display: none;
}

.post summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 6px;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  color: #aaa;
}

.post details[open] summary::after {
  content: "–";
}

.post-tag {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-crimson);
}

.post-title {
  display: block;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.post summary:hover .post-title {
  color: var(--c-crimson);
}

.post-teaser {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #666;
}

.post-meta {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #6e6e6e;
}

.post-body {
  padding: 0 44px 24px 0;
}

.post-body p {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #333;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-body em {
  font-style: italic;
}

.post-next {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
  font-size: 13.5px;
  line-height: 1.6;
  color: #6e6e6e;
}

.post-next span {
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6e6e6e;
}

.post-next a {
  color: var(--c-crimson);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.post-next a:hover {
  border-bottom-color: var(--c-crimson);
}

.post-body ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.post-body li {
  margin-bottom: 6px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #333;
}

.post-body strong {
  font-weight: 700;
}

@media (max-width: 620px) {
  .post summary {
    padding-right: 32px;
  }

  .post-title {
    font-size: 17.5px;
  }

  .post-body {
    padding-right: 8px;
  }
}

/* ── ninth page: advertise ──────────────────────────────────────────── */

.ad-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 940px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.ad-points li {
  padding: 22px 24px 20px;
  border: 1px solid var(--c-line);
  background: #fff;
}

.ad-points h2 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-crimson);
}

.ad-points p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.ad-contact {
  max-width: 940px;
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.ad-contact a {
  color: var(--c-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ad-contact a:hover {
  color: var(--c-crimson);
}

@media (max-width: 760px) {
  .ad-points {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── eighth page: contact ───────────────────────────────────────────── */

.contact-faq {
  max-width: 720px;
  margin: 26px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--c-crimson);
  background: #faf5f6;
  font-size: 14.5px;
  line-height: 1.55;
  color: #444;
}

.contact-faq a {
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  max-width: 720px;
  margin-top: 26px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.contact-field > span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f6f6f;
}

.contact-field > span em {
  letter-spacing: 0;
  text-transform: none;
  font-style: normal;
  font-weight: 400;
  color: #6e6e6e;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8d8d8;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-ink);
  resize: vertical;
}

.contact-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-hint {
  min-height: 1.2em;
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--c-crimson);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.contact-actions .btn {
  padding: 12px 22px;
  font-size: 15px;
}

.contact-anon {
  flex: 1 1 280px;
  font-size: 13px;
  line-height: 1.5;
  color: #6f6f6f;
}

.contact-draft {
  max-width: 720px;
  margin-top: 30px;
  padding-top: 4px;
  border-top: 1px solid var(--c-line);
}

.contact-draft textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  background: #fafafa;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.6;
  color: #333;
  resize: vertical;
}

@media (max-width: 620px) {
  .contact-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-actions .btn {
    width: 100%;
  }
}

/* ── seventh page: terms of use ─────────────────────────────────────── */

.legal {
  max-width: 720px;
  margin-top: 28px;
  font-size: 15.5px;
  line-height: 1.68;
  color: #333;
}

.legal h2 {
  margin: 30px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f6f6f;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  margin: 0 0 12px;
}

.legal p:last-child {
  margin-bottom: 0;
}

.legal a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--c-crimson);
}

/* favorite locations sheet */

.fav-panel {
  width: min(560px, 100%);
}

.fav-rows {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.fav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.fav-row:last-child {
  border-bottom: 0;
}

.fav-go {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.fav-city {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: var(--c-ink);
}

.fav-go:hover .fav-city {
  color: var(--c-crimson);
}

.fav-zone {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6f6f6f;
}

.fav-time {
  font-size: 19px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.fav-remove {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  color: #b0b0b0;
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.fav-remove:hover {
  border-color: #e2e2e2;
  color: var(--c-crimson);
}

.fav-empty {
  padding: 14px 0 6px;
}

.fav-empty p {
  margin: 0 0 12px;
  color: #666;
}

.fav-foot {
  margin: 14px 0 0;
  font-size: 12px;
  color: #6e6e6e;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 150;
  transform: translate(-50%, 12px);
  padding: 11px 18px;
  background: var(--c-ink);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  max-width: min(92vw, 520px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .band-tools {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
  }
}

@media (max-width: 980px) {
  .zone-links {
    font-size: 22px;
    gap: 10px 24px;
  }

  .quote p {
    font-size: 30px;
    line-height: 1.6;
  }

  .band-quote {
    padding: 110px var(--pad);
  }

  .footer-logo {
    font-size: 34px;
  }

  .footer-title {
    font-size: 24px;
  }

  .footer-col {
    font-size: 17px;
  }
}

@media (max-width: 900px) {
  .chips {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-top: 14px;
    padding-bottom: 40px;
  }

  .hero-status {
    font-size: 28px;
  }

  .hero-note,
  .hero-place {
    font-size: 16px;
  }

  .hero-date {
    font-size: 25px;
  }

  .hero-observance,
  .hero-sun {
    font-size: 16px;
  }

  .hero-readout {
    text-align: center;
  }

  .hero-sun .sep {
    margin: 0 0.3em;
  }

  .chips {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
  }

  .favorites {
    justify-content: flex-start;
  }

  .band-dark {
    padding: 44px var(--pad);
  }

  .cloud {
    margin-top: 34px;
    gap: 6px 15px;
  }

  .cloud-item {
    font-size: max(11px, calc(var(--fs, 16px) * 0.58));
  }

  .band-tools {
    margin-top: 40px;
  }

  .panel {
    padding: 20px 18px;
  }

  .diff-row {
    grid-template-columns: minmax(80px, 1fr) auto 88px;
  }

  .diff-date {
    display: none;
  }

  .band-quote {
    padding: 70px var(--pad);
  }

  .quote p {
    font-size: 22px;
    line-height: 1.6;
  }

  .quote-credit {
    font-size: 17px;
  }

  .site-footer {
    padding: 44px var(--pad) 64px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
  }

  .footer-col {
    font-size: 16px;
    line-height: 2;
  }

  .footer-fine {
    margin-top: 36px;
  }

  .overlay {
    padding: 4vh 10px 16px;
  }

  .lang-list {
    columns: 1;
  }

  .converter-form {
    grid-template-columns: 1fr;
  }

  .there-clocks {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 18px;
  }

  .there-arrow {
    display: none;
  }

  .there-time {
    font-size: 40px;
  }

  .converter-out {
    grid-template-columns: 1fr auto 1fr;
  }

  .conv-time {
    font-size: 26px;
  }
}

@media (max-width: 360px) {
  .site-header .header-inner { gap: 6px; }
  .header-tools { gap: 6px; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 20px; height: 20px; }
  .logo { min-width: 104px; font-size: 13px; padding: 0 12px; letter-spacing: 0.01em; }
}

@media (max-width: 480px) {
  .logo {
    min-width: 112px;
    font-size: 14px;
    padding: 0 14px;
  }

  .hero-status {
    font-size: 24px;
  }

  .hero-date {
    font-size: 21px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .icon-btn svg {
    width: 22px;
    height: 22px;
  }

  .chips {
    gap: 8px;
  }

  .chip {
    min-width: 68px;
    padding: 4px 10px;
  }

  .chip-city,
  .chip-time {
    font-size: 16px;
  }

  .zone-links {
    font-size: 18px;
    gap: 8px 16px;
  }

  .footer-logo {
    font-size: 26px;
  }

  .footer-title {
    font-size: 18px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

/* ── motion & print ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .band-dark,
  .band-quote,
  .site-footer,
  .overlay,
  .toast {
    display: none !important;
  }

  .hero {
    padding: 0;
  }
}

/* ── dark theme ────────────────────────────────────────────────────────── */

html[data-theme="dark"] {
  --c-bg: #0e101a;
  --c-ink: #e8eaf4;
  --c-muted: #a6abbf;
  --c-panel: #171a26;
  --c-panel-hover: #1f2331;
  --c-line: #262a3a;
  --c-dark: #090b13;
  --c-purple: #1a1f3a;
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: var(--c-bg);
  color: var(--c-ink);
}

html[data-theme="dark"] .site-header { background: #171a26; }
html[data-theme="dark"] .clock { color: #f2f2f4; }
html[data-theme="dark"] .clock-meridiem { color: #b6b6bf; }
html[data-theme="dark"] .hero-observance a.muted { color: #9a9aa4; }
html[data-theme="dark"] .favorites-label { color: #9a9aa4; }
html[data-theme="dark"] .cloud-item.is-featured { background: #171a26; color: #f2f2f4; }
html[data-theme="dark"] .panel { background: #171a26; }
html[data-theme="dark"] .field label,
html[data-theme="dark"] .conv-city,
html[data-theme="dark"] .conv-delta,
html[data-theme="dark"] .panel-foot { color: #a8a8b0; }
html[data-theme="dark"] .switch { color: #9a9aa4; }
html[data-theme="dark"] .diff-delta { color: #b6b6bf; }
html[data-theme="dark"] .select,
html[data-theme="dark"] input.select,
html[data-theme="dark"] select,
html[data-theme="dark"] input[type="datetime-local"] { background: #171a26; border: 1px solid #33333c;  }
html[data-theme="dark"] .btn-ghost { background: #171a26; }
html[data-theme="dark"] .btn-ghost:hover { background: #24242b; }
html[data-theme="dark"] .conv-delta { color: #9a9aa4; }
html[data-theme="dark"] .footer-current { background: #171a26; }
html[data-theme="dark"] .page-lead { color: #c9c9d0; }
html[data-theme="dark"] .there-place { color: #a5a5af; }
html[data-theme="dark"] .there-date { color: #a5a5af; }
html[data-theme="dark"] .year-btn { background: #171a26; border: 1px solid #33333c;  }
html[data-theme="dark"] .year-btn:hover { background: #24242b; }
html[data-theme="dark"] .dst-summary { color: #a5a5af; }
html[data-theme="dark"] .dst-table td { border-bottom: 1px solid #26262d;  }
html[data-theme="dark"] .dst-date { color: #a5a5af; }
html[data-theme="dark"] .dst-meta { color: #9a9aa4; }
html[data-theme="dark"] .dst-empty { color: #9a9aa4; }
html[data-theme="dark"] .week-now-place { color: #a5a5af; }
html[data-theme="dark"] .week-now-of { color: #a5a5af; }
html[data-theme="dark"] .week-now-meta { color: #a5a5af; }
html[data-theme="dark"] .week-lookup input { background: #171a26; border: 1px solid #33333c;  }
html[data-theme="dark"] .week-lookup-result { color: #b6b6bf; }
html[data-theme="dark"] .week-row.is-current { background: rgba(58, 73, 201, 0.16); }
html[data-theme="dark"] .cd-field input,
html[data-theme="dark"] .cd-field select { background: #171a26; border: 1px solid #33333c;  }
html[data-theme="dark"] .page-subtitle { color: #9a9aa4; }
html[data-theme="dark"] .cd-preset { background: #171a26; border: 1px solid #33333c;  }
html[data-theme="dark"] .cd-target { color: #a5a5af; }
html[data-theme="dark"] .cd-label { color: #9a9aa4; }
html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .menu-panel,
html[data-theme="dark"] .sheet-panel,
html[data-theme="dark"] .modal-panel { background: #171a26; }
html[data-theme="dark"] .search-field svg { color: #a5a5af; }
html[data-theme="dark"] .search-locate { background: #1d1d22; }
html[data-theme="dark"] .search-locate:hover { background: #24242b; }
html[data-theme="dark"] .search-results li.is-active { background: #24242b; }
html[data-theme="dark"] .search-meta { color: #a2a2ac; }
html[data-theme="dark"] .menu-value { color: #a2a2ac; }
html[data-theme="dark"] .facts dt { color: #a2a2ac; }
html[data-theme="dark"] .modal-body { color: #d9d9de; }
html[data-theme="dark"] .modal-body code { background: #24242b; }
html[data-theme="dark"] .modal-body kbd { background: #1d1d22; }
html[data-theme="dark"] .build-line { border-top: 1px solid #2c2c33;  }
html[data-theme="dark"] .faq dd { color: #b6b6bf; }
html[data-theme="dark"] .zone-card { background: #171a26; }
html[data-theme="dark"] .zone-label { color: #a5a5af; }
html[data-theme="dark"] .zone-date { color: #a5a5af; }
html[data-theme="dark"] .post-teaser { color: #a5a5af; }
html[data-theme="dark"] .post-body li { color: #d9d9de; }
html[data-theme="dark"] .post-next,
html[data-theme="dark"] .post-next span,
html[data-theme="dark"] .diff-date,
html[data-theme="dark"] .diff-delta { color: #a8a8b0; }
html[data-theme="dark"] .post-next a { color: #93a0ff; }
html[data-theme="dark"] .post-body p { color: #d9d9de; }
html[data-theme="dark"] .ad-points li { background: #171a26; }
html[data-theme="dark"] .ad-points p { color: #c9c9d0; }
html[data-theme="dark"] .contact-faq { background: rgba(58, 73, 201, 0.12); color: #c9c9d0; }
html[data-theme="dark"] .contact-field input,
html[data-theme="dark"] .contact-field textarea { background: #171a26; border: 1px solid #33333c;  }
html[data-theme="dark"] .contact-draft textarea { background: #1d1d22; border: 1px solid #33333c;  color: #d9d9de; }
html[data-theme="dark"] .legal { color: #d9d9de; }
html[data-theme="dark"] .fav-row { border-bottom: 1px solid #2a2a31;  }
html[data-theme="dark"] .fav-empty p { color: #a5a5af; }

html[data-theme="dark"] .copy-area,
html[data-theme="dark"] .contact-draft textarea,
html[data-theme="dark"] .search-locate,
html[data-theme="dark"] .modal-body kbd {
  background: #1b1b20;
  border-color: #33333c;
  color: var(--c-ink);
}

/* greys that would be too dark once the page turns dark */
html[data-theme="dark"] .legal h2,
html[data-theme="dark"] .legal h3,
html[data-theme="dark"] .zone-name,
html[data-theme="dark"] .zone-meta,
html[data-theme="dark"] .dst-zone,
html[data-theme="dark"] .dst-table th,
html[data-theme="dark"] .dst-note,
html[data-theme="dark"] .dst-meta,
html[data-theme="dark"] .cd-field label,
html[data-theme="dark"] .cd-preset span,
html[data-theme="dark"] .cd-label,
html[data-theme="dark"] .week-lookup label,
html[data-theme="dark"] .modal-body h3,
html[data-theme="dark"] .fav-zone,
html[data-theme="dark"] .contact-field > span em,
html[data-theme="dark"] .contact-field > span,
html[data-theme="dark"] .contact-anon,
html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .page-related span,
html[data-theme="dark"] .page-subtitle,
html[data-theme="dark"] .sheet-kicker,
html[data-theme="dark"] .menu-foot,
html[data-theme="dark"] .search-empty { color: #a8a8b0; }

/* the crimson accent needs more light on a dark page */
html[data-theme="dark"] #diffBase,
html[data-theme="dark"] .page-kicker,
html[data-theme="dark"] .post-tag,
html[data-theme="dark"] .page-related a,
html[data-theme="dark"] .page-back a,
html[data-theme="dark"] .modal-body a,
html[data-theme="dark"] .legal a,
html[data-theme="dark"] .ad-contact a,
html[data-theme="dark"] .cd-hint,
html[data-theme="dark"] .contact-hint { color: #93a0ff; }

/* the filled button inverts with the theme, so its label must too */
html[data-theme="dark"] .btn:not(.btn-ghost) { color: #101013; }

/* hand-tuned dark adjustments */

html[data-theme="dark"] .site-header {
  background: rgba(14, 16, 26, 0.94);
}

html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(14, 16, 26, 0.98);
  box-shadow: 0 1px 0 var(--c-line);
}

html[data-theme="dark"] .toast,
html[data-theme="dark"] .skip-link {
  background: #2a2a32;
  color: #f2f2f4;
}

html[data-theme="dark"] .year-btn.is-active {
  background: #e8e8ea;
  border-color: #e8e8ea;
  color: #101013;
}

html[data-theme="dark"] .footer-current {
  background: #e8e8ea;
  color: #101013 !important;
}

html[data-theme="dark"] .cloud-item.is-featured {
  background: #e8e8ea;
  color: #101013;
}

html[data-theme="dark"] .band-dark {
  background: #14172a;
}

html[data-theme="dark"] .site-footer {
  background: #090b13;
  border-top: 1px solid var(--c-line);
}

html[data-theme="dark"] .overlay-backdrop {
  background: rgba(0, 0, 0, 0.66);
}

html[data-theme="dark"] ::selection {
  background: rgba(58, 73, 201, 0.45);
}
