/* =====================================================================
   KHGT App — Jadwal Waktu Sholat
   CSS murni, tanpa framework & tanpa CDN. Font sistem.
   ===================================================================== */

:root {
  --bg: #f2f5f1;
  --surface: #ffffff;
  --surface-2: #eaf0ec;
  --surface-3: #f7faf7;
  --ink: #0e1f1a;
  --ink-2: #3b4f48;
  --ink-3: #6a7d76;
  --line: rgba(14, 31, 26, 0.10);
  --line-strong: rgba(14, 31, 26, 0.18);
  --accent: #0e6b5b;
  --accent-2: #108a75;
  --accent-soft: rgba(14, 107, 91, 0.10);
  --gold: #b98a45;
  --gold-soft: rgba(185, 138, 69, 0.14);
  --hero-1: #0a3831;
  --hero-2: #10584a;
  --hero-ink: #f1f8f4;
  --hero-muted: rgba(241, 248, 244, 0.72);
  --danger: #a4472f;
  --shadow-sm: 0 1px 2px rgba(11, 32, 26, 0.06), 0 2px 8px rgba(11, 32, 26, 0.04);
  --shadow-md: 0 10px 30px rgba(11, 32, 26, 0.10);
  --radius: 18px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Noto Sans", "Liberation Sans", sans-serif;
  --font-ar: "Traditional Arabic", "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;
}

html[data-theme="dark"] {
  --bg: #07110f;
  --surface: #0e1d19;
  --surface-2: #132723;
  --surface-3: #0b1815;
  --ink: #e9f3ee;
  --ink-2: #b6c9c2;
  --ink-3: #8ba39c;
  --line: rgba(233, 243, 238, 0.11);
  --line-strong: rgba(233, 243, 238, 0.20);
  --accent: #43d9b0;
  --accent-2: #63e6c1;
  --accent-soft: rgba(67, 217, 176, 0.12);
  --gold: #e2b877;
  --gold-soft: rgba(226, 184, 119, 0.14);
  --hero-1: #051f1b;
  --hero-2: #0a3a32;
  --hero-ink: #eef8f3;
  --hero-muted: rgba(238, 248, 243, 0.70);
  --danger: #f0a48c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.45);
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(242, 245, 241, 0.86);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}

html[data-theme="dark"] .topbar {
  background: rgba(7, 17, 15, 0.86);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--hero-2), var(--hero-1));
  color: #e6c68d;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__text strong {
  font-size: 15px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.brand__text small {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.btn {
  display: -ms-inline-flexbox;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn:active {
  transform: translateY(1px);
}
.btn--city {
  max-width: 260px;
}
.btn--city span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn--icon {
  padding: 9px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.btn--block {
  width: 100%;
  justify-content: flex-start;
}
.btn--block span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ico-moon {
  display: none;
}
html[data-theme="dark"] .ico-sun {
  display: none;
}
html[data-theme="dark"] .ico-moon {
  display: block;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  margin: 22px 0 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: min(1240px, calc(100% - 24px));
  height: calc(100% - 10px);
  transform: translateX(-50%);
  border-radius: 26px;
  background:
    radial-gradient(1100px 340px at 12% -10%, rgba(226, 184, 119, 0.22), transparent 62%),
    radial-gradient(700px 320px at 95% 0%, rgba(67, 217, 176, 0.20), transparent 60%),
    linear-gradient(150deg, var(--hero-2), var(--hero-1) 62%);
  box-shadow: var(--shadow-md);
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(241, 248, 244, 0.12);
  box-shadow: 0 0 0 28px rgba(241, 248, 244, 0.05), 0 0 0 64px rgba(241, 248, 244, 0.035);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: -ms-flexbox;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 36px;
  color: var(--hero-ink);
}

.hero__main {
  min-width: 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--hero-muted);
}

.hero__country {
  padding: 2px 9px;
  border: 1px solid rgba(241, 248, 244, 0.28);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--hero-ink);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ce6bf;
  box-shadow: 0 0 0 0 rgba(124, 230, 191, 0.7);
  animation: pulse 2.4s infinite;
  flex: 0 0 auto;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 230, 191, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(124, 230, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 230, 191, 0); }
}

.clock {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 2px;
  font-weight: 300;
  line-height: 1;
}

.clock__digits {
  font-size: 58px;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.clock__tz {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-muted);
  font-weight: 500;
}

.hero__date {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--hero-ink);
}

.hero__date .sep {
  color: var(--hero-muted);
  margin: 0 6px;
}

.hero__hijri {
  color: #eccf9c;
  font-weight: 600;
}

.hero__meta {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--hero-muted);
  letter-spacing: 0.01em;
}

.hero__meta .sep {
  margin: 0 6px;
  opacity: 0.6;
}

/* kartu hitung mundur */

.next {
  flex: 0 0 268px;
  padding: 18px 20px 20px;
  border-radius: 18px;
  border: 1px solid rgba(241, 248, 244, 0.20);
  background: rgba(7, 28, 24, 0.34);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.next__label {
  font-size: 12.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--hero-muted);
}
.next__label strong {
  color: var(--hero-ink);
  letter-spacing: 0.10em;
}
.next__tomorrow {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(226, 184, 119, 0.2);
  color: #f0d5a9;
  font-size: 10px;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

.next__time {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--hero-ink);
}

.next__count {
  margin-top: 2px;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: #f4dcb2;
}

.next__bar {
  margin-top: 12px;
  height: 4px;
  border-radius: 999px;
  background: rgba(241, 248, 244, 0.18);
  overflow: hidden;
}
.next__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #cf9f5c, #f2d7a8);
  transition: width 0.6s linear;
}

