/* ==========================================================================
   Classic look for the Quran app — "Parchment & Gold" (light) and
   "Night & Gold" (dark, same night-blue as the GodAlone websites).
   Loaded last in /quran/index.html. Undo: remove its <link> line.
   ========================================================================== */

/* ---------- 1. Colours ---------- */
:root{
  --cl-serif-en:"Literata",Georgia,"Times New Roman",serif;
  --cl-serif-ta:"Noto Sans Tamil","Latha",sans-serif;
  --cl-serif-hi:"Noto Sans Devanagari","Mangal",sans-serif;
  --gold:var(--accent);
}
/* Classic (gold) palette: only when chosen in Settings → Palette (default). Other palettes keep their own colours. */
html.p-classic{
  --bg:#f5efe3; --bg-soft:#faf6ec; --card:#fffcf5;
  --ink:#2a2016; --ink-soft:#4a3d2e; --muted:#7a6a55;
  --line:#eadfc8; --line-strong:#d8c59f;
  --accent:#8a6a1f; --accent-deep:#6b5114;
  --gold:#a8822a;
  --shadow:0 1px 2px rgba(60,40,10,.05),0 6px 18px rgba(60,40,10,.05);
  --shadow-lg:0 2px 6px rgba(60,40,10,.06),0 16px 40px rgba(60,40,10,.08);
  --emerald:#8a6a1f; --emerald-soft:#f1e6cc;
  --cl-serif-en:"Literata",Georgia,"Times New Roman",serif;
  --cl-serif-ta:"Noto Sans Tamil","Latha",sans-serif;
  --cl-serif-hi:"Noto Sans Devanagari","Mangal",sans-serif;
}
html.p-classic.dark{
  --bg:#0a1024; --bg-soft:#0d1530; --card:#111a36;
  --ink:#ece6d6; --ink-soft:#d4ccb8; --muted:#9aa2ba;
  --line:#1e2848; --line-strong:#2f3b66;
  --accent:#d6b25e; --accent-deep:#b8923f;
  --gold:#d6b25e; --emerald:#d6b25e; --emerald-soft:#2a2414;
  --shadow:0 1px 2px rgba(0,0,0,.25),0 8px 22px rgba(0,0,0,.25);
  --shadow-lg:0 2px 6px rgba(0,0,0,.3),0 18px 44px rgba(0,0,0,.35);
}
/* Chapter colours: one calm gold family for every sura */
html.p-classic body [data-n]{--sh:40 !important}

