/* quran-widget.app — every generated page, /guides/ and the 404 (theme.py).
   Direction: the app icon — a green glass Quran on its stand, lit from inside by a
   gold glow, on deep green. The one lit element per page is the "band": the dark
   green head of a guide with that gold light rising from below it; prayer-time
   pages spend it on today's board instead. Everything else is quiet sage paper,
   hairlines rather than cards. Alegreya for headings and numerals (lining,
   tabular; covers Kazakh ә ғ қ ң ө ұ ү һ і and Uzbek ў ҳ), the system face for
   reading, Amiri Quran for any Arabic (lang="ar"). */
:root {
  --ground: #EEF2EC;
  --surface: #FBFCFA;
  --ink: #10251A;
  --muted: #536657;
  --line: rgba(16, 37, 26, 0.13);
  --leaf: #1D6640;
  --gold: #8C6A1E;
  --tint: #E2EADF;
  --night: #0B1F12;
  --night-2: #123020;
  --cream: #F4ECD8;
  --cream-dim: rgba(244, 236, 216, 0.68);
  --brass: #D8B566;
  --glow: rgba(229, 183, 84, 0.34);
  --btn: #0B1F12;
  --btn-ink: #F4ECD8;
  --today: #FFF6DE;
  --display: "Alegreya", Georgia, "PT Serif", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --arabic: "Amiri Quran", "Geeza Pro", "Noto Naskh Arabic", serif;
  --measure: 42rem;
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23D8B566' stroke-width='1'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 32h15M49 32h15M32 0v15M32 49v15'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #08170D;
    --surface: #0F2618;
    --ink: #E8EFE6;
    --muted: #9FB4A4;
    --line: rgba(216, 181, 102, 0.17);
    --leaf: #8DCDA4;
    --gold: #D8B566;
    --tint: #12301F;
    --night: #10291A;
    --night-2: #16361F;
    --btn: #D8B566;
    --btn-ink: #0B1F12;
    --today: rgba(216, 181, 102, 0.14);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
main { display: block; }
.doc { max-width: var(--measure); margin: 0 auto; padding: 0.5rem 1rem 3rem; }
.doc.wide { max-width: 64rem; }

h1, h2 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.1rem, 8.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
}
h2 { margin: 2.75rem 0 0.8rem; font-size: 1.6rem; line-height: 1.2; }
h3 { margin: 1.6rem 0 0.4rem; font-size: 1.1rem; }

.lede { margin: 0; font-size: 1.2rem; line-height: 1.5; text-wrap: pretty; }
.k-city .lede, .k-hub .lede { margin-top: 1.4rem; font-size: 1.05rem; color: var(--muted); }

