/*
Theme Name: Hussaini Calgary
Theme URI: https://hussainicalgary.com/
Author: Hussaini Association of Calgary
Description: Modern block theme for the Hussaini Association of Calgary (Calgary Imambargah). Built for the Site Editor, with page patterns for every page, community forms that save to the Site Essentials enquiries inbox, a knowledge base, and deep integration with the XllenTech Islamic calendar and salat timings plugins. Pages, menu, logo and knowledge base articles are created on activation.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hussainicalgary
Tags: block-patterns, full-site-editing, block-styles, wide-blocks, translation-ready
*/

/* ==========================================================================
   Base
   ========================================================================== */

:root {
	--hac-card: #ffffff;
	--hac-input: #fcfbf8;
	--hac-header-bg: rgba(255, 255, 255, .97);
	--hac-radius-s: 8px;
	--hac-radius-m: 14px;
	--hac-radius-l: 22px;
	--hac-ring: 0 0 0 3px rgba(196, 154, 60, .35);
	--hac-ease: cubic-bezier(.2, .7, .2, 1);
	--lse-cf-scroll-offset: 110px;
	scroll-padding-top: 110px;
}
html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { height: auto; }
::selection { background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--primary-dark); }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > main { flex: 1 0 auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }
.skip-link:focus { z-index: 100000; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.has-arabic-font-family { direction: rtl; line-height: 1.6; }

/* Eyebrow / kicker text */
.hac-eyebrow {
	display: inline-flex; align-items: center; gap: .55rem;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin-bottom: .25rem !important;
}
.hac-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.has-text-align-center.hac-eyebrow, .hac-eyebrow.has-text-align-center { justify-content: center; }
.hac-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); line-height: 1.6; }

/* ==========================================================================
   Icons (CSS masks: hac-badge | hac-ib | hac-ii  +  hac-i-NAME)
   ========================================================================== */
.hac-ii { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; background: currentColor;
	-webkit-mask: var(--hac-icon) center / contain no-repeat; mask: var(--hac-icon) center / contain no-repeat; }
.hac-ib::before { content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-right: .55em; vertical-align: -.18em; background: currentColor; flex: none;
	-webkit-mask: var(--hac-icon) center / contain no-repeat; mask: var(--hac-icon) center / contain no-repeat; }
/* Badge icon: a soft tile with the glyph, placed above the content of the element */
.hac-badge { position: relative; --hac-badge-bg: var(--wp--preset--color--primary-soft); --hac-badge-fg: var(--wp--preset--color--primary); }
.hac-badge::before { content: ""; display: block; width: 54px; height: 54px; margin-bottom: 1.1rem; border-radius: 16px; background: var(--hac-badge-bg); }
.hac-badge::after { content: ""; position: absolute; top: 14px; left: 14px; width: 26px; height: 26px; background: var(--hac-badge-fg);
	-webkit-mask: var(--hac-icon) center / contain no-repeat; mask: var(--hac-icon) center / contain no-repeat; }