/* Buttons that used the old blue accent now read as ink-on-gold */
html:not(.dark) button[style*="var(--accent)"],
html:not(.dark) a[style*="var(--accent)"]{color:#fffaf0}
html.dark button[style*="background: var(--accent)"],
html.dark button[style*="background:var(--accent)"]{color:#1b1407 !important}

/* ---------- 2. Home: calm, classic hero ---------- */
html body main > section.ws-card.paper-dots{padding-bottom:30px !important}
main > section.paper-dots{
  background:var(--card) !important;
  background-image:none !important;
  border:1px solid var(--line-strong) !important;
  padding-top:34px !important; padding-bottom:30px !important;
}
main > section.paper-dots::after{display:none !important}
main > section.paper-dots .hero-title{
  background:none !important; -webkit-background-clip:initial !important; background-clip:initial !important;
  -webkit-text-fill-color:currentColor !important; color:var(--ink) !important;
}
main > section.paper-dots div.hero-title{color:var(--gold) !important}
main > section.paper-dots .ga-greet{background:transparent !important;border-color:var(--line-strong) !important;color:var(--muted) !important}
main > section.paper-dots > div.max-w-xs{display:none !important}            /* the "or" divider */
main > section.paper-dots > button{margin-top:14px !important}
main > section.paper-dots > p{margin-bottom:18px !important}

/* Verse of the day: parchment card with a thin gold frame */
section.ga-votd, section.ga-votd > *{background-image:none !important}
section.ga-votd{
  background:var(--card) !important; border:1px solid var(--line-strong) !important;
  box-shadow:inset 0 0 0 5px var(--card), inset 0 0 0 6px color-mix(in srgb,var(--gold) 35%,transparent) !important;
}
section.ga-votd .font-arabic{color:var(--ink) !important}
section.ga-votd [class*="pill"], section.ga-votd span[style*="background"]{background:color-mix(in srgb,var(--gold) 14%,transparent) !important;color:var(--accent-deep) !important}
html.dark section.ga-votd [class*="pill"], html.dark section.ga-votd span[style*="background"]{color:var(--gold) !important}

/* Khatm journey: the 114-box grid folds into a thin gold bar (classic.js adds the toggle) */
#kh-card:not(.cl-open) #kh-grid, #kh-card:not(.cl-open) .kh-s{display:none !important}
#kh-card .kh-top{cursor:pointer}
#kh-card[data-cl-view]::after{
  content:attr(data-cl-view) "  ›"; display:block; margin-top:8px; cursor:pointer;
  font:600 13px/1.3 Inter,system-ui,sans-serif; color:var(--accent);
}
#kh-card.cl-open[data-cl-hide]::after{content:attr(data-cl-hide) "  ‹"}
html.dark #kh-card[data-cl-view]::after{color:var(--gold)}

/* Chapter cards: reading-time line (set by classic.js as data-cl-min) */
[data-cl-min]::after{
  content:attr(data-cl-min); display:block; margin-top:2px;
  font-size:11.5px; letter-spacing:.02em; color:var(--muted);
}

/* ---------- 3. Reading: calm and book-like ---------- */
p.verse-en{font-family:var(--cl-serif-en) !important; line-height:1.78 !important; letter-spacing:.003em}
p.verse-en.text-lg{font-size:19px !important}
p.font-tamil{font-family:var(--cl-serif-ta) !important; line-height:1.9 !important}
p.font-hindi{font-family:var(--cl-serif-hi) !important; line-height:1.9 !important}
p.verse-en, p.font-tamil, p.font-hindi{max-width:76ch; color:var(--ink-soft) !important}

/* Verse cards: quieter frame */
.ws-card[id^="v-"]{border-color:var(--line) !important; box-shadow:none !important}
.ws-card[id^="v-"] .vnum{
  background:transparent !important; border:1px solid color-mix(in srgb,var(--gold) 55%,transparent) !important;
  color:var(--accent) !important; border-radius:999px !important; font-variant-numeric:tabular-nums;
}
html.dark .ws-card[id^="v-"] .vnum{color:var(--gold) !important}

/* The verse tools are always shown (owner, 25-11-2026); the "⋯" fold was removed. */
.ws-card[id^="v-"] > div:first-child > div:last-child{position:relative; min-width:40px; min-height:36px; justify-content:flex-end}@media (hover:hover) and (pointer:fine){
  .ws-card[id^="v-"]:hover > div:first-child > div:last-child > *{display:inline-flex !important}
  .ws-card[id^="v-"]:hover > div:first-child > div:last-child::after{display:none}
}

/* Reading view: one flowing page, verse numbers as small gold medallions */
main .ws-card.space-y-8{border-color:transparent !important; box-shadow:none !important; background:var(--card) !important}
.vnum-inline{
  display:inline-flex !important; align-items:center; justify-content:center;
  min-width:1.55em; height:1.55em; padding:0 .25em; margin:0 .18em;
  border-radius:999px; border:1px solid color-mix(in srgb,var(--gold) 70%,transparent);
  box-shadow:0 0 0 2px var(--card), 0 0 0 3px color-mix(in srgb,var(--gold) 35%,transparent);
  color:var(--accent) !important; background:transparent !important;
  font:600 .42em/1 Inter,system-ui,sans-serif !important; vertical-align:middle;
}
html.dark .vnum-inline{color:var(--gold) !important}

/* ---------- 4. Softer night reading ---------- */
html.dark .font-arabic{color:#efe7d2}
html.dark p.verse-en, html.dark p.font-tamil, html.dark p.font-hindi{color:#d9d1bd !important}

/* ---------- 5. Today's lesson (classic.js) ---------- */
#cl-lesson{
  margin-top:20px; padding:18px 20px; border-radius:18px;
  background:var(--card); border:1px solid var(--line-strong); box-shadow:var(--shadow);
}
#cl-lesson .cl-l-head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px}
#cl-lesson .cl-l-eyebrow{font:600 11.5px/1.2 Inter,system-ui,sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--accent)}
html.dark #cl-lesson .cl-l-eyebrow{color:var(--gold)}
#cl-lesson .cl-l-sub{font-size:13px; color:var(--muted); margin-top:3px}
#cl-lesson .cl-l-ring{
  --p:0%; width:44px; height:44px; border-radius:50%; flex:0 0 44px;
  background:conic-gradient(var(--gold) var(--p), var(--line) 0);
  display:grid; place-items:center;
}
#cl-lesson .cl-l-ring span{width:34px; height:34px; border-radius:50%; background:var(--card); display:grid; place-items:center; font:600 12px/1 Inter,system-ui,sans-serif; color:var(--ink)}
#cl-lesson .cl-l-steps{list-style:none; margin:0; padding:0; display:grid; gap:8px}
@media (min-width:760px){ #cl-lesson .cl-l-steps{grid-template-columns:repeat(3,minmax(0,1fr))} }
#cl-lesson .cl-l-btn{
  width:100%; display:flex; align-items:flex-start; gap:10px; text-align:left; cursor:pointer;
  padding:11px 12px; border-radius:12px; border:1px solid var(--line); background:var(--bg-soft); color:var(--ink);
  font:inherit; min-height:48px;
}
#cl-lesson .cl-l-btn:hover{border-color:var(--line-strong)}
#cl-lesson .cl-l-dot{flex:0 0 18px; height:18px; margin-top:2px; border-radius:50%; border:1.5px solid var(--line-strong); position:relative}
#cl-lesson li.on .cl-l-dot{background:var(--gold); border-color:var(--gold)}
#cl-lesson li.on .cl-l-dot::after{content:""; position:absolute; left:5px; top:2px; width:5px; height:9px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg)}
#cl-lesson .cl-l-txt{display:flex; flex-direction:column; gap:2px; min-width:0}
#cl-lesson .cl-l-txt b{font-weight:600; font-size:14.5px}
#cl-lesson .cl-l-txt small{font-size:12.5px; color:var(--muted); line-height:1.35}
#cl-lesson .cl-l-done{margin:12px 0 0; text-align:center; font-size:14px; color:var(--accent)}
html.dark #cl-lesson .cl-l-done{color:var(--gold)}

/* ---------- 6. Tamil & Hindi: no letter-spacing (it breaks the letters apart) ---------- */
html[data-cl-lang="ta"] body *, html[data-cl-lang="hi"] body *{letter-spacing:normal !important}
html[data-cl-lang="ta"] .eyebrow, html[data-cl-lang="hi"] .eyebrow, html[data-cl-lang="ta"] #cl-lesson .cl-l-eyebrow, html[data-cl-lang="hi"] #cl-lesson .cl-l-eyebrow{text-transform:none}

/* ---------- 7. Removed from Home at the owner's request (25 Nov): My reflections card, Today's lesson ---------- */
#nt-card, #cl-lesson{display:none !important}

/* Owner 25-11-2026: no "min read" on chapter cards */
[data-cl-min]::after{content:none !important;display:none !important}
