/* مسجد خديجة — design tokens (docs/07-ui-revamp.md §3-4). Light theme only. */
@font-face{font-family:'El Messiri';font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/el-messiri-arabic-600-normal.afad2ba4531f.woff2") format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011,U+25CC}
@font-face{font-family:'El Messiri';font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/el-messiri-latin-600-normal.85629f4aa932.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215}
@font-face{font-family:'El Messiri';font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/el-messiri-arabic-700-normal.c3affb8122dc.woff2") format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011,U+25CC}
@font-face{font-family:'El Messiri';font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/el-messiri-latin-700-normal.bdc7f6c499d5.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/readex-pro-arabic-400-normal.6eafd6182b4d.woff2") format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011,U+25CC}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/readex-pro-latin-400-normal.3f7999f83306.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/readex-pro-arabic-500-normal.23c223b860c9.woff2") format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011,U+25CC}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/readex-pro-latin-500-normal.1983a51eceb5.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/readex-pro-arabic-600-normal.3d610c338aca.woff2") format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011,U+25CC}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/readex-pro-latin-600-normal.2c9cb7c7523a.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215}
@font-face{font-family:'Amiri Quran';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/amiri-quran-arabic-400-normal.cff83e6ef038.woff2") format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011,U+25CC}
@font-face{font-family:'Amiri Quran';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/amiri-quran-latin-400-normal.0437396d9a50.woff2") format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215}
:root{
  --surface:#FBFAF6;
  --surface-card:#FFFFFF;
  --surface-tint:#F3EFE5;
  --surface-gold-soft:var(--surface-tint);
  --surface-brand-soft:#E4EEE7;
  --surface-deep:#142019;
  --ink:#1F2A24;
  --ink-muted:#5C665F;
  --brand:#1F5A40;
  --brand-dark:#17452F;
  --on-brand:#FFFFFF;
  --gold:#B08D57;
  --gold-text:#7A5C2E;
  --gold-on-deep:#D4B983;
  --on-deep:#F3EFE5;
  --on-deep-muted:#A9B3AC;
  --border:#E7E2D6;
  --border-control:#7D857F;
  --focus-ring:#17452F;
  --danger:#A8322B;
  --heat-0:#E4EEE7;--heat-1:#B9D3C2;--heat-2:#7FAE92;--heat-3:#3F7D5C;--heat-4:#1F5A40;
  --glass-fill:rgba(243,239,229,.12);
  --glass-border:rgba(243,239,229,.32);
  --scrim:rgba(20,32,25,.78);
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;--space-16:64px;--space-24:96px;
  --radius-sm:8px;--radius-md:14px;--radius-lg:28px;--radius-pill:999px;
  --shadow-card:0 1px 2px rgba(20,32,25,.04),0 8px 24px -12px rgba(20,32,25,.10);
  --shadow-raised:0 2px 4px rgba(20,32,25,.05),0 24px 48px -20px rgba(20,32,25,.22);
  --shadow-banner:var(--shadow-raised);
  --font-sans:"Readex Pro",system-ui,sans-serif;
  --font-heading:"El Messiri","Readex Pro",sans-serif;
  --font-quran:"Amiri Quran",serif;
}
html{direction:rtl}
body{margin:0;background:var(--surface);color:var(--ink);font-family:var(--font-sans);font-size:16px;line-height:28px;font-weight:400}
h1,h2,h3{font-family:var(--font-heading);font-weight:700;margin:0}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
.t-display{font-family:var(--font-heading);font-size:34px;line-height:46px;font-weight:700}
.t-h2{font-family:var(--font-heading);font-size:28px;line-height:42px;font-weight:700}
.t-h3{font-family:var(--font-heading);font-size:22px;line-height:34px;font-weight:700}
.t-label{font-size:13px;line-height:20px;font-weight:600;color:var(--gold-text)}
.t-body-lg{font-size:18px;line-height:32px;font-weight:400}
.t-body{font-size:16px;line-height:28px;font-weight:400}
.t-body-sm{font-size:14px;line-height:24px;font-weight:400}
.t-button{font-size:16px;line-height:24px;font-weight:600}
.t-num{font-family:var(--font-heading);font-variant-numeric:tabular-nums;font-weight:700}
.t-quran{font-family:var(--font-quran);font-size:24px;line-height:2}
@media(min-width:768px){
  .t-display{font-size:56px;line-height:68px}
  .t-h2{font-size:34px;line-height:48px}
}
/* geometric pattern (8-point star, original) — see static/img/pattern-star.svg */
.pattern{position:relative;isolation:isolate}
.pattern::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:currentColor;
  -webkit-mask:url("../img/pattern-star.4cf03b4ab24b.svg") 0 0/72px 72px;mask:url("../img/pattern-star.4cf03b4ab24b.svg") 0 0/72px 72px}
.pattern-4::before{opacity:.04}.pattern-6::before{opacity:.06}.pattern-8::before{opacity:.08}
.pattern-on-deep{color:var(--gold-on-deep)}.pattern-on-light{color:var(--gold)}

/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:var(--font-sans);--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--radius-sm:var(--radius-sm);--radius-md:var(--radius-md);--radius-lg:var(--radius-lg);--ease-out:cubic-bezier(0, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--shadow-card:var(--shadow-card);--font-heading:var(--font-heading);--font-quran:var(--font-quran);--shadow-raised:var(--shadow-raised)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}html{-webkit-text-size-adjust:100%}a{color:var(--brand);text-underline-offset:3px}a:hover{color:var(--brand-dark)}img{max-width:100%;height:auto}[hidden]{display:none!important}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}}@layer components{.container-page{width:min(100% - 2rem,74rem);margin-inline:auto}.section{padding-block:var(--space-12)}@media (min-width:768px){.section{padding-block:var(--space-16)}}.section-tint{background:var(--surface-tint)}.section-deep{background:var(--surface-deep);color:var(--on-deep)}.section-deep a{color:var(--gold-on-deep)}.btn{border-radius:var(--radius-pill);min-height:44px;font:600 16px/24px var(--font-sans);cursor:pointer;border:1px solid #0000;justify-content:center;align-items:center;gap:.5rem;padding-inline:1.375rem;text-decoration:none;transition:background .2s,color .2s,border-color .2s;display:inline-flex}.btn-primary{background:var(--brand);color:var(--on-brand)}.btn-primary:hover{background:var(--brand-dark);color:var(--on-brand)}.btn-secondary{background:var(--surface-card);color:var(--ink);border-color:var(--border-control)}.btn-secondary:hover{border-color:var(--brand);color:var(--brand-dark)}.btn-ghost{color:var(--brand);background:0 0}.btn-ghost:hover{background:var(--surface-brand-soft);color:var(--brand-dark)}.btn-on-deep{color:var(--on-deep);border-color:var(--glass-border);background:0 0}.btn-on-deep:hover{background:var(--glass-fill);color:var(--on-deep)}.btn-glass{background:var(--glass-fill);color:var(--on-deep);border-color:var(--glass-border)}.btn-glass:hover{color:var(--on-deep);background:var(--glass-border)}.btn-gold{background:var(--gold-on-deep);color:var(--surface-deep)}.btn-gold:hover{color:var(--surface-deep);filter:brightness(1.06)}.btn-danger{background:var(--surface-card);color:var(--danger);border-color:var(--danger)}.btn-sm{min-height:36px;padding-inline:1rem;font-size:14px}@media (max-width:899px),(pointer:coarse){.btn-sm{min-height:44px}}.signed{direction:ltr;unicode-bidi:isolate;display:inline-block}.btn-lg{min-height:52px;padding-inline:1.75rem;font-size:17px}.btn[disabled],.btn[aria-disabled=true]{opacity:.5;cursor:not-allowed}.card{background:var(--surface-card);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--space-6);box-shadow:var(--shadow-card)}.card-flat{box-shadow:none}.card-hover{transition:transform .25s,box-shadow .25s}.card-hover:hover{box-shadow:var(--shadow-raised);transform:translateY(-2px)}.card-raised{box-shadow:var(--shadow-raised);border-radius:var(--radius-lg)}.stat-card{background:var(--surface-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-6);box-shadow:var(--shadow-raised)}.stat-item .stat-num{font:700 44px/1.1 var(--font-heading);font-variant-numeric:tabular-nums;color:var(--ink);display:block}.stat-item .stat-label{color:var(--ink-muted);font-size:14px}@media (min-width:768px){.stat-item .stat-num{font-size:52px}}.badge{border-radius:var(--radius-pill);background:var(--surface-brand-soft);color:var(--brand-dark);font:600 12px/20px var(--font-sans);align-items:center;gap:.25rem;padding:2px 10px;display:inline-flex}.badge-gold{background:var(--surface-tint);color:var(--gold-text);border:1px solid var(--gold)}.badge-neutral{background:var(--surface-tint);color:var(--ink-muted);border:1px solid var(--border)}.badge-live{color:var(--gold-text);background:0 0;padding-inline:0}.badge-live:before{content:"";background:var(--brand);border-radius:50%;width:8px;height:8px;animation:2s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.35}}.sh-rule{gap:var(--space-2);display:grid}.sh-rule:after{content:"";background:var(--gold);width:56px;height:1px;margin-top:var(--space-2);display:block}.sh-center{text-align:center;justify-items:center;gap:var(--space-2);display:grid}.sh-center:before,.sh-center:after{content:none}.sh-inline{justify-content:space-between;align-items:baseline;gap:var(--space-4);flex-wrap:wrap;display:flex}.sh-eyebrow{color:var(--gold-text);font:600 13px/20px var(--font-sans)}.section-deep .sh-eyebrow{color:var(--gold-on-deep)}.more-link{font-size:14px;font-weight:600;text-decoration:none}.more-link:hover{text-decoration:underline}.field{gap:.375rem;display:grid}.field label,.field-label{font-size:14px;font-weight:600}.input,.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{border:1px solid var(--border-control);border-radius:var(--radius-sm);background:var(--surface-card);width:100%;min-height:44px;color:var(--ink);font:inherit;padding:.5rem .875rem}.field-error{color:var(--danger);align-items:center;gap:.375rem;font-size:14px;display:flex}.field-hint{color:var(--ink-muted);font-size:14px}.field[data-invalid] input{border-color:var(--danger)}.icon{stroke:currentColor;fill:none;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:1.25em;height:1.25em}.icon-flip{transform:scaleX(-1)}.alert{border-radius:var(--radius-md);padding:var(--space-3) var(--space-4);border:1px solid var(--border);background:var(--surface-tint)}.alert-error{border-color:var(--danger);color:var(--danger);background:var(--surface-card)}.alert-note{background:var(--surface-tint);color:var(--ink);border-color:var(--gold)}.empty{text-align:center;padding:var(--space-12) var(--space-4);color:var(--ink-muted)}.skeleton{background:linear-gradient(90deg, var(--surface-tint), var(--border), var(--surface-tint));border-radius:var(--radius-sm);background-size:200% 100%;min-height:1rem;animation:1.4s linear infinite sk}@keyframes sk{to{background-position:-200% 0}}.avatar{width:var(--av,44px);height:var(--av,44px);background:var(--surface-brand-soft);color:var(--brand-dark);font:600 calc(var(--av,44px) * .36)/1 var(--font-sans);letter-spacing:0;isolation:isolate;border-radius:50%;flex:none;place-items:center;display:inline-grid;position:relative;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%;display:block}.avatar[data-tone="1"]{background:var(--surface-tint);color:var(--gold-text)}.avatar[data-tone="2"]{background:var(--surface-brand-soft);color:var(--brand-dark)}.avatar[data-tone="3"]{background:var(--surface-deep);color:var(--gold-on-deep)}.avatar[data-tone="3"]:before{content:"";z-index:-1;opacity:.16;background:currentColor;position:absolute;inset:0;-webkit-mask:url("../img/pattern-star.4cf03b4ab24b.svg") 50%/28px 28px;mask:url("../img/pattern-star.4cf03b4ab24b.svg") 50%/28px 28px}.avatar-lg{--av:96px}.avatar-sm{--av:32px}.list-row{align-items:center;gap:var(--space-3);min-height:56px;padding:var(--space-2) var(--space-4);border-bottom:1px solid var(--border);background:var(--surface-card);display:flex}.list-row:last-child{border-bottom:0}.list-row .sub{color:var(--ink-muted);font-size:14px}.bulk-row{align-items:center;gap:var(--space-3);min-height:56px;padding:var(--space-2) var(--space-4);border-bottom:1px solid var(--border);cursor:pointer;background:var(--surface-card);transition:background .15s;display:flex}.bulk-row:hover{background:var(--surface)}.bulk-row:has(input:checked){background:var(--surface-brand-soft)}.bulk-row[data-locked]{background:var(--surface-tint);cursor:default}.bulk-row input[type=checkbox]{width:22px;height:22px;accent-color:var(--brand)}.bulk-bar{z-index:30;background:var(--surface-card);border-top:1px solid var(--border);padding:var(--space-3) var(--space-4);gap:var(--space-3);inset-inline:0;align-items:center;display:flex;position:fixed;bottom:0;box-shadow:0 -8px 24px -12px #14201924}.site-header{z-index:40;background:var(--surface-card);border-bottom:1px solid var(--border);transition:background .3s,border-color .3s;position:sticky;top:0}.site-header-row{align-items:center;gap:var(--space-6);min-height:72px;display:flex}.site-header .logo-plate{align-items:center;display:inline-flex}.nav-desktop{gap:var(--space-6);display:none}.nav-desktop a{color:var(--ink);border-bottom:1px solid #0000;padding-block:6px;font-size:15px;font-weight:500;text-decoration:none}.nav-desktop a:hover,.nav-desktop a[aria-current=page]{color:var(--brand-dark);border-bottom-color:var(--gold)}.nav-actions{gap:var(--space-2);align-items:center;margin-inline-start:auto;display:flex}.nav-toggle{display:inline-flex}.nav-actions .btn{white-space:nowrap}@media (max-width:479px){.nav-actions .btn-secondary{display:none}.site-header-row{gap:var(--space-3)}}.nav-mobile{border-top:1px solid var(--border);padding-block:var(--space-2);display:none}.nav-mobile.is-open{display:grid}.nav-mobile a{min-height:44px;padding:var(--space-2) 0;color:var(--ink);border-bottom:1px solid var(--border);align-items:center;font-weight:500;text-decoration:none;display:flex}@media (min-width:900px){.nav-desktop{display:flex}.nav-toggle,.nav-mobile,.nav-mobile.is-open{display:none}}.has-hero .site-header{inset-inline:0;position:fixed;top:0}.js .has-hero .site-header:not(.is-solid){background:0 0;border-bottom-color:#0000}.js .has-hero .site-header:not(.is-solid) .nav-desktop a,.js .has-hero .site-header:not(.is-solid) .nav-toggle{color:var(--on-deep)}.js .has-hero .site-header:not(.is-solid) .btn-secondary{background:var(--glass-fill);color:var(--on-deep);border-color:var(--glass-border)}.js .has-hero .site-header:not(.is-solid) .logo-plate{background:var(--surface-card);border-radius:var(--radius-pill);padding:4px 14px}.site-footer{background:var(--surface-deep);color:var(--on-deep);padding-block:var(--space-12) var(--space-6)}.site-footer a{color:var(--on-deep);text-decoration:none}.site-footer a:hover{color:var(--gold-on-deep);text-decoration:underline}.footer-grid{gap:var(--space-8);grid-template-columns:1fr;display:grid}@media (min-width:640px){.footer-grid{grid-template-columns:repeat(2,1fr)}}@media (min-width:1024px){.footer-grid{grid-template-columns:1.6fr 1fr 1fr 1fr}}.footer-grid .t-label,.footer-title{color:var(--gold-on-deep);margin-bottom:var(--space-2);font-weight:600;display:block}.footer-muted{color:var(--on-deep-muted)}.footer-note{margin-top:var(--space-8);padding-top:var(--space-4);border-top:1px solid var(--glass-border);color:var(--on-deep-muted)}.pay-row{gap:var(--space-2);flex-wrap:wrap;display:flex}.pay-badge{border-radius:var(--radius-pill);background:var(--glass-fill);min-height:28px;color:var(--on-deep);align-items:center;padding-inline:12px;font-size:12px;display:inline-flex}.logo-plate{background:var(--surface-card);border-radius:var(--radius-pill);padding:6px 16px;display:inline-flex}.band-support{background:var(--surface-tint);border-block:1px solid var(--gold);color:var(--ink)}.js [data-reveal]{opacity:0;transition:opacity .3s,transform .3s;transform:translateY(8px)}.js [data-reveal].is-in{opacity:1;transform:none}ui-dialog-backdrop,ui-drawer-backdrop,ui-alert-dialog-backdrop{background:var(--scrim);position:fixed;inset:0}ui-dialog-content,ui-alert-dialog-content{background:var(--surface-card);border-radius:var(--radius-lg);padding:var(--space-6);width:min(92vw,32rem);box-shadow:var(--shadow-raised)}ui-drawer-content{background:var(--surface-card);padding:var(--space-4) var(--space-6) var(--space-6);width:min(100%,40rem);max-height:92vh;box-shadow:var(--shadow-raised);border-start-start-radius:var(--radius-lg);border-start-end-radius:var(--radius-lg);flex-direction:column;display:flex}[data-slot=grip]{background:var(--border);width:40px;height:4px;margin:0 auto var(--space-3);border-radius:2px}ui-dialog-title,ui-drawer-title,ui-alert-dialog-title{font:700 22px/34px var(--font-heading);display:block}ui-dialog-description,ui-drawer-description{color:var(--ink-muted);font-size:14px;display:block}ui-tabs-list{gap:var(--space-2);border-bottom:1px solid var(--border);display:flex;overflow-x:auto}ui-tabs-tab button{min-height:44px;padding-inline:var(--space-4);font:500 16px var(--font-sans);color:var(--ink-muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000}ui-tabs-tab button[aria-selected=true]{color:var(--brand-dark);border-bottom-color:var(--brand);font-weight:600}ui-tabs-panel{padding-top:var(--space-4);display:block}ui-switch{border-radius:var(--radius-pill);background:var(--border-control);cursor:pointer;align-items:center;width:48px;height:28px;padding:3px;display:inline-flex}ui-switch[data-checked]{background:var(--brand)}ui-switch-thumb{background:var(--surface-card);border-radius:50%;width:22px;height:22px;transition:transform .15s;display:block}ui-switch[data-checked] ui-switch-thumb{transform:translate(-20px)}ui-select-trigger button{border:1px solid var(--border-control);border-radius:var(--radius-sm);background:var(--surface-card);width:100%;min-height:44px;font:inherit;text-align:start;justify-content:space-between;align-items:center;padding-inline:.875rem;display:flex}ui-select-content,ui-menu-content,ui-popover-content,ui-combobox-content{background:var(--surface-card);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-raised);padding:var(--space-2)}ui-select-item,ui-menu-item,ui-combobox-item{border-radius:var(--radius-sm);cursor:pointer;min-height:40px;padding:.5rem .75rem;display:block}ui-select-item[data-highlighted],ui-menu-item[data-highlighted],ui-combobox-item[data-highlighted]{background:var(--surface-brand-soft)}ui-select-item[data-selected],ui-combobox-item[data-selected]{color:var(--brand-dark);font-weight:600}ui-toast-region{inset-inline:0;bottom:var(--space-4);z-index:60;pointer-events:none;justify-content:center;display:flex;position:fixed}ui-toast{pointer-events:auto;gap:var(--space-4);background:var(--surface-deep);color:var(--on-deep);border-radius:var(--radius-md);padding:var(--space-3) var(--space-4);box-shadow:var(--shadow-raised);align-items:center;display:flex}ui-toast-action button{color:var(--gold-on-deep);cursor:pointer;background:0 0;border:0;min-height:44px;font-weight:600}.staff-bar{border-bottom:1px solid var(--border);background:var(--surface-card);z-index:20;position:sticky;top:0}.staff-links{gap:var(--space-2);display:none;overflow-x:auto}.staff-tabbar{z-index:35;background:var(--surface-card);border-top:1px solid var(--border);inset-inline:0;grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;box-shadow:0 -8px 24px -12px #1420191f}.staff-tabbar a,.staff-tabbar summary{min-height:60px;color:var(--ink-muted);cursor:pointer;align-content:center;justify-items:center;gap:2px;padding:8px 4px;font-size:12px;text-decoration:none;list-style:none;display:grid}.staff-tabbar summary::-webkit-details-marker{display:none}.staff-tabbar a[aria-current=page]{color:var(--brand-dark);box-shadow:inset 0 3px 0 var(--brand);font-weight:600}.staff-more{position:static}.staff-more-sheet{background:var(--surface-card);border-top:1px solid var(--border);border-radius:var(--radius-lg) var(--radius-lg) 0 0;padding:var(--space-3) var(--space-4);box-shadow:var(--shadow-raised);inset-inline:0;grid-template-columns:repeat(2,1fr);gap:2px;display:grid;position:absolute;bottom:100%}.staff-more-sheet a{min-height:48px;color:var(--ink);border-radius:var(--radius-sm);flex-direction:row;padding:12px;font-size:15px;display:block}.staff-more-sheet a[aria-current=page]{background:var(--surface-brand-soft);box-shadow:none}body.staff{padding-bottom:72px}body.staff .bulk-bar{bottom:60px}@media (min-width:900px){.staff-links{display:flex}.staff-tabbar{display:none}body.staff{padding-bottom:0}body.staff .bulk-bar{bottom:0}}.staff-links .btn[aria-current=page]{background:var(--surface-brand-soft);color:var(--brand-dark);box-shadow:inset 0 -2px 0 var(--brand)}}@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.static{position:static}.block{display:block}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.transform{transform:var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, )}.pl-2{padding-left:calc(var(--spacing) * 2)}.ring{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.focus\:not-sr-only:focus{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}}@media (prefers-reduced-motion:reduce){.js [data-reveal]{opacity:1;transition:none;transform:none}.badge-live:before{animation:none}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}
/* Public site (Phase 7). Tokens only — see docs/BRAND.md. */
.topbar { background: var(--surface-deep); color: var(--on-deep); font-size: 12px; line-height: 20px; padding-block: 8px; }
.topbar a { color: var(--on-deep); text-decoration: none; }
.topbar .container-page { display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; }
.topbar-links { display: flex; gap: var(--space-4); align-items: center; }
.social { display: inline-flex; gap: var(--space-2); }
.social a { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 767px) { .topbar { display: none; } }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.eyebrow { color: var(--gold-text); }
.section-head .t-h2 { margin: 0; }
.more-link { font-weight: 700; font-size: 14px; white-space: nowrap; }
.divider-gold { width: 48px; height: 2px; background: var(--gold); border: 0; margin: var(--space-2) 0 0; }

/* hero / banners */
.hero { position: relative; background: var(--surface-deep); }
.hero ui-carousel { display: block; position: relative; }
.hero ui-carousel-viewport { display: block; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero ui-carousel-viewport::-webkit-scrollbar { display: none; }
.hero ui-carousel-content { display: flex; }
.hero ui-carousel-item { display: block; flex: 0 0 100%; scroll-snap-align: start; position: relative; height: clamp(380px, 56vw, 630px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--scrim)); }
.hero-copy { position: absolute; inset-inline: 0; bottom: 0; padding-bottom: calc(var(--space-12) + var(--space-6)); color: var(--on-deep); }
.hero-copy .t-label { color: var(--gold-on-deep); }
.hero-copy .t-display { color: var(--on-deep); margin-block: var(--space-2) var(--space-4); max-width: 22ch; }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-plain { background: var(--surface-tint); padding-block: var(--space-16) calc(var(--space-16) + 32px); }
.hero ui-carousel-indicator-group { position: absolute; inset-inline: 0; bottom: calc(var(--space-12) + 4px); display: flex; justify-content: center; gap: var(--space-2); z-index: 3; }
.hero ui-carousel-indicator button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-fill); cursor: pointer; }
.hero ui-carousel-indicator[data-selected] button { background: var(--on-deep); }

