/*
Theme Name: Finjal Alshebani Charitable Foundation
Theme URI:
Author:
Author URI:
Description: Theme for Finjal Alshebani Charitable Foundation (مؤسسة فنجال الشيباني الأهلية).
Version: 2.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: donors-wp-theme
Domain Path: /languages
Requires at least: 6.6
Requires PHP: 7.4
*/

/* ==========================================================================
   Design tokens — these are the fallback values. The live values are emitted
   inline in wp_head() by dwt_output_design_css() (inc/design-settings.php),
   derived from the colors/fonts chosen in "إعدادات التصميم".
   ========================================================================== */
:root {
	--color-primary: #0f6b4b;
	--color-primary-dark: #0b4d36;
	--color-primary-darker: #083a28;
	--color-primary-bright: #15855d;
	--color-primary-light: #eaf3ef;
	--color-gold: #d4af37;
	--color-gold-dark: #b4952f;
	--color-gold-soft: #f6ebc8;
	--color-text: #14201c;
	--color-text-muted: #5d6d66;
	--color-line: #e4eae7;
	--color-canvas: #f7f9f8;
	--color-bg: #ffffff;

	--font-display: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
	--font-body: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
	/* legacy alias */
	--font-base: var(--font-body);

	--container: 1240px;
	--gutter: 40px;
	--radius-sm: 9px;
	--radius: 15px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(8, 58, 40, .04), 0 8px 24px rgba(8, 58, 40, .06);
	--shadow-lg: 0 2px 4px rgba(8, 58, 40, .04), 0 18px 48px rgba(8, 58, 40, .10);
}

/* Diamond lattice motif, taken from the foundation logo. */
.dwt-lattice {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-size: 48px 48px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 2 L46 24 L24 46 L2 24 Z' fill='none' stroke='%23ffffff' stroke-width='.9'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	line-height: 1.75;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color .2s ease;
}

a:hover {
	color: var(--color-gold-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--color-primary-darker);
	line-height: 1.28;
	letter-spacing: -.01em;
	margin: 0 0 .6em;
}

p {
	margin: 0 0 1.1em;
}

/* Latin-only strings (emails, phones, hex, versions) keep LTR order. */
.dwt-ltr {
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
}

/* Available to screen readers, hidden visually. */
.dwt-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	white-space: nowrap;
	clip-path: inset(50%);
}

/* Skip link — off-screen until it receives keyboard focus. */
.dwt-skip-link {
	position: absolute;
	top: 10px;
	left: 50%;
	z-index: 999;
	transform: translateX(-50%) translateY(-250%);
	background: var(--color-primary);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	padding: 12px 24px;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	transition: transform .2s ease;
}

.dwt-skip-link:focus {
	transform: translateX(-50%) translateY(0);
	color: #fff;
	outline: 3px solid var(--color-gold);
	outline-offset: 2px;
}

/* The skip target is programmatically focusable; suppress the focus ring on
   the whole main region while keeping it for real interactive elements. */
#site-content:focus {
	outline: none;
}

/* Visible keyboard focus everywhere else. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
	outline: 3px solid var(--color-gold);
	outline-offset: 2px;
	border-radius: 4px;
}

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Inner pages get a constrained, padded content area; the front page lays
   out its own full-bleed bands. */
#site-content.is-inner {
	max-width: var(--container);
	margin-inline: auto;
	padding: 56px var(--gutter) 88px;
	min-height: 40vh;
}

#site-content.is-front {
	padding: 0;
}

/* ==========================================================================
   Utility bar
   ========================================================================== */
#site-utility {
	background: var(--color-primary-darker);
	color: #bfd7cd;
	font-size: 12.5px;
}

#site-utility .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 40px;
	flex-wrap: wrap;
}

.dwt-util-group {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

/* Plain inline (not inline-flex) so the long licence sentence can wrap —
   an inline-flex box with the default nowrap forces the page wider than a
   phone viewport. */
.dwt-util-group span {
	display: inline;
}

#site-utility strong {
	color: #fff;
	font-weight: 600;
}

#site-utility a {
	color: #bfd7cd;
}

#site-utility a:hover {
	color: #fff;
}

.dwt-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--color-gold);
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
	margin-inline-end: 6px;
}

/* ==========================================================================
   Header + navigation
   ========================================================================== */
#site-header {
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-line);
	position: relative;
	z-index: 5;
}

.site-header-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 92px;
}

#site-branding a {
	display: inline-flex;
	align-items: center;
}

#site-branding img,
#site-branding img.custom-logo {
	max-height: 58px;
	width: auto;
}

#site-title {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 800;
}

/* Wraps the menu + CTA. On desktop it is a transparent flex row pushed to the
   far edge; at the collapsed breakpoint it becomes the dropdown panel. */
.dwt-nav-panel {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-inline-start: auto;
}

/* Search icon + hamburger. Sits at the far edge of the header bar at every
   width; only the hamburger inside it is breakpoint-dependent. */
.dwt-header-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.dwt-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--color-line);
	border-radius: 11px;
	color: var(--color-primary-dark);
	box-shadow: none;
	cursor: pointer;
}

.dwt-search-toggle:hover,
.dwt-search-toggle[aria-expanded="true"] {
	background: var(--color-primary-light);
	border-color: var(--color-primary-light);
	color: var(--color-primary-dark);
	transform: none;
}

/* Search bar drops below the header bar, inside the same <header>. */
.dwt-search-bar {
	display: none;
	border-top: 1px solid var(--color-line);
	background: var(--color-canvas);
	padding: 18px 0;
}

.dwt-search-bar.is-open {
	display: block;
}

.dwt-searchform {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.dwt-searchform label {
	flex: 1;
	display: block;
}

.dwt-searchform-input {
	width: 100%;
	height: 100%;
	min-height: 48px;
	padding: 12px 18px;
	font-family: var(--font-body);
	font-size: 15.5px;
	color: var(--color-text);
	background: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: 11px;
}

.dwt-searchform-input::placeholder {
	color: var(--color-text-muted);
}

.dwt-searchform-input:focus {
	border-color: var(--color-primary);
	outline: 3px solid var(--color-gold);
	outline-offset: 1px;
}

/* Hidden on desktop; its computed display is what the script reads to know
   which layout is active. */
.dwt-nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: var(--color-primary-light);
	color: var(--color-primary-dark);
	border: 0;
	border-radius: var(--radius-sm);
	box-shadow: none;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
}

