/* sajadah.org — one stylesheet, no framework.
   Colours follow the app's tokens (lib/design/sakeena/tokens.dart): forest
   #0C352A / #0E5741, green #12875C, kiswa gold #B08D4A. Type: Plus Jakarta
   Sans (the app's family), Amiri Quran for Arabic. Both OFL, self-hosted. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Amiri Quran"; src: url("/fonts/AmiriQuran.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-2: #F2F4F0;
  --ink: #111A16;
  --ink-2: #4D5B54;
  --ink-3: #66726C;
  --rule: #E2E6E1;
  --rule-2: #CDD5CF;
  --accent: #0B6B48;
  --accent-2: #12875C;
  --accent-wash: #E8F2EC;
  --gold: #A88442;
  --gold-ink: #7D5F26;
  --forest: #0C352A;
  --forest-2: #0E5741;
  --on-forest: #F2F3EE;
  --on-forest-2: rgba(242, 243, 238, .72);
  --mark-gold: #C29E55;
  --mark-inner: #0B3B2A;
  --shadow: 0 1px 2px rgba(17, 26, 22, .04), 0 8px 24px -12px rgba(17, 26, 22, .12);

  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Amiri Quran", "Amiri", "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif;

  --t-display: clamp(2.25rem, 1.55rem + 2.9vw, 3.5rem);
  --t-h1: clamp(2rem, 1.6rem + 1.7vw, 2.875rem);
  --t-h2: clamp(1.375rem, 1.22rem + .7vw, 1.75rem);
  --t-h3: 1.125rem;
  --t-lede: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --t-small: .9375rem;
  --t-meta: .8125rem;

  --wrap: 1120px;
  --narrow: 760px;
  --gutter: 20px;
  --radius: 14px;
  --radius-lg: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1210;
    --surface: #111A16;
    --surface-2: #151F1A;
    --ink: #E8EEEA;
    --ink-2: #A9B6AF;
    --ink-3: #8C9991;
    --rule: #22302A;
    --rule-2: #31423A;
    --accent: #5BD1A0;
    --accent-2: #1B8A5E;
    --accent-wash: rgba(79, 211, 154, .10);
    --gold: #C9A869;
    --gold-ink: #D6B878;
    --mark-gold: #D4B06A;
    --mark-inner: #0F4D37;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -16px rgba(0, 0, 0, .7);
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent-2) 24%, transparent); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
button { font: inherit; color: inherit; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.tnum { font-variant-numeric: tabular-nums; }
.nb { white-space: nowrap; }
.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; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
[lang="ar"], .ar { font-family: var(--arabic); font-weight: 400; letter-spacing: 0; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ masthead */
.masthead { border-bottom: 1px solid var(--rule); background: var(--bg); position: relative; z-index: 20; }
.masthead-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand .mark { width: 21px; height: 36px; }
.brand .word { width: 100px; height: auto; margin-top: 5px; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a, .menu-panel a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--t-small); padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent-2); border-radius: 0; }
.masthead-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .masthead-end { margin-left: 8px; }
.lang { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 8px; padding: 2px; }
.lang a { font: 700 .75rem/1 var(--sans); letter-spacing: .06em; color: var(--ink-3); text-decoration: none; padding: 7px 8px; border-radius: 6px; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.menu { position: static; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--rule-2); font-weight: 600; font-size: var(--t-small); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface-2); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--rule); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25); padding: 8px var(--gutter) 16px; display: grid; }
.menu-panel a { font-size: 1.0625rem; color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; }
.menu-panel a:last-child { border-bottom: 0; }
.menu-panel a[aria-current="page"] { color: var(--accent); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu { display: none; }
}
@media (max-width: 380px) { .menu summary span { display: none; } }

/* ------------------------------------------------------------- page head */
.page-head { padding: 36px 0 28px; }
.page-head h1 { font-size: var(--t-h1); letter-spacing: -.025em; line-height: 1.08; }
.page-head .lede { font-size: var(--t-lede); color: var(--ink-2); margin: 14px 0 0; max-width: 40em; line-height: 1.55; }
.page-head .lede a { color: inherit; }
@media (min-width: 720px) { .page-head { padding: 52px 0 36px; } }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--t-meta); font-weight: 600; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.eyebrow { display: block; font: 700 var(--t-meta)/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 10px; }
.section { padding: 40px 0; }
.section-title { font-size: var(--t-h2); margin: 0 0 18px; }
.section-title small { font-size: var(--t-small); font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 8px; }
.rule-top { border-top: 1px solid var(--rule); }
.muted { color: var(--ink-2); }
.meta { font-size: var(--t-meta); color: var(--ink-3); }
.note-line { font-size: var(--t-small); color: var(--ink-2); }
.source { font-size: var(--t-meta); color: var(--ink-3); line-height: 1.55; }
.source a { color: var(--ink-2); }

