:root {
  --blue: #074460;
  --blue-deep: #05374e;
  --blue-soft: #eaf3f6;
  --mint: #5da491;
  --mint-dark: #3f8774;
  --mint-soft: #e8f3f0;
  --white: #ffffff;
  --ink: #123747;
  --muted: #5d7480;
  --line: #d9e7eb;
  --surface: #f6fafb;
  --shadow: 0 24px 70px rgba(7, 68, 96, .12);
  --radius: 24px;
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.55; }
html[dir="rtl"] body { font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(93, 164, 145, .4); outline-offset: 3px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--blue); font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif; font-weight: 750; }
.shell { width: var(--shell); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.skip-link { position: fixed; z-index: 5000; inset-block-start: 10px; inset-inline-start: 10px; padding: 10px 14px; color: var(--white); background: var(--blue); border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 1200; inset-block-start: 0; min-height: 76px; background: rgba(255,255,255,.97); border-block-end: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: 0 0 auto; width: 190px; }
.brand img { width: 100%; }
.desktop-nav { display: flex; align-items: center; gap: 26px; }
.desktop-nav a { position: relative; color: var(--muted); font-size: 13px; font-weight: 720; }
.desktop-nav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -10px; height: 2px; background: var(--mint); transform: scaleX(0); transition: transform .18s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--blue); }
.desktop-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switch { display: flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.language-switch button { min-width: 36px; height: 30px; padding-inline: 8px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-size: 10px; font-weight: 800; cursor: pointer; }
.language-switch button:last-child { min-width: 58px; }
.language-switch button.active { color: var(--white); background: var(--blue); }
.menu-button { display: none; width: 40px; height: 40px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin-block: 4px; background: var(--blue); border-radius: 3px; }
.mobile-nav { display: none; padding: 14px 24px 20px; background: var(--white); border-block-start: 1px solid var(--line); }
.mobile-nav.open { display: grid; }
.mobile-nav a { padding: 11px 8px; color: var(--muted); border-block-end: 1px solid var(--line); font-weight: 700; }
.mobile-nav a.active { color: var(--blue); }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 800; line-height: 1.15; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 38px; padding: 8px 13px; font-size: 11px; }
.button-primary { color: var(--white); background: var(--blue); border-color: var(--blue); }
.button-primary:hover { background: var(--blue-deep); }
.button-mint { color: var(--white); background: var(--mint); border-color: var(--mint); }
.button-mint:hover { background: var(--mint-dark); }
.button-outline { color: var(--blue); background: var(--white); border-color: var(--blue); }
.button-outline:hover { color: var(--white); background: var(--blue); }
.full-width { width: 100%; }

