:root {
  --paper: #FBF7EE;
  --ink: #172926;
  --muted: #4A5C58;
  --accent: #124D49;
  --rule: #124D49;
  --serif: "Spectral", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}

main, header.site {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  padding-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.meta {
  font-style: italic;
  color: var(--muted);
  margin: 0;
}

.back {
  display: inline-block;
  font-family: var(--sans);
  margin-top: 16px;
  padding: 10px 0;
}

section {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
  margin-top: 1.5rem;
}

.scripture {
  font-size: 20px;
  line-height: 1.6;
}

.scripture p { margin: 0 0 1rem; }

.scripture sup {
  font-family: var(--sans);
  font-size: 0.65em;
  color: var(--muted);
  margin-right: 0.15em;
}

.credit {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 1rem;
}

details {
  border-top: 1px solid rgba(18, 77, 73, 0.25);
  padding: 0.25rem 0;
}

details:last-of-type { border-bottom: 1px solid rgba(18, 77, 73, 0.25); }

summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.75rem 0;
  min-height: 44px;
  color: var(--accent);
}

details p { margin: 0 0 1rem; }

/* Picker */
.hero {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
}

.intro { margin: 0 0 1rem; }

.questions {
  list-style: none;
  margin: 1rem 0 2rem;
  padding: 0;
}

.questions li { border-top: 1px solid var(--rule); }
.questions li:last-child { border-bottom: 1px solid var(--rule); }

.questions a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.questions strong { display: block; font-size: 1.1rem; line-height: 1.35; }
.questions em { color: var(--muted); }
.questions .chev { color: var(--accent); font-size: 1.5rem; }

.soon { font-family: var(--sans); color: var(--muted); font-size: 16px; }

/* Footer actions */
.actions { padding-bottom: 3rem; }

.button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 16px;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}

.textbutton {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: underline;
  padding: 10px;
  min-height: 44px;
  cursor: pointer;
}

.sharetext {
  font-family: var(--sans);
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid rgba(18, 77, 73, 0.3);
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0 0;
  user-select: all;
}

.status {
  font-family: var(--sans);
  text-align: center;
  min-height: 1.6em;
  color: var(--accent);
  margin: 8px 0 0;
}

.hidden { display: none; }

/* Verse pages */
.verse { border-top: 0; margin-top: 0; padding-top: 0.5rem; }
.scripture .poetry { padding-left: 1.25em; text-indent: -1.25em; }
.more, .chapters a { font-family: var(--sans); display: inline-block; padding: 10px 0; }
.chapters { display: flex; justify-content: space-between; gap: 16px; }

/* Share a verse */
.picker { font-family: var(--sans); margin: 1rem 0; }
.picker label { display: block; font-weight: 600; margin-bottom: 12px; }
.picker select {
  display: block; width: 100%; margin-top: 4px; min-height: 44px;
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1px solid rgba(18, 77, 73, 0.4); border-radius: 6px; padding: 8px;
}
.picker .row { display: flex; gap: 12px; }
.picker .row label { flex: 1; }
.actions .textbutton { text-align: center; }
a.textbutton { width: max-content; }
.actions .sharetext + .button { margin-top: 12px; }
button:disabled { opacity: 0.45; cursor: default; }
.site-foot { max-width: 640px; margin: 0 auto; padding: 0 20px 32px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.send-own { font-family: var(--sans); margin-top: 2rem; }

/* the hidden attribute always wins over display rules above */
[hidden] { display: none !important; }
.draft-banner { font-family: var(--sans); background: #FFF1C9; border: 1px solid #C9973F; border-radius: 6px; padding: 10px 12px; margin: 16px 0 0; }
.group { font-size: 1.15rem; margin: 2rem 0 0.25rem; color: var(--accent); }

/* Arabic pages */
body.ar { font-family: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif; }
body.ar .scripture { font-size: 24px; line-height: 2; }
body.ar .scripture sup { font-family: inherit; margin-left: 0.15em; margin-right: 0; }
body.ar .credit, body.ar .more, body.ar .chapters a { font-family: inherit; }
body.ar .credit { font-size: 15px; }
body.ar .credit-after { margin-top: 1rem; overflow-wrap: anywhere; }
body.ar .ltr { font-family: var(--serif); direction: ltr; text-align: left; }
body.ar .notice { font-weight: 700; }
body.ar bdi { white-space: nowrap; }
header.site { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lang-switch { font-family: var(--sans); font-size: 15px; }
body.ar .lang-switch { font-family: var(--sans); }
/* Explanatory prose on Arabic readings (unclassed paragraphs directly in a section or a disclosure).
   Scripture paragraphs sit inside .scripture and keep their own 24px/2 styling. */
body.ar main section > p:not([class]), body.ar main details > p { font-size: 20px; line-height: 1.9; }