.trust { position: relative; z-index: 4; margin-top: -48px; }
.trust-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-banner); display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-cell { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-4) var(--space-6); color: var(--ink); font-weight: 700; font-size: 14px; line-height: 24px; }
.trust-cell + .trust-cell { border-inline-start: 1px solid var(--border); }
.trust-cell .icon { color: var(--brand); width: 28px; height: 28px; }
@media (max-width: 767px) { .trust-card { grid-template-columns: 1fr; } .trust-cell + .trust-cell { border-inline-start: 0; border-top: 1px solid var(--border); } }

/* cards & grids */
.grid-3 { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.pcard { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .2s; }
.pcard:hover { box-shadow: var(--shadow-card); color: var(--ink); }
.pcard-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--surface-brand-soft); display: block; }
.pcard-body { padding: var(--space-6); display: grid; gap: var(--space-2); }
.pcard-date { color: var(--ink-muted); font-size: 14px; }
.pin-badge { color: var(--gold-text); }

/* leaderboard */
.pts { font-weight: 800; color: var(--brand-dark); }
.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.row-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); min-height: 64px; border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none; position: relative; }
.row-item:last-child { border-bottom: 0; }
.row-item:hover { background: var(--surface-tint); color: var(--ink); }
.row-item[data-me] { background: var(--surface-brand-soft); }
.row-rank { width: 36px; text-align: center; font-weight: 800; color: var(--ink-muted); }
.row-name { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item[data-moved]::after { content: ""; position: absolute; inset-inline-end: 6px; inset-block-start: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.row-item[data-moved="down"]::after { background: var(--gold); }
.search-form { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); flex-wrap: wrap; }
.search-form .input { max-width: 20rem; }

/* champions */

/* posts */
.prose { font-size: 18px; line-height: 32px; max-width: 46rem; overflow-wrap: anywhere; }
.prose code { background: var(--surface-tint); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px 6px; font-family: ui-monospace, monospace; direction: ltr; unicode-bidi: plaintext; }
.gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); margin-top: var(--space-8); }
.gallery figure { margin: 0; display: grid; gap: var(--space-2); }
.gallery button.thumb { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-md); overflow: hidden; display: block; width: 100%; }
.gallery img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
.gallery figcaption { font-size: 14px; line-height: 24px; color: var(--ink-muted); }
ui-dialog-content.lightbox { width: min(96vw, 60rem); max-height: 94vh; overflow: auto; display: grid; gap: var(--space-3); }
ui-dialog-content.lightbox img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: var(--radius-md); }
.share { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-8); }
.pager { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-12); }