.eyebrow { margin: 0 0 14px; display: flex; align-items: center; gap: 9px; color: var(--mint-dark); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow > span:first-child { width: 24px; height: 2px; background: currentColor; }
.eyebrow.light { color: #b9e0d5; }
.home-hero { min-height: 690px; position: relative; display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--blue); }
.hero-ring { position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.ring-one { width: 650px; height: 650px; inset-inline-end: -250px; inset-block-start: -280px; box-shadow: 0 0 0 90px rgba(255,255,255,.02), 0 0 0 180px rgba(255,255,255,.015); }
.ring-two { width: 320px; height: 320px; inset-inline-start: -160px; inset-block-end: -170px; box-shadow: 0 0 0 70px rgba(93,164,145,.08); }
.home-hero-inner { position: relative; z-index: 1; padding-block: 88px 75px; }
.hero-copy-centered { max-width: 900px; margin-inline: auto; text-align: center; }
.hero-copy-centered .eyebrow { justify-content: center; }
.hero-copy-centered h1 { margin: 0; color: var(--white); font-size: clamp(54px, 8vw, 94px); letter-spacing: -.04em; }
.hero-copy-centered h1 span { color: #b9e0d5; font-style: italic; font-weight: 500; }
html[dir="rtl"] .hero-copy-centered h1 span { font-style: normal; }
.hero-lead { max-width: 700px; margin: 24px auto 0; color: #d6e8ee; font-size: clamp(17px, 2vw, 21px); }
.primary-search { max-width: 1050px; margin: 42px auto 0; display: grid; grid-template-columns: minmax(230px, .75fr) minmax(310px, 1.2fr) auto; gap: 8px; padding: 10px; color: var(--ink); background: var(--white); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.search-control { min-width: 0; display: grid; gap: 3px; padding: 7px 13px; text-align: start; border-inline-end: 1px solid var(--line); }
.search-control span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.search-control input, .search-control select { width: 100%; min-height: 30px; padding: 0; color: var(--blue); background: transparent; border: 0; outline: 0; font-weight: 720; }
.search-control input::placeholder { color: #8ca0a9; }
.search-main-button { min-width: 180px; }
.location-link { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; color: #d4e8e2; background: transparent; border: 0; font-size: 11px; font-weight: 760; cursor: pointer; }
.primary-search .location-link { color: var(--mint-dark); }
.location-link.dark { color: var(--blue); }
.location-link:disabled { opacity: .6; cursor: wait; }
.privacy-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 17px auto 0; color: #bbd1d8; font-size: 11px; text-align: center; }
.trust-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 30px; margin-block-start: 35px; color: #d3e4e9; font-size: 11px; font-weight: 700; }
.trust-line > span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line > span::first-letter { color: var(--mint); }

.home-section { padding-block: 82px; }
.province-section { background: var(--white); }
.compact-section { background: var(--surface); border-block-start: 1px solid var(--line); }
.section-split-heading, .compact-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; margin-block-end: 32px; }
.section-split-heading h2, .compact-intro h2 { margin: 0; font-size: clamp(36px, 4.5vw, 58px); }
.section-split-heading > p, .compact-intro > p { max-width: 520px; margin: 0; color: var(--muted); }
.province-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.province-link { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px; color: var(--blue); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; font-weight: 800; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.province-link:hover { transform: translateY(-2px); border-color: var(--mint); box-shadow: 0 14px 30px rgba(7,68,96,.08); }
.province-link strong { width: 34px; height: 34px; display: grid; place-items: center; color: var(--white); background: var(--mint); border-radius: 50%; }
.page-link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.page-link-card { min-height: 265px; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.page-link-card:hover { transform: translateY(-3px); border-color: rgba(93,164,145,.6); box-shadow: 0 16px 36px rgba(7,68,96,.08); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--mint-dark); background: var(--mint-soft); border-radius: 15px; font-size: 24px; }
.page-link-card h3 { margin: 23px 0 8px; font-size: 23px; }
.page-link-card p { margin: 0; color: var(--muted); font-size: 14px; }
.page-link-card strong { margin-block-start: auto; padding-block-start: 18px; color: var(--mint-dark); font-size: 12px; }

.page-banner { padding-block: 88px; color: var(--white); background: var(--blue); }
.page-banner.soft-banner { color: var(--ink); background: var(--blue-soft); }
.page-banner h1 { max-width: 920px; margin: 0; color: inherit; font-size: clamp(45px, 6.5vw, 76px); letter-spacing: -.035em; }
.page-banner p:not(.eyebrow) { max-width: 720px; margin: 22px 0 0; color: #cfe2e8; font-size: 18px; }
.page-banner.soft-banner p:not(.eyebrow) { color: var(--muted); }
.narrow-hero { max-width: 940px; }
.page-banner-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.directory-search-card { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(220px, 1fr); gap: 8px; padding: 16px; color: var(--ink); background: var(--white); border-radius: 20px; box-shadow: var(--shadow); }
.directory-search-card .search-control { border: 1px solid var(--line); border-radius: 11px; }
.directory-search-card .button { min-height: 50px; }
.directory-search-card .location-link { color: var(--blue); }

.content-section { padding-block: 78px 95px; }
.notice-card { display: flex; align-items: flex-start; gap: 12px; padding: 17px 19px; color: #355f6f; background: var(--blue-soft); border: 1px solid var(--line); border-radius: 14px; }
.notice-card > span { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; color: var(--white); background: var(--mint); border-radius: 50%; font-weight: 900; }
.notice-card p { margin: 1px 0 0; }
.notice-card.slim { margin-block: 15px 20px; padding: 12px 15px; font-size: 12px; }
.section-notice { margin-block-start: 28px; }
.center-action { display: flex; justify-content: center; margin-block-start: 32px; }

.directory-section { padding-block: 34px 90px; background: var(--surface); }
.directory-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { min-height: 38px; padding: 8px 12px; color: var(--blue); background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-size: 11px; font-weight: 780; cursor: pointer; }
.filter-button:hover, .filter-button.active { color: var(--white); background: var(--mint); border-color: var(--mint); }
.filter-button.clear-filter:hover { color: var(--white); background: var(--blue); border-color: var(--blue); }
.view-toggle { display: flex; padding: 3px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.view-toggle button { padding: 7px 10px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-size: 10px; font-weight: 760; cursor: pointer; }
.view-toggle button.active { color: var(--white); background: var(--blue); }
.directory-layout { min-height: 650px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr); background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 22px 65px rgba(7,68,96,.08); }
.directory-layout.list-only { grid-template-columns: 1fr; }
.directory-layout.list-only .map-panel { display: none; }
.results-panel { max-height: 720px; padding: 22px; overflow: auto; }
.directory-loading { padding: 34px 12px; color: var(--muted); font-weight: 750; text-align: center; }
.directory-load-more { display: block; margin: 22px auto 4px; }
.results-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block-end: 15px; color: var(--muted); font-size: 11px; }
.results-meta p { margin: 0; }
.results-meta strong { color: var(--blue); font-size: 17px; }
.results-meta label { display: flex; align-items: center; gap: 8px; }
.results-meta select { color: var(--blue); background: transparent; border: 0; font-weight: 760; }
.mosque-list { display: grid; gap: 11px; }
.mosque-card { display: grid; grid-template-columns: 74px minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 16px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.mosque-card:hover { transform: translateY(-2px); border-color: var(--mint); box-shadow: 0 12px 30px rgba(7,68,96,.08); }
.mosque-visual { height: 74px; display: grid; place-items: center; color: var(--blue); background: var(--mint-soft); border-radius: 13px; font-family: Georgia, serif; font-size: 24px; }
.mosque-summary { min-width: 0; }
.mosque-summary h2 { margin: 4px 0 4px; font-size: 18px; }
.mosque-summary p { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.sample-badge { display: inline-flex; width: max-content; padding: 3px 7px; color: var(--mint-dark); background: var(--mint-soft); border-radius: 99px; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.sample-badge.light { color: var(--blue); background: var(--white); }
.tag-list, .large-tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-list span, .large-tag-list span { padding: 4px 7px; color: var(--blue); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; font-size: 9px; font-weight: 720; }
.card-action { min-width: 90px; display: grid; justify-items: end; gap: 10px; color: var(--mint-dark); font-size: 10px; font-weight: 800; text-align: end; }
.distance-label { color: var(--blue); }
.map-panel { min-height: 650px; position: relative; background: var(--blue-soft); direction: ltr; }
#map { position: absolute; inset: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px; text-align: center; }
.map-key { position: absolute; z-index: 500; inset-inline-start: 14px; inset-block-end: 14px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; background: rgba(255,255,255,.94); border-radius: 10px; box-shadow: 0 8px 22px rgba(7,68,96,.15); font-size: 10px; font-weight: 750; }
.map-key > span:first-child { width: 10px; height: 10px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 4px rgba(93,164,145,.17); }
.marker-shell { background: transparent; border: 0; }
.custom-marker { width: 36px; height: 36px; display: grid; place-items: center; color: var(--white); background: var(--mint); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 7px 16px rgba(7,68,96,.32); font-size: 9px; font-weight: 900; }
.custom-marker { line-height: 30px; text-align: center; }
.leaflet-container { font-family: inherit; }
.leaflet-tile-pane { filter: saturate(.6) brightness(1.03); }
.leaflet-popup-content-wrapper { border-radius: 13px; }
.leaflet-popup-content a { color: var(--mint-dark); font-weight: 800; }
.empty-state { padding: 80px 20px; text-align: center; }
.empty-state > span { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 15px; color: var(--mint-dark); background: var(--mint-soft); border-radius: 50%; font-size: 28px; }
.empty-state h2 { margin: 0; font-size: 26px; }
.empty-state p { color: var(--muted); }

.profile-banner { padding-block: 54px; color: var(--white); background: var(--blue); }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-block-end: 32px; color: #cde2e8; font-size: 12px; font-weight: 780; }
.profile-heading { display: flex; align-items: center; gap: 24px; }
.profile-initials { flex: 0 0 auto; width: 104px; height: 104px; display: grid; place-items: center; color: var(--blue); background: var(--mint-soft); border: 4px solid rgba(255,255,255,.35); border-radius: 24px; font-family: Georgia, serif; font-size: 31px; }
.profile-heading h1 { margin: 8px 0 5px; color: var(--white); font-size: clamp(38px, 5vw, 58px); }
.profile-heading p { margin: 0; color: #cde2e8; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-block: 38px 90px; }
.profile-main, .profile-sidebar { min-width: 0; }
.profile-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 20px 28px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-card { min-height: 135px; display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.detail-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--mint-dark); background: var(--mint-soft); border-radius: 12px; font-size: 20px; }
.detail-card h2, .profile-sidebar h2 { margin: 0 0 8px; color: var(--blue); font-family: inherit; font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.detail-card p, .profile-sidebar p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.profile-section { margin-block-start: 30px; padding-block-start: 27px; border-block-start: 1px solid var(--line); }
.profile-section > h2 { margin: 0 0 15px; font-size: 27px; }
.large-tag-list span { padding: 7px 10px; color: var(--mint-dark); background: var(--mint-soft); font-size: 11px; }
.empty-inline { display: flex; align-items: center; gap: 12px; padding: 20px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.empty-inline > span { font-size: 28px; color: var(--mint); }
.empty-inline p { margin: 0; }
.profile-sidebar { align-self: start; display: grid; gap: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.profile-sidebar section { padding-block: 18px; border-block-end: 1px solid var(--line); }
.language-list { display: flex; flex-wrap: wrap; gap: 6px; }
.language-list span { padding: 5px 8px; color: var(--blue); background: var(--white); border: 1px solid var(--line); border-radius: 99px; font-size: 10px; font-weight: 720; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-block: 19px; color: var(--mint-dark); font-size: 12px; font-weight: 800; }
.not-found-card { margin-block: 80px; padding: 55px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.status-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 20px; color: var(--white); background: var(--mint); border-radius: 50%; font-size: 28px; }

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-block-start: 25px; }
.event-card { min-height: 240px; display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 19px; }
.event-date { width: 70px; height: 78px; display: grid; place-content: center; color: var(--white); background: var(--blue); border-radius: 14px; text-align: center; }
.event-date strong { font-family: Georgia, serif; font-size: 28px; line-height: 1; }
.event-date span { font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.event-card h2 { margin: 10px 0 8px; font-size: 22px; }
.event-card p { margin: 0; color: var(--muted); font-size: 12px; }
.status-pill { display: inline-flex; padding: 4px 7px; color: var(--mint-dark); background: var(--mint-soft); border-radius: 99px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.resource-grid article { min-height: 250px; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 19px; }
.resource-grid h2 { margin: 22px 0 8px; font-size: 23px; }
.resource-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.resource-grid strong { margin-block-start: auto; padding-block-start: 18px; color: var(--mint-dark); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.request-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.request-grid article { min-height: 315px; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; scroll-margin-top: 100px; }
.request-number { color: var(--mint); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.request-grid h2 { margin: 42px 0 10px; font-size: 27px; }
.request-grid p { margin: 0 0 25px; color: var(--muted); }
.request-grid .button { margin-block-start: auto; }
.moderation-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; margin-block-start: 28px; padding: 45px; color: var(--white); background: var(--blue); border-radius: 24px; }
.moderation-panel h2 { margin: 0 0 12px; color: var(--white); font-size: 37px; }
.moderation-panel p:not(.eyebrow) { color: #cfe2e8; }
.moderation-panel ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.moderation-panel li { display: flex; align-items: center; gap: 13px; padding: 13px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.moderation-panel li span { width: 29px; height: 29px; display: grid; place-items: center; color: var(--blue); background: var(--mint-soft); border-radius: 50%; font-size: 11px; }
.support-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.support-choice { min-height: 360px; display: flex; flex-direction: column; align-items: flex-start; padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.support-choice.featured { color: var(--white); background: var(--blue); border-color: var(--blue); }
.support-choice.featured .card-icon { color: var(--blue); background: var(--white); }
.support-choice h2 { margin: 45px 0 13px; font-size: 35px; }
.support-choice.featured h2 { color: var(--white); }
.support-choice p { margin: 0 0 28px; color: var(--muted); }
.support-choice.featured p { color: #cfe2e8; }
.support-choice .button { margin-block-start: auto; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-block-start: 25px; }
.principle-grid article { padding: 25px; border: 1px solid var(--line); border-radius: 17px; }
.principle-grid article > span { color: var(--mint); font-size: 11px; font-weight: 900; }
.principle-grid h2 { margin: 28px 0 8px; font-family: inherit; font-size: 16px; }
.principle-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.section-title { margin-block-end: 27px; }
.section-title h2 { margin: 0; font-size: 42px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-grid article { min-height: 240px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.step-grid article > span { color: var(--mint); font-size: 11px; font-weight: 900; }
.step-grid h3 { margin: 55px 0 10px; font-size: 24px; }
.step-grid p { margin: 0; color: var(--muted); }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block-start: 28px; }
.about-values article { padding: 30px; border: 1px solid var(--line); border-radius: 19px; }
.about-values h2 { margin: 28px 0 9px; font-size: 27px; }
.about-values p { margin: 0; color: var(--muted); }
.legal-stack { max-width: 840px; display: grid; gap: 14px; }
.legal-stack article { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.legal-stack h2 { margin: 0 0 10px; font-size: 26px; }
.legal-stack p { margin: 0; color: var(--muted); }

.site-footer { color: #d3e2e7; background: var(--blue-deep); padding-block-start: 55px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; padding-block-end: 44px; }
.footer-brand { display: block; width: 190px; padding: 8px 11px; background: var(--white); border-radius: 11px; }
.footer-intro p { max-width: 300px; margin: 18px 0 0; color: #9eb8c3; font-size: 13px; }
.footer-grid > div:not(.footer-intro) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid h2 { margin: 0 0 8px; color: var(--white); font-family: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a:not(.footer-brand) { color: #a8c0c9; font-size: 12px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #7fa0ad; border-block-start: 1px solid rgba(255,255,255,.1); font-size: 10px; }
.footer-bottom p { margin: 0; }
.toast { position: fixed; z-index: 3000; inset-inline-start: 50%; inset-block-end: 24px; max-width: min(520px, calc(100vw - 30px)); padding: 13px 18px; color: var(--white); background: var(--blue-deep); border-radius: 11px; box-shadow: var(--shadow); font-size: 13px; font-weight: 720; opacity: 0; transform: translate(-50%, 140%); transition: transform .22s ease, opacity .22s ease; }
html[dir="rtl"] .toast { transform: translate(50%, 140%); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
html[dir="rtl"] .toast.show { transform: translate(50%, 0); }

html[dir="rtl"] .directional-icon { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .leaflet-control-container, html[dir="rtl"] .leaflet-popup-pane { direction: ltr; }
bdi, [dir="ltr"] { unicode-bidi: isolate; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .header-support { display: none; }
  .page-banner-grid { grid-template-columns: 1fr; }
  .directory-search-card { max-width: 760px; }
  .directory-layout { grid-template-columns: 1fr; }
  .map-panel { min-height: 430px; order: -1; }
  .results-panel { max-height: none; }
  .event-grid, .resource-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  :root { --shell: min(100% - 28px, 680px); }
  .site-header, .header-inner { min-height: 68px; }
  .brand { width: 160px; }
  .language-switch button { min-width: 31px; padding-inline: 6px; }
  .language-switch button:last-child { min-width: 49px; }
  .home-hero { min-height: auto; }
  .home-hero-inner { padding-block: 75px 60px; }
  .hero-copy-centered h1 { font-size: clamp(48px, 14vw, 72px); }
  .primary-search { grid-template-columns: 1fr; border-radius: 16px; }
  .search-control { border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .search-main-button { width: 100%; }
  .section-split-heading, .compact-intro, .moderation-panel { grid-template-columns: 1fr; gap: 25px; }
  .province-links { grid-template-columns: 1fr 1fr; }
  .page-link-grid, .request-grid, .principle-grid, .step-grid { grid-template-columns: 1fr; }
  .page-link-card { min-height: 220px; }
  .page-banner { padding-block: 65px; }
  .directory-search-card { grid-template-columns: 1fr; }
  .directory-topbar { align-items: stretch; flex-direction: column; }
  .view-toggle { align-self: flex-start; }
  .mosque-card { grid-template-columns: 66px 1fr; }
  .mosque-visual { height: 66px; }
  .card-action { grid-column: 2; grid-template-columns: auto auto; align-items: center; justify-content: space-between; width: 100%; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-actions { grid-template-columns: 1fr; }
  .profile-sidebar { order: -1; }
  .event-grid, .resource-grid, .support-choice-grid, .about-values { grid-template-columns: 1fr; }
  .event-card, .resource-grid article { min-height: 0; }
  .support-choice { min-height: 310px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .brand { width: 142px; }
  .header-actions { gap: 6px; }
  .language-switch button:last-child { min-width: 43px; font-size: 9px; }
  .home-hero-inner { padding-block: 60px 50px; }
  .hero-copy-centered h1 { font-size: 47px; }
  .hero-lead { font-size: 16px; }
  .trust-line { align-items: flex-start; flex-direction: column; }
  .home-section, .content-section { padding-block: 58px; }
  .province-links { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 42px; }
  .filter-row { display: grid; grid-template-columns: 1fr 1fr; }
  .view-toggle { width: 100%; }
  .view-toggle button { flex: 1; }
  .map-panel { min-height: 330px; }
  .results-panel { padding: 14px; }
  .mosque-card { grid-template-columns: 1fr; }
  .mosque-visual { height: 92px; }
  .card-action { grid-column: 1; }
  .profile-heading { align-items: flex-start; flex-direction: column; }
  .profile-initials { width: 82px; height: 82px; }
  .detail-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 64px 1fr; padding: 18px; }
  .event-date { width: 60px; height: 70px; }
  .moderation-panel { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-intro { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; }
}

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