/* arafahday.com
   The plain of Arafat in the late afternoon: ihram white, granite, Hijaz haze, the sinking sun, dusk indigo.
   One family for reading (Literata), Amiri for Arabic. */

@font-face { font-family: "Literata"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/literata-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/literata-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/literata-latin-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/literata-latin-ext-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/amiri-arabic-400.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/amiri-arabic-700.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --ink: #2a2724;
  --ink-2: #5f5850;
  --rule: #ddd6ca;
  --accent: #23376b;
  --accent-ink: #ffffff;
  --accent-soft: #e6ebf5;
  --sun: #e5a42b;
  --sun-soft: #fbefd6;
  --haze: #e3ebee;
  --sand: #efe6d6;
  --focus: #b3730a;

  --sky-top: #cfdde3; --sky-mid: #ece0cc; --sky-low: #f1cd96;
  --glow: #ffd88a; --sun-disc: #f2b33d;
  --ridge-far: #cdb9a0; --ridge-near: #b8a286;
  --mount: #6f6257; --mount-shade: #5d5249; --pillar: #fbfaf7;
  --plain: #e9dcc5; --tent: #fffdf8; --tree: #6b7f58;

  --g-sahih: #2f6b4f; --g-sahih-bg: #e3f0e8;
  --g-hasan: #2e5e8c; --g-hasan-bg: #e2ecf6;
  --g-daif: #8a5600; --g-daif-bg: #fbeed3;
  --g-mawdu: #a3392a; --g-mawdu-bg: #f9e3df;
  --g-quran: #6b4f0d; --g-quran-bg: #f6ecd2;
  --g-athar: #5f5850; --g-athar-bg: #ece8e1;

  --measure: 40rem;
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --arabic: "Amiri", "Geeza Pro", "Traditional Arabic", "Noto Naskh Arabic", serif;
  --radius-s: 6px;
  --radius-m: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a2c;
    --surface: #18223a;
    --ink: #ece7de;
    --ink-2: #b9b1a5;
    --rule: #2e3956;
    --accent: #aec4f4;
    --accent-ink: #121a2c;
    --accent-soft: #1f2c4b;
    --sun: #f2b94b;
    --sun-soft: #2e2a2a;
    --haze: #1a2440;
    --sand: #1d2537;
    --focus: #f2b94b;

    --sky-top: #0f1830; --sky-mid: #2c2d4a; --sky-low: #7a4a48;
    --glow: #f7a64a; --sun-disc: #f39a3c;
    --ridge-far: #2a2f4a; --ridge-near: #222741;
    --mount: #121625; --mount-shade: #0c0f1b; --pillar: #d8d2c6;
    --plain: #1a2033; --tent: #c9c3b8; --tree: #1f2b2a;

    --g-sahih: #8fd1ae; --g-sahih-bg: #1b3328;
    --g-hasan: #9cc3ef; --g-hasan-bg: #1b2a40;
    --g-daif: #f2c56b; --g-daif-bg: #3a2c12;
    --g-mawdu: #f3a194; --g-mawdu-bg: #3d1f1b;
    --g-quran: #ead08a; --g-quran-bg: #352b14;
    --g-athar: #c9c1b4; --g-athar-bg: #262d40;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 20; border-radius: var(--radius-s); }
.skip:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 620; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.5rem); margin: 0 0 .4em; font-variation-settings: "opsz" 72; }
h2 { font-size: clamp(1.45rem, 1.25rem + 1vw, 1.85rem); margin: 2.8em 0 .6em; font-variation-settings: "opsz" 48; }
h3 { font-size: 1.2rem; margin: 2em 0 .5em; }
p, ul, ol, dl { margin: 0 0 1.1em; }
li { margin-bottom: .45em; }
.small, .text-note, .updated { font-size: .95rem; color: var(--ink-2); }