/* video + cta */
.video-section { background: var(--surface-deep); color: var(--on-deep); padding-block: var(--space-12); }
@media (min-width: 768px) { .video-section { padding-block: var(--space-16); } }
.video-section .t-label { color: var(--gold-on-deep); display: inline-flex; align-items: center; gap: var(--space-2); }
.video-section .t-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-on-deep); }
.video-section .t-h2 { color: var(--on-deep); }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-banner); background: var(--surface-deep); position: relative; }
.video-frame > a { display: block; width: 100%; height: 100%; position: relative; }
.video-frame iframe, .video-frame img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-frame > a:hover .play span { background: var(--brand-dark); transform: scale(1.06); }
.video-frame .play span { transition: transform .2s, background .2s; width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; }
.playlist { display: flex; gap: var(--space-3); margin-top: var(--space-4); overflow-x: auto; padding-bottom: var(--space-2); }
.playlist a { flex: 0 0 15rem; display: flex; gap: var(--space-3); align-items: center; border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: var(--space-2); color: var(--on-deep); text-decoration: none; font-size: 14px; }
.playlist a[aria-current=true] { border-color: var(--gold-on-deep); background: rgba(255,255,255,.08); }
.playlist a:focus-visible { outline-color: var(--gold-on-deep); }
.video-fallback { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--on-deep); }
.playlist img { width: 72px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); }
.cta-band { background: var(--brand); color: var(--on-brand); border-radius: var(--radius-lg); padding: var(--space-8); display: flex; gap: var(--space-6); align-items: center; justify-content: space-between; flex-wrap: wrap; margin-block: var(--space-8); }
.cta-band .t-h2 { color: var(--on-brand); }
.cta-band .btn { background: var(--surface); color: var(--brand-dark); }

/* footer */
.site-footer { background: var(--surface-deep); color: var(--on-deep); padding-block: var(--space-12); }
.site-footer a { color: var(--on-deep); }
.site-footer .t-label { color: var(--gold-on-deep); margin-bottom: var(--space-2); display: block; }
.footer-grid { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pay-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pay-badge { min-width: 42px; height: 28px; padding-inline: 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.05); display: inline-flex; align-items: center; font-size: 12px; color: var(--on-deep); }
.pay-badge img { height: 16px; width: auto; }
.footer-note { margin-top: var(--space-8); color: var(--gold-on-deep); }

/* donate */
.transfer { display: grid; gap: var(--space-2); }
.transfer-line { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.transfer-line span { overflow-wrap: anywhere; }

/* student public profile */
.profile-head { display: flex; gap: var(--space-6); align-items: center; flex-wrap: wrap; }
.stat-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-block: var(--space-6); }
.stat-card .num { font-size: 32px; line-height: 44px; font-weight: 800; color: var(--brand-dark); display: block; }
.stat-card .lbl { color: var(--ink-muted); font-size: 14px; }
.page-head { padding-block: var(--space-12) var(--space-6); background: var(--surface-tint); }
.crumbs { font-size: 14px; color: var(--ink-muted); margin-bottom: var(--space-2); }
.error-page { text-align: center; padding-block: var(--space-24); }
.error-page .code { font-size: 96px; line-height: 1; font-weight: 800; color: var(--gold); }

/* nav: desktop row vs. mobile strip */

/* Heatmap, Quran map, category bars — shared by /me/ and public profiles. Tokens only. */
.seg { display: inline-flex; border: 1px solid var(--border-control); border-radius: var(--radius-pill); overflow: hidden; }
.seg a { padding: 6px 16px; min-height: 36px; display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; }
.seg a[aria-current=true] { background: var(--brand); color: var(--on-brand); }
.hm-wrap { overflow-x: auto; padding-bottom: var(--space-2); }
.hm-year { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); min-width: 44rem; }
.hm-days { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; font-size: 11px; color: var(--ink-muted); padding-top: 22px; }
.hm-days span { height: 14px; line-height: 14px; }
.hm-months { display: grid; grid-auto-flow: column; grid-auto-columns: 14px; gap: 3px; font-size: 11px; color: var(--ink-muted); height: 18px; margin-bottom: 4px; }
.hm-months span { white-space: nowrap; }
.hm-grid { display: grid; grid-template-rows: repeat(7, 14px); grid-auto-flow: column; grid-auto-columns: 14px; gap: 3px; }
.hm-cell { border-radius: 4px; background: var(--surface-tint); border: 1px solid var(--border); box-sizing: border-box; cursor: default; }
.hm-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 28rem; }
.hm-month .hm-head { text-align: center; font-size: 12px; color: var(--ink-muted); font-weight: 700; }
.hm-month .hm-cell { aspect-ratio: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; font-size: 13px; border-radius: var(--radius-sm); color: var(--ink); }
.hm-month .hm-cell.out { visibility: hidden; }
.hm-cell.l1 { background: var(--surface-brand-soft); border-color: var(--surface-brand-soft); }
.hm-cell.l2 { background: color-mix(in srgb, var(--brand) 35%, var(--surface-brand-soft)); border-color: transparent; }
.hm-cell.l3 { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.hm-cell.l4 { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--on-brand); }
.hm-cell.friday, .hm-cell.holiday { background: var(--surface); border-style: dotted; border-color: var(--border-control); }
.hm-cell.absent { background: var(--surface); border: 1.5px dashed var(--gold); }
.hm-cell.excused { background: var(--surface-gold-soft); border-color: var(--gold); }
.hm-cell.future, .hm-cell.before, .hm-cell.out { background: transparent; border-color: transparent; }
.hm-cell.today { outline: 2px solid var(--brand); outline-offset: -2px; }
.hm-legend { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; font-size: 12px; color: var(--ink-muted); margin-top: var(--space-3); }
.hm-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; margin-inline-end: 4px; }
.hm-detail { min-height: 28px; margin-top: var(--space-2); font-weight: 700; }
.hm-summary { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-4); }
.hm-summary b { font-size: 24px; color: var(--brand-dark); display: block; line-height: 32px; }

.qmap { display: grid; gap: 4px; }
.qmap-row { display: flex; align-items: center; gap: var(--space-2); }
.qmap-juz { width: 28px; text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-muted); flex: none; }
.qmap-cells { display: flex; gap: 2px; flex: 1; min-width: 0; }
.qcell.empty { padding: 0; }
.qcell { flex: 1; min-width: 0; height: 14px; border-radius: 3px; background: var(--surface-tint); border: 1px solid var(--border); box-sizing: border-box; }
.qcell.partial { background: var(--surface-brand-soft); border-color: var(--surface-brand-soft); }
.qcell.full { background: var(--brand); border-color: var(--brand); }
.qmap-count { width: 44px; flex: none; font-size: 12px; color: var(--ink-muted); text-align: end; }

.bars { display: grid; gap: var(--space-3); }
.bar-row { display: grid; grid-template-columns: 7rem 1fr 3rem; gap: var(--space-3); align-items: center; font-size: 14px; }
.bar-track { height: 10px; border-radius: var(--radius-pill); background: var(--surface-tint); border: 1px solid var(--border); overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); border-radius: var(--radius-pill); }
.bar-row b { text-align: end; }

.timeline { display: grid; gap: var(--space-4); }
.tl-day { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.tl-day:last-child { border-bottom: 0; }
.tl-date { font-weight: 800; }
.tl-date small { display: block; font-weight: 400; color: var(--ink-muted); }
.tl-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.tl-items li { display: flex; gap: var(--space-2); align-items: center; }
.tl-items .icon { color: var(--brand); }
.tl-items li.neutral { color: var(--ink-muted); }
.tl-items li.neutral .icon { color: var(--ink-muted); }
.tl-pts { margin-inline-start: auto; font-weight: 800; color: var(--brand-dark); }
@media (max-width: 575px) { .tl-day { grid-template-columns: 1fr; gap: var(--space-2); } .bar-row { grid-template-columns: 5.5rem 1fr 2.5rem; } }

/* Content surfaces (posts, courses, donate, login). Tokens only — see docs/07-ui-revamp.md. */
.ph { padding-block: var(--space-12) var(--space-8); background: var(--surface); border-bottom: 1px solid var(--border); }
.ph .crumbs { margin: 0 0 var(--space-3); }
.ph h1 { font-size: 34px; line-height: 46px; }
.ph .ph-lead { color: var(--ink-muted); font-size: 18px; line-height: 32px; max-width: 40rem; margin: var(--space-2) 0 0; }
.ph .container-page::after { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin-top: var(--space-4); }
@media (min-width: 768px) { .ph h1 { font-size: 44px; line-height: 60px; } }

/* post card */
.pc-link { display: grid; color: var(--ink); text-decoration: none; height: 100%; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.pc-link:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); color: var(--ink); }
.pc-media { aspect-ratio: 16 / 10; background: var(--surface-brand-soft); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: var(--space-5, 20px) var(--space-6) var(--space-6); display: grid; gap: var(--space-2); align-content: start; }
.pc-meta { display: flex; gap: var(--space-2); align-items: center; margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 24px; font-variant-numeric: tabular-nums; }
.pc-title { font-size: 22px; line-height: 34px; overflow-wrap: anywhere; }
.pc-link:hover .pc-title { color: var(--brand-dark); }
.pc-excerpt { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 26px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pc-featured .pc-link { grid-template-columns: 1fr; }
.pc-featured .pc-title { font-size: 28px; line-height: 42px; }
.pc-featured .pc-body { padding: var(--space-6); }
.pc-featured .pc-media { aspect-ratio: 16 / 9; }
.pc-compact .pc-link { grid-template-columns: 7rem 1fr; align-items: stretch; }
.pc-compact .pc-media { aspect-ratio: auto; height: 100%; min-height: 6.5rem; }
.pc-compact .pc-body { padding: var(--space-4); }
.pc-compact .pc-title { font-size: 18px; line-height: 28px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .pc-featured .pc-link { grid-template-columns: 1.15fr 1fr; } .pc-featured .pc-media { aspect-ratio: auto; height: 100%; min-height: 18rem; } .pc-featured .pc-body { align-content: center; padding: var(--space-8); } }

/* posts without an image: typographic card */
.pc-noimg .pc-link { border-top: 2px solid var(--gold); align-content: center; }
.pc-noimg.pc-compact .pc-link { grid-template-columns: 1fr; }
.pc-noimg.pc-featured .pc-link { grid-template-columns: 1fr; }
.pc-noimg.pc-featured .pc-title { font-size: 34px; line-height: 50px; }
.pc-noimg.pc-featured .pc-body { padding: var(--space-8) var(--space-6); }

/* posts list layout */
.pl-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin-top: var(--space-6); }
@media (min-width: 640px) { .pl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pl-grid { grid-template-columns: repeat(3, 1fr); } .pl-grid.pl-2 { grid-template-columns: repeat(2, 1fr); } }

