/* ============================================================
   a11y.css — site-wide accessibility helpers (loaded on every page)
   Keep this file small: it is render-blocking by design so that
   focus styles and the skip link work before any other CSS/JS.
   ============================================================ */

/* Visually hidden, still read by screen readers */
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* "Skip to main content" link: hidden until it receives keyboard focus */
.skip-link {
	position: absolute;
	top: -100px;
	inset-inline-start: 8px;
	z-index: 1000000;
	background: #2a6806;
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 8px 8px;
	font-weight: 700;
	text-decoration: none;
	transition: top .15s;
}

.skip-link:focus {
	top: 0;
}

/* Visible keyboard focus everywhere. :focus-visible means mouse clicks
   do not show the ring, only keyboard / assistive-tech focus does. */
:focus-visible {
	outline: 3px solid #f0c300 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px #2a6806 !important;
}

/* menu.min.css has "button:focus { outline: 0 !important }" (more specific than the rule above),
   which removed the ring from EVERY button: keyboard users could not see where they were on the
   header icons. "html button" is more specific, so the ring comes back. */
html button:focus-visible,
html [role="button"]:focus-visible,
html input[type="submit"]:focus-visible,
html input[type="button"]:focus-visible {
	outline: 3px solid #f0c300 !important;
	outline-offset: 2px !important;
}

.dark-mode :focus-visible {
	outline-color: #ffd84d !important;
	box-shadow: 0 0 0 2px #000 !important;
}

#main-content:focus {
	outline: none !important;
	box-shadow: none !important;
}

/* Dropdown menus are hover-only in dropdown-effects/fade-down.css;
   :focus-within lets keyboard users open them with Tab. */
.wsmenu>.wsmenu-list>li:focus-within>ul.sub-menu,
.wsmenu>.wsmenu-list>li.a11y-open>ul.sub-menu,
.wsmenu>.wsmenu-list>li>ul.sub-menu>li:focus-within>ul.sub-menu,
.wsmenu>.wsmenu-list>li>ul.sub-menu>li.a11y-open>ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: rotateX(0deg);
	-webkit-transform: rotateX(0deg);
}

/* Phones/tablets: menu.min.js opens a sub-menu with display:block, but
   dropdown-effects/fade-down.css still keeps it at opacity:0 / visibility:hidden
   unless the <li> is :hover. A finger tap fakes :hover, a screen-reader
   activation (TalkBack / VoiceOver) does not, so blind visitors got an "open"
   menu with invisible, unreachable items. On small screens the open/closed
   state is display-based only. */
@media (max-width: 991px) {
	.wsmenu>.wsmenu-list>li>ul.sub-menu,
	.wsmenu>.wsmenu-list>li>ul.sub-menu>li>ul.sub-menu {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		-webkit-transform: none !important;
		transition: none !important;
	}
}

/* The injected sub-menu arrow is now a real button: show where keyboard focus is */
.wsmenu-click:focus-visible,
.wsmenu-click02:focus-visible {
	outline: 3px solid #f0c300 !important;
	outline-offset: -3px !important;
}

/* Icon-only controls that used to be <i>/<img>/<a href="#"> and are now
   real <button>s: strip the default button chrome so the design is unchanged */
.a11y-btn {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	color: inherit;
	font: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

/* Finger-alphabet toggle: the <img> used to carry .pointerhand (round-cropped);
   now the <button> does, so clip the image to the same white circle */
.a11y-btn.pointerhand {
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	border-radius: 50% !important;
	overflow: hidden;
	line-height: 0;
	justify-content: center;
}

.a11y-btn.pointerhand img {
	display: block;
	width: 26px;
	height: 26px;
	border-radius: 50%;
}

/* Font-size controls (A- / A / A+) inside the accessibility settings menu */
.settings_menu .controls {
	display: flex;
	align-items: center;
	gap: 6px;
}

.settings_menu .controls button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 32px;
	padding: 3px 8px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	border: 1px solid #bbb;
	border-radius: 4px;
	background: #fff;
	color: #2a6806;
	cursor: pointer;
}

.settings_menu .controls button:hover {
	background: #eee;
}

/* Theme rules that were tag-qualified (".section-title h3", ".txt-block h3.h3-sm"):
   same values for the h2 that now carries those classes on the home page */
.section-title h2 {
	margin-bottom: 12px;
}

.txt-block h2.h3-sm {
	margin-bottom: 25px;
}

@media (max-width: 1199.98px) {
	.txt-block h2.h3-sm {
		margin-bottom: 20px;
	}
}

/* Form validation messages: text, not only colour */
.field-error {
	display: block;
	color: #b00020;
	font-size: .95rem;
	margin-top: 4px;
}

.dark-mode .field-error {
	color: #ff8a9b;
}

input.error,
textarea.error,
select.error {
	border-color: #b00020 !important;
}

/* Contact / donate forms: the theme only styles input[type=text]; the email and
   phone fields now use their proper types, so give them the identical box */
.contact-top div input[type=email],
.contact-top div input[type=tel] {
	width: 100%;
	padding: .7em;
	margin: .4em 0 0;
	background: 0 0;
	outline: 0;
	border: 1px solid #bebdbd;
	-webkit-appearance: none;
}

.contact-top div input[type=email].error,
.contact-top div input[type=tel].error {
	border: 1px solid red !important;
	color: red !important;
}

.required-mark {
	color: #b00020;
	font-weight: 700;
	margin-inline-start: 3px;
}

/* Preloader: fade out as soon as the DOM is ready (see template.php) */
#loader-wrapper {
	transition: opacity .3s ease, visibility .3s ease;
}

#loader-wrapper.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Mobile menu button: the theme stretches the toggle across the bar (left:5px +
   right:0) and draws the bars 80px from the right, on top of the date text, so
   on narrow screens the button is covered/invisible. Pin it to a 44px box on
   the left and keep the text clear of it. */
@media (max-width: 991px) {
	#wsnavtoggle {
		left: 8px !important;
		right: auto !important;
		width: 44px !important;
		height: 44px !important;
		margin: 0 !important;
		padding: 0 !important;
		top: 50% !important;
		transform: translateY(-50%) !important;
		z-index: 1000 !important;
	}

	#wsnavtoggle span {
		right: auto !important;
		left: 9px !important;
		top: 50% !important;
		margin-top: -2px !important;
	}

	.mobile-main-bar {
		padding-left: 60px !important;
	}

	/* While the menu is open the theme shifts the header 300px to the left, which
	   pushed the close (X) button off screen. Keep it in the visible strip and
	   draw it as a white X on a green disc so it is readable over the logo. */
	.wsactive #wsnavtoggle {
		left: auto !important;
		right: 8px !important;
		background: #2a6806 !important;
		border-radius: 50%;
		box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
	}

	.wsactive #wsnavtoggle span:before,
	.wsactive #wsnavtoggle span:after {
		background: #fff !important;
	}

	/* Centre the X inside the 44px disc: the theme leaves the two bars 7px
	   below the middle and with different widths, so the X looked off-centre.
	   Put both bars exactly on the (centred) middle bar, same width. */
	.wsactive #wsnavtoggle span {
		left: 11px !important;
		top: calc(50% - 1.5px) !important;
		margin-top: 0 !important;
	}

	.wsactive #wsnavtoggle span:before,
	.wsactive #wsnavtoggle span:after {
		top: 0 !important;
		bottom: auto !important;
		left: 0 !important;
		width: 22px !important;
	}

	/* Date/time line next to the logo: the theme forces "text-align: left" for
	   both languages, so Arabic text started from the left on phones. Align it
	   with the page direction (right in Arabic, left in English). */
	[dir="rtl"] .mobile-info-wrap,
	[dir="rtl"] .mobile-info-wrap .info-line {
		text-align: right !important;
		direction: rtl !important;
	}

	[dir="ltr"] .mobile-info-wrap,
	[dir="ltr"] .mobile-info-wrap .info-line {
		text-align: left !important;
		direction: ltr !important;
	}

	/* English (LTR): the theme puts the logo on the LEFT, so the button goes to
	   the right edge; when the menu is open the header shifts right instead */
	[dir="ltr"] #wsnavtoggle {
		left: auto !important;
		right: 8px !important;
	}

	[dir="ltr"] .mobile-main-bar {
		padding-right: 60px !important;
	}

	[dir="ltr"] .wsactive #wsnavtoggle {
		right: auto !important;
		left: 8px !important;
	}
}

/* About-page tab items are real links now (keyboard + screen readers). The link
   must not change the theme's layout: on desktop it is a plain block; on
   mobile the theme makes each <li> a centred flex column, so the link repeats
   that layout for the icon/text it now wraps. */
#faqs-1 .tabs-1 li > a.tab-item-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

/* Side-menu items: the Arabic stylesheet fixed every item at height:40px, so a
   title that wraps onto a second line was cut in half (unreadable, worse when
   the visitor enlarges the text). Let the item grow with its text, as the
   English stylesheet already does. */
#faqs-1 .tabs-1 li {
	height: auto !important;
	min-height: 40px;
}

#faqs-1 .tabs-1 li h5 {
	line-height: 1.5;
	overflow-wrap: anywhere;
}

@media (max-width: 991px) {
	#faqs-1 .tabs-1 li > a.tab-item-link {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
	}
}

/* ===== Round 2: search, listen, contrast, touch targets ===== */

/* Site search form (footer + search page) */
.site-search {
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
}

.site-search-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 7px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
	color: #222;
	background: #fff;
}

.site-search-btn {
	flex: 0 0 auto;
	min-width: 44px;
	min-height: 40px;
	border: 0;
	border-radius: 4px;
	background: #f0c300;
	color: #2a6806;
	font-size: 1.1rem;
	cursor: pointer;
}

.site-search-btn:hover {
	background: #ffd84d;
}

.site-search--page .site-search-input {
	font-size: 1.15rem;
	padding: 12px 14px;
}

.search-results h2 {
	margin-top: 30px;
}

.search-results li {
	padding: 12px 0;
	border-bottom: 1px dashed #ddd;
}

.search-results mark {
	background: #fff3a6;
	color: inherit;
	padding: 0 2px;
}

.search-snippet {
	color: #555;
	margin: 4px 0 0;
}

.search-section {
	display: inline-block;
	font-size: .85rem;
	color: #2a6806;
	background: #eef5ea;
	border-radius: 4px;
	padding: 1px 8px;
	margin-inline-start: 8px;
}

.sitemap-tree ul {
	list-style: disc;
	padding-inline-start: 24px;
	margin: 0 0 8px;
	text-align: start;
}

.sitemap-tree li {
	display: list-item;
	float: none;
	margin: 4px 0;
	text-align: start;
}

.sitemap-tree li a {
	display: inline;
	float: none;
}

.sitemap-tree time {
	color: #666;
	font-size: .9rem;
}

.sitemap-tree,
.sitemap-tree h2 {
	text-align: start;
}

/* "Listen to this page" and «قراءة سهلة» buttons: same white disc as the other header icons */
.tts-btn,
.easy-mode-btn,
.top-search-toggle {
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #fff;
	color: #2a6806;
	font-size: 13px;
	justify-content: center;
	line-height: 1;
}

/* no voice on this device: a11y.js hides the listen buttons (the .a11y-btn display would override [hidden]) */
.tts-btn[hidden] { display: none !important; }

.tts-btn:hover,
.easy-mode-btn:hover,
.top-search-toggle:hover {
	background: #f2f2f2;
}

.tts-btn[aria-pressed="true"],
.easy-mode-btn[aria-pressed="true"],
.top-search-toggle[aria-expanded="true"] {
	background: #f0c300 !important;
	color: #2a6806 !important;
}

/* Contrast toggle inside the accessibility settings menu */
.settings_menu .contrast_mode .controls button {
	min-width: auto;
	padding: 4px 10px;
	font-weight: 600;
}

.settings_menu .contrast_mode .controls button[aria-pressed="true"] {
	background: #000;
	color: #ff0;
	border-color: #000;
}

/* High-contrast mode: yellow on black, underlined links, photos kept */
html.high-contrast,
html.high-contrast body {
	background: #000 !important;
	color: #ff0 !important;
}