/* Arabic */
.ar, [lang="ar"] { font-family: var(--arabic); }
.ar { font-size: 1.8rem; line-height: 2.15; text-align: right; margin: 0 0 .6rem; color: var(--ink); }
.tr { color: var(--ink-2); margin: 0 0 .5rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.bar { max-width: 72rem; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-name { font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-ar { font-size: 1.25rem; color: var(--ink-2); line-height: 1; }
.mark { width: 30px; height: 30px; flex: none; }
.mark-sun { fill: var(--sun); }
.mark-hill { fill: var(--mount); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1.2rem; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 1rem; padding: .35rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--sun); }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .js .menu-btn { display: inline-flex; font: inherit; font-size: 1rem; background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 999px; padding: .3rem .9rem; cursor: pointer; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .3rem 0 .6rem; }
  .site-nav a { padding: .55rem 0; width: 100%; }
  .brand-ar { display: none; }
}

/* ---------- icons ---------- */
.ico { width: 28px; height: 28px; flex: none; }
.ico-s { width: 1.05em; height: 1.05em; vertical-align: -.15em; }

/* ---------- home: photo hero ---------- */
.hero { position: relative; min-height: min(72vh, 600px); display: flex; align-items: flex-end; overflow: hidden; background: #1b2540; color: #fff; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 20, 38, .92) 0%, rgba(13, 20, 38, .55) 45%, rgba(13, 20, 38, .1) 80%); }
.hero-text { text-shadow: 0 2px 12px rgba(0, 0, 0, .45); position: relative; z-index: 1; max-width: 72rem; width: 100%; margin: 0 auto; padding: 3rem 1rem 4.5rem; }
.hero-ar { font-size: clamp(3.2rem, 2rem + 6vw, 6.5rem); line-height: 1.4; margin: 0; text-align: left; font-weight: 700; color: #fff; }
.hero h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); margin: 0 0 .5rem; font-weight: 560; color: #fff; }
.hero-date { font-size: 1.1rem; margin: 0 0 1rem; color: #f1ece3; }
.hero-date strong { color: #fff; }
.hero-count { text-shadow: none; display: inline-flex; align-items: baseline; gap: .6rem; margin: 0; padding: .55rem 1.1rem; border-radius: 999px; background: rgba(242, 179, 61, .95); color: #2a2724; }
.hero-num { font-size: 1.7rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-unit { font-weight: 600; }
.photo-credit { position: absolute; right: .8rem; bottom: .5rem; z-index: 1; margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .75); }
.photo-credit a { color: inherit; }

.home-body { max-width: 72rem; margin: 0 auto; padding: 0 1rem 2rem; }
.block { margin: 3rem 0; }
.block > h2 { margin: 0 0 1rem; }
.more { margin: 1rem 0 0; font-weight: 600; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* the two paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: -2.4rem 0 1.5rem; position: relative; z-index: 2; }
.path { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; padding: 1.2rem 1.4rem; border-radius: var(--radius-m); text-decoration: none; box-shadow: 0 6px 20px rgba(13, 20, 38, .14); }
.path-ico { grid-row: 1 / 3; width: 42px; height: 42px; }
.path-where { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); font-weight: 650; line-height: 1.2; }
.path-what { font-size: .98rem; opacity: .92; }
.path-hajj { background: #23376b; color: #fff; }
.path-home { background: #2f6b4f; color: #fff; }
.path:hover .path-where { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 700px) { .paths { grid-template-columns: 1fr; gap: .7rem; margin-top: -1.6rem; } }

/* right now */
.now { padding: 1.4rem 1.5rem; border-radius: var(--radius-m); background: var(--sun-soft); border: 2px solid var(--sun); }
.now-when { display: flex; align-items: center; gap: .45rem; margin: 0 0 .2rem; font-weight: 600; color: var(--g-daif); font-size: .98rem; }
.now-ico { width: 22px; height: 22px; }
.now-title { margin: 0 0 .7rem; font-size: clamp(1.35rem, 1.15rem + .9vw, 1.8rem); }
.now-list { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.now-list li { margin: 0; padding-left: 1.6rem; position: relative; }
.now-list li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--sun); }
.now-link { font-weight: 650; text-decoration: none; }
.now-link:hover { text-decoration: underline; }
.now-note { font-size: .88rem; color: var(--ink-2); margin: .6rem 0 0; }

/* tool tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.1rem 1rem; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.tile .ico { color: var(--accent); margin-bottom: .35rem; }
.tile-t { font-weight: 650; font-size: 1.08rem; color: var(--accent); }
.tile-s { font-size: .92rem; color: var(--ink-2); line-height: 1.4; }
.tile:hover { border-color: var(--accent); }

/* day strip: a real sequence */
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; counter-reset: none; }
.strip li { margin: 0; padding: .9rem .8rem; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--rule); display: flex; flex-direction: column; gap: .2rem; }
.strip li.key { background: var(--sun-soft); border-color: var(--sun); border-top-color: var(--sun); }
.strip-t { font-weight: 650; }
.strip-s { font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .strip { grid-template-columns: 1fr; } }

/* why cards */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; }
.why-card { padding: 1.1rem 1.2rem; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--rule); }
.why-card .ico { color: var(--g-sahih); }
.why-t { font-weight: 650; margin: .5rem 0 .2rem; }
.why-s { margin: 0 0 .5rem; font-size: .98rem; line-height: 1.5; }
.why-r { margin: 0; font-size: .85rem; }
.why-r a { color: var(--ink-2); }

.dhikr-block { padding: 1.5rem; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--rule); }
.dhikr-block .ar { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); font-weight: 700; }