/* ---------------------------------------------------------------- section */

.section {
  margin-top: 34px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section__head h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.section__sub {
  font-size: 13px;
  color: var(--ink-3);
}

.section__src {
  margin: -4px 0 14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
}

.section__src strong {
  font-weight: 600;
  color: var(--ink-2);
}

.section__src code {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(127, 127, 127, 0.16);
}

/* ----------------------------------------------------------------- kartu */

.times {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.tcard {
  position: relative;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  overflow: hidden;
}

.tcard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--line-strong);
}

.tcard.is-wajib::before {
  background: var(--gold);
}

.tcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tcard__label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.tcard__ar {
  font-family: var(--font-ar);
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1;
}

.tcard__time {
  margin: 8px 0 6px;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.tcard__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.tcard__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  flex: 0 0 auto;
}

.tcard.is-passed {
  background: var(--surface-3);
}
.tcard.is-passed .tcard__time {
  color: var(--ink-3);
}
.tcard.is-passed .tcard__dot {
  background: var(--line-strong);
}

.tcard.is-next {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 72%);
  box-shadow: 0 8px 24px rgba(14, 107, 91, 0.14);
}
.tcard.is-next::before {
  background: var(--accent);
  width: 4px;
}
.tcard.is-next .tcard__label {
  color: var(--accent);
}
.tcard.is-next .tcard__state {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10.5px;
}
.tcard.is-next .tcard__dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------------------------------------------------------------- panel */

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 22px;
}

.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field__row {
  display: flex;
  gap: 8px;
}

.field__hint {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

.select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236a7d76' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.select:hover {
  border-color: var(--accent);
}

/* Keterangan metode tetap (bukan kontrol): hanya Muhammadiyah. */
.method-fixed {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.hijri-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.hijri-badge__ar {
  font-family: var(--font-ar);
  font-size: 24px;
  line-height: 1;
  color: var(--gold);
}
.hijri-badge strong {
  font-size: 15px;
}
.hijri-badge small {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.4;
}
.hijri-badge--warn {
  border-color: var(--danger);
}
.hijri-badge--warn small {
  color: var(--danger);
}

/* ---------------------------------------------------------------- notes */

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.note h3 {
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.note p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.note p + p {
  margin-top: 8px;
}

.note__src {
  font-size: 11.5px !important;
  color: var(--ink-3) !important;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------- footer */

.footer {
  margin-top: 40px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.footer__inner p {
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer__meta {
  margin-top: 6px !important;
  font-size: 11.5px !important;
}

/* ---------------------------------------------------------------- modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 12, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: min(78vh, 660px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.18s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.modal__head h2 {
  font-size: 17px;
  font-weight: 600;
}

.modal__search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--ink-3);
}
.modal__search:focus-within {
  border-color: var(--accent);
  color: var(--accent);
}
.modal__search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  outline: none;
}
.modal__search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.modal__list {
  margin-top: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line);
}

.city-group {
  padding: 12px 2px 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.city-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.city-item:hover,
.city-item.is-active {
  background: var(--accent-soft);
}
.city-item__name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.city-item__meta {
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}
.city-item.is-current .city-item__name::after {
  content: " •";
  color: var(--accent);
}

.modal__empty {
  padding: 22px 4px;
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
}

.modal__hint {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: center;
}

/* -------------------------------------------------------------- noscript */

.noscript {
  margin-top: 16px;
  padding: 16px;
  border: 2px dashed var(--gold);
  border-radius: 14px;
  background: var(--gold-soft);
}
.noscript form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
.noscript p {
  flex: 1 0 100%;
}
.noscript select,
.noscript button {
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  font: inherit;
  font-size: 13.5px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
  .times {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .panel__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .field--wide {
    grid-column: 1 / -1;
  }
  .notes {
    grid-template-columns: minmax(0, 1fr);
  }
  .clock__digits {
    font-size: 50px;
  }
}

@media (max-width: 820px) {
  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding-top: 34px;
    padding-bottom: 30px;
  }
  .next {
    flex: 1 1 auto;
  }
  .next__count {
    font-size: 30px;
  }
  .brand__text small {
    display: none;
  }
  .btn--city {
    max-width: 170px;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding: 0 14px;
  }
  .topbar__inner {
    height: 60px;
  }
  .brand__text strong {
    font-size: 13.5px;
  }
  .hero::before {
    width: calc(100% - 16px);
    border-radius: 20px;
  }
  .hero::after {
    width: 260px;
    height: 260px;
    right: -90px;
    top: -60px;
  }
  .hero__inner {
    padding-top: 26px;
    padding-bottom: 24px;
  }
  .clock__digits {
    font-size: 42px;
  }
  .hero__date {
    font-size: 14px;
  }
  .hero__meta {
    font-size: 11.5px;
  }
  .hero__meta .sep,
  .hero__meta #heroElev {
    display: none;
  }
  .times {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tcard__time {
    font-size: 24px;
  }
  .tcard.is-next .tcard__time {
    font-size: 26px;
  }
  .panel {
    padding: 16px;
  }
  .panel__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .section {
    margin-top: 26px;
  }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .btn--city {
    max-width: 132px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .footer {
    margin-top: 28px;
  }
  .modal__panel {
    max-height: 86vh;
  }
}

@media (max-width: 380px) {
  .clock__digits {
    font-size: 36px;
  }
  .next__count {
    font-size: 26px;
  }
  .times {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .topbar,
  .next,
  .panel,
  .footer,
  .modal,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .hero::before,
  .hero::after {
    display: none;
  }
  .hero__inner {
    color: #000;
    padding: 0;
  }
  .tcard {
    box-shadow: none;
    break-inside: avoid;
  }
}