.dwt-nav-toggle:hover {
	background: var(--color-primary);
	color: #fff;
	transform: none;
}

.dwt-nav-bars {
	width: 18px;
	height: 13px;
	position: relative;
	flex-shrink: 0;
}

.dwt-nav-bars span {
	position: absolute;
	inset-inline: 0;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .22s ease, opacity .18s ease, top .22s ease;
}

.dwt-nav-bars span:nth-child(1) { top: 0; }
.dwt-nav-bars span:nth-child(2) { top: 5.5px; }
.dwt-nav-bars span:nth-child(3) { top: 11px; }

.dwt-nav-toggle[aria-expanded="true"] .dwt-nav-bars span:nth-child(1) {
	top: 5.5px;
	transform: rotate(45deg);
}

.dwt-nav-toggle[aria-expanded="true"] .dwt-nav-bars span:nth-child(2) {
	opacity: 0;
}

.dwt-nav-toggle[aria-expanded="true"] .dwt-nav-bars span:nth-child(3) {
	top: 5.5px;
	transform: rotate(-45deg);
}

#site-navigation ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	margin: 0;
	padding: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 15.5px;
}

#site-navigation a {
	display: inline-block;
	padding: 10px 15px;
	border-radius: var(--radius-sm);
	color: #28352f;
}

#site-navigation a:hover,
#site-navigation .current-menu-item > a,
#site-navigation .current_page_item > a,
#site-navigation .current-menu-parent > a,
#site-navigation .current-menu-ancestor > a {
	background: var(--color-primary-light);
	color: var(--color-primary);
	font-weight: 700;
}

/* ── Dropdown submenus ──────────────────────────────────────────────────
   Opened on hover and on :focus-within, so tabbing to the parent link
   reveals the children and Tab continues straight into them — no JS. */
#site-navigation .menu-item-has-children {
	position: relative;
}

#site-navigation .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-inline-start: 7px;
	vertical-align: 2px;
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: .6;
}

#site-navigation .sub-menu {
	display: none;
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% + 6px);
	z-index: 30;
	min-width: 232px;
	flex-direction: column;
	gap: 0;
	padding: 8px;
	background: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: 13px;
	box-shadow: var(--shadow-lg);
}

/* Keeps the pointer from falling through the gap under the parent. */
#site-navigation .menu-item-has-children::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 100%;
	height: 10px;
}

#site-navigation .menu-item-has-children:hover > .sub-menu,
#site-navigation .menu-item-has-children:focus-within > .sub-menu {
	display: flex;
}

#site-navigation .sub-menu a {
	display: block;
	padding: 10px 13px;
	border-radius: 8px;
	font-size: 14.5px;
	white-space: nowrap;
}

/* The last child is the committees link — set it apart from the boards. */
#site-navigation .sub-menu li:last-child {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--color-line);
}

.site-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button,
button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15px;
	padding: 13px 24px;
	border: 0;
	border-radius: 11px;
	background: var(--color-primary);
	color: #fff;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(15, 107, 75, .22);
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--color-primary-dark);
	color: #fff;
	transform: translateY(-1px);
}

.button-gold {
	background: var(--color-gold);
	color: #3a2e06;
	box-shadow: 0 6px 18px rgba(212, 175, 55, .3);
}

.button-gold:hover {
	background: var(--color-gold-dark);
	color: #2b2205;
}

.button-ghost {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, .45);
	color: #fff;
	box-shadow: none;
}

.button-ghost:hover {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .7);
	color: #fff;
}

.button-outline {
	background: transparent;
	border: 1.5px solid var(--color-line);
	color: var(--color-primary-dark);
	box-shadow: none;
}

.button-outline:hover {
	background: var(--color-primary-light);
	border-color: var(--color-primary-light);
	color: var(--color-primary-dark);
}

.button-sm {
	padding: 9px 17px;
	font-size: 13.5px;
	border-radius: var(--radius-sm);
}

/* ==========================================================================
   Bands + section headings
   ========================================================================== */
.dwt-band {
	padding: 96px 0;
}

.dwt-band-tight {
	padding: 76px 0;
}

.dwt-band-canvas {
	background: var(--color-canvas);
}

.dwt-band-dark {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(160deg, var(--color-primary-darker), var(--color-primary-dark));
}

.dwt-band-dark > .dwt-lattice {
	opacity: .06;
}

.dwt-band-dark .container {
	position: relative;
}

.dwt-shead {
	margin-bottom: 44px;
}

.dwt-shead-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.dwt-kick {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--color-primary-bright);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 13px;
}

.dwt-kick::before {
	content: "";
	width: 32px;
	height: 3px;
	border-radius: 3px;
	background: var(--color-gold);
	flex-shrink: 0;
}

.dwt-shead h2 {
	font-size: 39px;
	font-weight: 800;
	margin-bottom: 13px;
}

.dwt-shead p {
	color: var(--color-text-muted);
	font-size: 17px;
	max-width: 680px;
	margin: 0;
}

.dwt-band-dark .dwt-kick {
	color: var(--color-gold);
}

.dwt-band-dark .dwt-shead h2 {
	color: #fff;
}

.dwt-band-dark .dwt-shead p {
	color: #b9d2c8;
}

.dwt-center {
	text-align: center;
}

.dwt-center .dwt-kick {
	justify-content: center;
}

.dwt-center .dwt-shead p {
	margin-inline: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.dwt-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	padding: 96px 0 150px;
	background:
		radial-gradient(900px 520px at 88% -10%, rgba(21, 133, 93, .55), transparent 60%),
		linear-gradient(135deg, var(--color-primary-darker) 0%, var(--color-primary-dark) 52%, var(--color-primary) 100%);
}

.dwt-hero > .dwt-lattice {
	opacity: .075;
}

/* Without the overlapping figures strip the deep bottom padding just leaves
   a gap, so pull it back in. */
.dwt-hero-no-stats {
	padding-bottom: 96px;
}