/* guides */
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.guide { display: flex; flex-direction: column; border-radius: var(--radius-m); overflow: hidden; background: var(--surface); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.guide picture, .guide img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
.guide-t { font-weight: 650; font-size: 1.12rem; color: var(--accent); padding: .8rem 1rem 0; }
.guide-s { font-size: .94rem; color: var(--ink-2); padding: .1rem 1rem 1rem; }
.guide:hover .guide-t { text-decoration: underline; }
.guide-links { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .3rem 1rem; }
.guide-links li { margin: 0; }
.guide-links a { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.guide-links a:hover { text-decoration: underline; }

/* In short */
.inshort { margin: 0 0 2rem; padding: 1.2rem 1.3rem; border-radius: var(--radius-m); background: var(--g-sahih-bg); }
.inshort-t { margin: 0 0 .6rem; font-weight: 700; color: var(--g-sahih); }
.inshort ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.inshort li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; line-height: 1.45; }
.ico-check { width: 1.3rem; height: 1.3rem; flex: none; color: var(--g-sahih); margin-top: .1rem; }

/* ---------- inner pages ---------- */
.page-head { background: var(--haze); border-bottom: 1px solid var(--rule); }
.page-head-inner { max-width: 72rem; margin: 0 auto; padding: 1.6rem 1rem 2rem; display: grid; gap: 2rem; align-items: center; }
.page-head.has-photo .page-head-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.page-head-text h1, .page-head-text .lede { max-width: 44rem; }
.page-ar { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem); line-height: 1.9; margin: 0 0 .3rem; text-align: left; color: var(--ink-2); }
.lede { font-size: 1.18rem; line-height: 1.6; color: var(--ink); margin: 0; }
.page-photo { margin: 0; }
.page-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }
.page-photo figcaption { font-size: .75rem; color: var(--ink-2); margin-top: .35rem; }
.page-photo figcaption a { color: inherit; }
@media (max-width: 860px) { .page-head.has-photo .page-head-inner { grid-template-columns: 1fr; gap: 1.2rem; } .page-photo img { aspect-ratio: 16 / 9; } }
.crumbs ol { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; gap: .5rem; font-size: .95rem; color: var(--ink-2); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--rule); }

.article-grid { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 3rem; display: grid; grid-template-columns: 15rem minmax(0, var(--measure)); gap: 3.5rem; }
.article-grid.no-toc { grid-template-columns: minmax(0, var(--measure)); }
.article-grid > .prose > h2:first-child, .article-grid > .prose > .note:first-child + h2 { margin-top: .4em; }
.toc { position: sticky; top: 5.5rem; align-self: start; font-size: .95rem; max-height: calc(100vh - 7rem); overflow: auto; }
.toc-title { font-weight: 620; margin-bottom: .5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc li { margin: 0; }
.toc a { display: block; padding: .3rem 0 .3rem .9rem; color: var(--ink-2); text-decoration: none; line-height: 1.35; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.active { color: var(--ink); border-left-color: var(--sun); }
@media (max-width: 1000px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: calc(var(--measure) + 2rem); }
  .toc { position: static; max-height: none; border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 1rem 1.2rem; background: var(--surface); }
}

/* ---------- quoted texts: hadith and verses ---------- */
.text { margin: 1.6rem 0; padding: 1.2rem 1.3rem 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-s); }
.text blockquote { margin: 0; }
.text blockquote p { margin: 0 0 .6rem; }
.text blockquote p:last-child { margin-bottom: 0; }
.text .who { color: var(--ink-2); }
.text figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--rule); font-size: .92rem; color: var(--ink-2); }
.text .src a { color: var(--ink-2); }
.text-note { margin: .7rem 0 0; }
.ayah { border-top: 3px solid var(--sun); }
.ayah .ar { font-size: 2rem; }
.dhikr-feature { background: var(--sun-soft); border-color: transparent; }
.dhikr-feature .ar { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.3rem); font-weight: 700; }

.grade { display: inline-block; font-size: .8rem; font-weight: 650; line-height: 1; padding: .32rem .6rem; border-radius: 999px; letter-spacing: .01em; }
.grade-sahih { color: var(--g-sahih); background: var(--g-sahih-bg); }
.grade-hasan { color: var(--g-hasan); background: var(--g-hasan-bg); }
.grade-daif { color: var(--g-daif); background: var(--g-daif-bg); }
.grade-mawdu { color: var(--g-mawdu); background: var(--g-mawdu-bg); }
.grade-quran { color: var(--g-quran); background: var(--g-quran-bg); }
.grade-athar { color: var(--g-athar); background: var(--g-athar-bg); }
.grade-by { font-size: .85rem; }
.grade-by::before { content: "graded by "; }