html.high-contrast *:not(img):not(video):not(svg):not(path):not(circle):not(iframe) {
	background-color: #000 !important;
	background-image: none !important;
	color: #ff0 !important;
	border-color: #ff0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

html.high-contrast a,
html.high-contrast a * {
	color: #0ff !important;
	text-decoration: underline !important;
}

html.high-contrast button,
html.high-contrast .btn,
html.high-contrast input,
html.high-contrast select,
html.high-contrast textarea {
	outline: 2px solid #ff0 !important;
	outline-offset: 1px;
}

html.high-contrast svg path,
html.high-contrast svg circle {
	fill: #ff0 !important;
}

html.high-contrast img,
html.high-contrast video {
	filter: contrast(1.15);
}

html.high-contrast ::placeholder {
	color: #ff0 !important;
	opacity: .8;
}

html.high-contrast :focus-visible {
	outline: 4px solid #0ff !important;
	box-shadow: none !important;
}

/* Grey secondary text in the theme (#888/#999 = 2.8-3.5:1) raised to >= 4.5:1.
   (.section-title p is deliberately NOT here: on green sections it is white.) */
.tm-meta span,
.tm-meta span a,
.tm-meta p,
.course-rating span,
.c4-box-list li a {
	color: #666 !important;
}

/* Touch targets: small header icons get a 44px hit area without changing their look */
.header-actions .a11y-btn,
.header-actions .lang-btn,
.mobile-actions .a11y-btn,
.mobile-actions .lang-btn {
	position: relative;
}

.header-actions .a11y-btn::after,
.header-actions .lang-btn::after,
.mobile-actions .a11y-btn::after,
.mobile-actions .lang-btn::after {
	content: "";
	position: absolute;
	inset: -9px;
}

.a11y-btn.pointerhand {
	overflow: visible;
}

/* Honour the user's "reduce motion" OS setting */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	#loader-wrapper {
		display: none !important;
	}
}