p { margin: 0.8rem 0; }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.4rem 0; }
li::marker { color: var(--gold); }
a { color: var(--leaf); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
b, strong { font-weight: 700; }
img { max-width: 100%; }

/* Arabic: a Quranic face, right to left, room for the marks above and below. */
[lang="ar"] { font-family: var(--arabic); direction: rtl; line-height: 2.1; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 1.5rem 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn .logo { width: 1.05rem; height: 1.05rem; flex: none; margin-top: -2px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { min-height: 44px; padding: 0.5rem 1.05rem; font-size: 0.95rem; }
@media (max-width: 30rem) {
  .head .cta .btn, .get .cta .btn { flex: 1 1 100%; }
}
.alt { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--ink); }

/* ---------- hero: today's board ---------- */
.today {
  position: relative;
  margin: 0;
  padding: 1.15rem 1rem 1rem;
  border-radius: 1.6rem;
  color: var(--cream);
  background: linear-gradient(170deg, var(--night-2), var(--night) 60%);
  box-shadow: 0 18px 40px -22px rgba(11, 31, 18, 0.7);
  overflow: hidden;
  isolation: isolate;
}
.today::before { /* lattice, faint: fades out under the times */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lattice) 0 0 / 64px 64px;
  opacity: 0.13;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 48%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 48%);
}
@media (prefers-color-scheme: dark) { .today { box-shadow: inset 0 0 0 1px rgba(216, 181, 102, 0.22); } }
.today-head { padding: 0 0.35rem 0.8rem; }
.today h2 { margin: 0; font-family: var(--body); font-size: 0.95rem; font-weight: 500; color: var(--cream-dim); }
.next {
  margin: 0.15rem 0 0;
  min-height: 3.2rem;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--brass);
  font-variant-numeric: lining-nums tabular-nums;
  text-wrap: balance;
}
.next .cd { display: block; font-family: var(--body); font-size: 1.02rem; font-weight: 500; color: var(--cream); }
.times { list-style: none; margin: 0; padding: 0; display: grid; }
.times li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(244, 236, 216, 0.1);
}
.times li:first-child, .times li.is-next, .times li.is-next + li { border-top-color: transparent; }
.times .pn { font-size: 1.05rem; font-weight: 500; color: var(--cream); }
.times .pv {
  font-family: var(--display);
  font-size: 1.85rem;
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.01em;
}
.times .sun .pn, .times .sun .pv { color: var(--cream-dim); font-weight: 500; }
.times .is-next { border-radius: 0.9rem; background: rgba(216, 181, 102, 0.16); box-shadow: inset 3px 0 0 var(--brass); }
.times .is-next .pn, .times .is-next .pv { color: var(--brass); }
.today .src { margin: 0.75rem 0.35rem 0; color: var(--cream-dim); font-size: 0.85rem; }
.today .src a { color: var(--cream); }
.today .stale { margin: 0.6rem 0 0; background: rgba(244, 236, 216, 0.1); color: var(--cream); }
@media (min-width: 40rem) {
  .today { padding: 1.5rem 1.4rem 1.2rem; }
  .times { grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 1.25rem; }
  .times li:nth-child(4) { border-top-color: transparent; }
  .next { font-size: 1.5rem; }
}

.src { color: var(--muted); font-size: 0.88rem; margin: 0.6rem 0 0; }
.note { color: var(--muted); font-size: 1rem; }
.stale { padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--tint); }

/* ---------- the app ---------- */
.app {
  display: block;
  margin: 2.25rem 0 0;
  padding: 1.25rem 1.25rem 0.25rem;
  border-radius: 1.4rem;
  background: var(--tint);
}
.app::before {
  content: "";
  float: right;
  width: 56px;
  height: 56px;
  margin: 0 0 0.5rem 1rem;
  border-radius: 13px;
  background: url(/icon.png) center / cover;
  box-shadow: 0 6px 16px -8px rgba(11, 31, 18, 0.6);
}
.app h2 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.app p { margin: 0.5rem 0; }
.app .note { font-size: 0.95rem; }
.app .cta { margin: 1rem 0; }

/* ---------- tables ---------- */
.month-wrap {
  overflow: clip; /* keeps the rounded corners without becoming a scroll box, so the header can stick */
  border-radius: 1.1rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.month { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1rem; font-variant-numeric: lining-nums tabular-nums; }
.month caption { text-align: left; padding: 0.85rem 1rem 0.5rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.month th, .month td { padding: 0.5rem 0.4rem; text-align: center; white-space: nowrap; }
.month thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--night);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 500;
}
.month tbody th { text-align: left; padding-left: 1rem; font-weight: 700; }
.month tbody th small { color: var(--muted); font-weight: 400; margin-left: 0.25rem; }
.month tbody tr + tr > * { border-top: 1px solid var(--line); }
.month td:nth-child(3) { color: var(--muted); }
.month.hub td:nth-child(3), .month.rakats td:nth-child(3) { color: inherit; }
.month tr.fri > * { background: color-mix(in srgb, var(--gold) 7%, transparent); }
.month tr.fri th, .month tr.fri th small { color: var(--gold); }
.month tr.is-today > * {
  background: var(--today);
  font-weight: 700;
  border-top-color: var(--gold);
  border-bottom: 1px solid var(--gold);
}
.month tr.is-today th { box-shadow: inset 4px 0 0 var(--gold); }
.month tbody th a { text-decoration: none; color: var(--ink); }
.month.hub tbody th a { color: var(--leaf); }
.month.rakats th, .month.rakats td { white-space: normal; }