/* -------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; background: var(--accent-2); color: #fff; font: 700 var(--t-small)/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: color-mix(in srgb, var(--accent-2) 88%, #000); text-decoration: none; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--rule-2); }
.btn-quiet:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .5; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); font: 600 .875rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.field { width: 100%; font: 500 1rem/1.2 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--rule-2); border-radius: 10px; padding: 12px 14px; min-height: 46px; -webkit-appearance: none; appearance: none; }
.field::placeholder { color: var(--ink-3); }
.field:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.search { position: relative; }
.search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .field { padding-left: 42px; }
.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 10px; padding: 3px; background: var(--surface); }
.seg a, .seg button { border: 0; background: none; padding: 8px 14px; border-radius: 7px; font: 700 .875rem/1 var(--sans); color: var(--ink-2); text-decoration: none; cursor: pointer; }
.seg [aria-selected="true"], .seg [aria-current="true"] { background: var(--ink); color: var(--bg); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn[aria-pressed="true"] { color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: var(--t-small); z-index: 60; box-shadow: var(--shadow); }

/* ----------------------------------------------------------------- hero */
/* Tier 3 of the app's surface model: one per page, the forest gradient. */
.hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); color: var(--on-forest);
  background: radial-gradient(90% 80% at 85% 0%, rgba(111, 191, 151, .18), transparent 60%), linear-gradient(170deg, var(--forest-2), var(--forest) 70%);
  padding: 24px 20px; }