/* notes */
.note { margin: 1.6rem 0; padding: 1rem 1.2rem; border-radius: var(--radius-s); background: var(--accent-soft); border-left: 4px solid var(--accent); }
.note p:last-child { margin-bottom: 0; }
.note-warn { background: var(--g-daif-bg); border-left-color: var(--g-daif); }
.note-danger { background: var(--g-mawdu-bg); border-left-color: var(--g-mawdu); }

/* definition grids and views */
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.facts-grid div { padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius-s); background: var(--surface); }
.facts-grid dt { font-weight: 650; margin-bottom: .25rem; }
.facts-grid dd { margin: 0; font-size: 1rem; color: var(--ink-2); }
.views { margin: 1.5rem 0; }
.views div { padding: .2rem 0 .2rem 1.1rem; border-left: 3px solid var(--rule); margin-bottom: 1.2rem; }
.views dt { font-weight: 650; }
.views dd { margin: .2rem 0 0; }

/* numbered steps: only for real sequences */
.steps { padding-left: 0; list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: .95rem; display: grid; place-items: center; }
.step-time { display: block; font-size: .9rem; color: var(--ink-2); }

.link-list { padding-left: 1.2rem; }
.checklist-plain { padding-left: 1.2rem; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
caption { text-align: left; color: var(--ink-2); font-size: .95rem; margin-bottom: .5rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-weight: 650; border-bottom-width: 2px; }
tbody tr:first-child { background: var(--sun-soft); }

/* countdown */
.countdown-card { margin: 0 0 2rem; padding: 1.5rem; border-radius: var(--radius-m); background: var(--sun-soft); text-align: left; }
.countdown-num { font-size: clamp(3.5rem, 2.5rem + 5vw, 6rem); font-weight: 650; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 72; }
.countdown-label { margin: .3rem 0 0; font-size: 1.15rem; }
.countdown-date { margin: .3rem 0 0; color: var(--ink-2); font-size: 1rem; }

/* du'a cards */
.dua { margin: 1.4rem 0; padding: 1.2rem 1.3rem 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-s); }
.dua h3 { margin: 0 0 .7rem; font-size: 1.1rem; }
.dua .en { margin: 0 0 .5rem; }
.dua footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--rule); font-size: .92rem; color: var(--ink-2); }
.dua-src { display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; }
.dua-src a { color: var(--ink-2); }
.dua-actions { display: flex; gap: .4rem; }
.dua.saved { border-color: var(--sun); box-shadow: inset 4px 0 0 var(--sun); }

/* buttons */
.btn, .btn-quiet { font: inherit; cursor: pointer; border-radius: 999px; line-height: 1.2; }
.btn { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: .6rem 1.2rem; font-weight: 600; font-size: 1rem; }
.btn:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--accent); border: 1px solid var(--rule); padding: .4rem .85rem; font-size: .92rem; }
.btn-quiet:hover { border-color: var(--accent); }
.btn-quiet[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }

