/*
 * KAHF theme — details theme.json can't express.
 * Rhythm: 4/8px steps. Logical properties only (RTL + LTR).
 * Arabic note: no letter-spacing on Arabic text — tracking breaks letter joining.
 * Hierarchy comes from size, weight and leading together.
 */

:root {
	/* Rhythm: one gap between sections, one heading scale. */
	--kahf-gap-section: clamp(2.5rem, 5vw, 3.5rem);
	--kahf-muted-text: rgba(30, 40, 48, 0.78);
	--kahf-tint-cool: #CAE1E5;
	--kahf-tint-warm: #E2DACF;
	--kahf-overlap: clamp(2.5rem, 5vw, 4rem);
	--kahf-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--kahf-ease-in: cubic-bezier(0.64, 0, 0.78, 0);
	--kahf-fast: 120ms;
	--kahf-base: 240ms;
	--kahf-header-h: 76px;
	--kahf-ring: 0 0 0 2px var(--wp--preset--color--white), 0 0 0 5px var(--wp--preset--color--navy);
	--kahf-shadow-sm: 0 1px 2px rgba(30, 40, 48, 0.06), 0 2px 8px rgba(30, 40, 48, 0.06);
	--kahf-shadow-md: 0 2px 6px rgba(30, 40, 48, 0.06), 0 12px 32px rgba(30, 40, 48, 0.1);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kahf-header-h) + 16px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-optical-sizing: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > footer { margin-block-start: auto; }
::selection { background: var(--wp--preset--color--gold-20); color: var(--wp--preset--color--navy); }

/* Type: tight leading for display, generous for reading. */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
h1 { line-height: 1.22; font-weight: 700; }
h2 { line-height: 1.3; font-weight: 700; }
h3 { line-height: 1.45; font-weight: 600; }
.kahf-lead { font-size: 1.25rem; line-height: 1.8; color: var(--kahf-muted-text); max-width: 42em; margin: 0; }

/* Focus: visible, consistent, never removed. */
:where(a, button, input, select, summary, [tabindex]):focus-visible { outline: none; box-shadow: var(--kahf-ring); border-radius: 4px; }

/* ---------- Buttons: instant feedback on press ---------- */
.wp-element-button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 48px; text-decoration: none;
	transition: background-color var(--kahf-base) var(--kahf-ease), color var(--kahf-base) var(--kahf-ease), border-color var(--kahf-base) var(--kahf-ease), transform var(--kahf-fast) var(--kahf-ease), box-shadow var(--kahf-base) var(--kahf-ease);
	-webkit-tap-highlight-color: transparent;
}
.wp-element-button:active, .wp-block-button__link:active { transform: scale(0.97); transition-duration: 60ms; }
.wp-block-button__link.has-gold-background-color:hover { background-color: var(--wp--preset--color--gold-20) !important; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; color: var(--wp--preset--color--navy); padding: 0.75rem 1.75rem; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #fff; border-color: var(--wp--preset--color--navy); }
.kahf-btn-sm .wp-block-button__link { min-height: 44px; padding: 0.45rem 1.1rem; font-size: 0.9375rem; }

/* "View all" links: text buttons with a direction-aware chevron. */
.kahf-more { margin: 0; }
.kahf-more a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--wp--preset--color--navy); }
.kahf-more a::after { content: ""; width: 0.45em; height: 0.45em; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--kahf-base) var(--kahf-ease); }
:where([dir="ltr"]) .kahf-more a::after { border-left: 0; border-right: 2px solid currentColor; transform: rotate(45deg); }
:where([dir="ltr"]) .kahf-more a:hover::after { transform: rotate(45deg) translate(2px, -2px); }
.kahf-more a:hover { color: var(--wp--preset--color--green); }
.kahf-more a:hover::after { transform: rotate(-45deg) translate(-2px, -2px); }

/* ---------- Header: sticky translucent layer; content scrolls underneath ---------- */
.kahf-site-header { position: sticky; inset-block-start: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.kahf-header { position: relative; isolation: isolate; padding-block: 0.875rem; background: rgba(255, 255, 255, 0.82) !important; transition: box-shadow var(--kahf-base) var(--kahf-ease), background-color var(--kahf-base) var(--kahf-ease); }
.is-scrolled .kahf-header:not(.kahf-header--overlay) { box-shadow: 0 1px 0 rgba(0, 58, 112, 0.08), 0 8px 24px rgba(30, 40, 48, 0.06); }
.kahf-header__bar { gap: 1.5rem; }
.kahf-brand { gap: 0.75rem; flex-shrink: 0; }
.kahf-site-title { font-size: 1.125rem; font-weight: 700; line-height: 1.35; max-width: 11em; margin: 0; }
.kahf-site-title a { text-decoration: none; color: inherit; }
.kahf-header__end { gap: 1.25rem; flex-shrink: 0; align-items: center; }
.kahf-header__tools { gap: 0.5rem; flex-shrink: 0; align-items: center; }
.kahf-brand .wp-block-site-logo img { height: 44px; width: auto !important; max-width: 180px; object-fit: contain; }
/* The logo link already carries the site name (alt), so the text title is removed rather than kept as a second, invisible link to the same place. */
.kahf-brand:has(.wp-block-site-logo img) .kahf-site-title { display: none; }
.kahf-header--overlay .wp-block-site-logo:not(.is-bundled) img { filter: brightness(0) invert(1); }
/* Bundled logos: the official colour file on light headers, the official white file on dark ones. */
.kahf-logo-img--white { display: none !important; }
.kahf-header--overlay .is-bundled .kahf-logo-img--color, html[data-theme="dark"] .is-bundled .kahf-logo-img--color { display: none !important; }
.kahf-header--overlay .is-bundled .kahf-logo-img--white, html[data-theme="dark"] .is-bundled .kahf-logo-img--white { display: block !important; }
.is-scrolled .kahf-header--overlay .wp-block-site-logo img { transition: none; }
.kahf-header__cta { margin: 0; }
.kahf-search .wp-block-search__button { background: transparent; color: inherit; border: 0; min-width: 44px; min-height: 44px; padding: 0.5rem; border-radius: 999px; transition: background-color var(--kahf-base) var(--kahf-ease); }
.kahf-search .wp-block-search__button:hover { background: rgba(0, 58, 112, 0.08); }
/* Search: a round button that opens a glass sheet under the header. */
.kahf-search__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--wp--preset--color--navy); background: rgba(0, 58, 112, 0.06); box-shadow: inset 0 0 0 1px rgba(0, 58, 112, 0.08); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color var(--kahf-base) var(--kahf-ease), color var(--kahf-base) var(--kahf-ease), transform var(--kahf-fast) var(--kahf-ease); }
.kahf-search__toggle svg { width: 18px; height: 18px; }
.kahf-home-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--wp--preset--color--navy); background: rgba(0, 58, 112, 0.06); box-shadow: inset 0 0 0 1px rgba(0, 58, 112, 0.12); transition: background-color 0.2s ease, transform 0.2s ease; }
.kahf-home-link svg { width: 19px; height: 19px; }
.kahf-home-link:hover { background: rgba(0, 58, 112, 0.11); }
.kahf-home-link:active { transform: scale(0.92); transition-duration: 60ms; }
.kahf-home-link:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; }
.kahf-header--overlay .kahf-home-link { color: #fff; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.kahf-header--overlay .kahf-home-link:hover { background: rgba(255, 255, 255, 0.24); }
/* Phones: the logo already leads home and the header has no room for a fourth tool. */
@media (max-width: 600px) { .kahf-home-link { display: none; } }
html[data-theme="dark"] .kahf-home-link { color: #fff; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.kahf-search__toggle:hover { background: rgba(0, 58, 112, 0.11); }
.kahf-search__toggle:active { transform: scale(0.92); transition-duration: 60ms; }
.kahf-search__toggle[aria-expanded="true"] { background: var(--wp--preset--color--navy); color: #fff; box-shadow: none; }
.kahf-header--overlay .kahf-search__toggle { color: #fff; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.kahf-header--overlay .kahf-search__toggle:hover { background: rgba(255, 255, 255, 0.24); }
.kahf-header--overlay .kahf-search__toggle[aria-expanded="true"] { background: #fff; color: var(--wp--preset--color--navy); }
/* Search: one floating glass field under the header (no full-width band) — magnifier (submits), input, close. */
.kahf-search__panel { position: fixed; inset-inline: 0; top: var(--kahf-search-top, var(--kahf-header-h)); z-index: 60; padding: 0.875rem var(--wp--style--root--padding-left, 1.25rem); background: transparent; pointer-events: none; opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease; }
.kahf-search__panel.is-open { opacity: 1; transform: none; }
.kahf-search__inner { max-width: 720px; margin-inline: auto; }
.kahf-search__form { pointer-events: auto; display: flex; align-items: center; gap: 0.25rem; min-height: 52px; padding-inline: 0.25rem; border-radius: 14px; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(0, 58, 112, 0.1), 0 12px 32px rgba(30, 40, 48, 0.14); transition: box-shadow 0.2s ease, background-color 0.2s ease; }
.kahf-search__form:focus-within { background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 0 0 1px rgba(0, 58, 112, 0.45), 0 12px 32px rgba(30, 40, 48, 0.16); }
@media (prefers-reduced-transparency: reduce) { .kahf-search__form, .kahf-search__form:focus-within { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } html[data-theme="dark"] :is(.kahf-search__form, .kahf-search__form:focus-within) { background: #1E2830; } }
.kahf-search__icon, .kahf-search__close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--kahf-muted-text); cursor: pointer; }
.kahf-search__icon:hover, .kahf-search__close:hover { color: var(--wp--preset--color--navy); background: rgba(0, 58, 112, 0.06); }
.kahf-search__icon:focus-visible, .kahf-search__close:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 0; }
.kahf-search__icon svg { width: 20px; height: 20px; }
.kahf-search__close svg { width: 16px; height: 16px; }
.kahf-search__input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; font: inherit; font-size: 1.125rem; color: var(--wp--preset--color--charcoal); }
.kahf-search__input:focus, .kahf-search__input:focus-visible { outline: none; box-shadow: none; }
.kahf-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.kahf-search__input::placeholder { color: var(--kahf-muted-text); }
@media (prefers-reduced-motion: reduce) { .kahf-search__panel { transform: none; } }
.kahf-header .kahf-lang a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.5rem; color: var(--wp--preset--color--navy); font-size: 0.9375rem; }

/* Navigation: pill hover, gold marker for the current section. */
.kahf-nav { font-size: 1.125rem; font-weight: 500; }
.kahf-nav .wp-block-navigation__container { gap: 0.25rem 0.375rem !important; }
.kahf-nav .wp-block-navigation-item { white-space: nowrap; }
.kahf-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { padding: 0.5rem 0.75rem; border-radius: 999px; transition: background-color var(--kahf-base) var(--kahf-ease), color var(--kahf-base) var(--kahf-ease); }
.kahf-nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content { background: rgba(0, 58, 112, 0.07); }
.kahf-nav .current-menu-item > .wp-block-navigation-item__content, .kahf-nav .current-menu-ancestor > .wp-block-navigation-item__content { box-shadow: inset 0 -2px 0 var(--wp--preset--color--gold); border-radius: 0 !important; }
.kahf-nav .wp-block-navigation__submenu-icon { margin-inline-start: 0.15rem; }

/* Submenus grow from their trigger, not from nowhere. */
.kahf-nav .wp-block-navigation__submenu-container {
	border: 0 !important; border-radius: 14px; padding: 0.5rem !important; min-width: 248px !important;
	background: rgba(255, 255, 255, 0.62) !important; color: var(--wp--preset--color--navy) !important;
	-webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(0, 58, 112, 0.08), var(--kahf-shadow-md);
	transform-origin: top right; transform: translateY(-4px) scale(0.98);
	transition: opacity var(--kahf-base) var(--kahf-ease), transform var(--kahf-base) var(--kahf-ease), visibility 0s linear var(--kahf-base) !important;
}
:where([dir="ltr"]) .kahf-nav .wp-block-navigation__submenu-container { transform-origin: top left; }
.kahf-nav .has-child:hover > .wp-block-navigation__submenu-container,
.kahf-nav .has-child:focus-within > .wp-block-navigation__submenu-container,
.kahf-nav .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container { transform: none; transition-delay: 0s !important; }
.kahf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.6rem 0.85rem !important; border-radius: 8px; font-size: 0.9375rem; }
.kahf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: var(--wp--preset--color--navy) !important; font-weight: 500; }
.kahf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgba(0, 58, 112, 0.08); }
/* Over the video the same menu is a dark glass, so it stays readable on any frame. */
.kahf-header--overlay .kahf-nav .wp-block-navigation__submenu-container { background: rgba(30, 40, 48, 0.42) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 40px rgba(30, 40, 48, 0.35); }
.kahf-header--overlay .kahf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: #fff !important; }
.is-scrolled .kahf-header--overlay .kahf-nav .wp-block-navigation__submenu-container { background: rgba(0, 58, 112, 0.74) !important; }
.kahf-header--overlay .kahf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, 0.14); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.kahf-nav .wp-block-navigation__submenu-container { background: rgba(255, 255, 255, 0.97) !important; }
	.kahf-header--overlay .kahf-nav .wp-block-navigation__submenu-container { background: rgba(0, 58, 112, 0.94) !important; }
}

/* Mobile menu: full-screen navy layer, large tap targets. */
.kahf-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--navy) !important; color: #fff !important; padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem); }
.kahf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; gap: 0.25rem; align-items: stretch; }
.kahf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; padding-block: 0.6rem; color: #fff !important; }
.kahf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; box-shadow: none; padding: 0 1rem 0.5rem !important; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.kahf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.125rem; color: var(--wp--preset--color--gold-20) !important; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }

/* Header over the hero video: transparent, becomes a navy glass layer on scroll. */
.kahf-site-header--overlay { position: fixed; inset-inline: 0; }
.kahf-header--overlay { background: linear-gradient(to bottom, rgba(0, 58, 112, 0.55), rgba(0, 58, 112, 0)) !important; }
/* The bar's blur lives on a pseudo-layer, so it never becomes the backdrop root
   for its own menus: dropdowns blur the page, and the mobile menu stays fixed to the screen. */
