/* Mashhud guides: /guides and /guides/<slug>. Tokens in tokens.css.
   Type follows the app's golden steps (13, 17, 21, 27, 34, 43) and space
   the Fibonacci steps (5, 8, 13, 21, 34, 55, 89). The page reads like the
   homepage's scroll: night sky at the top, one thread of first light at the
   foot, as in the new look ("Witnessed at Fajr", picked 14 Nov 2026). No script runs on these pages. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { overflow-x: hidden; }
a { color: var(--color-accent-2); }
a:hover { color: var(--color-text); }

.skip {
  position: absolute; left: 13px; top: -89px; z-index: 100;
  padding: 13px 21px; border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text);
  font-size: 13px; text-decoration: none;
}
.skip:focus { top: 13px; }

/* — nav: the homepage's lockup and button — */
.g-nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(5, 10, 29, .80);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-neutral-900);
}
.g-lockup { display: flex; align-items: center; gap: 11px; color: var(--color-text); text-decoration: none; }
.g-lockup:hover { color: var(--color-text); }
.g-lockup-mark { display: flex; color: var(--color-text); }
.g-lockup-name { font-family: var(--font-heading); font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.g-lockup-ar { margin-top: 2px; font-family: Amiri, serif; font-size: 14px; color: var(--color-accent-2); }
.g-nav-end { display: flex; align-items: center; gap: 21px; }
.g-nav-link { padding: 13px 0; font-size: 13px; color: var(--color-neutral-400); text-decoration: none; }
.g-nav-link:hover, .g-nav-link[aria-current="page"] { color: var(--color-text); }
.g-nav-cta {
  padding: 11px 16px; border: 1px solid var(--color-accent); border-radius: var(--radius-md);
  background: var(--color-accent);
  font-family: var(--font-heading); font-weight: 500; font-size: 13px; white-space: nowrap;
  color: var(--color-ink-on-gold); text-decoration: none;
}
/* the one lit button on the page */
.g-nav-cta:hover { background: var(--color-accent-400); border-color: var(--color-accent-400); color: var(--color-ink-on-gold); }
@media (max-width: 479px) { .g-nav-link { display: none; } }

/* — header: the night sky — */
.g-head {
  position: relative; overflow: hidden;
  padding: clamp(34px, 7vh, 55px) 0 34px;
  background: radial-gradient(120% 110% at 50% 0%, rgba(20, 25, 67, .95) 0%, rgba(15, 19, 54, .65) 40%, rgba(5, 10, 29, 0) 100%);
}
/* Stars stay out of the words: a strip of sky under the nav (the header's
   top padding is at least 34px), and the side margins once the reading
   column leaves room for them. */
.g-stars {
  position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%;
  opacity: .8; pointer-events: none;
  box-shadow:
    4vw 9px rgba(255,255,255,.68), 12vw 22px rgba(255,255,255,.3), 19vw 13px rgba(255,255,255,.55), 27vw 26px rgba(255,255,255,.22),
    35vw 7px rgba(255,255,255,.68), 44vw 19px rgba(255,255,255,.3), 53vw 11px rgba(255,255,255,.55), 61vw 24px rgba(255,255,255,.22),
    70vw 6px rgba(255,255,255,.68), 78vw 17px rgba(255,255,255,.3), 87vw 25px rgba(255,255,255,.55), 95vw 12px rgba(255,255,255,.22);
}
.g-stars::after {
  content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 3px; border-radius: 50%;
  box-shadow: 23vw 16px 3px rgba(255,255,255,.5), 64vw 10px 3px rgba(255,255,255,.4), 90vw 20px 3px rgba(255,255,255,.5);
}
@media (min-width: 1000px) {
  .g-stars::after {
    box-shadow: 23vw 16px 3px rgba(255,255,255,.5), 64vw 10px 3px rgba(255,255,255,.4), 90vw 20px 3px rgba(255,255,255,.5),
      4vw 92px rgba(255,255,255,.22), 9vw 150px 3px rgba(255,255,255,.5), 6vw 214px rgba(255,255,255,.4), 12vw 268px rgba(255,255,255,.3),
      3vw 300px rgba(255,255,255,.22), 93vw 84px rgba(255,255,255,.4), 88vw 138px rgba(255,255,255,.22), 96vw 196px 3px rgba(255,255,255,.5),
      91vw 252px rgba(255,255,255,.3), 86vw 306px rgba(255,255,255,.4);
  }
}

.g-wrap { position: relative; max-width: 680px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 34px); }

.g-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; color: var(--color-neutral-500); }
.g-crumbs li { display: flex; gap: 8px; }
.g-crumbs li + li::before { content: "›"; color: var(--color-neutral-700); }
.g-crumbs a { display: inline-block; margin: -13px 0; padding: 13px 0; color: var(--color-neutral-400); text-decoration: none; }
.g-crumbs a:hover { color: var(--color-accent-2); }