/* editorial grid */
.eg { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.eg-side { display: grid; gap: var(--space-4); align-content: start; }
@media (min-width: 900px) { .eg { grid-template-columns: 1.4fr 1fr; } }

/* course card */
.cc { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: grid; align-content: start; }
.cc-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.cc-body { padding: var(--space-6); display: grid; gap: var(--space-3); }
.cc-meta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: 0; color: var(--ink-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.cc-meta span:not(.badge) { display: inline-flex; align-items: center; gap: var(--space-2); }
.cc-meta .icon { color: var(--gold-text); }
.cc-title a { color: var(--ink); text-decoration: none; }
.cc-title a:hover { color: var(--brand-dark); }
.cc-desc { margin: 0; color: var(--ink-muted); overflow-wrap: anywhere; }
.cc-schedule { border-top: 1px solid var(--border); padding-top: var(--space-3); }
.cc-schedule ol { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 0; }
.cc-schedule li { display: flex; gap: var(--space-3); padding-block: var(--space-2); border-bottom: 1px dashed var(--border); font-size: 15px; line-height: 24px; }
.cc-schedule li:last-child { border-bottom: 0; }
.cc-schedule time { color: var(--ink); font-weight: 600; min-width: 8.5rem; font-variant-numeric: tabular-nums; }
.cc-schedule li.is-past { color: var(--ink-muted); }
.cc-schedule li.is-past time { font-weight: 400; color: var(--ink-muted); }
.cc-compact { box-shadow: none; }
.cc-compact .cc-body { padding: var(--space-4); gap: var(--space-2); }
.course-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 900px) { .course-grid { grid-template-columns: repeat(2, 1fr); }  }

/* post detail */
.pd-head { padding-block: var(--space-12) var(--space-6); }
.pd-head .container-page, .pd-body .container-page { max-width: 46rem; }
.pd-head h1 { font-size: 32px; line-height: 46px; overflow-wrap: anywhere; }
@media (min-width: 768px) { .pd-head h1 { font-size: 44px; line-height: 62px; } }
.pd-meta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; color: var(--ink-muted); font-size: 14px; margin: var(--space-3) 0 0; font-variant-numeric: tabular-nums; }
.pd-head .container-page::after { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin-top: var(--space-5, 20px); }
.pd-body { padding-bottom: var(--space-12); }
.pd-body .prose { font-size: 18px; line-height: 32px; max-width: 68ch; }
.pd-body .prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pd-body .prose b, .pd-body .prose strong { font-weight: 700; color: var(--ink); }
.pd-body .prose s, .pd-body .prose del { color: var(--ink-muted); }
.pd-body .prose pre, .pd-body .prose code { direction: ltr; unicode-bidi: plaintext; }
.pd-gallery { margin-block: var(--space-8); }
.pd-gallery .container-page { max-width: 60rem; }
.gv { position: relative; }
.gv ui-carousel-viewport { display: block; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-md); }
.gv ui-carousel-viewport::-webkit-scrollbar { display: none; }
.gv ui-carousel-content { display: flex; }
.gv ui-carousel-item { display: block; flex: 0 0 100%; scroll-snap-align: start; }
.gv-slide { margin: 0; display: grid; gap: var(--space-3); }
.gv-open { padding: 0; border: 0; background: var(--surface-tint); cursor: zoom-in; display: block; width: 100%; border-radius: var(--radius-md); overflow: hidden; }
.gv-open img { width: 100%; height: auto; max-height: 34rem; object-fit: contain; margin-inline: auto; }
.gv-cap { color: var(--ink-muted); font-size: 15px; line-height: 26px; max-width: 46rem; overflow-wrap: anywhere; }
.gv-ctrl { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-3); }
.gv-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-control); background: var(--surface-card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.gv-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.gv-count { color: var(--ink-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.gv ui-carousel-indicator-group { display: flex; gap: var(--space-2); }
.gv ui-carousel-indicator button { position: relative; width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--border-control); cursor: pointer; opacity: .5; }
.gv ui-carousel-indicator button::after { content: ""; position: absolute; inset: -18px -4px; }
.gv ui-carousel-indicator[data-selected] button { opacity: 1; background: var(--brand); width: 20px; border-radius: 4px; }
.gv-one .gv-ctrl { display: none; }
.lightbox-box { background: var(--surface-card); }
ui-dialog-content.lightbox { width: min(96vw, 60rem); max-height: 94vh; overflow: auto; display: grid; gap: var(--space-3); }
ui-dialog-content.lightbox img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; border-radius: var(--radius-md); }
.pd-share { border-top: 1px solid var(--border); padding-top: var(--space-6); margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.pd-share .share-label { color: var(--ink-muted); font-size: 14px; margin-inline-end: var(--space-2); }
.related { background: var(--surface-tint); padding-block: var(--space-12); }
.related h2 { margin-bottom: var(--space-6); }

/* donate */
.dn { position: relative; background: var(--surface-tint); border-bottom: 1px solid var(--gold); color: var(--ink); }
.dn-inner { color: var(--ink); padding-block: var(--space-12); display: grid; gap: var(--space-4); max-width: 44rem; }
.dn-inner h1 { font-size: 34px; line-height: 46px; }
@media (min-width: 768px) { .dn-inner { color: var(--ink); padding-block: var(--space-16); } .dn-inner h1 { font-size: 44px; line-height: 60px; } }
.dn-lead { font-size: 18px; line-height: 32px; margin: 0; }
.dn-actions { margin-top: var(--space-2); }
.dn-body { padding-block: var(--space-12); }
.dn-body .container-page { max-width: 44rem; }
.transfer-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-card); }
.transfer-card h2 { margin-bottom: var(--space-2); }
.transfer-card > p { color: var(--ink-muted); margin: 0 0 var(--space-4); font-size: 14px; }
.transfer { display: grid; gap: 0; }
.transfer-line { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; padding-block: var(--space-3); border-top: 1px solid var(--border); border-radius: 0; border-inline: 0; border-bottom: 0; padding-inline: 0; }
.transfer-line:first-child { border-top: 0; }
.transfer-line span { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pay-methods { margin-top: var(--space-8); }
.pay-methods .pm-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.pm-pill { display: inline-flex; align-items: center; min-height: 32px; padding-inline: 14px; border-radius: var(--radius-pill); background: var(--surface-card); border: 1px solid var(--border); font-size: 14px; }
.pm-pill img { height: 18px; width: auto; }

/* login / password */
.auth { min-height: calc(100vh - 14rem); background: var(--surface); display: grid; align-items: center; position: relative; padding-block: var(--space-12); }
.auth-card { color: var(--ink); width: min(100% - 2rem, 26rem); margin-inline: auto; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-5, 20px); }
@media (min-width: 480px) { .auth-card { padding: var(--space-8); } }
.auth-logo { justify-self: center; height: 56px; width: auto; }
.auth-card h1 { font-size: 28px; line-height: 40px; text-align: center; }
.auth-card .auth-sub { margin: calc(var(--space-2) * -1) 0 0; text-align: center; color: var(--ink-muted); font-size: 15px; }
.auth-form { display: grid; gap: var(--space-4); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-inline-end: 4.5rem; }
.pw-toggle { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); min-height: 44px; min-width: 44px; padding-inline: 12px; border: 0; background: none; color: var(--brand); font-weight: 600; font-size: 14px; cursor: pointer; border-radius: var(--radius-pill); }
.pw-toggle:hover { background: var(--surface-brand-soft); }
.alert-icon { display: flex; gap: var(--space-2); align-items: flex-start; }
.alert-icon .icon { margin-top: 4px; }
.auth-hint { margin: 0; text-align: center; color: var(--ink-muted); font-size: 14px; }
.field-hint[data-bad] { color: var(--danger); }
.lock-icon { justify-self: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface-tint); border: 1px solid var(--gold); color: var(--gold-text); display: inline-flex; align-items: center; justify-content: center; }
.lock-icon .icon { width: 26px; height: 26px; }

.transfer-line .btn { min-height: 44px; flex: none; }
@media (prefers-reduced-motion: reduce) { .pc-link:hover { transform: none; } }

.more-link { display: inline-flex; align-items: center; min-height: 44px; }
.dn-missing { display: flex; gap: var(--space-3); align-items: flex-start; margin: 0; color: var(--ink-muted); }
.dn-missing .icon { margin-top: 5px; color: var(--gold-text); }
.cc-wide .cc-body { gap: var(--space-6); }
.course-grid.is-one { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .cc-wide { grid-template-columns: 1fr; }
  .cc-wide .cc-body { grid-template-columns: 1fr 1fr; padding: var(--space-8); align-items: start; }
  .cc-wide .cc-info { display: grid; gap: var(--space-3); }
  .cc-wide .cc-title { font-size: 28px; line-height: 42px; }
  .cc-wide .cc-schedule { border-top: 0; padding-top: 0; border-inline-start: 1px solid var(--border); padding-inline-start: var(--space-6); }
}

/* Competition surfaces: leaderboard, champions, public profile, home partials. Tokens only (docs/07 §3, §6). */
.comp-head { background: var(--surface-tint); padding-block: var(--space-12) var(--space-8); border-bottom: 1px solid var(--border); }
.comp-head .crumbs { margin-bottom: var(--space-2); }
.comp-head .lead { color: var(--ink-muted); max-width: 40rem; margin-top: var(--space-2); }

.comp-board { max-width: 48rem; margin-inline: auto; }
.comp-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-4); }
.comp-toolbar form { display: flex; gap: var(--space-2); flex: 1 1 18rem; min-width: 0; }
.comp-toolbar .input { flex: 1; min-width: 0; }
.comp-meta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-6); padding-bottom: var(--space-4); border-bottom: 1px solid var(--gold); }
.comp-meta .t-h3 { margin: 0; }
.comp-meta p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 24px; }
.comp-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* podium */
.comp-podium { list-style: none; margin: 0 auto var(--space-8); padding: 0; display: flex; justify-content: center; gap: var(--space-3); align-items: flex-end; max-width: 44rem; }
.comp-podium > li { display: block; min-width: 0; flex: 1 1 0; max-width: 14.5rem; }
.comp-podium > li[data-place="1"] { order: 2; }
.comp-podium > li[data-place="2"] { order: 1; }
.comp-podium > li[data-place="3"] { order: 3; }
.comp-pod { position: relative; display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-6) var(--space-2); background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; text-align: center; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.comp-pod:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-raised); }
.comp-pod[data-place="1"] { padding-block: var(--space-12) var(--space-8); border-color: var(--gold); }
.comp-pod[data-place="1"]::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold); border-radius: calc(var(--radius-lg) - 6px); pointer-events: none; opacity: .55; }
.comp-pod[data-me], .comp-champ[data-me] { border-color: var(--brand); }
.comp-pod .avatar { --av: 72px; }
.comp-pod[data-place="1"] .avatar { --av: 104px; box-shadow: 0 0 0 3px var(--surface-card), 0 0 0 4px var(--gold); }
.comp-pod-av { position: relative; display: inline-grid; }
.comp-pod-rank { position: absolute; inset-block-start: -14px; inset-inline: 0; margin-inline: auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-card); border: 1px solid var(--gold); font: 700 16px/1 var(--font-heading); font-variant-numeric: tabular-nums; color: var(--ink); }
[data-place="1"] > .comp-pod-av > .comp-pod-rank, .comp-pod[data-place="1"] .comp-pod-rank { color: var(--gold-text); }
.comp-pod-name { font: 700 18px/28px var(--font-heading); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.comp-pod-pts { display: grid; justify-items: center; line-height: 1.2; font-size: 13px; color: var(--ink-muted); }
.comp-pod-pts b { font: 700 28px/1.1 var(--font-heading); font-variant-numeric: tabular-nums; color: var(--ink); }
.comp-pod-ornament::before, .comp-champ[data-place="1"]::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 120px; height: 120px; pointer-events: none; background: var(--gold); opacity: .09;
  -webkit-mask: url("../img/pattern-star.4cf03b4ab24b.svg") 0 0/60px 60px; mask: url("../img/pattern-star.4cf03b4ab24b.svg") 0 0/60px 60px;
  clip-path: polygon(0 0, 100% 0, 0 100%); }
.comp-pod[data-place="1"].comp-pod-ornament::before { opacity: .12; }

/* ranks 4+ */
.comp-rows { list-style: none; margin: 0; padding: 0; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.comp-rows > li + li { border-top: 1px solid var(--border); }
.comp-row { display: grid; grid-template-columns: 2rem auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); min-height: 64px; color: var(--ink); text-decoration: none; position: relative; background: var(--surface-card); }
.comp-row:hover { background: var(--surface-tint); color: var(--ink); }
.comp-row[data-me] { background: var(--surface-brand-soft); }
.comp-row .avatar { --av: 44px; }
.comp-row-rank { text-align: center; font: 700 17px/1 var(--font-heading); font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.comp-row-main { display: grid; gap: 6px; min-width: 0; }
.comp-row-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-bar { display: block; height: 6px; border-radius: var(--radius-pill); background: var(--surface-tint); overflow: hidden; }
.comp-row[data-me] .comp-bar { background: var(--surface-card); }
.comp-bar i { display: block; height: 100%; min-width: 4px; background: var(--gold); border-radius: inherit; }
.comp-row-pts { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 3.5rem; font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--ink); }
.comp-move { display: none; width: 10px; height: 10px; flex: none; }
[data-moved] .comp-move { display: inline-block; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
[data-moved="down"] .comp-move { background: var(--gold-text); transform: rotate(180deg); }
.comp-pod .comp-move { position: absolute; inset-block-start: var(--space-3); inset-inline-end: var(--space-3); }
.comp-more { display: flex; justify-content: center; margin-top: var(--space-6); }

/* home preview */
.comp-preview { display: grid; gap: var(--space-8); align-items: start; }
.comp-preview .comp-podium { margin: 0; max-width: none; }
@media (min-width: 900px) { .comp-preview { grid-template-columns: 1.1fr 1fr; } }
.comp-preview-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); }