.kahf-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.kahf-header--overlay::before { -webkit-backdrop-filter: none; backdrop-filter: none; }
.is-scrolled .kahf-header--overlay::before { -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.kahf-nav .wp-block-navigation__submenu-container > .wp-block-navigation-item { background: transparent !important; }
.is-scrolled .kahf-header--overlay { background: rgba(30, 40, 48, 0.78) !important; box-shadow: 0 8px 24px rgba(30, 40, 48, 0.18); }
.kahf-header--overlay .kahf-site-title, .kahf-header--overlay .kahf-search .wp-block-search__button, .kahf-header--overlay .kahf-lang a { color: #fff; }
.kahf-header--overlay .kahf-search .wp-block-search__button:hover { background: rgba(255, 255, 255, 0.14); }
.kahf-header--overlay .kahf-nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content { background: rgba(255, 255, 255, 0.14); }
.kahf-header--overlay .wp-block-navigation__responsive-container-open { color: #fff; }

/* ---------- Breadcrumbs ---------- */
.kahf-page-head { padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(2rem, 4vw, 3rem); }
.kahf-page-head > * + * { margin-block-start: 0.75rem; }
.kahf-crumbs { margin-block-end: clamp(1.25rem, 3vw, 2rem) !important; }
.kahf-page-title { margin: 0; font-size: clamp(2rem, 3.4vw, 2.75rem) !important; line-height: 1.25; }
.kahf-page-head .kahf-lead { margin-block-start: 0.75rem; }
.kahf-page-meta { font-size: 0.9375rem; margin: 0; }
.kahf-section-nav__inner { max-width: var(--wp--style--global--wide-size); margin-inline: auto; padding-inline: var(--wp--style--root--padding-left, 2.5rem); }
.kahf-page .kahf-page-body { padding-block-start: 0; }
.kahf-page .wp-block-post-content > h2:first-child { margin-block-start: 0; }
.kahf-page .wp-block-post-content h2 { scroll-margin-top: calc(var(--kahf-header-h) + 80px); padding-block-start: 0.5rem; }
.kahf-post-nav { margin-block-start: 3rem !important; padding-block-start: 1.5rem; border-block-start: 1px solid var(--wp--preset--color--gold-20); }

/* ---------- Hero ---------- */
.kahf-hero.wp-block-cover { min-height: 92vh !important; padding-block: calc(var(--kahf-header-h) + 1.5rem) calc(var(--kahf-overlap) + 1.5rem); align-items: center; }
.kahf-hero .wp-block-cover__background { background: linear-gradient(to left, rgba(0, 58, 112, 0.86) 0%, rgba(0, 58, 112, 0.62) 34%, rgba(0, 58, 112, 0.18) 66%, rgba(0, 58, 112, 0) 100%), linear-gradient(to top, rgba(0, 58, 112, 0.55) 0%, rgba(0, 58, 112, 0) 35%) !important; opacity: 1 !important; }
:where([dir="ltr"]) .kahf-hero .wp-block-cover__background { background: linear-gradient(to right, rgba(0, 58, 112, 0.86) 0%, rgba(0, 58, 112, 0.62) 34%, rgba(0, 58, 112, 0.18) 66%, rgba(0, 58, 112, 0) 100%), linear-gradient(to top, rgba(0, 58, 112, 0.55) 0%, rgba(0, 58, 112, 0) 35%) !important; }
.kahf-hero .wp-block-cover__video-background { object-fit: cover; object-position: 40% 50%; }
.kahf-hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.25rem, 3vh, 2rem); }
.kahf-hero__tagline { margin: 0 !important; }
.kahf-hero__tagline img { display: block; height: clamp(180px, 34vh, 300px) !important; width: auto !important; filter: drop-shadow(0 2px 18px rgba(30, 40, 48, 0.35)); }
.kahf-hero__title { font-size: clamp(2.25rem, 4.6vw, 4rem); font-weight: 700; line-height: 1.22; margin: 0; max-width: 11em; text-shadow: 0 2px 24px rgba(30, 40, 48, 0.35); }
.kahf-hero__toggle { position: absolute; inset-block-end: calc(var(--kahf-overlap) + 1.25rem); inset-inline-end: clamp(1.25rem, 4vw, 2.5rem); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(0, 58, 112, 0.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; opacity: 0.75; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color var(--kahf-base) var(--kahf-ease), opacity var(--kahf-base) var(--kahf-ease), transform var(--kahf-fast) var(--kahf-ease); }
.kahf-hero__toggle:hover { background: rgba(0, 58, 112, 0.6); opacity: 1; }
.kahf-hero__toggle:active { transform: scale(0.94); }
.kahf-hero__toggle svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- Sections ---------- */
.kahf-home > * { margin-block-start: 0 !important; }
.kahf-section { padding-block: var(--kahf-gap-section); }
.kahf-section-head { margin-block-end: clamp(1.5rem, 3vw, 2.25rem) !important; gap: 1rem 2rem; align-items: flex-end !important; }
.kahf-section-head h2 { margin: 0; }
.kahf-section-head .kahf-lead { margin-block-start: 0.75rem; }
.kahf-section-head__text { flex: 1 1 520px; }
:is(.kahf-ecosystem, .kahf-page) .kahf-section-head > .kahf-lead { max-width: none; }
.kahf-subhead { margin-block: clamp(3rem, 6vw, 4.5rem) 1.5rem !important; font-size: var(--wp--preset--font-size--large); }
.kahf-center-actions { margin-block-start: 2.5rem !important; }

.kahf-fields__grid { gap: 1.25rem; }
.kahf-field-card { position: relative; padding: 1.75rem 1.5rem; border-radius: 16px; background: var(--wp--preset--color--sand); transition: transform var(--kahf-base) var(--kahf-ease), box-shadow var(--kahf-base) var(--kahf-ease), background-color var(--kahf-base) var(--kahf-ease); }
.kahf-field-card:hover { background: #fff; box-shadow: var(--kahf-shadow-md); transform: translateY(-2px); }
.kahf-field-card:active { transform: scale(0.99); }
.kahf-field-card__band { width: 40px; height: 6px !important; border-radius: 3px; min-height: 0 !important; padding: 0 !important; }
.kahf-field-card h3 { margin-block: 1.25rem 0.5rem; font-size: 1.375rem; }
.kahf-field-card h3 a { text-decoration: none; color: var(--wp--preset--color--navy); }
.kahf-field-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kahf-field-card p { margin: 0; font-size: 1rem; line-height: 1.8; }

.kahf-works-home { background: #fff; }

/* The main line and the impact numbers share one card that floats over the bottom edge of the hero. */
.kahf-impact { padding-block: 0 clamp(3rem, 6vw, 4.5rem); position: relative; z-index: 2; }
.kahf-impact__panel { margin-block-start: calc(-1 * var(--kahf-overlap)) !important; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 58, 112, 0.06), 0 18px 48px rgba(30, 40, 48, 0.14); }
.kahf-impact__title { margin: 0 !important; padding: clamp(2rem, 4vw, 3rem) 1.5rem clamp(1.75rem, 3.5vw, 2.5rem); font-size: clamp(1.75rem, 3.4vw, 2.75rem) !important; line-height: 1.35; color: var(--wp--preset--color--navy); }
.kahf-impact__title::after { content: ""; display: block; width: 56px; height: 3px; margin: 1.1rem auto 0; border-radius: 2px; background: var(--wp--preset--color--gold); }
.kahf-impact__panel .kahf-impact-stats { margin: 0 !important; border-block-start: 1px solid rgba(0, 58, 112, 0.1); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.kahf-news__grid { gap: 2.5rem 2rem !important; }
.kahf-news__grid > li { display: flex; flex-direction: column; }
.kahf-news__grid .wp-block-post-featured-image { margin-block-end: 1rem; border-radius: 14px; overflow: hidden; background: var(--wp--preset--color--navy-40); aspect-ratio: 3 / 2; }
.kahf-news__grid .wp-block-post-featured-image:empty, .kahf-news__grid li:not(:has(.wp-block-post-featured-image img)) .wp-block-post-featured-image { display: none; }
.kahf-news__grid li:not(:has(.wp-block-post-featured-image)) { padding-block-start: 1.25rem; border-block-start: 3px solid var(--wp--preset--color--gold); }
.kahf-news__grid .wp-block-post-title { line-height: 1.6; margin-block-start: 0.35rem; font-size: 1.25rem !important; }
.kahf-news__grid .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--navy); }
.kahf-news__grid .wp-block-post-title { transition: transform 0.35s var(--kahf-ease, ease); }
.kahf-news__grid > li:hover .wp-block-post-title { transform: translateX(-4px); }
:where([dir="ltr"]) .kahf-news__grid > li:hover .wp-block-post-title { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .kahf-news__grid > li:hover .wp-block-post-title { transform: none; } }
.kahf-news__grid .wp-block-post-date { font-size: 0.875rem; }

/* Home sections alternate white with two quiet tints (cool, then warm) so each one reads as its own block. */
.kahf-home .kahf-fields { position: relative; background: #fff; }
.kahf-home .kahf-fields::after { content: ""; position: absolute; inset-block-end: 0; inset-inline: max(var(--wp--style--root--padding-left, 2.5rem), calc((100% - 1280px) / 2)); height: 1px; background: #D2D4D6; }
.kahf-home .kahf-works-home { background: #fff; }
.kahf-home .kahf-news { position: relative; background: #fff; }
.kahf-home .kahf-news::before, .kahf-home .kahf-ecosystem::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: max(var(--wp--style--root--padding-left, 2.5rem), calc((100% - 1280px) / 2)); height: 1px; background: #D2D4D6; }
/* Home news: centered head, then full-width alternating rows (photo + identity-color panel). */
.kahf-news__head { align-items: center !important; text-align: center; gap: 0.5rem; }
.kahf-news__head h2 { margin: 0; }
.kahf-news__rows { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.kahf-news__rows > li { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0; overflow: hidden; background: var(--kahf-panel, #003A70); color: var(--kahf-panel-ink, #fff); }
.kahf-news__rows > li:nth-child(3n+1) { --kahf-panel: #003A70; --kahf-panel-ink: #fff; }
.kahf-news__rows > li:nth-child(3n+2) { --kahf-panel: #C29D5F; --kahf-panel-ink: #1E2830; }
.kahf-news__rows > li:nth-child(3n) { --kahf-panel: #6EA6AF; --kahf-panel-ink: #1E2830; }
.kahf-news__rows .kahf-news__img { margin: 0; min-height: 260px; aspect-ratio: 1.85 / 1; overflow: hidden; background: var(--wp--preset--color--navy-20, #B6C1D3); }
.kahf-news__rows .kahf-news__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--kahf-ease); }
.kahf-news__rows > li:nth-child(even) .kahf-news__img { order: 2; }
.kahf-news__rows > li:not(:has(.kahf-news__img img)) { grid-template-columns: 1fr; }
.kahf-news__rows > li:not(:has(.kahf-news__img img)) .kahf-news__img { display: none; }
.kahf-news__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.75rem; margin: 0 !important; padding: clamp(1.5rem, 4vw, 4rem); }
.kahf-news__rows .kahf-news__date { display: inline-flex; align-items: center; margin: 0; padding: 0.3rem 0.95rem; border-radius: 999px; font-size: 0.9375rem; line-height: 1.5; color: var(--kahf-panel-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kahf-panel-ink) 40%, transparent); font-variant-numeric: tabular-nums; }
.kahf-news__rows .kahf-news__title { margin: 0; font-size: clamp(1.25rem, 1.9vw, 1.625rem) !important; line-height: 1.45; max-width: 18em; }
.kahf-news__rows .kahf-news__title a { color: var(--kahf-panel-ink); text-decoration: none; }
.kahf-news__rows .kahf-news__title a::after { content: ""; position: absolute; inset: 0; }
/* Hover: no underline; the title eases a few pixels toward the reading direction while the photo zooms gently. */
.kahf-news__rows .kahf-news__title { transition: transform 0.35s var(--kahf-ease, ease); }
.kahf-news__rows > li:hover .kahf-news__title { transform: translateX(-6px); }
:where([dir="ltr"]) .kahf-news__rows > li:hover .kahf-news__title { transform: translateX(6px); }
.kahf-news__rows > li:hover .kahf-news__img img { transform: scale(1.04); }
.kahf-news__rows > li:has(.kahf-news__title a:focus-visible) { outline: 3px solid var(--wp--preset--color--gold, #C29D5F); outline-offset: -3px; }
@media (max-width: 768px) { .kahf-news__rows .kahf-news__img { min-height: 210px; } }
@media (max-width: 600px) {
	.kahf-news__rows { gap: 1.25rem; }
	.kahf-news__rows > li { display: flex; flex-direction: column; }
	.kahf-news__rows > li:nth-child(even) .kahf-news__img { order: 0; }
	.kahf-news__rows .kahf-news__img { min-height: 0; aspect-ratio: 16 / 10; }
	.kahf-news__text { padding: 1.375rem; }
}
@media (prefers-reduced-motion: reduce) { .kahf-news__rows > li:hover :is(.kahf-news__img img, .kahf-news__title) { transform: none; } }
.kahf-home .kahf-ecosystem { position: relative; background: #fff; }

/* ---------- Inner pages ---------- */
.kahf-page-body { padding-block: var(--kahf-gap-section) clamp(3.5rem, 6vw, 5rem); }
.kahf-page-body > .kahf-block-gap:first-child, .kahf-page-body > :first-child { margin-block-start: 0 !important; }
.kahf-block-gap { margin-block-start: var(--kahf-gap-section) !important; }
.kahf-block-gap > h2 { margin-block-end: 1.5rem; }
.kahf-project__head { max-width: 900px; }
.kahf-project__head .kahf-lead { margin-block-start: 1rem; }
.kahf-project__body { gap: 3rem; margin-block-start: 3rem !important; }
.kahf-project__body > .wp-block-column:last-child { position: sticky; top: calc(var(--kahf-header-h) + 24px); align-self: flex-start; }
.kahf-results-block, .kahf-related { margin-block-start: var(--kahf-gap-section) !important; }
/* Editorial placeholders: visible to editors only (the plugin removes them for visitors). */
:is(h2, h3, ol, ul, section, div).kahf-todo { outline: 2px dashed var(--wp--preset--color--gold); outline-offset: 6px; border-radius: 4px; }
p.kahf-todo { padding: 1rem 1.25rem; background: #E2DACF; border-radius: 10px; box-shadow: inset 3px 0 0 var(--wp--preset--color--gold); color: var(--wp--preset--color--charcoal); font-size: 0.9375rem; }
/* Objectives: a cool rounded panel; each objective is a numbered card, two per row. */
.kahf-band { position: relative; overflow: hidden; margin-block: var(--kahf-gap-section) !important; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 28px; }
.kahf-band > * { max-width: none !important; margin-inline: 0 !important; }
.kahf-band > h2 { margin-block-start: 0 !important; }
.kahf-band--objectives { background: #EEF3F8; }
.kahf-band--objectives::before { content: ""; position: absolute; inset: 0; background: url("../images/pattern-fill.svg") left top / 260px repeat; opacity: 0.035; pointer-events: none; }
.kahf-band--objectives > * { position: relative; }
:is(.kahf-objectives, .kahf-conditions) { counter-reset: kahf-objective; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem 1rem; margin: 1.75rem 0 0 !important; padding: 0 !important; list-style: none; }
:is(.kahf-objectives, .kahf-conditions) li { counter-increment: kahf-objective; display: flex; align-items: center; gap: 1rem; margin: 0; padding: 1rem 1.25rem; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 58, 112, 0.08), 0 1px 2px rgba(30, 40, 48, 0.04); font-size: 1.125rem; line-height: 1.75; color: var(--wp--preset--color--charcoal); transition: box-shadow 0.2s ease, transform 0.2s ease; }
:is(.kahf-objectives, .kahf-conditions) li::before { content: counter(kahf-objective); flex: none; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 14px; background: #F6EFE3; color: #7A5F33; font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
:is(.kahf-objectives, .kahf-conditions) li:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0, 58, 112, 0.16), 0 10px 24px rgba(30, 40, 48, 0.08); }
html[data-theme="dark"] .kahf-band--objectives { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .kahf-band--objectives::before { display: none; }
html[data-theme="dark"] :is(.kahf-objectives, .kahf-conditions) li { background: #003A70; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] :is(.kahf-objectives, .kahf-conditions) li::before { background: rgba(194, 157, 95, 0.18); color: #E3CDA4; }
@media (max-width: 781px) { :is(.kahf-objectives, .kahf-conditions) { grid-template-columns: 1fr; } :is(.kahf-objectives, .kahf-conditions) li { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { :is(.kahf-objectives, .kahf-conditions) li, :is(.kahf-objectives, .kahf-conditions) li:hover { transition: none; transform: none; } }
/* Pillars: four across on wide screens. */
@media (min-width: 1100px) { .kahf-pillars { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.wp-block-query-pagination { margin-block-start: 3rem; gap: 0.5rem; }
.kahf-page .wp-block-post-content h2 { margin-block: var(--kahf-gap-section) 1.25rem; }

/* ---------- About and founder page components ---------- */
/* Rich pages use the wide measure like their page head; running text keeps a readable line. */
/* Inner pages: content starts on the same edge as the page title (the wide container); running text keeps a readable measure. */
.kahf-page .wp-block-post-content > :not(.alignfull) { max-width: var(--wp--style--global--wide-size) !important; }
.kahf-page .wp-block-post-content > :is(p, ol, ul, h2, h3, h4, .kahf-timeline):not(.kahf-justify):not(.has-text-align-center) { padding-inline-end: max(0px, calc(100% - 46rem)) !important; }
.kahf-split { gap: clamp(1.5rem, 4vw, 3.5rem) !important; align-items: flex-start !important; }
.kahf-lead-xl { margin: 0 0 1.25rem !important; font-size: clamp(1.25rem, 1.8vw, 1.375rem); line-height: 1.75; font-weight: 600; color: var(--wp--preset--color--navy); }
.kahf-factcard { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 24px; background: var(--wp--preset--color--navy); color: #fff; box-shadow: 0 18px 40px rgba(30, 40, 48, 0.16); }
.kahf-factcard > * { margin: 0 !important; }
.kahf-fact__label { font-size: 0.875rem; font-weight: 600; color: var(--wp--preset--color--gold-70); }
.kahf-fact__value { margin-block-start: 0.3rem !important; font-size: 1.125rem; font-weight: 600; line-height: 1.65; }
.kahf-fact__value + .kahf-fact__label { margin-block-start: 1.1rem !important; padding-block-start: 1.1rem; border-block-start: 1px solid rgba(255, 255, 255, 0.14); }
.kahf-vm, .kahf-pillars, .kahf-tiers { gap: 1rem !important; }
.kahf-vm__card { padding: clamp(1.75rem, 3.5vw, 2.75rem); border-radius: 24px; }
.kahf-vm__card > * { margin: 0 !important; }
.kahf-vm__card--vision { background: var(--wp--preset--color--navy); color: #fff; }
.kahf-vm__card--mission { background: var(--kahf-tint-warm); color: var(--wp--preset--color--navy); box-shadow: inset 0 0 0 1px rgba(194, 157, 95, 0.35); }
.kahf-kicker { font-size: 0.9375rem !important; font-weight: 700; color: var(--wp--preset--color--gold-70) !important; }
.kahf-vm__card--mission .kahf-kicker { color: var(--wp--preset--color--brown) !important; }
.kahf-vm__text { margin-block-start: 0.75rem !important; font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.6; }
.kahf-pillar { padding: clamp(1.5rem, 3vw, 2rem); border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 58, 112, 0.09); }
.kahf-pillar > * { margin: 0 !important; }
.kahf-pillar__num { display: inline-block; font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--wp--preset--color--navy); font-variant-numeric: tabular-nums; }
.kahf-pillar h3 { margin-block: 1rem 0.5rem !important; font-size: 1.25rem; color: var(--wp--preset--color--navy); }
.kahf-pillar p:last-child { color: var(--kahf-muted-text); line-height: 1.8; }
.kahf-tier { padding: clamp(1.5rem, 3vw, 2rem); border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 58, 112, 0.1); }
.kahf-tier > * { margin: 0 !important; }
.kahf-tier__role { font-size: 0.9375rem; font-weight: 600; color: #866753; }
.kahf-tier h3 { margin-block: 0.5rem !important; font-size: 1.25rem; color: var(--wp--preset--color--navy); }
.kahf-tier p:last-child { font-size: 0.9375rem; line-height: 1.85; color: var(--wp--preset--color--charcoal); }
.kahf-founder-card { padding: clamp(2rem, 4vw, 2.75rem) 1.5rem; border-radius: 24px; text-align: center; color: #fff; background: radial-gradient(120% 90% at 50% 0%, #436699 0%, #003A70 60%, #003A70 100%); box-shadow: 0 18px 40px rgba(30, 40, 48, 0.18); }
.kahf-founder-card > * { margin: 0 !important; }
.kahf-founder-card__tagline img { display: block; height: clamp(180px, 22vw, 240px); width: auto; margin-inline: auto; }
.kahf-founder-card__name { margin-block-start: 1.5rem !important; padding-block-start: 1.25rem; border-block-start: 1px solid rgba(255, 255, 255, 0.16); font-size: 1.125rem; font-weight: 700; }
.kahf-founder-card__years { margin-block-start: 0.35rem !important; color: var(--wp--preset--color--gold-20); font-size: 0.9375rem; }
.kahf-timeline { position: relative; list-style: none; margin-block: 0.5rem 0 !important; padding-block: 0 !important; padding-inline: 2.25rem 0 !important; }
.kahf-timeline::before { content: ""; position: absolute; inset-block: 0.6rem 0.6rem; inset-inline-start: 7px; width: 2px; border-radius: 2px; background: var(--wp--preset--color--gold-20); }
.kahf-timeline li { position: relative; margin: 0 !important; padding-block: 0 1.75rem; line-height: 1.8; }
.kahf-timeline li:last-child { padding-block-end: 0; }
.kahf-timeline li::before { content: ""; position: absolute; inset-block-start: 0.45rem; inset-inline-start: calc(-2.25rem + 1px); width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--wp--preset--color--gold); }
.kahf-timeline li:last-child::before { background: var(--wp--preset--color--gold); }
.kahf-timeline strong { display: block; margin-block-end: 0.2rem; color: var(--wp--preset--color--navy); font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.kahf-founder-intro { max-width: 32em; font-size: 1.1875rem; line-height: 1.95; text-align: start !important; }
.kahf-founder-intro + .kahf-founder-intro { margin-block-start: 1rem !important; }
/* Milestones: the picture first (right in RTL, top on phones), the list beside it; the picture is as tall as the list. */
.kahf-milestones { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; margin-block-start: 1.25rem !important; }
.kahf-milestones > * { margin: 0 !important; }
.kahf-milestones .kahf-timeline li { padding-block: 0 0.5rem; }
.kahf-milestones .kahf-timeline li::before { inset-block-start: 1.05rem; transition: background-color 0.2s ease; }
.kahf-milestones.is-ready .kahf-timeline li.is-active::before { background: var(--wp--preset--color--gold); }
.kahf-milestones__btn { display: block; width: 100%; margin: 0; padding: 0.6rem 0.9rem; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; line-height: 1.8; text-align: start; cursor: pointer; transition: background-color 0.2s ease; }
.kahf-milestones__btn:hover { background: rgba(0, 58, 112, 0.05); }
.kahf-milestones__btn[aria-pressed="true"] { background: var(--kahf-tint-warm); }
.kahf-milestones__btn:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; }
.kahf-milestones__media { order: -1; position: relative; min-height: 360px; border-radius: 24px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #436699 0%, #003A70 60%, #003A70 100%); }
.kahf-milestones__media > .kahf-todo { position: relative; z-index: 2; margin: 1rem !important; }
.kahf-milestones__media figure { margin: 0 !important; }
.kahf-milestones__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.kahf-milestones__media .kahf-ms-4 img { object-position: 38% 20%; }
.kahf-milestones__media .kahf-ms-7 img { object-position: 42% 50%; }
.kahf-milestones.is-ready .kahf-milestones__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
.kahf-milestones.is-ready .kahf-milestones__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
.kahf-milestones__ph { display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.kahf-milestones__ph::before { content: ""; position: absolute; inset: 0; background: url("../images/pattern-fill.svg") center / 220px repeat; opacity: 0.12; }
.kahf-milestones__ph span { position: relative; color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.4; text-align: center; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] :is(.kahf-founder-card, .kahf-milestones__media, .kahf-more-card) { background: #003A70; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .kahf-milestones__btn:hover { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .kahf-milestones__btn[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 781px) {
	.kahf-milestones { grid-template-columns: 1fr; }
	.kahf-milestones { gap: 1rem; }
	/* Phones: the picture stays in view under the header while the list scrolls, so choosing a stage never moves the page. */
	.kahf-milestones__media { position: sticky; top: calc(var(--kahf-header-h) + 0.5rem); z-index: 3; min-height: 0; aspect-ratio: 16 / 10; max-height: 36vh; width: 100%; border-radius: 18px; box-shadow: 0 10px 24px rgba(0, 31, 61, 0.18); }
	.kahf-milestones .kahf-timeline { padding-inline-start: 1.75rem !important; }
	.kahf-milestones .kahf-timeline::before { inset-inline-start: 6px; }
	.kahf-milestones .kahf-timeline li::before { inset-inline-start: calc(-1.75rem + 0px); width: 13px; height: 13px; inset-block-start: 1rem; }
	.kahf-milestones__btn { padding: 0.5rem 0.75rem; border-radius: 12px; }
	.kahf-milestones .kahf-timeline strong { font-size: 1rem; }
	/* Founder: tighter card and the «سيرة ملك» box sized to its text. */
	.kahf-founder-card { padding: 1.5rem 1.25rem !important; border-radius: 20px; }
	.kahf-legacy { padding: 1.5rem 1.25rem !important; border-radius: 20px; }
	.kahf-more-card { gap: 1rem !important; padding: 1.5rem 1.25rem !important; border-radius: 20px !important; }
	.kahf-more-card > p { flex: none !important; font-size: 1rem !important; line-height: 1.85 !important; }
}
@media (prefers-reduced-motion: reduce) {
	.kahf-milestones.is-ready .kahf-milestones__slide, .kahf-milestones__btn { transition: none; }
}
/* «سيرة ملك»: a way out to the King Abdullah biography centre. */
.kahf-more-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 24px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #436699 0%, #003A70 55%, #003A70 100%); }
.kahf-more-card > * { margin: 0 !important; }
.kahf-more-card p { flex: 1 1 420px; font-size: 1.125rem; line-height: 1.9; color: rgba(255, 255, 255, 0.92); }
.kahf-more-card .wp-block-button__link { background: var(--wp--preset--color--gold) !important; color: #1E2830 !important; }
.kahf-more-card .wp-block-button__link:hover { background: #CEB17F !important; }
.kahf-more-card .wp-block-button__link[target="_blank"]::after { content: ""; display: inline-block; width: 0.9em; height: 0.9em; margin-inline-start: 0.45em; vertical-align: -0.1em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat; transform: scaleX(-1); }
.kahf-legacy { padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 24px; background: var(--kahf-tint-warm); }
.kahf-legacy > * { margin: 0 !important; }
.kahf-legacy .wp-block-buttons { margin-block-start: 1.5rem !important; gap: 0.75rem; }
@media (max-width: 781px) {
	.kahf-vm, .kahf-pillars, .kahf-tiers { grid-template-columns: 1fr !important; }
	.kahf-split > .wp-block-column { flex-basis: 100% !important; }
}
.kahf-page .wp-block-post-content h3 { margin-block: 1.75rem 0.5rem; color: var(--wp--preset--color--navy); }

/* ---------- Footer ---------- */
.kahf-footer { padding-block: clamp(3.5rem, 7vw, 5rem) 1.5rem; }
.kahf-footer a { color: #fff; text-decoration: none; }
.kahf-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.kahf-footer__title { font-size: 1.375rem; font-weight: 700; }
.kahf-footer__title a { color: #fff; }
.kahf-footer__about { color: var(--wp--preset--color--gold-20); max-width: 26em; }
.kahf-footer__heading { color: var(--wp--preset--color--gold-70) !important; font-size: 1rem !important; font-weight: 600 !important; margin-block-end: 1rem; }
.kahf-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.kahf-footer__links a { display: inline-flex; min-height: 44px; align-items: center; }
.kahf-footer__sep { border: 0 !important; border-block-start: 1px solid rgba(255, 255, 255, 0.16) !important; width: 100% !important; max-width: var(--wp--style--global--wide-size) !important; margin-block: 3rem 1.25rem !important; opacity: 1; }
.kahf-footer__copy { color: var(--wp--preset--color--gold-20); }
.kahf-social { gap: 0.25rem; }
.kahf-social .wp-social-link a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0.6rem !important; border-radius: 999px; transition: background-color var(--kahf-base) var(--kahf-ease); }
.kahf-social .wp-social-link a:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	:root { --kahf-header-h: 64px; }
	.kahf-header { padding-block: 0.625rem; }
	.kahf-hero.wp-block-cover { min-height: 86vh !important; }
	.kahf-site-title { font-size: 0.9375rem; }
	.kahf-header__tools .kahf-lang { display: none; }
	.kahf-header__end { gap: 0.5rem; }
	.kahf-brand .wp-block-site-logo img { height: 36px; max-width: 132px; }
	.kahf-btn-sm .wp-block-button__link { min-height: 44px; padding: 0.35rem 0.85rem; font-size: 0.875rem; }
	.kahf-project__body > .wp-block-column:last-child { position: static; }
	.kahf-hero .wp-block-cover__background { background: linear-gradient(to left, rgba(0, 58, 112, 0.78) 0%, rgba(0, 58, 112, 0.4) 50%, rgba(0, 58, 112, 0.08) 80%), linear-gradient(to top, rgba(0, 58, 112, 0.55) 0%, rgba(0, 58, 112, 0) 30%) !important; }
	.kahf-hero .wp-block-cover__video-background { object-position: 42% 50%; }
	.kahf-hero__content { gap: 1rem; }
	.kahf-hero__tagline img { height: clamp(140px, 24vh, 195px) !important; }
	.kahf-hero__title { font-size: clamp(1.875rem, 8vw, 2.5rem); }
	.kahf-hero__toggle { inset-block-start: calc(var(--kahf-header-h) + 0.75rem); inset-block-end: auto; width: 44px; height: 44px; }
	.kahf-footer__emblem img { height: 80px !important; }
}
@media (min-width: 782px) and (max-width: 1180px) {
	.kahf-header__tools .kahf-lang { display: none; }
	.kahf-nav { font-size: 0.9375rem; }
}

/* ---------- Respect user settings ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
	.wp-element-button:active, .wp-block-button__link:active, .kahf-field-card:hover, .kahf-field-card:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
	.kahf-header, .kahf-nav .wp-block-navigation__submenu-container { background: #fff !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.kahf-header::before { display: none; }
	.kahf-header--overlay .kahf-nav .wp-block-navigation__submenu-container { background: var(--wp--preset--color--navy) !important; }
	.is-scrolled .kahf-header--overlay { background: var(--wp--preset--color--navy) !important; }
}
@media (prefers-contrast: more) {
	.kahf-lead, .has-slate-color { color: var(--wp--preset--color--charcoal) !important; }
	.kahf-header { background: #fff !important; box-shadow: 0 1px 0 var(--wp--preset--color--charcoal); }
}

/* Editor only: the overlay header has no video behind it while editing. */
.editor-styles-wrapper .kahf-site-header--overlay, .editor-styles-wrapper .kahf-site-header { position: relative; }
.editor-styles-wrapper .kahf-header--overlay { background: var(--wp--preset--color--navy) !important; }

/* Mobile menu reads from the start edge like the rest of the page. */
.kahf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.kahf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.kahf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: start; }
.kahf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0.75rem !important; width: 100%; }
.kahf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { width: 100%; padding-block-end: 0.75rem; border-block-end: 1px solid rgba(255, 255, 255, 0.12); }
.kahf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { font-size: 1.375rem !important; font-weight: 600; }
.kahf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.125rem !important; padding-block: 0.4rem !important; }
.kahf-nav .wp-block-navigation__responsive-container-close { color: #fff; }

/* Hero content lines up with the header and sections. */
.kahf-hero.wp-block-cover { padding-inline: var(--wp--style--root--padding-left, clamp(1.25rem, 4vw, 2.5rem)); }
.kahf-hero .wp-block-cover__inner-container { width: 100%; }

/* Fields strip control sits inside the content width. */


/* Desktop nav items never collapse into each other. */
.kahf-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { white-space: nowrap; }
.kahf-nav .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation-item__content { padding-inline-end: 0.25rem; }
.kahf-nav .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-icon { margin-inline-end: 0.5rem; }

/* Tablet: the full menu doesn't fit beside the tools, so use the menu button up to 1000px. */
@media (min-width: 600px) and (max-width: 1000px) {
	.kahf-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.kahf-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.kahf-header__tools .kahf-lang { display: none; }
}
/* Very small phones: keep the bar on one line. */
@media (max-width: 380px) {
	/* Search stays available on the smallest phones; the logo and button shrink instead. */
	/* «شاركنا الخير» is also in the menu (الشراكات), so the header button gives way on the smallest phones. */
	.kahf-header__cta { display: none !important; }
	.kahf-header__end, .kahf-header__tools { gap: 0.375rem; }
	.kahf-brand .wp-block-site-logo img { height: 30px; max-width: 104px; }
	.kahf-site-title { font-size: 0.875rem; max-width: 8.5em; }
	.kahf-btn-sm .wp-block-button__link { padding: 0.3rem 0.7rem; }
}
.kahf-footer__emblem { margin: 0 0 1.25rem !important; }
.kahf-footer__emblem img { display: block; height: 96px !important; width: auto !important; }

/* Secondary text set to the slate colour keeps a readable contrast on light backgrounds. */
body .has-slate-color { color: var(--kahf-muted-text) !important; }

/* Report page: the file card. */
.kahf-report-file { margin-block: 0 2rem; }
.kahf-report-file__meta { margin: 0 0 1rem; color: var(--kahf-muted-text); font-size: 0.9375rem; }
.kahf-report-file__card { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; padding: 1.25rem 1.5rem; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 58, 112, 0.1), 0 8px 24px rgba(30, 40, 48, 0.06); }
.kahf-report-file__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 60px; border-radius: 10px; background: var(--wp--preset--color--navy); color: #fff; font-size: 0.875rem; font-weight: 700; flex-shrink: 0; }
.kahf-report-file__name { flex: 1 1 220px; display: flex; flex-direction: column; gap: 0.15rem; font-weight: 700; color: var(--wp--preset--color--navy); }
.kahf-report-file__name small { font-weight: 400; color: var(--kahf-muted-text); font-size: 0.875rem; }
.kahf-report-file__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kahf-report-file__actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background-color var(--kahf-base) var(--kahf-ease), transform var(--kahf-fast) var(--kahf-ease); }
.kahf-report-file__actions a:active { transform: scale(0.97); }
.kahf-report-file__view { color: var(--wp--preset--color--navy); box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--navy); }
.kahf-report-file__view:hover { background: rgba(0, 58, 112, 0.08); }
.kahf-report-file__download { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); }
.kahf-report-file__download:hover { background: var(--wp--preset--color--gold-20); }
.kahf-report-file__none { margin: 0; padding: 1rem 1.25rem; border-radius: 12px; background: var(--wp--preset--color--mist); }

/* Text on gold must stay readable: charcoal on gold is 5.9:1 (navy on gold would be 4.47:1). */
.wp-block-button__link.has-gold-background-color, .kahf-report-file__download { color: var(--wp--preset--color--charcoal) !important; }

/* Header «شاركنا الخير»: as tall as the logo lettering; a hidden margin keeps a 44px tap area. */
.kahf-header__cta .wp-block-button__link { position: relative; min-height: 32px !important; padding: 0.15rem 0.95rem !important; font-size: 0.875rem !important; line-height: 1.3; border-radius: 8px; }
.kahf-header__cta .wp-block-button__link::after { content: ""; position: absolute; inset: -6px -2px; }
@media (max-width: 781px) { .kahf-header__cta .wp-block-button__link { min-height: 28px !important; padding: 0.1rem 0.75rem !important; font-size: 0.875rem !important; } .kahf-header__cta .wp-block-button__link::after { inset: -8px -2px; } }

/* «أعمالنا الإنسانية»: the explore button sits in the section head. */
.kahf-section-head__actions { margin: 0 !important; }

/* «من الرؤية إلى الأثر» (home, before the fields). */
.kahf-vision__grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.kahf-vision__text h2 { margin: 0 0 1.25rem; }
.kahf-vision__lead { max-width: 32em; margin: 0 0 0.75rem; font-size: 1.25rem; line-height: 1.75; color: var(--wp--preset--color--charcoal, #1E2830); }
.kahf-vision__link { margin-block-start: 1rem !important; }
.kahf-vision__frame { position: relative; display: flex; align-items: flex-end; min-height: clamp(320px, 34vw, 480px); margin: 0 !important; overflow: hidden; border-radius: 24px; background: transparent; }
.kahf-vision__frame[style*="background-image"] { background-size: cover; background-position: center; }
.kahf-vision__figure { position: absolute; inset-block-end: 0; inset-inline: 0; margin: 0 auto !important; width: 86%; max-width: 500px; pointer-events: none; }
.kahf-vision__figure img { display: block; width: 100%; height: auto; }
.kahf-vision__caption { position: relative; z-index: 1; }
.kahf-vision__caption { margin: 0 !important; }
.kahf-vision__caption a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1.25rem; background: #003A70; color: #fff; font-weight: 700; text-decoration: none; border-start-end-radius: 16px; }
.kahf-vision__caption a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(-45deg); }
.kahf-vision__caption a:hover { background: #436699; }
/* Vision illustration without a background: the image sets the height; the founder link sits on its lower corner. */
.kahf-vision__frame { display: block; min-height: 0; overflow: visible; border-radius: 0; }
.kahf-vision__figure { position: static; width: 100%; max-width: 600px; }
/* The illustration is its own rounded navy card (1.8.8); the founder link floats inside its lower corner. */
.kahf-vision__figure img { filter: drop-shadow(0 18px 36px rgba(0, 58, 112, 0.18)); }
.kahf-vision__caption { position: absolute; inset-block-end: 1.25rem; inset-inline-start: 1.25rem; }
.kahf-vision__caption a { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
html[data-theme="dark"] .kahf-vision__figure img { filter: none; }
.kahf-vision__caption a { border-radius: 999px; }

@media (max-width: 781px) { .kahf-vision__grid { grid-template-columns: 1fr; } }
.kahf-home .kahf-vision { position: relative; background: #fff; }
.kahf-home .kahf-vision::after { content: ""; position: absolute; inset-block-end: 0; inset-inline: max(var(--wp--style--root--padding-left, 2.5rem), calc((100% - 1280px) / 2)); height: 1px; background: #D2D4D6; }

/* Single news item. */
.kahf-article__head { padding-block-end: clamp(2rem, 4vw, 3rem) !important; }
.kahf-article__head .kahf-post-meta { margin-block: 1.25rem 0.75rem; }
.kahf-article__title { font-size: clamp(1.75rem, 3.4vw, 2.75rem) !important; line-height: 1.45 !important; }
.kahf-article__body { padding-block: clamp(2rem, 4vw, 3rem) !important; display: flex; flex-direction: column; gap: 2rem; }
.kahf-article__body > * { margin-block: 0 !important; }
.kahf-article__image { overflow: hidden; border-radius: 20px; }
.kahf-article__content { font-size: 1.25rem; line-height: 2; }
.kahf-article__content:empty { display: none; }
.kahf-article__content > * + * { margin-block-start: 1.25em; }
.kahf-article .kahf-post-nav { gap: 1rem; }
.kahf-article .kahf-post-nav > div { flex: 1 1 280px; }
.kahf-article .kahf-post-nav a { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.25rem; border-radius: 16px; box-shadow: inset 0 0 0 1px #D2D4D6; color: #003A70; text-decoration: none; line-height: 1.6; }
.kahf-article .kahf-post-nav a:hover { box-shadow: inset 0 0 0 2px #003A70; }
.kahf-article__more { background: #fff; border-block-start: 1px solid #D2D4D6; }

/* ══ Dark mode (visitor toggle, html[data-theme="dark"]) ═══════════════════════
   The page sits on the identity charcoal (#1E2830). Text that was navy turns white;
   light surfaces become charcoal with a hairline; page heads, featured cards and the
   footer use the official navy (#003A70) as the raised tone. Photos and the hero
   video keep their own overlays. Every text pairing keeps at least 4.5:1. */
html[data-theme="dark"] {
	color-scheme: dark;
	--wp--preset--color--navy: #FFFFFF;
	--kahf-tint-cool: #003A70;
	--kahf-tint-warm: rgba(194, 157, 95, 0.14);
	--kahf-muted-text: rgba(255, 255, 255, 0.82);
	--kahf-muted: rgba(255, 255, 255, 0.82);
	--kahf-soft: rgba(255, 255, 255, 0.1);
	--kahf-line-dark: rgba(255, 255, 255, 0.2);
}
html[data-theme="dark"] body { background: #1E2830 !important; color: #fff; }
html[data-theme="dark"] :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
html[data-theme="dark"] a:where(:not(.wp-element-button):not(.wp-block-button__link)) { color: inherit; }
html[data-theme="dark"] .has-charcoal-color { color: #fff !important; }
html[data-theme="dark"] .has-slate-color { color: rgba(255, 255, 255, 0.82) !important; }
html[data-theme="dark"] .has-sand-background-color { background-color: #003A70 !important; }
html[data-theme="dark"] .has-white-background-color { background-color: #1E2830 !important; }
html[data-theme="dark"] .has-navy-background-color:not(.wp-block-cover__background):not(.wp-block-navigation__responsive-container):not(.wp-block-navigation__submenu-container) { background-color: #003A70 !important; }
html[data-theme="dark"] .kahf-footer { background-color: #003A70 !important; }

/* Header: charcoal glass; the official white logo replaces the colour one. */
html[data-theme="dark"] .kahf-header:not(.kahf-header--overlay) { background: rgba(30, 40, 48, 0.9) !important; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14); }
/* A logo uploaded in the Site Editor has no white twin: it is whitened only as a fallback. */
html[data-theme="dark"] .kahf-header:not(.kahf-header--overlay) .wp-block-site-logo:not(.is-bundled) img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .kahf-nav .wp-block-navigation__submenu-container { background: rgba(30, 40, 48, 0.97) !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 16px 40px rgba(30, 40, 48, 0.4) !important; }
html[data-theme="dark"] .kahf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, 0.12); }
html[data-theme="dark"] .wp-block-navigation__responsive-container.is-menu-open { background: #1E2830 !important; color: #fff !important; }
html[data-theme="dark"] .kahf-search__toggle { color: #fff; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }

html[data-theme="dark"] .kahf-search__form { background: rgba(30, 40, 48, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 32px rgba(0, 0, 0, 0.35); }
html[data-theme="dark"] .kahf-search__form:focus-within { background: rgba(30, 40, 48, 0.82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 12px 32px rgba(0, 0, 0, 0.35); }
html[data-theme="dark"] :is(.kahf-search__icon, .kahf-search__close) { color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] :is(.kahf-search__icon, .kahf-search__close):hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .kahf-search__form input { color: #fff; }
html[data-theme="dark"] .kahf-search__form input::placeholder { color: rgba(255, 255, 255, 0.78); }

/* Surfaces that were white. */
html[data-theme="dark"] :is(.kahf-works-home, .kahf-home .kahf-fields, .kahf-home .kahf-works-home, .kahf-home .kahf-news, .kahf-home .kahf-ecosystem, .kahf-home .kahf-vision, .kahf-article__more, .kahf-section-nav) { background: transparent !important; }
html[data-theme="dark"] :is(.kahf-impact__panel, .kahf-pillar, .kahf-report-file__card, .kahf-facts, .kahf-map__aside, .kahf-filters, .kahf-entity, .kahf-empty-state, .kahf-field-card, .kahf-field a) { background: transparent !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22) !important; }
/* Stats panel: one solid navy card over the hero (the transparent rule above would let the video show through half of it). */
html[data-theme="dark"] .kahf-impact .kahf-impact__panel { background: #003A70 !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 24px 48px rgba(0, 0, 0, 0.28) !important; }
html[data-theme="dark"] :is(.kahf-home .kahf-fields, .kahf-home .kahf-vision)::after, html[data-theme="dark"] :is(.kahf-home .kahf-news, .kahf-home .kahf-ecosystem)::before { background: rgba(255, 255, 255, 0.2); }
html[data-theme="dark"] .kahf-article__more, html[data-theme="dark"] .kahf-section-nav, html[data-theme="dark"] .kahf-share { border-color: rgba(255, 255, 255, 0.2) !important; }
html[data-theme="dark"] p.kahf-todo { background: #5B453E; color: #fff; }

/* Buttons: filled buttons turn white with navy text; outline buttons stay outlined in white. */
html[data-theme="dark"] :is(.wp-element-button, .wp-block-button__link):not(.is-style-outline *):not(.kahf-header__cta *) { background-color: #fff !important; color: #003A70 !important; }
html[data-theme="dark"] .is-style-outline .wp-block-button__link { background: transparent !important; color: #fff !important; box-shadow: none !important; border: 1px solid rgba(255, 255, 255, 0.5) !important; }

/* Light/dark toggle (header, beside search). */
.kahf-mode-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 58, 112, 0.06); box-shadow: inset 0 0 0 1px rgba(0, 58, 112, 0.14); color: #003A70; cursor: pointer; transition: background-color var(--kahf-base) var(--kahf-ease); }
.kahf-mode-toggle:hover { background: rgba(0, 58, 112, 0.12); }
.kahf-mode-toggle[hidden] { display: none; }
.kahf-mode-toggle__sun { display: none; }
.kahf-header--overlay .kahf-mode-toggle { color: #fff; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
html[data-theme="dark"] .kahf-mode-toggle { color: #fff; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
html[data-theme="dark"] .kahf-mode-toggle__moon { display: none; }
html[data-theme="dark"] .kahf-mode-toggle__sun { display: block; }
html[data-theme="dark"] :is(.kahf-lead, .kahf-vision__lead, .kahf-tier p:last-child, .kahf-article__content, .kahf-search__input) { color: rgba(255, 255, 255, 0.9) !important; }
/* Dark: blocks that used navy as a background (navy text turned white above) take the raised navy. */
html[data-theme="dark"] :is(.kahf-factcard, .kahf-vm__card--vision) { background: #003A70; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .kahf-vm__card--mission .kahf-kicker { color: #E2DACF !important; }
html[data-theme="dark"] .kahf-tier__role { color: #CEB17F; }
html[data-theme="dark"] .kahf-tier { background: transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
html[data-theme="dark"] html[data-theme="dark"] .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff !important; color: #003A70 !important; }
html[data-theme="dark"] .kahf-search__toggle[aria-expanded="true"] { background: #fff; color: #003A70; }
html[data-theme="dark"] .kahf-nav .wp-block-navigation__responsive-container.is-menu-open { background: #1E2830 !important; }
html[data-theme="dark"] .kahf-report-file__icon { background: #fff; color: #003A70; }
html[data-theme="dark"] html[data-theme="dark"] .kahf-article .kahf-post-nav a { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
html[data-theme="dark"] .kahf-article .kahf-post-nav a:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }

/* 1.8.2 */
/* Long section descriptions (justified leads): a hairline frame and a calmer size. */
.kahf-lead.kahf-justify { padding: 1rem 1.375rem; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--kahf-line, rgba(0, 58, 112, 0.16)); font-size: 1.125rem; line-height: 1.95; }
html[data-theme="dark"] .kahf-lead.kahf-justify { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.kahf-justify { text-align: justify !important; text-align-last: start; text-justify: inter-word; hyphens: none; }
.kahf-news__more { margin-block-start: clamp(2rem, 4vw, 3rem) !important; }
/* Footer networks: always one row; each icon may narrow to 36px before anything wraps. */
.kahf-social.wp-block-social-links { flex-wrap: nowrap !important; gap: 0.125rem !important; }
.kahf-social .wp-social-link { flex: 0 1 44px; min-width: 36px; margin: 0 !important; }
.kahf-social .wp-social-link a { width: 100%; min-width: 0 !important; padding: 0.55rem 0 !important; }

/* Partnerships: the invitation beside the request form; the text column stays in view while the form scrolls. */
.kahf-join { gap: clamp(1.5rem, 4vw, 3.5rem) !important; align-items: flex-start !important; }
.kahf-join__intro { position: sticky; top: calc(var(--kahf-header-h, 72px) + 1.5rem); }
.kahf-join__intro > *, .kahf-join__form > * { margin-inline: 0 !important; }
.kahf-join__intro > h2, .kahf-join__form > h2 { margin-block-start: 0 !important; }
.kahf-join + .kahf-partner-section { margin-block-start: var(--kahf-gap-section) !important; }
@media (max-width: 781px) { .kahf-join__intro { position: static; } }
/* Partnerships: running text keeps a readable measure inside the wide sections. */
.kahf-partner-section > p { max-width: 54rem; }
/* Partnerships: the documentation-form download card. */
.kahf-download { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-block-start: 1.75rem !important; padding: 1.25rem 1.5rem; border-radius: 16px; background: #F6EFE3; }
.kahf-download > * { margin: 0 !important; }
.kahf-download p { font-size: 1.125rem; line-height: 1.8; color: #1E2830; }
.kahf-download strong { color: #003A70; margin-inline-end: 0.35rem; }
html[data-theme="dark"] .kahf-download { background: rgba(194, 157, 95, 0.16); }
html[data-theme="dark"] .kahf-download p, html[data-theme="dark"] .kahf-download strong { color: #fff; }
.kahf-partner-section + .kahf-partner-section, .kahf-partner-section + .kahf-section-head { margin-block-start: var(--kahf-gap-section) !important; }

/* Governance: board members, the executive lead and the organisation chart.
   Each person shows a photo frame; until a photo is added (an image block with the
   class «kahf-person__photo» inside the card), the frame keeps the default background. */
.kahf-gov-block { margin-block-start: clamp(2rem, 4vw, 2.75rem) !important; }
.kahf-gov-title { margin: 0 0 0.5rem !important; font-size: var(--wp--preset--font-size--large) !important; color: var(--wp--preset--color--navy); }
.kahf-gov-lead { margin: 0 0 1.25rem !important; color: var(--kahf-muted-text); }
.kahf-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.kahf-person { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 1.125rem; align-content: center; min-height: 124px; padding: 1rem 1.25rem; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 58, 112, 0.09); }
.kahf-person::before { content: ""; grid-row: 1 / span 2; grid-column: 1; width: 92px; height: 92px; align-self: center; border-radius: 16px; background: linear-gradient(160deg, #E6ECF3, #D3DDE8) center / cover; -webkit-mask: none; }
.kahf-person::after { content: ""; position: absolute; inset-inline-start: calc(1.25rem + 24px); top: 50%; width: 44px; height: 44px; transform: translateY(-50%); background: rgba(0, 58, 112, 0.28); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0 2c-4.4 0-8 2.2-8 5v1.5h16V19c0-2.8-3.6-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0 2c-4.4 0-8 2.2-8 5v1.5h16V19c0-2.8-3.6-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; }
.kahf-person > * { grid-column: 2; margin: 0 !important; }
.kahf-person > .kahf-person__photo { grid-column: 1; grid-row: 1 / span 2; width: 92px; height: 92px; align-self: center; border-radius: 16px; overflow: hidden; }
.kahf-person > .kahf-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.kahf-person:has(.kahf-person__photo img)::before, .kahf-person:has(.kahf-person__photo img)::after { display: none; }
.kahf-person__name { align-self: end; font-weight: 700; font-size: 1.125rem; line-height: 1.6; color: var(--wp--preset--color--navy); }
.kahf-person__role { align-self: start; font-size: 0.9375rem; color: var(--kahf-muted-text); }
/* The executive lead: a wider card with a larger photo and a short description. */
.kahf-person--feature { grid-template-rows: auto auto 1fr; padding: 1.25rem; }
.kahf-person--feature::before { grid-row: 1 / span 3; align-self: start; }
.kahf-person--feature::after { top: calc(1.25rem + 46px); }
.kahf-person--feature > .kahf-person__photo { grid-row: 1 / span 3; align-self: start; }
.kahf-person--feature .kahf-person__name { font-size: 1.25rem; }
.kahf-person--feature .kahf-person__role { margin-block-end: 0.75rem !important; color: #7A5F33; font-weight: 600; }
.kahf-person__bio { line-height: 1.9; color: var(--wp--preset--color--charcoal); max-width: 52rem; }
@media (max-width: 700px) {
	.kahf-people { grid-template-columns: 1fr; }
	.kahf-person__bio { grid-column: 1 / -1 !important; margin-block-start: 0.75rem !important; }
}
html[data-theme="dark"] .kahf-person { background: #003A70; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .kahf-person::before { background: rgba(255, 255, 255, 0.12); }
html[data-theme="dark"] .kahf-person::after { background: rgba(255, 255, 255, 0.45); }
html[data-theme="dark"] .kahf-person__name, html[data-theme="dark"] .kahf-gov-title { color: #fff; }
html[data-theme="dark"] .kahf-person__role, html[data-theme="dark"] .kahf-gov-lead { color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] .kahf-person--feature .kahf-person__role { color: #E3CDA4; }
html[data-theme="dark"] .kahf-person__bio { color: rgba(255, 255, 255, 0.9); }

/* Readable measure in two-column intros (about «نبذة»). */
.kahf-split .wp-block-column > p { max-width: 34em; }

/* =========================================================================
   1.8.36 — Phone layer (≤599px): app-like tab bar and bottom sheets.
   The desktop and tablet layouts are untouched.
   ========================================================================= */
.kahf-tabbar, .kahf-sheet__head, .kahf-sheet__grab { display: none; }
.kahf-msheet:not([open]) { display: none; }

/* Hero tagline on every size: smaller on phones and low, clear of the face. */
@media (max-width: 781px) {
	.kahf-hero.wp-block-cover { align-items: flex-end; justify-content: center; }
	.kahf-hero .wp-block-cover__background { background: linear-gradient(to top, rgba(0, 58, 112, 0.9) 0%, rgba(0, 58, 112, 0.6) 26%, rgba(0, 58, 112, 0.12) 50%, rgba(0, 58, 112, 0) 64%) !important; }
	.kahf-hero__content { align-items: center; }
	.kahf-hero__tagline img { height: clamp(104px, 15vh, 132px) !important; }
}

@media (max-width: 599.98px) {
	:root { --kahf-tabbar-h: 60px; }
	.kahf-footer { padding-block-end: calc(1.5rem + var(--kahf-tabbar-h) + env(safe-area-inset-bottom)) !important; }
	html.kahf-sheet-open, html.kahf-search-open { overflow: hidden; }

	/* Header: logo and search only; the rest lives in the tab bar and «المزيد». */
	.kahf-header .kahf-nav, .kahf-header .kahf-mode-toggle, .kahf-header .kahf-header__cta { display: none !important; }
	.kahf-header { padding-inline: max(var(--wp--style--root--padding-left, 1.25rem), env(safe-area-inset-left)) max(var(--wp--style--root--padding-right, 1.25rem), env(safe-area-inset-right)) !important; }

	/* Tab bar. */
	.kahf-tabbar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 55; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--kahf-tabbar-h) + env(safe-area-inset-bottom)); padding: 0 max(8px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-right)); box-sizing: border-box; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 -1px 0 rgba(0, 58, 112, 0.1); }
	.kahf-tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.8125rem; font-weight: 500; line-height: 1.2; color: rgba(30, 40, 48, 0.62); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.15s ease, transform 0.1s ease; }
	.kahf-tabbar__item svg { width: 24px; height: 24px; padding: 2px 14px; border-radius: 999px; transition: background-color 0.2s ease; }
	.kahf-tabbar__item.is-current { color: #003A70; font-weight: 600; }
	.kahf-tabbar__item.is-current svg { background: rgba(0, 58, 112, 0.09); }
	.kahf-tabbar__item:active { transform: scale(0.92); }
	.kahf-tabbar__item:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: -4px; border-radius: 12px; }

	/* Sheet parts shared by «المزيد», search and filters. */
	.kahf-sheet__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding-block: 0.5rem 0.25rem; touch-action: none; }
	.kahf-sheet__head .kahf-sheet__grab { grid-column: 1 / -1; }
	.kahf-sheet__grab { display: block; width: 36px; height: 5px; margin: 0 auto 0.5rem; padding: 6px 40px; background: rgba(30, 40, 48, 0.18); background-clip: content-box; border-radius: 999px; box-sizing: content-box; touch-action: none; }
	.kahf-sheet__title { grid-column: 2; margin: 0; text-align: center; font-size: 1.0625rem; font-weight: 600; color: #003A70; }
	.kahf-sheet__close { grid-column: 3; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; justify-self: end; border: 0; border-radius: 50%; background: rgba(30, 40, 48, 0.07); color: #1E2830; cursor: pointer; }

	/* «المزيد». */
	.kahf-msheet[open] { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; display: flex; align-items: flex-end; }
	.kahf-msheet::backdrop { background: rgba(15, 23, 30, 0); transition: background-color 0.24s ease; }
	.kahf-msheet.is-in::backdrop { background: rgba(15, 23, 30, 0.42); }
	.kahf-msheet__sheet { width: 100%; box-sizing: border-box; max-height: 88vh; overflow: auto; padding: 0.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
	.kahf-msheet.is-in .kahf-msheet__sheet { transform: none; }
	.kahf-msheet__links { list-style: none; margin: 0.25rem 0 1rem; padding: 0; }
	.kahf-msheet__links a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding-inline: 0.25rem; border-block-end: 1px solid rgba(30, 40, 48, 0.08); color: #1E2830; font-size: 1.125rem; text-decoration: none; }
	.kahf-msheet__links a svg { color: rgba(30, 40, 48, 0.4); }
	.kahf-msheet__links a.is-current { color: #003A70; font-weight: 600; }
	.kahf-msheet__links a:active { background: rgba(0, 58, 112, 0.05); }
	.kahf-msheet__row { margin-block-end: 1rem; }
	.kahf-msheet__mode { display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 52px; padding: 0 1rem; border: 0; border-radius: 14px; background: rgba(30, 40, 48, 0.05); color: #1E2830; font: inherit; font-size: 1rem; cursor: pointer; }
	.kahf-msheet__mode[hidden] { display: none; }
	.kahf-msheet__cta { display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 52px; box-sizing: border-box; border-radius: 14px !important; background: var(--wp--preset--color--gold) !important; color: #1E2830 !important; font-weight: 600; text-decoration: none; }

	/* Search: a sheet that rises from the bottom, field near the thumb. */
	.kahf-search__panel[hidden] { display: none !important; }
	.kahf-search__panel { inset: 0; top: 0 !important; z-index: 80; display: flex; align-items: flex-end; padding: 0 0 var(--kahf-kb, 0px); background: rgba(15, 23, 30, 0); pointer-events: auto; opacity: 1; transform: none; transition: background-color 0.24s ease; }
	.kahf-search__panel.is-open { background: rgba(15, 23, 30, 0.42); }
	.kahf-search__inner { width: 100%; max-width: none; margin: 0; padding: 0.25rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
	.kahf-search__panel.is-open .kahf-search__inner { transform: none; }
	.kahf-search__form { background: rgba(30, 40, 48, 0.06); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
	.kahf-search__form:focus-within { background: rgba(30, 40, 48, 0.06); box-shadow: inset 0 0 0 1px rgba(0, 58, 112, 0.45); }

	/* Touch feedback: cards and buttons give way under the finger. */
	:is(.kahf-card__link, .kahf-news a, .kahf-field, .wp-block-button__link, .kahf-scope__tab, .kahf-view__opt, .kahf-filter-open) { -webkit-tap-highlight-color: transparent; }
	:is(.kahf-card__link, .kahf-field, .wp-block-button__link, .kahf-filter-open):active { transform: scale(0.98); transition: transform 0.08s ease; }

	/* Dark mode. */
	html[data-theme="dark"] .kahf-tabbar { background: rgba(30, 40, 48, 0.86); box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12); }
	html[data-theme="dark"] .kahf-tabbar__item { color: rgba(255, 255, 255, 0.66); }
	html[data-theme="dark"] .kahf-tabbar__item.is-current { color: #fff; }
	html[data-theme="dark"] .kahf-tabbar__item.is-current svg { background: rgba(255, 255, 255, 0.14); }
	html[data-theme="dark"] :is(.kahf-msheet__sheet, .kahf-search__inner) { background: #1E2830; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
	html[data-theme="dark"] .kahf-sheet__title { color: #fff; }
	html[data-theme="dark"] .kahf-sheet__grab { background-color: rgba(255, 255, 255, 0.28); }
	html[data-theme="dark"] .kahf-sheet__close, html[data-theme="dark"] .kahf-msheet__mode { background: rgba(255, 255, 255, 0.1); color: #fff; }
	html[data-theme="dark"] .kahf-msheet__links a { color: #fff; border-color: rgba(255, 255, 255, 0.12); }
	html[data-theme="dark"] .kahf-msheet__links a svg { color: rgba(255, 255, 255, 0.5); }
	html[data-theme="dark"] .kahf-search__form, html[data-theme="dark"] .kahf-search__form:focus-within { background: rgba(255, 255, 255, 0.08); }
}

@media (max-width: 599.98px) and (prefers-reduced-motion: reduce) {
	.kahf-msheet__sheet, .kahf-search__inner { transform: none !important; transition: opacity 0.2s ease; }
	.kahf-msheet:not(.is-in) .kahf-msheet__sheet, .kahf-search__panel:not(.is-open) .kahf-search__inner { opacity: 0; }
	:is(.kahf-card__link, .kahf-field, .wp-block-button__link, .kahf-filter-open, .kahf-tabbar__item):active { transform: none; }
}
@media (max-width: 599.98px) and (prefers-reduced-transparency: reduce) {
	.kahf-tabbar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
	html[data-theme="dark"] .kahf-tabbar { background: #1E2830; }
}
@media print { .kahf-tabbar, .kahf-msheet { display: none !important; } }

/* =========================================================================
   1.8.37 — Phone polish: header, rhythm, buttons, about page, motion.
   ========================================================================= */
@media (max-width: 599.98px) {
	/* Header: search on the right, logo on the left. */
	.kahf-header__bar { justify-content: flex-start !important; }
	.kahf-header__end { flex: 1 1 auto; justify-content: space-between !important; }
	.kahf-header { padding-block: 0.625rem; }

	/* One vertical rhythm: 32px between sections, 24px under a page title. */
	:root { --kahf-gap-section: 2rem; }
	.kahf-page-head { padding-block: 1rem 1.5rem; }
	.kahf-page-title { font-size: 1.875rem !important; }
	.kahf-page-body { padding-block: 1.5rem 2.5rem; }
	.wp-block-post-content > h2, .kahf-section-head h2, .kahf-page h2 { font-size: 1.5rem; }
	.kahf-lead { font-size: 1.0625rem; line-height: 1.85; }

	/* Buttons: one height, one radius; section actions take the full width. */
	.wp-block-button__link, .kahf-reset, .kahf-cform__submit, .kahf-pform__submit, .kahf-filters .wp-element-button, .kahf-share-cta__btn { min-height: 48px; border-radius: 12px !important; }
	main .wp-block-buttons, .kahf-main .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 0.5rem; }
	main .wp-block-buttons > .wp-block-button, .kahf-main .wp-block-buttons > .wp-block-button { width: 100%; }
	main .wp-block-buttons .wp-block-button__link, .kahf-main .wp-block-buttons .wp-block-button__link { display: flex; width: 100%; box-sizing: border-box; align-items: center; justify-content: center; }
	:is(.kahf-more-card, .kahf-download) .wp-block-buttons { width: 100%; }
	.kahf-more-card { flex-direction: column; align-items: stretch; }
	.kahf-card__media { aspect-ratio: 16 / 9 !important; }
	.kahf-cform__foot { flex-direction: column; align-items: stretch !important; gap: 0.75rem; }
	.kahf-cform__submit, .kahf-pform__submit { width: 100%; }

	/* About: objectives panel and pillars, denser. */
	.kahf-band { padding: 1.25rem 1rem; border-radius: 20px; }
	:is(.kahf-objectives, .kahf-conditions) { gap: 0.5rem !important; }
	:is(.kahf-objectives, .kahf-conditions) li { gap: 0.75rem; padding: 0.75rem 0.875rem; border-radius: 14px; }
	:is(.kahf-objectives, .kahf-conditions) li::before { width: 2.25rem; height: 2.25rem; border-radius: 10px; font-size: 0.9375rem; }
	.kahf-pillars { gap: 0.625rem !important; }
	.kahf-pillar { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 0.75rem; padding: 1rem 1.125rem; border-radius: 16px; }
	.kahf-pillar__num { font-size: 1.5rem !important; }
	.kahf-pillar h3 { margin: 0 !important; font-size: 1.125rem; }
	.kahf-pillar p:last-child { grid-column: 1 / -1; margin-block-start: 0.375rem !important; }
	.kahf-tier { padding: 1.125rem; border-radius: 16px; }

	/* People: two per row, photo above the name. */
	.kahf-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
	.kahf-people > * { margin-block: 0 !important; }
	.kahf-person { grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center; align-content: start; min-height: 0; padding: 1rem 0.625rem; row-gap: 0.25rem; text-align: center; border-radius: 14px; }
	.kahf-person::before { grid-row: 1; grid-column: 1; width: 64px; height: 64px; margin-block-end: 0.5rem; border-radius: 14px; }
	.kahf-person::after { inset-inline-start: auto; left: 50%; top: calc(1rem + 32px); width: 32px; height: 32px; transform: translate(-50%, -50%); }
	.kahf-person > * { grid-column: 1; }
	.kahf-person > .kahf-person__photo { grid-row: 1; width: 64px; height: 64px; margin-block-end: 0.5rem !important; }
	.kahf-person__name { font-size: 0.9375rem; line-height: 1.5; text-wrap: balance; }
	.kahf-person__role { font-size: 0.875rem; }
	.kahf-person--feature { grid-column: 1 / -1; padding: 1.25rem 1rem; }
	.kahf-person--feature::before, .kahf-person--feature > .kahf-person__photo { grid-row: 1; }
	.kahf-person--feature::after { top: calc(1.25rem + 32px); }
	.kahf-person--feature .kahf-person__name { font-size: 1.0625rem; }
	.kahf-person__bio { text-align: start; font-size: 1rem; }

	/* Footer: links in two columns. */
	.kahf-footer { padding-block-start: 2.5rem; }
	.kahf-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
	.kahf-footer__cols { gap: 1.5rem !important; }
}

/* Page changes fade like an app (browsers that support it); the tab bar stays put. */
@view-transition { navigation: auto; }
.kahf-tabbar { view-transition-name: kahf-tabbar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* 1.8.40 — Home entrance motion, opening only and slow: the tagline, then the impact panel.
   html.kahf-intro is set in <head> only when motion is welcome. */
html.kahf-intro .kahf-home :is(.kahf-hero__tagline, .kahf-impact__panel):not(.is-in):not(.is-shown) { opacity: 0; transform: translate3d(0, 24px, 0); }
html.kahf-intro .kahf-home .kahf-hero__tagline:not(.is-in):not(.is-shown) { transform: translate3d(0, 14px, 0) scale(0.97); }
html.kahf-intro .kahf-home .is-in { opacity: 1; transform: none; transition: opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) var(--kahf-d, 0ms), transform 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) var(--kahf-d, 0ms); }
@media (prefers-reduced-motion: reduce) { html.kahf-intro .kahf-home * { opacity: 1 !important; transform: none !important; } }

/* 1.8.48 — Inner page head: the brand motif from the bottom left. */
.kahf-page-head { background-image: url("../images/head-motif.svg"); background-repeat: no-repeat; background-position: left bottom; background-size: auto clamp(88px, 72%, 150px); }
.kahf-project-head.has-photo { background-image: none; }
@media (max-width: 599.98px) { .kahf-page-head { background-size: auto clamp(64px, 60%, 96px); } }
html[data-theme="dark"] .kahf-page-head:not(.has-photo) { background-blend-mode: soft-light; }

/* Partnerships: terms beside the intro, then the application form in its own section. */
.kahf-join__terms > * { margin-inline: 0 !important; }
.kahf-join__terms > h2 { margin-block-start: 0 !important; }
.kahf-join__terms .kahf-conditions { margin-block-start: 1.25rem; }
.kahf-apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); column-gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.kahf-apply > * { margin-inline: 0 !important; }
.kahf-apply > h2, .kahf-apply > p { grid-column: 1; }
.kahf-apply > h2 { margin-block-start: 0 !important; }
.kahf-apply > :not(h2, p) { grid-column: 2; grid-row: 1 / span 3; margin-block-start: 0 !important; }
@media (max-width: 899px) { .kahf-apply { display: block; } .kahf-apply > :not(h2, p) { margin-block-start: 1.25rem !important; } }

/* Contact page: channels, a routing table, the message form and the FAQ. */
.kahf-contact-sec > * { margin-inline: 0 !important; }
.kahf-contact-sec > h2:first-child { margin-block-start: 0 !important; }
.kahf-contact-sec + .kahf-contact-sec { margin-block-start: var(--kahf-gap-section, 4rem) !important; }
.kahf-channels { gap: 1rem !important; margin-block-start: 1.75rem !important; }
.kahf-channel { position: relative; display: flex; flex-direction: column; gap: 0.25rem; min-height: 220px; padding: 1.75rem; padding-block-start: 5.25rem; border-radius: 20px; box-sizing: border-box; overflow: hidden; }
.kahf-channel > * { margin: 0 !important; }
.kahf-channel::before { content: ""; position: absolute; inset-block-start: 1.75rem; inset-inline-start: 1.75rem; width: 48px; height: 48px; border-radius: 14px; background-color: var(--kahf-ch-icon-bg); }
.kahf-channel::after { content: ""; position: absolute; inset-block-start: calc(1.75rem + 12px); inset-inline-start: calc(1.75rem + 12px); width: 24px; height: 24px; background: var(--kahf-ch-ink); -webkit-mask: var(--kahf-ch-icon) center / contain no-repeat; mask: var(--kahf-ch-icon) center / contain no-repeat; }
.kahf-channel h3 { font-size: 1.375rem; color: inherit !important; }
.kahf-channel__sub { font-size: 1rem; line-height: 1.8; opacity: 0.85; }
.kahf-channel__value { margin-block-start: auto !important; padding-block-start: 1rem; font-size: 1.25rem; font-weight: 700; }
.kahf-channel__value a { color: inherit !important; text-decoration: none; border-block-end: 2px solid currentColor; padding-block-end: 2px; }
.kahf-channel__value a:hover { border-block-end-color: transparent; }
.kahf-channel--phone { --kahf-ch-ink: #fff; --kahf-ch-icon-bg: rgba(255, 255, 255, 0.14); --kahf-ch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); background: #003A70; color: #fff; }
.kahf-channel--mail { --kahf-ch-ink: #1E2830; --kahf-ch-icon-bg: rgba(255, 255, 255, 0.35); --kahf-ch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); background: #C29D5F; color: #1E2830; }
.kahf-channel--place { --kahf-ch-ink: #003A70; --kahf-ch-icon-bg: rgba(0, 58, 112, 0.08); --kahf-ch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); background: #EFE7DA; color: #1E2830; }
.kahf-channel--place .kahf-channel__value { font-size: 1.0625rem; }
.kahf-channel--place .kahf-channel__value a { color: #003A70 !important; }

.kahf-route-table { margin-block-start: 1.25rem !important; }
.kahf-route-table table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 58, 112, 0.12); }
.kahf-route-table :is(th, td) { padding: 1rem 1.5rem; border: 0; text-align: start; vertical-align: middle; line-height: 1.8; }
.kahf-route-table thead th { background: #003A70; color: #fff; font-size: 1rem; font-weight: 700; }
.kahf-route-table tbody tr:nth-child(even) td { background: #F7F3EC; }
.kahf-route-table tbody td { border-block-start: 1px solid rgba(0, 58, 112, 0.08); }
.kahf-route-table tbody td:first-child { width: 36%; font-weight: 700; color: #003A70; }
.kahf-route-table td a { font-weight: 600; color: #003A70; text-underline-offset: 5px; }
.kahf-route-table td a:not([href^="mailto"])::after { content: " ←"; }
.kahf-route-table thead { border: 0; }

.kahf-contact-write__cols { gap: clamp(1.5rem, 4vw, 3.5rem) !important; align-items: stretch !important; }
.kahf-contact-write__intro > * { margin-inline: 0 !important; }
.kahf-contact-write__intro > h2 { margin-block-start: 0 !important; }
.kahf-contact-write__intro > h3 { margin-block-start: 2rem !important; font-size: 1.125rem; }
.kahf-contact-write__form { padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 20px; background: #003A70; }
.kahf-social--ink .wp-social-link { background: transparent !important; }
.kahf-social--ink.wp-block-social-links { gap: 0.5rem; margin-block-start: 0.75rem !important; }
.kahf-social--ink .wp-social-link a { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0 !important; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0, 58, 112, 0.18); color: #003A70; transition: background 0.2s ease; }
.kahf-social--ink .wp-social-link a:hover { background: rgba(0, 58, 112, 0.06); }

@media (max-width: 781px) {
	.kahf-channel { min-height: 0; padding: 1.25rem; padding-block-start: 4.5rem; }
	.kahf-channel::before { inset-block-start: 1.25rem; inset-inline-start: 1.25rem; }
	.kahf-channel::after { inset-block-start: calc(1.25rem + 12px); inset-inline-start: calc(1.25rem + 12px); }
	.kahf-route-table :is(th, td) { padding: 0.875rem 1rem; }
	.kahf-route-table tbody td:first-child { width: 42%; }
}
html[data-theme="dark"] .kahf-channel--place { background-color: rgba(255, 255, 255, 0.06); color: #fff; --kahf-ch-ink: #E3CDA4; --kahf-ch-icon-bg: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .kahf-channel--place .kahf-channel__value a { color: #E3CDA4 !important; }
html[data-theme="dark"] .kahf-channel--phone { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
html[data-theme="dark"] .kahf-route-table table { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
html[data-theme="dark"] .kahf-route-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.04); }
html[data-theme="dark"] .kahf-route-table tbody td:first-child, html[data-theme="dark"] .kahf-route-table td a { color: #E3CDA4; }
html[data-theme="dark"] .kahf-social--ink .wp-social-link a { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
.kahf-route-table thead th { text-align: start !important; }
.kahf-social--ink.wp-block-social-links { gap: 0.5rem !important; }

/* 1.8.52 — Contact page boxes: the outline motif from the bottom left. */
.kahf-channel, .kahf-contact-write__form { background-repeat: no-repeat; background-position: left bottom; background-size: auto clamp(110px, 62%, 150px); }
.kahf-channel--phone, .kahf-contact-write__form { background-image: url("../images/box-motif-light.svg"); }
.kahf-channel--mail { background-image: url("../images/box-motif-light.svg"); }
.kahf-channel--place { background-image: url("../images/box-motif.svg"); }
.kahf-contact-write__form { background-size: auto 150px; }
.kahf-contact-write__form .kahf-cform { padding-block-end: 2.5rem; }

/* 1.8.53 — Careers page. */
.kahf-careers-sec > * { margin-inline: 0 !important; }
.kahf-careers-sec > h2:first-child { margin-block-start: 0 !important; }
.kahf-careers-sec + .kahf-careers-sec { margin-block-start: var(--kahf-gap-section, 4rem) !important; }
.kahf-careers-intro__cols { gap: clamp(1.5rem, 4vw, 3.5rem) !important; align-items: center !important; }
.kahf-careers-intro__text > * { margin-inline: 0 !important; }
.kahf-careers-intro__text > h2 { margin-block-start: 0 !important; font-size: clamp(1.75rem, 3vw, 2.375rem); }
.kahf-careers-intro__cta { margin-block-start: 1.75rem !important; gap: 0.75rem; }
.kahf-careers-offer { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 22px; background: #003A70; color: #fff; }
.kahf-careers-offer > h3 { margin: 0 0 1rem !important; font-size: 1.125rem; color: rgba(255, 255, 255, 0.78) !important; font-weight: 600; }
.kahf-careers-offer__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 0.625rem; }
.kahf-careers-offer__list li { margin: 0; }
.kahf-careers-offer__list a { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.875rem 1.125rem; padding-inline-end: 3rem; position: relative; border-radius: 14px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8) !important; font-size: 0.9375rem; text-decoration: none; transition: background 0.2s ease; }
.kahf-careers-offer__list a strong { color: #fff; font-size: 1.0625rem; }
.kahf-careers-offer__list a::after { content: "←"; position: absolute; inset-inline-end: 1.125rem; inset-block-start: 50%; transform: translateY(-50%); color: #C29D5F; font-size: 1.25rem; }
.kahf-careers-offer__list a:hover { background: rgba(255, 255, 255, 0.14); }
.kahf-careers-offer__list a:focus-visible { outline: 2px solid #C29D5F; outline-offset: 2px; }

.kahf-values { gap: 1rem !important; margin-block-start: 1.5rem !important; }
.kahf-value { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 20px; }
.kahf-value > * { margin-inline: 0 !important; }
.kahf-value > h3 { margin-block-start: 0 !important; display: flex; align-items: center; gap: 0.75rem; font-size: 1.375rem; }
.kahf-value > h3::before { content: ""; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--kahf-v-bg) var(--kahf-v-icon) center / 22px no-repeat; }
.kahf-value > p { line-height: 2; }
.kahf-value--equal { background: #EFE7DA; --kahf-v-bg: #fff; --kahf-v-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003A70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.kahf-value--benefits { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 58, 112, 0.14); --kahf-v-bg: #EFE7DA; --kahf-v-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003A70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12v10H4V12M2 7h20v5H2zM12 22V7M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E"); }

.kahf-programs { gap: 1rem !important; margin-block-start: 1.5rem !important; align-items: stretch !important; }
.kahf-program { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 22px; }
.kahf-program > * { margin-inline: 0 !important; }
.kahf-program__kicker { align-self: flex-start; margin: 0 !important; padding: 0.25rem 0.875rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
.kahf-program > h3 { margin-block: 1rem 0.5rem !important; font-size: clamp(1.375rem, 2.4vw, 1.75rem); color: inherit !important; }
.kahf-program > p { line-height: 2; }
.kahf-program > h4 { margin-block: 1.25rem 0.5rem !important; font-size: 1rem; color: inherit !important; opacity: 0.85; }
.kahf-program__conds { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 0.5rem; }
.kahf-program__conds li { position: relative; margin: 0; padding-inline-start: 1.75rem; line-height: 1.8; }
.kahf-program__conds li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.45em; width: 18px; height: 18px; border-radius: 50%; background: var(--kahf-p-check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.kahf-program__cta { margin-block-start: auto !important; padding-block-start: 1.75rem; }
.kahf-program__cta .wp-block-button__link { background: var(--kahf-p-btn) !important; color: var(--kahf-p-btn-ink) !important; }
.kahf-program--tamheer { background: #003A70; color: #fff; --kahf-p-check: #C29D5F; --kahf-p-btn: #fff; --kahf-p-btn-ink: #003A70; }
.kahf-program--tamheer .kahf-program__kicker { background: rgba(255, 255, 255, 0.12); color: #fff; }
.kahf-program--coop { background: #C29D5F; color: #1E2830; --kahf-p-check: #003A70; --kahf-p-btn: #003A70; --kahf-p-btn-ink: #fff; }
.kahf-program--coop .kahf-program__kicker { background: rgba(255, 255, 255, 0.4); color: #1E2830; }

.kahf-jobs-empty { margin-block-start: 1.25rem !important; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 20px; border: 2px dashed rgba(0, 58, 112, 0.2); text-align: center; }
.kahf-jobs-empty > * { margin-inline: auto !important; max-width: 640px; }
.kahf-jobs-empty__title { margin-block-start: 0 !important; font-size: 1.25rem; font-weight: 700; color: #003A70; }
.kahf-jobs-empty .wp-block-buttons { justify-content: center; margin-block-start: 1.25rem !important; }

.kahf-careers-apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); column-gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.kahf-careers-apply > h2, .kahf-careers-apply > p { grid-column: 1; }
.kahf-careers-apply > :not(h2, p) { grid-column: 2; grid-row: 1 / span 3; margin-block-start: 0 !important; }
.kahf-jform__types { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-end: 1.25rem !important; }
@media (max-width: 899px) { .kahf-careers-apply { display: block; } .kahf-careers-apply > :not(h2, p) { margin-block-start: 1.25rem !important; } }
@media (max-width: 781px) { .kahf-careers-intro__cta .wp-block-button { flex: 1 1 100%; } }
html[data-theme="dark"] .kahf-value--equal { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .kahf-value--benefits { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
html[data-theme="dark"] .kahf-careers-offer, html[data-theme="dark"] .kahf-program--tamheer { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
html[data-theme="dark"] .kahf-jobs-empty { border-color: rgba(255, 255, 255, 0.22); }
html[data-theme="dark"] .kahf-jobs-empty__title { color: #E3CDA4; }

/* 1.8.56 — Media centre entry cards: news, identity, reports. */
.kahf-mhub { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.kahf-mhub li { margin: 0; }
.kahf-mhub__card { position: relative; display: flex; flex-direction: column; gap: 0.5rem; height: 100%; min-height: 190px; box-sizing: border-box; padding: 1.75rem; border-radius: 22px; overflow: hidden; text-decoration: none !important; background-repeat: no-repeat; background-position: left bottom; background-size: auto clamp(110px, 58%, 150px); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.kahf-mhub__card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 58, 112, 0.14); }
.kahf-mhub__card:focus-visible { outline: 3px solid #C29D5F; outline-offset: 3px; }
.kahf-mhub__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-block-end: 0.5rem; border-radius: 14px; }
.kahf-mhub__name { font-size: 1.5rem; font-weight: 700; }
.kahf-mhub__text { font-size: 1rem; line-height: 1.8; opacity: 0.88; }
.kahf-mhub__card--news { background-color: #003A70; background-image: url("../images/box-motif-light.svg"); color: #fff; }
.kahf-mhub__card--news .kahf-mhub__icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.kahf-mhub__card--brand { background-color: #C29D5F; background-image: url("../images/box-motif-light.svg"); color: #1E2830; }
.kahf-mhub__card--brand .kahf-mhub__icon { background: rgba(255, 255, 255, 0.4); color: #1E2830; }
.kahf-mhub__card--reports { background-color: #EFE7DA; background-image: url("../images/box-motif.svg"); color: #1E2830; }
.kahf-mhub__card--reports .kahf-mhub__icon { background: #fff; color: #003A70; }
.kahf-mhub-block + .wp-block-heading { margin-block-start: var(--kahf-gap-section, 4rem) !important; }
@media (max-width: 781px) {
	.kahf-mhub { grid-template-columns: 1fr; gap: 0.625rem; }
	/* Phones: one compact row per box (icon beside the name and line). */
	.kahf-mhub__card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.875rem; row-gap: 0.125rem; align-items: center; min-height: 0; padding: 1rem 1.125rem; border-radius: 18px; background-size: auto 90%; }
	.kahf-mhub__icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; border-radius: 12px; }
	.kahf-mhub__name { font-size: 1.125rem; line-height: 1.5; }
	.kahf-mhub__text { font-size: 0.875rem; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) { .kahf-mhub__card { transition: none; } .kahf-mhub__card:hover { transform: none; } }
html[data-theme="dark"] .kahf-mhub__card--news { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
html[data-theme="dark"] .kahf-mhub__card--reports { background-color: rgba(255, 255, 255, 0.06); color: #fff; }

/* ===== Partnerships (1.8.61): steps, grouped terms, the application, the partners ===== */
.kahf-pt > * { margin-inline: 0 !important; }
.kahf-pt > h2 { margin-block-start: 0 !important; }
.kahf-pt + .kahf-pt { margin-block-start: var(--kahf-gap-section, 4rem) !important; }
.kahf-pt > .kahf-lead { max-width: 54rem; }

/* Intro: the invitation beside a navy card with the four steps. */
.kahf-pt-intro__cols { gap: clamp(1.5rem, 4vw, 3.5rem) !important; align-items: center !important; margin: 0 !important; }
.kahf-pt-intro__text > * { margin-inline: 0 !important; }
.kahf-pt-intro__text > h2 { margin-block-start: 0 !important; }
.kahf-pt-steps { position: relative; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 24px; color: #fff; background: #003A70 url("../images/box-motif-light.svg") no-repeat left bottom / auto 150px; box-shadow: 0 18px 40px rgba(0, 31, 61, 0.18); }
.kahf-pt-steps > * { margin-inline: 0 !important; }
.kahf-pt-steps > h3 { margin: 0 0 1.25rem !important; color: #fff !important; font-size: 1.375rem; }
.kahf-pt-steps__list { counter-reset: kahf-step; display: grid; gap: 1rem; margin: 0 0 1.5rem !important; padding: 0 !important; list-style: none; }
.kahf-pt-steps__list li { counter-increment: kahf-step; position: relative; margin: 0; padding-inline-start: 3.25rem; min-height: 2.25rem; font-size: 1rem; line-height: 1.8; color: rgba(255, 255, 255, 0.86) !important; }
.kahf-pt-steps__list li::before { content: counter(kahf-step); position: absolute; inset-inline-start: 0; inset-block-start: 0.1rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: #C29D5F; color: #1E2830; font-weight: 700; font-variant-numeric: tabular-nums; }
.kahf-pt-steps__list li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: calc(1.125rem - 1px); inset-block: 2.6rem -0.9rem; width: 2px; background: rgba(255, 255, 255, 0.18); }
.kahf-pt-steps__list strong { display: block; color: #fff !important; font-size: 1.0625rem; }
.kahf-pt-steps__list a { color: #E3CDA4; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.kahf-pt-steps .wp-block-buttons { margin: 0 !important; }
.kahf-pt-steps .wp-block-button__link { background: #C29D5F !important; color: #1E2830 !important; }
.kahf-pt-steps .wp-block-button__link:hover { background: #CEB17F !important; }

/* Terms: three groups, each a tinted card with its icon and ticks. */
.kahf-pt-terms__cols { gap: 1rem !important; align-items: stretch !important; margin: 1.5rem 0 0 !important; }
.kahf-pt-term { --pt-ink: #003A70; --pt-bg: #EEF2F8; display: flex; flex-direction: column; padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: 22px; background: var(--pt-bg); }
.kahf-pt-term > * { margin-inline: 0 !important; }
.kahf-pt-term--project { --pt-ink: #7A5F33; --pt-bg: #F6EFE3; }
.kahf-pt-term--finance { --pt-ink: #2B6470; --pt-bg: #E7F1F2; }
.kahf-pt-term > h3 { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem !important; color: var(--pt-ink); font-size: 1.25rem; }
.kahf-pt-term > h3::before { content: ""; flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04); }
.kahf-pt-term > h3::after { content: ""; position: absolute; width: 24px; height: 24px; margin-inline-start: 11px; background: var(--pt-ink); -webkit-mask: var(--pt-icon) center / contain no-repeat; mask: var(--pt-icon) center / contain no-repeat; }
.kahf-pt-term > h3 { position: relative; }
.kahf-pt-term--org { --pt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V6l8-3 8 3v15'/%3E%3Cpath d='M9 21v-5h6v5M8 9h.01M12 9h.01M16 9h.01M8 12.5h.01M12 12.5h.01M16 12.5h.01M2 21h20'/%3E%3C/svg%3E"); }
.kahf-pt-term--project { --pt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E"); }
.kahf-pt-term--finance { --pt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M6 16v-4M10 16V8M14 16v-6M18 16V5'/%3E%3C/svg%3E"); }
.kahf-pt-checks { display: grid; gap: 0.75rem; margin: 0 !important; padding: 0 !important; list-style: none; }
.kahf-pt-checks li { position: relative; margin: 0; padding-inline-start: 2rem; font-size: 1rem; line-height: 1.85; color: #1E2830; }
.kahf-pt-checks li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.3rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--pt-ink, #003A70); }
.kahf-pt-checks li::after { content: ""; position: absolute; inset-inline-start: 0.25rem; inset-block-start: 0.55rem; width: 0.875rem; height: 0.875rem; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Application: a warm panel; what to prepare beside the form. */
.kahf-pt-apply { padding: clamp(1.25rem, 4vw, 3rem); border-radius: 28px; background: #F6EFE3; }
.kahf-pt-apply__cols { gap: clamp(1.5rem, 4vw, 3.5rem) !important; align-items: flex-start !important; margin: 0 !important; }
.kahf-pt-apply__intro > * { margin-inline: 0 !important; }
.kahf-pt-apply__intro > h2 { margin-block-start: 0 !important; }
.kahf-pt-apply__intro > h3 { margin-block: 2rem 1rem !important; font-size: 1.125rem; color: #7A5F33; }
.kahf-pt-apply__intro .kahf-pt-checks { --pt-ink: #C29D5F; }
.kahf-pt-apply__intro .kahf-pt-checks li { font-size: 0.9375rem; }
@media (min-width: 782px) { .kahf-pt-apply__intro { position: sticky; top: calc(var(--kahf-header-h, 72px) + 1.5rem); } }

/* Partners: heading, one line, the logo wall. */
.kahf-pt-partners .kahf-entities-block, .kahf-pt-partners > :last-child { margin-block-start: 1.75rem !important; }

html[data-theme="dark"] .kahf-pt-term { --pt-bg: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
html[data-theme="dark"] .kahf-pt-term > h3 { color: #fff; }
html[data-theme="dark"] .kahf-pt-checks li { color: rgba(255, 255, 255, 0.9); }
html[data-theme="dark"] .kahf-pt-apply { background: rgba(194, 157, 95, 0.12); }
html[data-theme="dark"] .kahf-pt-apply__intro > h3 { color: #E3CDA4; }

@media (max-width: 781px) {
	.kahf-pt-intro__cols, .kahf-pt-apply__cols { gap: 1.25rem !important; }
	.kahf-pt-steps { border-radius: 20px; background-size: auto 110px; }
	.kahf-pt-steps > h3 { font-size: 1.25rem; margin-block-end: 1rem !important; }
	.kahf-pt-terms__cols { gap: 0.75rem !important; margin-block-start: 1.25rem !important; }
	.kahf-pt-term { border-radius: 18px; }
	.kahf-pt-term > h3 { font-size: 1.125rem; }
	.kahf-pt-term > h3::before { width: 40px; height: 40px; border-radius: 12px; }
	.kahf-pt-term > h3::after { width: 22px; height: 22px; margin-inline-start: 9px; }
	.kahf-pt-checks li { font-size: 0.9375rem; }
	.kahf-pt-apply { padding: 1.25rem 0.75rem 0.75rem; border-radius: 20px; }
	.kahf-pt-apply__intro { padding-inline: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) { .kahf-pt * { transition: none !important; } }

/* ===== About (1.8.62): an institutional layout ===== */
/* Intro: one statement, then the identity strip. */
.kahf-about-intro > * { max-width: 56rem; }
.kahf-about-intro > * { margin-inline: 0 !important; }
.kahf-about-intro .kahf-lead-xl { position: relative; padding-block-start: 1.5rem; font-size: clamp(1.375rem, 2.3vw, 1.875rem) !important; font-weight: 700; line-height: 1.65; }
.kahf-about-intro .kahf-lead-xl::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 56px; height: 4px; border-radius: 4px; background: #C29D5F; }
.kahf-about-intro p:not(.kahf-lead-xl) { font-size: 1.125rem; line-height: 2; color: var(--wp--preset--color--charcoal); }
.kahf-factsheet { display: flex; flex-direction: column; margin: 0 !important; padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1.5rem, 3vw, 2rem); border-radius: 24px; background: #003A70; color: #fff; box-shadow: 0 18px 40px rgba(0, 31, 61, 0.16); }
.kahf-about-split { gap: clamp(1.5rem, 4vw, 3.5rem) !important; align-items: center !important; }
.kahf-fact { position: relative; padding: 1.25rem 0; margin: 0 !important; }
.kahf-fact + .kahf-fact { border-block-start: 1px solid rgba(255, 255, 255, 0.14); }
.kahf-fact > * { margin: 0 !important; }
.kahf-fact .kahf-fact__label { display: flex; align-items: center; gap: 0.5rem; padding: 0 !important; border: 0 !important; color: #E3CDA4; font-size: 0.875rem; }
.kahf-fact .kahf-fact__label::before { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--fact-icon) center / contain no-repeat; mask: var(--fact-icon) center / contain no-repeat; }
.kahf-fact:nth-child(1) { --fact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.kahf-fact:nth-child(2) { --fact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 7v2h16V7z'/%3E%3Cpath d='M6 9v8M10 9v8M14 9v8M18 9v8M3 20h18'/%3E%3C/svg%3E"); }
.kahf-fact:nth-child(3) { --fact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.kahf-fact:nth-child(4) { --fact-icon-unused: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.kahf-fact .kahf-fact__value { margin-block-start: 0.625rem !important; font-size: 1.0625rem; font-weight: 600; line-height: 1.75; }

/* Objectives: a numbered register (01–13) on the pale band. */
.kahf-band--objectives .kahf-objectives { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem) !important; margin-block-start: 1.5rem !important; border-block-start: 1px solid rgba(0, 58, 112, 0.16); }
.kahf-band--objectives .kahf-objectives li { align-items: baseline; gap: 1.25rem; padding: 1.125rem 0; border-radius: 0; background: transparent; box-shadow: none; border-block-end: 1px solid rgba(0, 58, 112, 0.16); font-size: 1.0625rem; line-height: 1.85; color: #1E2830; }
.kahf-band--objectives .kahf-objectives li::before { content: counter(kahf-objective, decimal-leading-zero); width: auto; height: auto; min-width: 2.25rem; border-radius: 0; background: none; color: #A07A3F; font-size: 1.25rem; font-weight: 700; justify-content: flex-start; }
.kahf-band--objectives .kahf-objectives li:hover { transform: none; box-shadow: none; }

/* Pillars: numbered tiles with a gold rule. */

/* Governance: three levels as a hierarchy, from supervision to execution. */
.kahf-tiers { position: relative; }
.kahf-tier { position: relative; overflow: visible !important; }
.kahf-tier:nth-child(1) { background: #003A70; box-shadow: none; }
.kahf-tier:nth-child(1) :is(h3, p) { color: #fff !important; }
.kahf-tier:nth-child(1) .kahf-tier__role { color: #E3CDA4 !important; }
.kahf-tier:nth-child(2) { background: #EEF3F8; box-shadow: none; }
.kahf-tier__role { display: inline-flex; align-items: center; gap: 0.5rem; }
.kahf-tier__role::before { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 8px; background: rgba(194, 157, 95, 0.2); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.kahf-tier:nth-child(1) .kahf-tier__role::before { content: "1"; }
.kahf-tier:nth-child(2) .kahf-tier__role::before { content: "2"; }
.kahf-tier:nth-child(3) .kahf-tier__role::before { content: "3"; }
@media (min-width: 782px) {
	.kahf-tier:not(:last-child)::after { content: ""; position: absolute; z-index: 2; inset-block-start: 50%; inset-inline-end: calc(-0.5rem - 14px); width: 28px; height: 28px; transform: translateY(-50%); border-radius: 50%; background: #C29D5F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2830' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 6-6 6 6 6'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 0 0 4px #fff; }
	:where([dir="ltr"]) .kahf-tier:not(:last-child)::after { transform: translateY(-50%) scaleX(-1); }
}

/* Board: one even grid of portrait cards (3 × 3), no member set apart; photos drop in when added. */
.kahf-people > * { margin: 0 !important; }
@media (min-width: 782px) { .kahf-people { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch !important; } }

html[data-theme="dark"] .kahf-factsheet { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .kahf-band--objectives .kahf-objectives li { background: transparent; color: rgba(255, 255, 255, 0.9); box-shadow: none; border-color: rgba(255, 255, 255, 0.16); }
html[data-theme="dark"] .kahf-band--objectives .kahf-objectives { border-color: rgba(255, 255, 255, 0.16); }
html[data-theme="dark"] .kahf-band--objectives .kahf-objectives li::before { background: none; color: #E3CDA4; }
html[data-theme="dark"] .kahf-tier:nth-child(2) { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .kahf-tier:not(:last-child)::after { box-shadow: 0 0 0 4px #001F3D; }

@media (max-width: 781px) {
	.kahf-about-intro .kahf-lead-xl { font-size: 1.25rem !important; }
	.kahf-about-intro p:not(.kahf-lead-xl) { font-size: 1rem; line-height: 1.95; }
	.kahf-fact { padding: 1rem 1.125rem; }
	.kahf-factsheet { padding: 0.25rem 1.25rem; border-radius: 20px; }
	.kahf-fact { padding: 1rem 0; }
	.kahf-fact .kahf-fact__value { font-size: 1rem; }
	.kahf-fact .kahf-fact__value { font-size: 0.9375rem; }
	.kahf-band--objectives .kahf-objectives { grid-template-columns: 1fr; }
	.kahf-band--objectives .kahf-objectives li { gap: 0.875rem; padding: 0.875rem 0; font-size: 0.9375rem; }
	.kahf-band--objectives .kahf-objectives li::before { min-width: 1.75rem; font-size: 1rem; }
	.kahf-tier:not(:last-child)::after { content: ""; position: absolute; z-index: 2; inset-inline-start: 50%; inset-block-end: calc(-0.5rem - 12px); width: 24px; height: 24px; transform: translateX(50%); border-radius: 50%; background: #C29D5F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2830' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10 6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 0 0 4px #fff; }
	/* An odd last card keeps the same size, centred under the pair above. */
	.kahf-people > .kahf-person:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.25rem); box-sizing: border-box; }
}

/* ===== Strategic pillars (1.8.65): one warm panel in four columns, each with its icon and a faint number ===== */
.kahf-pillars { gap: 0 !important; padding: clamp(0.5rem, 1.5vw, 1rem); border-radius: 28px; background: #F6EFE3; }
.kahf-pillar { position: relative; display: flex; flex-direction: column; padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 2.2vw, 1.75rem); border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.kahf-pillar::before { content: ""; position: static; display: block; order: -2; width: 52px; height: 52px; margin-block-end: 1.25rem; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(122, 95, 51, 0.12); }
.kahf-pillar::after { content: ""; position: absolute; inset-block-start: calc(clamp(1.25rem, 2.5vw, 2rem) + 14px); inset-inline-start: calc(clamp(1.25rem, 2.2vw, 1.75rem) + 14px); width: 24px; height: 24px; background: #003A70; -webkit-mask: var(--pillar-icon) center / contain no-repeat; mask: var(--pillar-icon) center / contain no-repeat; }
.kahf-pillar:nth-child(1) { --pillar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='3.2'/%3E%3Cpath d='M5.5 20.5v-1.2A5.3 5.3 0 0 1 10.8 14h2.4a5.3 5.3 0 0 1 5.3 5.3v1.2'/%3E%3Cpath d='M12 11.5v-1'/%3E%3Cpath d='m17.5 4.5 2-2m0 0v2.3m0-2.3h-2.3'/%3E%3C/svg%3E"); }
.kahf-pillar:nth-child(2) { --pillar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.5h17'/%3E%3Cpath d='M6 16.5v-3M10.5 16.5v-6M15 16.5v-4.5M19.5 16.5v-9'/%3E%3Cpath d='m4.5 10 5-5 4 3.5 6-5.5'/%3E%3C/svg%3E"); }
.kahf-pillar:nth-child(3) { --pillar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3.5 7.5h17z'/%3E%3Cpath d='M5.5 10v7.5M9.8 10v7.5M14.2 10v7.5M18.5 10v7.5M3.5 20.5h17'/%3E%3C/svg%3E"); }
.kahf-pillar:nth-child(4) { --pillar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3Crect x='8.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.kahf-pillar + .kahf-pillar { border-inline-start: 1px solid rgba(160, 122, 63, 0.25); }
.kahf-pillar__num { position: absolute; inset-block-start: clamp(1rem, 2vw, 1.5rem); inset-inline-end: clamp(1.25rem, 2.2vw, 1.75rem); display: block !important; width: auto; height: auto; border-radius: 0; background: none; color: #7A5F33 !important; font-size: 2.5rem !important; font-weight: 700; line-height: 1; }
.kahf-pillar h3 { margin: 0 0 0.625rem !important; font-size: 1.1875rem; line-height: 1.6; color: #003A70; }
.kahf-pillar p:last-child { font-size: 0.9375rem; line-height: 1.9; color: #4A5560; }
@media (min-width: 782px) and (max-width: 1099px) {
	.kahf-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.kahf-pillar:nth-child(3) { border-inline-start: 0; }
	.kahf-pillar:nth-child(n+3) { border-block-start: 1px solid rgba(160, 122, 63, 0.25); }
}
@media (max-width: 781px) {
	.kahf-pillars { padding: 0.25rem 0.5rem; border-radius: 20px; }
	.kahf-pillar { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 0.875rem; align-items: start; padding: 1.125rem 0.75rem; }
	.kahf-pillar + .kahf-pillar { border-inline-start: 0; border-block-start: 1px solid rgba(160, 122, 63, 0.25); }
	.kahf-pillar::before { grid-row: 1 / span 2; grid-column: 1; width: 44px; height: 44px; margin: 0; border-radius: 12px; }
	.kahf-pillar::after { inset-block-start: calc(1.125rem + 11px); inset-inline-start: calc(0.75rem + 11px); width: 22px; height: 22px; }
	.kahf-pillar h3 { grid-column: 2; margin: 0 0 0.25rem !important; font-size: 1.0625rem; padding-inline-end: 2.5rem; }
	.kahf-pillar p:last-child { grid-column: 2 !important; margin: 0 !important; font-size: 0.9375rem; }
	.kahf-pillar__num { inset-block-start: 1rem; inset-inline-end: 0.75rem; font-size: 2rem !important; }
}
html[data-theme="dark"] .kahf-pillars { background: rgba(194, 157, 95, 0.1); }
html[data-theme="dark"] .kahf-pillar { background: transparent !important; box-shadow: none !important; }
html[data-theme="dark"] .kahf-pillar::before { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
html[data-theme="dark"] .kahf-pillar::after { background: #E3CDA4; }
html[data-theme="dark"] .kahf-pillar h3 { color: #fff; }
html[data-theme="dark"] .kahf-pillar p:last-child { color: rgba(255, 255, 255, 0.82); }
html[data-theme="dark"] .kahf-pillar__num { color: #E3CDA4 !important; }

/* ===== Motion (1.8.66): GSAP, assets/js/kahf-motion.js =====
   Waiting states exist only under html.js-motion (set in <head> when motion is welcome;
   removed after 3 s if the script did not run). Without JS everything is visible. */
.js-motion .kahf-reveal:not(.is-motion-done),
.js-motion .kahf-stagger > :not(.is-motion-done),
.js-motion #kahf-explorer .kahf-cards > :not(.is-motion-done) { opacity: 0; }
.js-motion .kahf-count:not(.is-count-armed):not(.is-counted) .kahf-count__num { opacity: 0; }
.kahf-count__num { display: inline-block; font-variant-numeric: tabular-nums; }
.kahf-count bdi { unicode-bidi: isolate; }
@media (prefers-reduced-motion: reduce) {
	.js-motion :is(.kahf-reveal, .kahf-stagger > *, #kahf-explorer .kahf-cards > *, .kahf-count__num) { opacity: 1 !important; transform: none !important; }
}

/* 1.8.74 — Vision and mission boxes: the outline motif from the bottom left (light on navy, blue-grey on the warm tint). */
.kahf-vm__card { background-repeat: no-repeat !important; background-position: left bottom !important; background-size: auto clamp(110px, 62%, 150px) !important; }
.kahf-vm__card--vision, html[data-theme="dark"] .kahf-vm__card--vision { background-image: url("../images/box-motif-light.svg") !important; }
.kahf-vm__card--mission { background-image: url("../images/box-motif.svg") !important; }
html[data-theme="dark"] .kahf-vm__card--mission { background-image: url("../images/box-motif-light.svg") !important; }

/* ===== Dark mode (1.8.75) ===== */
html[data-theme="dark"] .kahf-about-intro p:not(.kahf-lead-xl) { color: rgba(255, 255, 255, 0.85); }
html[data-theme="dark"] :is(.kahf-vm__card--mission, .kahf-legacy, .kahf-pillars, .kahf-pt-apply) { background-color: rgba(194, 157, 95, 0.14); box-shadow: inset 0 0 0 1px rgba(194, 157, 95, 0.32); }
html[data-theme="dark"] .kahf-vm__card--mission, html[data-theme="dark"] .kahf-vm__card--mission .kahf-vm__text { color: #fff; }
html[data-theme="dark"] .kahf-milestones__btn[aria-pressed="true"] { background: rgba(194, 157, 95, 0.2); }
html[data-theme="dark"] .kahf-mhub__card--brand, html[data-theme="dark"] .kahf-mhub__card--brand :is(.kahf-mhub__name, .kahf-mhub__text) { color: #1E2830; }
html[data-theme="dark"] .kahf-pt-steps .wp-block-buttons .wp-block-button .wp-block-button__link { background-color: #C29D5F !important; color: #1E2830 !important; }

/* ===== About (1.8.76): objectives and pillars as report sections =====
   Title column (gold rule, heading, one line, a large figure) beside the content; no boxes, hairlines only. */
.kahf-ar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.25fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-block-start: clamp(3rem, 6vw, 5rem) !important; padding-block-start: clamp(2.25rem, 4vw, 3rem); border-block-start: 1px solid rgba(0, 58, 112, 0.14); }
.kahf-ar > * { margin: 0 !important; }
.kahf-ar__head > * { margin-inline: 0 !important; }
.kahf-ar__head > h2 { position: relative; margin: 0 !important; padding-block-start: 1.25rem; }
.kahf-ar__head > h2::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 48px; height: 3px; border-radius: 3px; background: #C29D5F; }
.kahf-ar__head > .kahf-lead { margin: 0.875rem 0 0 !important; max-width: 26rem; font-size: 1.0625rem !important; line-height: 1.9; color: #4A5560; }
.kahf-ar__stat { display: flex; align-items: baseline; gap: 0.625rem; margin: 2rem 0 0 !important; color: #7A5F33; font-size: 1.0625rem; font-weight: 600; }
.kahf-ar__stat strong { font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 1100px) { .kahf-ar__head { position: sticky; top: calc(var(--kahf-header-h, 72px) + 2rem); } }

/* Objectives: a numbered register in two columns. */
.kahf-ar .kahf-objectives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem) !important; margin: 0 !important; border-block-start: 1px solid rgba(0, 58, 112, 0.14); }
.kahf-ar .kahf-objectives li { display: flex; align-items: baseline; gap: 1rem; padding: 1.125rem 0; border-radius: 0; background: none; box-shadow: none; border-block-end: 1px solid rgba(0, 58, 112, 0.14); font-size: 1.0625rem; line-height: 1.85; color: #1E2830; transform: none !important; }
.kahf-ar .kahf-objectives li::before { content: counter(kahf-objective, decimal-leading-zero); width: auto; height: auto; min-width: 1.75rem; border-radius: 0; background: none; color: #7A5F33; font-size: 0.9375rem; font-weight: 700; justify-content: flex-start; }
.kahf-ar .kahf-objectives li:hover { box-shadow: none; }

/* Pillars: four numbered entries in two columns, divided by hairlines. */
.kahf-ar--pillars .kahf-pillars { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0 clamp(1.5rem, 3vw, 3rem) !important; padding: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; }
.kahf-ar--pillars .kahf-pillar { display: block; padding: 1.75rem 0 2rem; border: 0 !important; border-block-start: 1px solid rgba(0, 58, 112, 0.14) !important; background: none; }
.kahf-ar--pillars .kahf-pillar::before, .kahf-ar--pillars .kahf-pillar::after { content: none !important; display: none !important; }
.kahf-ar--pillars .kahf-pillar__num { position: static !important; display: block !important; margin: 0 0 1rem !important; color: #7A5F33 !important; font-size: 2.5rem !important; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.kahf-ar--pillars .kahf-pillar h3 { margin: 0 0 0.5rem !important; padding: 0 !important; font-size: 1.25rem; line-height: 1.6; color: #003A70; }
.kahf-ar--pillars .kahf-pillar p:last-child { margin: 0 !important; font-size: 1rem; line-height: 1.9; color: #4A5560; }

@media (max-width: 1099px) { .kahf-ar .kahf-objectives { grid-template-columns: 1fr; } }
@media (max-width: 781px) {
	.kahf-ar { grid-template-columns: 1fr; row-gap: 1.75rem; }
	.kahf-ar__stat { margin-block-start: 1.25rem !important; }
	.kahf-ar__stat strong { font-size: 3.25rem; }
	.kahf-ar .kahf-objectives li { gap: 0.75rem; padding: 0.875rem 0; font-size: 1rem; }
	.kahf-ar--pillars .kahf-pillars { grid-template-columns: 1fr !important; }
	.kahf-ar--pillars .kahf-pillar { display: block !important; padding: 1.25rem 0 1.5rem; }
	.kahf-ar--pillars .kahf-pillar__num { font-size: 2rem !important; margin-block-end: 0.75rem !important; }
	.kahf-ar--pillars .kahf-pillar h3 { font-size: 1.125rem; padding: 0 !important; }
}

html[data-theme="dark"] .kahf-ar, html[data-theme="dark"] .kahf-ar .kahf-objectives, html[data-theme="dark"] .kahf-ar .kahf-objectives li, html[data-theme="dark"] .kahf-ar--pillars .kahf-pillar { border-color: rgba(255, 255, 255, 0.16) !important; }
html[data-theme="dark"] .kahf-ar .kahf-objectives li { background: none; box-shadow: none; color: rgba(255, 255, 255, 0.9); }
html[data-theme="dark"] :is(.kahf-ar__stat, .kahf-ar .kahf-objectives li::before, .kahf-ar--pillars .kahf-pillar__num) { color: #E3CDA4 !important; }
html[data-theme="dark"] .kahf-ar__head > .kahf-lead, html[data-theme="dark"] .kahf-ar--pillars .kahf-pillar p:last-child { color: rgba(255, 255, 255, 0.82); }
html[data-theme="dark"] .kahf-ar--pillars .kahf-pillar h3 { color: #fff; }
@media (min-width: 1100px) { .kahf-ar .kahf-objectives { display: block; columns: 2; column-gap: clamp(1.5rem, 3vw, 3rem); border-block-start: 0; } .kahf-ar .kahf-objectives li { break-inside: avoid; border-block-start: 1px solid rgba(0, 58, 112, 0.14); border-block-end: 0; } .kahf-ar .kahf-objectives li:nth-child(7), .kahf-ar .kahf-objectives li:last-child { border-block-end: 1px solid rgba(0, 58, 112, 0.14); } html[data-theme="dark"] .kahf-ar .kahf-objectives li { border-color: rgba(255, 255, 255, 0.16) !important; } }
html[data-theme="dark"] .kahf-ar .kahf-objectives li::before { background: none !important; }
html[data-theme="dark"] .kahf-ar--pillars .kahf-pillars { background: none !important; box-shadow: none !important; }
html[data-theme="dark"] .kahf-ar--pillars .kahf-pillar { background: none !important; box-shadow: none !important; border: 0 !important; border-block-start: 1px solid rgba(255, 255, 255, 0.16) !important; border-radius: 0 !important; padding-inline: 0 !important; }

/* ===== Inner page head (1.8.77): the beige head with the gold motif stays as in light mode ===== */
html[data-theme="dark"] .kahf-page-head:not(.has-photo) { background-color: #E2DACF !important; background-blend-mode: normal; color: #1E2830; }
html[data-theme="dark"] .kahf-page-head:not(.has-photo) :is(h1, h2, .kahf-page-title) { color: #003A70 !important; }
html[data-theme="dark"] .kahf-page-head:not(.has-photo) :is(p, .kahf-lead) { color: #1E2830 !important; }
html[data-theme="dark"] .kahf-page-head:not(.has-photo) :is(.kahf-crumbs, .kahf-breadcrumbs, .kahf-breadcrumbs ol, .kahf-breadcrumbs li) { color: rgba(30, 40, 48, 0.78) !important; }
html[data-theme="dark"] .kahf-page-head:not(.has-photo) .kahf-breadcrumbs a { color: #003A70 !important; }
html[data-theme="dark"] .kahf-page-head:not(.has-photo) .kahf-breadcrumbs [aria-current] { color: #1E2830 !important; }

/* ===== Report sections, shared pieces and the procurement page (1.8.82) ===== */
.kahf-ar--first { border-block-start: 0 !important; padding-block-start: 0 !important; margin-block-start: clamp(2rem, 4vw, 3rem) !important; }
.kahf-ar .kahf-ar__body > * { margin-block: 0; }
.kahf-ar__head > h3 { margin: 1.75rem 0 0.5rem !important; font-size: 1.0625rem; color: #003A70; }
.kahf-ready { margin: 0 !important; padding: 0 !important; list-style: none; }
.kahf-ready > li { position: relative; margin: 0 !important; padding-block: 0.375rem; padding-inline-start: 1.5rem; font-size: 0.9375rem; line-height: 1.8; color: #4A5560; }
.kahf-ready > li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: #C29D5F; }
.kahf-mailnote { margin: 1.5rem 0 0 !important; font-size: 0.9375rem; color: #4A5560; }
.kahf-mailnote a { color: #003A70; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.kahf-pr-lead { max-width: 46rem; margin-block: clamp(2rem, 4vw, 3rem) 0 !important; }
.kahf-pr-empty { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; padding: 1.25rem 1.5rem; border-radius: 14px; background: #F6EFE3; box-shadow: inset 0 0 0 1px rgba(194, 157, 95, 0.35); }
.kahf-pr-empty > * { margin: 0 !important; }
.kahf-pr-empty .kahf-pr-empty__title { color: #003A70; font-size: 1.125rem; font-weight: 600; line-height: 1.6; }
.kahf-pr-empty > p:not([class]) { color: #4A5560; font-size: 0.9375rem; line-height: 1.8; }
.kahf-pr-tenders { align-items: center; }
html[data-theme="dark"] .kahf-ar__head > h3 { color: #fff; }
html[data-theme="dark"] :is(.kahf-ready > li, .kahf-mailnote) { color: rgba(255, 255, 255, 0.82); }
html[data-theme="dark"] .kahf-mailnote a { color: #E3CDA4; }
html[data-theme="dark"] .kahf-pr-empty { background: rgba(194, 157, 95, 0.14); box-shadow: inset 0 0 0 1px rgba(194, 157, 95, 0.4); }
html[data-theme="dark"] .kahf-pr-empty .kahf-pr-empty__title { color: #fff; }
html[data-theme="dark"] .kahf-pr-empty > p:not([class]) { color: rgba(255, 255, 255, 0.82); }

/* ===== Site map (1.8.81): four short numbered groups ===== */
.kahf-sitemap-lead { max-width: 46rem; margin-block: clamp(2rem, 4vw, 3rem) 0 !important; }
.kahf-sitemap { margin-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem) !important; }
.kahf-sitemap__groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.kahf-sitemap__group { padding-block-start: 1.25rem; border-block-start: 1px solid rgba(0, 58, 112, 0.14); }
.kahf-sitemap__title { display: flex; align-items: baseline; gap: 0.75rem; margin: 0 0 0.75rem !important; color: #003A70; font-size: 1.1875rem; line-height: 1.5; }
.kahf-sitemap__num { color: #7A5F33; font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kahf-sitemap__list { margin: 0; padding: 0; list-style: none; }
.kahf-sitemap__list li { margin: 0; padding-block: 0.375rem; font-size: 1rem; line-height: 1.7; }
.kahf-sitemap__list a { color: #1E2830; text-decoration: none; transition: color var(--kahf-t) var(--kahf-e); }
.kahf-sitemap__list a:hover { color: #003A70; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(194, 157, 95, 0.8); }
@media (max-width: 1023px) { .kahf-sitemap__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.kahf-sitemap__groups { grid-template-columns: 1fr; gap: 1.5rem; }
	.kahf-sitemap__list li { display: flex; align-items: center; min-height: 44px; padding-block: 0; }
}
html[data-theme="dark"] .kahf-sitemap__group { border-color: rgba(255, 255, 255, 0.16); }
html[data-theme="dark"] .kahf-sitemap__title, html[data-theme="dark"] .kahf-sitemap__list a:hover { color: #fff; }
html[data-theme="dark"] .kahf-sitemap__num { color: #E3CDA4; }
html[data-theme="dark"] .kahf-sitemap__list a { color: rgba(255, 255, 255, 0.9); }
