:root {
  --brand-espresso: #382f2c;
  --brand-orange: #f37021;
  --brand-taupe: #746762;
  --brand-paper: #f6f4f0;
  --font-ui: "Helvetica Neue", Manrope, Helvetica, "Segoe UI", sans-serif;
  --font-display: "Akzidenz-Grotesk Pro Extended", "Akzidenz-Grotesk Pro", var(--font-ui);
  --ink: #251f1d;
  --muted: #695d56;
  --line: #d8d2cb;
  --card: #fffefa;
  --accent: #8e3b0c;
  --paper: var(--brand-paper);
  --cream: #eee8df;
  --brown: var(--brand-espresso);
  --green: var(--brand-espresso);
  font: 100%/1.55 var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}
* { box-sizing: border-box }
html { scroll-padding-block: 82px 28px }
html.large-text { font-size: 121% }
html.high-contrast { --ink:#16110e; --muted:#453b34; --line:#877970; --card:#fff; --paper:#fff; --accent:#742e0b }
body { margin:0; min-height:100vh; background:var(--paper); color:var(--ink) }
[hidden] { display:none!important }
h1,h2,h3,p,ul,dl,dd,figure { margin:0 }
h1,h2,h3 { font-family:var(--font-display); line-height:1.13; font-weight:550; text-wrap:balance; letter-spacing:-.032em }
p+p { margin-block-start:.75rem }
h1 { font-size:clamp(2.15rem,4.2vw,3.8rem); overflow-wrap:anywhere; hyphens:auto }
h2 { font-size:clamp(1.45rem,2.5vw,2.15rem) }
h3 { font-size:1.18rem }
img { display:block; max-inline-size:100%; block-size:auto }
svg { inline-size:21px; block-size:21px; flex:none }
a { color:inherit; text-decoration:none }
button,input,textarea,select { font:inherit; color:inherit }
button,select,input[type="checkbox"],input[type="radio"] { cursor:pointer }
button,a,input,textarea,select { touch-action:manipulation; -webkit-tap-highlight-color:#d65f002e }
button { min-height:44px; padding:.55rem .95rem; background:var(--card); border:1px solid var(--line); border-radius:4px }
button:disabled { cursor:default; opacity:.65 }
button:active,a:active { filter:brightness(.94) }
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid #914007; outline-offset:3px
}
small,.muted,.meta,.soft { font-size:.84rem; color:var(--muted) }
input[type=checkbox],input[type=radio] { accent-color:var(--brand-espresso) }
.skip { position:fixed; inset:-8rem auto auto 1rem; z-index:20; background:#fff; color:#201b19; padding:.75rem 1rem }
.skip:focus { top:.5rem }
.topbar { position:sticky; top:0; z-index:5; background:#2b2422; color:#fff; border-bottom:1px solid #443a36 }
.topbar-inner { max-width:1440px; padding-inline:clamp(20px,4vw,72px); margin:auto; display:flex; align-items:center; min-height:68px; gap:clamp(16px,3vw,52px) }
.brand { display:inline-flex; flex:none; align-items:center; min-height:48px }
.brand img { width:80px; filter:brightness(0) invert(1) }
.desktop-nav,.header-tools,.desktop-nav a,.rail-project,.header-tools a { display:flex; align-items:center }
.desktop-nav { gap:clamp(14px,2.3vw,34px); align-self:stretch }
.desktop-nav a { position:relative; min-height:46px; color:#d5cdc7; font-size:.92rem; font-weight:550 }
.desktop-nav a svg { display:none }
.desktop-nav a:hover,.desktop-nav a[aria-current],.header-tools a:hover { color:#fff }
.desktop-nav a[aria-current]::after { content:""; position:absolute; width:22px; height:3px; background:var(--brand-orange); bottom:0; left:0 }
.rail-project { margin-inline-start:auto; gap:8px; min-height:44px; font-size:.84rem; color:#f6c4a0; white-space:nowrap }
.rail-project span { font-size:1rem }
.header-tools { gap:15px }
.header-tools a { min-height:44px; gap:6px; color:#f0ebe8; font-size:.82rem }
.header-tools .place svg { width:15px; height:15px }
.header-tools .round { justify-content:center; width:44px }
.topbar :focus-visible,.prayer-panel :focus-visible { outline-color:#ff9e56; outline-offset:-2px }
.mobile-nav { display:none }
.connection { background:#f6d7b8; color:#34251c; text-align:center; padding:8px }
#content { max-width:1440px; margin:auto; padding:28px clamp(20px,4vw,72px) 68px; outline:0 }
.route-view { min-width:0 }
.route-view:has(.page-title),.route-view:has(.practice-shell),.route-view:has(.faida-library),.route-view:has(.apply-shell) { max-width:1160px; margin:auto }
.today-title { display:flex; align-items:center; justify-content:space-between; column-gap:16px; row-gap:4px; margin-bottom:18px }
.today-title>div { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 18px }
.today-title h1 { font-size:clamp(1.8rem,3vw,2.75rem); letter-spacing:-.055em }
.today-title p { color:var(--muted); font-size:.91rem }
.today-title p::first-letter { text-transform:uppercase }
.date-note { display:flex; align-items:center; gap:9px; min-height:44px; color:var(--ink); font-size:.88rem; font-weight:650 }
.date-note svg { width:19px; height:19px; color:var(--accent) }
.date-note small { display:block; font-size:.7rem; font-weight:450 }
.day-layout { min-width:0 }
.prayer-panel { position:relative; isolation:isolate; overflow:hidden; padding:clamp(20px,3vw,40px) clamp(22px,4vw,60px) 0; background:#211a17; color:#fff; border-radius:5px }
.prayer-panel::before { content:""; z-index:-1; position:absolute; inset:0; background:linear-gradient(90deg,#211a17 0%,#211a17a6 35%,#211a1700 70%),url("./assets/prayer-beads.webp") right 52%/cover no-repeat }
.lite .prayer-panel::before { background:#201b18 }
.prayer-heading,.prayer-city,.prayer-main,.prayer-source,.prayer-source b { display:flex; align-items:center }
.prayer-heading { flex-wrap:wrap; gap:5px 16px }
.prayer-label { color:#fff; font-size:clamp(1.25rem,2.4vw,2rem); font-weight:500; letter-spacing:-.045em }
.prayer-city { gap:4px; font-size:.78rem; min-height:44px; color:#f1ded0 }
.prayer-city svg { width:15px; height:15px }
.prayer-main { gap:clamp(15px,2.6vw,38px); margin:clamp(8px,1.2vw,16px) 0 clamp(26px,3vw,44px) }
.prayer-main time { font:350 clamp(4rem,7.3vw,7.15rem)/1 var(--font-ui); letter-spacing:-.065em; font-variant-numeric:tabular-nums }
.prayer-main div { display:flex; flex-direction:column; gap:2px }
.prayer-main span,.prayer-main small { color:#e9ded6; font-size:.77rem }
.prayer-main strong { color:#fff; font-size:clamp(1.2rem,2vw,1.65rem); font-weight:600; line-height:1.25 }
.prayer-footer { display:flex; align-items:stretch; column-gap:24px; border-top:1px solid #947b6b6b; position:relative }
.prayer-footer::before { content:""; z-index:-1; position:absolute; inset:0 -100vw; background:#201a17e8 }
.mini-times { list-style:none; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); flex:1; gap:6px; max-width:750px; padding:0 }
.mini-times li { position:relative; display:flex; flex-direction:column; padding-block:13px 14px; gap:2px }
.mini-times li.selected::before { content:""; position:absolute; top:-1px; left:0; width:25px; height:3px; background:var(--brand-orange) }
.mini-times span { font-size:.76rem; color:#d8c9bf }
.mini-times b { color:#fff; font-size:1.03rem; font-weight:600; font-variant-numeric:tabular-nums }
.prayer-source { min-height:44px; margin-inline-start:auto; gap:4px; flex-direction:column-reverse; align-items:flex-end; justify-content:center; color:#d8c9bf; font-size:.75rem }
.prayer-source b { gap:5px; font-size:.86rem; color:#fff }
.prayer-source svg,.text-link svg,.button svg,.back-link svg { height:16px; width:16px }
.quick-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding-block:7px; margin-bottom:clamp(18px,2.6vw,38px); border-bottom:1px solid var(--line) }
.quick-grid a { display:flex; align-items:center; justify-content:center; padding:8px 5px; gap:12px; min-width:0; min-height:54px; color:var(--ink) }
.quick-grid a+a { border-inline-start:1px solid var(--line) }
.quick-grid a span { display:flex; color:var(--accent) }
.quick-grid a b { font-size:.91rem; font-weight:550 }
.quick-grid a:hover,.tool-link:hover,.fair-line:hover { background:#ebe5dd }
.editorial-row { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:clamp(22px,3vw,48px) }
.fair-poster { overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.04fr); background:#e4ded7; border-radius:4px; min-height:265px }
.poster-media { position:relative; min-width:0; background:#9c8980 }
.poster-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:40% 35% }
.archive-caption { position:absolute; color:#fff; inset:auto auto 10px 10px; border-radius:2px; background:#382f2c; padding:4px 7px; font-size:.68rem; line-height:1.3 }
.poster-copy { align-self:center; padding:clamp(16px,2.4vw,35px); min-width:0 }
.poster-copy .poster-dates { color:#6d4833; font-size:.8rem; font-weight:650; margin:0 0 .6rem }
.poster-copy h2 { font-size:clamp(1.6rem,3vw,3rem); line-height:1.05 }
.poster-copy p:not(.poster-dates) { color:#4e443e; font-size:.88rem; margin-top:.6rem; max-width:45ch }
.button { display:inline-flex; align-items:center; justify-content:center; gap:.65rem; min-height:46px; padding:.65rem 1.15rem; font-size:.9rem; line-height:1.25; font-weight:650; border:1px solid var(--line); border-radius:3px; background:var(--card) }
.button.primary,.poster-copy .button { color:#100d0b; background:var(--brand-orange); border:1px solid var(--brand-orange) }
.button.primary:hover,.poster-copy .button:hover { background:#ec791c; border-color:#ec791c }
.poster-copy .button { margin-top:1.1rem }
.fair-poster.without-photo { grid-template-columns:1fr; border-inline-start:4px solid var(--brand-orange); min-height:0 }
.daily-dua { align-content:start; padding-block:1rem; border-block:1px solid var(--line); min-width:0 }
.section-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:3px 16px; margin-block:1.65rem .8rem }
.daily-dua .section-head,.collection-box .section-head { margin:0 0 .6rem }
.daily-dua .section-head h2,.collection-box .section-head h2 { font-size:1.25rem; font-weight:650 }
.daily-dua .section-head>span,.collection-box .section-head>span { color:var(--accent); display:flex }
.daily-dua h3 { font-size:.95rem; font-weight:500; color:var(--muted); letter-spacing:0 }
.dua-verse { font:400 clamp(1.45rem,2.3vw,2.15rem)/1.8 "Noto Naskh Arabic","Noto Naskh",serif; text-align:start; padding-block:.4rem; color:var(--ink); overflow-wrap:anywhere }
.text-link,.back-link { display:inline-flex; align-items:center; gap:.45rem; min-height:44px; font-size:.89rem; font-weight:650; color:var(--accent) }
.text-link:hover,.back-link:hover,.rail-project:hover { text-decoration:underline; text-underline-offset:4px }
.collection-box { display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.5fr) auto; gap:0 clamp(16px,2vw,32px); align-items:center; border-block:1px solid var(--line); padding:16px 0; margin-top:clamp(22px,3.4vw,52px) }
.collection-box .section-head { flex-direction:row-reverse; justify-content:flex-end; gap:10px; margin:0 }
.collection-box .status-line { padding:0; margin:0; border:0 }
.collection-box .status-line .tile-icon { display:none }
.collection-box>.text-link { justify-self:end }
.page-title { margin:0 0 1.45rem }
.page-title p,.lede,.lead { color:var(--muted); font-size:1.04rem; margin-top:.6rem; max-width:68ch }
.back-link { margin-block:0 .55rem }
.kicker,.eyebrow,.hero-date { font-weight:650; font-size:.82rem; color:var(--accent); letter-spacing:.02em }
.card,.source-box,.story,.live-card { background:var(--card); padding:clamp(18px,3vw,34px); border:1px solid var(--line); border-radius:4px }
.card h2,.card h3,.source-box h2 { margin-bottom:.55rem }
.source-box,.live-card .button,.source-box .button { margin-top:1rem }
.source-box p,.story p,.live-card p,.fact-bullets { max-width:72ch; overflow-wrap:anywhere }
.source-box p+p,.live-card>small { display:block; margin-top:.65rem }
.story { margin-bottom:1.3rem; display:flow-root }
.story img { float:inline-end; margin-inline-start:1rem }
.fair-invite,.knowledge-feature { background:#e4ded7; border-radius:4px; padding:clamp(20px,3.4vw,42px) }
.fair-invite h2,.knowledge-feature h2 { margin:.3rem 0 .55rem }
.fair-invite p,.knowledge-feature p { max-width:64ch; color:#51463f }
.fair-invite .button,.knowledge-feature .button { margin-top:1rem }
.fair-line,.tool-link { display:flex; align-items:center; gap:12px; min-width:0; border-bottom:1px solid var(--line); padding:14px 4px; min-height:56px }
.fair-line>span,.tile-icon { color:var(--accent); display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; flex:none }
.fair-line>svg,.tool-link>svg { margin-inline-start:auto; width:16px; color:var(--muted) }
.fair-line small,.tool-link small,.settings small { display:block; color:var(--muted); margin-top:2px }
.tool-link>span:nth-child(2),.fair-line div,.status-line>div,.quiet>div { min-width:0; overflow-wrap:anywhere }
.tool-link strong,.settings strong { font-size:1rem; font-weight:650 }
.tool-grid,.gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 26px }
.knowledge-feature { display:flex; align-items:center; justify-content:space-between; gap:16px }
.book-art svg { width:clamp(42px,8vw,94px); height:auto; color:var(--brand-taupe); stroke-width:1 }
.status-line,.quiet { display:flex; gap:12px; align-items:center; padding:12px 0 }
.quiet { padding:1rem }
.status-line strong,.quiet strong { font-size:1rem; font-weight:600 }
.status-line p,.quiet p { font-size:.86rem; color:var(--muted); margin-top:.15rem }
.project-list { display:grid; gap:16px }
.fact-list { margin:.8rem 0 }
.fact-list>div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:1rem; padding:.65rem 0; border-bottom:1px solid var(--line) }
.fact-list dt { color:var(--muted) }
.fact-list dd { font-variant-numeric:tabular-nums; overflow-wrap:anywhere }
.home-archive .section-head { margin-top:2.2rem }
.event-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,2vw,28px) }
.event-card { min-width:0; display:flex; flex-direction:column; border-bottom:1px solid var(--line) }
.event-image { overflow:hidden; aspect-ratio:1.6; background:#d9cec1; border-radius:3px }
.event-photo { display:block; width:100%; height:100%; object-fit:cover; object-position:center 45% }
.event-copy { padding:14px 0 7px; min-width:0 }
.event-copy h3 { font-size:1.24rem; margin:.35rem 0 .15rem; overflow-wrap:anywhere }
.event-copy small { font-size:.78rem; color:var(--muted) }
.event-card:hover .event-copy h3 { text-decoration:underline; text-underline-offset:4px }
.event-poster { height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:4px; padding:5px; color:#fff; background:var(--brand-taupe) }
.event-poster span { font-size:.72rem }.event-poster b { font-size:clamp(1.05rem,2vw,1.5rem); max-width:100%; overflow-wrap:anywhere }
.chips { display:flex; flex-wrap:wrap; gap:.4rem; margin-block:.7rem 1.2rem }
.chips button[aria-pressed=true] { color:white; background:var(--brand-espresso); border-color:var(--brand-espresso) }
.gallery { gap:18px; margin-top:.8rem }
.gallery img { width:100%; height:auto; max-height:465px; object-fit:contain; background:#e8e1d8 }
.gallery figcaption { font-size:.8rem; color:var(--muted); padding:.5rem 0 }
.fact-bullets { padding-inline-start:1.35rem; margin-block:.9rem }
.settings { max-width:850px }
.settings label { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--line) }
.settings input { width:22px; height:22px; flex:none }
.settings label:first-child { padding-top:0 }
.high-contrast .fair-poster,.high-contrast .fair-invite,.high-contrast .knowledge-feature { background:#fff6eb; border:1px solid var(--line) }
@media(max-width:1030px){
  .rail-project { display:none }.header-tools { margin-inline-start:auto }
  .editorial-row { grid-template-columns:minmax(0,1.22fr) minmax(0,1fr); gap:22px }
  .fair-poster { grid-template-columns:minmax(0,.8fr) minmax(0,1fr) }
}
@media(max-width:780px){
  html { scroll-padding-block:65px calc(80px + env(safe-area-inset-bottom)) }
  .topbar-inner { min-height:56px; padding-inline:max(17px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-right)); gap:10px }
  .brand img { width:68px }.desktop-nav { display:none }.header-tools { gap:9px }
  .mobile-nav { position:fixed; display:flex; z-index:6; inset:auto 0 0; background:#fdfbf8; border-top:1px solid #cfc6bc; padding:0 max(4px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px,env(safe-area-inset-left)) }
  .mobile-nav a { flex:1; display:flex; align-items:center; justify-content:center; flex-direction:column; min-width:0; gap:3px; min-height:56px; position:relative; font-size:.69rem; font-weight:600; color:#635952 }
  .mobile-nav a svg { inline-size:20px; block-size:20px }
  .mobile-nav a[aria-current] { color:#302520 }.mobile-nav a[aria-current]::before { content:""; width:24px; height:3px; background:var(--brand-orange); position:absolute; inset:0 auto auto }
  #content { padding:16px max(16px,env(safe-area-inset-right)) calc(80px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)) }
  .today-title { margin-bottom:12px }.today-title>div { display:block }.today-title h1 { font-size:1.7rem }.today-title p { font-size:.75rem; margin-top:2px }
  .date-note { font-size:.78rem; gap:6px }.date-note small { font-size:.68rem }
  .prayer-panel { padding:18px 20px 0 }
  .prayer-panel::before { background-image:linear-gradient(90deg,#211a17e8 0%,#211a1773 40%,transparent 78%),url("./assets/prayer-beads-mobile.webp") }
  .lite .prayer-panel::before { background:#201b18 }
  .prayer-heading { column-gap:10px }.prayer-label { font-size:1.21rem }.prayer-city { font-size:.75rem }
  .prayer-main { margin:9px 0 22px; gap:16px }.prayer-main time { font-size:3.95rem }
  .prayer-footer { flex-direction:column; gap:0 }.mini-times { padding:0 }
  .mini-times li { padding-block:7px }.mini-times span { font-size:.72rem }.mini-times b { font-size:.94rem }
  .prayer-source { width:100%; flex-direction:row; justify-content:space-between; align-items:center; border-top:1px solid #9b84745c; font-size:.7rem }
  .quick-grid { padding-block:5px; margin-bottom:17px }.quick-grid a { flex-direction:column; gap:4px; min-height:56px }.quick-grid a b { font-size:.76rem }
  .editorial-row { grid-template-columns:1fr; gap:20px }
  .fair-poster { min-height:195px; grid-template-columns:minmax(0,.8fr) minmax(0,1.1fr) }
  .poster-copy { padding:17px }.poster-copy h2 { font-size:1.62rem }.poster-copy .poster-dates { font-size:.73rem; margin-bottom:.4rem }
  .poster-copy p:not(.poster-dates) { font-size:.82rem }.poster-copy .button { margin-top:.8rem; font-size:.82rem }
  .archive-caption { left:5px; bottom:6px; font-size:.62rem }
  .daily-dua { padding:14px 0 }.dua-verse { font-size:1.64rem }
  .collection-box { display:block; margin-top:17px }.collection-box .section-head { margin-bottom:8px }
  .event-grid { grid-template-columns:1fr }
  .event-card { display:grid; grid-template-columns:minmax(78px,30%) 1fr; gap:15px; padding-bottom:10px }
  .event-image { height:100%; min-height:104px; aspect-ratio:auto }
  .event-copy { padding:4px 0 }.event-copy h3 { font-size:1.12rem }
  .tool-grid,.gallery { grid-template-columns:1fr }
}
@media(max-width:420px){
  .prayer-panel { padding:12px 14px 0 }.prayer-when { min-width:0 }
  .prayer-main span,.prayer-main small { font-size:.71rem }.prayer-main time { font-size:3.65rem }
  .date-note svg { width:16px; height:16px }
  .large-text .fair-poster { grid-template-columns:1fr }.large-text .poster-media { min-height:125px }.large-text .poster-photo { object-position:50% 22% }
  .large-text .today-title { flex-wrap:wrap }.large-text .mini-times { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .large-text .quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }.large-text .prayer-main { flex-wrap:wrap; gap:6px 12px }
  .large-text .story img { float:none; margin:0 0 .65rem }
}
@media(max-width:360px){
  #content { padding-inline:12px }.prayer-source { flex-wrap:wrap; gap:3px }.prayer-main time { font-size:3.4rem }
  .fair-poster { grid-template-columns:minmax(0,.66fr) minmax(0,1fr) }.poster-copy { padding:13px }.poster-copy .button { padding-inline:.65rem }
}
@media(prefers-reduced-motion:reduce){* { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important }}