/* champions */
.comp-champs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .comp-champs { grid-template-columns: 1.3fr 1fr 1fr; align-items: stretch; } }
.comp-champs > li { display: block; min-width: 0; }
.comp-champ { position: relative; display: grid; justify-items: center; align-content: center; gap: var(--space-2); height: 100%; padding: var(--space-8) var(--space-6); background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; text-align: center; overflow: hidden; }
.comp-champ:hover { color: var(--ink); box-shadow: var(--shadow-raised); }
.comp-champ[data-place="1"] { border-color: var(--gold); padding-block: var(--space-12); }
.comp-champ[data-place="1"]::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold); border-radius: calc(var(--radius-lg) - 6px); opacity: .55; pointer-events: none; }
.comp-champ .avatar { --av: 88px; }
.comp-champ[data-place="1"] .avatar { --av: 120px; box-shadow: 0 0 0 3px var(--surface-card), 0 0 0 4px var(--gold); }
.comp-champ-name { font: 700 22px/34px var(--font-heading); overflow-wrap: anywhere; }
.comp-champ-pts { font-size: 14px; color: var(--ink-muted); }
.comp-champ-pts b { font: 700 32px/1.1 var(--font-heading); font-variant-numeric: tabular-nums; color: var(--ink); margin-inline-end: 4px; }
.comp-champ-pages { font-size: 14px; color: var(--gold-text); min-height: 24px; }
.comp-champ.is-compact { padding-block: var(--space-6); }
.comp-champ.is-compact[data-place="1"] { padding-block: var(--space-8); }
.comp-champ.is-compact .avatar { --av: 72px; }
.comp-champ.is-compact[data-place="1"] .avatar { --av: 96px; }
.comp-champ.is-compact .comp-champ-name { font-size: 20px; line-height: 30px; }
.comp-champ.is-compact .comp-champ-pts b { font-size: 26px; }
.comp-archive { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.comp-sprint { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.comp-sprint header { padding-bottom: var(--space-3); border-bottom: 1px solid var(--gold); }
.comp-sprint h3 { margin: 0; }
.comp-sprint header p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.comp-sprint ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.comp-sprint li { display: grid; grid-template-columns: 1.5rem auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; }
.comp-sprint li .avatar { --av: 36px; }
.comp-sprint .n { font: 700 17px/1 var(--font-heading); font-variant-numeric: tabular-nums; color: var(--gold-text); text-align: center; }
.comp-sprint a { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-sprint a:hover { color: var(--brand-dark); text-decoration: underline; }
.comp-sprint .p { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.comp-sprint-empty { color: var(--ink-muted); font-size: 14px; margin: 0; }

/* public profile */
.comp-profile-head { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; }
.comp-profile-head .avatar { --av: 128px; box-shadow: 0 0 0 4px var(--surface-tint), 0 0 0 5px var(--gold); }
.comp-profile-head h1 { font-size: 34px; line-height: 48px; overflow-wrap: anywhere; }
.comp-profile-head p { margin: 0; color: var(--ink-muted); font-size: 14px; }
.comp-medals { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.comp-stats { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); margin-bottom: var(--space-8); }
@media (min-width: 768px) { .comp-stats { gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); } }
.comp-stat { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); display: grid; gap: 2px; }
.comp-stat .num { font: 700 44px/1.15 var(--font-heading); font-variant-numeric: tabular-nums; color: var(--ink); }
.comp-stat .lbl { font-size: 14px; color: var(--ink-muted); }
.comp-panel { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-6); margin-bottom: var(--space-6); }
.comp-panel > h2 { margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--gold); }
.comp-cats { display: grid; gap: var(--space-3); }
.comp-cat { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 3rem; gap: var(--space-3); align-items: center; font-size: 14px; }
.comp-cat b { text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 575px) { .comp-cat { grid-template-columns: 5.5rem minmax(0, 1fr) 2.5rem; } .comp-profile-head .avatar { --av: 96px; } .comp-profile-head h1 { font-size: 28px; line-height: 42px; } .comp-stat .num { font-size: 36px; } }
/* heatmap ramp (docs/07 §3), scoped so /me/ keeps its own */
.comp-profile .hm-cell { background: var(--heat-0); border-color: transparent; }
.comp-profile .hm-cell.l1 { background: var(--heat-1); }
.comp-profile .hm-cell.l2 { background: var(--heat-2); }
.comp-profile .hm-cell.l3 { background: var(--heat-3); color: var(--on-brand); }
.comp-profile .hm-cell.l4 { background: var(--heat-4); color: var(--on-brand); }
.comp-profile .hm-cell.friday, .comp-profile .hm-cell.holiday { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--border) 3px 4px); border: 1px solid var(--border); }
.comp-profile .hm-cell.absent { background: var(--surface-card); border: 1px dashed var(--border-control); }
.comp-profile .hm-cell.excused { background: var(--surface-tint); border: 1px solid var(--gold); }
.comp-profile .hm-cell.future, .comp-profile .hm-cell.before, .comp-profile .hm-cell.out { background: transparent; border-color: transparent; }
.comp-profile .hm-cell.today { outline: 2px solid var(--brand-dark); outline-offset: -2px; }

@media (max-width: 575px) {
  .comp-podium { gap: var(--space-2); }
  .comp-pod { padding-inline: var(--space-1); }
  .comp-pod .avatar { --av: 56px; }
  .comp-pod[data-place="1"] .avatar { --av: 76px; }
  .comp-pod-name { font-size: 15px; line-height: 24px; }
  .comp-pod-pts b { font-size: 22px; }
  .comp-row { gap: var(--space-2); padding-inline: var(--space-3); grid-template-columns: 1.75rem auto minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) { .comp-pod, .comp-pod .avatar { animation: none; transition: none; transform: none; } }

/* size avatars from --av (public.css still sets a fixed 44px box) */
.comp-pod .avatar, .comp-row .avatar, .comp-champ .avatar, .comp-sprint .avatar, .comp-profile-head .avatar { width: var(--av); height: var(--av); font-size: calc(var(--av) * .36); line-height: 1.5; }

/* typeset: balanced headings, tidy wraps, readable placeholder */
.comp-head h1, .comp-meta .t-h3, .comp-pod-name, .comp-champ-name, .comp-sprint h3, .comp-profile-head h1 { text-wrap: balance; }
.comp-head .lead { text-wrap: pretty; }
.comp-toolbar .input::placeholder { color: var(--ink-muted); }
.comp-pod-pts, .comp-champ-pts, .comp-row-rank, .comp-pod-rank { font-variant-numeric: tabular-nums; }

/* motion: one authored moment, the podium rising in once (2, 1, 3) */
@keyframes comp-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.comp-podium > li { animation: comp-rise .6s cubic-bezier(.16, 1, .3, 1) both; }
.comp-podium > li[data-place="2"] { animation-delay: 0s; }
.comp-podium > li[data-place="1"] { animation-delay: .12s; }
.comp-podium > li[data-place="3"] { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .comp-podium > li { animation: none; } }

/* champions on phones: a big #1 card, then 2 and 3 as compact rows */
@media (max-width: 767px) {
  .comp-champs > li:not(:first-child) .comp-champ { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: start; column-gap: var(--space-4); padding: var(--space-3) var(--space-4); }
  .comp-champs > li:not(:first-child) .comp-champ .avatar { --av: 56px; }
  .comp-champs > li:not(:first-child) .comp-pod-av { grid-row: 1; }
  .comp-champs > li:not(:first-child) .comp-champ-name { font-size: 18px; line-height: 28px; }
  .comp-champs > li:not(:first-child) .comp-champ-pts b { font-size: 24px; }
  .comp-champs > li:not(:first-child) .comp-champ-pages { display: none; }
  .comp-champs > li:not(:first-child) .comp-pod-rank { inset-block-start: -10px; inset-inline: auto; inset-inline-start: -6px; margin: 0; width: 24px; height: 24px; font-size: 14px; }
}

/* profile heatmap: full range, cells scale to the container */
.pf-hm-year { display: none; }
@media (min-width: 768px) { .pf-hm-year { display: block; } .pf-hm-month { display: none; } }
.pf-hm-scroll { direction: ltr; overflow-x: auto; padding-bottom: var(--space-2); }
.pf-hm-inner { direction: rtl; min-width: 44rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px var(--space-2); }
.pf-hm-days, .pf-hm-grid { grid-row: 2; }
.pf-hm-days { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; font-size: 12px; line-height: 1; color: var(--ink-muted); align-items: center; }
.pf-hm-months { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); font-size: 12px; line-height: 20px; color: var(--ink-muted); }
.pf-hm-months span { white-space: nowrap; overflow: visible; }
.pf-hm-grid { grid-column: 2; display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; aspect-ratio: var(--weeks) / 7; }
.pf-hm-grid .hm-cell { border-radius: 4px; min-width: 0; }
.comp-profile .hm-cell.before, .comp-profile .hm-cell.future { background: var(--surface-tint); border-color: transparent; }
.pf-nav { display: flex; align-items: center; gap: var(--space-3); margin-block: var(--space-2) var(--space-4); }
[data-live-url][data-swapped] .comp-podium > li { animation: none; }
.pf-hm-months span:last-child { margin-inline-start: -1.75rem; }

/* stats moved here from the home page */
.comp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-6); background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6); box-shadow: var(--shadow-card); }
.comp-stats .stat-num { font-size: 34px; line-height: 1.2; }
@media (min-width: 768px) { .comp-stats { grid-template-columns: repeat(4, 1fr); padding: var(--space-6) var(--space-8); } .comp-stats .stat-num { font-size: 48px; } }

/* Landing page (ui-landing). Tokens only: docs/07-ui-revamp.md section 6. */

/* ---------- hero ---------- */
.hero { position: relative; background: var(--surface-deep); color: var(--on-deep); }
.hero-slides { position: relative; height: 440px; overflow: hidden; }
@media (min-width: 768px) { .hero-slides { height: clamp(520px, 66vh, 600px); } }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.hero-slide[data-active] { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide[data-active] .hero-img { animation: hero-kb 9s ease-out both; }
@keyframes hero-kb { from { transform: scale(1.06); } to { transform: scale(1); } }
/* scrim on the text side (inline-start = right in RTL) plus a thin top veil for the transparent header */
.hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(to left, var(--scrim) 0%, transparent 62%), linear-gradient(to bottom, var(--scrim) 0%, transparent 22%); }
.hero-copy { position: absolute; inset-inline: 0; inset-block-end: 0; margin-inline: auto;
  padding-block-end: calc(var(--space-24) + var(--space-4)); display: grid; gap: var(--space-3); justify-items: start; align-content: end; height: 100%; }
.hero-label { margin: 0; color: var(--gold-on-deep); font: 600 13px/20px var(--font-sans); }
.hero-title { margin: 0; overflow-wrap: anywhere; max-width: 16ch; font: 700 34px/46px var(--font-heading); color: var(--on-deep); text-wrap: balance; }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-3); }
.hero-plain { padding-block: calc(72px + var(--space-16)) calc(var(--space-24) + var(--space-8)); }
.hero-plain .hero-title { margin-block: var(--space-2) var(--space-4); }
@media (min-width: 768px) {
  .hero-title { font-size: 56px; line-height: 68px; max-width: 18ch; }
  .hero-copy { padding-block-end: calc(var(--space-24) + var(--space-8)); }
}

/* grouped controls, bottom inline-end corner; hidden without JS */
.hero-controls-wrap { position: absolute; inset-inline: 0; inset-block-end: calc(var(--space-12) + var(--space-8)); margin-inline: auto; z-index: 3; pointer-events: none; display: none; }
.js .hero-controls-wrap { display: block; }
.hero-controls { display: flex; align-items: center; gap: var(--space-3); justify-content: flex-end; pointer-events: auto; }
.hero-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; padding: 0;
  background: var(--glass-fill); border: 1px solid var(--glass-border); color: var(--on-deep); transition: background .2s; }
