/* The reading pages — /surah/<n> and /mawaqit/<city> — written by
   scripts/build_site_pages.py. Built on doc.css and the site's tokens; only
   what these pages add lives here: the مصحف text, the times table, the
   «حمّل نقاء» box and the small navigation between pages.

   A file, not a <style> block: the CSP says style-src 'self'. */

/* ─── The سورة ───────────────────────────────────────────────────────── */
.seo-audio {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line-faint);
  border-radius: 16px;
  background: var(--surface-sunk);
}
.seo-audio p { margin: 0; color: var(--text-body); font-size: 0.95rem; }
.seo-audio audio { width: 100%; }

.seo-mushaf {
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-sunk);
}
.seo-basmalah {
  margin: 0 0 14px;
  text-align: center;
  font-family: "Amiri Quran", "Amiri", serif;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--text-accent);
}
.seo-ayat {
  margin: 0;
  font-family: "Amiri Quran", "Amiri", serif;
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  line-height: 2.4;
  text-align: justify;
  color: var(--text-strong);
}
.seo-ayah-no {
  color: var(--text-accent);
  font-size: 0.85em;
  white-space: nowrap;
}

/* ─── The times ──────────────────────────────────────────────────────── */
.seo-times {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 1.15rem;
}
.seo-times caption {
  caption-side: top;
  text-align: start;
  color: var(--text-faint);
  font-size: 0.9rem;
  padding-bottom: 4px;
}
.seo-times th,
.seo-times td {
  padding: 14px 18px;
  background: var(--surface-sunk);
  border-block: 1px solid var(--line-faint);
}
.seo-times th {
  text-align: start;
  font-weight: 600;
  color: var(--text-body);
  border-inline-start: 1px solid var(--line-faint);
  border-start-start-radius: 14px;
  border-end-start-radius: 14px;
}
.seo-times td {
  text-align: end;
  font-weight: 700;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  border-inline-end: 1px solid var(--line-faint);
  border-start-end-radius: 14px;
  border-end-end-radius: 14px;
}
.seo-times tr.is-next th,
.seo-times tr.is-next td {
  background: var(--surface-gold);
  color: var(--hue-ink);
  border-color: transparent;
}
.seo-method { color: var(--text-faint); font-size: 0.9rem; line-height: 1.8; }

/* ─── «حمّل نقاء» ────────────────────────────────────────────────────── */
.seo-cta {
  margin-block: 28px;
  padding: clamp(18px, 4vw, 28px);
  border-radius: 20px;
  background: var(--surface-accent);
  border: 1px solid var(--line);
  text-align: center;
}
.seo-cta p { margin: 0 0 10px; color: var(--text-body); line-height: 1.8; }
.seo-cta .seo-cta-title { font-size: 1.2rem; font-weight: 700; color: var(--text-strong); }
.seo-cta-button {
  display: inline-block;
  margin-top: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--surface-accent-solid);
  color: var(--text-on-accent);
  font-weight: 700;
  text-decoration: none;
  border: 0;
}
.seo-cta-button:focus-visible { outline: 3px solid var(--text-accent); outline-offset: 3px; }
.seo-cta .seo-cta-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--text-faint); }

/* ─── Between pages ──────────────────────────────────────────────────── */
.seo-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}
.seo-nav a,
.seo-city-grid a {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-strong);
  text-decoration: none;
}
.seo-nav a:hover,
.seo-city-grid a:hover { border-color: var(--text-accent); }
.seo-cities { justify-content: flex-start; }

.seo-index,
.seo-city-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.seo-index { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.seo-city-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-bottom: 24px; }
.seo-city-grid a { display: block; text-align: center; }
.seo-index a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line-faint);
  border-radius: 14px;
  background: var(--surface-sunk);
  text-decoration: none;
}
.seo-index a:hover { border-color: var(--text-accent); }
.seo-index-no {
  grid-row: 1 / span 2;
  min-width: 2.2em;
  text-align: center;
  color: var(--text-accent);
  font-weight: 700;
}
.seo-index-name { color: var(--text-strong); font-weight: 700; }
.seo-index-meta { color: var(--text-faint); font-size: 0.85rem; }

/* ─── The أذكار ──────────────────────────────────────────────────────── */
.seo-azkar {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.seo-azkar li {
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-sunk);
}
.seo-zikr {
  margin: 0;
  font-family: "Amiri", serif;
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  line-height: 2.1;
  color: var(--text-strong);
}
.seo-zikr-count {
  margin: 10px 0 0;
  color: var(--text-accent);
  font-weight: 700;
  font-size: 0.9rem;
}