.past-cb { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.past-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0 0 0.35rem;
  color: var(--leaf);
  font-weight: 500;
  cursor: pointer;
}
.past-toggle::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}
.past-cb:checked + .past-toggle::before { transform: rotate(-135deg) translate(-2px, 0); }
.past-cb:focus-visible + .past-toggle { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.past-cb:not(:checked) ~ .month-wrap tbody tr:has(~ tr.is-today) { display: none; }
section:has(tbody tr.is-today:first-child) .past-toggle,
section:not(:has(tr.is-today)) .past-toggle { display: none; }
.past-cb:checked ~ .month-wrap tbody tr:has(~ tr.is-today) > * { color: var(--muted); }

@media (max-width: 30rem) {
  .month { font-size: 0.92rem; }
  .month th, .month td { padding: 0.48rem 0.15rem; }
  .month thead th { font-size: 0.7rem; letter-spacing: -0.01em; }
  .month tbody th { padding-left: 0.65rem; }
  .month tbody th small { display: block; margin: 0; font-size: 0.72rem; line-height: 1.1; }
  .month caption { padding-left: 0.65rem; }
  .month.hub thead th:nth-child(3), .month.hub td[data-i="1"] { display: none; }
  .month.hub tbody th { font-size: 0.86rem; white-space: normal; line-height: 1.2; }
}
.hub-hero .month-wrap { box-shadow: 0 18px 40px -26px rgba(11, 31, 18, 0.55), 0 0 0 1px var(--line); }
.hub-hero .month caption { background: var(--night); color: var(--brass); padding: 0.95rem 1rem 0.6rem; }
.hub-hero .month thead th { color: var(--cream-dim); }

/* ---------- qibla and city facts ---------- */
.qibla { display: grid; justify-items: center; gap: 0.75rem; text-align: center; }
.qibla p { margin: 0; max-width: 30rem; }
.qibla b { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1.1; color: var(--gold); font-variant-numeric: lining-nums; }
@media (min-width: 34rem) {
  .qibla { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 1.5rem; }
}
.rose { display: block; width: 176px; height: 176px; }
.rose .disc { fill: var(--surface); stroke: var(--line); }
.rose .tick { stroke: var(--muted); stroke-width: 1.2; stroke-linecap: round; }
.rose .cp { fill: var(--muted); font: 700 13px var(--body); }
.rose .arc { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; opacity: 0.55; }
.rose .star { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.5; }
.rose .needle { stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.rose .kaaba { fill: var(--ink); }
.rose .band { fill: var(--gold); }
.rose .hub { fill: var(--gold); }

.facts dl {
  display: grid;
  grid-template-columns: minmax(6.5rem, max-content) minmax(0, 1fr);
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.facts dt, .facts dd { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); padding-right: 1rem; }
.facts dd { margin: 0; font-variant-numeric: lining-nums tabular-nums; }

.near, .cities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); column-gap: 1.5rem; }
.near li, .cities li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  padding: 0.8rem 0.25rem;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}
.near a, .cities a { font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.near a::after, .cities a::after { content: ""; position: absolute; inset: 0; }
.near span { margin-left: auto; flex: none; color: var(--muted); font-size: 0.9rem; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- religious guides ---------- */
blockquote {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 0 1rem 1rem 0;
  border-left: 3px solid var(--gold);
  background: var(--tint);
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.55;
}
blockquote p { margin: 0.4rem 0; }
.cite { color: var(--muted); font-family: var(--body); font-size: 0.88rem; }
.lessons { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.9rem; }
.lessons li { margin: 0; }
.lessons a { display: block; overflow: hidden; border-radius: 1rem; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); }
.lessons img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tint); }
.lessons span { display: block; padding: 0.6rem 0.8rem 0.7rem; font-weight: 700; line-height: 1.3; }
.lessons small { display: block; color: var(--muted); font-weight: 400; }
.rakats { min-width: 100%; }
.rakats td, .rakats th { text-align: center; }