.hero-btn:hover { background: var(--glass-border); }
.hero-btn:focus-visible, .hero-bar:focus-visible { outline-color: var(--gold-on-deep); }
.hero-pause .icon { stroke-width: 2.4; }
.hero-pause .i-play, .hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: inline-block; }
.hero-bars { display: flex; gap: var(--space-2); }
.hero-bar { width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; align-items: center; }
.hero-bar span { display: block; height: 2px; border-radius: var(--radius-pill); background: var(--glass-border); position: relative; overflow: hidden; }
.hero-bar span::after { content: ""; position: absolute; inset: 0; background: var(--gold-on-deep); transform: scaleX(0); transform-origin: right center; }
.hero-bar[aria-current="true"] span::after { transform: scaleX(1); }
.hero[data-playing] .hero-bar[aria-current="true"] span::after { transform: scaleX(0); animation: hero-fill var(--hero-interval, 6s) linear forwards; }
.hero[data-paused] .hero-bar[aria-current="true"] span::after { animation-play-state: paused; }
@keyframes hero-fill { to { transform: scaleX(1); } }
.hero-count { font: 500 14px/20px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--on-deep-muted); min-width: 4.5ch; text-align: center; }
.hero-count b { color: var(--on-deep); font-weight: 600; }
@media (max-width: 767px) {
  .hero-controls-wrap { inset-block-end: calc(var(--space-16) + var(--space-8)); }
  .hero-copy { padding-block-end: calc(var(--space-24) + var(--space-16) + var(--space-8)); }
  .hero-count { display: none; }
}

/* ---------- verses band (overlaps the hero edge) ---------- */
.verses-wrap { position: relative; z-index: 4; margin-top: calc(-1 * var(--space-12)); }
.verses { margin: 0; background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); padding: var(--space-8) var(--space-6) var(--space-6);
  position: relative; text-align: center; color: var(--ink); }
.verses::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.verse { margin: 0; display: grid; justify-items: center; gap: var(--space-3); }
.verse-text { margin: 0; max-width: 46ch; font-size: 22px; line-height: 2.1; text-wrap: balance; overflow-wrap: anywhere; }
.verse-ref { color: var(--gold-text); font: 600 14px/24px var(--font-sans); }
.verse-ref cite { font-style: normal; }
.verse-ref::before { content: ""; display: block; width: 40px; height: 1px; background: var(--gold); margin: 0 auto var(--space-2); }
@media (min-width: 768px) { .verse-text { font-size: 28px; } .verses { padding: var(--space-12) var(--space-12) var(--space-6); } }

/* ---------- video + mosque info (sand surface; deep only for the video frame) ---------- */
.about { background: var(--surface-tint); color: var(--ink); padding-block: calc(var(--space-12) + var(--space-8)) var(--space-12); }
.about-grid { display: grid; gap: var(--space-6); grid-template-areas: "head" "video" "facts" "actions"; }
.about-head { grid-area: head; }
.about-video { grid-area: video; min-width: 0; }
.about-facts { grid-area: facts; }
.about-actions { grid-area: actions; }
.about .sh-eyebrow { color: var(--gold-text); }
.about .t-h2 { text-wrap: balance; color: var(--brand-dark); margin-block: var(--space-2) 0; }
.about .divider-gold { background: var(--gold); width: 56px; height: 1px; border: 0; margin-block: var(--space-4); }
.about-intro { margin: 0; font-size: 16px; line-height: 32px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.about-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.about-facts li { display: flex; gap: var(--space-3); align-items: flex-start; }
.about-facts li:empty { display: none; }
.about-facts .icon { color: var(--brand); margin-top: 4px; }
.about-facts span { display: grid; font-size: 16px; line-height: 24px; color: var(--ink); }
.about-facts b { font-weight: 600; font-size: 13px; color: var(--ink-muted); }
.about-facts a { color: var(--brand-dark); }
.about-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.about .video-frame { background: var(--surface-deep); border: 1px solid var(--gold); color: var(--gold-on-deep); isolation: isolate; border-radius: var(--radius-lg); overflow: hidden; }
.about .video-frame::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; background: currentColor;
  -webkit-mask: url("../img/pattern-star.4cf03b4ab24b.svg") 0 0/72px 72px; mask: url("../img/pattern-star.4cf03b4ab24b.svg") 0 0/72px 72px; }
.about .playlist a { flex-basis: 13rem; }
.about .play span { background: var(--brand); border: 2px solid var(--on-deep); }
@media (min-width: 1024px) {
  .about { padding-block: calc(var(--space-16) + var(--space-8)) var(--space-16); }
  .about-grid { column-gap: var(--space-12); row-gap: var(--space-6); align-items: start; grid-template-columns: 5fr 7fr;
    grid-template-areas: "head video" "facts video" "actions video"; grid-template-rows: auto auto 1fr; }
  .about-video { align-self: center; grid-row: 1 / -1; }
  .about-grid.no-video { grid-template-columns: minmax(0, 40rem); grid-template-areas: "head" "facts" "actions"; justify-content: start; }
}
.about-grid.no-video { grid-template-areas: "head" "facts" "actions"; }

/* full-width photo break */
.photo-break { position: relative; height: clamp(260px, 42vw, 460px); overflow: hidden; background: var(--surface-deep); color: var(--on-deep); }
.photo-break img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-break::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, var(--scrim) 0%, transparent 70%); }
.photo-break-copy { position: relative; z-index: 1; height: 100%; display: grid; align-content: center; gap: var(--space-2); }
.photo-break-copy p { margin: 0; color: var(--on-deep); max-width: 22ch; }

/* ---------- shared home bits ---------- */
.home-block { margin-top: var(--space-8); }
.home-more { display: flex; gap: var(--space-6); justify-content: flex-end; margin: var(--space-6) 0 0; }
.section-tint .sh-center { text-align: center; }

/* ---------- support band ---------- */
.support-wrap { padding-block: 0 var(--space-16); }
.support { color: var(--gold); background: var(--surface-tint); border: 1px solid var(--gold); border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-6); align-items: center; overflow: hidden; }
.support > * { color: var(--ink); }
.support::before { border-radius: var(--radius-lg); }
.support-text .t-h2 { margin-bottom: var(--space-2); }
.support-text .t-body { margin: 0; color: var(--ink-muted); }
.support-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
@media (min-width: 768px) {
  .support { grid-template-columns: 1fr auto; padding: var(--space-12); }
}

/* legacy public.css rules keep the mobile nav strip always open; closed until the toggle opens it */
@media (max-width: 899px) { .nav-mobile:not(.is-open) { display: none; } }

/* video cover: neutral star-pattern tile shows behind the image, so a missing thumbnail still looks intentional */
.about .video-frame { color: var(--gold-on-deep); isolation: isolate; }
.about .video-frame::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; background: currentColor;
  -webkit-mask: url("../img/pattern-star.4cf03b4ab24b.svg") 0 0/72px 72px; mask: url("../img/pattern-star.4cf03b4ab24b.svg") 0 0/72px 72px; }

/* champions: centred header with a gold rule */
.home-champs .sh-center::after { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin-top: var(--space-2); }

/* section links meet the 44px target */
.section .more-link { display: inline-flex; align-items: center; min-height: 44px; }
.home-more { justify-content: center; }
@media (min-width: 900px) { .eg-two .eg { grid-template-columns: 1fr 1fr; } }

/* champions: mihrab-arch cards, section overlaps the one above and sits on a slanted sand band */
.home-champs { background: var(--surface-tint); clip-path: polygon(0 var(--space-8), 100% 0, 100% calc(100% - var(--space-8)), 0 100%); margin-block: calc(-1 * var(--space-6)); padding-block: calc(var(--space-16) + var(--space-8)); }
.home-champs .comp-champ { border-radius: 999px 999px var(--radius-lg) var(--radius-lg); padding-block-start: var(--space-12); }
.home-champs .comp-champ[data-place="1"] { border-color: var(--gold); padding-block-start: var(--space-16); }
@media (min-width: 768px) { .home-champs .comp-champs { align-items: end; } .home-champs .comp-champs li:nth-child(2) { order: -1; } }

/* palette ratio (70 / 20 / 10): ivory+sand neutrals dominate, deep green is reserved for headings and the footer, gold for hairlines */
.section .t-h2, .comp-head h1, .ct h1 { color: var(--brand-dark); }
.about-prayer .next-prayer { background: var(--surface-card); }
/* verse ornament: small eight-point star above the text, picked from the project's own pattern */
.verses::after { content: ""; position: absolute; inset-block-start: -14px; inset-inline: 0; margin-inline: auto; width: 28px; height: 28px; background: var(--gold);
  -webkit-mask: url("../img/pattern-star.4cf03b4ab24b.svg") center/72px 72px; mask: url("../img/pattern-star.4cf03b4ab24b.svg") center/72px 72px; }

/* support band with the owner's photo: ivory veil keeps the text at AA and the picture reads as a quiet texture */
.mosque-img { filter: saturate(.8) sepia(.14); }
.support-photo { position: relative; isolation: isolate; background: var(--surface-tint); }
.support-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.support-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--surface) 70%, transparent); }

/* Motion layer: welcome gate, view transitions, skeletons, micro-interactions. Tokens only.
   Everything animated is wrapped in no-preference; reduced motion gets the final state instantly. */

/* ---------- welcome gate (once per session; class set by the inline script in base_public.html) ---------- */
.welcome-gate { display: none; }
.welcome .welcome-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: var(--space-3);
  background: var(--surface); color: var(--brand-dark); text-align: center; pointer-events: none;
  animation: welcome-out 1.15s cubic-bezier(.4, 0, .2, 1) forwards; }
.welcome-gate img { width: auto; height: 84px; animation: welcome-rise .6s ease-out both; }
.welcome-gate p { margin: 0; font: 700 28px/40px var(--font-heading); animation: welcome-rise .6s .12s ease-out both; }
.welcome-gate small { font: 500 14px/24px var(--font-sans); color: var(--ink-muted); animation: welcome-rise .6s .2s ease-out both; }
.welcome-rule { width: 56px; height: 1px; background: var(--gold); transform-origin: center; animation: welcome-line .7s .1s ease-out both; }
.welcome-skip { position: absolute; inset-block-end: var(--space-8); inset-inline: 0; margin-inline: auto; width: max-content; pointer-events: auto;
  min-height: 44px; padding-inline: var(--space-6); border-radius: var(--radius-pill); border: 1px solid var(--border-control); background: var(--surface-card);
  color: var(--ink); font: 600 14px var(--font-sans); cursor: pointer; }
@keyframes welcome-out { 0%, 72% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes welcome-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes welcome-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.welcome-done .welcome-gate { display: none; }
@media (prefers-reduced-motion: reduce) { .welcome .welcome-gate { display: none; } }

/* ---------- page transitions (native View Transitions API; unsupported browsers just navigate) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .18s ease-in both; }
  ::view-transition-new(root) { animation: vt-in .32s .04s ease-out both; }
  ::view-transition-group(*) { animation-duration: .38s; animation-timing-function: cubic-bezier(.3, .7, .2, 1); }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
}

/* ---------- skeletons: calm pulse, no gradients ---------- */
.sk { display: block; background: var(--surface-tint); border-radius: var(--radius-sm); min-height: 1rem; }
.sk-circle { border-radius: 50%; }
.sk-line { height: 14px; }
.sk-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); background: var(--surface-card); min-height: 56px; }
.sk-row:last-child { border-bottom: 0; }
.sk-rows { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.sk-block { height: 160px; border-radius: var(--radius-lg); }
@media (prefers-reduced-motion: no-preference) { .sk { animation: sk-pulse 1.3s ease-in-out infinite; } }
@keyframes sk-pulse { 50% { opacity: .45; } }
[data-loading] { position: relative; }
[aria-busy="true"] > :not(.sk-rows):not(.sk-block) { opacity: .55; transition: opacity .15s; }

/* ---------- micro-interactions (restrained) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background .2s, color .2s, border-color .2s, transform .12s; }
  .btn:active { transform: scale(.97); }
  .btn-primary:hover .icon { animation: heart-beat .5s ease-out; }
  @keyframes heart-beat { 40% { transform: scale(1.18); } }
  .pc, .comp-champ, .comp-row { transition: transform .25s, box-shadow .25s; }
  .pc:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised); }
  .pc-media img { transition: transform .6s ease-out; }
  .pc:hover .pc-media img { transform: scale(1.04); }
  .nav-desktop a { transition: color .2s, border-color .2s; }
}

/* next-prayer chip in the header: one line, hidden when the row gets tight */
.next-prayer { white-space: nowrap; }
.nav-prayer { display: none; }
@media (min-width: 1100px) { .nav-prayer { display: inline-flex; } }
.js .has-hero .site-header:not(.is-solid) .next-prayer { background: var(--glass-fill); color: var(--on-deep); border-color: var(--glass-border); }
.js .has-hero .site-header:not(.is-solid) .next-prayer-left { color: var(--on-deep-muted); }

/* Prayer times page. The ONE page allowed glass (docs/07 exception). Tokens only, no hex, no sharp corners. */
.pt-page{
  position:relative;isolation:isolate;min-height:100vh;color:var(--on-deep);
  background-color:var(--surface-deep);
  background-image:var(--pt-bg,none);background-size:cover;background-position:center;
  padding-block:var(--space-24) var(--space-16);
}
.pt-page::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--scrim)} /* AA scrim over any photo */
.pt-inner{display:grid;gap:var(--space-6);max-width:46rem}
.pt-head{text-align:center;display:grid;gap:var(--space-2)}
.pt-eyebrow{margin:0;color:var(--gold-on-deep);font-weight:600;font-size:14px}
.pt-title{font-size:34px;line-height:46px;color:var(--on-deep)}
.pt-glass{
  background:var(--glass-fill);border:1px solid var(--glass-border);border-radius:var(--radius-lg);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);padding:var(--space-6);
}
.pt-h2{font:700 22px/34px var(--font-heading);margin:0 0 var(--space-3);color:var(--on-deep)}
.pt-next{text-align:center;display:grid;gap:var(--space-1)}
.pt-next>*{margin:0}
.pt-next-label{font:600 14px/24px var(--font-sans);color:var(--gold-on-deep)}
.pt-next-name{font:700 44px/1.2 var(--font-heading)}
.pt-next-time{font:600 22px/32px var(--font-sans);color:var(--on-deep-muted)}
.pt-next-left{font-size:16px;color:var(--on-deep-muted)}
.pt-count{display:inline-block;direction:ltr;font:700 40px/1.3 var(--font-heading);color:var(--on-deep);margin-inline-start:var(--space-2)}
.num{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}
.pt-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-2)}
.pt-row{display:flex;justify-content:space-between;align-items:center;min-height:56px;padding:var(--space-2) var(--space-4);
  border-radius:var(--radius-md);border:1px solid transparent}