.dwt-hero-mark {
	position: absolute;
	left: -70px;
	top: -40px;
	width: 520px;
	opacity: .055;
	transform: rotate(-8deg);
	pointer-events: none;
}

.dwt-hero-glow {
	position: absolute;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	left: 12%;
	bottom: -320px;
	pointer-events: none;
	background: radial-gradient(circle, rgba(212, 175, 55, .28), transparent 68%);
}

.dwt-hero .container {
	position: relative;
}

.dwt-hero-inner {
	max-width: 730px;
}

.dwt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, .11);
	border: 1px solid rgba(255, 255, 255, .2);
	padding: 8px 17px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: #e4f1eb;
	margin-bottom: 26px;
}

.dwt-hero h1 {
	font-size: 63px;
	font-weight: 800;
	line-height: 1.14;
	color: #fff;
	margin-bottom: 22px;
}

.dwt-hero h1 em {
	font-style: normal;
	color: var(--color-gold);
	display: block;
}

.dwt-hero-lead {
	font-size: 19px;
	color: #cfe3db;
	max-width: 600px;
	margin: 0 0 38px;
}

.dwt-hero-cta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Stats strip (overlaps the hero)
   ========================================================================== */
.dwt-stats-shell {
	margin-top: -92px;
	position: relative;
	z-index: 3;
}

/* Column count follows however many figures the admin filled in. */
.dwt-stats {
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	display: grid;
	grid-template-columns: repeat(var(--dwt-stat-count, 4), 1fr);
	overflow: hidden;
}

.dwt-stat {
	padding: 36px 28px;
	text-align: center;
	border-inline-start: 1px solid var(--color-line);
}

.dwt-stat:first-child {
	border-inline-start: 0;
}

.dwt-stat-n {
	font-family: var(--font-display);
	font-size: 44px;
	font-weight: 800;
	color: var(--color-primary);
	line-height: 1;
	letter-spacing: -.02em;
}

.dwt-stat-n span {
	font-size: 26px;
	color: var(--color-gold);
}

.dwt-stat-l {
	font-size: 14.5px;
	color: var(--color-text-muted);
	margin-top: 10px;
	font-weight: 500;
}

/* ==========================================================================
   Pillars (vision / mission / values)
   ========================================================================== */
/* Column count follows however many of الرؤية/الرسالة/القيم are filled in. */
.dwt-pillars {
	display: grid;
	grid-template-columns: repeat(var(--dwt-pillar-count, 3), 1fr);
	gap: 24px;
}

.dwt-pillar {
	background: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 34px 32px;
}

.dwt-pillar-ic {
	width: 56px;
	height: 56px;
	border-radius: 15px;
	background: var(--color-primary-light);
	color: var(--color-primary);
	display: grid;
	place-items: center;
	margin-bottom: 20px;
}

.dwt-pillar h3 {
	font-size: 21px;
	font-weight: 700;
	margin-bottom: 10px;
}

.dwt-pillar p {
	color: var(--color-text-muted);
	font-size: 15.5px;
	margin: 0;
}

/* ==========================================================================
   Programs
   ========================================================================== */
.dwt-progs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.dwt-prog {
	display: block;
	background: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	color: var(--color-text);
	transition: border-color .2s ease, transform .2s ease;
}

.dwt-prog:hover {
	border-color: var(--color-gold);
	color: var(--color-text);
	transform: translateY(-3px);
}

.dwt-prog-top {
	height: 112px;
	position: relative;
	display: grid;
	place-items: center;
	color: #fff;
	background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-bright));
}

.dwt-prog-top .dwt-lattice {
	opacity: .14;
	background-size: 34px 34px;
}

.dwt-prog-top svg {
	position: relative;
	width: 38px;
	height: 38px;
}

/* A featured image replaces the icon; the veil keeps the band's depth. */
.dwt-prog-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dwt-prog-veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 58, 40, .12), rgba(8, 58, 40, .42));
}

.dwt-prog-body {
	padding: 24px 24px 26px;
}

.dwt-prog h3 {
	font-size: 17.5px;
	font-weight: 700;
	margin-bottom: 8px;
}

.dwt-prog p {
	font-size: 14.5px;
	color: var(--color-text-muted);
	margin: 0;
}

/* ==========================================================================
   Governance tiles
   ========================================================================== */
.dwt-gtiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 32px;
}

.dwt-gtile {
	display: block;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: var(--radius);
	padding: 26px;
	color: #fff;
	transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.dwt-gtile:hover {
	color: #fff;
	background: rgba(255, 255, 255, .1);
	border-color: rgba(212, 175, 55, .55);
	transform: translateY(-3px);
}

.dwt-gtile-ic {
	width: 48px;
	height: 48px;
	border-radius: 13px;
	background: rgba(212, 175, 55, .16);
	color: var(--color-gold);
	display: grid;
	place-items: center;
	margin-bottom: 18px;
}

.dwt-gtile h3 {
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 5px;
}

.dwt-gtile-sub {
	font-size: 13.5px;
	color: #9fbfb2;
}

.dwt-gtile-go {
	margin-top: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--font-display);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--color-gold);
}

.dwt-gnote {
	background: rgba(212, 175, 55, .1);
	border: 1px solid rgba(212, 175, 55, .28);
	border-radius: var(--radius);
	padding: 22px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}

.dwt-gnote p {
	margin: 0;
	font-size: 15.5px;
	color: #e8f3ee;
	max-width: 780px;
}

.dwt-gnote strong {
	color: var(--color-gold);
}

/* ==========================================================================
   Document rows (reports / policies)
   ========================================================================== */
.dwt-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dwt-row {
	display: flex;
	align-items: center;
	gap: 20px;
	background: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: 14px;
	padding: 18px 24px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.dwt-row:hover {
	border-color: var(--color-gold);
	box-shadow: var(--shadow);
}

.dwt-row-icon {
	width: 46px;
	height: 56px;
	border-radius: 8px;
	background: var(--color-gold-soft);
	border: 1px solid #e9d69b;
	display: grid;
	place-items: center;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 11px;
	color: #8a6d14;
	flex-shrink: 0;
}

.dwt-row-main {
	flex: 1;
	min-width: 0;
}

.dwt-row-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 7px;
}

