/* Guides: plain pages that answer common questions, readable without the app (and by search engines). */
:root {
  color-scheme: light dark;
  --brand: #075e54;
  --teal: #075e54;
  --teal-light: #e3f1ee;
  --text: #212121;
  --muted: #4d5b57;
  --page: #fafafa;
  --surface: #fff;
  --bubble: #dcf8c6;
  --rule: #ddd;
}

/* Dark when the phone is, as in the app. */
@media (prefers-color-scheme: dark) {
  :root {
    --teal: #6fd4c0;
    --teal-light: #173a33;
    --text: rgba(255, 255, 255, 0.88);
    --muted: #a7b5b0;
    --page: #0f1413;
    --surface: #1a2120;
    --bubble: #0b4a3f;
    --rule: rgba(255, 255, 255, 0.12);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Markazi Text", Tahoma, Arial, sans-serif;
  font-size: 21px;
  line-height: 1.6;
}

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

.site-header {
  background: #0a5c52;
  padding: 10px 16px;
}

.site-header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.site-header img {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 8px;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}

h1 {
  font-size: 40px;
  line-height: 1.25;
  color: var(--teal);
  margin: 8px 0 12px;
}

h2 {
  font-size: 30px;
  line-height: 1.3;
  margin: 36px 0 8px;
}

h3 {
  font-size: 24px;
  margin: 24px 0 4px;
}

.lead {
  font-size: 23px;
  color: var(--muted);
}

.cta {
  display: block;
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 40px;
  background: var(--brand);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.cta.secondary {
  background: var(--surface);
  color: var(--teal);
  border: 2px solid var(--teal);
}

ol li,
ul li {
  margin-bottom: 8px;
}

.note {
  margin: 24px 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--teal-light);
}

.message {
  white-space: pre-line;
  /* A link in the message may break, rather than make a narrow phone scroll sideways. */
  overflow-wrap: anywhere;
  margin: 12px 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--bubble);
  font-size: 20px;
}

/* Tables of numbers (how to share out the Quran, how long it takes): short cells that fit the narrowest phones. */
table {
  width: 100%;
  margin: 16px 0 24px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 20px;
}

th,
td {
  padding: 8px;
  border-bottom: 1px solid var(--rule);
  text-align: start;
  vertical-align: top;
}

thead th {
  background: var(--teal-light);
}

details {
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 8px 0 0;
}

.more-guides {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

/* The guides index: each guide, with a line on what it answers. */
.guide-list {
  padding: 0;
  list-style: none;
}

.guide-list li {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.guide-list a {
  font-weight: 700;
}

.guide-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

footer {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}