.pt-row-name{font-weight:600}
.pt-row-time{font-size:18px}
.pt-row.is-sun{color:var(--on-deep-muted)}
.pt-row.is-current{background:var(--glass-fill);border-color:var(--gold-on-deep);color:var(--on-deep)}
.pt-row.is-current .pt-row-name::after{content:" · الآن";color:var(--gold-on-deep);font-weight:600}
.pt-summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap;font:700 18px/28px var(--font-heading);border-radius:var(--radius-md);list-style:none}
.pt-summary::-webkit-details-marker{display:none}
.pt-summary-hint{font:400 13px/20px var(--font-sans);color:var(--on-deep-muted)}
.pt-summary:focus-visible,.pt-table-wrap:focus-visible{outline:2px solid var(--on-deep);outline-offset:2px}
/* the table scrolls inside its own frame, so the header row can stay put while the days pass */
.pt-table-wrap{margin-top:var(--space-3);max-height:min(70vh,36rem);overflow:auto;border-radius:var(--radius-md);border:1px solid var(--glass-border);scrollbar-width:thin;scrollbar-color:var(--glass-border) transparent}
.pt-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;text-align:center;font-size:15px}
.pt-table th,.pt-table td{padding:var(--space-2) var(--space-1);border-bottom:1px solid var(--glass-border);font-weight:400}
.pt-table thead th{position:sticky;top:0;z-index:2;background:var(--surface-deep);color:var(--gold-on-deep);font:600 13px/20px var(--font-sans);padding-block:var(--space-3)}
.pt-day-col{width:4.25rem}
.pt-table td{white-space:nowrap}
.pt-t{font-weight:600}
.pt-ap{display:block;font-size:11px;line-height:14px;color:var(--on-deep-muted)}
.pt-day{font-weight:400}
.pt-day-in{display:grid;justify-items:center}
.pt-day b{font:700 17px/22px var(--font-heading)}
.pt-day small{font-size:11px;line-height:16px;color:var(--on-deep-muted);white-space:nowrap}
.pt-table tbody tr:last-child>*{border-bottom:0}
.pt-table tr.is-past td,.pt-table tr.is-past th{opacity:.62}
.pt-table tr.is-friday>*{background:var(--glass-fill)}
.pt-table tr.is-friday .pt-day small{color:var(--gold-on-deep);font-weight:600}
.pt-table tr.is-today>*{background:var(--on-deep);color:var(--surface-deep);opacity:1}
.pt-table tr.is-today .pt-ap,.pt-table tr.is-today .pt-day small{color:var(--brand-dark);font-weight:600}
.pt-table tr.is-today>*:first-child{border-start-start-radius:var(--radius-md);border-end-start-radius:var(--radius-md)}
.pt-table tr.is-today>*:last-child{border-start-end-radius:var(--radius-md);border-end-end-radius:var(--radius-md)}
@media (max-width:639px){
  .pt-glass.pt-month{padding:var(--space-4)}
  .pt-table{font-size:13px}.pt-table th,.pt-table td{padding-inline:2px}
  .pt-day-col{width:3.4rem}.pt-table thead th{font-size:12px}.pt-day b{font-size:15px}
  .pt-summary-hint{display:none}
}
.pt-note{margin:0;text-align:center;font-size:14px;color:var(--on-deep-muted);border:1px solid var(--glass-border);border-radius:var(--radius-pill);padding:var(--space-2) var(--space-4)}
.pt-note-quiet{border-color:transparent}
.pt-empty{text-align:center}
@media (max-width:640px){.pt-page{padding-block:var(--space-16) var(--space-12)}.pt-next-name{font-size:36px}.pt-count{font-size:32px}}
@supports not (backdrop-filter:blur(1px)){.pt-glass{background:var(--scrim)}}
/* compact header/home widget; colors adapt to its container */
.next-prayer{display:inline-flex;gap:var(--space-2);align-items:center;padding:4px var(--space-3);border-radius:var(--radius-pill);
  background:var(--surface-brand-soft);color:var(--brand-dark);font-size:14px;text-decoration:none;min-height:32px;white-space:nowrap}
.next-prayer:hover{color:var(--brand-dark)}
.next-prayer-name{font-weight:600}
.next-prayer-left{color:var(--ink-muted)}

.ct { padding-block: var(--space-12); }
.ct-inner { max-width: 40rem; margin-inline: auto; }
.ct-lead { color: var(--ink-muted); }
.ct-ok { background: var(--surface-brand-soft); color: var(--brand-dark); margin-block: var(--space-4); display: flex; gap: var(--space-2); align-items: center; }
.ct-form { margin-block-start: var(--space-6); }
.ct-hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ct-row { margin-block-end: var(--space-2); }

/* Public site: glass over photos, floating curved navigation, inset curved panels. Tokens only.
   Glass is used ONLY on top of photographs (docs/07 §10); never on plain surfaces and never in the staff area. */

/* ---------- recipes ---------- */
.glass { background: color-mix(in srgb, var(--surface-card) 70%, transparent); border: 1px solid color-mix(in srgb, var(--surface-card) 40%, transparent);
  border-radius: var(--radius-lg); color: var(--ink); box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.glass-dark { background: color-mix(in srgb, var(--surface-deep) 56%, transparent); border: 1px solid color-mix(in srgb, var(--on-deep) 24%, transparent);
  border-radius: var(--radius-lg); color: var(--on-deep); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--surface-deep) 70%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--surface-card); }
  .glass-dark { background: var(--surface-deep); }
}
.glass-dark a:not(.btn) { color: var(--gold-on-deep); }
.mosque-img { filter: saturate(.82) sepia(.12); }  /* one light grade so every photo reads as one family */

/* ---------- floating capsule navigation ---------- */
header.site-header.glass-nav { position: fixed; top: 14px; inset-inline: 12px; max-width: 1200px; margin-inline: auto; z-index: 60; border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--on-deep) 28%, transparent); background: color-mix(in srgb, var(--surface-deep) 52%, transparent); color: var(--on-deep);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--surface-deep) 70%, transparent);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease; }
header.site-header .site-header-row { width: auto; margin: 0; min-height: 64px; padding-inline: var(--space-4); gap: var(--space-4); transition: min-height .25s ease; }
header.site-header.is-shrunk .site-header-row { min-height: 54px; }
header.site-header.is-shrunk { box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--surface-deep) 78%, transparent); }
header.site-header.glass-nav .nav-desktop a { color: var(--on-deep); border-bottom-color: transparent; }
header.site-header.glass-nav .nav-desktop a:hover, header.site-header.glass-nav .nav-desktop a[aria-current="page"] { color: var(--gold-on-deep); border-bottom-color: var(--gold-on-deep); }
header.site-header.glass-nav .nav-toggle { color: var(--on-deep); }
header.site-header.glass-nav .btn-secondary { background: color-mix(in srgb, var(--on-deep) 12%, transparent); color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 32%, transparent); }
header.site-header.glass-nav .logo-plate { background: var(--surface-card); padding: 3px 14px; }
/* light version once the page is past its photo header */
header.site-header.glass-nav.is-solid { background: color-mix(in srgb, var(--surface-card) 70%, transparent); border-color: color-mix(in srgb, var(--surface-card) 40%, transparent); color: var(--ink); }
header.site-header.glass-nav.is-solid .nav-desktop a, header.site-header.glass-nav.is-solid .nav-toggle { color: var(--ink); }
header.site-header.glass-nav.is-solid .nav-desktop a:hover, header.site-header.glass-nav.is-solid .nav-desktop a[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--gold); }
header.site-header.glass-nav.is-solid .btn-secondary { background: var(--surface-card); color: var(--ink); border-color: var(--border-control); }
header.site-header.glass-nav.is-solid .next-prayer { background: var(--surface-brand-soft); color: var(--brand-dark); border-color: transparent; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.site-header.glass-nav { background: var(--surface-deep); }
  header.site-header.glass-nav.is-solid { background: var(--surface-card); }
}
@media (max-width: 899px) {
  header.site-header.glass-nav { top: 10px; }
  header.site-header .site-header-row { min-height: 56px; }
  .nav-login { display: none; }
  .nav-donate span { display: none; }
  .nav-donate { padding-inline: var(--space-3); }
}
/* mobile menu: a large glass sheet over the page */
.nav-mobile { position: fixed; inset: 10px; z-index: 70; display: none; align-content: start; gap: var(--space-2); padding: var(--space-16) var(--space-6) var(--space-6); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-deep) 84%, transparent); overflow-y: auto; }
.nav-mobile.is-open { display: grid; }
.nav-mobile[hidden] { display: none; }
.nav-mobile a:not(.btn) { color: var(--on-deep); font: 700 22px/32px var(--font-heading); text-decoration: none; min-height: 52px; display: flex; align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--on-deep) 18%, transparent); }
.nav-mobile a[aria-current="page"] { color: var(--gold-on-deep); }
.nav-mobile .btn { margin-top: var(--space-4); justify-self: start; }
.nav-close { position: absolute; inset-block-start: var(--space-4); inset-inline-end: var(--space-4); background: color-mix(in srgb, var(--on-deep) 12%, transparent); color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 30%, transparent); }
html.nav-open { overflow: hidden; }
@media (min-width: 900px) { .nav-mobile, .nav-mobile.is-open { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .nav-mobile.is-open { animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
}

/* ---------- inset curved panels ---------- */
.panel { position: relative; isolation: isolate; margin: var(--space-3); border-radius: var(--radius-panel, 36px); overflow: hidden; }
:root { --radius-panel: 36px; }
.panel-sand { background: var(--surface-tint); }
.panel-ivory { background: var(--surface-card); }
.panel-photo { background: var(--surface-deep); color: var(--on-deep); }
.panel-photo > .panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.panel-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--surface-deep) 66%, transparent); }  /* scrim: AA for text over any photo */
.panel-pad { padding-block: var(--space-16); }
@media (max-width: 767px) { .panel { --radius-panel: 28px; margin: var(--space-2); } .panel-pad { padding-block: var(--space-12); } }
.wave { display: block; width: 100%; height: clamp(28px, 5vw, 64px); margin-block: -1px; }
.wave path { fill: currentColor; }

/* inner page header */
.page-hero { position: relative; isolation: isolate; margin: var(--space-3); border-radius: var(--radius-panel); overflow: hidden; background: var(--surface-deep); color: var(--on-deep);
  min-height: 320px; display: grid; align-items: end; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--surface-deep) 60%, transparent); }