.dwt-row-title a {
	color: var(--color-primary-darker);
}

.dwt-row-title a:hover {
	color: var(--color-primary);
}

.dwt-row-meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	color: var(--color-text-muted);
	font-size: 13px;
}

.dwt-row-excerpt {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--color-text-muted);
}

.dwt-row-action {
	flex-shrink: 0;
}

.dwt-download {
	white-space: nowrap;
}

.dwt-file-size {
	font-weight: 400;
	opacity: .78;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.dwt-badge {
	display: inline-block;
	background: var(--color-primary-light);
	color: var(--color-primary-dark);
	border-radius: 999px;
	padding: 4px 13px;
	font-size: 12.5px;
	font-weight: 600;
}

.dwt-badge-gold {
	background: var(--color-gold-soft);
	color: #7a6013;
}

.dwt-badge-link:hover {
	background: var(--color-primary);
	color: #fff;
}

.dwt-filter-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}

.dwt-badge-link.is-active {
	background: var(--color-primary);
	color: #fff;
}

.dwt-term-intro {
	font-size: 17px;
	color: var(--color-text-muted);
	max-width: 720px;
}

.dwt-term-count {
	color: var(--color-text-muted);
	font-size: 14.5px;
	margin-bottom: 20px;
}

/* Group heading on the combined boards archive links to that board's page. */
.dwt-section-title a {
	color: inherit;
}

.dwt-section-title a:hover {
	color: var(--color-primary);
}

.dwt-section-title .dwt-section-more-link {
	float: inline-end;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--color-primary);
}

/* ==========================================================================
   Cards + grids (members, committees, posts)
   ========================================================================== */
.dwt-grid {
	display: grid;
	gap: 22px;
}

.dwt-grid-members {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.dwt-grid-committees {
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

/* ==========================================================================
   News rows (news archive)
   ========================================================================== */
.dwt-post-rows {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dwt-post-row {
	display: flex;
	align-items: stretch;
	gap: 26px;
	padding: 20px;
	background: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--color-text);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.dwt-post-row:hover {
	border-color: var(--color-gold);
	color: var(--color-text);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.dwt-post-row-photo {
	position: relative;
	flex: 0 0 300px;
	aspect-ratio: 16 / 10;
	border-radius: 12px;
	overflow: hidden;
	background: var(--color-primary-light);
	display: flex;
	align-items: center;
	justify-content: center;
}

.dwt-post-row-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dwt-post-row-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: 4px;
}

.dwt-post-row-title {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.38;
	margin: 8px 0 10px;
}

.dwt-post-row:hover .dwt-post-row-title {
	color: var(--color-primary);
}

.dwt-post-row-excerpt {
	margin: 0;
	font-size: 15px;
	color: var(--color-text-muted);
}

.dwt-post-row .dwt-read-more {
	margin-top: 12px;
	align-self: flex-start;
}

.dwt-card {
	display: block;
	background: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 22px;
	color: var(--color-text);
	box-shadow: var(--shadow);
	transition: border-color .2s ease, transform .2s ease;
}

.dwt-card:hover {
	border-color: var(--color-gold);
	color: var(--color-text);
	transform: translateY(-3px);
}

.dwt-card-photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 11px;
	overflow: hidden;
	background: var(--color-primary-light);
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dwt-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dwt-card-photo-wide {
	aspect-ratio: 16 / 9;
}

.dwt-card-photo-large {
	width: 140px;
	aspect-ratio: 1 / 1;
	flex-shrink: 0;
}

.dwt-post-thumb-large {
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 22px;
}

.dwt-avatar-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	background: linear-gradient(160deg, var(--color-primary-light), #dfece5);
}

.dwt-avatar-placeholder-art {
	width: 78%;
	height: auto;
	display: block;
}

.dwt-avatar-halo {
	fill: var(--color-bg);
	opacity: .5;
}

.dwt-avatar-figure {
	fill: var(--color-primary);
	opacity: .32;
	transition: opacity .2s ease;
}

.dwt-card:hover .dwt-avatar-figure {
	opacity: .42;
}

.dwt-card-title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 700;
}

.dwt-card-meta {
	margin: 0 0 8px;
	color: var(--color-text-muted);
	font-size: .92rem;
}

.dwt-card-excerpt {
	margin: 8px 0 0;
	font-size: .9rem;
	color: var(--color-text-muted);
}

.dwt-read-more {
	display: inline-block;
	margin-top: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	color: var(--color-primary);
}

/* Placeholder shown when a post has no featured image. */
.dwt-thumb-fallback {
	position: relative;
	display: grid;
	place-items: center;
	background: linear-gradient(140deg, var(--color-primary-dark), var(--color-primary-bright));
}

.dwt-thumb-fallback .dwt-lattice {
	opacity: .13;
	background-size: 40px 40px;
}

/* Two classes so this beats the `.dwt-feat-photo img` / `.dwt-nitem-photo img`
   object-fit:cover rules regardless of where they sit in the file. */
.dwt-thumb-fallback .dwt-thumb-mark {
	position: relative;
	width: auto;
	height: 42%;
	max-height: 76px;
	min-height: 30px;
	opacity: .5;
	object-fit: contain;
}

/* ==========================================================================
   News block on the front page (featured + list)
   ========================================================================== */
.dwt-news {
	display: grid;
	grid-template-columns: 1.28fr 1fr;
	gap: 24px;
}

.dwt-feat {
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-bg);
	box-shadow: var(--shadow);
	display: block;
	color: var(--color-text);
	transition: border-color .2s ease;
}

.dwt-feat:hover {
	border-color: var(--color-gold);
	color: var(--color-text);
}

.dwt-feat-photo {
	height: 290px;
	overflow: hidden;
}

.dwt-feat-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dwt-feat-body {
	padding: 28px 32px 32px;
}

.dwt-feat h3 {
	font-size: 26px;
	font-weight: 800;
	margin: 12px 0 12px;
	line-height: 1.32;
}

.dwt-feat p {
	color: var(--color-text-muted);
	font-size: 15.5px;
	margin: 0;
}

.dwt-date {
	font-size: 13px;
	color: var(--color-text-muted);
	font-weight: 500;
}

.dwt-nlist {
	display: grid;
	gap: 22px;
	align-content: start;
}

.dwt-nitem {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	color: var(--color-text);
}

.dwt-nitem:hover {
	color: var(--color-text);
}

.dwt-nitem-photo {
	width: 118px;
	height: 96px;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
}

.dwt-nitem-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dwt-nitem h3 {
	font-size: 17px;
	font-weight: 700;
	margin: 6px 0 7px;
	line-height: 1.42;
}

.dwt-nitem:hover h3 {
	color: var(--color-primary);
}

.dwt-nitem p {
	margin: 0;
	font-size: 14px;
	color: var(--color-text-muted);
}

/* ==========================================================================
   Partners
   ========================================================================== */
/* Flex rather than grid so a row that isn't full (say 3 partners in a
   5-across layout) sits centred instead of hugging the start edge. */
.dwt-partners {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 18px;
}

.dwt-partner {
	flex: 0 0 calc((100% - 4 * 18px) / 5);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 18px;
	text-align: center;
	transition: transform .2s ease;
}

.dwt-partner-logo {
	/* Fixed box so every logo occupies the same vertical space and the names
	   below line up. flex: 0 0 stops the column flex from resizing it. */
	--dwt-logo-h: 110px;
	flex: 0 0 var(--dwt-logo-h);
	height: var(--dwt-logo-h);
	width: 100%;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.dwt-partner-name {
	font-size: 14px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--color-text-muted);
	transition: color .2s ease;
}

a.dwt-partner:hover .dwt-partner-name {
	color: var(--color-text);
}

.dwt-partner img {
	max-width: 100%;
	/* Explicit cap, not 100%: as a grid item the image gets min-height: auto,
	   which lets a tall logo push past the box and cover the name below. */
	max-height: var(--dwt-logo-h);
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
	object-fit: contain;
	/* Muted by default so mixed-colour logos sit together calmly, full
	   colour on hover. */
	filter: grayscale(1);
	opacity: .62;
	transition: filter .22s ease, opacity .22s ease;
}

a.dwt-partner:hover {
	transform: translateY(-2px);
}

.dwt-partner:hover img {
	filter: grayscale(0);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.dwt-partner img {
		transition: none;
	}
}

/* ==========================================================================
   Closing CTA band
   ========================================================================== */
.dwt-cta {
	background: var(--color-canvas);
	border-top: 1px solid var(--color-line);
	border-bottom: 1px solid var(--color-line);
}

.dwt-cta .container {
	padding-block: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 36px;
	flex-wrap: wrap;
}

.dwt-cta h2 {
	font-size: 34px;
	font-weight: 800;
	margin-bottom: 10px;
}

.dwt-cta p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 17px;
}