.hac-badge.has-global-padding::after, .hac-card.hac-badge::after { top: calc(var(--hac-pad, 2rem) + 14px); left: calc(var(--hac-pad, 2rem) + 14px); }
.hac-badge.is-gold { --hac-badge-bg: var(--wp--preset--color--accent-soft); --hac-badge-fg: #8a6a1f; }
.hac-badge.is-blue { --hac-badge-bg: #e3eef4; --hac-badge-fg: var(--wp--preset--color--secondary); }
.hac-badge.is-solid { --hac-badge-bg: var(--wp--preset--color--primary); --hac-badge-fg: #fff; }
.hac-badge.is-glass { --hac-badge-bg: rgba(255,255,255,.12); --hac-badge-fg: var(--wp--preset--color--accent); }

/* ICONS:START */
.hac-i-calendar{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224%22 width=%2218%22 height=%2218%22 rx=%222%22/%3E%3Cpath d=%22M16 2v4M8 2v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01%22/%3E%3C/svg%3E")}
.hac-i-clock{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E%3Cpath d=%22M12 6v6l4 2%22/%3E%3C/svg%3E")}
.hac-i-moon{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z%22/%3E%3C/svg%3E")}
.hac-i-mosque{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3c-3 2-5 4-5 7h10c0-3-2-5-5-7Z%22/%3E%3Cpath d=%22M5 21V12h14v9M3 21h18M10 21v-4a2 2 0 0 1 4 0v4M2 21V9l1-2 1 2v12M20 21V9l1-2 1 2v12%22/%3E%3C/svg%3E")}
.hac-i-book{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20%22/%3E%3Cpath d=%22M9 7h7M9 11h5%22/%3E%3C/svg%3E")}
.hac-i-users{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%229%22 cy=%227%22 r=%224%22/%3E%3Cpath d=%22M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75%22/%3E%3C/svg%3E")}
.hac-i-heart{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z%22/%3E%3C/svg%3E")}
.hac-i-gift{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%228%22 width=%2218%22 height=%224%22 rx=%221%22/%3E%3Cpath d=%22M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C11 3 12 8 12 8s1-5 4.5-5a2.5 2.5 0 0 1 0 5%22/%3E%3C/svg%3E")}
.hac-i-mail{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222%22 y=%224%22 width=%2220%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22m22 7-10 6L2 7%22/%3E%3C/svg%3E")}
.hac-i-phone{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92Z%22/%3E%3C/svg%3E")}
.hac-i-map{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%223%22/%3E%3C/svg%3E")}
.hac-i-school{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 10 12 5 2 10l10 5 10-5Z%22/%3E%3Cpath d=%22M6 12v5c3 3 9 3 12 0v-5%22/%3E%3C/svg%3E")}
.hac-i-form{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z%22/%3E%3Cpath d=%22M14 2v6h6M8 13h8M8 17h5%22/%3E%3C/svg%3E")}
.hac-i-rings{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%2214%22 r=%226%22/%3E%3Ccircle cx=%2215%22 cy=%2214%22 r=%226%22/%3E%3Cpath d=%22m10 4 2-2 2 2%22/%3E%3C/svg%3E")}
.hac-i-chat{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Z%22/%3E%3Cpath d=%22M8 9h8M8 13h5%22/%3E%3C/svg%3E")}
.hac-i-hands{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M11 14h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16%22/%3E%3Cpath d=%22m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9%22/%3E%3Cpath d=%22m2 15 6 6%22/%3E%3C/svg%3E")}
.hac-i-plane{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2Z%22/%3E%3C/svg%3E")}
.hac-i-award{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228%22 r=%226%22/%3E%3Cpath d=%22M15.48 12.89 17 22l-5-3-5 3 1.52-9.11%22/%3E%3C/svg%3E")}
.hac-i-tent{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3.5 21 14 3M20.5 21 10 3M15.5 21 12 15l-3.5 6M2 21h20%22/%3E%3C/svg%3E")}
.hac-i-search{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%228%22/%3E%3Cpath d=%22m21 21-4.3-4.3%22/%3E%3C/svg%3E")}
.hac-i-arrow{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14M12 5l7 7-7 7%22/%3E%3C/svg%3E")}
.hac-i-building{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z%22/%3E%3Cpath d=%22M6 12H4a2 2 0 0 0-2 2v8h4M18 9h2a2 2 0 0 1 2 2v11h-4M10 6h4M10 10h4M10 14h4M10 18h4%22/%3E%3C/svg%3E")}
.hac-i-video{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m22 8-6 4 6 4V8Z%22/%3E%3Crect x=%222%22 y=%226%22 width=%2214%22 height=%2212%22 rx=%222%22/%3E%3C/svg%3E")}
.hac-i-globe{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E%3Cpath d=%22M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10Z%22/%3E%3C/svg%3E")}
.hac-i-sun{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224%22/%3E%3Cpath d=%22M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41%22/%3E%3C/svg%3E")}
.hac-i-check{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 6 9 17l-5-5%22/%3E%3C/svg%3E")}
.hac-i-star{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2Z%22/%3E%3C/svg%3E")}
.hac-i-clipboard{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%228%22 y=%222%22 width=%228%22 height=%224%22 rx=%221%22/%3E%3Cpath d=%22M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M9 12h6M9 16h6%22/%3E%3C/svg%3E")}
.hac-i-shield{--hac-icon:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z%22/%3E%3C/svg%3E")}

:root{--hac-arrow:var(--hac-arrow-i);--hac-check:var(--hac-check-i);--hac-doc:var(--hac-doc-i)}
:root{--hac-arrow-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12h14M12 5l7 7-7 7%22/%3E%3C/svg%3E");--hac-check-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 6 9 17l-5-5%22/%3E%3C/svg%3E");--hac-doc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z%22/%3E%3Cpath d=%22M14 2v6h6M8 13h8M8 17h5%22/%3E%3C/svg%3E");}
.hac-donate-btn{--hac-icon:var(--hac-heart-i)}
:root{--hac-heart-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z%22/%3E%3C/svg%3E")}
/* ICONS:END */

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.hac-topbar { font-size: var(--wp--preset--font-size--x-small); }
.hac-topbar a { color: inherit; text-decoration: none; }
.hac-topbar a:hover { color: #fff; text-decoration: underline; }
.hac-topbar .hac-today { display: inline-flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.hac-topbar .hac-today__hijri { color: var(--wp--preset--color--accent); font-weight: 600; }
.hac-topbar .hac-today__sep { opacity: .45; }
.hac-topbar .wp-block-social-links { --wp--style--block-gap: .35rem; }
.hac-topbar .wp-block-social-links .wp-social-link { background: transparent !important; color: rgba(255,255,255,.85) !important; }
.hac-topbar .wp-block-social-links .wp-social-link:hover { color: #fff !important; transform: none; }
@media (max-width: 781px) { .hac-topbar .hac-hide-mobile { display: none !important; } }

.hac-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .hac-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .hac-header-wrap { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hac-header-wrap { top: 0; } }
.hac-header {
	background: var(--hac-header-bg);
	border-bottom: 1px solid rgba(47, 90, 83, .1);
	transition: box-shadow .25s var(--hac-ease);
}
@media (min-width: 861px) { .hac-header { backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); background: var(--hac-header-bg); } }
.hac-is-scrolled .hac-header { box-shadow: 0 6px 24px rgba(29, 61, 55, .09); }
.hac-brand { gap: .8rem !important; text-decoration: none; }
.hac-brand .wp-block-site-logo img, .hac-brand .hac-logo-img img { width: auto; max-height: 34px; }
.hac-brand .wp-block-site-title { margin: 0; }
.hac-brand .hac-brand__text { line-height: 1.1; }
.hac-brand .hac-brand__tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: .2rem 0 0; font-weight: 600; }
@media (max-width: 700px) { .hac-brand .hac-brand__tag { display: none; } }
@media (max-width: 480px) { .hac-brand .wp-block-site-title { font-size: 1rem; } .hac-brand .wp-block-site-logo img, .hac-brand .hac-logo-img img { max-height: 26px; } }

.hac-header .wp-block-navigation { --hac-nav-pad: .55rem .8rem; }
.hac-header .wp-block-navigation .wp-block-navigation-item__content { padding: var(--hac-nav-pad); border-radius: 999px; transition: background .2s, color .2s; color: var(--wp--preset--color--contrast); }
.hac-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.hac-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.hac-header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content { background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary-dark); }
.hac-header .wp-block-navigation__container { gap: .15rem; }
.hac-header .wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--border) !important; border-radius: 14px; padding: .45rem; min-width: 240px !important;
	box-shadow: var(--wp--preset--shadow--lifted); background: var(--hac-card);
}
.hac-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-radius: 9px; padding: .55rem .8rem; font-weight: 500; }
.hac-header .wp-block-navigation .wp-block-navigation-submenu__toggle { margin-left: -.55rem; }
.hac-header .wp-block-navigation .has-child > .wp-block-navigation-item__content { padding-right: 1.2rem; }
.hac-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; background: var(--hac-card); }
.hac-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: .25rem; padding-top: 3rem; }
.hac-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: .5rem .25rem; font-size: 1.05rem; }
.hac-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; border: 0 !important; padding: 0 0 .5rem 1rem; }
.hac-header .wp-block-navigation__responsive-container-open { padding: .5rem; border-radius: 10px; background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary-dark); }
.hac-header .hac-donate-btn .wp-block-button__link { padding: .7rem 1.25rem; }
.hac-header .hac-donate-btn .wp-block-button__link::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .45em; vertical-align: -.14em; background: currentColor; -webkit-mask: var(--hac-icon) center/contain no-repeat; mask: var(--hac-icon) center/contain no-repeat; }
@media (max-width: 600px) { .hac-header .hac-donate-btn { display: none; } }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.hac-page-header {
	position: relative; overflow: hidden; isolation: isolate;
	background: linear-gradient(120deg, var(--wp--preset--color--primary-dark) 0%, var(--wp--preset--color--primary) 55%, #2d6b70 100%);
	color: #fff;
}
.hac-page-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09;
	background-image: url("assets/images/pattern.svg"); background-size: 120px;
}
.hac-page-header::after {
	content: ""; position: absolute; z-index: -1; right: -6%; bottom: -1px; width: min(520px, 60vw); aspect-ratio: 4.68; opacity: .08;
	background: url("assets/images/logo-mark-white.png") right bottom / contain no-repeat;
}
.hac-page-header h1 { color: #fff; margin: 0; max-width: 22ch; }
.hac-page-header .wp-block-post-excerpt, .hac-page-header .hac-page-header__lead { color: rgba(255,255,255,.86); font-size: var(--wp--preset--font-size--large); max-width: 60ch; margin: 0; }
.hac-page-header .wp-block-post-excerpt__more-text { display: none; }
.hac-page-header .wp-block-post-excerpt__excerpt { margin: 0; }
.hac-breadcrumbs { font-size: var(--wp--preset--font-size--x-small); letter-spacing: .02em; color: rgba(255,255,255,.75); margin: 0 0 .9rem; }
.hac-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.hac-breadcrumbs li + li::before { content: "›"; margin-right: .35rem; opacity: .6; }
.hac-breadcrumbs a { color: inherit; text-decoration: none; }
.hac-breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.hac-breadcrumbs [aria-current] { color: #fff; font-weight: 600; }
.hac-surface .hac-breadcrumbs, .hac-breadcrumbs.is-dark { color: var(--wp--preset--color--muted); }
.hac-breadcrumbs.is-dark [aria-current] { color: var(--wp--preset--color--contrast); }
.hac-breadcrumbs.is-dark a:hover { color: var(--wp--preset--color--primary); }

/* ==========================================================================
   Home hero
   ========================================================================== */
.hac-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.hac-hero.wp-block-cover { min-height: auto !important; }
.hac-hero .wp-block-cover__image-background { opacity: .32 !important; mix-blend-mode: luminosity; }
.hac-hero::after {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: radial-gradient(ellipse at 15% 20%, rgba(196,154,60,.18), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(13,75,107,.45), transparent 60%);
}
.hac-hero .wp-block-cover__inner-container { position: relative; z-index: 1; }
.hac-hero h1 { color: #fff; }
.hac-hero h1 em { font-style: normal; color: var(--wp--preset--color--accent); }
.hac-hero .hac-bismillah { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--wp--preset--color--accent); margin: 0; opacity: .95; }
.hac-hero .hac-lead { color: rgba(255,255,255,.85); }
.hac-hero-meta { gap: 1.5rem !important; font-size: var(--wp--preset--font-size--small); color: rgba(255,255,255,.8); }
.hac-hero-meta p { margin: 0; }

/* Glass container for the salat card in the hero */
.hac-glass {
	background: rgba(255,255,255,.97); color: var(--wp--preset--color--contrast);
	border-radius: var(--hac-radius-l); box-shadow: 0 30px 60px rgba(0,0,0,.25);
	padding: 1.4rem !important; border: 1px solid rgba(255,255,255,.4);
}
.hac-glass .xst-daily { box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
.hac-glass .hac-glass__foot { margin-top: .9rem; font-size: var(--wp--preset--font-size--small); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hac-glass .hac-glass__foot a { font-weight: 700; text-decoration: none; }
.hac-glass .hac-glass__foot a::after { content: " →"; }
.hac-glass .xst-daily-list th, .hac-glass .xst-daily-list td { padding-block: .5rem !important; }

/* ==========================================================================
   Sections, cards, tiles
   ========================================================================== */
.hac-section-head { margin-bottom: var(--wp--preset--spacing--50) !important; }
.hac-section-head h2 { margin-top: .2rem; }
.hac-section-head p:last-child { color: var(--wp--preset--color--muted); }

.hac-card {
	--hac-pad: clamp(1.4rem, 2.4vw, 2rem);
	padding: var(--hac-pad);
	background: var(--hac-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hac-radius-m);
	box-shadow: 0 1px 2px rgba(29,61,55,.04);
	transition: transform .25s var(--hac-ease), box-shadow .25s var(--hac-ease), border-color .25s;
}
.is-layout-grid > .hac-card, .hac-columns-stretch .hac-card { height: 100%; box-sizing: border-box; }
.hac-card > :first-child { margin-top: 0; }
.hac-card h3, .hac-card h4 { margin-top: 0; margin-bottom: .45rem; }
.hac-card p { color: var(--wp--preset--color--muted); }
.hac-card .hac-card__more, .hac-card .hac-more { margin-top: auto; }
.hac-card.is-link:hover, .hac-card:has(a.hac-stretched):hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lifted); border-color: rgba(47,90,83,.25); }
.hac-card.is-flex { display: flex; flex-direction: column; }
.hac-card.is-flex > .wp-block-buttons:last-child, .hac-card.is-flex > p.hac-more:last-child { margin-top: auto; padding-top: .5rem; }
.hac-card.is-tinted { background: var(--wp--preset--color--surface); }
.hac-card.is-dark { background: var(--wp--preset--color--primary-dark); border-color: transparent; color: #fff; }
.hac-card.is-dark h3, .hac-card.is-dark h4 { color: #fff; }
.hac-card.is-dark p { color: rgba(255,255,255,.8); }
.hac-columns-stretch > .wp-block-column { display: flex; flex-direction: column; }
.hac-columns-stretch > .wp-block-column > .hac-card { flex: 1; }

/* Stretched link: any link with class hac-stretched makes the whole card clickable */
.hac-card { position: relative; }
a.hac-stretched::after, .hac-stretched a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hac-more { font-weight: 700; font-size: var(--wp--preset--font-size--small); }
.hac-more a { text-decoration: none; }
.hac-more a::after, a.hac-more::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .35em; vertical-align: -.15em; background: currentColor; transition: transform .2s;
	-webkit-mask: var(--hac-arrow) center/contain no-repeat; mask: var(--hac-arrow) center/contain no-repeat; }
.hac-card:hover .hac-more a::after { transform: translateX(3px); }

/* Quick link tiles */
.hac-tiles { gap: 1rem !important; }
.hac-tile {
	position: relative; display: flex; flex-direction: column; gap: .2rem;
	background: var(--hac-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hac-radius-m);
	padding: 1.2rem 1.2rem 1.1rem !important; transition: transform .2s var(--hac-ease), box-shadow .2s, border-color .2s;
	box-shadow: var(--wp--preset--shadow--soft);
}
.hac-tile:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--lifted); border-color: rgba(47,90,83,.3); }
.hac-tile.hac-badge::before { width: 44px; height: 44px; border-radius: 12px; margin-bottom: .6rem; }
.hac-tile.hac-badge::after { top: calc(1.2rem + 10px); left: calc(1.2rem + 10px); width: 24px; height: 24px; }
.hac-tile h3 { font-family: var(--wp--preset--font-family--body); font-size: 1rem !important; font-weight: 700; margin: 0; color: var(--wp--preset--color--contrast); }
.hac-tile h3 a { text-decoration: none; color: inherit; }
.hac-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hac-tile p { margin: 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted); line-height: 1.45; }
.hac-pull-up { margin-top: calc(-1 * var(--wp--preset--spacing--60)) !important; position: relative; z-index: 2; }

/* Stats */
.hac-stat { border-left: 2px solid var(--wp--preset--color--accent); padding-left: 1rem !important; }
.hac-stat .hac-stat__num { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; margin: 0 0 .3rem; color: var(--wp--preset--color--primary-dark); font-weight: 600; }
.hac-stat .hac-stat__label { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.has-primary-dark-background-color .hac-stat .hac-stat__num, .is-style-hac-dark .hac-stat .hac-stat__num { color: #fff; }
.has-primary-dark-background-color .hac-stat .hac-stat__label { color: rgba(255,255,255,.75); }

/* Quote band */
.hac-quote-band { position: relative; overflow: hidden; isolation: isolate; }
.hac-quote-band::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
	background-image: url("assets/images/pattern.svg"); background-size: 140px;
}
.hac-quote-band blockquote, .hac-quote-band .wp-block-quote { border: 0 !important; padding: 0 !important; margin-inline: auto; }
.hac-quote-band .wp-block-quote p { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.35; color: #fff; }
.hac-quote-band .wp-block-quote cite { color: var(--wp--preset--color--accent); font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.hac-quote-band .hac-quote-mark { font-family: var(--wp--preset--font-family--heading); font-size: 5rem; line-height: .6; color: var(--wp--preset--color--accent); margin: 0 0 .5rem; }

/* Image treatments */
.hac-rounded img, .hac-rounded.wp-block-image img { border-radius: var(--hac-radius-l); }
.hac-img-frame { position: relative; }
.hac-img-frame img { border-radius: var(--hac-radius-l); box-shadow: var(--wp--preset--shadow--lifted); }
.hac-img-frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--wp--preset--color--accent); border-radius: var(--hac-radius-l); z-index: -1; }
.hac-img-frame { isolation: isolate; }
.hac-gallery img { border-radius: var(--hac-radius-m); aspect-ratio: 3/2; object-fit: cover; }

/* Check list */
.hac-checklist { list-style: none; padding-left: 0 !important; }
.hac-checklist li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.hac-checklist li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--wp--preset--color--primary-soft); }
.hac-checklist li::after { content: ""; position: absolute; left: .3rem; top: calc(.25em + .3rem); width: .7rem; height: .7rem; background: var(--wp--preset--color--primary);
	-webkit-mask: var(--hac-check) center/contain no-repeat; mask: var(--hac-check) center/contain no-repeat; }
.is-dark-section .hac-checklist li::before { background: rgba(255,255,255,.14); }
.is-dark-section .hac-checklist li::after { background: var(--wp--preset--color--accent); }

/* Price list (summer camp, hall) */
.hac-price-list { list-style: none; padding: 0 !important; margin: 0; }
.hac-price-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--wp--preset--color--border); }
.hac-price-list li:last-child { border-bottom: 0; }
.hac-price-list strong { color: var(--wp--preset--color--primary-dark); white-space: nowrap; }
.hac-price { font-family: var(--wp--preset--font-family--heading); font-size: 2.6rem; line-height: 1; color: var(--wp--preset--color--primary-dark); margin: .2rem 0 .4rem; font-weight: 600; }
.hac-price small { font-family: var(--wp--preset--font-family--body); font-size: .9rem; color: var(--wp--preset--color--muted); font-weight: 500; }

/* Notice / callout */
.hac-callout { border-radius: var(--hac-radius-m); border: 1px solid rgba(196,154,60,.4); background: var(--wp--preset--color--accent-soft); }
.hac-callout p { margin: 0; }
.hac-callout.is-info { background: var(--wp--preset--color--primary-soft); border-color: rgba(47,90,83,.2); }

/* Steps */
.hac-steps { counter-reset: hacstep; }
.hac-step { counter-increment: hacstep; position: relative; padding-left: 3.6rem !important; }
.hac-step::before { content: counter(hacstep); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--wp--preset--color--primary); color: #fff; font-weight: 700; font-family: var(--wp--preset--font-family--heading); }
.hac-step h3, .hac-step h4 { margin: .2rem 0 .35rem; font-size: var(--wp--preset--font-size--large); }
.hac-step p { margin: 0; color: var(--wp--preset--color--muted); }

/* Tables */
.wp-block-table.is-style-hac-clean table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--wp--preset--color--border); border-radius: var(--hac-radius-m); overflow: hidden; background: var(--hac-card); }
.wp-block-table.is-style-hac-clean th, .wp-block-table.is-style-hac-clean td { border: 0; border-bottom: 1px solid var(--wp--preset--color--border); padding: .85rem 1rem; text-align: left; }
.wp-block-table.is-style-hac-clean thead th { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--primary-dark); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--wp--preset--color--border); }
.wp-block-table.is-style-hac-clean tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-hac-clean tbody tr:hover td { background: #fbfaf6; }
.wp-block-table.is-style-hac-clean thead { border-bottom: 0; }
@media (max-width: 640px) { .wp-block-table.is-style-hac-clean { overflow-x: auto; } }

/* Details (FAQ / terms) */
.wp-block-details summary { cursor: pointer; font-weight: 700; color: var(--wp--preset--color--primary-dark); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--wp--preset--color--accent); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); }

/* Block styles */
.is-style-hac-card { background: var(--hac-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hac-radius-m); box-shadow: var(--wp--preset--shadow--soft); }
.is-style-hac-pill .wp-block-button__link, .wp-block-button.is-style-hac-pill .wp-block-button__link { border-radius: 999px; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; color: var(--wp--preset--color--primary); padding: calc(.8rem - 1.5px) calc(1.5rem - 1.5px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--primary); color: #fff; border-color: var(--wp--preset--color--primary); }
.wp-block-button.is-style-hac-gold .wp-block-button__link { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--primary-dark); }
.wp-block-button.is-style-hac-gold .wp-block-button__link:hover { background: #d6ad52; color: var(--wp--preset--color--primary-dark); }
.wp-block-button.is-style-hac-light .wp-block-button__link { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.wp-block-button.is-style-hac-light .wp-block-button__link:hover { background: var(--hac-card); color: var(--wp--preset--color--primary-dark); }
.wp-block-button__link { transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-hac-underline-link a { text-decoration: none; border-bottom: 1px solid rgba(47,90,83,.3); }
.wp-block-separator.is-style-hac-ornament { border: 0 !important; height: 18px; width: 120px; margin-inline: auto; opacity: 1;
	background: center / contain no-repeat url("assets/images/ornament.svg"); }

/* Dark sections: readable text */
.is-dark-section, .has-primary-dark-background-color, .has-primary-background-color, .has-secondary-background-color { color: rgba(255,255,255,.88); }
.is-dark-section :is(h1,h2,h3,h4,h5), .has-primary-dark-background-color :is(h1,h2,h3,h4,h5), .has-primary-background-color :is(h1,h2,h3,h4,h5), .has-secondary-background-color :is(h1,h2,h3,h4,h5) { color: #fff; }
.is-dark-section a:not(.wp-block-button__link), .has-primary-dark-background-color a:not(.wp-block-button__link):not(.wp-block-navigation-item__content) { color: #fff; }
.hac-card.is-link .has-primary-dark-background-color { color: #fff; }

/* ==========================================================================
   Posts / news
   ========================================================================== */
.hac-post-card { background: var(--hac-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hac-radius-m); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .25s var(--hac-ease), box-shadow .25s; position: relative; }
.hac-post-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lifted); }
.hac-post-card .wp-block-post-featured-image { margin: 0; aspect-ratio: 16/10; overflow: hidden; background: var(--wp--preset--color--primary-soft); }
.hac-post-card .wp-block-post-featured-image img { height: 100%; object-fit: cover; }
.hac-post-card .wp-block-post-title { font-size: var(--wp--preset--font-size--large); margin: .3rem 0 .4rem; }
.hac-post-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.hac-post-card .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.hac-post-card .wp-block-post-excerpt__more-text { display: none; }
.wp-block-post-template.is-layout-grid { gap: 1.5rem; }
.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--50); gap: .5rem; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; border-radius: 999px; text-decoration: none; }
.wp-block-query-pagination-numbers .page-numbers.current { background: var(--wp--preset--color--primary); color: #fff; }
.hac-empty { border: 1px dashed var(--wp--preset--color--border); border-radius: var(--hac-radius-m); padding: 2rem; text-align: center; color: var(--wp--preset--color--muted); background: var(--hac-card); }
.hac-entry-content > * { max-width: var(--wp--style--global--content-size); }
.wp-block-post-content :where(h2, h3) { margin-top: 2.2rem; }
.wp-block-post-content :where(p, li) { text-wrap: pretty; }

/* ==========================================================================
   Plugins: XllenTech calendar / salat timings — light theming only
   ========================================================================== */
.hac-panel { background: var(--hac-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hac-radius-l); box-shadow: var(--wp--preset--shadow--soft); }
.hac-panel .xc-upcoming-heading, .hac-panel .xc-programs-heading { display: none; }
.hac-panel .xc-upcoming-list, .hac-panel .xc-programs { margin: 0; }
.hac-panel .xst-monthly { margin: 0; }
.hac-calendar-wrap { overflow-x: auto; }
.hac-calendar-wrap table { min-width: 640px; }
.xc-programs-empty, .xc-upcoming-empty { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.hac-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem !important; }
.hac-panel-head h2, .hac-panel-head h3 { margin: 0; }
.hac-panel-head .hac-more { margin: 0; }

/* Today block */
.hac-today-card { text-align: center; }
.hac-today-card .hac-today__day { font-family: var(--wp--preset--font-family--heading); font-size: 3.4rem; line-height: 1; color: var(--wp--preset--color--primary-dark); margin: .2rem 0; font-weight: 600; }
.hac-today-card .hac-today__line { margin: 0; color: var(--wp--preset--color--muted); }
.hac-today-card .hac-today__hijri { color: var(--wp--preset--color--accent); font-weight: 700; margin-top: .4rem; }

/* ==========================================================================
   Forms (theme forms → Site Essentials enquiries)
   ========================================================================== */
.hac-form {
	--f-border: #d9d4c7; --f-radius: 10px;
	background: var(--hac-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hac-radius-l);
	padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--wp--preset--shadow--soft);
}
.hac-form__intro { margin: 0 0 1.25rem; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.hac-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.hac-form__grid > .is-full, .hac-form__section, .hac-form__note { grid-column: 1 / -1; }
@media (max-width: 640px) { .hac-form__grid { grid-template-columns: 1fr; } }
.hac-form__section { margin: .9rem 0 -.2rem; padding-top: 1rem; border-top: 1px solid var(--wp--preset--color--border); }
.hac-form__section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.hac-form__section h3 { font-family: var(--wp--preset--font-family--body); font-size: .8rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent); margin: 0; font-weight: 700; }
.hac-form__section p { margin: .25rem 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.hac-form__note { font-size: var(--wp--preset--font-size--small); background: var(--wp--preset--color--surface); border-radius: var(--f-radius); padding: .9rem 1rem; color: var(--wp--preset--color--muted); }
.hac-field { display: flex; flex-direction: column; gap: .4rem; margin: 0; min-width: 0; }
.hac-field > label, .hac-field > .hac-field__label { font-weight: 600; font-size: .9rem; color: var(--wp--preset--color--contrast); }
.hac-field .hac-req { color: #b42318; margin-left: .15rem; }
.hac-field__help { font-size: .8rem; color: var(--wp--preset--color--muted); margin: 0; }
.hac-form input[type=text], .hac-form input[type=email], .hac-form input[type=tel], .hac-form input[type=number],
.hac-form input[type=date], .hac-form input[type=time], .hac-form input[type=url], .hac-form select, .hac-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--wp--preset--color--contrast);
	background: var(--hac-input); border: 1.5px solid var(--f-border); border-radius: var(--f-radius); padding: .72rem .9rem; min-height: 48px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.hac-form textarea { min-height: 140px; resize: vertical; }
.hac-form select { appearance: none; padding-right: 2.4rem;
	background: var(--hac-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b66' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 18px no-repeat; }
.hac-form :is(input, select, textarea):hover { border-color: #bdb6a5; }
.hac-form :is(input, select, textarea):focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 4px rgba(47,90,83,.14); background: var(--hac-card); }
.hac-form .xc-datepicker-field { display: block; }
.hac-choices { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.hac-choices legend { font-weight: 600; font-size: .9rem; margin-bottom: .5rem; padding: 0; }
.hac-choice { position: relative; }
.hac-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.hac-choice span { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border: 1.5px solid var(--f-border); border-radius: 999px; font-size: .9rem; background: var(--hac-input); transition: all .15s; cursor: pointer; }
.hac-choice input:checked + span { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.hac-choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(47,90,83,.2); }
.hac-choice input[type=checkbox]:checked + span::before { content: "✓"; font-weight: 700; }
.hac-choices.is-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hac-choices.is-cards .hac-choice span { border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; height: 100%; box-sizing: border-box; }
.hac-choices.is-cards .hac-choice span small { opacity: .8; font-size: .8rem; }
.hac-consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; background: var(--wp--preset--color--surface); padding: .9rem 1rem; border-radius: var(--f-radius); }
.hac-consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--wp--preset--color--primary); flex: none; }
.hac-form__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hac-form__actions button {
	font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; border: 0; border-radius: 999px;
	background: var(--wp--preset--color--primary); color: #fff; padding: .95rem 1.8rem; transition: background .2s, transform .2s;
}
.hac-form__actions button:hover { background: var(--wp--preset--color--primary-dark); transform: translateY(-1px); }
.hac-form__actions small { color: var(--wp--preset--color--muted); }
.hac-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hac-notice { border-radius: 12px; padding: 1rem 1.15rem; margin: 0 0 1.25rem; font-weight: 600; display: flex; gap: .7rem; align-items: flex-start; }
.hac-notice.is-success { background: #e7f4ee; color: #135c3c; border: 1px solid #b5dcc8; }
.hac-notice.is-error { background: #fdecea; color: #8a1c13; border: 1px solid #f3c3bd; }
.hac-repeat { display: grid; gap: .6rem; grid-column: 1 / -1; }
.hac-repeat__row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .6rem; }
.hac-repeat__head { font-size: .8rem; font-weight: 700; color: var(--wp--preset--color--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) { .hac-repeat__row { grid-template-columns: 1fr 1fr; } .hac-repeat__row > :first-child { grid-column: 1 / -1; } }
[data-hac-show-if][hidden] { display: none !important; }

/* Site Essentials contact form: match the theme */
.lse-cf { --lse-cf-accent: var(--wp--preset--color--primary); --lse-cf-radius: 10px; }

/* ==========================================================================
   Knowledge base
   ========================================================================== */
.hac-kb-search .wp-block-search__inside-wrapper { background: var(--hac-card); border-radius: 999px !important; padding: .35rem !important; border: 0 !important; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.hac-kb-search .wp-block-search__input { border: 0 !important; padding: .7rem 1.2rem !important; font-size: 1.05rem; background: transparent; min-height: 50px; }
.hac-kb-search .wp-block-search__input:focus { outline: none; }
.hac-kb-search .wp-block-search__button { border-radius: 999px !important; margin: 0; padding: .7rem 1.4rem; background: var(--wp--preset--color--primary); color: #fff; font-weight: 700; }
.hac-kb-search.is-light .wp-block-search__inside-wrapper { box-shadow: none; border: 1.5px solid var(--wp--preset--color--border) !important; }
.hac-kb-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.hac-kb-topic { background: var(--hac-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hac-radius-m); padding: 1.4rem; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.hac-kb-topic:hover { box-shadow: var(--wp--preset--shadow--lifted); transform: translateY(-3px); }
.hac-kb-topic__head { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.hac-kb-topic__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--wp--preset--color--primary-soft); display: grid; place-items: center; flex: none; color: var(--wp--preset--color--primary); }
.hac-kb-topic__icon .hac-ii { width: 24px; height: 24px; }
.hac-kb-topic h3 { font-size: 1.15rem !important; margin: 0; }
.hac-kb-topic h3 a { color: inherit; text-decoration: none; }
.hac-kb-topic__count { font-size: .78rem; color: var(--wp--preset--color--muted); margin: .1rem 0 0; }
.hac-kb-topic ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.hac-kb-topic li { border-top: 1px solid #efebe2; }
.hac-kb-topic li a { display: block; padding: .55rem 0; text-decoration: none; color: var(--wp--preset--color--contrast); font-size: .92rem; line-height: 1.4; }
.hac-kb-topic li a:hover { color: var(--wp--preset--color--primary); }
.hac-kb-topic__all { margin-top: auto; font-weight: 700; font-size: .88rem; text-decoration: none; }
.hac-kb-topic__empty { color: var(--wp--preset--color--muted); font-size: .9rem; }
.hac-kb-topic.is-sub { background: var(--wp--preset--color--surface); }
.hac-kb-list { list-style: none; margin: 0; padding: 0; }
.hac-kb-list li { border-bottom: 1px solid var(--wp--preset--color--border); }
.hac-kb-list li a { display: flex; gap: .7rem; align-items: center; padding: .8rem 0; text-decoration: none; color: var(--wp--preset--color--contrast); font-weight: 500; }
.hac-kb-list li a::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--wp--preset--color--primary); -webkit-mask: var(--hac-doc) center/contain no-repeat; mask: var(--hac-doc) center/contain no-repeat; }
.hac-kb-list li a:hover { color: var(--wp--preset--color--primary); }
.hac-kb-article { font-size: 1.075rem; }
.hac-kb-article p[style*="justify"] { text-align: left !important; }
.hac-kb-article iframe { max-width: 100%; border-radius: var(--hac-radius-m); }
.hac-kb-article img { max-width: 100%; height: auto; border-radius: var(--hac-radius-s); }
.hac-doc-link a { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; background: var(--wp--preset--color--surface); text-decoration: none; font-weight: 600; }
.hac-doc-link a::before { content: ""; width: 20px; height: 20px; background: var(--wp--preset--color--primary); -webkit-mask: var(--hac-doc) center/contain no-repeat; mask: var(--hac-doc) center/contain no-repeat; }
.hac-kb-sidebar { position: sticky; top: 120px; }
.hac-kb-terms a { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary-dark); text-decoration: none; font-size: .8rem; font-weight: 600; margin: 0 .3rem .3rem 0; }
.hac-kb-terms a:hover { background: var(--wp--preset--color--primary); color: #fff; }
.hac-kb-terms .wp-block-post-terms__separator { display: none; }
.hac-surface .hac-kb-terms a { background: var(--hac-card); }

/* ==========================================================================
   Footer
   ========================================================================== */
.hac-footer { position: relative; overflow: hidden; isolation: isolate; }
.hac-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .05; background-image: url("assets/images/pattern.svg"); background-size: 130px; }
.hac-footer h2, .hac-footer h3, .hac-footer h4 { color: #fff; font-family: var(--wp--preset--font-family--body); font-size: .8rem !important; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 1rem; }
.hac-footer p, .hac-footer li { color: rgba(255,255,255,.75); font-size: var(--wp--preset--font-size--small); }
.hac-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.hac-footer a:hover { color: #fff; text-decoration: underline; }
.hac-footer .hac-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.hac-footer .hac-footer__brand img { max-height: 40px; width: auto; }
.hac-footer .wp-block-social-links .wp-social-link { background: rgba(255,255,255,.1) !important; color: #fff !important; }
.hac-footer .wp-block-social-links .wp-social-link:hover { background: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--primary-dark) !important; }
.hac-footer .hac-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.hac-footer .hac-footer__bottom p { font-size: var(--wp--preset--font-size--x-small); margin: 0; }
.hac-footer .hac-footer__contact p { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 .7rem; }
.hac-footer .hac-footer__contact p.hac-ib::before { margin-top: .25em; color: var(--wp--preset--color--accent); }
.hac-footer .hac-footer-salat .xst-daily { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #fff !important; box-shadow: none !important; }
.hac-footer .hac-footer-salat .xst-daily * { color: inherit !important; }
.hac-footer .hac-footer-salat .xst-daily-head { display: none; }
.hac-footer .hac-footer-salat table { margin: 0 !important; }
.hac-footer .hac-footer-salat th, .hac-footer .hac-footer-salat td { border-color: rgba(255,255,255,.1) !important; background: transparent !important; font-size: .85rem; padding: .35rem .7rem !important; }

.hac-footer .hac-footer__disclaimer { border: 1px solid rgba(232, 120, 104, .45); background: rgba(180, 35, 24, .14); border-radius: 12px; align-items: center; }
.hac-footer .hac-footer__disclaimer p { margin: 0; font-size: var(--wp--preset--font-size--x-small); color: #ffd9d3; }
.hac-footer .hac-footer__tos a { display: inline-block; white-space: nowrap; border: 1.5px solid rgba(255,140,120,.7); border-radius: 999px; padding: .3rem .85rem; font-weight: 700; color: #fff; }
.hac-footer .hac-footer__tos a:hover { background: #b42318; border-color: #b42318; text-decoration: none; }
.hac-footer .hac-footer__credits { font-size: var(--wp--preset--font-size--x-small); margin: .9rem 0 0; color: rgba(255,255,255,.6); }
.hac-footer .hac-copyright p, .hac-footer .hac-year { margin: 0; font-size: var(--wp--preset--font-size--x-small); }

/* CTA band */
.hac-cta { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--hac-radius-l); }
.hac-cta::after { content: ""; position: absolute; z-index: -1; right: -40px; bottom: -30px; width: 360px; aspect-ratio: 4.68; opacity: .1; background: url("assets/images/logo-mark-white.png") center / contain no-repeat; }

/* Map */
.hac-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--hac-radius-l); display: block; filter: saturate(.85); }

/* Motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .hac-header-wrap, .hac-topbar, .hac-footer, .hac-page-header::before, .hac-page-header::after { display: none !important; } .hac-page-header { background: none; color: #000; } .hac-page-header h1 { color: #000; } }


/* ==========================================================================
   Layout additions
   ========================================================================== */
/* Sticky header: the whole header template part sticks, scrolled up by the top bar's height. */
:root { --hac-topbar-h: 38px; }
header.wp-block-template-part:has(.hac-header) { position: sticky; top: calc(-1 * var(--hac-topbar-h)); z-index: 60; }
.admin-bar header.wp-block-template-part:has(.hac-header) { top: calc(32px - var(--hac-topbar-h)); }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part:has(.hac-header) { top: calc(46px - var(--hac-topbar-h)); } }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part:has(.hac-header) { top: calc(-1 * var(--hac-topbar-h)); } }
.hac-topbar { height: var(--hac-topbar-h); display: flex; flex-direction: column; justify-content: center; overflow: hidden; white-space: nowrap; }
.hac-topbar p { margin: 0; }
.hac-topbar__inner { width: 100%; }
@media (max-width: 480px) { .hac-topbar .hac-today__en { display: none; } .hac-topbar .hac-today__sep { display: none; } }

/* Collapse the menu to the overlay below 1340px, so the full site title fits on one line next to it (core switches only at 600px). */
@media (min-width: 600px) and (max-width: 1339px) {
	.hac-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.hac-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.hac-header .wp-block-navigation__responsive-container.is-menu-open { display: flex; position: fixed; inset: 0; }
	.hac-header .wp-block-navigation__responsive-container-close:not(.always-shown) { display: flex; }
	.hac-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { flex-direction: column; align-items: flex-start; }
	.hac-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-start; }
	.hac-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { position: static; opacity: 1; visibility: visible; height: auto; width: auto; min-width: 0 !important; }
	.hac-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle { display: none; }
}
.hac-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: .95rem; color: var(--wp--preset--color--muted); }

/* Home hero */
.hac-hero {
	background:
		linear-gradient(110deg, rgba(29,61,55,.97) 0%, rgba(47,90,83,.93) 48%, rgba(13,75,107,.86) 100%),
		url("assets/images/hero-banner.jpg") center / cover no-repeat;
}
[data-theme="dark"] .hac-hero { background: linear-gradient(110deg, rgba(8,16,14,.97) 0%, rgba(22,46,41,.95) 50%, rgba(10,45,64,.9) 100%), url("assets/images/hero-banner.jpg") center / cover no-repeat; }
.hac-hero .hac-eyebrow { color: var(--wp--preset--color--accent); }
.hac-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); margin-top: .4rem; }
.hac-hero-meta .hac-ii { color: var(--wp--preset--color--accent); margin-right: .3rem; }
.hac-glass .xst-daily-title { font-family: var(--wp--preset--font-family--heading); }

/* Page content spacing (default page template) */
.hac-entry > :first-child:not(.alignfull) { margin-top: var(--wp--preset--spacing--60); }
.hac-entry > :last-child:not(.alignfull) { margin-bottom: var(--wp--preset--spacing--70); }
.hac-entry > .alignfull:first-child { margin-top: 0; }
.wp-block-post-content > .alignfull + .alignfull { margin-top: 0; }
.hac-entry.is-full > .alignfull:last-child { margin-bottom: 0; }
main > .wp-block-post-content { margin-top: 0; }
.wp-block-post-content > .alignfull { margin-block: 0; }

/* Form page sidebar */
@media (min-width: 782px) { .hac-aside > :first-child { position: sticky; top: 110px; } }
.hac-aside .hac-card + .hac-card { margin-top: var(--wp--preset--spacing--40); }

/* PayPal + misc buttons */
.hac-paypal { margin-top: auto; padding-top: .75rem; }
.hac-paypal button, .hac-link-btn {
	font: inherit; font-weight: 700; font-size: var(--wp--preset--font-size--small); cursor: pointer; border: 0; border-radius: 999px;
	background: var(--wp--preset--color--primary); color: #fff; padding: .8rem 1.5rem; transition: background .2s, transform .2s;
}
.hac-paypal button::after { content: " · PayPal"; font-weight: 500; opacity: .8; }
.hac-paypal button:hover { background: var(--wp--preset--color--primary-dark); transform: translateY(-1px); }
[data-theme="dark"] .hac-paypal button { background: #2f5a53; }
.hac-link-btn { background: transparent; color: var(--wp--preset--color--primary); padding: .3rem 0; }
.hac-link-btn:hover { text-decoration: underline; }

/* WooCommerce donation products: hidden until products exist (admins always see it) */
.hac-woo-donations:not(:has(li.product)) { display: none; }
.logged-in .hac-woo-donations:not(:has(li.product)), .block-editor-block-list__block.hac-woo-donations { display: block; }
.logged-in .hac-woo-donations:not(:has(li.product))::after, .block-editor-block-list__block.hac-woo-donations::after { content: "Admin note: add WooCommerce products to the “Donations” category to show them here. Visitors don’t see this section until then."; display: block; max-width: 1240px; margin: 0 auto; padding: 1rem 1.25rem; border: 1px dashed var(--wp--preset--color--border); border-radius: 12px; color: var(--wp--preset--color--muted); font-size: .9rem; }
.hac-woo-donations ul.products li.product { background: var(--hac-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hac-radius-m); padding: 1rem 1rem 1.25rem !important; text-align: left; }
.hac-woo-donations ul.products li.product img { border-radius: 10px; }
.woocommerce a.button, .woocommerce button.button, .wc-block-components-button:not(.is-link) { border-radius: 999px !important; background: var(--wp--preset--color--primary) !important; color: #fff !important; font-weight: 700 !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--wp--preset--color--primary-dark) !important; }

/* Membership slot (replace with the membership plugin form) */
.hac-membership-slot { border: 2px dashed rgba(47,90,83,.35); }
.hac-admin-note { display: none; }
.logged-in .hac-admin-note { display: block; }

/* Misc */
.is-style-hac-checklist { list-style: none; padding-left: 0 !important; }
.hac-narrow-grid { max-width: 820px; margin-inline: auto !important; }
.hac-card .wp-block-details:last-child { border-bottom: 0; }
.hac-card .wp-block-details summary { font-size: .98rem; }
.hac-card .wp-block-quote, .hac-card.is-dark .wp-block-quote { border-left: 0; padding-left: 0; }
.hac-card.is-dark .wp-block-quote p { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.hac-card.is-dark .hac-quote-mark { font-size: 4rem; }
.hac-hero .xst-daily, .hac-panel .xst-daily { font-family: inherit; }
.has-text-align-center .wp-block-quote, .has-text-align-center.wp-block-group .wp-block-quote { text-align: center; }
.hac-section-head { margin-bottom: var(--wp--preset--spacing--50); }
.hac-badge.hac-card::after { top: calc(var(--hac-pad) + 14px); left: calc(var(--hac-pad) + 14px); }
.hac-cta .wp-block-image img { box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hac-cta .hac-eyebrow { color: var(--wp--preset--color--accent); }
.hac-cta h2 { color: #fff; }
.hac-today-card { padding: 1.5rem; }
.hac-tile.hac-badge::after { top: calc(1.2rem + 10px); left: calc(1.2rem + 10px); }

/* ==========================================================================
   Theme toggle + dark mode
   html[data-theme="dark"] is set by a tiny inline script before paint
   (saved choice, else the system setting).
   ========================================================================== */
.hac-theme-toggle {
	display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
	border-radius: 999px; border: 1px solid var(--wp--preset--color--border); background: var(--hac-card);
	color: var(--wp--preset--color--primary-dark); cursor: pointer; padding: 0; transition: background .2s, color .2s, transform .2s;
}
.hac-theme-toggle:hover { background: var(--wp--preset--color--primary-soft); transform: rotate(-12deg); }
.hac-theme-toggle svg { width: 20px; height: 20px; }
.hac-theme-toggle .hac-sun { display: none; }
[data-theme="dark"] .hac-theme-toggle .hac-sun { display: block; }
[data-theme="dark"] .hac-theme-toggle .hac-moon { display: none; }

html[data-theme="dark"] {
	color-scheme: dark;
	--wp--preset--color--base: #0f1715;
	--wp--preset--color--surface: #141f1c;
	--wp--preset--color--border: #2a3834;
	--wp--preset--color--muted: #a3b2ad;
	--wp--preset--color--contrast: #e9eeec;
	--wp--preset--color--primary: #5fa898;
	--wp--preset--color--primary-dark: #0b1412;
	--wp--preset--color--primary-soft: #1b2c28;
	--wp--preset--color--accent-soft: #2a2416;
	--wp--preset--color--secondary: #1b5f82;
	--hac-card: #17221f;
	--hac-input: #111a18;
	--hac-header-bg: rgba(15, 23, 21, .94);
	--hac-heading: #f1f4f2;
}
[data-theme="dark"] body { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
[data-theme="dark"] :is(h1, h2, h3, h4, h5, h6),
[data-theme="dark"] .wp-block-site-title a,
[data-theme="dark"] .wp-block-post-title a,
[data-theme="dark"] .hac-stat .hac-stat__num,
[data-theme="dark"] .hac-price,
[data-theme="dark"] .hac-today-card .hac-today__day,
[data-theme="dark"] .hac-price-list strong { color: var(--hac-heading); }
[data-theme="dark"] a { color: #8fd0c1; }
[data-theme="dark"] a:hover { color: #b7e5da; }
[data-theme="dark"] .wp-element-button, [data-theme="dark"] .wp-block-button__link { background-color: #2f5a53; color: #fff; }
[data-theme="dark"] .wp-element-button:hover, [data-theme="dark"] .wp-block-button__link:hover { background-color: #3d7268; color: #fff; }
[data-theme="dark"] .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #8fd0c1; }
[data-theme="dark"] .wp-block-button.is-style-hac-gold .wp-block-button__link { background: var(--wp--preset--color--accent); color: #1a1407; }
[data-theme="dark"] .has-base-background-color { background-color: var(--wp--preset--color--base) !important; }
[data-theme="dark"] .has-surface-background-color { background-color: var(--wp--preset--color--surface) !important; }
[data-theme="dark"] .has-primary-soft-background-color { background-color: #16241f !important; }
[data-theme="dark"] .has-accent-soft-background-color { background-color: #231e12 !important; }
[data-theme="dark"] .has-primary-background-color { background-color: #24463f !important; }
[data-theme="dark"] .has-contrast-color { color: var(--wp--preset--color--contrast) !important; }
[data-theme="dark"] .has-primary-dark-color { color: var(--hac-heading) !important; }
[data-theme="dark"] .has-muted-color { color: var(--wp--preset--color--muted) !important; }
[data-theme="dark"] .hac-header { border-bottom-color: rgba(255,255,255,.07); }
[data-theme="dark"] .hac-header .wp-block-navigation .wp-block-navigation-item__content { color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .hac-header .wp-block-navigation .wp-block-navigation-item__content:hover,
[data-theme="dark"] .hac-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { color: #fff; }
[data-theme="dark"] .hac-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .hac-header .wp-block-navigation__responsive-container-open,
[data-theme="dark"] .hac-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .hac-brand .wp-block-site-logo img, [data-theme="dark"] .hac-brand .hac-logo-img img { filter: brightness(0) invert(1) opacity(.92); }
[data-theme="dark"] .hac-theme-toggle { color: var(--wp--preset--color--accent); }
[data-theme="dark"] .hac-page-header { background: linear-gradient(120deg, #0b1412 0%, #1d3d37 60%, #1d4a50 100%); }
[data-theme="dark"] .hac-glass { background: rgba(23, 34, 31, .97); border-color: rgba(255,255,255,.08); color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .hac-card.is-link:hover, [data-theme="dark"] .hac-tile:hover { border-color: rgba(143,208,193,.35); }
[data-theme="dark"] .hac-card, [data-theme="dark"] .hac-tile, [data-theme="dark"] .hac-panel, [data-theme="dark"] .hac-form,
[data-theme="dark"] .hac-kb-topic, [data-theme="dark"] .hac-post-card { box-shadow: none; }
[data-theme="dark"] .hac-badge.is-blue { --hac-badge-bg: #14303f; --hac-badge-fg: #7cc0e2; }
[data-theme="dark"] .hac-badge.is-gold { --hac-badge-fg: #e0be6c; }
[data-theme="dark"] .hac-badge { --hac-badge-fg: #8fd0c1; }
[data-theme="dark"] .hac-badge.is-solid { --hac-badge-bg: #2f5a53; --hac-badge-fg: #fff; }
[data-theme="dark"] .hac-callout { border-color: rgba(196,154,60,.35); }
[data-theme="dark"] .hac-notice.is-success { background: #12301f; color: #9fe0bb; border-color: #1f5236; }
[data-theme="dark"] .hac-notice.is-error { background: #3a1512; color: #f5b5ad; border-color: #5c211b; }
[data-theme="dark"] .hac-form { --f-border: #34443f; }
[data-theme="dark"] .hac-form :is(input, select, textarea):hover { border-color: #4a5c56; }
[data-theme="dark"] .hac-form :is(input, select, textarea):focus { background: #0f1715; }
[data-theme="dark"] .hac-form select { background-color: var(--hac-input); }
[data-theme="dark"] .hac-form__actions button { background: #2f5a53; }
[data-theme="dark"] .hac-form__actions button:hover { background: #3d7268; }
[data-theme="dark"] .hac-choice input:checked + span { background: #2f5a53; border-color: #5fa898; }
[data-theme="dark"] .wp-block-table.is-style-hac-clean tbody tr:hover td { background: #1b2824; }
[data-theme="dark"] .hac-kb-topic li { border-top-color: #22302c; }
[data-theme="dark"] .hac-kb-search .wp-block-search__inside-wrapper { background: var(--hac-card); }
[data-theme="dark"] .hac-kb-search .wp-block-search__input { color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .hac-kb-terms a { color: #b7e5da; }
[data-theme="dark"] .hac-img-frame img, [data-theme="dark"] .hac-rounded img { filter: brightness(.92); }
[data-theme="dark"] .hac-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
[data-theme="dark"] ::selection { background: #3b3220; color: #fff; }
[data-theme="dark"] .wp-block-separator { border-color: var(--wp--preset--color--border); }
[data-theme="dark"] .hac-footer { background-color: #0a1210 !important; }
[data-theme="dark"] .hac-topbar { background-color: #070d0c !important; }

/* Plugin output in dark mode (salat timings, calendar, Site Essentials form) */
[data-theme="dark"] .xst { --xst-text: var(--wp--preset--color--contrast); color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .xst :is(table, th, td, caption, p, span, label) { color: inherit; border-color: var(--wp--preset--color--border) !important; }
[data-theme="dark"] .xst :is(.xst-daily, .xst-monthly-table, table) { background-color: transparent !important; }
[data-theme="dark"] .xst tr:nth-child(even) :is(td, th) { background-color: rgba(255,255,255,.03) !important; }
[data-theme="dark"] .xst :is(input, select, button:not([class*="accent"])) { background: var(--hac-input); color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--border); }
[data-theme="dark"] :is(.xllentech_calendar, .xc-calendar, .xllentech-calendar-pro, .xc_calendar_table, .xc-upcoming-islamic, .xc-programs) { color: var(--wp--preset--color--contrast); }
[data-theme="dark"] :is(.xllentech_calendar, .xc-calendar, .xllentech-calendar-pro) :is(table, th, td) { background-color: transparent; border-color: var(--wp--preset--color--border) !important; color: inherit; }
[data-theme="dark"] .xc-upcoming-meta, [data-theme="dark"] .xc-programs :is(small, .xc-program-meta, .xc-programs-where) { color: var(--wp--preset--color--muted) !important; }
[data-theme="dark"] .xc-upcoming-title, [data-theme="dark"] .xc-programs a { color: #b7e5da !important; }
[data-theme="dark"] .lse-cf :is(input, select, textarea) { background: var(--hac-input); color: var(--wp--preset--color--contrast); border-color: #34443f; }
[data-theme="dark"] .lse-cf label { color: var(--wp--preset--color--contrast); }

/* Fixes after first review */
.hac-card h3 a, .hac-card h2 a { text-decoration: none; color: inherit; }
.hac-card h3 a:hover { color: var(--wp--preset--color--primary); }
.hac-header .wp-block-navigation-item__content { white-space: nowrap; }
.hac-header .wp-block-navigation__container { flex-wrap: nowrap; }
.hac-header .hac-donate-btn .wp-block-button__link { white-space: nowrap; display: inline-flex; align-items: center; }
.hac-brand { min-width: 0; flex-shrink: 1; }
.hac-brand .wp-block-site-logo { flex: none; }
.hac-glass__foot span { color: var(--wp--preset--color--muted); }
.hac-hero .hac-bismillah { text-align: left; direction: rtl; display: inline-block; }
.hac-price { font-size: 2.3rem; }
.hac-price small { display: block; margin-top: .35rem; font-size: .85rem; }
.hac-choices > .hac-field__help, .hac-choices > legend { grid-column: 1 / -1; flex-basis: 100%; }
.hac-aside .hac-card { height: auto; }

/* Upcoming programs: stack date above events whenever the list sits in a narrow box (sidebar). */
.xc-programs { container-type: inline-size; }
@container (max-width: 520px) {
	.xc-programs-day { grid-template-columns: 1fr; padding: 12px 0; }
	.xc-programs-event { flex-direction: column; gap: 0; }
	.xc-programs-time { flex: none; font-size: 12.5px; }
	.xc-programs-badge { width: 42px; height: 42px; }
}
.xc-programs a.xc-programs-title { color: var(--wp--preset--color--contrast); }

/* Quick-link tiles on phones: compact rows, icon on the left. */
@media (max-width: 600px) {
	.hac-tile { padding: .9rem 1rem .9rem 4.4rem !important; min-height: 4.5rem; justify-content: center; }
	.hac-tile.hac-badge::before { position: absolute; left: 1rem; top: 50%; margin: -22px 0 0; }
	.hac-tile.hac-badge::after { left: calc(1rem + 10px); top: calc(50% - 12px); }
}

/* Mobile menu overlay: left-aligned list with clear groups (core inherits the header's right justification). */
.hac-header .wp-block-navigation__responsive-container.is-menu-open { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; overflow-y: auto; }
.hac-header .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container, .wp-block-navigation-item, .wp-block-navigation__submenu-container) { align-items: flex-start !important; text-align: left; width: 100%; }
.hac-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { border-bottom: 1px solid var(--wp--preset--color--border); padding-bottom: .4rem; }
.hac-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { font-weight: 700; }
.hac-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { padding: 0 0 .25rem 1rem !important; }
.hac-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .35rem .25rem; }

/* Dark mode: XllenTech calendar surfaces (the plugin mixes its tints with white). */
[data-theme="dark"] :is(.xllentech-calendar-pro, .xllentech-calendar-widget, .xllentech-islamic-today, .xcp_upcoming_cpt_events, .xllentech-calendar-pro-annual, .xllentech-calendar-pro-annual-RTL, .xc-event-details, .xc-programs) {
	--xc-text: var(--wp--preset--color--contrast);
	--xc-muted: var(--wp--preset--color--muted);
	--xc-faint: #6f7f7a;
	--xc-border: var(--wp--preset--color--border);
	--xc-surface: var(--hac-card);
	--xc-surface-alt: #121b19;
	--xc-shadow: none;
}
[data-theme="dark"] .xc-upcoming-item:hover { border-color: #3a4d48; }
[data-theme="dark"] :is(a.xc-event, span.xc-event) { background: color-mix(in srgb, var(--xc-event-color) 30%, #17221f); }
[data-theme="dark"] a.xc-event:is(:hover, :focus) { background: color-mix(in srgb, var(--xc-event-color) 45%, #17221f); }
[data-theme="dark"] .xc-upcoming-date,
[data-theme="dark"] .xc-programs-badge { background: color-mix(in srgb, var(--xc-event-color) 28%, #17221f); color: color-mix(in srgb, var(--xc-event-color) 45%, #fff); }
[data-theme="dark"] .xc-programs-today .xc-programs-badge { background: var(--xc-event-color); color: #fff; }
[data-theme="dark"] .xc-legend-item i { background: color-mix(in srgb, var(--xc-event-color, #334155) 40%, #17221f); }
[data-theme="dark"] :is(.xc-programs-english, .xc-programs-location) { color: var(--wp--preset--color--muted); }
[data-theme="dark"] .xc-programs-islamic { color: #7fd09a; }

/* Dark mode: "base" (white) is remapped to the dark page colour, but text set in base sits on
   dark bands (topbar, footer, post hero), so keep it light. Today's cell in the calendar too. */
[data-theme="dark"] .has-base-color,
[data-theme="dark"] .has-base-color.has-link-color a:not(.wp-element-button):not(.wp-block-button__link) { color: #eef3f1 !important; }
[data-theme="dark"] :is(.xllentech-calendar-pro, .xllentech-calendar-widget) tbody td.xllentech-today { background: #1f312c !important; }
[data-theme="dark"] .xc-programs-time { color: #a9b8b3; }

/* Aside: only a lone card sticks; with several cards the later ones would slide over the first. */
.hac-aside:has(> :nth-child(2)) > :first-child { position: static; }
[data-theme="dark"] .wp-block-details summary { color: var(--wp--preset--color--contrast); }
[data-theme="dark"] .wp-block-table.is-style-hac-clean thead th { color: var(--hac-heading); background: #1a2724; }
[data-theme="dark"] .hac-header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content { color: #fff; }

/* Site Essentials contact form: brand colours via its CSS variables (replaces the maroon default). */
.lse-cf {
	--lse-cf-field-bg: var(--wp--preset--color--surface);
	--lse-cf-focus-bg: var(--hac-card);
	--lse-cf-border: var(--wp--preset--color--border);
	--lse-cf-hover: rgba(47,90,83,.35);
	--lse-cf-accent: var(--wp--preset--color--primary);
	--lse-cf-label: var(--wp--preset--color--contrast);
	--lse-cf-button: linear-gradient(135deg, #2f5a53 0%, #1d3d37 100%);
	--lse-cf-shadow: rgba(29,61,55,.55);
}
[data-theme="dark"] .lse-cf {
	--lse-cf-field-bg: #121b19;
	--lse-cf-hover: rgba(143,208,193,.4);
	--lse-cf-accent: #8fd0c1;
	--lse-cf-button: linear-gradient(135deg, #3d7168 0%, #2f5a53 100%);
	--lse-cf-shadow: rgba(0,0,0,.6);
}

/* News page: Facebook Page Plugin (max 500px wide by Facebook's design). */
.hac-fb-embed { max-width: 500px; background: var(--hac-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hac-radius-l); box-shadow: var(--wp--preset--shadow--soft); padding: .6rem; overflow: hidden; }
.hac-fb-embed iframe { display: block; width: 100%; max-width: 500px; height: 900px; border-radius: calc(var(--hac-radius-l) - .4rem); background: #fff; }
.hac-fb-embed .fb-page, .hac-fb-embed .fb-page > span, .hac-fb-embed .fb-page iframe { width: 100% !important; }
@media (max-width: 600px) { .hac-fb-embed iframe { height: 720px; } }
.hac-news-band { padding: clamp(1.5rem, 3vw, 2.25rem) !important; }
.hac-news-band h2 { margin-top: .3rem; }
@media (max-width: 781px) { .hac-news-btns { justify-content: flex-start !important; } }
.hac-news-band > .wp-block-columns { align-items: center !important; margin: 0; }
.hac-news-band > .wp-block-columns > .wp-block-column { align-self: center; }

/* Site title on one line (full menu shows from 1340px, see the collapse rule above). */
.hac-brand .wp-block-site-title { white-space: nowrap; font-size: 1.05rem !important; }
.hac-brand .wp-block-site-logo img, .hac-brand .hac-logo-img img { max-height: 28px; }
.hac-brand { gap: .65rem !important; }
@media (max-width: 600px) {
	.hac-brand .wp-block-site-title { font-size: clamp(.8rem, 3.6vw, .95rem) !important; }
	.hac-brand .wp-block-site-logo img, .hac-brand .hac-logo-img img { max-height: 22px; }
	.hac-brand { gap: .5rem !important; }
}
@media (max-width: 479px) {
	.hac-brand .wp-block-site-logo, .hac-brand .hac-logo-img { display: none; }
	.hac-brand .wp-block-site-title { font-size: clamp(.72rem, 3.7vw, 1rem) !important; }
}

/* ==========================================================================
   Business directory
   ========================================================================== */
.hac-biz-dir { display: grid; gap: 1.5rem; }
.hac-biz-search { display: flex; gap: .4rem; max-width: 640px; padding: .35rem; background: var(--hac-card); border: 1.5px solid var(--wp--preset--color--border); border-radius: 999px; }
.hac-biz-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .6rem 1.1rem; font: inherit; font-size: 1.02rem; color: var(--wp--preset--color--contrast); }
.hac-biz-search input:focus { outline: none; }
.hac-biz-search:focus-within { border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px rgba(47,90,83,.15); }
.hac-biz-search button { border-radius: 999px; padding: .65rem 1.4rem; }
.hac-biz-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hac-biz-chips a { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--border); background: var(--hac-card); color: var(--wp--preset--color--contrast); font-size: var(--wp--preset--font-size--small); font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.hac-biz-chips a span { font-size: .78em; font-weight: 700; color: var(--wp--preset--color--muted); }
.hac-biz-chips a:hover { border-color: var(--wp--preset--color--primary); }
.hac-biz-chips a[aria-current] { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.hac-biz-chips a[aria-current] span { color: rgba(255,255,255,.75); }
.hac-biz-status { margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.hac-biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 1.25rem; }
.hac-biz-card { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: var(--hac-card); border: 1px solid var(--wp--preset--color--border); border-radius: var(--hac-radius-m); box-shadow: var(--wp--preset--shadow--soft); transition: transform .2s var(--hac-ease), box-shadow .2s, border-color .2s; }
.hac-biz-card:hover { transform: translateY(-2px); box-shadow: var(--wp--preset--shadow--lifted); border-color: rgba(47,90,83,.3); }
.hac-biz-logo { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--wp--preset--color--border); }
.hac-biz-logo img { width: 100%; height: 100%; object-fit: contain; }
.hac-biz-logo.is-initials { background: var(--wp--preset--color--primary-soft); border-color: transparent; color: var(--wp--preset--color--primary); font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.35rem; }
.hac-biz-card__body { min-width: 0; display: grid; gap: .3rem; }
.hac-biz-cat { position: relative; z-index: 2; justify-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--accent); text-decoration: none; }
.hac-biz-cat:hover { text-decoration: underline; }
.hac-biz-card__title { margin: 0; font-family: var(--wp--preset--font-family--body); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.hac-biz-card__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.hac-biz-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hac-biz-card__text { margin: 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted); line-height: 1.5; }
.hac-biz-card__links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .35rem 0 0; font-size: var(--wp--preset--font-size--x-small); font-weight: 600; }
.hac-biz-card__links a { color: var(--wp--preset--color--primary); text-decoration: none; overflow-wrap: anywhere; }
.hac-biz-card__links a:hover { text-decoration: underline; }
.hac-biz-pages { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.hac-biz-pages a, .hac-biz-pages span { display: grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--border); text-decoration: none; font-weight: 700; color: var(--wp--preset--color--contrast); }
.hac-biz-pages span { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
/* Listing page */
.hac-biz-details .hac-biz-logo { width: 100%; height: auto; max-height: 220px; aspect-ratio: 16 / 9; margin-bottom: 1.25rem; padding: .75rem; }
.hac-biz-details .hac-biz-logo.is-initials { font-size: 3rem; padding: 0; }
.hac-biz-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hac-biz-contact li { display: grid; grid-template-columns: auto 1fr; column-gap: .1rem; overflow-wrap: anywhere; }
.hac-biz-contact li::before { grid-row: span 2; margin-top: .2em; color: var(--wp--preset--color--primary); }
.hac-biz-contact li span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.hac-biz-contact li > :not(span) { grid-column: 2; }
.hac-biz-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0 0; }
.hac-biz-tags a { padding: .25rem .7rem; border-radius: 999px; background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary-dark); font-size: var(--wp--preset--font-size--x-small); font-weight: 600; text-decoration: none; }
.hac-biz-disclaimer { margin-top: var(--wp--preset--spacing--60) !important; color: var(--wp--preset--color--muted); }
[data-theme="dark"] .hac-biz-logo { background: #f4f1ea; border-color: transparent; }
[data-theme="dark"] .hac-biz-logo.is-initials { background: #1f312c; color: #8fd0c1; }
[data-theme="dark"] .hac-biz-card__links a { color: #8fd0c1; }
[data-theme="dark"] .hac-biz-tags a { background: #1f312c; color: #b7e5da; }
[data-theme="dark"] .hac-biz-search input { color: var(--wp--preset--color--contrast); }
@media (max-width: 600px) { .hac-biz-search button { padding: .6rem 1rem; } .hac-biz-logo { width: 52px; height: 52px; } }
.hac-biz-details .hac-biz-logo { height: 220px; max-height: none; aspect-ratio: auto; }
.hac-biz-details .hac-biz-logo img { width: 100%; height: 100%; object-fit: contain; }
.hac-biz-details .hac-biz-logo img { width: auto; height: auto; max-width: 100%; max-height: calc(220px - 1.5rem); }
.hac-biz-card .hac-biz-logo img { max-height: 100%; }

/* Flow-Flow social stream inside the news embed box: let it use the column width. */
.hac-fb-embed:has(.ff-stream) { max-width: none; padding: .75rem; }
.hac-fb-embed .ff-stream { max-width: 100%; min-height: 0; }

/* Classic WooCommerce product lists ([products] shortcode, e.g. Donate page causes): a responsive
   grid instead of Woo's float columns, which break when cards have padding and borders. */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 1.5rem; margin: 0 !important; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product { float: none !important; clear: none !important; width: auto !important; margin: 0 !important; display: flex; flex-direction: column; }
.woocommerce ul.products li.product > a:first-child { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.woocommerce ul.products li.product img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin: 0 0 .9rem !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.1rem !important; padding: 0 !important; margin: 0 0 .35rem; }
.woocommerce ul.products li.product .price { display: block; margin: 0 0 .9rem; color: var(--wp--preset--color--muted); }
.woocommerce ul.products li.product .button { margin-top: auto !important; align-self: flex-start; }
@media (min-width: 600px) { .hac-woo-donations ul.products { grid-template-columns: repeat(auto-fit, minmax(14rem, 17rem)); } }
[data-theme=dark] .woocommerce ul.products li.product .woocommerce-loop-product__title { color: #eef3f1; }
