/* Faith tools: tasbih, Quran, Gita, Bible search, Nepali dates. */
@font-face {
  font-family: "Amiri Quran";
  src: url("/assets/data/p2-faith-amiri-quran.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.ff-ring {
  --p: 0;
  display: grid;
  place-items: center;
  width: min(16.25rem, 78vw);
  aspect-ratio: 1;
  margin: 0.25rem auto 1rem;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--border) 0);
}
.ff-tap {
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  background: var(--surface, var(--bg));
  color: var(--text);
  font: inherit;
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  touch-action: manipulation;
}
.ff-tap:active { transform: scale(0.98); }
.ff-tap small { color: var(--text-2); }
.ff-big {
  font-size: clamp(2.4rem, 12vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ff-center { text-align: center; }

.ff-ar {
  font-family: "Amiri Quran", "Noto Naskh Arabic", "Scheherazade New", serif;
  direction: rtl;
  text-align: right;
  font-size: 1.7rem;
  line-height: 2.2;
  margin: 0;
}
.ff-name { font-size: 2rem; line-height: 1.6; margin: 0 0 0.25rem; }
.ff-enname { margin: 0 0 0.75rem; color: var(--text-2); }
.ff-ayah {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  align-items: start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  list-style: none;
}
.ff-n { color: var(--text-2); font-variant-numeric: tabular-nums; padding-top: 0.45rem; }
.ff-list, .ff-hits { list-style: none; margin: 0; padding: 0; }

.ff-sa {
  font-family: "Noto Serif Devanagari", "Noto Sans Devanagari", "Kohinoor Devanagari", "ITF Devanagari", serif;
  font-size: 1.2rem;
  line-height: 1.85;
  margin: 0;
}
.ff-verse { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.ff-verse h3 { font-size: 0.95rem; margin: 0 0 0.35rem; }
.ff-en { margin: 0.4rem 0 0; }
.ff-speaker { margin: 0 0 0.25rem; color: var(--text-2); font-size: 0.85rem; }
.ff-note { margin: 0 0 0.75rem; color: var(--text-2); font-size: 0.9rem; }
.ff-notes { margin: 0.25rem 0 0; padding-left: 1.25rem; }
.ff-notes li { margin: 0.2rem 0; }

.ff-hit { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.ff-hit p { margin: 0.3rem 0 0; overflow-wrap: anywhere; }
.ff-hit mark { background: #f3e2a8; color: inherit; padding: 0 0.1em; }
.ff-result { font-size: 1.2rem; font-weight: 650; margin: 0.35rem 0 0.5rem; line-height: 1.45; }
.ff-notice { margin-top: 0.75rem; }
.ff-notice pre {
  white-space: pre-wrap;
  font: inherit;
  font-size: 0.8rem;
  color: var(--text-2);
  margin: 0.5rem 0 0;
}

.tool[data-family="faith"] select,
.tool[data-family="faith"] input[type="search"],
.tool[data-family="faith"] input[type="date"],
.tool[data-family="faith"] input[type="number"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 420px) {
  .ff-ar { font-size: 1.45rem; line-height: 2.05; }
  .ff-name { font-size: 1.7rem; }
  .ff-sa { font-size: 1.08rem; }
  .ff-readout { gap: 0.35rem 0.8rem; }
}
