:root{--navy:#0E2748;--brass:#C9A24A;--cream:#FBF7EE;--ink:#1A1A1A;--muted:#5A5A5A;--border:rgba(14,39,72,.12);--white:#fff}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,sans-serif;background:var(--cream);color:var(--ink);line-height:1.5}
.dhead{display:flex;justify-content:space-between;align-items:center;padding:14px 24px;background:var(--navy);color:var(--cream);position:sticky;top:0;z-index:10}
.dhead__back{color:var(--cream);text-decoration:none;font-family:'EB Garamond',serif;font-size:1.05rem}
.dhead__back em{color:var(--brass);font-style:italic}
.dhead__badge{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;background:var(--brass);color:var(--navy);padding:3px 10px;border-radius:999px;font-weight:600}
.dwrap{max-width:1180px;margin:0 auto;padding:32px 24px 96px}
.dpage-title{font-family:'EB Garamond',serif;color:var(--navy);text-align:center;font-weight:500;font-size:clamp(2rem,5vw,3rem);margin:4px 0 6px}
.dintro{color:var(--muted);font-size:1.0625rem;max-width:60ch;margin:0 auto;text-align:center}
.dintro em{font-style:italic;color:var(--navy)}
.dtabs{display:flex;gap:8px;margin:24px 0 8px;flex-wrap:wrap}
.dtab{padding:8px 16px;border:1px solid var(--border);border-radius:999px;background:var(--white);cursor:pointer;font:inherit;color:var(--ink)}
.dtab--active{background:var(--navy);color:var(--cream);border-color:var(--navy)}
.dbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:8px 0 12px}
.dtitle{font-family:'EB Garamond',serif;color:var(--navy);margin:.2em 0}
.dtitle small{color:var(--muted);font-size:1rem;font-style:italic}
.btn{font:inherit;font-weight:600;border:0;border-radius:6px;padding:10px 18px;cursor:pointer}
.btn--primary{background:var(--brass);color:var(--navy)}
.btn--primary:hover{filter:brightness(1.05)}

/* compact sticky player */
.player{display:flex;align-items:center;gap:12px;position:sticky;top:57px;z-index:9;
  background:var(--cream);padding:10px 12px;margin:0 -12px 24px;border-bottom:1px solid var(--border)}
.player__btn{flex:none;width:40px;height:40px;border-radius:999px;border:0;cursor:pointer;
  background:var(--brass);color:var(--navy);font-size:1rem;font-weight:700}
.player__btn:hover{filter:brightness(1.05)}
.player__bar{flex:1;height:7px;border-radius:999px;background:rgba(14,39,72,.14);cursor:pointer;position:relative}
.player__fill{height:100%;width:0;border-radius:999px;background:var(--brass)}
.player__time{flex:none;font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums;min-width:88px;text-align:right}
.player__speed,.player__gear{flex:none;height:34px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--border);background:var(--white);color:var(--ink);border-radius:6px;padding:0 10px;
  font:inherit;font-weight:600;cursor:pointer}
.player__speed{font-size:.8rem;min-width:44px}
.player__gear{font-size:1rem}
.player__speed:hover,.player__gear:hover{border-color:var(--brass)}
.player__gear.is-open{background:var(--brass);border-color:var(--brass);color:var(--navy)}
.settings[hidden]{display:none}
.settings{position:absolute;top:calc(100% + 8px);right:12px;z-index:20;width:270px;background:var(--white);
  border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px rgba(14,39,72,.18);padding:14px;
  display:flex;flex-direction:column;gap:10px}
.settings__row{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:var(--muted)}
.settings select{padding:6px 8px;border:1px solid var(--border);border-radius:6px;font:inherit;color:var(--ink)}
.settings__types{border:1px solid var(--border);border-radius:6px;padding:8px 10px;margin:0;font-size:.85rem;color:var(--ink)}
.settings__types legend{color:var(--muted);font-size:.78rem;padding:0 4px}
.settings__types label{display:block;margin:3px 0}
.verse__ar,.verse__en{cursor:pointer}

/* spread: stacked by default (mobile), page-facing on wide screens */
.spread{display:grid;gap:28px}
@media(min-width:1000px){
  .spread{grid-template-columns:1.05fr 1fr;gap:44px;align-items:start}
  .notes{position:sticky;top:80px}
}

.verses{list-style:none;padding:0;margin:0}
.verse{padding:14px 16px;border-radius:8px;border:1px solid transparent;cursor:pointer;transition:background .2s,border-color .2s,box-shadow .2s}
.verse:hover{background:rgba(255,255,255,.55)}
.verse__ar{font-family:'Scheherazade New',serif;font-size:1.95rem;line-height:2.5;direction:rtl;text-align:right;color:var(--navy)}
.verse__en{font-family:'EB Garamond',serif;font-size:1.12rem;color:var(--ink);margin-top:4px}
.verse__ref{font-size:.78rem;color:var(--muted);margin-top:6px}
.verse.is-active{background:var(--white);border-color:var(--brass);box-shadow:0 2px 10px rgba(14,39,72,.1)}
.verse.is-speaking-en .verse__en{color:var(--navy);font-weight:500}

/* commentary notes panel */
.notes{display:flex;flex-direction:column;gap:14px}
.notes.is-hidden{display:none}
.verses .note{margin:6px 0 4px}
.notes__head{font-family:'EB Garamond',serif;color:var(--navy);font-size:1.25rem;margin:0 0 2px;font-weight:500}
.note{background:var(--white);border:1px solid var(--border);border-radius:8px;padding:16px 18px}
.note h3{font-family:'EB Garamond',serif;color:var(--navy);margin:0 0 6px;font-size:1.12rem;font-weight:500}
.note__ref{color:var(--muted);font-size:.8rem;font-weight:400;font-style:italic;margin-left:6px}
.note p{font-family:'EB Garamond',serif;color:var(--ink);font-size:1.02rem;margin:0}
.note__sources{margin-top:8px;font-size:.78rem;color:var(--muted);font-style:italic}
.note__play{margin-top:10px;background:transparent;border:1.5px solid var(--brass);color:var(--navy);border-radius:6px;padding:5px 12px;font:inherit;font-size:.85rem;font-weight:600;cursor:pointer}
.note__play:hover{background:var(--brass)}
.note{transition:background .2s,border-color .2s,box-shadow .2s}
.note:hover{background:#fffdf8;border-color:rgba(201,162,74,.55);cursor:default}
.note.is-active{border-color:var(--brass);box-shadow:0 2px 12px rgba(14,39,72,.12);background:#fffdf6}
.verse.is-linked{background:rgba(201,162,74,.10);border-color:rgba(201,162,74,.45)}

.subscribe{margin-top:44px;border-top:1px solid var(--border);padding-top:28px;text-align:center}
.subscribe h2{font-family:'EB Garamond',serif;color:var(--navy);font-weight:500}
.subscribe__lead{color:var(--muted);margin-top:-6px}
.subscribe form{display:flex;gap:8px;max-width:460px;margin:14px auto 0}
.subscribe input{flex:1;padding:11px 12px;border:1px solid var(--border);border-radius:6px;font:inherit}
.subscribe__msg{color:var(--muted);font-size:.9rem;min-height:1.2em;margin-top:8px}
@media(max-width:560px){.verse__ar{font-size:1.6rem;line-height:2.3}.subscribe form{flex-direction:column}}