.g-title {
  margin: 21px 0 0;
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(34px, 6.4vw, 43px); line-height: 1.1; letter-spacing: -.025em;
  text-wrap: balance;
}
.g-grad {
  background: linear-gradient(var(--color-accent-300), var(--color-accent-300));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.g-dek { margin: 21px 0 0; max-width: 34em; font-size: 21px; line-height: 1.5; color: var(--color-neutral-300); text-wrap: pretty; }
.g-meta { margin: 21px 0 0; font-size: 13px; color: var(--color-neutral-500); }
.g-meta a { color: var(--color-neutral-400); text-decoration: underline; text-decoration-color: var(--color-neutral-800); text-underline-offset: 3px; }
.g-meta a:hover { color: var(--color-accent-2); }

/* — the article body. :where() keeps these base rules at zero class
     weight, so every component class below wins without a fight. — */
.g-body { padding-bottom: 34px; }
.g-body section { scroll-margin-top: 89px; }
:where(.g-body) h2 {
  margin: 55px 0 13px;
  font-family: var(--font-heading); font-weight: 500;
  font-size: 27px; line-height: 1.2; letter-spacing: -.015em;
  text-wrap: balance;
}
:where(.g-body) h3 {
  margin: 34px 0 8px;
  font-family: var(--font-heading); font-weight: 500;
  font-size: 21px; line-height: 1.3; letter-spacing: -.01em;
}
:where(.g-body) p, :where(.g-body) li { font-size: 17px; line-height: 1.6; color: var(--color-neutral-400); }
:where(.g-body) p { margin: 0 0 21px; }
:where(.g-body) ul, :where(.g-body) ol { margin: 0 0 21px; padding-left: 21px; }
:where(.g-body) li + li { margin-top: 8px; }
:where(.g-body) li::marker { color: var(--color-accent); }
:where(.g-body) strong { font-weight: 600; color: var(--color-text); }
:where(.g-body) a { text-decoration: underline; text-decoration-color: rgba(189, 238, 255, .3); text-underline-offset: 3px; }
:where(.g-body) a:hover { text-decoration-color: var(--color-accent-2); }

.g-label {
  margin: 0 0 13px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 13px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent-300);
}

/* the short answer: what a reader who stops here should leave with */
.g-answer {
  margin-top: 0; padding: 21px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-divider);
}
.g-answer p { margin: 0; color: var(--color-text); }
.g-answer p + p { margin-top: 13px; }

.g-toc { margin-top: 34px; }
.g-toc .g-label { color: var(--color-neutral-500); }
.g-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--color-neutral-800); }
.g-toc li { margin: 0; line-height: 1.4; }
.g-toc li + li { margin-top: 0; }
.g-toc a {
  display: block; margin-left: -1px; padding: 10px 0 10px 21px;
  border-left: 1px solid transparent;
  color: var(--color-neutral-300); text-decoration: none;
}
.g-toc a:hover { border-left-color: var(--color-accent); color: var(--color-text); }

/* steps, only for a real sequence */
.g-steps { padding: 0; list-style: none; counter-reset: g-step; }
.g-steps li { position: relative; padding-left: 47px; counter-increment: g-step; }
.g-steps li + li { margin-top: 21px; }
.g-steps li::before {
  content: counter(g-step);
  position: absolute; left: 0; top: -1px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--color-accent-700);
  font-family: var(--font-heading); font-weight: 500; font-size: 13px; line-height: 1;
  color: var(--color-accent-200);
}

/* a verse or hadith: the second voice, so the second typeface (Amiri), in
   the illuminated panel: lapis, a gold border, a gold hairline inside it.
   Never next to a price or the App Store button. */