.page-hero-in { padding-block: 104px var(--space-8); display: grid; gap: var(--space-3); }
.page-hero .crumbs { color: var(--on-deep-muted); margin: 0; }
.page-hero .crumbs a { color: var(--on-deep); }
.page-hero-card { padding: var(--space-6); max-width: 40rem; display: grid; gap: var(--space-2); }
.page-hero-card h1 { font: 700 34px/46px var(--font-heading); color: var(--on-deep); text-wrap: balance; margin: 0; }
.page-hero-lead { margin: 0; font-size: 17px; line-height: 30px; color: var(--on-deep); text-wrap: pretty; }
.page-hero-cta { margin: var(--space-2) 0 0; }
@media (min-width: 768px) { .page-hero { min-height: 360px; } .page-hero-card h1 { font-size: 44px; line-height: 60px; } .page-hero-card { padding: var(--space-8); } }
.page-hero + .container-page, .page-hero + section { margin-top: var(--space-4); }

/* pages that previously had flat tinted headers lose them: the photo header replaces them */
.comp-head, .ph, .dn, .ct { background: none; border: 0; }
.ct { padding-block: var(--space-8); }
.dn-body { padding-block: var(--space-8); }

/* glass form / donation cards sit on a photo panel */
.photo-stage { position: relative; isolation: isolate; margin: var(--space-3); border-radius: var(--radius-panel); overflow: hidden; background: var(--surface-deep); }
.photo-stage > .panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--surface-deep) 38%, transparent); }
.photo-stage .ct-inner, .photo-stage .dn-body-in { padding-block: var(--space-12); }
.glass-form { padding: var(--space-6); }
.glass-form .field label, .glass-form .field-label { color: var(--ink); }
.glass-form .input, .glass-form input:not([type=checkbox]), .glass-form select, .glass-form textarea { background: var(--surface-card); }
.glass .t-h3, .glass h2, .glass h3 { color: var(--ink); }
.nav-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--on-deep) 30%, transparent); cursor: pointer; }
.nav-close:hover { background: color-mix(in srgb, var(--on-deep) 22%, transparent); }

/* Home page, second pass: panels, glass hero + prayer screen, rhythm. Tokens only. */
body.has-hero main { padding-top: 0; }

/* ---------- hero panel ---------- */
.hero-panel { min-height: min(86vh, 760px); display: grid; align-items: end; margin-top: var(--space-3); }
.hero-panel .hero-slides { position: absolute; inset: 0; height: auto; z-index: -2; }
.hero-panel .hero-scrim { background: color-mix(in srgb, var(--surface-deep) 52%, transparent); z-index: 0; }
.hero-panel::before { display: none; }
.hero-grid { position: relative; z-index: 2; display: grid; gap: var(--space-4); padding-block: 120px var(--space-16); align-items: end; }
.hero-card { padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-3); align-content: end; max-width: 36rem; }
.hero-card .hero-label { margin: 0; color: var(--gold-on-deep); font: 600 14px/22px var(--font-sans); }
.hero-card .hero-title { margin: 0; font: 700 34px/48px var(--font-heading); color: var(--on-deep); max-width: none; text-wrap: balance; }
.hero-sub { margin: 0; color: var(--on-deep); font-size: 17px; line-height: 30px; text-wrap: pretty; }
.hero-card .hero-actions { margin-top: var(--space-2); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); gap: var(--space-8); padding-block: 140px var(--space-24); }
  .hero-card { padding: var(--space-12) var(--space-8); }
  .hero-card .hero-title { font-size: 46px; line-height: 64px; }
}
.hero-panel .hero-controls-wrap { inset-block-end: var(--space-4); }
.hero-panel .hero-controls { justify-content: flex-start; }

/* prayer "mosque screen" */
.prayer-screen { padding: var(--space-6); display: grid; gap: var(--space-3); justify-self: stretch; }
.ps-top { display: flex; align-items: baseline; gap: var(--space-2); direction: ltr; justify-content: center; }
.ps-clock { font: 700 64px/1 var(--font-heading); letter-spacing: 0; color: var(--on-deep); }
.ps-ap { font: 600 18px var(--font-sans); color: var(--gold-on-deep); }
.ps-date { margin: 0; text-align: center; font-size: 14px; color: var(--on-deep-muted); }
.ps-next { display: grid; justify-items: center; gap: 2px; padding: var(--space-3); border-radius: var(--radius-md); background: color-mix(in srgb, var(--on-deep) 10%, transparent); }
.ps-next-label { font-size: 13px; color: var(--gold-on-deep); font-weight: 600; }
.ps-next-name { font: 700 28px/38px var(--font-heading); color: var(--on-deep); }
.ps-count { font: 700 34px/1.2 var(--font-heading); color: var(--on-deep); }
.ps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ps-list li { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding-inline: var(--space-3); border-radius: var(--radius-pill); font-size: 15px; color: var(--on-deep); }
.ps-list li.is-sun { color: var(--on-deep-muted); }
.ps-list li.is-next { background: var(--on-deep); color: var(--surface-deep); font-weight: 700; }
.ps-link { justify-self: center; color: var(--gold-on-deep); font: 600 14px var(--font-sans); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- verse on glass ---------- */
.verse-panel { padding-block: var(--space-16); }
.verse-panel .verses-wrap { margin-top: 0; }
.verse-panel .verses { background: color-mix(in srgb, var(--surface-deep) 56%, transparent); color: var(--on-deep); box-shadow: none; }
.verse-panel .verses::before { border-color: var(--gold-on-deep); opacity: .7; }
.verse-panel .verses::after { background: var(--gold-on-deep); }
.verse-panel .verse-ref { color: var(--gold-on-deep); }
.verse-panel .verse-ref::before { background: var(--gold-on-deep); }

/* ---------- why: five unequal cards ---------- */
.why-head { max-width: 36rem; margin-bottom: var(--space-8); }
.why-head .t-h2 { color: var(--brand-dark); }
.why-head .divider-gold { width: 56px; height: 1px; border: 0; background: var(--gold); margin-block: var(--space-3); }
.why-head p { margin: 0; color: var(--ink-muted); }
.why-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.why-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-2); align-content: start; box-shadow: var(--shadow-card); }
.why-card .icon { width: 2rem; height: 2rem; color: var(--brand); }
.why-card h3 { margin: 0; color: var(--brand-dark); }
.why-card p { margin: 0; color: var(--ink-muted); }
.why-card-lg { background: var(--surface-brand-soft); border-color: transparent; border-radius: 40px var(--radius-lg) var(--radius-lg) var(--radius-lg); }
.why-card-wide { border-radius: var(--radius-lg) 40px var(--radius-lg) var(--radius-lg); }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(6, 1fr); } .why-card { grid-column: span 2; } .why-card-lg { grid-column: span 3; grid-row: span 2; padding: var(--space-8); } .why-card-lg h3 { font-size: 28px; line-height: 40px; } .why-card-wide { grid-column: span 3; } }

/* ---------- audiences ---------- */
.aud-grid { display: grid; gap: var(--space-4); }
.aud-card { margin: 0; min-height: 360px; display: grid; align-items: end; --radius-panel: 40px; }
.aud-in { padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-3); }
.aud-in h2 { color: var(--on-deep); }
.aud-in ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-1); font-size: 16px; }
.aud-in li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-on-deep); margin-inline-end: var(--space-2); }
.aud-in .btn { justify-self: start; }
@media (min-width: 900px) { .aud-grid { grid-template-columns: 1fr 1fr; } .aud-card { margin: 0; min-height: 420px; } }

/* ---------- about + video panel ---------- */
.about-panel { background: var(--surface-deep); padding-block: var(--space-12); }
.about-panel::before { background: color-mix(in srgb, var(--surface-deep) 40%, transparent); }
.about-panel .about-grid { padding: var(--space-6); }
.about-panel .t-h2, .about-panel .about-intro, .about-panel .about-facts span, .about-panel .about-facts a { color: var(--ink); }
.about-panel .sh-eyebrow { color: var(--gold-text); }
.about-panel .glass .about-head { padding: 0; }
@media (min-width: 1024px) { .about-panel .about-grid { padding: var(--space-8); } }

/* ---------- how it works ---------- */
.how-title { color: var(--on-deep); margin-bottom: var(--space-6); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: s; }
.how-steps li { padding: var(--space-6); display: grid; gap: var(--space-2); align-content: start; }
.how-steps b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-on-deep); color: var(--surface-deep); font: 700 20px var(--font-heading); }
.how-steps h3 { margin: 0; color: var(--on-deep); }
.how-steps p { margin: 0; color: var(--on-deep); }
@media (min-width: 900px) { .how-steps { grid-template-columns: repeat(4, 1fr); } .how-steps li:nth-child(even) { margin-top: var(--space-8); } }

/* ---------- panels that were full-bleed bands ---------- */
.home-champs { clip-path: none; margin-block: var(--space-3); padding-block: var(--space-16); background: var(--surface-tint); }
.support-wrap { padding-block: 0 var(--space-3); }
.support { border-radius: 40px; }
.site-footer { margin: var(--space-3); border-radius: 40px; padding-inline: 0; }
.photo-break { display: none; }
@media (max-width: 767px) { .hero-panel { min-height: 0; } .hero-grid { padding-block: 104px var(--space-12); } .site-footer, .support { border-radius: 28px; } }

.aud-in h2.t-h2, .how-title.t-h2 { color: var(--on-deep); }
.section .aud-in h2 { color: var(--on-deep); }

/* soft curved dividers between sections (decorative SVG, colour from the next panel) */
.wave-div { color: var(--surface-tint); height: clamp(28px, 5vw, 56px); margin-block: calc(-1 * var(--space-2)); }
.wave-div svg { display: block; width: 100%; height: 100%; }
.wave-div path { fill: currentColor; }
.wave-flip svg { transform: scaleY(-1); }

/* ---------- full-screen backgrounds ----------
   The main photo/tint backgrounds run edge to edge. Each one is a rounded panel that is made wider than the screen
   (and starts above it when it is the first block), so its curved corners sit outside the viewport and the visible
   result covers the whole screen. The page clips the overshoot, so nothing scrolls sideways. */
:root { --bleed: 48px; }
html, body { overflow-x: clip; }
.panel, .page-hero, .photo-stage { margin-inline: calc(-1 * var(--bleed)); padding-inline: var(--bleed); margin-block: 0; }
.panel, .photo-stage { border-radius: var(--radius-panel); }
.hero-panel, .page-hero, .contact-stage { margin-top: calc(-1 * var(--bleed)); padding-top: var(--bleed); }
.hero-panel { min-height: min(92vh, 800px); }
.hero-panel .hero-grid { padding-top: calc(120px); }
.page-hero { border-radius: var(--radius-panel); }
.page-hero.is-bare { background: none; margin: 0; padding: 0; border-radius: 0; min-height: 0; }
.page-hero.is-bare::before { display: none; }
.contact-stage .ct { padding-block: var(--space-4) var(--space-12); }
.contact-stage .page-hero-in { padding-top: 120px; }
.contact-stage .page-hero-card { background: color-mix(in srgb, var(--surface-deep) 56%, transparent); }
/* the audience cards and the support band are content cards, not page backgrounds */
.aud-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 40px; background: var(--surface-deep); color: var(--on-deep); }
.aud-card > .panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.aud-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--surface-deep) 66%, transparent); }
.site-footer { margin: 0; border-radius: 0; }
.wave-div { margin-block: 0; }
@media (max-width: 767px) { .aud-card { border-radius: 28px; } }
main { overflow-x: clip; }
main { display: flow-root; }  /* keep the first panel's negative top margin inside <main> (no collapse through it) */

/* verse line (competition) and the charity dedication */
.verse-line { margin: var(--space-4) auto var(--space-6); max-width: 40rem; text-align: center; padding: var(--space-4) var(--space-6); background: var(--surface-card); border: 1px solid var(--gold); border-radius: var(--radius-lg); }
.verse-line blockquote { margin: 0; }
.verse-line .t-quran { margin: 0; font-size: 26px; line-height: 2; color: var(--ink); text-wrap: balance; }
.verse-line figcaption { color: var(--gold-text); font: 600 14px/24px var(--font-sans); }
.dedication { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin: var(--space-4) 0 0; text-align: center; color: var(--gold-text); font: 600 15px/26px var(--font-sans); text-wrap: balance; }
.dedication .icon { width: 1.1em; height: 1.1em; flex: none; }
.site-footer .dedication { color: var(--gold-on-deep); border-top: 1px solid var(--glass-border); padding-top: var(--space-6); margin-top: var(--space-8); }
.dedication-card { padding: var(--space-3) var(--space-6); max-width: 44rem; margin: var(--space-4) auto 0; }
.dedication-card .dedication { margin: 0; color: var(--ink); }
.auth .dedication { margin-top: var(--space-6); }