.dwt-cta-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

/* ==========================================================================
   Inner-page bits
   ========================================================================== */
/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.dwt-breadcrumbs {
	margin-bottom: 22px;
	font-size: 13.5px;
	color: var(--color-text-muted);
}

.dwt-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.dwt-breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

/* Separator points left, matching the RTL reading direction. */
.dwt-breadcrumbs li + li::before {
	content: "\203A";
	color: var(--color-line);
	font-size: 17px;
	line-height: 1;
}

.dwt-breadcrumbs a {
	color: var(--color-text-muted);
}

.dwt-breadcrumbs a:hover {
	color: var(--color-primary);
}

.dwt-breadcrumbs [aria-current="page"] {
	color: var(--color-primary-dark);
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 46ch;
}

/* ==========================================================================
   Share buttons
   ========================================================================== */
.dwt-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 34px 0 8px;
	padding-top: 24px;
	border-top: 1px solid var(--color-line);
}

.dwt-share-label {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--color-primary-dark);
	font-size: 14.5px;
}

.dwt-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dwt-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--color-line);
	border-radius: 11px;
	background: transparent;
	color: var(--color-primary-dark);
	box-shadow: none;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.dwt-share-btn:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
	transform: none;
}

.dwt-share-feedback {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--color-primary-bright);
}

.dwt-page-header {
	margin-bottom: 30px;
}

.dwt-page-header h1 {
	font-size: 38px;
	font-weight: 800;
	display: inline-block;
	border-bottom: 3px solid var(--color-gold);
	padding-bottom: 12px;
	margin-bottom: 0;
}

.dwt-section {
	margin: 48px 0;
}

.dwt-section-alt {
	background: var(--color-canvas);
	padding: 32px;
	border-radius: var(--radius);
}

.dwt-section-title {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 22px;
	padding-inline-start: 14px;
	border-inline-start: 4px solid var(--color-gold);
}

.dwt-section-more {
	margin-top: 22px;
}

.entry-content {
	font-size: 16.5px;
}

.entry-content h2 {
	font-size: 28px;
	margin-top: 1.6em;
}

.entry-content h3 {
	font-size: 21px;
	margin-top: 1.5em;
}

.dwt-single-post,
.dwt-single-policy,
.dwt-single-report,
.dwt-single-member,
.dwt-single-committee {
	max-width: 840px;
}

.dwt-single-post h1,
.dwt-single-policy h1,
.dwt-single-report h1 {
	font-size: 36px;
	font-weight: 800;
}

.dwt-single-download {
	margin: 26px 0;
}

.dwt-single-member-header {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 24px;
}

.dwt-plain-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dwt-plain-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--color-line);
}

.dwt-plain-list li:last-child {
	border-bottom: 0;
}

.dwt-back-link {
	display: inline-block;
	margin-top: 22px;
	font-family: var(--font-display);
	font-weight: 700;
}

.dwt-empty-state {
	background: var(--color-canvas);
	border: 1px dashed var(--color-line);
	border-radius: var(--radius);
	padding: 26px;
	color: var(--color-text-muted);
	text-align: center;
}

.dwt-empty-rich {
	padding: 40px 26px;
}

.dwt-empty-rich p {
	margin: 0 0 8px;
}

/* ==========================================================================
   Search results + 404
   ========================================================================== */
.dwt-search-intro {
	margin-bottom: 32px;
}

.dwt-search-intro .dwt-searchform {
	max-width: 620px;
}

.dwt-search-summary {
	margin: 16px 0 0;
	color: var(--color-text-muted);
	font-size: 15.5px;
}

