@font-face{font-family:'SurahNameV4';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/surah-name-v4.woff2') format('woff2')}
@font-face{font-family:'Amiri';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/Amiri-arabic-normal-400.woff2') format('woff2')}
:root{
  --bg:#121316;--text:#F9FAFB;--muted:#98A2B3;--line:#2A2E38;
  --emerald:#12B76A;--on:#04231A;--focus:#12B76A;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
button,input{font:inherit}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.wrap{width:min(100%,760px);margin:0 auto;padding:18px 18px 96px}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:800}
.brand img{width:30px;height:30px}
.topnav a{color:var(--muted);text-decoration:none;font-size:13px;font-weight:650;min-height:44px;display:inline-flex;align-items:center;margin-left:14px}
.crumb{font-size:13px;color:var(--muted);margin:0 0 22px}
.crumb a{color:var(--muted);text-decoration:none}
.crumb b{color:var(--text);font-weight:650}
.identity{display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px 18px;align-items:center}
.mark{
  width:88px;height:88px;border-radius:18px;display:grid;place-items:center;
  background:#0F5132;overflow:hidden;padding:2px;
}
.mark .ar-glyph{
  font-family:'SurahNameV4','Amiri',serif;font-size:42px;line-height:1;color:#fff;text-align:center;
  font-feature-settings:"liga" 1,"calt" 1;
}
.who h1{margin:0;font-size:clamp(26px,5vw,38px);line-height:1.12;letter-spacing:-.03em;font-weight:800;overflow-wrap:anywhere}
.meta{margin:8px 0 0;color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 6px;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:50px;padding:0 18px;border-radius:13px;border:0;
  background:var(--emerald);color:var(--on);font-weight:800;text-decoration:none;cursor:pointer;
}
.text-act{min-height:44px;padding:0 10px;border:0;background:transparent;color:var(--muted);font-weight:700;cursor:pointer}
.play-tri{width:0;height:0;border-left:8px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}
.recite{margin:8px 0 0;max-width:380px;position:relative}
.recite-label{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:750;margin-bottom:6px}
.recite-btn{
  width:100%;min-height:44px;padding:0 14px;border-radius:10px;border:1px solid var(--line);
  background:transparent;color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:10px;
  font-weight:700;cursor:pointer;text-align:left;
}
.recite-btn i{font-style:normal;color:var(--muted)}
.recite-list{
  position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:8;max-height:280px;overflow:auto;
  background:#1A1C22;border:1px solid var(--line);border-radius:12px;padding:6px;
}
.recite-list button{
  display:block;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:8px;
  background:transparent;color:var(--text);text-align:left;font-weight:650;cursor:pointer;
}
.recite-list button[aria-selected="true"]{background:#12b76a22;color:var(--emerald)}
.recite-list small{display:block;color:var(--muted);font-weight:500}
.sec{margin-top:40px}
.sec h2{margin:0;font-size:22px;letter-spacing:-.025em}
.sec p.lead{margin:6px 0 16px;color:var(--muted);font-size:14px}
.ayahs{display:flex;flex-direction:column}
.ayah{
  padding:18px 0;border-bottom:1px solid var(--line);
}
/* Standalone basmala before Ayah 1 (every surah except Al-Fatihah and At-Tawbah). */
.basmala{
  font-family:'Amiri','Scheherazade New','Traditional Arabic',serif;
  font-size:clamp(20px,3.8vw,26px);line-height:2;direction:rtl;text-align:center;
  color:var(--text);opacity:.92;padding:2px 0 10px;
}
.ayah-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.ayah-n{color:var(--muted);font-size:12px;font-weight:750}
.ayah-play{
  width:40px;height:40px;border-radius:50%;border:1px solid var(--line);
  background:transparent;color:var(--text);display:grid;place-items:center;text-decoration:none;flex:none;
}
.ayah-play svg{width:14px;height:14px}
.ayah-ar{
  font-family:'Amiri','Scheherazade New','Traditional Arabic',serif;
  font-size:clamp(22px,4.4vw,30px);line-height:2.15;
  direction:rtl;text-align:right;overflow-wrap:anywhere;max-inline-size:100%;min-width:0;
  display:block;
  word-spacing:3ch;
}
.ayah-ar .v-word{display:inline;padding-inline:0.12em 0.55em;line-height:inherit}
.ayah-ar .v-gap{display:none}
/* 3ch is a mobile read. On a 760px desktop column it turns each word into its own island. */
@media(min-width:600px){
  .ayah-ar{word-spacing:.28em}
  .ayah-ar .v-word{padding-inline:.04em .16em}
}
.ayah-en{margin-top:10px;color:var(--muted);font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.skel{height:18px;border-radius:6px;background:#1f222a;margin:10px 0}
.empty{color:var(--muted);padding:16px 0}
.more,.choose{display:flex;flex-wrap:wrap;gap:8px 14px}
.more a,.choose a{color:var(--muted);text-decoration:none;min-height:40px;display:inline-flex;align-items:center;font-weight:650}
.more a:hover,.choose a:hover{color:var(--text)}
.pn{display:flex;justify-content:space-between;gap:12px;margin-top:36px}
.pn a{color:var(--text);text-decoration:none;font-weight:750;min-height:48px;display:inline-flex;align-items:center}
.pn a:hover{color:var(--emerald)}
.foot{margin-top:48px;padding-top:16px;border-top:1px solid var(--line);color:var(--muted);font-size:13px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
.foot a{color:var(--muted);text-decoration:none;margin-left:12px}
.toast{
  position:fixed;left:50%;bottom:22px;transform:translateX(-50%) translateY(12px);
  background:#fff;color:#111;padding:10px 14px;border-radius:10px;font-size:13px;font-weight:700;
  opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:20;max-width:min(92vw,420px);
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media(max-width:479px){
  .identity{grid-template-columns:1fr;justify-items:center;text-align:center}
  .who,.recite,.actions{width:100%}
  .btn{width:100%}
  .actions{justify-content:center}
  .recite{margin-left:auto;margin-right:auto}
  .topnav a:nth-child(n+3){display:none}
}
@media(prefers-reduced-motion:reduce){.toast{transition:none}}
/* Answer-first FAQ + provenance (Round 3) */
.faq h3{margin:22px 0 6px;font-size:17px;letter-spacing:-.02em}
.faq p{margin:0 0 6px;color:var(--muted);font-size:15px;line-height:1.7;overflow-wrap:anywhere}
.faq h3 + p{color:var(--text)}
.provenance .lead{color:var(--muted);font-size:13.5px;line-height:1.65}
.provenance a{color:var(--emerald);text-decoration:none;font-weight:650}
.provenance a:hover{text-decoration:underline}
.updated{margin-top:10px;color:var(--muted);font-size:12.5px;font-weight:600}