/* dhikr counter */
.counter { margin: 1.5rem 0; padding: 1.4rem; border-radius: var(--radius-m); background: var(--sun-soft); }
.counter .ar { font-size: 1.6rem; }
.counter-hint { font-size: .95rem; color: var(--ink-2); }
.counter-tap { display: grid; place-items: center; gap: .1rem; width: min(100%, 15rem); aspect-ratio: 1; margin: 1rem auto; border-radius: 50%; border: none; background: var(--sun); color: #2a2724; font: inherit; cursor: pointer; box-shadow: 0 0 0 10px color-mix(in srgb, var(--sun) 22%, transparent); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.counter-tap:active { transform: scale(.98); }
.counter-num { font-size: 3.6rem; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.counter-label { font-size: .95rem; }
.counter-total { text-align: center; margin: 0 0 .8rem; }
.counter-actions { display: flex; justify-content: center; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .95rem; }
.counter-actions select { font: inherit; font-size: .95rem; padding: .25rem .4rem; border-radius: var(--radius-s); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.counter.done .counter-tap { background: var(--g-sahih); color: #fff; }

/* du'a list */
.notebook { margin: 1.5rem 0; padding: 1.3rem; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); }
.notebook label { display: block; font-weight: 600; margin-bottom: .3rem; }
.notebook-row { display: flex; gap: .5rem; }
.notebook input[type="text"] { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: .55rem .8rem; border: 1px solid var(--rule); border-radius: var(--radius-s); background: var(--bg); color: var(--ink); }
.notebook-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.notebook-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.notebook-list label { font-weight: 400; margin: 0; flex: 1; display: flex; gap: .6rem; align-items: center; cursor: pointer; }
.notebook-list input:checked + span { text-decoration: line-through; color: var(--ink-2); }
.notebook-list button { background: none; border: none; color: var(--ink-2); cursor: pointer; font: inherit; font-size: .9rem; padding: .25rem .4rem; }
.notebook-empty { color: var(--ink-2); font-size: .95rem; margin: 1rem 0 0; }
.notebook-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.saved h3 { margin-top: 1.5rem; }
.saved ul { padding-left: 1.2rem; }

/* checklist */
.checklist { margin: 1.5rem 0; padding: 1.3rem; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); }
.checklist fieldset { border: none; padding: 0; margin: 0 0 1.2rem; }
.checklist legend { font-weight: 650; margin-bottom: .4rem; padding: 0; }
.checklist label { display: flex; gap: .7rem; align-items: flex-start; padding: .35rem 0; cursor: pointer; line-height: 1.45; }
.checklist input[type="checkbox"], .notebook-list input[type="checkbox"] { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--g-sahih); flex: none; }
.checklist label:has(input:checked) { color: var(--ink-2); }
.checklist-progress { font-weight: 600; }

/* claims (weak narrations) */
.claim { margin: 1.4rem 0; padding: 1.2rem 1.3rem; border: 1px solid var(--rule); border-radius: var(--radius-s); background: var(--surface); }
.claim h3 { margin: 0 0 .5rem; font-size: 1.12rem; }
.claim-grade { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; font-size: .92rem; color: var(--ink-2); }
.claim-instead { margin: 0; padding-top: .7rem; border-top: 1px solid var(--rule); }

/* FAQ */
.faq h2 { margin-top: 2.5em; }
details { border-bottom: 1px solid var(--rule); padding: .2rem 0; }
summary { cursor: pointer; font-weight: 620; padding: .7rem 0; list-style-position: outside; }
details p { margin: 0 0 .9rem; }
.faq-list details:first-child { border-top: 1px solid var(--rule); }

/* read next */
.related { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 3rem; border-top: 1px solid var(--rule); }
.related h2 { margin: 0 0 1rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.related li { margin: 0; }
.related a { display: block; height: 100%; padding: 1rem 1.1rem; border-radius: var(--radius-s); background: var(--haze); text-decoration: none; color: var(--ink); }
.related-title { display: block; font-weight: 650; color: var(--accent); margin-bottom: .3rem; }
.related-desc { display: block; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- footer ---------- */
.site-footer { background: #1b2540; color: #e6e1d7; margin-top: 2rem; }
.site-footer a { color: #e6e1d7; text-decoration-color: rgba(230, 225, 215, .35); }
.site-footer a:hover { text-decoration-color: currentColor; }
.footer-inner { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1rem 1.5rem; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; font-size: .95rem; }
.footer-about p { color: #c7c0b4; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 650; color: #e6e1d7 !important; font-size: 1.05rem; }
.site-footer .mark-hill { fill: #8f8172; }
.footer-title { font-weight: 650; margin-bottom: .5rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-base { max-width: 72rem; margin: 0 auto; padding: 1rem 1rem 2rem; font-size: .88rem; border-top: 1px solid rgba(230, 225, 215, .14); color: #aaa397; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- print: the du'a list ---------- */
@media print {
  .site-header, .site-footer, .toc, .related, .menu-btn, .dua-actions, .counter, .notebook-form, .notebook-actions, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-head-text { padding-bottom: 1rem; }
  .article-grid { display: block; padding: 0; }
  body.print-list main > *:not(.article-grid), body.print-list .prose > *:not(.notebook) { display: none !important; }
  body.print-list .notebook { border: none; padding: 0; }
  a { color: #000; text-decoration: none; }
}

/* dedication */
.dedication { margin: 3rem 0 1rem; padding: 1.6rem 1.6rem 1.2rem; border-radius: var(--radius-m); background: var(--accent-soft); border: 1px solid var(--rule); max-width: 46rem; }
.dedication-ar { font-size: 2rem; line-height: 1.6; margin: 0; text-align: left; color: var(--accent); }
.dedication h2 { margin: 0 0 .6rem; }
.footer-ded { border-top: none; padding-bottom: 0; color: #d8d2c6; }
