/*
  The prayer time pages (/prayer-times/, /ramadan-2027/<city>/), rendered by
  worker/times/. Only these pages link this file; everything else comes from
  site.css and its tokens, so light and dark follow the rest of the site.
*/

.times h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.times .wrap > p + p { margin-top: 12px; }
.times .article-lead { margin-top: 18px; }
.times .faq { margin-top: 16px; }
.times .times-sighting { margin-top: 12px; color: var(--muted); }

/* ---------- Today's card: Fajr big, the day's times beside it ---------- */

.times-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 26px;
  padding: 28px;
}

.times-fajr h2 {
  margin: 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.times-big {
  margin-top: 6px;
  font-size: clamp(3.6rem, 14vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.times-date { margin-top: 10px; font-weight: 700; }
.times-sub { margin-top: 8px; color: var(--muted); }
.times-tomorrow { display: block; margin-top: 4px; color: var(--text); font-weight: 700; }

.times-list { margin: 0; display: grid; align-content: start; }

.times-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.times-row:last-child { border-bottom: 0; }
.times-row dt { font-weight: 700; }
.times-row dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.times-row.is-fajr dt,
.times-row.is-fajr dd { color: var(--accent); }

/* The Ramadan page's first day: one column, the two times only. */
.times-ramadan-first { grid-template-columns: minmax(0, 1fr); }
.times-ramadan-first .times-list { margin-top: 12px; }
.times-ramadan-first .times-row dd { font-size: 1.5rem; }

.times-method { margin-top: 14px; }
.times-ramadan { margin-top: 18px; font-weight: 800; }
.times-ramadan a { color: var(--accent); }

/* ---------- Tables: the month and Ramadan ---------- */

.times-table table.data { font-size: 0.9375rem; }
.times-table table.data th,
.times-table table.data td {
  padding: 10px 12px;
  text-align: start;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.times-table table.data thead th { letter-spacing: 0.02em; }
.times-table table.data td:first-child { font-weight: 600; }
.times-table tbody th { font-weight: 700; }
.times-table td.fajr { color: var(--accent); font-weight: 800; }
.times-table tr.today th,
.times-table tr.today td { background: var(--accent-soft); }
.times-table tr.today th { color: var(--accent); }

/* Phones: the times stack under Fajr, the table scrolls inside its card. */
@media (max-width: 640px) {
  .times-card { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px; }
  .times-table table.data { font-size: 0.8125rem; }
  .times-table table.data th,
  .times-table table.data td { padding: 9px 5px; }
  .times-table table.data th:first-child,
  .times-table table.data td:first-child { padding-inline-start: 10px; }
  .times-table table.data thead th { font-size: 0.6875rem; letter-spacing: 0; white-space: normal; vertical-align: bottom; }
}

@media (max-width: 420px) {
  .times-table table.data { font-size: 0.75rem; }
  .times-table table.data th,
  .times-table table.data td { padding: 8px 3px; }
}

/* ---------- Lists of cities ---------- */

.hub-country h2 { margin-top: 36px; }

.hub-list,
.city-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.hub-list a,
.city-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r-tab);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.hub-list a:hover,
.city-links a:hover { color: var(--accent); }
.hub-fajr { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.times-more { margin-top: 16px; font-weight: 700; }
.times-more a { color: var(--accent); }

@media (max-width: 420px) {
  .hub-list,
  .city-links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hub-list a { flex-direction: column; gap: 2px; }
}