.g-quote {
  position: relative;
  margin: 34px 0; padding: 34px 21px;
  border: 2px solid var(--color-accent-600); border-radius: 16px;
  text-align: center;
  background: linear-gradient(var(--color-section-glow), var(--color-accent-800));
}
.g-quote::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(227, 192, 106, .7); border-radius: 10px; pointer-events: none; }
.g-quote-ar { margin: 0; font-family: Amiri, serif; font-size: 27px; line-height: 1.9; color: var(--color-accent-200); }
.g-quote blockquote { margin: 13px 0 0; }
.g-quote blockquote p { margin: 0; font-family: Amiri, serif; font-size: 21px; font-style: italic; line-height: 1.6; color: var(--color-neutral-200); }
.g-quote figcaption { position: relative; z-index: 1; margin-top: 13px; font-size: 13px; line-height: 1.6; color: #b9c9e6; }
.g-quote figcaption a { color: var(--color-accent-2); }

.g-sources { margin-top: 55px; padding-top: 21px; border-top: 1px solid var(--color-neutral-900); }
.g-sources .g-label { color: var(--color-neutral-500); }
.g-sources ol { margin: 0; padding-left: 21px; }
.g-sources li { font-size: 13px; line-height: 1.6; color: var(--color-neutral-400); }
.g-sources li + li { margin-top: 8px; }

.g-back { margin: 34px 0 0; }
.g-back a { display: inline-block; padding: 13px 0; font-size: 13px; color: var(--color-neutral-400); text-decoration: none; }
.g-back a:hover { color: var(--color-accent-2); }

/* — the guides list (/guides) — */
.g-index { padding-bottom: 55px; }
.g-list { margin: 21px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--color-neutral-900); }
.g-item {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 5px;
  padding: 21px 0;
  border-bottom: 1px solid var(--color-neutral-900);
}
@media (min-width: 560px) { .g-item { grid-template-columns: 110px 1fr; gap: 21px; } }
.g-item-when { padding-top: 4px; font-size: 13px; line-height: 1.6; color: var(--color-accent-300); }
.g-item-title { margin: 0; font-family: var(--font-heading); font-weight: 500; font-size: 21px; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.g-item-title a { color: var(--color-text); text-decoration: none; }
.g-item-title a::after { content: ""; position: absolute; inset: 0; }
.g-item-title a:focus-visible { outline: none; }
.g-item:focus-within { outline: 2px solid var(--color-accent); outline-offset: 5px; border-radius: var(--radius-md); }
.g-item:hover .g-item-title a { color: var(--color-accent-2); }
.g-item-desc { margin: 8px 0 0; font-size: 17px; line-height: 1.6; color: var(--color-neutral-400); text-wrap: pretty; }
.g-item-meta { margin: 8px 0 0; font-size: 13px; color: var(--color-neutral-500); }

.g-empty {
  margin: 21px 0 0; padding: 21px;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--color-neutral-900);
  font-size: 17px; line-height: 1.6; color: var(--color-neutral-400);
}

/* — first light: one thread, low; the ground darkens below it — */
.g-dawn {
  position: relative; overflow: hidden;
  padding: clamp(55px, 10vh, 89px) clamp(20px, 5vw, 64px) 170px;
  border-top: 1px solid var(--color-neutral-900);
  text-align: center;
  background: linear-gradient(var(--color-bg) 0, var(--color-bg) calc(100% - 89px), var(--color-foot) calc(100% - 89px));
}
.g-dawn-glow {
  position: absolute; left: 0; right: 0; bottom: 89px; height: 150px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 100%, rgba(213, 241, 248, .14) 0%, rgba(213, 241, 248, .08) 35%, rgba(213, 241, 248, 0) 75%);
}
.g-sun { display: none; } /* the new look has no sun disc; kept in the markup for older pages */
.g-horizon {
  position: absolute; left: 0; right: 0; bottom: 88px; height: 2px;
  background: linear-gradient(90deg, rgba(239, 253, 255, 0) 0%, rgba(239, 253, 255, .24) 12%, rgba(239, 253, 255, .48) 25%, rgba(239, 253, 255, .95) 50%, rgba(239, 253, 255, .48) 75%, rgba(239, 253, 255, .24) 88%, rgba(239, 253, 255, 0) 100%);
}
.g-dawn-inner { position: relative; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 21px; }
/* the mark in first light */
.g-dawn-mark { color: var(--color-text); filter: drop-shadow(0 0 21px rgba(189, 238, 255, .55)); }
.g-dawn-title {
  margin: 0;
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(27px, 5vw, 34px); line-height: 1.15; letter-spacing: -.02em;
  text-wrap: balance;
}
.g-dawn-text { margin: 0; max-width: 30em; font-size: 17px; line-height: 1.6; color: var(--color-neutral-400); text-wrap: pretty; }
/* Apple's own "Download on the App Store" badge, used as Apple provides it (MAS-62):
   48 px tall, clear space of a quarter of its height (the 21px gap plus 8px), and no
   shadow, hover change or motion of its own. When the Play listing is public, Google's
   official badge sits after it, no smaller. */
.g-badge { display: inline-block; margin-top: 8px; line-height: 0; border-radius: 8px; }
.g-badge img { display: block; width: auto; height: 48px; }
.g-dawn-note { margin: 0; font-size: 13px; color: var(--color-neutral-400); }

/* — footer — */
.g-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 26px clamp(20px, 5vw, 64px) calc(26px + env(safe-area-inset-bottom, 0px));
  background: var(--color-foot);
  font-size: 12px; color: var(--color-neutral-500);
}
.g-footer-brand { display: flex; align-items: center; gap: 10px; }
.g-footer-brand svg { color: var(--color-neutral-400); }
.g-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.g-footer a { color: var(--color-neutral-400); text-decoration: none; }
.g-footer a:hover { color: var(--color-accent-2); }
/* Apple's credit line, which its guidelines ask for wherever the App Store badge is used */
.g-credit { flex-basis: 100%; font-size: 11px; line-height: 1.55; color: var(--color-neutral-600); }