.dwt-quicklinks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 22px;
}

.dwt-quicklinks .dwt-badge {
	padding: 9px 18px;
	font-size: 14px;
}

.dwt-404 {
	text-align: center;
	max-width: 680px;
	margin-inline: auto;
	padding: 40px 0 60px;
}

.dwt-404-code {
	font-family: var(--font-display);
	font-size: 116px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--color-primary-light);
	margin-bottom: 8px;
}

.dwt-404 h1 {
	font-size: 34px;
	font-weight: 800;
	margin-bottom: 12px;
}

.dwt-404-lead {
	color: var(--color-text-muted);
	font-size: 17px;
	margin-bottom: 28px;
}

.dwt-404-search .dwt-searchform {
	max-width: 520px;
	margin-inline: auto;
}

article.post,
article.type-post {
	margin-bottom: 0;
}

.dwt-pagination {
	margin-top: 34px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dwt-pagination .page-numbers {
	display: inline-block;
	padding: 9px 15px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	color: var(--color-text);
	font-family: var(--font-display);
	font-weight: 600;
}

.dwt-pagination .page-numbers.current {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

.dwt-pagination a.page-numbers:hover {
	border-color: var(--color-gold);
	color: var(--color-text);
}

.dwt-pagination .page-numbers.dots {
	border-color: transparent;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.dwt-contact-grid {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.2fr);
	gap: 32px;
	margin-top: 32px;
}

.dwt-contact-details {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* With no map embedded there is no second column to fill, so spread the
   details across the full width instead of leaving half the page blank. */
.dwt-contact-grid.is-nomap {
	grid-template-columns: 1fr;
}

.dwt-contact-grid.is-nomap .dwt-contact-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 28px 40px;
}

.dwt-contact-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.dwt-contact-icon {
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: var(--color-primary-light);
	color: var(--color-primary);
	display: grid;
	place-items: center;
	flex-shrink: 0;
	font-size: 1.2rem;
}

.dwt-contact-item h3 {
	margin: 0 0 4px;
	font-size: 1rem;
}

.dwt-contact-item p {
	margin: 0 0 4px;
	color: var(--color-text-muted);
}

.dwt-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.dwt-social-links a {
	font-family: var(--font-display);
	font-weight: 700;
}

.dwt-contact-map {
	min-height: 340px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--color-line);
}

.dwt-contact-map iframe {
	width: 100%;
	height: 100%;
	min-height: 340px;
	border: 0;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.dwt-form-section {
	margin-top: 56px;
	padding-top: 44px;
	border-top: 1px solid var(--color-line);
	max-width: 820px;
}

.dwt-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
}

.dwt-field {
	margin: 0 0 18px;
}

.dwt-field label {
	display: block;
	margin-bottom: 7px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14.5px;
	color: var(--color-primary-dark);
}

.dwt-req {
	color: #b32d2e;
}

.dwt-field input[type="text"],
.dwt-field input[type="email"],
.dwt-field input[type="tel"],
.dwt-field textarea {
	width: 100%;
	padding: 12px 16px;
	font-family: var(--font-body);
	font-size: 15.5px;
	color: var(--color-text);
	background: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: 11px;
}

.dwt-field textarea {
	resize: vertical;
	min-height: 140px;
	line-height: 1.75;
}

.dwt-field input:focus,
.dwt-field textarea:focus {
	border-color: var(--color-primary);
	outline: 3px solid var(--color-gold);
	outline-offset: 1px;
}

.dwt-consent {
	background: var(--color-canvas);
	border: 1px solid var(--color-line);
	border-radius: 11px;
	padding: 14px 18px;
	margin-bottom: 22px;
}

.dwt-consent label {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	font-size: 14.5px;
	color: var(--color-text-muted);
	cursor: pointer;
}

.dwt-consent input[type="checkbox"] {
	margin-top: 5px;
	width: 17px;
	height: 17px;
	accent-color: var(--color-primary);
	flex-shrink: 0;
}

/* Honeypot: out of sight for people, still reachable for bots. */
.dwt-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dwt-notice {
	border-radius: 11px;
	padding: 16px 20px;
	margin-bottom: 24px;
	font-size: 15.5px;
	border-inline-start: 4px solid;
}

.dwt-notice-success {
	background: var(--color-primary-light);
	border-color: var(--color-primary);
	color: var(--color-primary-dark);
}

.dwt-notice-error {
	background: #fdf0f0;
	border-color: #b32d2e;
	color: #8a2223;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#site-footer {
	background: var(--color-primary-darker);
	color: #a8c6b9;
	margin-top: 0;
}

.dwt-fmain {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 48px;
	padding: 76px 0 52px;
}

.dwt-flogo {
	width: 210px;
	margin-bottom: 20px;
}

.dwt-fabout {
	font-size: 14.5px;
	line-height: 1.85;
	margin: 0 0 22px;
}

#site-footer h2 {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 18px;
}

#site-footer a {
	color: #a8c6b9;
}

#site-footer a:hover {
	color: var(--color-gold);
}

.dwt-flinks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
	font-size: 14.5px;
}

.dwt-fcontact {
	display: grid;
	gap: 14px;
	font-size: 14.5px;
}

.dwt-fcontact div {
	display: flex;
	gap: 11px;
	align-items: flex-start;
}

.dwt-fcontact svg {
	flex-shrink: 0;
	margin-top: 5px;
	color: var(--color-gold);
}