/* ===== Round 3 (2026-10-25): page sections list, shortcuts dialog, carousel pause, gallery skip ===== */
.a11y-sections { position: relative; height: 0; z-index: 100000; }
.a11y-sections-toggle { position: absolute; top: -100px; inset-inline-start: 8px; background: #2a6806; color: #fff; border: 0; padding: 10px 18px; border-radius: 0 0 8px 8px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.a11y-sections-toggle:focus, .a11y-sections-toggle[aria-expanded="true"] { top: 0; }
.a11y-sections ul { position: absolute; top: 48px; inset-inline-start: 8px; margin: 0; padding: 8px 0; list-style: none; background: #fff; color: #222; border: 2px solid #2a6806; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); min-width: 260px; max-width: 90vw; max-height: 60vh; overflow: auto; text-align: start; }
.a11y-sections ul li { margin: 0; padding: 0; }
.a11y-sections ul li a { display: block; padding: 8px 16px; color: #222; text-decoration: none; font-size: 15px; line-height: 1.5; }
.a11y-sections ul li a:hover, .a11y-sections ul li a:focus { background: #eef6e9; color: #2a6806; }
#main-content h2[tabindex="-1"] { scroll-margin-top: 120px; }
.a11y-shortcuts-open { border: 0; cursor: pointer; font: inherit; }
.a11y-dialog { position: fixed; inset: 0; z-index: 1000001; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.a11y-dialog[hidden] { display: none; }
.a11y-dialog-box { background: #fff; color: #222; border-radius: 10px; padding: 24px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); text-align: start; }
.a11y-dialog-box h2 { font-size: 22px; margin: 0 0 8px; color: #2a6806; }
.a11y-dialog-box h2:focus { outline: none; }
.a11y-dialog-box p { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.a11y-shortcuts-list { list-style: none; margin: 0 0 16px; padding: 0; }
.a11y-shortcuts-list li { padding: 6px 0; border-bottom: 1px solid #eee; font-size: 15px; }
.a11y-shortcuts-list kbd { display: inline-block; min-width: 72px; font-family: inherit; font-size: 14px; font-weight: 700; color: #1d4a04; background: #eef5e9; border: 1px solid #2a6806; border-radius: 4px; padding: 2px 8px; margin-inline-end: 8px; direction: ltr; text-align: center; }
.a11y-dialog-close { background: #2a6806; color: #fff; border: 0; border-radius: 6px; padding: 8px 20px; font: inherit; cursor: pointer; }
body.a11y-dialog-open { overflow: hidden; }
.a11y-carousel-toggle { display: inline-block; margin: 0 0 10px; padding: 3px 12px; font: inherit; font-size: 13px; line-height: 1.6; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 20px; cursor: pointer; opacity: .85; }
.a11y-carousel-toggle:hover { opacity: 1; }
/* same button over the home hero photo (top corner, over the sky, away from the title) */
#hero-1 { position: relative; }
#hero-1 .a11y-hero-motion { position: absolute; top: 84px; left: 16px; z-index: 5; margin: 0; color: #2a6806; background: rgba(255, 255, 255, .75); border-color: rgba(42, 104, 6, .5); }
[dir="ltr"] #hero-1 .a11y-hero-motion { left: auto; right: 16px; }
html.high-contrast .a11y-dialog-box, html.high-contrast .a11y-sections ul { background: #000 !important; color: #ff0 !important; }
html.high-contrast .a11y-shortcuts-list kbd { background: #000 !important; color: #fff !important; border-color: #fff !important; }

/* ===== Logo shine (all pages, 2026-10-28) =====
   The header logo fades in and a soft band of light sweeps across it once (done in about 2.3s, so
   no pause button is needed), then again when the logo link is hovered or focused. The light layer
   is clipped to the logo's own shape (mask = the logo PNG, set inline as --logo-src) and is
   aria-hidden, so screen readers still read only the image alt. Runs only under html.motion-on;
   hidden when paused, in high contrast, Windows contrast themes and print. */
.logo-glint { position: relative; display: inline-block; vertical-align: middle; line-height: 0; }
.mobile-logo-wrap .logo-glint { display: block; }
.logo-shine {
	display: none; position: absolute; inset: 0; overflow: hidden; pointer-events: none;
	--shine-from: -100%; --shine-to: 225%;
	-webkit-mask: var(--logo-src) center / 100% 100% no-repeat;
	mask: var(--logo-src) center / 100% 100% no-repeat;
}
[dir="rtl"] .logo-shine { --shine-from: 100%; --shine-to: -225%; }
.logo-shine::before,
.logo-shine::after {
	content: ""; position: absolute; top: -10%; bottom: -10%; inset-inline-start: 0; width: 45%;
	background: linear-gradient(105deg, rgba(255, 252, 235, 0) 15%, rgba(255, 252, 235, .85) 50%, rgba(255, 252, 235, 0) 85%);
	transform: translateX(var(--shine-from));
}
html.motion-on .logo-shine { display: block; }
html.motion-on .logo-glint img { animation: logo-glint-in .8s ease-out both; }
html.motion-on .logo-shine::before { animation: logo-glint-sweep 1.4s ease-in-out .9s both; }
html.motion-on a:hover .logo-shine::after,
html.motion-on a:focus-visible .logo-shine::after { transform: translateX(var(--shine-to)); transition: transform .9s ease-in-out; }
@keyframes logo-glint-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes logo-glint-sweep { from { transform: translateX(var(--shine-from)); } to { transform: translateX(var(--shine-to)); } }
html.motion-paused .logo-shine,
html.high-contrast .logo-shine { display: none !important; }
html.motion-paused .logo-glint img { animation: none !important; }
@media (forced-colors: active) { .logo-shine { display: none !important; } }
@media print { .logo-shine { display: none !important; } }

/* ===== Footer "photo gallery" picture (all pages, 2026-10-28) =====
   Looks like a small pile of photos: gold-framed picture with two tilted cards behind it and a
   camera badge. When the footer scrolls into view (a11y.js adds .fg-seen) the pile fans out and a
   light sweeps across the photo once; hover / keyboard focus fans it further and zooms the photo.
   Everything is CSS decoration: the link and the image alt are unchanged, the photo is never
   hidden, the badge is a background image (nothing for screen readers to read). */
.footer-gallery .mlr { position: relative; }
.footer-gallery .mlr::before,
.footer-gallery .mlr::after {
	content: "";
	position: absolute;
	top: 6px; bottom: 6px; left: 22px; right: 22px;   /* inside the column padding */
	border-radius: 12px;
	pointer-events: none;
	transition: transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
.footer-gallery .mlr::before { background: rgba(255, 255, 255, .85); transform: rotate(-6deg) translate(-6px, 2px); }
.footer-gallery .mlr::after  { background: #f0c300; opacity: .75; transform: rotate(4deg) translate(6px, 2px); }
.footer-gallery .mlr > a {
	display: block;
	position: relative;
	z-index: 1;
	overflow: hidden;
	padding: 5px;
	border-radius: 12px;
	background: linear-gradient(135deg, #f0c300, #fff2a8 45%, #f0c300);
	box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
	transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .5s ease;
}
.footer-gallery .mlr > a img {
	display: block;
	width: 100%;
	border-radius: 8px;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
/* camera badge (green camera on a gold disc) */
.footer-gallery .mlr > a::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: 12px;
	inset-inline-start: 12px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
	background: #f0c300 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232a6806' d='M9 4 7.2 6H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-3.2L15 4H9zm3 4.5A4.5 4.5 0 1 1 7.5 13 4.5 4.5 0 0 1 12 8.5zm0 2A2.5 2.5 0 1 0 14.5 13 2.5 2.5 0 0 0 12 10.5z'/%3E%3C/svg%3E") center / 22px no-repeat;
	transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
/* light sweep */
.footer-gallery .mlr > a::after {
	content: "";
	position: absolute;
	z-index: 3;
	top: 0; bottom: 0; left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-18deg);
	opacity: 0;
	pointer-events: none;
}
@keyframes fg-sweep       { 0% { opacity: 1; transform: translateX(0) skewX(-18deg); } 100% { opacity: 1; transform: translateX(450%) skewX(-18deg); } }
@keyframes fg-sweep-again { 0% { opacity: 1; transform: translateX(0) skewX(-18deg); } 100% { opacity: 1; transform: translateX(450%) skewX(-18deg); } }
@keyframes fg-badge-hop   { 0%, 100% { transform: none; } 30% { transform: translateY(-6px) rotate(-12deg); } 60% { transform: rotate(8deg); } }

/* waiting to be seen: the pile is squared up (never hidden), then it fans out */
html.motion-on .footer-gallery.fg-wait .mlr::before,
html.motion-on .footer-gallery.fg-wait .mlr::after { transform: none; }
html.motion-on .footer-gallery.fg-seen .mlr > a::after { animation: fg-sweep 1.1s ease-in-out .5s; }
html.motion-on .footer-gallery.fg-seen .mlr > a::before { animation: fg-badge-hop .8s ease-in-out .3s; }

/* hover and keyboard focus: same experience */
html.motion-on .footer-gallery .mlr:hover::before,
html.motion-on .footer-gallery .mlr:focus-within::before { transform: rotate(-10deg) translate(-14px, 4px); }
html.motion-on .footer-gallery .mlr:hover::after,
html.motion-on .footer-gallery .mlr:focus-within::after  { transform: rotate(8deg) translate(14px, 4px); }
html.motion-on .footer-gallery .mlr > a:hover,
html.motion-on .footer-gallery .mlr > a:focus-visible { transform: translateY(-6px); box-shadow: 0 20px 34px rgba(0, 0, 0, .38); }
html.motion-on .footer-gallery .mlr > a:hover img,
html.motion-on .footer-gallery .mlr > a:focus-visible img { transform: scale(1.07); }
html.motion-on .footer-gallery .mlr > a:hover::after,
html.motion-on .footer-gallery .mlr > a:focus-visible::after { animation: fg-sweep-again 1s ease-in-out; }
html.motion-on .footer-gallery .mlr > a:hover::before,
html.motion-on .footer-gallery .mlr > a:focus-visible::before { transform: scale(1.12) rotate(-8deg); }

/* the gold focus ring would vanish on the gold frame: white ring on the green footer */
.footer-gallery .mlr > a:focus-visible {
	outline: 3px solid #fff !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 2px #2a6806, 0 20px 34px rgba(0, 0, 0, .38) !important;
}
html.high-contrast .footer-gallery .mlr > a:focus-visible { outline: 4px solid #0ff !important; }

/* stopped motion, high contrast, Windows contrast themes, print: plain framed photo */
html.motion-paused .footer-gallery .mlr::before,
html.motion-paused .footer-gallery .mlr::after,
html.motion-paused .footer-gallery .mlr > a,
html.motion-paused .footer-gallery .mlr > a img,
html.motion-paused .footer-gallery .mlr > a::before { transition: none !important; animation: none !important; }
html.motion-paused .footer-gallery .mlr > a::after { display: none; }
html.high-contrast .footer-gallery .mlr::before,
html.high-contrast .footer-gallery .mlr::after,
html.high-contrast .footer-gallery .mlr > a::before,
html.high-contrast .footer-gallery .mlr > a::after { display: none; }
html.high-contrast .footer-gallery .mlr > a { background: none; box-shadow: none; border: 2px solid currentColor; }
@media (forced-colors: active), print {
	.footer-gallery .mlr::before, .footer-gallery .mlr::after,
	.footer-gallery .mlr > a::before, .footer-gallery .mlr > a::after { display: none; }
	.footer-gallery .mlr > a { background: none; box-shadow: none; border: 2px solid CanvasText; }
}

/* ===== Footer: light, lively touches (all pages, 2026-10-28) =====
   - when the footer scrolls into view (a11y.js: .ft-wait -> .ft-seen) the four columns rise in one
     after another, the social circles and contact tiles pop in, a gold bar draws under each
     column title and a gold light runs once along the bottom line (all done in ~2.7 s);
   - hover AND keyboard focus: social circle turns gold and flips, contact tile lifts with a gold
     edge (its icon wiggles), useful links nudge forward with a gold icon.
   Nothing changes for screen readers (decoration = transforms + pseudo-elements); anything still
   waiting to appear shows at once when it gets keyboard focus. Only under html.motion-on; hidden
   in high contrast, Windows contrast themes and print. Brand colours only. */

/* gold bar under each footer column title (static, everyone) */
#footer-2 h5.h5-md::after {
	content: "";
	display: block;
	width: 46px;
	height: 3px;
	margin-top: 10px;
	border-radius: 3px;
	background: linear-gradient(90deg, #f0c300, #fff2a8, #f0c300);
	transform-origin: 100% 50%;
	transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .5s;
}
[dir="ltr"] #footer-2 h5.h5-md::after { transform-origin: 0 50%; }

/* columns rise in, one after another */
html.motion-on #footer-2 .row > .col-md-3 {
	transition: opacity .7s ease, transform .8s cubic-bezier(.34, 1.56, .64, 1);
}
html.motion-on #footer-2.ft-wait .row > .col-md-3 { opacity: 0; transform: translateY(28px); }
html.motion-on #footer-2.ft-wait h5.h5-md::after { transform: scaleX(0); }
html.motion-on #footer-2 .row > .col-md-3:nth-child(1) { transition-delay: 0s; }
html.motion-on #footer-2 .row > .col-md-3:nth-child(2) { transition-delay: .12s; }
html.motion-on #footer-2 .row > .col-md-3:nth-child(3) { transition-delay: .24s; }
html.motion-on #footer-2 .row > .col-md-3:nth-child(4) { transition-delay: .36s; }
/* reached with the keyboard before it was scrolled to: appear at once */
html.motion-on #footer-2.m-instant .row > .col-md-3 { transition: none !important; }

/* social circles and contact tiles pop in */
@keyframes ft-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.12); } 100% { transform: none; } }
html.motion-on #footer-2.ft-seen .footer-social li i,
html.motion-on #footer-2.ft-seen .mediaa .item { animation: ft-pop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
html.motion-on #footer-2.ft-seen .footer-social li:nth-child(1) i { animation-delay: .5s; }
html.motion-on #footer-2.ft-seen .footer-social li:nth-child(2) i { animation-delay: .62s; }
html.motion-on #footer-2.ft-seen .footer-social li:nth-child(3) i { animation-delay: .74s; }
html.motion-on #footer-2.ft-seen .footer-social li:nth-child(n+4) i { animation-delay: .86s; }
html.motion-on #footer-2.ft-seen .mediaa .item:nth-child(1) { animation-delay: .45s; }
html.motion-on #footer-2.ft-seen .mediaa .item:nth-child(2) { animation-delay: .55s; }
html.motion-on #footer-2.ft-seen .mediaa .item:nth-child(3) { animation-delay: .65s; }
html.motion-on #footer-2.ft-seen .mediaa .item:nth-child(4) { animation-delay: .75s; }
html.motion-on #footer-2.ft-seen .mediaa + .mediaa .item { animation-delay: .85s; }

/* a gold light runs once along the bottom line, in reading direction */
#footer-2 .bottom-footer { position: relative; }
#footer-2 .bottom-footer::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 0;
	width: 25%;
	height: 2px;
	background: linear-gradient(90deg, transparent, #f0c300, #fff2a8, #f0c300, transparent);
	opacity: 0;
	pointer-events: none;
}
[dir="ltr"] #footer-2 .bottom-footer::before { left: auto; right: 0; }
@keyframes ft-line-run {
	0%   { opacity: 0; transform: translateX(300%); }
	15%  { opacity: 1; }
	85%  { opacity: 1; }
	100% { opacity: 0; transform: translateX(0); }
}
@keyframes ft-line-run-ltr {
	0%   { opacity: 0; transform: translateX(-300%); }
	15%  { opacity: 1; }
	85%  { opacity: 1; }
	100% { opacity: 0; transform: translateX(0); }
}
html.motion-on #footer-2.ft-seen .bottom-footer::before { animation: ft-line-run 1.8s ease-in-out .9s; }
html.motion-on[dir="ltr"] #footer-2.ft-seen .bottom-footer::before { animation-name: ft-line-run-ltr; }

/* hover + keyboard focus */
@keyframes ft-flip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes ft-ring { 0%, 100% { transform: none; } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
#footer-2 .footer-social li a i { transition: background-color .35s ease, color .35s ease; }
#footer-2 .footer-social li a:hover i,
#footer-2 .footer-social li a:focus-visible i { background-color: #f0c300; color: #2a6806; }
html.motion-on #footer-2 .footer-social li a:hover i,
html.motion-on #footer-2 .footer-social li a:focus-visible i { animation: ft-flip .7s ease-in-out; }

/* contact tiles: the theme's 25% white tint on the footer green (#2a6806) gave #5f8e44, only 3.86:1
   for the white text. 14% -> #487d29 = 4.95:1, hover/focus 18% -> #508333 = 4.53:1 (WCAG AA 4.5). */
#footer-2 .mediaa .item { background-color: rgba(255, 255, 255, .14); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, background-color .3s ease; }
#footer-2 .mediaa .item:hover,
#footer-2 .mediaa .item:focus-within { background-color: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 2px #f0c300; }
html.motion-on #footer-2 .mediaa .item:hover,
html.motion-on #footer-2 .mediaa .item:focus-within { transform: translateY(-4px); }
html.motion-on #footer-2 .mediaa .item:hover .icon,
html.motion-on #footer-2 .mediaa .item:focus-within .icon { animation: ft-ring .7s ease-in-out; }

#footer-2 .foo-links a { display: inline-block; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
#footer-2 .foo-links a i { transition: color .3s ease; }
#footer-2 .foo-links a:hover i,
#footer-2 .foo-links a:focus-visible i { color: #f0c300; }
html.motion-on #footer-2 .foo-links a:hover,
html.motion-on #footer-2 .foo-links a:focus-visible { transform: translateX(-6px); }
html.motion-on[dir="ltr"] #footer-2 .foo-links a:hover,
html.motion-on[dir="ltr"] #footer-2 .foo-links a:focus-visible { transform: translateX(6px); }

/* stopped motion: everything visible and still */
html.motion-paused #footer-2 .row > .col-md-3 { opacity: 1 !important; transform: none !important; transition: none !important; }
html.motion-paused #footer-2 h5.h5-md::after { transform: none !important; transition: none !important; }
html.motion-paused #footer-2 .footer-social li i,
html.motion-paused #footer-2 .mediaa .item,
html.motion-paused #footer-2 .mediaa .item .icon,
html.motion-paused #footer-2 .bottom-footer::before { animation: none !important; }
html.motion-paused #footer-2 .mediaa .item,
html.motion-paused #footer-2 .foo-links a { transform: none !important; }

/* contrast modes and print: no decoration, everything visible */
html.high-contrast #footer-2 h5.h5-md::after,
html.high-contrast #footer-2 .bottom-footer::before { display: none; }
@media (forced-colors: active), print {
	#footer-2 h5.h5-md::after, #footer-2 .bottom-footer::before { display: none; }
	#footer-2 .row > .col-md-3 { opacity: 1 !important; transform: none !important; }
}

/* ===== Footer "while you look" wave (all pages, 2026-10-28) =====
   When the footer is on screen and the visitor rests (no scroll, mouse, key or touch for 4 s),
   a11y.js adds #footer-2.ft-idle for ~3.6 s and one wave runs through the footer: title bars
   stretch, social circles hop like a stadium wave, contact tiles rise with a gold glow, links
   nudge, the photo pile fans out with a light sweep, the bottom line shines. It plays ONCE per
   rest (the visitor must move again before it can replay), so nothing moves on its own for
   more than 5 s (WCAG 2.2.2). Transforms/opacity only; nothing for screen readers. */
@keyframes ft-idle-bar   { 0%, 100% { transform: scaleX(1); } 45% { transform: scaleX(1.9); } }
@keyframes ft-idle-hop   { 0%, 100% { transform: none; } 35% { transform: translateY(-12px) scale(1.12); } 60% { transform: translateY(2px) scale(.97); } }
@keyframes ft-idle-rise  { 0%, 100% { transform: none; } 40% { transform: translateY(-7px); } }
@keyframes ft-idle-glow  { 0%, 100% { opacity: 0; } 40% { opacity: 1; } }
@keyframes ft-idle-nudge { 0%, 100% { transform: none; } 40% { transform: translateX(-8px); } }
@keyframes ft-idle-nudge-ltr { 0%, 100% { transform: none; } 40% { transform: translateX(8px); } }
@keyframes ft-idle-lift  { 0%, 100% { transform: none; } 40% { transform: translateY(-9px) rotate(-1.5deg); } }
@keyframes ft-idle-fan-a { 0%, 100% { transform: rotate(-6deg) translate(-6px, 2px); } 40% { transform: rotate(-12deg) translate(-18px, 5px); } }
@keyframes ft-idle-fan-b { 0%, 100% { transform: rotate(4deg) translate(6px, 2px); } 40% { transform: rotate(10deg) translate(18px, 5px); } }
@keyframes ft-idle-sweep { 0% { opacity: 1; transform: translateX(0) skewX(-18deg); } 100% { opacity: 1; transform: translateX(450%) skewX(-18deg); } }
@keyframes ft-idle-line  { 0% { opacity: 0; transform: translateX(300%); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(0); } }
@keyframes ft-idle-line-ltr { 0% { opacity: 0; transform: translateX(-300%); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(0); } }

/* 1. title bars stretch, one column after another */
html.motion-on #footer-2.ft-idle h5.h5-md::after { animation: ft-idle-bar .8s ease-in-out both; }
html.motion-on #footer-2.ft-idle .row > .col-md-3:nth-child(2) h5.h5-md::after { animation-delay: .15s; }
html.motion-on #footer-2.ft-idle .row > .col-md-3:nth-child(3) h5.h5-md::after { animation-delay: .3s; }
html.motion-on #footer-2.ft-idle .row > .col-md-3:nth-child(4) h5.h5-md::after { animation-delay: .45s; }

/* 2. social circles: stadium wave */
html.motion-on #footer-2.ft-idle .footer-social li i { animation: ft-idle-hop .7s ease-in-out .3s both; }
html.motion-on #footer-2.ft-idle .footer-social li:nth-child(2) i { animation-delay: .42s; }
html.motion-on #footer-2.ft-idle .footer-social li:nth-child(3) i { animation-delay: .54s; }
html.motion-on #footer-2.ft-idle .footer-social li:nth-child(4) i { animation-delay: .66s; }
html.motion-on #footer-2.ft-idle .footer-social li:nth-child(n+5) i { animation-delay: .78s; }

/* 3. contact tiles rise in turn with a soft gold edge */
#footer-2 .mediaa .item { position: relative; }
#footer-2 .mediaa .item::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 2px #f0c300, 0 0 14px rgba(240, 195, 0, .45);
	opacity: 0;
	pointer-events: none;
}
html.motion-on #footer-2.ft-idle .mediaa .item { animation: ft-idle-rise .7s ease-in-out .55s both; }
html.motion-on #footer-2.ft-idle .mediaa .item::after { animation: ft-idle-glow .7s ease-in-out .55s both; }
html.motion-on #footer-2.ft-idle .mediaa .item:nth-child(2),
html.motion-on #footer-2.ft-idle .mediaa .item:nth-child(2)::after { animation-delay: .67s; }
html.motion-on #footer-2.ft-idle .mediaa .item:nth-child(3),
html.motion-on #footer-2.ft-idle .mediaa .item:nth-child(3)::after { animation-delay: .79s; }
html.motion-on #footer-2.ft-idle .mediaa .item:nth-child(4),
html.motion-on #footer-2.ft-idle .mediaa .item:nth-child(4)::after { animation-delay: .91s; }
html.motion-on #footer-2.ft-idle .mediaa + .mediaa .item,
html.motion-on #footer-2.ft-idle .mediaa + .mediaa .item::after { animation-delay: 1.03s; }

/* 4. useful links nudge forward in turn */
html.motion-on #footer-2.ft-idle .foo-links li a { animation: ft-idle-nudge .6s ease-in-out .8s both; }
html.motion-on[dir="ltr"] #footer-2.ft-idle .foo-links li a { animation-name: ft-idle-nudge-ltr; }
html.motion-on #footer-2.ft-idle .foo-links li:nth-child(2) a { animation-delay: .9s; }
html.motion-on #footer-2.ft-idle .foo-links li:nth-child(3) a { animation-delay: 1s; }
html.motion-on #footer-2.ft-idle .foo-links li:nth-child(n+4) a { animation-delay: 1.1s; }

/* 5. photo pile fans out, the photo lifts, a light sweeps across it */
html.motion-on #footer-2.ft-idle .footer-gallery .mlr::before { animation: ft-idle-fan-a 1.3s cubic-bezier(.34, 1.56, .64, 1) 1.1s both; }
html.motion-on #footer-2.ft-idle .footer-gallery .mlr::after  { animation: ft-idle-fan-b 1.3s cubic-bezier(.34, 1.56, .64, 1) 1.1s both; }
html.motion-on #footer-2.ft-idle .footer-gallery .mlr > a { animation: ft-idle-lift 1.3s cubic-bezier(.34, 1.56, .64, 1) 1.1s both; }
html.motion-on #footer-2.ft-idle .footer-gallery .mlr > a::after { animation: ft-idle-sweep 1s ease-in-out 1.4s; }

/* 6. the bottom line shines last */
html.motion-on #footer-2.ft-idle .bottom-footer::before { animation: ft-idle-line 1.6s ease-in-out 1.8s; }
html.motion-on[dir="ltr"] #footer-2.ft-idle .bottom-footer::before { animation-name: ft-idle-line-ltr; }

html.motion-paused #footer-2.ft-idle *,
html.motion-paused #footer-2.ft-idle *::before,
html.motion-paused #footer-2.ft-idle *::after { animation: none !important; }
html.high-contrast #footer-2 .mediaa .item::after { display: none; }
@media (forced-colors: active), print { #footer-2 .mediaa .item::after { display: none; } }

/* ===== Photo lightbox (Magnific Popup, all pages, 2026-10-29) =====
   (selectors start with "html" because magnific-popup.css loads after this file)
   Deep green backdrop that softly blurs the page, the photo in a rounded gold frame, a round gold
   close button and the photo's description as a caption (a11y.js fills .mfp-title, aria-hidden:
   screen readers already hear it as the image alt). The photo zooms in gently when it opens
   (only under html.motion-on). Magnific's own sizing is kept: the 40px top/bottom padding of
   img.mfp-img stays, the frame is drawn by .mfp-figure::after around the image area. */
html .mfp-bg {
	background: radial-gradient(circle at 50% 40%, rgba(31, 61, 12, .94), rgba(6, 14, 3, .97));
	opacity: 1;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
html .mfp-image-holder .mfp-figure::after {
	top: 34px;
	bottom: 34px;
	left: -6px;
	right: -6px;
	border-radius: 18px;
	background: linear-gradient(135deg, #f0c300, #fff2a8 45%, #f0c300);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
html .mfp-image-holder img.mfp-img {
	-webkit-clip-path: inset(40px 0 40px 0 round 12px);
	clip-path: inset(40px 0 40px 0 round 12px);
}
/* round gold close button, clear of the photo's corner */
html .mfp-image-holder .mfp-close,
html .mfp-iframe-holder .mfp-close {
	width: 46px;
	height: 46px;
	line-height: 44px;
	top: 14px;
	right: -14px;
	padding: 0;
	text-align: center;
	border-radius: 50%;
	background: #f0c300;
	color: #2a6806;
	opacity: 1;
	font-size: 32px;
	font-weight: 700;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
	transition: transform .3s ease;
}
html .mfp-image-holder .mfp-close:hover,
html .mfp-image-holder .mfp-close:focus-visible { transform: scale(1.1) rotate(90deg); color: #1f3d0c; }
/* the site's gold focus ring would vanish on the gold button: white ring here */
html .mfp-close:focus-visible {
	outline: 3px solid #fff !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 2px #2a6806, 0 6px 16px rgba(0, 0, 0, .4) !important;
}
/* caption under the photo */
html .mfp-image-holder .mfp-bottom-bar { margin-top: -30px; }
html .mfp-image-holder .mfp-title {
	color: #fff;
	font-size: 1.05rem;
	line-height: 1.6;
	text-align: center;
	padding: 0 50px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
html .mfp-counter { color: #f0c300; }

/* opening: backdrop fades in, the framed photo zooms in with a little bounce */
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-zoom { 0% { opacity: 0; transform: scale(.82); } 70% { opacity: 1; transform: scale(1.02); } 100% { opacity: 1; transform: none; } }
html.motion-on .mfp-bg.mfp-ready { animation: lb-fade .35s ease both; }
html.motion-on .mfp-ready .mfp-figure { animation: lb-zoom .5s cubic-bezier(.34, 1.56, .64, 1) both; }
html.motion-paused .mfp-bg.mfp-ready,
html.motion-paused .mfp-ready .mfp-figure,
html.motion-paused .mfp-close { animation: none !important; transition: none !important; }

/* contrast modes: plain dark backdrop, white frame line, no blur */
html.high-contrast .mfp-bg { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.high-contrast .mfp-image-holder .mfp-figure::after { background: #fff; }
@media (forced-colors: active) {
	html .mfp-image-holder .mfp-figure::after { background: CanvasText; }
	html .mfp-image-holder .mfp-close { border: 2px solid ButtonText; }
}

/* ===== Header icons + donate button: lively touches (all pages, 2026-10-29) =====
   - first page of a visit (html.hdr-intro, set once per session in _head.php): the icons pop in
     one after another, then the donate button; its heart beats twice and a light crosses it;
   - hover AND keyboard focus: the icon wiggles and a gold ring ripples out; the donate button
     lifts, its heart beats, a light crosses it and small hearts float up (a11y.js, aria-hidden).
   Only transform/opacity; buttons, names and focus rings unchanged. Everything ends in ~1.5 s.
   Off with "reduce motion", after "stop automatic motion", in contrast modes and print. */
@keyframes hdr-pop    { 0% { opacity: 0; transform: scale(.3) rotate(-30deg); } 70% { opacity: 1; transform: scale(1.15) rotate(6deg); } 100% { opacity: 1; transform: none; } }
@keyframes hdr-wiggle { 0%, 100% { transform: none; } 25% { transform: rotate(-14deg) scale(1.15); } 50% { transform: rotate(10deg) scale(1.15); } 75% { transform: rotate(-5deg) scale(1.08); } }
@keyframes hdr-ring   { 0% { opacity: .9; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes hdr-beat   { 0%, 100% { transform: none; } 15% { transform: scale(1.3); } 30% { transform: scale(.95); } 45% { transform: scale(1.22); } 65% { transform: none; } }
@keyframes hdr-sheen  { 0% { opacity: 1; transform: translateX(0) skewX(-20deg); } 100% { opacity: 1; transform: translateX(420%) skewX(-20deg); } }
@keyframes hdr-sheen-again { 0% { opacity: 1; transform: translateX(0) skewX(-20deg); } 100% { opacity: 1; transform: translateX(420%) skewX(-20deg); } }
@keyframes hdr-heart-up { 0% { opacity: 0; transform: translate(-50%, 0) scale(.4); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -46px) scale(1) rotate(var(--rot, 0deg)); } }

/* 1. first page of the visit: icons pop in, then the donate button */
html.motion-on.hdr-intro .header-actions > *,
html.motion-on.hdr-intro .mobile-actions > * { animation: hdr-pop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
html.motion-on.hdr-intro .header-actions > :nth-child(1), html.motion-on.hdr-intro .mobile-actions > :nth-child(1) { animation-delay: .15s; }
html.motion-on.hdr-intro .header-actions > :nth-child(2), html.motion-on.hdr-intro .mobile-actions > :nth-child(2) { animation-delay: .25s; }
html.motion-on.hdr-intro .header-actions > :nth-child(3), html.motion-on.hdr-intro .mobile-actions > :nth-child(3) { animation-delay: .35s; }
html.motion-on.hdr-intro .header-actions > :nth-child(4), html.motion-on.hdr-intro .mobile-actions > :nth-child(4) { animation-delay: .45s; }
html.motion-on.hdr-intro .header-actions > :nth-child(5), html.motion-on.hdr-intro .mobile-actions > :nth-child(5) { animation-delay: .55s; }
html.motion-on.hdr-intro .mobile-actions > :nth-child(n+6) { animation-delay: .65s; }
html.motion-on.hdr-intro .dua-wrapper { animation: hdr-pop .7s cubic-bezier(.34, 1.56, .64, 1) .7s both; }

/* 2. icons: wiggle + gold ring on hover / keyboard focus */
.header-actions > button::before,
.mobile-actions > button::before {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	border: 2px solid #f0c300;
	opacity: 0;
	pointer-events: none;
}
html.motion-on .header-actions > button:hover,
html.motion-on .header-actions > button:focus-visible,
html.motion-on .mobile-actions > button:focus-visible { animation: hdr-wiggle .6s ease-in-out; }
html.motion-on .header-actions > button:hover::before,
html.motion-on .header-actions > button:focus-visible::before,
html.motion-on .mobile-actions > button:focus-visible::before { animation: hdr-ring .7s ease-out; }
.header-actions .lang-btn:hover,
.header-actions .lang-btn:focus-visible,
.mobile-actions .lang-btn:focus-visible { background: #f0c300; color: #1f3d0c; }

/* 3. donate button: heart beats, light crosses, small lift */
.dua-wrapper .dua-icon svg > g > g:first-child,
.mobile-donate-btn .dua-icon svg > g > g:first-child { transform-box: fill-box; transform-origin: 50% 70%; }
.dua-wrapper::after,
.mobile-donate-btn .donate-link::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -40%;
	width: 30%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
	transform: skewX(-20deg);
	opacity: 0;
	pointer-events: none;
	z-index: 2;
}
.mobile-donate-btn .donate-link { position: relative; overflow: hidden; }
html.motion-on.hdr-intro .dua-wrapper .dua-icon svg > g > g:first-child,
html.motion-on.hdr-intro .mobile-donate-btn .dua-icon svg > g > g:first-child { animation: hdr-beat 1s ease-in-out 1.3s 2; }
html.motion-on.hdr-intro .dua-wrapper::after,
html.motion-on.hdr-intro .mobile-donate-btn .donate-link::after { animation: hdr-sheen 1s ease-in-out 1.5s; }
html.motion-on .dua-wrapper:hover,
html.motion-on .dua-wrapper:focus-within { transform: translateY(-2px); }
html.motion-on .dua-wrapper:hover .dua-icon svg > g > g:first-child,
html.motion-on .dua-wrapper:focus-within .dua-icon svg > g > g:first-child,
html.motion-on .mobile-donate-btn:focus-within .dua-icon svg > g > g:first-child { animation: hdr-beat .9s ease-in-out; }
html.motion-on .dua-wrapper:hover::after,
html.motion-on .dua-wrapper:focus-within::after,
html.motion-on .mobile-donate-btn:focus-within .donate-link::after { animation: hdr-sheen-again .9s ease-in-out; }

/* small hearts floating up from the donate button (spans added by a11y.js, aria-hidden) */
.hdr-heart {
	position: fixed;
	z-index: 10000;
	width: 12px;
	height: 12px;
	pointer-events: none;
	opacity: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f0c300' stroke='%232a6806' stroke-width='1.5' d='M12 21s-7.5-4.6-9.6-9.2C.9 8.6 2.9 4.5 6.7 4.5c2.2 0 3.7 1.3 5.3 3.2 1.6-1.9 3.1-3.2 5.3-3.2 3.8 0 5.8 4.1 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: hdr-heart-up 1.1s ease-out forwards;
}

html.motion-paused .header-actions *, html.motion-paused .mobile-actions *,
html.motion-paused .dua-wrapper, html.motion-paused .dua-wrapper *, html.motion-paused .dua-wrapper::after,
html.motion-paused .mobile-donate-btn * { animation: none !important; }
html.motion-paused .hdr-heart { display: none; }
html.high-contrast .header-actions > button::before, html.high-contrast .mobile-actions > button::before,
html.high-contrast .dua-wrapper::after, html.high-contrast .hdr-heart { display: none; }
@media (forced-colors: active), print {
	.header-actions > button::before, .mobile-actions > button::before, .dua-wrapper::after,
	.mobile-donate-btn .donate-link::after, .hdr-heart { display: none; }
}

/* ===== Logo: the wheat ears light up (all pages, 2026-11-09) =====
   After the light sweep, a golden glow rises on the ring of wheat ears (a radial gradient that is
   empty over the central emblem, clipped to the logo shape by the same PNG mask) while a soft halo
   grows around the whole logo; both settle into a faint static glow in ~4 s (no endless motion), and
   replay on hover / keyboard focus. Decorative only: pseudo-element + CSS filter, nothing new for
   screen readers. Off when motion is paused, in high contrast, Windows contrast themes and print. */
.logo-glint::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; display: none; opacity: 0;
	-webkit-mask: var(--logo-src) center / 100% 100% no-repeat;
	mask: var(--logo-src) center / 100% 100% no-repeat;
	background: radial-gradient(circle at 50% 47%,
		rgba(255, 230, 120, 0) 31%, rgba(255, 236, 140, .35) 38%, rgba(255, 246, 190, .7) 47%,
		rgba(255, 226, 90, .6) 56%, rgba(255, 210, 40, .3) 66%, rgba(255, 210, 40, 0) 76%);
	mix-blend-mode: screen;
}
@keyframes logo-wheat-glow { 0% { opacity: 0; } 30% { opacity: .8; } 55% { opacity: .4; } 75% { opacity: .7; } 100% { opacity: .25; } }
@keyframes logo-wheat-glow-again { 0% { opacity: .25; } 40% { opacity: .8; } 100% { opacity: .25; } }
@keyframes logo-halo {
	0%   { filter: drop-shadow(0 0 0 rgba(255, 205, 40, 0)); }
	40%  { filter: drop-shadow(0 0 6px rgba(255, 215, 60, .6)) drop-shadow(0 0 12px rgba(255, 190, 0, .25)); }
	100% { filter: drop-shadow(0 0 3px rgba(255, 210, 60, .3)); }
}
html.motion-on .logo-glint::after { display: block; animation: logo-wheat-glow 2.6s ease-in-out 1.7s both; }
html.motion-on .logo-glint img { animation: logo-glint-in .8s ease-out both, logo-halo 2.6s ease-in-out 1.7s both; }
html.motion-on a:hover .logo-glint::after,
html.motion-on a:focus-visible .logo-glint::after { animation: logo-wheat-glow-again 1.4s ease-in-out; }
html.motion-on a:hover .logo-glint img,
html.motion-on a:focus-visible .logo-glint img { filter: drop-shadow(0 0 6px rgba(255, 215, 60, .6)) drop-shadow(0 0 12px rgba(255, 190, 0, .25)); transition: filter .4s ease; }
html.motion-paused .logo-glint::after, html.high-contrast .logo-glint::after { display: none !important; }
html.motion-paused .logo-glint img, html.high-contrast .logo-glint img { filter: none !important; }
@media (forced-colors: active), print { .logo-glint::after { display: none !important; } .logo-glint img { filter: none !important; } }


/* ======================================================================================
   2026-11-12  Readers with intellectual disability: «باختصار» easy-read box, calm motion,
   no justified text. (Blind users: the box is a real section with an h2 and a list.)
   ====================================================================================== */

/* ---- «باختصار» easy-read summary (application/views/include/_easy_text.php) ---- */
.easy-read {
	max-width: 70ch;
	margin: 0 0 28px;
	padding: 18px 22px 16px;
	background: #f3f8ee;
	border: 2px solid #5f8e44;
	border-inline-start-width: 8px;
	border-radius: 12px;
	color: #1f2a17;
	text-align: start;
}
.easy-read .easy-read-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	font-size: 1.35rem;
	line-height: 1.4;
	font-weight: 700;
	color: #2a6806;
}
.easy-read .easy-read-title::after,
.easy-read .easy-read-title::before { content: none; display: none; }   /* no theme decoration lines */
.easy-read-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #f0c300;
	color: #1f2a17;
	font-size: 1rem;
}
.easy-read .easy-tts {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;                 /* touch target */
	padding: 8px 18px;
	border: 2px solid #2a6806;
	border-radius: 999px;
	background: #fff;
	color: #2a6806;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}
.easy-read .easy-tts[hidden] { display: none; }
.easy-read .easy-tts:hover,
.easy-read .easy-tts[aria-pressed="true"] { background: #2a6806; color: #fff; }
/* Visible message from the listen buttons (e.g. "no Arabic voice on this device") */
.a11y-notice {
	position: fixed;
	inset-inline: 16px;
	bottom: 16px;
	z-index: 10050;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 560px;
	margin-inline: auto;
	padding: 14px 16px;
	border: 2px solid #f0c300;
	border-radius: 12px;
	background: #1f2a17;
	color: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
}
.a11y-notice p { flex: 1; margin: 0; font-size: 1.05rem; line-height: 1.7; color: #fff; text-align: start; }
.a11y-notice-close {
	flex: none;
	min-width: 44px;
	min-height: 44px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}
@media (forced-colors: active) { .a11y-notice { border: 3px solid CanvasText; } }
@media print { .a11y-notice { display: none; } }
.easy-read-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.easy-read-list li {
	position: relative;
	margin: 0 0 10px;
	padding-inline-start: 28px;
	font-size: 1.2rem;
	line-height: 1.9;
	color: #1f2a17;
	text-align: start;
}
.easy-read-list li:last-child { margin-bottom: 0; }
.easy-read-list li::before {          /* a calm dot for each idea (decorative) */
	content: "";
	position: absolute;
	inset-inline-start: 6px;
	top: .8em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #5f8e44;
}
.dark-mode .easy-read { background: #17220f; border-color: #8bb26a; color: #f1f5ec; }
.dark-mode .easy-read .easy-read-title { color: #cfe6bd; }
.dark-mode .easy-read-list li { color: #f1f5ec; }
.dark-mode .easy-read .easy-tts { background: #17220f; color: #cfe6bd; border-color: #8bb26a; }
.dark-mode .easy-read .easy-tts:hover,
.dark-mode .easy-read .easy-tts[aria-pressed="true"] { background: #cfe6bd; color: #17220f; }
html.high-contrast .easy-read,
html.high-contrast .easy-read .easy-tts { border: 3px solid #ff0 !important; }
html.high-contrast .easy-read-list li::before { background: #ff0 !important; }
@media (forced-colors: active) {
	.easy-read, .easy-read .easy-tts { border: 3px solid CanvasText; }
	.easy-read-list li::before { forced-color-adjust: none; background: CanvasText; }
}
@media (max-width: 575px) {
	.easy-read { padding: 14px 14px 12px; }
	.easy-read-list li { font-size: 1.1rem; }
}

/* ---- Calm motion: nothing on the page keeps moving forever (theme animations that ignored
   html.motion-on). The home hero, birds, hearts and title shine play once and settle
   (motion.css, hero-wind.js, motion.js). ---- */
html:not(.motion-on) .border_slider { animation-iteration-count: 3; }                 /* the theme's "wave" line */
html .btnbtn::before { animation-play-state: paused; }                                /* donate glow: invisible until hover, so only run it then */
html .btnbtn:hover::before,
html .btnbtn:focus-within::before { animation-play-state: running; }
html .dua-icon svg { animation: none !important; }                                    /* duaPulse: its keyframes move nothing, but it ticked forever */
#loader-wrapper.is-hidden,
#loader-wrapper.is-hidden * { animation: none !important; }                           /* hidden preloader text kept shining behind the page */

/* ---- Text aligned to the start (right in Arabic) instead of justified: justified Arabic gets
   uneven gaps between words, which makes reading harder for people with reading or
   intellectual difficulties. ---- */
html .p-md, html .p-md p,
html .h3-sm p,
html .detailspage, html .detailspage p,
html .abox-1-txt, html .abox-4-txt,
html .services-6-txt .p-md,
html .slides p,
html .review-3,
html .category-title,
html .section_justify { text-align: start !important; }   /* the theme forces justify with !important */


/* ---- «باختصار» extras: "read more" link (home intro), home intro section ---- */
.easy-read-more { margin: 12px 0 0; }
.easy-read-more a { font-weight: 700; color: #2a6806; text-decoration: underline; text-underline-offset: 3px; }
.dark-mode .easy-read-more a { color: #cfe6bd; }
#home-easy .easy-read { margin-inline: auto; }

/* ---- «باختصار» folded (owner request 2026-11-16: the open boxes weighed on the design, mostly on the home page).
   Closed: only a small button (lightbulb + «باختصار» + arrow). Open: the box as before.
   Open = .is-open, or «قراءة سهلة» mode on and the visitor did not close it (.is-closed). a11y.js easyFold keeps
   aria-expanded in step. html.easy-js comes from _head.php: without JavaScript nothing is folded. ---- */
.easy-read-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 36px;                 /* still above the 24px minimum touch target */
	margin: 0;
	padding-block: 3px;
	padding-inline: 3px 12px;
	border: 2px solid #5f8e44;
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: start;
	cursor: pointer;
}
/* green sections (.white-color) turn every text white: the button keeps its own colours */
.easy-read .easy-read-toggle,
.easy-read .easy-read-toggle .easy-read-label,
.easy-read .easy-read-toggle .easy-read-chev { color: #2a6806 !important; }
.easy-read-toggle .easy-read-icon { width: 28px; height: 28px; font-size: .8rem; }
.easy-read .easy-read-toggle .easy-read-icon { color: #1f2a17 !important; }
.easy-read .easy-read-toggle i { color: inherit !important; }
.easy-read-toggle:hover { background: #e6f1dc; }
html.easy-mode .easy-read-toggle { font-size: 1.3rem; min-height: 48px; }
html.easy-mode .easy-read-toggle .easy-read-icon { width: 38px; height: 38px; font-size: 1rem; }
.easy-read-body .easy-tts { margin: 0 0 12px; }
html.easy-js:not(.easy-mode) .easy-read:not(.is-open),
html.easy-js .easy-read.is-closed { max-width: none; padding: 0; background: transparent; border: 0; }
html.easy-js:not(.easy-mode) .easy-read:not(.is-open) .easy-read-title,
html.easy-js .easy-read.is-closed .easy-read-title { margin: 0; }
html.easy-js:not(.easy-mode) .easy-read:not(.is-open) .easy-read-body,
html.easy-js .easy-read.is-closed .easy-read-body { display: none; }
html.easy-js:not(.easy-mode) #home-easy .easy-read:not(.is-open) .easy-read-title,
html.easy-js #home-easy .easy-read.is-closed .easy-read-title { justify-content: center; }
/* the button sits beside the title it follows (owner request 2026-11-16); opened, the summary drops below.
   Same order for screen readers: title, then the button. Browsers without :has keep it under the title. */
html.easy-js :is(h1, h2, h3, [role="heading"]):has(+ .easy-read) { display: inline-block; vertical-align: middle; margin-inline-end: 18px; margin-bottom: 26px; }   /* room for the theme's yellow line under the title */
html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read:not(.is-open),
html.easy-js :is(h1, h2, h3, [role="heading"]) + .easy-read.is-closed { display: inline-block; vertical-align: middle; margin: 0 0 12px; }
/* beside a title the button is only the light bulb (owner request 2026-11-16); its name «القراءة المبسّطة» shows
   as a tooltip on hover AND keyboard focus, Escape hides it (a11y.js). The name stays in the button for screen
   readers (opacity only, never display:none). «قراءة سهلة» mode shows the word itself. */
html.easy-js :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-toggle { position: relative; padding-inline: 3px 9px; }
html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-toggle .easy-read-label {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	z-index: 30;
	transform: translateX(-50%);
	padding: 5px 12px;
	border-radius: 8px;
	background: #1f2a17;
	color: #fff !important;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	opacity: 0;
	pointer-events: none;
}
html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-toggle .easy-read-label::before {   /* small arrow up to the icon */
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	margin-left: -6px;
	border: 6px solid transparent;
	border-bottom-color: #1f2a17;
}
html.motion-on :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-toggle .easy-read-label { transition: opacity .15s ease; }
html.easy-js :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-toggle:is(:hover, :focus-visible):not(.tip-off) .easy-read-label { opacity: 1; }
html.high-contrast :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-toggle .easy-read-label { background: #000 !important; color: #ff0 !important; border: 2px solid #ff0; }
@media (forced-colors: active) {
	:is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-toggle .easy-read-label { border: 2px solid CanvasText; background: Canvas; color: CanvasText !important; }
}
/* ---- Beside a title: a round golden light bulb; pressed, the summary grows out of it as a card
   (owner request 2026-11-16: "more beautiful, with a transformation and an animation when it opens").
   The card floats over the page from 576px; on phones it opens in the page under the title.
   «القراءة المبسّطة» mode keeps the boxes open in the page (no cards). Motion only under motion-on and not
   paused; transform / opacity only. Escape, the × button and a click outside close the card (a11y.js). ---- */
.easy-read-cap,
.easy-read-close { display: none; }
html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-toggle {
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	gap: 0;
	justify-content: center;
	border: 2px solid #2a6806;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff1a8 0%, #f6cf1d 45%, #dfab00 100%);
	box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}
html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-toggle:hover {
	background: radial-gradient(circle at 35% 30%, #fff7cc 0%, #f9d83f 45%, #e6b400 100%);
}
html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-toggle .easy-read-icon {
	width: auto;
	height: auto;
	background: transparent;
	font-size: 1.15rem;
}
/* open: the bulb is lit */
html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read.is-open .easy-read-toggle {
	box-shadow: 0 0 0 4px rgba(255, 221, 51, .45), 0 0 24px 8px rgba(255, 214, 10, .55);
}
html.easy-js :is(h1, h2, h3, [role="heading"]) + .easy-read.is-open .easy-read-toggle .easy-read-label { opacity: 0 !important; }   /* no tooltip over the card */
/* the card */
@media (min-width: 576px) {
	html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read.is-open {
		display: inline-block;
		position: relative;
		vertical-align: middle;
		max-width: none;
		margin: 0 0 12px;
		padding: 0;
		background: transparent;
		border: 0;
	}
	html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read.is-open .easy-read-title { margin: 0; }
	/* the theme's .section-title clips what overflows it: let the open card out (flow-root keeps the same layout) */
	html.easy-js:not(.easy-mode) .section-title:has(> :is(h1, h2, h3, [role="heading"]) + .easy-read.is-open) { overflow: visible; display: flow-root; }
	/* ...and its section too: the card shows OVER the sections that follow, never cut or hidden under them */
	html.easy-js:not(.easy-mode) section:has(:is(h1, h2, h3, [role="heading"]) + .easy-read.is-open) { overflow: visible !important; position: relative; z-index: 30; }   /* !important: motion.css #home-4 {overflow:hidden} is an id rule */
	/* #home-4 hid its corner ring with overflow:hidden (motion.css): while open the ring is clipped on its own */
	html.easy-js:not(.easy-mode) #home-4:has(.easy-read.is-open)::before { clip-path: inset(110px 110px 0 0); }
	html.easy-js:not(.easy-mode)[dir="ltr"] #home-4:has(.easy-read.is-open)::before { clip-path: inset(110px 0 0 110px); }
	html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read.is-open::after {   /* arrow up to the bulb */
		content: "";
		position: absolute;
		top: calc(100% + 7px);
		inset-inline-start: 14px;
		z-index: 41;
		width: 16px;
		height: 16px;
		background: #fff;
		border-top: 2px solid #5f8e44;
		border-left: 2px solid #5f8e44;
		transform: rotate(45deg);
	}
	html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-body {
		position: absolute;
		top: calc(100% + 15px);
		inset-inline-start: -10px;
		z-index: 40;
		width: min(520px, calc(100vw - 48px));
		padding: 16px 20px 18px;
		background: #fff;
		border: 2px solid #5f8e44;
		border-inline-start-width: 8px;
		border-radius: 16px;
		box-shadow: 0 18px 44px rgba(20, 40, 10, .28);
		text-align: start;
	}
	[dir="ltr"] .easy-read .easy-read-body { transform-origin: top left; }
	[dir="rtl"] .easy-read .easy-read-body,
	html:not([dir="ltr"]) .easy-read .easy-read-body { transform-origin: top right; }
}
html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-cap {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	padding-inline-end: 44px;          /* room for × */
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.4;
}
.easy-read-cap-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #f0c300;
	font-size: .85rem;
}
html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-body { position: relative; }
@media (min-width: 576px) {
	html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-body { position: absolute; }
}
html.easy-js:not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-close {
	display: inline-flex;
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 2px solid #5f8e44;
	border-radius: 50%;
	background: #f3f8ee;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
/* colours inside the card / box: green sections (.white-color) must not turn them white (not in high contrast) */
html:not(.high-contrast) .easy-read .easy-read-body .easy-read-list li { color: #1f2a17 !important; }
html:not(.high-contrast) .easy-read .easy-read-body .easy-read-more a,
html:not(.high-contrast) .easy-read .easy-read-body .easy-read-cap,
html:not(.high-contrast) .easy-read .easy-read-body .easy-read-close,
html:not(.high-contrast) .easy-read .easy-read-body .easy-read-close *,
html:not(.high-contrast) .easy-read .easy-read-body .easy-tts,
html:not(.high-contrast) .easy-read .easy-read-body .easy-tts * { color: #2a6806 !important; }
html:not(.high-contrast) .easy-read .easy-read-body .easy-read-cap-icon,
html:not(.high-contrast) .easy-read .easy-read-body .easy-read-cap-icon i { color: #1f2a17 !important; }
html:not(.high-contrast) .easy-read .easy-read-body .easy-tts[aria-pressed="true"],
html:not(.high-contrast) .easy-read .easy-read-body .easy-tts[aria-pressed="true"] *,
html:not(.high-contrast) .easy-read .easy-read-body .easy-read-close:hover,
html:not(.high-contrast) .easy-read .easy-read-body .easy-read-close:hover * { color: #fff !important; }
.easy-read .easy-read-close:hover { background: #2a6806; }
html:not(.high-contrast).dark-mode .easy-read .easy-read-body .easy-read-list li { color: #f1f5ec !important; }
html:not(.high-contrast).dark-mode .easy-read .easy-read-body .easy-read-more a,
html:not(.high-contrast).dark-mode .easy-read .easy-read-body .easy-read-cap,
html:not(.high-contrast).dark-mode .easy-read .easy-read-body .easy-read-close { color: #cfe6bd !important; }
@media (min-width: 576px) {
	.dark-mode .easy-read .easy-read-body { background: #17220f !important; border-color: #8bb26a !important; }
	.dark-mode .easy-read.is-open::after { background: #17220f !important; border-color: #8bb26a !important; }
}
.dark-mode .easy-read .easy-read-close { background: #22301a; border-color: #8bb26a; }
/* motion: hello on arrival (twice, then still), grow on hover, the card grows out of the bulb, lines one by one, the bulb wiggles as it lights */
@keyframes easyBulbHello { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.14); } 65% { transform: scale(.97); } }
@keyframes easyBulbOn { 0% { transform: rotate(0) scale(1); } 30% { transform: rotate(-16deg) scale(1.2); } 60% { transform: rotate(10deg) scale(1.05); } 100% { transform: rotate(0) scale(1); } }
@keyframes easyCardIn { from { opacity: 0; transform: translateY(-10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes easyLineIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.motion-on:not(.motion-paused) :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-toggle { transition: transform .2s ease; }
html.motion-on:not(.motion-paused) :is(h1, h2, h3, [role="heading"]) + .easy-read .easy-read-toggle:hover { transform: scale(1.08); }
html.motion-on:not(.motion-paused):not(.easy-mode) :is(h1, h2, h3, [role="heading"]) + .easy-read:not(.is-open):not(.is-closed) .easy-read-toggle { animation: easyBulbHello 1.4s ease 1.2s 2; }
html.motion-on:not(.motion-paused) .easy-read.is-open .easy-read-toggle .easy-read-icon i { display: inline-block; animation: easyBulbOn .6s ease; }
html.motion-on:not(.motion-paused) .easy-read.is-open .easy-read-body { animation: easyCardIn .32s cubic-bezier(.2, .8, .2, 1) both; }
html.motion-on:not(.motion-paused) .easy-read.is-open .easy-read-list li { animation: easyLineIn .4s ease both; animation-delay: calc(.12s + var(--i, 0) * .07s); }
html.motion-on:not(.motion-paused) .easy-read.is-open::after { animation: easyLineIn .2s ease both; }
.dark-mode .easy-read-toggle { background: #17220f; border-color: #8bb26a; }
.dark-mode .easy-read .easy-read-toggle,
.dark-mode .easy-read .easy-read-toggle .easy-read-label,
.dark-mode .easy-read .easy-read-toggle .easy-read-chev { color: #cfe6bd !important; }
.dark-mode .easy-read-toggle:hover { background: #22301a; }
html.high-contrast .easy-read-toggle { border: 3px solid #ff0 !important; background: #000 !important; }
html.high-contrast .easy-read .easy-read-toggle,
html.high-contrast .easy-read .easy-read-toggle .easy-read-label,
html.high-contrast .easy-read .easy-read-toggle .easy-read-chev { color: #ff0 !important; }
@media (forced-colors: active) {
	.easy-read-toggle { border: 2px solid ButtonText; }
	.easy-read .easy-read-toggle, .easy-read .easy-read-toggle .easy-read-label, .easy-read .easy-read-toggle .easy-read-chev { color: ButtonText !important; }
}
@media print { html.easy-js .easy-read .easy-read-body { display: block !important; } }

/* ---- «قراءة سهلة» easy reading mode (header button, a11y.js easyMode): bigger text, more space,
   one calm column, menu icons, long texts folded under the summary. Nothing changes for other visitors. ---- */
html.easy-mode #main-content p,
html.easy-mode #main-content li,
html.easy-mode #main-content .p-md,
html.easy-mode #main-content .detailspage,
html.easy-mode #main-content .nd-body {
	line-height: 2 !important;
	word-spacing: .06em;
	text-align: start !important;
}
html.easy-mode #main-content .easy-grow { font-size: 1.2rem !important; }   /* a11y.js marks only text smaller than that */
html.easy-mode #main-content h1,
html.easy-mode #main-content [role="heading"][aria-level="1"] { font-size: 2rem !important; line-height: 1.5 !important; }
html.easy-mode .easy-read { max-width: none; border-width: 3px; border-inline-start-width: 10px; }
html.easy-mode .easy-read-list li { font-size: 1.4rem !important; line-height: 2 !important; }
html.easy-mode .easy-read .easy-read-title { font-size: 1.6rem; }
/* decorative distractions off (the content stays) */
html.easy-mode .hero-birds,
html.easy-mode .hero-wind,
html.easy-mode .m-hearts { display: none !important; }
/* menu: an icon before each main section name (decorative; the name stays the text) */
html.easy-mode .wsmenu-list > li[class*="easy-ico-"] > a::before {
	display: inline-block;
	margin-inline-end: .45em;
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-style: normal;
	speak: never;
}
html.easy-mode .wsmenu-list > li.easy-ico-home > a::before { content: "\f015"; content: "\f015" / ""; }
html.easy-mode .wsmenu-list > li.easy-ico-about > a::before { content: "\f05a"; content: "\f05a" / ""; }
html.easy-mode .wsmenu-list > li.easy-ico-programs > a::before { content: "\f21e"; content: "\f21e" / ""; }
html.easy-mode .wsmenu-list > li.easy-ico-clubs > a::before { content: "\f1e3"; content: "\f1e3" / ""; }
html.easy-mode .wsmenu-list > li.easy-ico-news > a::before { content: "\f1ea"; content: "\f1ea" / ""; }
html.easy-mode .wsmenu-list > li.easy-ico-contact > a::before { content: "\f095"; content: "\f095" / ""; }
/* long text under a summary: folded until "Read the full text" (only in easy mode) */
.easy-fold-btn { display: none; }
html.easy-mode .easy-fold-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 6px 0 24px;
	padding: 8px 20px;
	border: 2px solid #2a6806;
	border-radius: 999px;
	background: #fff;
	color: #2a6806;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
}
html.easy-mode .easy-fold-btn:hover { background: #2a6806; color: #fff; }
html.easy-mode .easy-fold:not(.is-open) {
	max-height: 11em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
	mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
html.easy-mode.high-contrast .easy-fold:not(.is-open) { -webkit-mask-image: none; mask-image: none; }
.dark-mode .easy-fold-btn { background: #17220f; color: #cfe6bd; border-color: #8bb26a; }
@media print { html.easy-mode .easy-fold:not(.is-open) { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; } .easy-fold-btn { display: none !important; } }

/* ---- /how-to-use page (application/views/how_to_use.php) ---- */
#how-to-use .howto-title { margin-bottom: 8px; }
#how-to-use .howto-intro { font-size: 1.2rem; line-height: 1.9; margin-bottom: 26px; text-align: start; }
.howto-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.howto-step {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 18px;
	background: #f3f8ee;
	border: 2px solid #c9dcb8;
	border-radius: 14px;
}
.howto-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #2a6806;
	color: #fff;
	font-size: 1.4rem;
}
.howto-body p { margin: 0 0 4px; font-size: 1.15rem; line-height: 1.8; color: #1f2a17; text-align: start; }
#how-to-use .howto-step-title { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; font-size: 1.3rem; line-height: 1.4; color: #2a6806; }
.howto-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #f0c300; color: #1f2a17; font-size: 1rem; }
.howto-help { margin-top: 30px; padding: 20px; border: 2px solid #5f8e44; border-inline-start-width: 8px; border-radius: 14px; background: #fff; }
.howto-help p { font-size: 1.15rem; margin-bottom: 8px; }
.howto-help-links { display: flex; flex-wrap: wrap; gap: 12px; }
.howto-pic-tools { margin: 4px 0 10px; padding-inline-start: 1.4em; font-size: 1.15rem; line-height: 1.8; text-align: start; }
.howto-pic-tools li { margin-bottom: 4px; list-style: disc; }
.howto-help .howto-pic-note { font-size: 1rem; color: #3d4a33; }
.dark-mode .howto-pic-tools, .dark-mode .howto-help .howto-pic-note { color: #f1f5ec; }
.howto-call {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 20px;
	border-radius: 999px;
	background: #2a6806;
	color: #fff !important;
	font-size: 1.15rem;
	font-weight: 700;
	text-decoration: none;
}
.howto-call:hover, .howto-call:focus-visible { background: #1f4f04; }
.dark-mode .howto-step { background: #17220f; border-color: #4b6a36; }
.dark-mode .howto-body p { color: #f1f5ec; }
.dark-mode #how-to-use .howto-step-title { color: #cfe6bd; }
.dark-mode .howto-help { background: #17220f; }
html.high-contrast .howto-step, html.high-contrast .howto-help { border: 3px solid #ff0 !important; }
@media (forced-colors: active) { .howto-step, .howto-help, .howto-call { border: 2px solid CanvasText; } }

/* ===== Header fixes (2026-11-12) =====
   1. Desktop dropdowns: the sub-menu hangs 54px under the top of its menu item, but on wide screens the
      item is only ~35px tall, so the pointer crossed a dead strip and the menu closed before it could be
      reached. An invisible strip (part of the item's link, so :hover continues) fills exactly that distance;
      it is 0 high when the item already reaches the sub-menu. Keyboard access is unchanged. */
@media (min-width: 992px) {
	.wsmenu>.wsmenu-list>li>a::after {
		content: "";
		position: absolute;
		inset-inline: 0;
		top: 100%;
		height: calc(56px - 100%);   /* 54px + a small overlap with the sub-menu */
		z-index: 1;                   /* above the date / icons row, which overlaps the last few pixels */
	}
}
/* 2. Phone header: the logo hangs over the start of the green bar; keep that part free so no button
      sits behind (under) it. The round buttons never shrink; on narrow phones the gaps tighten, and if
      the row is still too long (e.g. finger-alphabet font) only the donate pill gives way. */
@media (max-width: 991px) {
	.mobile-top-bar { padding-inline-start: 96px !important; }
	.mobile-actions { gap: clamp(3px, 1.5vw, 12px) !important; min-width: 0; flex: 0 1 auto; }   /* 1.5vw: room for the search button */
	.mobile-actions > * { flex: 0 0 auto; }
	.mobile-actions > .mobile-donate-btn { flex: 0 1 auto; min-width: 0; }
	.mobile-donate-btn .donate-link { white-space: nowrap; }
	.mobile-donate-btn .dua-icon { flex: 0 0 auto; }
}
@media (max-width: 480px) {
	.mobile-top-bar { padding-inline-start: 80px !important; padding-inline-end: 6px !important; }
}
@media (max-width: 400px) {   /* with the search button the row needs a smaller donate pill sooner */
	.mobile-actions { gap: 4px !important; }
	.mobile-donate-btn a { padding: 4px 8px !important; gap: 3px !important; font-size: 11px !important; }
	.mobile-donate-btn .dua-icon svg { width: 15px; }
}
@media (max-width: 345px) {
	.mobile-actions { gap: 3px !important; }
	.mobile-donate-btn a { padding: 4px 6px !important; gap: 3px !important; font-size: 10px !important; }
	.mobile-donate-btn .dua-icon svg { width: 14px; }
}

/* 3. Keyboard-only shortcuts ("page sections" button, skip links): moving them 100px up is not enough
      on pages where <main> starts lower than that (the button showed over the header). Until they get
      keyboard focus they are also clipped to nothing; still focusable and read by screen readers. */
.a11y-sections-toggle:not(:focus):not([aria-expanded="true"]),
.skip-link:not(:focus) {
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
}

/* WCAG 1.4.3: the gold send button had white text (1.67:1) on the donate page; dark green gives 7:1 (same as the contact page) */
html input.contactbutt, html button.contactbutt { color: #1f4f04 !important; font-weight: 700; }

/* ===== "Ask about the website" page (/ask, views/site_ask.php) ===== */
/* bootstrap sets body { text-align: left }: in Arabic these pages must start on the right (start = right in RTL, left in LTR) */
#site-ask-page, #site-search-page { text-align: start; }
#site-ask-page .ask-intro { max-width: 720px; margin: 0 0 18px; font-size: 1.1rem; line-height: 1.8; text-align: start !important; }
#site-ask-page .ask-form { max-width: 720px; margin-bottom: 26px; }
#site-ask-page .ask-label { display: block; margin-bottom: 6px; font-weight: 700; color: #2a6806; }
#site-ask-page .ask-btn { width: auto; padding: 0 18px; gap: 8px; display: inline-flex; align-items: center; font-weight: 700; color: #1f4f04; }   /* #2a6806 on gold is 4.06:1; this green is 5.7:1 */
#site-ask-page .ask-note { margin: 8px 0 0; font-size: .95rem; color: #4a5a40; text-align: start !important; }
#site-ask-page #ask-summary { margin: 0 0 14px; color: #2a6806; }
#site-ask-page #ask-summary:focus-visible { outline: 3px solid #f0c300; outline-offset: 4px; }
#site-ask-page .ask-answer { margin: 0 0 26px; padding: 18px 20px; border: 2px solid #5f8e44; border-radius: 14px; background: #f6faf2; }
#site-ask-page .ask-answer h3 { margin: 0 0 12px; color: #2a6806; }
#site-ask-page .ask-body { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
#site-ask-page .ask-figure { flex: 0 0 280px; max-width: 100%; margin: 0; }
#site-ask-page .ask-figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
#site-ask-page .ask-figure figcaption { margin-top: 8px; font-size: .95rem; line-height: 1.7; color: #1f2a17; }
#site-ask-page .ask-text { flex: 1 1 320px; min-width: 0; font-size: 1.1rem; line-height: 1.9; color: #1f2a17; }
#site-ask-page .ask-text p { text-align: start !important; }
#site-ask-page .ask-lines { margin: 0 0 12px; padding-inline-start: 22px; list-style: disc; }
#site-ask-page .ask-lines li { margin-bottom: 4px; }
#site-ask-page .ask-contact li { margin-bottom: 6px; font-size: 1.1rem; }
#site-ask-page .ask-source { margin: 12px 0 0; font-size: .98rem; color: #4a5a40; }
#site-ask-page .ask-answer a, #site-ask-page .ask-more a, #site-ask-page .ask-examples a, #site-ask-page .ask-none-help a { color: #2a6806; font-weight: 700; text-decoration: underline; }
#site-ask-page .ask-more-title { margin: 6px 0 10px; color: #2a6806; }
#site-ask-page .ask-more li { margin-bottom: 12px; }
#site-ask-page .ask-more a { font-size: 1.1rem; }
#site-ask-page .ask-more .search-snippet { margin: 2px 0 0; font-size: 1rem; line-height: 1.7; color: #4a5a40; }
.dark-mode #site-ask-page .ask-more .search-snippet { color: #c4d3b8; }
#site-ask-page .ask-examples { display: flex; flex-wrap: wrap; gap: 10px; }
#site-ask-page .ask-examples a { display: inline-block; padding: 6px 14px; border: 2px solid #5f8e44; border-radius: 20px; background: #fff; text-decoration: none; }
#site-ask-page .ask-examples a:hover, #site-ask-page .ask-examples a:focus-visible { background: #2a6806; color: #fff; }
.dark-mode #site-ask-page .ask-answer { background: #17220f; border-color: #8bb26a; }
.dark-mode #site-ask-page .ask-text, .dark-mode #site-ask-page .ask-figure figcaption, .dark-mode #site-ask-page .ask-contact li { color: #eef5e8; }
.dark-mode #site-ask-page .ask-answer h3, .dark-mode #site-ask-page .ask-label, .dark-mode #site-ask-page #ask-summary, .dark-mode #site-ask-page .ask-more-title,
.dark-mode #site-ask-page .ask-answer a, .dark-mode #site-ask-page .ask-more a, .dark-mode #site-ask-page .ask-none-help a { color: #cfe6bd; }
.dark-mode #site-ask-page .ask-note, .dark-mode #site-ask-page .ask-source { color: #c4d3b8; }
.dark-mode #site-ask-page .ask-examples a { background: #17220f; color: #cfe6bd; border-color: #8bb26a; }
html.high-contrast #site-ask-page .ask-answer { border: 3px solid #ff0 !important; }
@media (forced-colors: active) { #site-ask-page .ask-answer, #site-ask-page .ask-examples a { border: 2px solid CanvasText; } }

/* Phones (owner, 2026-11-16): the floating buttons (sign-language interpreter and WhatsApp on the left, "back to top"
   on the right) sat on top of the footer's last lines. Room is kept on both sides and below, so at the end of the page
   the buttons rest on empty green and every line stays readable and tappable. */
@media (max-width: 767.98px) {
	#footer-2 .bottom-footer { padding-inline: 72px; }
	#footer-2 .bottom-footer .bottom-footer-list,
	#footer-2 .bottom-footer .copyright-desgin { text-align: center !important; }
	#footer-2 { padding-bottom: 110px; }
}
/* the English theme put "back to top" on the left, on top of the WhatsApp button (left 15px): same side as in Arabic */
html #scrollUp { right: 24px; left: auto; }

/* ===== Top search (magnifier in the header -> panel slides down from the top) =====
   Markup: _header.php #top-search; behaviour: a11y.js "topSearch". Closed = [hidden] (not in the
   accessibility tree). Movement only under html.motion-on; without it the panel simply appears. */
.top-search { position: fixed; inset: 0; z-index: 10050; }
.top-search[hidden] { display: none !important; }
html.top-search-open, html.top-search-open body { overflow: hidden; }
.top-search-backdrop { position: absolute; inset: 0; background: rgba(12, 32, 4, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.top-search-panel {
	position: absolute; top: 0; left: 0; right: 0;
	padding: 38px 16px 30px;
	background: linear-gradient(135deg, #2f7507 0%, #2a6806 45%, #1f4f05 100%);
	border-bottom: 5px solid #f0c300;
	border-radius: 0 0 28px 28px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
	color: #fff;
	text-align: center;
}
.top-search-form, .top-search-links { max-width: 760px; margin: 0 auto; }
.top-search-title { display: block; margin: 0 0 14px; color: #fff; font-size: 1.45rem; font-weight: 700; }
.top-search-field {
	display: flex; align-items: center; gap: 6px;
	padding: 6px; background: #fff; border-radius: 999px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.top-search-field:focus-within { box-shadow: 0 0 0 4px #f0c300, 0 6px 18px rgba(0, 0, 0, .25); }
.top-search-icon { color: #2a6806; font-size: 1.2rem; padding-inline: 14px 4px; }
.top-search-input {
	flex: 1 1 auto; min-width: 0;
	padding: 12px 4px; border: 0; background: transparent;
	font: inherit; font-size: 1.15rem; color: #222;
}
.top-search-input:focus { outline: none; }   /* the gold ring on .top-search-field shows focus */
.top-search-input::placeholder { color: #666; opacity: 1; }
.top-search-submit {
	flex: 0 0 auto; min-height: 48px; padding: 0 28px;
	border: 0; border-radius: 999px;
	background: #f0c300; color: #1f3d0c; font: inherit; font-weight: 700; font-size: 1.05rem;
	cursor: pointer;
}
.top-search-submit:hover, .top-search-submit:focus-visible { background: #ffd84d; }
.top-search-close {
	position: absolute; top: 12px; inset-inline-end: 14px;
	width: 44px; height: 44px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	border: 2px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .12);
	color: #fff; font-size: 1.3rem; cursor: pointer;
}
.top-search-close:hover, .top-search-close:focus-visible { background: #f0c300; border-color: #f0c300; color: #1f3d0c; }
.top-search-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.top-search-links a {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 40px; padding: 6px 16px;
	border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px;
	color: #fff !important; text-decoration: none;
}
.top-search-links a:hover, .top-search-links a:focus-visible { background: #f0c300; border-color: #f0c300; color: #1f3d0c !important; }
@media (max-width: 575px) {
	.top-search-panel { padding: 62px 12px 24px; border-radius: 0 0 20px 20px; }
	.top-search-title { font-size: 1.2rem; }
	.top-search-icon { display: none; }
	.top-search-input { padding-inline: 12px 4px; font-size: 1.05rem; }
	.top-search-submit { padding: 0 18px; }
	.top-search-links a { font-size: .95rem; padding: 6px 12px; }
}
/* motion (only when allowed): panel slides down, backdrop fades, links rise one after another */
html.motion-on .top-search-panel { transform: translateY(-105%); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
html.motion-on .top-search-backdrop { opacity: 0; transition: opacity .35s ease; }
html.motion-on .top-search-links a { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease, background-color .2s; }
html.motion-on .top-search.is-open .top-search-panel,
html.motion-on .top-search.is-open .top-search-links a { transform: none; opacity: 1; }
html.motion-on .top-search.is-open .top-search-backdrop { opacity: 1; }
html.motion-on .top-search.is-open .top-search-links a:nth-child(1) { transition-delay: .25s, .25s, 0s; }
html.motion-on .top-search.is-open .top-search-links a:nth-child(2) { transition-delay: .33s, .33s, 0s; }
html.motion-on .top-search.is-open .top-search-links a:nth-child(3) { transition-delay: .41s, .41s, 0s; }
html.motion-on .top-search-links a:focus { opacity: 1; transform: none; }   /* never invisible while focused */
/* Windows contrast themes: keep borders / focus visible */
@media (forced-colors: active) {
	.top-search-panel { border: 2px solid CanvasText; }
	.top-search-field { border: 2px solid CanvasText; }
	.top-search-field:focus-within { outline: 3px solid Highlight; }
}

/* ===== Search suggestions (a11y.js "searchSuggest", 2026-11-17) =====
   A white card under the search box (above it when there is no room). The input keeps the focus; the chosen
   suggestion is the highlighted row (aria-activedescendant). Movement only under html.motion-on. */
.ss-anchor { position: relative; }
.ss-pop {
	position: absolute; z-index: 60;
	top: calc(100% + 10px); left: 0; right: 0;
	background: #fff; color: #1f2a17;
	border: 2px solid #5f8e44; border-top: 5px solid #f0c300;
	border-radius: 20px;
	box-shadow: 0 22px 48px -12px rgba(12, 32, 4, .55), 0 4px 12px rgba(0, 0, 0, .12);
	text-align: start; overflow: hidden;
}
.ss-pop[hidden] { display: none !important; }
.ss-pop.ss-up { top: auto; bottom: calc(100% + 10px); border-top-width: 2px; border-bottom: 5px solid #f0c300; }
.ss-list { list-style: none; margin: 0; padding: 8px; max-height: min(430px, 60vh); overflow-y: auto; overscroll-behavior: contain; }
.ss-item {
	display: flex; align-items: center; gap: 12px;
	margin: 0; padding: 9px 12px; min-height: 52px;
	border-radius: 14px; border-inline-start: 4px solid transparent;
	cursor: pointer; line-height: 1.45;
}
.ss-item + .ss-item { margin-top: 2px; }
.ss-item.is-active { background: #eef6e8; border-inline-start-color: #f0c300; }
.ss-icon {
	flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 35% 30%, #fff6c9, #f0c300 75%); color: #2a6806; font-size: 1rem;
	box-shadow: inset 0 0 0 2px rgba(42, 104, 6, .25);
}
.ss-pop .ss-icon i { color: #2a6806 !important; }
.ss-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ss-title { font-weight: 700; color: #1f2a17; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ss-mark { background: #fff1a6; color: inherit; padding: 0 2px; border-radius: 4px; }
.ss-meta { font-size: .82rem; color: #2a6806; font-weight: 600; }
.ss-snip { font-size: .85rem; color: #4a5a40; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-none { padding: 14px 16px; color: #4a5a40; }
.ss-all { margin-top: 6px !important; border-top: 1px solid #dfe9d6; border-radius: 0 0 14px 14px; color: #2a6806; font-weight: 700; }
.ss-all .ss-icon { background: #2a6806; }
.ss-pop .ss-all .ss-icon i { color: #fff !important; }
.ss-all .ss-text { color: #2a6806; }
/* inside the green header panel and footer the text colours of the theme must not leak in */
.top-search-panel .ss-pop, #footer-2 .ss-pop { color: #1f2a17; }
#footer-2 .ss-pop { min-width: min(340px, calc(100vw - 32px)); }
/* motion */
html.motion-on:not(.motion-paused) .ss-pop { opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top center; transition: opacity .2s ease, transform .25s cubic-bezier(.22, 1, .36, 1); }
html.motion-on:not(.motion-paused) .ss-pop.ss-up { transform: translateY(8px) scale(.98); transform-origin: bottom center; }
html.motion-on:not(.motion-paused) .ss-pop.ss-open { opacity: 1; transform: none; }
html.motion-on:not(.motion-paused) .ss-pop.ss-open .ss-item { animation: ssRow .32s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes ssRow { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* dark mode, high contrast, Windows contrast themes */
.dark-mode .ss-pop { background: #17220f; border-color: #8bb26a; color: #f1f5ec; }
.dark-mode .ss-title, .dark-mode .ss-text { color: #f1f5ec; }
.dark-mode .ss-meta, .dark-mode .ss-all .ss-text { color: #cfe6bd; }
.dark-mode .ss-snip, .dark-mode .ss-none { color: #c4d3b8; }
.dark-mode .ss-item.is-active { background: #24361a; }
.dark-mode .ss-mark { background: #6b5a00; }
html.high-contrast .ss-pop { background: #000 !important; border: 3px solid #ff0 !important; }
html.high-contrast .ss-item.is-active { outline: 3px solid #ff0; outline-offset: -3px; background: #000 !important; }
html.high-contrast .ss-mark { background: #ff0 !important; color: #000 !important; }
@media (forced-colors: active) {
	.ss-pop { border: 2px solid CanvasText; }
	.ss-item.is-active { outline: 3px solid Highlight; outline-offset: -3px; }
	.ss-mark { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
@media print { .ss-pop { display: none !important; } }
@media (max-width: 575px) {
	.ss-item { padding: 8px 8px; gap: 10px; }
	.ss-icon { width: 32px; height: 32px; font-size: .9rem; }
	.ss-snip { display: none; }
}
/* "show all results" stays visible at the bottom of the card, even when the list scrolls */
.ss-all { position: sticky; bottom: -8px; background: #fff; z-index: 1; }
.dark-mode .ss-all { background: #17220f; }
.ss-all.is-active { background: #eef6e8; }
.dark-mode .ss-all.is-active { background: #24361a; }
.ss-list { max-height: min(520px, 68vh); }
/* header search: the whole pill already wears the gold focus ring (.top-search-field:focus-within), so the global
   ring is not drawn a second time around the text field inside it (it looked like a box in a box) */
html .top-search-field .top-search-input:focus-visible { outline: none !important; box-shadow: none !important; }
html.high-contrast .top-search-field:focus-within { outline: 3px solid #ff0; outline-offset: 2px; }
/* the footer theme styles every "ul li" (block, own margins, colours): reset them inside the card; the card also
   rises above the floating WhatsApp / sign-language buttons (z-index 100) */
.ss-pop { z-index: 200; }
.ss-pop .ss-list > li.ss-item { display: flex !important; float: none !important; width: auto !important; margin: 0; padding: 9px 12px; text-align: start; font-size: inherit; }
.ss-pop .ss-list > li.ss-item + li.ss-item { margin-top: 2px; }
.ss-pop .ss-list > li.ss-all { margin-top: 6px; }
.ss-pop .ss-list > li::before, .ss-pop .ss-list > li::after { content: none !important; }
#footer-2 .ss-pop .ss-title { color: #1f2a17 !important; }
#footer-2 .ss-pop .ss-meta, #footer-2 .ss-pop .ss-all .ss-text { color: #2a6806 !important; }
#footer-2 .ss-pop .ss-snip { color: #4a5a40 !important; }
.dark-mode #footer-2 .ss-pop .ss-title { color: #f1f5ec !important; }
.dark-mode #footer-2 .ss-pop .ss-meta, .dark-mode #footer-2 .ss-pop .ss-all .ss-text { color: #cfe6bd !important; }
/* phones: while the suggestions are open, the floating buttons step aside so they do not cover the list */
@media (max-width: 767.98px) {
	html.ss-is-open #scrollUp, html.ss-is-open #whatsappButton, html.ss-is-open #aptoide { opacity: 0 !important; pointer-events: none !important; }
}

/* Text pasted into the CMS from Facebook (2026-11-21, news 7, 22, 34, 35, 39): it brings `white-space: pre-wrap`, so the
   line breaks and tabs of the pasted HTML showed as big empty gaps, plus Facebook's own font, size and near-black colour
   (unreadable in dark mode). Pasted inline styles give way to the site's typography; the text itself is untouched. */
[style*="white-space: pre-wrap"], [style*="white-space:pre-wrap"] { white-space: normal !important; }
[style*="Segoe UI Historic"], [style*="Segoe UI Historic"] * { font-family: inherit !important; font-size: inherit !important; color: inherit !important; }

/* Lebanese flag in the green header bar (owner, 2026-12-03): a ribbon in the far corner that fades into the
   green. A background image only (img/lb-flag-left.svg / -right.svg, the fade is inside the file): nothing
   for screen readers to read, no extra element. Corner = left in Arabic, right in English (the logo side stays free).
   Desktop bar only: on phones the green bar is full of buttons and the flag would sit hidden behind them. */
#header .wsmainfull.bg_green { background-image: url(../../img/lb-flag-left.svg) !important; background-repeat: no-repeat !important; background-position: left top !important; background-size: auto 100% !important; }
[dir="ltr"] #header .wsmainfull.bg_green { background-image: url(../../img/lb-flag-right.svg) !important; background-position: right top !important; }
html.high-contrast #header .wsmainfull.bg_green { background-image: none !important; }
@media (forced-colors: active), print {
	#header .wsmainfull.bg_green { background-image: none !important; }
}