@media (min-width: 720px) { .hero { padding: 32px 36px; } }
@media (prefers-color-scheme: dark) { .hero { background: radial-gradient(90% 80% at 85% 0%, rgba(111, 191, 151, .14), transparent 60%), linear-gradient(170deg, #0D4A37, #0A2C22 70%); box-shadow: inset 0 0 0 1px rgba(242, 243, 238, .06); } }
.hero a { color: var(--on-forest); }
.hero .field { background: rgba(242, 243, 238, .08); border-color: rgba(242, 243, 238, .22); color: var(--on-forest); }
.hero .field::placeholder { color: var(--on-forest-2); }
.hero .field:focus { outline-color: #8BE8BF; }
.hero .search .i { color: var(--on-forest-2); }
.hero .chip { background: transparent; border-color: rgba(242, 243, 238, .25); color: var(--on-forest); }
.hero .chip:hover { border-color: var(--on-forest); color: #fff; }
.hero .btn-quiet { background: rgba(242, 243, 238, .08); border-color: rgba(242, 243, 238, .25); color: var(--on-forest); }
.hero :focus-visible { outline-color: #8BE8BF; }

/* ---------------------------------------------------------------- prose */
.prose { font-size: 1.0625rem; line-height: 1.7; max-width: 42em; }
.prose h2 { font-size: var(--t-h2); margin: 2em 0 .6em; scroll-margin-top: 16px; }
.prose h3 { font-size: var(--t-h3); margin: 1.6em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--ink-3); }
.prose table { width: 100%; border-collapse: collapse; margin: .5em 0 1.4em; font-size: var(--t-small); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.prose th { font-size: var(--t-meta); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.prose code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; word-break: break-word; }
.prose .summary { border-left: 3px solid var(--accent-2); padding: 2px 0 2px 18px; margin: 0 0 2em; }
.prose .summary p { margin: 0 0 .4em; }
.prose .summary ul { margin: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.toc { list-style: none; padding: 0; margin: 0 0 2em; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-small); font-weight: 600; }
details.faq { border-bottom: 1px solid var(--rule); }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 1.5rem; line-height: 1; color: var(--ink-3); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */
.footer { margin-top: 72px; background: var(--surface-2); border-top: 1px solid var(--rule); padding: 44px 0 28px; font-size: var(--t-small); color: var(--ink-2); }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-about { grid-column: 1 / -1; max-width: 26em; }
.footer-about p { margin: 14px 0 0; }
.footer h2 { font-size: var(--t-meta); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-lang { display: flex; gap: 14px; }
.footer-lang a[aria-current="true"] { font-weight: 700; }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; gap: 6px; font-size: var(--t-meta); color: var(--ink-3); }
.footer-base p { margin: 0; }
.footer-base a { color: var(--ink-2); text-decoration: underline; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .footer-about { grid-column: auto; } }

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

/* ================================================================ Qur'an */
.q-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.q-tools .search { flex: 1 1 320px; max-width: 520px; }
.q-continue { margin: 0 0 14px; font-weight: 700; }
.q-continue a::after { content: " →"; }
.q-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 28px; }
.surah-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
@media (min-width: 720px) { .surah-list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 1040px) { .surah-list { grid-template-columns: repeat(3, 1fr); } }
.surah-list a { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.surah-list a:hover b { color: var(--accent); }
.sl-n { font-weight: 700; font-size: var(--t-small); color: var(--ink-3); }
.sl-name { min-width: 0; }
.sl-name b { display: block; font-weight: 700; }
.sl-name small { display: block; font-size: var(--t-meta); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-ar { font-family: var(--arabic); font-size: 1.45rem; line-height: 1.2; color: var(--ink-2); }
.juz-list a { grid-template-columns: 2.4rem 1fr; }
#tab-juz { margin-top: 40px; }
#tab-juz[hidden] + * { margin-top: 0; }

.reader { --ar-size: 2rem; }
.surah-head { padding-bottom: 20px; }
.surah-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.surah-ar { font-family: var(--arabic); font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem); line-height: 1.2; margin: 0; color: var(--ink); }
.surah-about { margin-top: 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.surah-about summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: var(--t-small); color: var(--ink-2); }
.surah-about .prose { padding-bottom: 14px; font-size: var(--t-small); color: var(--ink-2); }
.reader-bar { position: static; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; margin: 0 0 8px; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.rb-play { min-height: 38px; padding: 0 14px; }
.rb-group { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 10px; }
.rb-group .icon-btn { width: 40px; height: 36px; }
.aa { font-weight: 700; font-size: .875rem; }
.rb-goto { margin-left: auto; }
.rb-goto .field { min-height: 38px; padding: 6px 30px 6px 12px; font-size: .875rem; width: auto; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2366726C' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; }
@media (max-width: 520px) { .rb-play span { display: none; } .rb-play { width: 40px; padding: 0; } }
.basmalah { font-family: var(--arabic); text-align: center; font-size: calc(var(--ar-size) * .95); line-height: 2; margin: 18px 0 8px; color: var(--ink); }
.ayahs { list-style: none; margin: 0; padding: 0; }
.ayah { padding: 18px 0 22px; border-bottom: 1px solid var(--rule); scroll-margin-top: 72px; }
.ayah-bar { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.ayah-ref { font-weight: 700; font-size: var(--t-meta); color: var(--ink-3); text-decoration: none; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); }
.ayah-ref:hover { color: var(--accent); }
.ayah-tag { font-size: var(--t-meta); font-weight: 700; color: var(--gold-ink); }
.ayah-acts { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; }
.chip-sm { padding: 5px 10px; font-size: .8125rem; margin-left: 4px; }
.chip[aria-expanded="true"] { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }
.ayah-ar { font-family: var(--arabic); font-size: var(--ar-size); line-height: 2.15; text-align: right; margin: 10px 0 12px; color: var(--ink); word-spacing: .04em; }
.ayah-end { font-size: .92em; color: var(--gold-ink); white-space: nowrap; }
.ayah-lat { font-size: var(--t-small); line-height: 1.6; color: var(--ink-2); margin: 0 0 8px; font-style: normal; }
.ayah-tr { font-size: 1.0625rem; line-height: 1.7; margin: 0; max-width: 38em; }
.hide-lat .ayah-lat, .hide-tr .ayah-tr { display: none; }
.ayah.is-playing { background: linear-gradient(90deg, var(--accent-wash), transparent 70%); box-shadow: inset 3px 0 0 var(--accent-2); padding-left: 14px; padding-right: 6px; margin: 0 -6px 0 -14px; }
.ayah.is-target { animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 30% { background: color-mix(in srgb, var(--gold) 16%, transparent); } 100% { background: transparent; } }
.juz-mark { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; font: 700 var(--t-meta)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.juz-mark::before, .juz-mark::after { content: ""; flex: 1; height: 1px; background: var(--rule-2); }
.tafsir { margin: 16px 0 0; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); font-size: var(--t-small); line-height: 1.7; color: var(--ink); }
.tafsir-h { font-size: var(--t-small); margin: 0 0 8px; }
.tafsir p { margin: 0 0 .8em; max-width: 42em; }
.tafsir .source { margin: 0; }
.surah-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0 20px; }
.surah-nav a { display: block; padding: 14px 16px; border: 1px solid var(--rule-2); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.surah-nav a:hover { border-color: var(--accent); }
.surah-nav small { display: block; font-size: var(--t-meta); color: var(--ink-3); }
.surah-nav .sn-next { text-align: right; }
.q-credits { margin-top: 8px; }
@media (min-width: 720px) { .reader { --ar-size: 2.3rem; } }

/* ================================================================= Dzikir */
.dz-langnote { margin-top: 12px; max-width: 40em; }
.dz-bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.dz-progress { margin: 0 0 0 auto; font-weight: 700; font-size: var(--t-small); display: flex; align-items: center; gap: 10px; }
.dz-meter { width: 88px; height: 6px; border-radius: 6px; background: var(--rule); overflow: hidden; }
.dz-meter i { display: block; height: 100%; width: 0; background: var(--accent-2); transition: width .3s; }
.has-tabs .dz-set-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dz-set { padding-top: 6px; }
.dz-set-h { margin-top: 28px; }
.dz-list { list-style: none; margin: 0; padding: 0; }
.dz { padding: 22px 0 20px; border-bottom: 1px solid var(--rule); position: relative; scroll-margin-top: 70px; }
.dz-head { display: flex; align-items: baseline; gap: 12px; }
.dz-n { font-weight: 700; font-size: var(--t-meta); color: var(--ink-3); min-width: 1.4em; }
.dz-head h3 { font-size: var(--t-h3); flex: 1; }
.dz-times { font-weight: 800; font-size: var(--t-small); color: var(--gold-ink); }
.dz-body { padding-left: calc(1.4em + 12px); }
.dz-ar { font-family: var(--arabic); font-size: clamp(1.6rem, 1.4rem + 1vw, 2rem); line-height: 2.1; text-align: right; margin: 12px 0 10px; }
.dz-lat { font-size: var(--t-small); color: var(--ink-2); margin: 0 0 8px; line-height: 1.6; }
.dz-tr { margin: 0 0 8px; line-height: 1.65; max-width: 40em; }
.dz-tr sup { font-size: .7em; color: var(--ink-3); margin-right: 2px; }
.dz-label { display: block; font-size: var(--t-meta); font-weight: 700; color: var(--ink-3); margin-bottom: 2px; }
.dz-ref { font-size: var(--t-meta); color: var(--ink-3); margin: 0; }
.dz-ref a { color: var(--ink-2); }
.dz-benefit { font-size: var(--t-small); color: var(--ink-2); margin: 8px 0 0; padding-left: 12px; border-left: 2px solid var(--gold); }
.dz-q + .dz-q { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule-2); }
.dz-qh { font-weight: 700; font-size: var(--t-small); margin: 6px 0 0; }
.dz-count { display: flex; align-items: center; gap: 12px; margin: 16px 0 0 calc(1.4em + 12px); padding: 6px 18px 6px 6px; min-height: 56px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); font: 700 var(--t-small)/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.dz-count:active { transform: scale(.98); }
.dz-ring { --p: 0; position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent-2) calc(var(--p) * 360deg), var(--rule) 0); }
.dz-count { --p: 0; }
.dz-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.dz-ring b, .dz-ring small { position: relative; font-variant-numeric: tabular-nums; }
.dz-ring b { font-size: .95rem; }
.dz-ring small { position: absolute; bottom: -1px; font-size: .55rem; color: var(--ink-3); display: none; }
.dz.is-done .dz-count { background: var(--accent-wash); border-color: var(--accent-2); color: var(--accent); }
.dz.is-done .dz-head h3 { color: var(--ink-2); }
.dz.is-done .dz-ring::before { background: var(--accent-wash); }
.doa-daily { margin-top: 40px; }
.doa-toc { margin: 14px 0 6px; }
.doa-sec { scroll-margin-top: 16px; }
.doa-sec .section-title { margin: 36px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--rule-2); }
.doa-list .dz-body { padding-left: 0; }
.doa-list .dz-head .dz-n { display: none; }
.link-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.link-rows a { display: grid; gap: 2px; padding: 16px 28px 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; position: relative; }
.link-rows a::after { content: "→"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.link-rows a:hover b { color: var(--accent); }
.link-rows b { font-size: 1.0625rem; }
.link-rows span { font-size: var(--t-small); color: var(--ink-2); }

/* ============================================================ combobox */
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); color: var(--ink); border: 1px solid var(--rule-2); border-radius: 12px; box-shadow: var(--shadow); max-height: 340px; overflow: auto; }
.combo-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.combo-list li b { display: block; font-weight: 700; font-size: var(--t-small); }
.combo-list li small { color: var(--ink-3); font-size: var(--t-meta); }
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: var(--accent-wash); }
.combo-list .combo-none, .combo-list .tw-none { cursor: default; color: var(--ink-3); }

/* ================================================================= Home */
.home { padding-top: 24px; }
@media (min-width: 720px) { .home { padding-top: 36px; } }
.home-top { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .home-top { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; } }
.today { display: grid; gap: 18px; }
.td-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; }
.td-h1 { font-size: var(--t-small); font-weight: 700; letter-spacing: .02em; color: var(--on-forest-2); }
.td-date { margin: 0; font-size: var(--t-small); color: var(--on-forest-2); }
.td-date span:first-child { color: var(--on-forest); font-weight: 600; }
.td-show { display: grid; gap: 14px; }
.td-show[hidden] { display: none; }
.td-city { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: var(--t-small); color: var(--on-forest-2); }
.td-city b { font-size: 1.0625rem; color: var(--on-forest); }
.td-change { background: none; border: 0; padding: 0; color: #8BE8BF; font-weight: 700; font-size: var(--t-small); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.td-next { margin: 6px 0 4px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 18px; row-gap: 2px; min-height: 5.5rem; }
.td-next-l { grid-column: 1 / -1; font-size: var(--t-meta); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #D9BE84; }
.td-next-n { font-size: clamp(2.6rem, 1.9rem + 3vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.td-next-n small { font-size: .38em; font-weight: 600; letter-spacing: 0; color: var(--on-forest-2); }
.td-next-t { font-size: clamp(2.6rem, 1.9rem + 3vw, 4rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.02; font-variant-numeric: tabular-nums; color: var(--on-forest); }
.td-next-in { grid-column: 1 / -1; font-size: 1rem; color: var(--on-forest-2); margin-top: 6px; }
.td-times { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(242, 243, 238, .14); border: 1px solid rgba(242, 243, 238, .14); border-radius: 12px; overflow: hidden; }
@media (min-width: 560px) { .td-times { grid-template-columns: repeat(8, 1fr); } }
.td-cell { background: rgba(5, 23, 16, .38); padding: 10px 4px 11px; text-align: center; }
.td-cell span { display: block; font-size: .75rem; font-weight: 600; color: var(--on-forest-2); }
.td-cell b { display: block; font-size: 1.0625rem; font-weight: 700; margin-top: 2px; }
.td-cell:not(.is-prayer) b { font-weight: 500; color: var(--on-forest-2); }
.td-cell.is-past b { opacity: .55; }
.td-cell.is-next { background: #F2F3EE; color: var(--forest); }
.td-cell.is-next span, .td-cell.is-next b { color: var(--forest); opacity: 1; }
.td-src { margin: 0; font-size: var(--t-meta); color: var(--on-forest-2); }
.td-lede { color: var(--on-forest-2); margin: 0 0 14px; max-width: 34em; }
.td-find { display: grid; gap: 10px; }
@media (min-width: 560px) { .td-find { grid-template-columns: 1fr auto; } }
.td-combo, .qb-combo, .tw-combo { position: relative; }
.td-chips { margin-top: 14px; }
.td-status { margin: 10px 0 0; min-height: 1.4em; font-size: var(--t-small); color: var(--on-forest-2); }

.go ul { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 640px) and (max-width: 999px) { .go ul { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.go a { display: block; padding: 15px 0 16px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.go b { display: block; font-size: 1.125rem; letter-spacing: -.01em; margin-bottom: 3px; }
.go b::after { content: " →"; color: var(--ink-3); font-weight: 500; }
.go span { display: block; font-size: var(--t-small); color: var(--ink-2); line-height: 1.5; }
.go a:hover b { color: var(--accent); }

.verse { margin: 56px auto 0; max-width: 760px; }
.verse .eyebrow { margin-bottom: 6px; }
.vd-ar { font-family: var(--arabic); font-size: clamp(1.7rem, 1.35rem + 1.4vw, 2.3rem); line-height: 2.05; margin: 8px 0 14px; text-align: right; }
.vd-tr { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.65; margin: 0 0 10px; color: var(--ink); }
.vd-ref { font-size: var(--t-small); font-weight: 700; margin: 0; }

.home-cols { display: grid; gap: 40px; margin-top: 64px; padding-top: 8px; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .home-cols { grid-template-columns: 1fr 1fr; gap: 56px; } }
.often { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.often a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.often a:hover b { color: var(--accent); }
.of-name b { display: block; }
.of-name small { display: block; font-size: var(--t-meta); color: var(--ink-3); }
.of-ar { font-family: var(--arabic); font-size: 1.5rem; line-height: 1.2; color: var(--ink-2); }
.upcoming { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--rule); }
.upcoming li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.upcoming b { font-weight: 700; }
.upcoming span { text-align: right; font-size: var(--t-small); font-weight: 600; }
.upcoming small { grid-column: 1 / -1; font-size: var(--t-meta); color: var(--ink-3); }
.more-h { margin-top: 36px; }
.more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }

.app-band { display: flex; gap: 18px; align-items: flex-start; margin-top: 56px; padding: 22px 0 0; border-top: 1px solid var(--rule); }
.app-band img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.app-band h2 { font-size: 1.0625rem; margin: 2px 0 4px; }
.app-band p { margin: 0; color: var(--ink-2); font-size: var(--t-small); max-width: 46em; }

/* ======================================================== Asmaul Husna */
.nm-note { margin-top: 12px; max-width: 40em; }
.names { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (min-width: 720px) { .names { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .names { grid-template-columns: repeat(4, 1fr); } }
.names li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 12px 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.nm-n { position: absolute; top: 10px; left: 12px; font-size: var(--t-meta); font-weight: 700; color: var(--ink-3); }
.nm-ar { font-family: var(--arabic); font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.4rem); line-height: 1.5; color: var(--ink); padding: .1em 0 .45em; }
.nm-lat { font-size: 1rem; margin-top: 4px; }
.nm-mean { font-size: var(--t-meta); color: var(--ink-2); margin-top: 2px; }
.names li:target { background: var(--accent-wash); }

/* ============================================================ Calendar */
.cal-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .cal-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.cal-month { position: relative; }
.cal-nav { position: absolute; right: 0; top: 0; display: flex; gap: 4px; }
.cal-nav .icon-btn { font-size: 1.4rem; border: 1px solid var(--rule-2); }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal caption { text-align: left; padding: 0 96px 14px 0; }
.cal caption b { display: block; font-size: var(--t-h2); letter-spacing: -.015em; }
.cal caption span { display: block; font-size: var(--t-small); color: var(--ink-3); margin-top: 2px; }
.cal th { font-size: var(--t-meta); font-weight: 700; color: var(--ink-3); padding: 0 0 8px; text-align: left; }
.cal th.is-fri { color: var(--accent); }
.cal td { vertical-align: top; height: 76px; padding: 6px 6px 6px 7px; border-top: 1px solid var(--rule); }
.cal td + td { border-left: 1px solid var(--rule); }
.cal-h { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.cal-g { display: block; font-size: .75rem; color: var(--ink-3); }
.cal-ev { display: block; margin-top: 4px; font-size: .6875rem; font-weight: 700; line-height: 1.25; color: var(--gold-ink); }
.cal td.is-fri .cal-h { color: var(--accent); }
.cal td.is-today { background: var(--accent-wash); box-shadow: inset 0 2px 0 var(--accent-2); }
.cal-empty { background: transparent; }
@media (max-width: 520px) { .cal td { height: 64px; padding: 4px; } .cal-h { font-size: 1.0625rem; } .cal-ev { font-size: .625rem; } }
.ev-table, .data-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.ev-table th, .ev-table td, .data-table th, .data-table td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ev-table thead th, .data-table thead th { font-size: var(--t-meta); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.ev-table tbody th { font-weight: 700; }
.ev-table tbody th small { display: block; font-weight: 500; font-size: var(--t-meta); color: var(--ink-3); }
.ev-table tr.is-past { color: var(--ink-3); }
.data-table td { font-variant-numeric: tabular-nums; }
.cal-about { margin-top: 48px; }

/* =============================================================== Qibla */
.qb { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .qb { grid-template-columns: 1.2fr 1fr; gap: 40px; } }
.qb-place { margin: 0; font-weight: 700; color: var(--on-forest-2); }
.qb-deg { margin: 6px 0 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.qb-deg b { font-size: clamp(3.25rem, 2.4rem + 4vw, 5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.qb-deg span { font-size: var(--t-small); color: var(--on-forest-2); }
.qb-dist { margin: 0 0 20px; color: var(--on-forest-2); font-size: var(--t-small); min-height: 1.5em; }
.qb-pick { display: grid; gap: 10px; }
@media (min-width: 560px) { .qb-pick { grid-template-columns: auto 1fr; } }
.qb .btn:not(.btn-quiet) { background: #F2F3EE; color: var(--forest); }
.qb .btn:not(.btn-quiet):hover { background: #fff; }
.qb-status { margin: 10px 0 0; min-height: 1.4em; font-size: var(--t-small); color: var(--on-forest-2); }
.qb-dialwrap { display: grid; justify-items: center; gap: 10px; }
.rose { width: min(260px, 70vw); height: auto; overflow: visible; }
.rose-dial { transform-origin: 100px 100px; transition: transform .25s linear; }
.rose-ring { fill: rgba(5, 23, 16, .35); stroke: rgba(242, 243, 238, .25); }
.rose line { stroke: rgba(242, 243, 238, .35); stroke-width: 1; }
.rose line.t-strong { stroke: rgba(242, 243, 238, .7); stroke-width: 1.5; }
.rose text { fill: var(--on-forest-2); font: 700 13px var(--sans); text-anchor: middle; }
.rose .rose-n { fill: #F2F3EE; font-size: 15px; }
.rose-q { transform-origin: 100px 100px; transform-box: view-box; }
.rose-q line { stroke: #D9BE84; stroke-width: 3; stroke-linecap: round; }
.rose-q path, .rose-q rect { fill: #D9BE84; }
.rose-c { fill: #F2F3EE; }
.qb-facing .rose-q line { stroke: #8BE8BF; }
.qb-facing .rose-q path, .qb-facing .rose-q rect { fill: #8BE8BF; }
.qb-hint { margin: 0; min-height: 1.4em; font-weight: 700; color: var(--on-forest); text-align: center; }
.qb-map { position: relative; height: 340px; margin-top: 16px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--rule); }
.qb-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; }
@media (prefers-color-scheme: dark) { .qb-tiles { filter: invert(.92) hue-rotate(180deg) brightness(.92) contrast(.88); } }
.qb-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ql-halo { stroke: rgba(255, 255, 255, .85); stroke-width: 7; stroke-linecap: round; }
.ql { stroke: #0E7A52; stroke-width: 3.5; stroke-linecap: round; }
.ql-dot { fill: #0E7A52; stroke: #fff; stroke-width: 3; }
.ql-label { font: 800 13px var(--sans); fill: #0C352A; paint-order: stroke; stroke: rgba(255, 255, 255, .92); stroke-width: 4px; text-anchor: middle; }
.qb-attr { position: absolute; right: 0; bottom: 0; margin: 0; padding: 2px 8px; font-size: .6875rem; background: rgba(255, 255, 255, .85); color: #333; border-top-left-radius: 6px; }
.qb-attr a { color: #333; }
.qb-privacy { margin: 10px 0 0; }
.qb-approx { margin: 14px 0 0; }
.qb-cols { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 1000px) { .qb-cols { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.city-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; font-size: var(--t-small); }
.city-list li { break-inside: avoid; padding: 5px 0; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--rule); }

/* ============================================================ App page */
.app-head .app-icon { width: 88px; height: 88px; border-radius: 20px; margin: 4px 0 18px; box-shadow: var(--shadow); }
.app-status { display: inline-block; margin: 14px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.app-list { margin: 8px 0 28px; border-top: 1px solid var(--rule); }
.app-list div { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
@media (min-width: 720px) { .app-list div { grid-template-columns: 14em 1fr; gap: 24px; } }
.app-list dt { font-weight: 700; }
.app-list dd { margin: 0; color: var(--ink-2); }

/* ========================================================== Doc extras */
.help-grid { display: grid; gap: 12px; margin: 8px 0 24px; }
@media (min-width: 640px) { .help-grid { grid-template-columns: 1fr 1fr; } }
.help { padding: 18px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface); }
.help h3 { margin: 0 0 4px; font-size: 1rem; }
.help p { margin: 0; color: var(--ink-2); font-size: var(--t-small); }
.prose .btn { text-decoration: none; }
.nf { padding: 56px var(--gutter) 24px; }
.nf-code { font-size: var(--t-meta); font-weight: 800; letter-spacing: .1em; color: var(--gold-ink); margin: 0 0 8px; }
.nf h1 { font-size: var(--t-h1); letter-spacing: -.025em; }
.nf .lede { color: var(--ink-2); font-size: var(--t-lede); margin: 12px 0 28px; }

/* ===================================== Official timetables (server-built) */
.tt-head .tt-sub { margin: 6px 0 0; color: var(--ink-2); }
.tt-zone { font-size: .45em; font-weight: 700; letter-spacing: .06em; vertical-align: middle; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--rule-2); color: var(--ink-2); }
.tt-today { margin-bottom: 28px; }
.tt-date { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; color: var(--on-forest-2); font-size: var(--t-small); }
.tt-date [data-tt-date] { color: var(--on-forest); font-weight: 700; font-size: 1.0625rem; }
.tt-date .kicker { font-size: var(--t-meta); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #D9BE84; }
.tt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(242, 243, 238, .14); border: 1px solid rgba(242, 243, 238, .14); border-radius: 12px; overflow: hidden; }
@media (min-width: 640px) { .tt-grid { grid-template-columns: repeat(8, 1fr); } }
.tt-cell { background: rgba(5, 23, 16, .38); padding: 11px 6px 12px; text-align: center; }
.tt-cell span { display: block; font-size: .75rem; font-weight: 600; color: var(--on-forest-2); }
.tt-cell b { display: block; font-size: clamp(1.0625rem, .95rem + .5vw, 1.375rem); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; color: var(--on-forest); }
.tt-cell:not(.is-prayer) b { font-weight: 500; color: var(--on-forest-2); }
.tt-cell.is-next { background: #F2F3EE; }
.tt-cell.is-next span, .tt-cell.is-next b { color: var(--forest); }
.tt-meta { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--t-small); color: var(--on-forest-2); }
.tt-meta a { color: var(--on-forest); }
.tt-missing { color: var(--on-forest-2); }
.tt-main .wrap { display: block; }
.tt-month { margin: 0 0 40px; }
.tt-month-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 10px; }
.tt-month-head h2 { font-size: var(--t-h2); }
.tt-tools { display: flex; gap: 6px; }
.tt-btn { font: 700 var(--t-small)/1 var(--sans); min-width: 40px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.tt-btn:hover { border-color: var(--accent); color: var(--accent); }
.tt-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.tt-table th, .tt-table td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tt-table thead th { font-size: var(--t-meta); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule-2); }
.tt-table tbody th { text-align: left; font-weight: 600; }
.tt-table td { color: var(--ink-2); }
.tt-table td.is-prayer { color: var(--ink); font-weight: 600; }
.tt-d { display: inline-block; min-width: 1.6em; }
.tt-wd { color: var(--ink-3); font-weight: 500; font-size: var(--t-meta); }
.tt-table tr.is-friday .tt-wd { color: var(--accent); font-weight: 700; }
.tt-table tr.is-today { background: var(--accent-wash); }
.tt-table tr.is-today th { box-shadow: inset 3px 0 0 var(--accent-2); }
.tt-src { margin: 12px 0 0; font-size: var(--t-meta); color: var(--ink-3); }
.tt-src a { color: var(--ink-2); }
.tt-about { margin: 0 0 40px; }
.tt-about h2 { font-size: var(--t-h2); margin: 0 0 12px; }
.tt-data code { word-break: break-all; }
.tt-near h2, .tt-index h2 { font-size: var(--t-h3); margin: 0 0 10px; }
.tt-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tt-links a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: var(--t-small); font-weight: 600; border-bottom: 1px solid var(--rule); }
.tt-links a:hover { color: var(--accent); }
.tt-links b { color: var(--accent); margin-right: 4px; }
.tt-index-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.tt-index-head .field { max-width: 360px; }
.tt-other { margin: 0; font-weight: 700; font-size: var(--t-small); }
.tt-toc { margin: 0 0 8px; }
.tt-toc a { font-weight: 600; }
.tt-prov { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--rule-2); scroll-margin-top: 16px; }
.tt-prov h2 small { font-weight: 600; font-size: var(--t-meta); color: var(--ink-3); margin-left: 6px; }
.tt-src-index { margin: 24px 0 0; }
.tt-app { display: flex; gap: 14px; align-items: flex-start; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: var(--t-small); color: var(--ink-2); }
.tt-app img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.tt-app b { color: var(--ink); }
.tw-pick { display: grid; gap: 10px; }
@media (min-width: 560px) { .tw-pick { grid-template-columns: 1fr auto; } }
.tw-out { margin-top: 16px; }
.tw-empty { margin: 0; color: var(--on-forest-2); font-size: var(--t-small); }
.tw-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 16px; margin-bottom: 12px; }
.tw-head h3 { font-size: 1.375rem; margin: 2px 0; }
.tw-head p { margin: 0; font-size: var(--t-small); color: var(--on-forest-2); }
.tw-note { font-size: var(--t-meta); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #D9BE84; }
.tw-month { font-weight: 700; font-size: var(--t-small); }
.tw-src { margin: 12px 0 0; font-size: var(--t-meta); color: var(--on-forest-2); }
.tt-pickhero { margin-bottom: 32px; }

@media print {
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .masthead, .footer, .tt-near, .tt-app, .tt-about, .tt-tools, .tt-meta, .crumbs, .skip, .tt-today, .tw { display: none !important; }
  .page-head { padding: 0 0 8pt; }
  .tt-table th, .tt-table td { padding: 3pt 4pt; border-bottom: .5pt solid #999; color: #000 !important; }
  .tt-table tr.is-today { background: none; }
  a { color: #000; text-decoration: none; }
}
@media (max-width: 560px) { .ev-table .ev-hj, .ev-table thead th:nth-child(2) { display: none; } }
.city-list a { color: var(--ink); text-decoration: none; }
.city-list a:hover { color: var(--accent); text-decoration: underline; }
.tt-toc a { text-decoration: none; }
.tt-toc a:hover { text-decoration: underline; }
@media (min-width: 720px) { .reader-bar { position: sticky; } }
@media (max-width: 719px) { .rb-goto { margin-left: 0; } .dz-body { padding-left: 0; } .dz-count { margin-left: 0; } }