.dwt-fsocial {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.dwt-fsocial a {
	width: 40px;
	height: 40px;
	border-radius: 11px;
	border: 1px solid rgba(255, 255, 255, .16);
	display: grid;
	place-items: center;
	color: #cfe3db;
	transition: border-color .2s ease, background .2s ease;
}

.dwt-fsocial a:hover {
	border-color: var(--color-gold);
	background: rgba(212, 175, 55, .12);
	color: var(--color-gold);
}

.dwt-fbot {
	border-top: 1px solid rgba(255, 255, 255, .11);
	padding: 20px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-size: 13.5px;
	flex-wrap: wrap;
}

.dwt-fbot-links {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
	align-items: center;
}

.dwt-license {
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: var(--radius-sm);
	padding: 5px 14px;
	font-size: 12.5px;
	color: #cfe3db;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ── Collapsed navigation (tablet + mobile) ─────────────────────────────────
   Breakpoint set by measuring the widest state: logo + 7 menu items + the
   grants CTA stop fitting on one row a little above 1024px, so iPad landscape
   already needs the collapsed menu. */
@media (max-width: 1080px) {
	.site-header-inner {
		min-height: 78px;
		gap: 16px;
	}

	.dwt-nav-toggle {
		display: inline-flex;
	}

	/* The panel leaves the flow when collapsed, so the auto margin that
	   normally pushes the header's right-hand group across has to move here. */
	.dwt-header-tools {
		margin-inline-start: auto;
	}

	.dwt-nav-panel {
		display: none;
		position: absolute;
		inset-inline: 0;
		top: 100%;
		z-index: 20;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		padding: 8px var(--gutter) 20px;
		background: var(--color-bg);
		border-top: 1px solid var(--color-line);
		border-bottom: 3px solid var(--color-gold);
		box-shadow: 0 18px 40px rgba(8, 58, 40, .14);
		max-height: calc(100vh - 100%);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.dwt-nav-panel.is-open {
		display: flex;
		animation: dwt-nav-in .18s ease-out;
	}

	#site-navigation ul {
		flex-direction: column;
		gap: 0;
		font-size: 16px;
	}

	#site-navigation li {
		border-bottom: 1px solid var(--color-line);
	}

	#site-navigation li:last-child {
		border-bottom: 0;
	}

	#site-navigation a {
		display: block;
		padding: 15px 4px;
		border-radius: 0;
		font-weight: 600;
	}

	#site-navigation a:hover,
	#site-navigation .current-menu-item > a,
	#site-navigation .current_page_item > a {
		background: transparent;
		color: var(--color-primary);
		padding-inline-start: 12px;
		border-inline-start: 3px solid var(--color-gold);
	}

	/* No hover on touch: submenus are always shown, indented under their
	   parent, so every destination is one tap away. */
	#site-navigation .menu-item-has-children > a::after {
		display: none;
	}

	#site-navigation .sub-menu,
	#site-navigation .menu-item-has-children:hover > .sub-menu,
	#site-navigation .menu-item-has-children:focus-within > .sub-menu {
		display: block;
		position: static;
		min-width: 0;
		padding: 0;
		margin: 0 0 10px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	#site-navigation .menu-item-has-children::after {
		display: none;
	}

	#site-navigation .sub-menu li {
		border-bottom: 0;
	}

	#site-navigation .sub-menu li:last-child {
		margin-top: 4px;
		padding-top: 4px;
	}

	#site-navigation .sub-menu a {
		padding: 11px 20px 11px 4px;
		font-size: 15px;
		font-weight: 500;
		color: var(--color-text-muted);
		white-space: normal;
	}

	#site-navigation .sub-menu a::before {
		content: "—";
		margin-inline-end: 8px;
		opacity: .4;
	}

	/* CTA becomes a full-width action at the end of the panel. */
	.site-header-actions {
		margin-top: 18px;
	}

	.site-header-actions .button {
		width: 100%;
		justify-content: center;
	}
}

@keyframes dwt-nav-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dwt-nav-panel.is-open {
		animation: none;
	}

	.dwt-nav-bars span {
		transition: none;
	}
}

/* On the narrowest phones the button goes icon-only. The label stays in the
   accessibility tree so the control keeps its name. */
@media (max-width: 430px) {
	.dwt-nav-toggle {
		padding: 12px;
	}

	.dwt-nav-toggle-label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		border: 0;
		overflow: hidden;
		white-space: nowrap;
		clip-path: inset(50%);
	}
}

@media (max-width: 1100px) {
	.dwt-progs,
	.dwt-gtiles {
		grid-template-columns: repeat(2, 1fr);
	}

	.dwt-partner {
		flex-basis: calc((100% - 2 * 18px) / 3);
	}

	.dwt-fmain {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
}

@media (max-width: 900px) {
	:root {
		--gutter: 24px;
	}

	.dwt-hero {
		padding: 64px 0 130px;
	}

	.dwt-hero h1 {
		font-size: 40px;
	}

	.dwt-shead h2 {
		font-size: 30px;
	}

	.dwt-band {
		padding: 68px 0;
	}

	.dwt-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.dwt-stat:nth-child(3) {
		border-inline-start: 0;
	}

	.dwt-stat:nth-child(n + 3) {
		border-top: 1px solid var(--color-line);
	}

	.dwt-pillars,
	.dwt-news {
		grid-template-columns: 1fr;
	}

	.dwt-post-row-photo {
		flex-basis: 210px;
	}

	.dwt-post-row-title {
		font-size: 19px;
	}

	.dwt-page-header h1 {
		font-size: 29px;
	}
}

@media (max-width: 640px) {
	.dwt-progs,
	.dwt-gtiles {
		grid-template-columns: 1fr;
	}

	.dwt-partner {
		flex-basis: 100%;
	}

	.dwt-hero h1 {
		font-size: 33px;
	}

	/* Keep the big figures inside a two-up grid on a phone. */
	.dwt-stat {
		padding: 26px 12px;
	}

	.dwt-stat-n {
		font-size: 30px;
	}

	.dwt-stat-n span {
		font-size: 18px;
	}

	.dwt-stat-l {
		font-size: 13px;
	}

	.dwt-feat-body {
		padding: 22px 20px 26px;
	}

	.dwt-gnote {
		padding: 20px;
	}

	.dwt-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.dwt-single-member-header,
	.dwt-nitem {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Stack the news row: image above, text below. */
	.dwt-post-row {
		flex-direction: column;
		gap: 16px;
	}

	.dwt-post-row-photo {
		flex: 0 0 auto;
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	.dwt-post-row-title {
		font-size: 18px;
		margin-top: 6px;
	}

	.dwt-nitem-photo {
		width: 100%;
		height: 170px;
	}

	.dwt-contact-grid {
		grid-template-columns: 1fr;
	}

	.dwt-form-grid {
		grid-template-columns: 1fr;
	}

	.dwt-fmain {
		grid-template-columns: 1fr;
		gap: 34px;
		padding-top: 56px;
	}

	.dwt-feat-photo {
		height: 200px;
	}

	.dwt-feat h3 {
		font-size: 21px;
	}
}

/* ==========================================================================
   "من نحن" page — content managed in "إعدادات القالب ← بيانات من نحن"
   ========================================================================== */
.dwt-about-intro {
	max-width: 840px;
	margin-bottom: 8px;
}

/* In-page section jumps. Sticks under the header while scrolling. */
.dwt-about-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	position: sticky;
	top: 0;
	z-index: 20;
	margin-bottom: 8px;
	padding: 12px 0;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-line);
}

.dwt-about-nav a {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	color: var(--color-text-muted);
	padding: 8px 15px;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.dwt-about-nav a:hover,
.dwt-about-nav a:focus-visible {
	color: var(--color-primary);
	border-color: var(--color-primary);
	background: var(--color-primary-light);
	text-decoration: none;
}

/* Anchored sections must clear the sticky bar when jumped to. */
#founder,
#organization,
#vision,
#mission,
#values,
#goals,
#strategy {
	scroll-margin-top: 90px;
}

.dwt-about-text p {
	color: var(--color-text-muted);
	font-size: 16.5px;
	line-height: 1.95;
	margin-bottom: 1em;
}

.dwt-about-text p:last-child {
	margin-bottom: 0;
}

/* ── عن المؤسس ──────────────────────────────────────────────────────────── */
.dwt-founder-grid {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 38px;
	align-items: start;
}

.dwt-founder-grid.is-nophoto {
	grid-template-columns: 1fr;
	max-width: 840px;
}

.dwt-founder-photo {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--color-line);
	background: var(--color-canvas);
	box-shadow: var(--shadow);
}