/* numbered steps: the guides' ordered lists really are sequences */
ol:not([class]) { list-style: none; counter-reset: step; padding: 0; }
ol:not([class]) > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin: 0.9rem 0; }
ol:not([class]) > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--night);
  color: var(--brass);
  font: 700 0.95rem/1 var(--display);
  font-variant-numeric: lining-nums;
}

/* ---------- questions ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.7rem 0;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 11px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 2px 11px no-repeat,
    var(--tint);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1rem; color: var(--muted); max-width: 38rem; }

/* ---------- related pages (end of a page) ---------- */
.related { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.5rem 0 0; }
.related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.related a:hover { box-shadow: 0 0 0 1px var(--gold); }

/* ---------- /guides/ index ---------- */
.guide-grid { display: grid; gap: 0 2.5rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.guide-lang h2 { margin-top: 2rem; }
.guide-lang ul { list-style: none; padding: 0; margin: 0; }
.guide-lang li { margin: 0; border-bottom: 1px solid var(--line); }
.guide-lang a { display: flex; align-items: center; min-height: 48px; padding: 0.5rem 0; text-decoration: none; font-weight: 500; color: var(--ink); }
.guide-lang a:hover { color: var(--leaf); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- product guide, about, comparison (15.11.2026) ---------- */
.toc { margin: 1.5rem 0 0; padding: 0.9rem 1.1rem; border-radius: 1.1rem; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 1rem; }
.toc ol { margin: 0.4rem 0 0; }
.toc li { margin: 0.2rem 0; }
/* The comparison scrolls sideways inside its box, never the page. */
.compare-wrap { overflow-x: auto; margin: 1rem 0; border-radius: 1.1rem; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.compare { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.95rem; }
.compare th, .compare td { padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.compare thead th { background: var(--night); color: var(--cream); font-weight: 500; font-size: 0.85rem; }
.compare tbody tr + tr > * { border-top: 1px solid var(--line); }
.compare td:first-child { font-weight: 700; }
.compare tr.ours > * { background: color-mix(in srgb, var(--gold) 9%, transparent); }

/* ---------- site chrome (theme.py) ---------- */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: 0.6rem 1rem; border-radius: 0.6rem; background: var(--brass); color: #0B1F12; font-weight: 700; }
.skip:focus { top: 0.5rem; }

/* Header: the deep green of the icon, always (it is the app's ground, not a theme). */
.top { position: sticky; top: 0; z-index: 10; background: #0B1F12; color: #F4ECD8; box-shadow: 0 1px 0 rgba(216, 181, 102, 0.18); }
.top .bar {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.4rem 1rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1rem;
}
.mark { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; color: inherit; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.mark img { border-radius: 23%; }
.get-top {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: #D8B566;
  color: #0B1F12;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
/* Phones: the section links ride a second row that scrolls inside itself, never the page. */
.top .primary {
  grid-column: 1 / -1;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -1rem;
  padding: 0 1rem;
}
.top .primary::-webkit-scrollbar { display: none; }
.top .primary a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(244, 236, 216, 0.72);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.top .primary a:hover, .top .primary a[aria-current] { color: #F4ECD8; border-bottom-color: #D8B566; }
@media (min-width: 52rem) {
  .top .bar { grid-template-columns: auto 1fr auto; padding: 0.35rem 1rem; }
  .top .primary { grid-column: 2; grid-row: 1; margin: 0; padding: 0; justify-content: flex-end; }
  .get-top { grid-column: 3; }
}

/* The head of a page. On guides it is the band: dark green, gold light rising from
   below the heading the way it rises from the book on the app icon. */
.head-in { max-width: var(--measure); margin: 0 auto; padding: 1.1rem 1rem 0.25rem; }
.head.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 1.5rem;
  background: #0B1F12;
  color: #F4ECD8;
}
.head.band::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -55%;
  width: min(60rem, 160%);
  aspect-ratio: 1.6;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), rgba(229, 183, 84, 0.08) 55%, transparent);
}
.head.band::after { /* the lattice, faint, only at the top edge */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lattice) 0 0 / 64px 64px;
  opacity: 0.08;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 45%);
  mask-image: linear-gradient(180deg, #000, transparent 45%);
}
.head.band .head-in { padding-bottom: 2.25rem; }
.head.band .lede { color: rgba(244, 236, 216, 0.86); }
.head.band .lede a { color: #D8B566; }
.head.band .btn { background: #D8B566; color: #0B1F12; }
.head.band .btn.ghost { background: transparent; color: #F4ECD8; box-shadow: inset 0 0 0 1.5px rgba(244, 236, 216, 0.35); }
@media (prefers-color-scheme: dark) {
  .head.band { background: linear-gradient(180deg, #0B1F12, #0E2817); box-shadow: 0 1px 0 rgba(216, 181, 102, 0.16); }
}

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--muted); }
.crumbs li { margin: 0; display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; flex: none; width: 0.38rem; height: 0.38rem; margin: 0 0.55rem; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); opacity: 0.55; }
.crumbs a { color: inherit; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.band .crumbs ol { color: rgba(244, 236, 216, 0.62); }

/* Prayer pages: the board is the opening, right under the heading. */
.k-city .doc, .k-hub .doc { padding-top: 0; }
.k-city .head-in h1, .k-hub .head-in h1 { margin-bottom: 0.9rem; }

/* The app, at the end of every page: the second lit block. */
.get {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  align-items: center;
  margin: 3rem 0 0;
  padding: 1.4rem 1.25rem 1.25rem;
  border-radius: 1.6rem;
  background: #0B1F12;
  color: #F4ECD8;
}
.get::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -20%;
  top: -60%;
  width: 90%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.get > img { border-radius: 23%; box-shadow: 0 10px 28px -10px rgba(229, 183, 84, 0.55); }
.get-name { margin: 0; font-family: var(--display); font-size: 1.45rem; font-weight: 700; line-height: 1.15; }
.get-line { margin: 0.2rem 0 0; color: rgba(244, 236, 216, 0.78); font-size: 0.98rem; line-height: 1.45; }
.get .cta { grid-column: 1 / -1; margin: 1rem 0 0; }
.get .btn { background: #D8B566; color: #0B1F12; }
.get .btn + .btn { background: transparent; color: #F4ECD8; box-shadow: inset 0 0 0 1.5px rgba(244, 236, 216, 0.35); }
.get-free { grid-column: 1 / -1; margin: 0.6rem 0 0; color: rgba(244, 236, 216, 0.6); font-size: 0.85rem; }
@media (prefers-color-scheme: dark) { .get { box-shadow: inset 0 0 0 1px rgba(216, 181, 102, 0.22); } }

/* Footer */
.foot { margin-top: 1rem; border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.foot-brand { max-width: 22rem; }
.foot .mark { color: var(--ink); }
.foot-brand p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.95rem; }
.foot-brand .cta { margin: 1rem 0 0; }
.foot-brand .btn + .btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.foot nav { display: flex; flex-direction: column; align-items: flex-start; }
.foot nav h2 { margin: 0 0 0.35rem; font-family: var(--body); font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.foot nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; font-size: 0.96rem; line-height: 1.3; }
.foot nav a:hover { color: var(--leaf); text-decoration: underline; }

.updated { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.85rem; }
/* Phones: the trail stops at the parent; the page's own name is the heading below it. */
@media (max-width: 30rem) { .crumbs li[aria-current] { display: none; } }

/* ---------- Quran verses by topic, the 99 Names (make_pages.py, 20.11.2026) ---------- */
/* A verse: the Arabic leads, right to left in a Quranic face with room for its marks;
   the meaning follows in the reading face; the reference closes it in small gold. */
.verses { counter-reset: none; }
blockquote.ayah {
  margin: 1rem 0;
  padding: 1.2rem 1.15rem 1rem;
  border: 0;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-family: var(--body);
  font-size: 1rem;
}
blockquote.ayah p { margin: 0; }
.ayah .ar {
  font-family: var(--arabic);
  font-size: 1.7rem;
  line-height: 2.15;
  text-align: right;
  color: var(--ink);
  overflow-wrap: normal;
}
.ayah .tr {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 1.06rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.ayah cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
}
.verses > .src { margin-top: 1rem; }
@media (min-width: 40rem) {
  blockquote.ayah { padding: 1.5rem 1.6rem 1.2rem; }
  .ayah .ar { font-size: 2rem; }
}

/* Related topics: a short list of next places to go. */
.related-topics ul { list-style: none; padding: 0; margin: 0; }
.related-topics li { margin: 0; border-bottom: 1px solid var(--line); }
.related-topics li:first-child { border-top: 1px solid var(--line); }
.related-topics a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: 0.5rem 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.related-topics a::after { content: ""; flex: none; width: 0.45rem; height: 0.45rem; border: solid var(--gold); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.related-topics a:hover { color: var(--leaf); }

/* Topic hub: each group is a list of topics with a one-line note. */
.k-qtopics .doc section > ul { list-style: none; padding: 0; }
.k-qtopics .doc section > ul > li { margin: 0; padding: 0.65rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.k-qtopics .doc section > ul > li > a:first-child { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.k-qtopics .doc section > ul > li > a:first-child:hover { color: var(--leaf); }

/* One Name: the Arabic as the page's emblem, on the dark green with the gold light. */
.name-ar {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 0 1.5rem;
  padding: 1.25rem 1rem 1.4rem;
  border-radius: 1.6rem;
  background: #0B1F12;
  color: #F4ECD8;
  text-align: center;
}
.name-ar::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 55%;
  width: 26rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.name-ar .ar.name { margin: 0; font-family: var(--arabic); font-size: clamp(3.2rem, 17vw, 4.6rem); line-height: 1.9; color: #E9C877; text-align: center; }
.name-tr { margin: 0.2rem 0 0; font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
@media (prefers-color-scheme: dark) { .name-ar { box-shadow: inset 0 0 0 1px rgba(216, 181, 102, 0.22); } }

/* Previous · all · next. */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 2.5rem 0 0; }
.pager a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.pager a:hover { box-shadow: 0 0 0 1px var(--gold); }
.pager a:last-child { justify-content: flex-end; text-align: right; }
.pager a:only-child, .pager a:nth-child(2):not(:last-child) { grid-column: 1 / -1; justify-content: center; text-align: center; order: 3; background: transparent; box-shadow: none; color: var(--leaf); min-height: 44px; }

/* The 99 Names table. Phones: number and Arabic share the first line, the
   transliteration and meaning sit under it — no column is ever cut off. */
.names table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.names th { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); }
.names td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.names td:first-child { color: var(--gold); font-weight: 700; width: 2.5rem; }
.names td.ar { font-family: var(--arabic); font-size: 1.6rem; line-height: 1.9; text-align: right; white-space: nowrap; }
.names td a { font-weight: 700; }
.names tbody tr:hover td { background: color-mix(in srgb, var(--gold) 6%, transparent); }
@media (max-width: 36rem) {
  .names thead { display: none; }
  .names table, .names tbody { display: block; }
  .names tr {
    display: grid;
    grid-template-columns: 2.25rem 1fr auto;
    grid-template-areas: "n t a" "n m a";
    align-items: center;
    column-gap: 0.6rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
  }
  .names td { padding: 0; border: 0; }
  .names td:nth-child(1) { grid-area: n; }
  .names td:nth-child(2) { grid-area: a; font-size: 1.55rem; }
  .names td:nth-child(3) { grid-area: t; }
  .names td:nth-child(4) { grid-area: m; color: var(--muted); font-size: 0.92rem; line-height: 1.35; }
}
