/* Shared controls are scoped to avoid changing form selectors or account permissions. */
.preferences-wrap{width:min(1180px,92%);margin:0 auto;padding:0 0 11px;flex-basis:100%;min-width:0}.site-preferences{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.site-preferences .preference-language{display:flex;align-items:center;gap:8px;margin:0;font:10px/1.4 Arial,sans-serif;color:#687b5c}.site-preferences select{width:auto;min-width:110px;min-height:36px;margin:0;padding:7px 24px 7px 10px;background:#fffdf7;border:1px solid #d7dfcc;border-radius:9px;font:11px Arial,sans-serif;color:#31523a;direction:ltr}.site-preferences button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;margin:0;padding:7px 12px;background:#fffdf7;border:1px solid #d7dfcc;border-radius:9px;font:11px Arial,sans-serif;color:#31523a;cursor:pointer}.site-preferences .theme-symbol{font-size:17px;line-height:1}.site-preferences :focus-visible{outline:3px solid #b49a57;outline-offset:3px}.top>.preferences-wrap,header:not(.header)>.preferences-wrap{width:100%;padding:0;margin:10px 0 0}header.top,body>header:has(>.preferences-wrap){flex-wrap:wrap}
html[data-theme=dark]{color-scheme:dark;--green:#4b805c;--ink:#e1ebdb;--muted:#a3b59a;--line:#354a38;--paper:#101a14}
html[data-theme=dark] body{background:#101a14;color:#dce8d6}
html[data-theme=dark] :is(.header,header.top,body>header,.footer){background:#132018;border-color:#344536;color:#e5eddd}
html[data-theme=dark] :is(.panel,.school-panel.academy,.academy-content,.about,.news-section,.islamic-news,.modal,.sidebar,.auth,.auth-box,.welcome,.card,.empty,.table-wrap,.policy-editor,.audit-item,.contact-page){background:#18271e!important;color:#dfebd9;border-color:#354b38!important}
html[data-theme=dark] :is(h1,h2,h3,.brand strong,.directory-heading h2,.academy-catalog-heading h3,.profile-details dd){color:#ecf3e4}
html[data-theme=dark] :is(.kicker,.eyebrow,.muted,.local-note,.hint,.prayer-label,.prayer-date,.prayer-row span,.strip-slot span,.strip-next small,.view-switch,.islamic-news-heading p,.islamic-news-meta,.feed-meta,.auth-box p,.academy-help p,.section-page-heading>a){color:#b0c0a3}
html[data-theme=dark] :is(.panel-body p,.about p,.contact-page p,.donation-page p,.news-heading p,.feed-copy p,.footer-service-grid p,.sidebar small){color:#b7c7ac}
html[data-theme=dark] :is(input,select,textarea){background:#101e16;color:#e9f1e3;border-color:#435a43}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#8fa287}
html[data-theme=dark] :is(input[readonly],.enrollment-course,.audit-item pre){background:#203324;color:#c6d5bb}
html[data-theme=dark] :is(.btn,.primary){background:#326346;color:#f3f8ec;border-color:#4b7c51}
html[data-theme=dark] :is(.btn-light,.light,.icon-btn,.view-switch,.admin-entry,.news-filter,.course-tab,.side-links button,.side-nav button,.toolbar button,.tabs button,#policy-list button){background:#203425;color:#d7e6cc;border-color:#425c42}
html[data-theme=dark] :is(.course-tab[aria-pressed=true],.news-filter[aria-pressed=true],.side-nav [aria-current=true],.tabs [aria-selected=true],#policy-list [aria-current=true]){background:#426441;color:#fff7da}
html[data-theme=dark] :is(.header .prayer-strip,.islamic-news-item,.useful-panel,.zakat-widget,.kindness-widget,.mini-art,.academy-help,.stats>div,.person-rule,.people-results>div){background:#203324!important;border-color:#3b523c;color:#d8e5ce}
html[data-theme=dark] :is(.prayer-row strong,.strip-slot strong,.strip-next strong,.prayer-strip-label strong,.islamic-news-item h3,.academy-help h3,.academy-help a,.footer-service-grid a){color:#e1edcf}
html[data-theme=dark] :is(.prayer-row.is-next,.strip-slot.is-next,.result){background:#344a2e!important;border-color:#60734c;color:#e6f2d3}
html[data-theme=dark] :is(.app-bottom-nav,.mobile-edition .app-bottom-nav){background:#15251cf2;border-color:#425a40;color:#d9e8cc}
html[data-theme=dark] :is(.app-bottom-nav a,.app-bottom-nav button,.mobile-edition .app-bottom-nav a,.mobile-edition .app-bottom-nav button){color:#b4c7a5}
html[data-theme=dark] .app-bottom-nav [aria-current=page]{background:#30472b;color:#f3e7bc}
html[data-theme=dark] .donation-page{background:linear-gradient(125deg,#302e20,#233021)!important;border-color:#6e633f!important}
html[data-theme=dark] .donation-page h2{color:#f2dfaa}
html[data-theme=dark] .footer-giving-button{background:#d9c18a;color:#243d2b!important}
html[data-theme=dark] :is(.site-preferences select,.site-preferences button){background:#203425;color:#e2eccf;border-color:#466044}
html[data-theme=dark] .site-preferences label{color:#b4c3a7}
html[data-theme=dark] :is(td,th,.mini-faq,.prayer-settings,.footer-base){border-color:#354c39}
html[data-theme=dark] th{color:#b8c7ac}
html[data-theme=dark] .error{color:#ffae9d!important}
html[data-theme=dark] .side-banner{color:#e6eedc}
html[data-theme=dark] .ambient-decor{opacity:.5}
html[dir=rtl] body{text-align:right}
html[lang=ar] :is(h1,h2,h3,.brand strong,.tile-copy strong){font-family:Tahoma,Arial,sans-serif}
html[lang=ar] .directory-card .tile-copy strong{line-height:1.4}
html[dir=rtl] :is(.prayer-countdown,#prayer-countdown,#strip-next-time,.strip-slot strong,.prayer-row strong,input[type=email],input[type=tel],input[type=number],input[type=password]){direction:ltr;unicode-bidi:isolate}
html[dir=rtl] .site-preferences select{padding:7px 10px 7px 24px}
html[dir=rtl] :is(.main-nav,.side-nav,.footer-links,.section-page-heading,.modal,.policy-editor,.table-wrap){text-align:right}
html[dir=rtl] .strip-next{border-left:0;border-right:1px solid #73856344;padding-left:0;padding-right:16px;margin-left:0;margin-right:auto}
html[dir=rtl] .tile-arrow{right:auto;left:12px}
html[dir=rtl] .access-badge{left:auto;right:6px}
html[dir=rtl] .academy-watermark{right:auto;left:-7px}
html[dir=rtl] .side-links button:after{margin-left:0;margin-right:auto}
html[dir=rtl] .profile-details{direction:rtl}
@media(max-width:720px){.preferences-wrap{padding-bottom:9px}.site-preferences{gap:6px;justify-content:flex-end}.site-preferences .preference-language{font-size:9px;gap:6px}.site-preferences select{min-width:100px;min-height:35px;font-size:10px}.site-preferences button{min-height:35px;font-size:10px;padding:7px 10px}html[dir=rtl] .header .strip-next{padding-right:8px}.top>.preferences-wrap{margin-top:7px}html[lang=ar] .directory-card .tile-copy strong{font-size:15px}html[lang=ar] .directory-card.tile-school .tile-copy strong{font-size:13px}html[lang=ar] .directory-card.tile-sadaqa .tile-copy strong{font-size:15px}}
@media(prefers-reduced-motion:reduce){.site-preferences *{transition:none!important}}

/* Compact controls in the former search position. */
.actions>.preferences-wrap{width:auto;margin:0;padding:0;flex-basis:auto}.site-preferences{flex-wrap:nowrap;gap:5px;direction:ltr}.language-buttons{display:flex;gap:2px}.site-preferences button{min-width:30px;min-height:34px;padding:5px;border:0;background:transparent;font:10px Arial,sans-serif}.site-preferences [data-language][aria-pressed=true]{background:#dfe8d7;color:#234d39;border-radius:7px;font-weight:bold}.site-preferences #site-theme-toggle{min-width:32px;border:1px solid #c4d1bf}.site-preferences .theme-symbol{font-size:21px}html[data-theme=dark] .site-preferences button{color:#dbe9d3}html[data-theme=dark] .site-preferences [data-language][aria-pressed=true]{background:#36523d;color:#fff}
@media(max-width:720px){.header .actions{gap:7px}.header .brand img{width:36px;height:36px}.header .brand strong{font-size:18px}.header .brand small{display:none}.header .brand{gap:6px}.header .actions>.btn{font-size:9px;padding:7px;min-height:32px}.site-preferences button{min-width:25px;min-height:32px;font-size:9px}.site-preferences{gap:3px}.site-preferences #site-theme-toggle{min-width:27px}.language-buttons{gap:0}.header .topbar{column-gap:7px!important}}