.dwt-founder-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.dwt-founder-name {
	font-size: 26px;
	font-weight: 800;
	margin-bottom: 6px;
}

.dwt-founder-role {
	color: var(--color-primary);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15.5px;
	margin-bottom: 20px;
}

.dwt-founder-quote {
	margin: 26px 0 0;
	padding: 22px 26px;
	background: var(--color-primary-light);
	border-inline-start: 4px solid var(--color-gold);
	border-radius: var(--radius-sm);
}

.dwt-founder-quote p {
	margin: 0;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.85;
	color: var(--color-primary-dark);
}

/* ── عن المؤسسة ─────────────────────────────────────────────────────────── */
.dwt-org-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 38px;
	align-items: start;
}

.dwt-org-grid.is-nophoto {
	grid-template-columns: 1fr;
	max-width: 840px;
}

.dwt-org-photo {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--color-line);
	box-shadow: var(--shadow);
}

.dwt-org-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.dwt-org-facts {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 26px 0 0;
	padding: 0;
}

.dwt-org-facts li {
	background: var(--color-canvas);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	padding: 12px 18px;
	min-width: 170px;
}

.dwt-org-fact-label {
	display: block;
	font-size: 12.5px;
	color: var(--color-text-muted);
	margin-bottom: 3px;
}

.dwt-org-facts strong {
	font-family: var(--font-display);
	font-size: 17px;
	color: var(--color-primary-dark);
}

/* ── الرؤية / الرسالة ───────────────────────────────────────────────────── */
.dwt-about-vm {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.dwt-vm-card {
	background: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 34px 32px;
	box-shadow: var(--shadow);
}

.dwt-vm-ic {
	width: 56px;
	height: 56px;
	border-radius: 15px;
	background: var(--color-primary-light);
	color: var(--color-primary);
	display: grid;
	place-items: center;
	margin-bottom: 20px;
}

.dwt-vm-card h2 {
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 12px;
}

.dwt-vm-card p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 17px;
	line-height: 1.9;
}

/* ── القيم ──────────────────────────────────────────────────────────────── */
.dwt-value-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
	gap: 20px;
}

.dwt-value {
	position: relative;
	background: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 26px 24px;
}

.dwt-value-n {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--color-gold-soft);
	color: var(--color-gold-dark);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 14px;
	margin-bottom: 14px;
}

.dwt-value h3 {
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 8px;
}

.dwt-value p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 15px;
	line-height: 1.85;
}

/* ── الأهداف ────────────────────────────────────────────────────────────── */
.dwt-goal-list {
	list-style: none;
	counter-reset: dwt-goal;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.dwt-goal {
	counter-increment: dwt-goal;
	position: relative;
	background: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 22px 26px 22px 26px;
	padding-inline-start: 74px;
}

.dwt-goal::before {
	content: counter(dwt-goal);
	position: absolute;
	inset-inline-start: 24px;
	top: 22px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--color-primary-light);
	color: var(--color-primary);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 14px;
}

.dwt-goal-head {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.dwt-goal-head h3 {
	font-size: 19px;
	font-weight: 700;
	margin: 0;
}

.dwt-goal-tag {
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--color-primary-light);
	color: var(--color-primary-dark);
}

.dwt-goal-tag-operational {
	background: var(--color-gold-soft);
	color: var(--color-gold-dark);
}

.dwt-goal p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 15.5px;
	line-height: 1.85;
}

/* ── استراتيجيتنا ───────────────────────────────────────────────────────── */
.dwt-strategy-intro {
	max-width: 840px;
	margin-bottom: 28px;
}

.dwt-strategy-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.dwt-strategy-axis {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: var(--color-canvas);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 24px 26px;
}

.dwt-strategy-n {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--color-primary);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 16px;
}

.dwt-strategy-axis h3 {
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 7px;
}

.dwt-strategy-axis p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 15.5px;
	line-height: 1.85;
}

@media (max-width: 900px) {
	.dwt-founder-grid,
	.dwt-org-grid,
	.dwt-about-vm,
	.dwt-strategy-grid {
		grid-template-columns: 1fr;
	}

	.dwt-founder-photo {
		max-width: 260px;
	}

	.dwt-about-nav {
		position: static;
	}
}

@media (max-width: 640px) {
	.dwt-goal {
		padding-inline-start: 26px;
	}

	.dwt-goal::before {
		position: static;
		margin-bottom: 12px;
	}

	.dwt-vm-card,
	.dwt-value,
	.dwt-strategy-axis {
		padding: 24px 22px;
	}
}
