/* ==========================================================================
   Nabd — stylesheet
   One file for RTL and LTR: logical properties only (inline/block, never left/right).
   Brand values arrive as --nbd-* tokens from Nabd settings (inc/tokens.php); every other
   tone is derived here with color-mix(), so the palette changes from five fields.
   ========================================================================== */

:root {
	/* Brand (overridden inline from settings) */
	--nbd-primary: #085059;
	--nbd-secondary: #FF3C00;
	--nbd-ink: #0F2A2E;
	--nbd-surface: #FFFFFF;
	--nbd-bg: #F5F8F8;
	--nbd-radius: 12px;

	/* Derived tones */
	--nbd-primary-strong: color-mix(in srgb, var(--nbd-primary) 78%, #000);
	--nbd-primary-deep: color-mix(in srgb, var(--nbd-primary) 60%, #000);
	--nbd-primary-soft: color-mix(in srgb, var(--nbd-primary) 8%, var(--nbd-surface));
	--nbd-primary-mid: color-mix(in srgb, var(--nbd-primary) 18%, var(--nbd-surface));
	--nbd-tint: color-mix(in srgb, var(--nbd-primary) 5%, var(--nbd-bg));
	--nbd-secondary-strong: color-mix(in srgb, var(--nbd-secondary) 76%, #000);
	/* Filled accent buttons use a slightly deeper tone so white text passes WCAG AA (4.5:1). */
	--nbd-secondary-cta: color-mix(in srgb, var(--nbd-secondary) 86%, #000);
	--nbd-secondary-soft: color-mix(in srgb, var(--nbd-secondary) 10%, var(--nbd-surface));
	--nbd-muted: color-mix(in srgb, var(--nbd-ink) 66%, var(--nbd-bg));
	--nbd-line: color-mix(in srgb, var(--nbd-ink) 11%, var(--nbd-bg));
	--nbd-on-primary: #FFFFFF;
	--nbd-on-secondary: #FFFFFF;
	--nbd-ok: #1E7D4F;
	--nbd-error: #B3261E;

	/* Type */
	--nbd-font: 'NBD Arabic', 'NBD Latin', 'Segoe UI', Tahoma, system-ui, sans-serif;
	--nbd-display: 'NBD Display', 'NBD Arabic', 'NBD Latin', 'Segoe UI', Tahoma, sans-serif;
	--nbd-text-sm: 0.875rem;
	--nbd-text-base: 1rem;
	--nbd-text-lg: 1.125rem;
	--nbd-h4: 1.2rem;
	--nbd-h3: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
	--nbd-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.6rem);
	--nbd-h1: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
	--nbd-hero: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem);

	/* Space & layout */
	--nbd-gutter: clamp(16px, 4vw, 40px);
	--nbd-container: 1200px;
	--nbd-header-h: 80px;
	--nbd-section: clamp(64px, 9vw, 120px);
	--nbd-radius-lg: calc(var(--nbd-radius) * 2);
	--nbd-shadow-sm: 0 1px 2px rgb(8 40 44 / 0.06), 0 2px 8px -2px rgb(8 40 44 / 0.08);
	--nbd-shadow: 0 2px 4px rgb(8 40 44 / 0.04), 0 18px 40px -18px rgb(8 40 44 / 0.28);
	--nbd-shadow-lg: 0 30px 70px -30px rgb(8 40 44 / 0.45);
	--nbd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Latin-first stacks for NL/EN so mixed Arabic still renders in the Arabic face. */
.dir-ltr {
	--nbd-font: 'NBD Latin', 'NBD Arabic', 'Segoe UI', system-ui, sans-serif;
	--nbd-display: 'NBD Display', 'NBD Latin', 'NBD Arabic', 'Segoe UI', system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: calc(var(--nbd-header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	background: var(--nbd-bg);
	color: var(--nbd-ink);
	font-family: var(--nbd-font);
	font-size: var(--nbd-text-base);
	line-height: 1.75;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
body.lang-ar { line-height: 1.85; }
/* Letter-spacing breaks joined Arabic letters. */
.lang-ar * { letter-spacing: 0 !important; }

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

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	font-family: var(--nbd-display);
	font-weight: 700;
	line-height: 1.3;
	text-wrap: balance;
	color: var(--nbd-ink);
}
h1 { font-size: var(--nbd-h1); }
h2 { font-size: var(--nbd-h2); }
h3 { font-size: var(--nbd-h3); font-weight: 600; }
h4 { font-size: var(--nbd-h4); font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--nbd-primary); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--nbd-primary-strong); }

:focus-visible { outline: 3px solid var(--nbd-secondary); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}

.nbd-skip {
	position: absolute; inset-block-start: -100px; inset-inline-start: 16px; z-index: 1000;
	padding: 10px 16px; background: var(--nbd-primary); color: var(--nbd-on-primary); border-radius: var(--nbd-radius);
}
.nbd-skip:focus { inset-block-start: 12px; color: var(--nbd-on-primary); }

.nbd-container { inline-size: 100%; max-inline-size: calc(var(--nbd-container) + 2 * var(--nbd-gutter)); margin-inline: auto; padding-inline: var(--nbd-gutter); }
.nbd-main { min-block-size: 50vh; }
.nbd-main:focus { outline: none; }

/* ==========================================================================
   Buttons (theme buttons + core/button blocks with nbd-b-* styles)
   ========================================================================== */
.nbd-btn,
.wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-block-size: 50px; padding-block: 10px; padding-inline: 26px;
	border: 1.5px solid transparent; border-radius: 999px;
	background: var(--nbd-primary); color: var(--nbd-on-primary);
	font: inherit; font-family: var(--nbd-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color 0.2s var(--nbd-ease), color 0.2s var(--nbd-ease), border-color 0.2s var(--nbd-ease), transform 0.2s var(--nbd-ease), box-shadow 0.2s var(--nbd-ease);
}
.nbd-btn:hover, .wp-block-button .wp-block-button__link:hover { background: var(--nbd-primary-strong); color: var(--nbd-on-primary); transform: translateY(-1px); }
.nbd-btn .nbd-i { inline-size: 18px; block-size: 18px; }

.nbd-btn--accent,
.nbd-b-accent .wp-block-button__link { background: var(--nbd-secondary-cta); color: var(--nbd-on-secondary); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--nbd-secondary) 80%, transparent); }
.nbd-btn--accent:hover,
.nbd-b-accent .wp-block-button__link:hover { background: var(--nbd-secondary-strong); color: var(--nbd-on-secondary); }

.nbd-btn--ghost,
.nbd-b-ghost .wp-block-button__link { background: transparent; color: var(--nbd-primary); border-color: color-mix(in srgb, var(--nbd-primary) 35%, transparent); }
.nbd-btn--ghost:hover,
.nbd-b-ghost .wp-block-button__link:hover { background: var(--nbd-primary-soft); color: var(--nbd-primary); border-color: var(--nbd-primary); }

.nbd-b-light .wp-block-button__link { background: var(--nbd-surface); color: var(--nbd-primary); }
.nbd-b-light .wp-block-button__link:hover { background: var(--nbd-secondary-soft); color: var(--nbd-primary-strong); }
.nbd-b-ghost-light .wp-block-button__link { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.45); }
.nbd-b-ghost-light .wp-block-button__link:hover { background: rgb(255 255 255 / 0.1); color: #fff; border-color: #fff; }

.nbd-btn--primary { background: var(--nbd-primary); }
.nbd-btn--block { display: flex; inline-size: 100%; }
.nbd-btn { white-space: nowrap; }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 8px 0; }
.wp-block-buttons.nbd-center { justify-content: center; margin-block-start: 40px; }
.wp-block-button { margin: 0; }

.nbd-iconbtn {
	display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px;
	border: 0; border-radius: 50%; background: transparent; color: var(--nbd-ink); cursor: pointer; text-decoration: none;
}
.nbd-iconbtn:hover { background: var(--nbd-primary-soft); color: var(--nbd-primary); }

/* ==========================================================================
   Header
   ========================================================================== */
.nbd-header {
	position: sticky; inset-block-start: 0; z-index: 100;
	background: color-mix(in srgb, var(--nbd-surface) 92%, transparent);
	backdrop-filter: saturate(1.5) blur(14px);
	border-block-end: 1px solid transparent;
	transition: box-shadow 0.25s var(--nbd-ease), border-color 0.25s var(--nbd-ease);
}
.admin-bar .nbd-header { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar .nbd-header { inset-block-start: 0; } }
.nbd-header.is-scrolled { box-shadow: var(--nbd-shadow-sm); border-color: var(--nbd-line); }

.nbd-header .nbd-container { max-inline-size: calc(1560px + 2 * var(--nbd-gutter)); }
.nbd-header__bar { display: flex; align-items: center; gap: 16px; min-block-size: var(--nbd-header-h); }

.nbd-logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; color: var(--nbd-primary); }
.nbd-logo__img { max-block-size: 50px; inline-size: auto; }
.nbd-logo__text { font-family: var(--nbd-display); font-size: 1.25rem; font-weight: 700; }

.nbd-header__nav { flex: 1; min-inline-size: 0; display: flex; justify-content: center; }
.nbd-header__nav .nbd-menu { flex-shrink: 0; }
.nbd-header__tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nbd-header__burger { display: none; }

.nbd-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; }
.nbd-menu > li { position: relative; display: flex; align-items: center; }
.nbd-menu a {
	display: block; padding-block: 10px; padding-inline: clamp(6px, 0.55vw, 11px); border-radius: 999px;
	color: var(--nbd-ink); font-family: var(--nbd-display); font-weight: 500; font-size: 0.94rem; text-decoration: none; white-space: nowrap;
	transition: color 0.2s, background-color 0.2s;
}
.nbd-menu a:hover, .nbd-menu a[aria-current="page"], .nbd-menu .current-menu-ancestor > a { color: var(--nbd-primary); background: var(--nbd-primary-soft); }

.nbd-subtoggle {
	display: inline-grid; place-items: center; inline-size: 26px; block-size: 26px; margin-inline-start: -8px;
	border: 0; border-radius: 6px; background: transparent; color: var(--nbd-muted); cursor: pointer;
}
.nbd-subtoggle .nbd-icon { inline-size: 18px; block-size: 18px; transition: transform 0.2s var(--nbd-ease); }
.nbd-subtoggle[aria-expanded="true"] .nbd-icon { transform: rotate(180deg); }

.nbd-menu .sub-menu {
	position: absolute; inset-block-start: calc(100% + 10px); inset-inline-start: 0; z-index: 10;
	list-style: none; margin: 0; padding: 8px; min-inline-size: 230px;
	background: var(--nbd-surface); border: 1px solid var(--nbd-line); border-radius: var(--nbd-radius-lg); box-shadow: var(--nbd-shadow);
}
.nbd-menu .sub-menu a { padding-block: 10px; padding-inline: 14px; border-radius: var(--nbd-radius); font-size: 0.93rem; }

@media (hover: hover) and (min-width: 1181px) {
	.nbd-header__nav .nbd-menu > li:hover > .sub-menu,
	.nbd-header__nav .nbd-menu > li:focus-within > .sub-menu,
	.nbd-header__nav .nbd-menu > li:hover > .sub-menu[hidden] { display: block; }
	.nbd-header__nav .nbd-menu > li:hover > .sub-menu::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: -12px; block-size: 12px; }
}

/* Language switcher */
.nbd-langs { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nbd-langs a {
	display: inline-grid; place-items: center; min-inline-size: 40px; block-size: 36px; padding-inline: 8px;
	border-radius: 999px; border: 1px solid var(--nbd-line); font-size: var(--nbd-text-sm); font-weight: 600; color: var(--nbd-muted); text-decoration: none;
	font-family: 'NBD Latin', var(--nbd-font);
}
.nbd-langs a:hover { color: var(--nbd-primary); border-color: var(--nbd-primary); }
.nbd-langs a[aria-current="true"] { color: var(--nbd-on-primary); background: var(--nbd-primary); border-color: var(--nbd-primary); }

.nbd-langmenu { position: relative; }
.nbd-langmenu__btn {
	display: inline-flex; align-items: center; gap: 2px; block-size: 42px; padding-inline: 12px;
	border: 1px solid var(--nbd-line); border-radius: 999px; background: transparent; color: var(--nbd-ink); cursor: pointer;
	font: inherit; font-family: 'NBD Latin', var(--nbd-font); font-size: var(--nbd-text-sm); font-weight: 600;
}
.nbd-langmenu__btn:hover { border-color: var(--nbd-primary); color: var(--nbd-primary); }
.nbd-langmenu__btn .nbd-icon { inline-size: 18px; block-size: 18px; transition: transform 0.2s var(--nbd-ease); }
.nbd-langmenu__btn[aria-expanded="true"] .nbd-icon { transform: rotate(180deg); }
.nbd-langmenu__list {
	position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 10;
	list-style: none; margin: 0; padding: 6px; min-inline-size: 190px;
	background: var(--nbd-surface); border: 1px solid var(--nbd-line); border-radius: var(--nbd-radius-lg); box-shadow: var(--nbd-shadow);
}
.nbd-langmenu__list a { display: flex; align-items: center; gap: 10px; padding-block: 9px; padding-inline: 12px; border-radius: var(--nbd-radius); color: var(--nbd-ink); text-decoration: none; }
.nbd-langmenu__list a:hover { background: var(--nbd-primary-soft); color: var(--nbd-primary); }
.nbd-langmenu__list a[aria-current="true"] { font-weight: 700; color: var(--nbd-primary); }
.nbd-langmenu__code { inline-size: 28px; font-family: 'NBD Latin', var(--nbd-font); font-size: 0.78rem; font-weight: 700; color: var(--nbd-muted); }

.nbd-header__donate { min-block-size: 44px; padding-inline: 20px; }

/* Search panel */
.nbd-search { border-block-start: 1px solid var(--nbd-line); background: var(--nbd-surface); padding-block: 18px; }
.nbd-search__form { display: flex; gap: 10px; }
.nbd-search__form input[type="search"] {
	flex: 1; min-inline-size: 0; min-block-size: 52px; padding-inline: 20px;
	border: 1.5px solid var(--nbd-line); border-radius: 999px; background: var(--nbd-bg); color: var(--nbd-ink); font: inherit;
}
.nbd-search__form input[type="search"]:focus { border-color: var(--nbd-primary); outline: none; box-shadow: 0 0 0 4px var(--nbd-primary-soft); }

/* Compact header: set by JS whenever the menu would not fit (depends on language and menu
   length), with a width-based fallback when JS is off. */
.nbd-header.is-compact .nbd-header__nav,
.nbd-header.is-compact .nbd-header__tools .nbd-langmenu,
.nbd-header.is-compact .nbd-header__login { display: none; }
.nbd-header.is-compact .nbd-header__burger { display: inline-grid; }
@media (max-width: 1180px) {
	.nbd-header__nav, .nbd-header__tools .nbd-langmenu, .nbd-header__login { display: none; }
	.nbd-header__burger { display: inline-grid; }
}
@media (max-width: 560px) {
	.nbd-header__donate { display: none; }
	.nbd-logo__img { max-block-size: 42px; }
	:root { --nbd-header-h: 68px; }
}

/* Drawer */
.nbd-drawer { position: fixed; inset: 0; z-index: 200; }
.nbd-drawer__backdrop { position: absolute; inset: 0; background: rgb(4 30 34 / 0.5); backdrop-filter: blur(2px); }
.nbd-drawer__panel {
	position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: min(390px, 90vw);
	display: flex; flex-direction: column; gap: 20px; overflow-y: auto;
	padding-block: 16px calc(32px + env(safe-area-inset-bottom, 0px)); padding-inline: 20px;
	background: var(--nbd-surface); box-shadow: var(--nbd-shadow-lg);
	animation: nbd-drawer-in 0.3s var(--nbd-ease);
}
.dir-rtl .nbd-drawer__panel { animation-name: nbd-drawer-in-rtl; }
@keyframes nbd-drawer-in { from { transform: translateX(100%); } }
@keyframes nbd-drawer-in-rtl { from { transform: translateX(-100%); } }
.nbd-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.nbd-menu--drawer { flex-direction: column; align-items: stretch; gap: 0; }
.nbd-menu--drawer > li { flex-wrap: wrap; border-block-end: 1px solid var(--nbd-line); }
.nbd-menu--drawer > li > a { flex: 1; padding-block: 14px; font-size: 1.05rem; border-radius: var(--nbd-radius); }
.nbd-menu--drawer .nbd-subtoggle { inline-size: 44px; block-size: 44px; }
.nbd-menu--drawer .sub-menu { position: static; inline-size: 100%; box-shadow: none; border: 0; padding: 0 0 8px; padding-inline-start: 14px; background: transparent; }
.nbd-drawer__section { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.nbd-drawer__section > a { font-weight: 600; text-decoration: none; }
.nbd-drawer__label { inline-size: 100%; margin: 0; font-size: var(--nbd-text-sm); color: var(--nbd-muted); }
body.nbd-lock { overflow: hidden; }

/* ==========================================================================
   Section system (pages built from blocks)
   ========================================================================== */
.nbd-sections { overflow-x: clip; }

.nbd-section {
	position: relative;
	padding-block: var(--nbd-section);
	padding-inline: max(var(--nbd-gutter), calc((100% - var(--nbd-container)) / 2));
}
.nbd-section--tight { padding-block: clamp(40px, 6vw, 72px); }
.nbd-section--tint { background: var(--nbd-tint); }
.nbd-section--dark { background: var(--nbd-primary); color: rgb(255 255 255 / 0.86); }
.nbd-section--dark :is(h1, h2, h3, h4) { color: #fff; }
.nbd-sections > .nbd-section + .nbd-section--plain { padding-block-start: calc(var(--nbd-section) * 0.6); }
.nbd-sections > .nbd-section--plain + .nbd-section--plain { padding-block-start: 0; }

/* Section heading cluster */
.nbd-head { max-inline-size: 720px; margin-block-end: clamp(32px, 4vw, 52px); }
.nbd-head--center { margin-inline: auto; text-align: center; }
.nbd-head--center .nbd-eyebrow { justify-content: center; }
.nbd-head--row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: end; max-inline-size: none; }
.nbd-head--row > * { grid-column: 1; }
.nbd-head--row > .nbd-more { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0; }
@media (max-width: 720px) { .nbd-head--row { grid-template-columns: minmax(0, 1fr); } .nbd-head--row > .nbd-more { grid-column: 1; grid-row: auto; margin-block-start: 8px; } }

.nbd-eyebrow {
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 14px; font-family: var(--nbd-display); font-size: 0.92rem; font-weight: 600; color: var(--nbd-secondary-cta);
}
.nbd-eyebrow::before { content: ""; inline-size: 26px; block-size: 3px; border-radius: 3px; background: currentColor; }
.nbd-section--dark .nbd-eyebrow, .nbd-eyebrow--light { color: color-mix(in srgb, var(--nbd-secondary) 60%, #fff); }
.nbd-title { margin-block-end: 14px; }
.nbd-lead { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); color: var(--nbd-muted); max-inline-size: 64ch; }
.nbd-section--dark .nbd-lead { color: rgb(255 255 255 / 0.78); }
.nbd-more { margin: 0; }
.nbd-more a {
	display: inline-flex; align-items: center; gap: 8px; font-family: var(--nbd-display); font-weight: 600; text-decoration: none; white-space: nowrap;
	padding-block: 10px; padding-inline: 18px; border-radius: 999px; background: var(--nbd-primary-soft);
}
.nbd-more a::after { content: "←"; transition: transform 0.2s var(--nbd-ease); }
.dir-ltr .nbd-more a::after { content: "→"; }
.nbd-more a:hover::after { transform: translateX(-4px); }
.dir-ltr .nbd-more a:hover::after { transform: translateX(4px); }

/* Core columns inside our sections */
.nbd-sections .wp-block-columns { display: flex; gap: clamp(28px, 5vw, 72px); margin: 0; align-items: center; flex-wrap: nowrap; }
.nbd-sections .wp-block-column { flex: 1 1 0; min-inline-size: 0; }
@media (max-width: 900px) {
	.nbd-sections .wp-block-columns { flex-direction: column; align-items: stretch; }
	/* Row layouts use flex-basis 0; in a vertical stack that would collapse media to zero height. */
	.nbd-sections .wp-block-columns > .wp-block-column { flex: none !important; inline-size: 100%; }
	.nbd-split--form .nbd-split__aside { position: static; }
	.nbd-hero__visual { inline-size: 100%; }
}

/* Pulse line */
.nbd-pulse { display: block; color: var(--nbd-secondary); overflow: visible; }
.nbd-pulse path { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
	.nbd-pulse path { animation: nbd-draw 1.6s 0.25s var(--nbd-ease) both; }
}
@keyframes nbd-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.nbd-hero {
	position: relative;
	padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px);
	padding-inline: max(var(--nbd-gutter), calc((100% - var(--nbd-container)) / 2));
	background:
		radial-gradient(60% 70% at 100% 0%, color-mix(in srgb, var(--nbd-secondary) 9%, transparent), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--nbd-primary) 10%, transparent), transparent 70%),
		var(--nbd-surface);
	overflow: hidden;
}
.dir-ltr .nbd-hero { background:
		radial-gradient(60% 70% at 0% 0%, color-mix(in srgb, var(--nbd-secondary) 9%, transparent), transparent 70%),
		radial-gradient(50% 60% at 100% 100%, color-mix(in srgb, var(--nbd-primary) 10%, transparent), transparent 70%),
		var(--nbd-surface); }
.nbd-sections .nbd-hero__cols { align-items: center; }
.nbd-hero__text { flex: 1.1 1 0 !important; }
.nbd-hero__media { flex: 0.9 1 0 !important; }
.nbd-hero__title { font-size: var(--nbd-hero); line-height: 1.18; margin-block-end: 6px; }
.nbd-hero__pulse { inline-size: min(300px, 70%); block-size: 64px; margin-block: 4px 18px; }
.nbd-hero .nbd-lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem); margin-block-end: 28px; }

.nbd-hero__mini { display: flex; flex-wrap: wrap; gap: 0; margin-block-start: 40px; padding-block-start: 28px; border-block-start: 1px solid var(--nbd-line); }
.nbd-mini { flex: 1 1 0; min-inline-size: 0; padding-inline: clamp(10px, 2vw, 20px); border-inline-start: 1px solid var(--nbd-line); }
.nbd-mini:first-child { padding-inline-start: 0; border-inline-start: 0; }
.nbd-mini__num { margin: 0; font-family: var(--nbd-display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 700; color: var(--nbd-primary); line-height: 1.1; }
.nbd-mini__label { margin: 4px 0 0; font-size: 0.92rem; color: var(--nbd-muted); }

.nbd-hero__visual { position: relative; aspect-ratio: 4 / 4.4; max-inline-size: 540px; margin-inline: auto; }
.nbd-hero__frame {
	position: absolute; inset: 6% 4% 0 8%;
	border-radius: 48% 52% 40% 60% / 38% 42% 58% 62%;
	overflow: hidden; box-shadow: var(--nbd-shadow-lg);
	background: var(--nbd-primary);
}
.nbd-hero__frame img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.nbd-dot { position: absolute; border-radius: 50%; }
.nbd-dot--1 { inline-size: 16%; aspect-ratio: 1; background: var(--nbd-primary); inset-block-start: 0; inset-inline-end: 6%; }
.nbd-dot--2 { inline-size: 7%; aspect-ratio: 1; background: var(--nbd-secondary); inset-block-end: 14%; inset-inline-start: 0; }
.nbd-dot--3 { inline-size: 4.5%; aspect-ratio: 1; background: var(--nbd-primary); inset-block-end: 4%; inset-inline-start: 12%; }
.nbd-hero__float {
	position: absolute; display: flex; align-items: center; gap: 10px;
	padding-block: 12px; padding-inline: 16px; border-radius: 18px;
	background: var(--nbd-surface); box-shadow: var(--nbd-shadow); font-family: var(--nbd-display); font-size: 0.92rem; color: var(--nbd-ink);
}
.nbd-hero__float--a { inset-block-start: 14%; inset-inline-start: -4%; }
.nbd-hero__float--a b { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.nbd-hero__float--a b::before { content: ""; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--nbd-secondary); box-shadow: 0 0 0 5px var(--nbd-secondary-soft); }
.nbd-hero__float--b { inset-block-end: 8%; inset-inline-end: -2%; }
.nbd-hero__float--b .nbd-feature__icon { inline-size: 40px; block-size: 40px; border-radius: 12px; background: var(--nbd-secondary-soft); color: var(--nbd-secondary-cta); margin: 0; }
.nbd-hero__float--b .nbd-feature__icon svg { inline-size: 24px; block-size: 24px; }

@media (prefers-reduced-motion: no-preference) {
	.nbd-hero__text > * { animation: nbd-rise 0.8s var(--nbd-ease) both; }
	.nbd-hero__text > :nth-child(2) { animation-delay: 0.08s; }
	.nbd-hero__text > :nth-child(4) { animation-delay: 0.16s; }
	.nbd-hero__text > :nth-child(5) { animation-delay: 0.22s; }
	.nbd-hero__text > :nth-child(6) { animation-delay: 0.3s; }
	.nbd-hero__visual { animation: nbd-rise 1s 0.15s var(--nbd-ease) both; }
	.nbd-hero__float--a { animation: nbd-bob 6s 1.2s ease-in-out infinite; }
	.nbd-hero__float--b { animation: nbd-bob 7s 1.6s ease-in-out infinite reverse; }
}
@keyframes nbd-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes nbd-bob { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
	.nbd-hero__visual { max-inline-size: 420px; }
	.nbd-hero__float--a { inset-inline-start: 0; }
	.nbd-hero__float--b { inset-inline-end: 0; }
}

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.nbd-pagehero {
	position: relative; overflow: hidden;
	padding-block: clamp(48px, 7vw, 96px);
	padding-inline: max(var(--nbd-gutter), calc((100% - var(--nbd-container)) / 2));
	background:
		radial-gradient(40% 80% at 100% 0%, color-mix(in srgb, var(--nbd-secondary) 8%, transparent), transparent 70%),
		var(--nbd-tint);
}
.nbd-pagehero__pulse { position: absolute; inline-size: 520px; block-size: 140px; inset-block-end: 12px; inset-inline-end: -60px; opacity: 0.16; }
.nbd-pagehero__cols { position: relative; }
.nbd-pagehero__title { margin-block-end: 16px; }
.nbd-pagehero:not(.has-media) .nbd-pagehero__text { max-inline-size: 820px; }
.nbd-pagehero__media { max-inline-size: 460px; }
.nbd-pagehero__img img, .nbd-pagehero__media img { inline-size: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 40px 40px 40px 12px; box-shadow: var(--nbd-shadow); }
.dir-rtl .nbd-pagehero__img img { border-radius: 40px 40px 12px 40px; }
.nbd-pagehero figure { margin: 0; }

/* ==========================================================================
   Split (image + text) and prose-style blocks
   ========================================================================== */
.nbd-split figure, .nbd-sections figure { margin: 0; }
.nbd-rounded img { border-radius: 32px; inline-size: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.nbd-tilt { position: relative; }
.nbd-tilt::after {
	content: ""; position: absolute; inset: 8% -4% -6% 10%; z-index: -1; border-radius: 32px;
	background: var(--nbd-secondary-soft); border: 2px dashed color-mix(in srgb, var(--nbd-secondary) 35%, transparent);
}
.nbd-split__text .nbd-head { margin-block-end: 18px; }
.nbd-split--text { align-items: flex-start !important; }
.nbd-split--text .nbd-split__aside { flex: 0.7 1 0 !important; }
.nbd-split--form { align-items: flex-start !important; }
.nbd-split--form .nbd-split__aside { flex: 0.8 1 0 !important; position: sticky; inset-block-start: calc(var(--nbd-header-h) + 24px); }

.nbd-pills { list-style: none; margin: 8px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nbd-pills li {
	display: inline-flex; align-items: center; gap: 8px; padding-block: 8px; padding-inline: 16px;
	border-radius: 999px; background: var(--nbd-surface); border: 1px solid var(--nbd-line); font-family: var(--nbd-display); font-weight: 500; font-size: 0.95rem;
}
.nbd-pills li::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--nbd-secondary); }

.nbd-checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.nbd-checks li { position: relative; padding-inline-start: 34px; }
.nbd-checks li::before {
	content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.2em; inline-size: 22px; block-size: 22px; border-radius: 50%;
	background: var(--nbd-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23085059' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Feature cards (values, goals, ways to help) */
.nbd-feature-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.nbd-feature-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); max-inline-size: 900px; margin-inline: auto; }
.nbd-feature-grid--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.nbd-feature {
	position: relative; padding: clamp(22px, 2.4vw, 32px);
	background: var(--nbd-surface); border: 1px solid var(--nbd-line); border-radius: var(--nbd-radius-lg);
	transition: transform 0.25s var(--nbd-ease), box-shadow 0.25s var(--nbd-ease), border-color 0.25s;
}
.nbd-feature:hover { transform: translateY(-4px); box-shadow: var(--nbd-shadow); border-color: transparent; }
.nbd-feature__icon {
	display: inline-grid; place-items: center; inline-size: 60px; block-size: 60px; margin-block-end: 18px;
	border-radius: 18px; background: var(--nbd-primary-soft); color: var(--nbd-primary);
}
.nbd-feature__icon svg { inline-size: 32px; block-size: 32px; }
.nbd-feature__title { font-size: 1.15rem; margin-block-end: 8px; }
.nbd-feature__text { margin: 0; color: var(--nbd-muted); font-size: 0.97rem; }
.nbd-feature-grid--line .nbd-feature { border-block-start: 4px solid var(--nbd-secondary); }
.nbd-feature-grid--line .nbd-feature__icon { background: var(--nbd-secondary-soft); color: var(--nbd-secondary-cta); }

/* Vision & mission */
.nbd-vm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; margin-block-start: clamp(40px, 6vw, 72px); }
.nbd-vm { padding: clamp(28px, 3vw, 44px); border-radius: 32px; }
.nbd-vm h3 { font-size: 1.5rem; }
.nbd-vm p { margin: 0; font-size: 1.08rem; }
.nbd-vm .nbd-feature__icon { background: rgb(255 255 255 / 0.14); color: #fff; }
.nbd-vm--vision { background: var(--nbd-primary); color: rgb(255 255 255 / 0.88); }
.nbd-vm--vision h3 { color: #fff; }
.nbd-vm--mission { background: var(--nbd-secondary-soft); }
.nbd-vm--mission .nbd-feature__icon { background: var(--nbd-surface); color: var(--nbd-secondary-cta); }

/* Stats */
.nbd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; }
.nbd-stat { padding-block: 12px; padding-inline: 24px; text-align: center; border-inline-start: 1px solid rgb(255 255 255 / 0.16); }
.nbd-stat:first-child { border-inline-start: 0; }
.nbd-stat__num { margin: 0; font-family: var(--nbd-display); font-weight: 700; font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem); line-height: 1.05; color: #fff; }
.nbd-stat__num::after { content: ""; display: block; inline-size: 36px; block-size: 4px; margin: 14px auto 0; border-radius: 4px; background: var(--nbd-secondary); }
.nbd-stat__label { margin: 10px 0 0; color: rgb(255 255 255 / 0.78); }
.nbd-section:not(.nbd-section--dark) .nbd-stat__num { color: var(--nbd-primary); }
.nbd-section:not(.nbd-section--dark) .nbd-stat__label { color: var(--nbd-muted); }
@media (max-width: 700px) { .nbd-stat { border-inline-start: 0; border-block-start: 1px solid rgb(255 255 255 / 0.16); padding-block: 22px; } .nbd-stat:first-child { border-block-start: 0; } }

/* Steps */
.nbd-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; counter-reset: step; }
.nbd-step { position: relative; padding: 32px 28px 28px; background: var(--nbd-surface); border-radius: var(--nbd-radius-lg); box-shadow: var(--nbd-shadow-sm); }
.nbd-step__num {
	display: grid; place-items: center; inline-size: 52px; block-size: 52px; margin: 0 0 18px;
	border-radius: 50%; background: var(--nbd-secondary-cta); color: #fff; font-family: var(--nbd-display); font-weight: 700; font-size: 1.3rem;
	box-shadow: 0 0 0 8px var(--nbd-secondary-soft);
}
.nbd-step__title { margin-block-end: 6px; }
.nbd-step__text { margin: 0; color: var(--nbd-muted); }
@media (min-width: 901px) {
	.nbd-steps::before {
		content: ""; position: absolute; inset-inline: 60px; inset-block-start: 58px; block-size: 2px; z-index: 0;
		background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--nbd-secondary) 45%, transparent) 0 8px, transparent 8px 16px);
	}
	.nbd-step { z-index: 1; }
}

/* CTA band */
.nbd-cta {
	position: relative; overflow: hidden; isolation: isolate;
	padding-block: clamp(44px, 6vw, 80px); padding-inline: clamp(24px, 6vw, 80px);
	border-radius: clamp(24px, 3vw, 40px);
	background: linear-gradient(135deg, var(--nbd-primary), var(--nbd-primary-deep));
	color: rgb(255 255 255 / 0.85); text-align: center;
}
.nbd-cta::before {
	content: ""; position: absolute; z-index: -1; inline-size: 420px; aspect-ratio: 1; border-radius: 50%;
	inset-block-start: -180px; inset-inline-end: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--nbd-secondary) 55%, transparent), transparent 70%);
}
.nbd-cta__pulse { position: absolute; z-index: -1; inline-size: 680px; block-size: 170px; inset-block-end: -24px; inset-inline-start: -60px; color: #fff; opacity: 0.12; }
.nbd-cta__pulse circle { display: none; }
.nbd-cta__title { color: #fff; max-inline-size: 22ch; margin-inline: auto; }
.nbd-cta__text { max-inline-size: 58ch; margin-inline: auto; margin-block-end: 28px; font-size: 1.1rem; }
.nbd-cta .wp-block-buttons { justify-content: center; }

.nbd-cta-band {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	margin-block: clamp(48px, 6vw, 80px); padding: clamp(28px, 4vw, 48px); border-radius: 32px;
	background: linear-gradient(135deg, var(--nbd-primary), var(--nbd-primary-deep)); color: rgb(255 255 255 / 0.85);
}
.nbd-cta-band h2 { color: #fff; font-size: var(--nbd-h3); margin-block-end: 6px; }
.nbd-cta-band p { margin: 0; }

/* Newsletter */
.nbd-newsletter {
	padding: clamp(28px, 4vw, 52px); border-radius: 32px;
	background: var(--nbd-surface); border: 1px solid var(--nbd-line); box-shadow: var(--nbd-shadow-sm);
}
.nbd-newsletter .nbd-feature__icon { background: var(--nbd-secondary-soft); color: var(--nbd-secondary-cta); }
.nbd-newsletter__title { margin-block-end: 8px; }
.nbd-newsletter__text { margin: 0; color: var(--nbd-muted); }
.nbd-newsletter .wp-block-column { align-self: center; }
.nbd-newsletter .nbd-feature__icon { margin-block-end: 12px; }

/* ==========================================================================
   Cards & grids (events, programs, volunteering)
   ========================================================================== */
.nbd-grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.nbd-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.nbd-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }

.nbd-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--nbd-surface); border: 1px solid var(--nbd-line); border-radius: var(--nbd-radius-lg);
	transition: transform 0.3s var(--nbd-ease), box-shadow 0.3s var(--nbd-ease), border-color 0.3s;
}
.nbd-card:hover { transform: translateY(-6px); box-shadow: var(--nbd-shadow); border-color: transparent; }
.nbd-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--nbd-primary-mid); }
.nbd-card__media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 0.6s var(--nbd-ease); }
.nbd-card:hover .nbd-card__media img { transform: scale(1.05); }
.nbd-card__ph { display: block; block-size: 100%; background: linear-gradient(135deg, var(--nbd-primary-mid), var(--nbd-secondary-soft)); }
.nbd-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 24px 24px; }
.nbd-card__title { margin: 0; font-size: 1.22rem; line-height: 1.4; }
.nbd-card__title a { color: inherit; text-decoration: none; }
.nbd-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.nbd-card__title a:hover { color: var(--nbd-primary); }
.nbd-card__text { margin: 0; color: var(--nbd-muted); font-size: 0.97rem; }
.nbd-card__cta {
	position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-block-start: auto; padding-block-start: 6px;
	font-family: var(--nbd-display); font-weight: 600; text-decoration: none;
}
.nbd-card__cta .nbd-i { inline-size: 18px; block-size: 18px; transition: transform 0.2s var(--nbd-ease); }
.dir-rtl .nbd-card__cta .nbd-i, .dir-rtl .nbd-committee em .nbd-i, .dir-rtl .nbd-next .nbd-i, .dir-rtl .nbd-minilist .nbd-i { transform: scaleX(-1); }
.nbd-card:hover .nbd-card__cta .nbd-i { transform: translateX(4px); }
.dir-rtl .nbd-card:hover .nbd-card__cta .nbd-i { transform: scaleX(-1) translateX(4px); }
.nbd-card.is-past { opacity: 0.86; }
.nbd-card.is-past .nbd-card__media img { filter: grayscale(0.5); }

.nbd-card--row { flex-direction: row; }
.nbd-card--row .nbd-card__media { flex: 0 0 38%; aspect-ratio: auto; min-block-size: 100%; }
@media (max-width: 640px) { .nbd-card--row { flex-direction: column; } .nbd-card--row .nbd-card__media { aspect-ratio: 3 / 2; } }

.nbd-datebadge {
	position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
	display: grid; justify-items: center; min-inline-size: 64px; padding-block: 8px 6px; padding-inline: 10px;
	background: var(--nbd-surface); border-radius: 16px; box-shadow: var(--nbd-shadow-sm); text-align: center; line-height: 1;
}
.nbd-datebadge b { font-family: var(--nbd-display); font-size: 1.7rem; color: var(--nbd-primary); }
.nbd-datebadge span { margin-block-start: 4px; font-size: 0.8rem; font-weight: 600; color: var(--nbd-secondary-cta); }
.nbd-flag, .nbd-pricebadge {
	position: absolute; inset-block-start: 14px; inset-inline-end: 14px;
	padding-block: 6px; padding-inline: 12px; border-radius: 999px; font-family: var(--nbd-display); font-weight: 600; font-size: 0.85rem;
}
.nbd-flag { background: rgb(15 42 46 / 0.78); color: #fff; }
.nbd-pricebadge { background: var(--nbd-secondary-cta); color: #fff; inset-inline-end: auto; inset-inline-start: 14px; }

.nbd-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.93rem; color: var(--nbd-muted); }
.nbd-meta li { display: flex; align-items: flex-start; gap: 8px; }
.nbd-meta .nbd-i { flex-shrink: 0; inline-size: 18px; block-size: 18px; margin-block-start: 0.25em; color: var(--nbd-primary); }
.nbd-meta--lg { font-size: 1.02rem; gap: 10px; }

.nbd-facts { margin: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.nbd-facts > div { display: grid; grid-template-columns: 22px auto 1fr; align-items: baseline; gap: 4px 8px; }
.nbd-facts .nbd-i { inline-size: 18px; block-size: 18px; color: var(--nbd-primary); align-self: center; }
.nbd-facts dt { font-weight: 600; color: var(--nbd-ink); }
.nbd-facts dt::after { content: ":"; }
.nbd-facts dd { margin: 0; color: var(--nbd-muted); }
.nbd-facts dd small { display: block; font-size: 0.85rem; }
.nbd-facts--box { padding: 24px; margin-block-end: 28px; background: var(--nbd-tint); border-radius: var(--nbd-radius-lg); gap: 14px; font-size: 1rem; }
.nbd-facts--box > div { grid-template-columns: 22px 110px 1fr; }
@media (max-width: 520px) { .nbd-facts--box > div { grid-template-columns: 22px 1fr; } .nbd-facts--box dd { grid-column: 2; } }

.nbd-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.nbd-chip {
	display: inline-flex; align-items: center; padding-block: 4px; padding-inline: 12px; border-radius: 999px;
	background: var(--nbd-primary-soft); color: var(--nbd-primary); font-size: 0.82rem; font-weight: 600; white-space: nowrap;
}
.nbd-chip--accent { background: var(--nbd-secondary-soft); color: var(--nbd-secondary-strong); }
.nbd-chip--muted { background: var(--nbd-line); color: var(--nbd-muted); }
.nbd-chip--ok { background: color-mix(in srgb, var(--nbd-ok) 12%, var(--nbd-surface)); color: var(--nbd-ok); }
.nbd-chip--light { background: rgb(255 255 255 / 0.14); color: #fff; }

.nbd-empty { padding: 28px; border: 1.5px dashed var(--nbd-line); border-radius: var(--nbd-radius-lg); color: var(--nbd-muted); text-align: center; }

/* Listing (events page) */
.nbd-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 32px; }
.nbd-filters select, .nbd-gallery__bar select {
	min-block-size: 46px; padding-inline: 16px 36px; border: 1.5px solid var(--nbd-line); border-radius: 999px;
	background: var(--nbd-surface); color: var(--nbd-ink); font: inherit; font-size: 0.95rem;
}
.nbd-listing__title { font-size: var(--nbd-h3); margin-block: 8px 24px; display: flex; align-items: center; gap: 12px; }
.nbd-listing__title::after { content: ""; flex: 1; block-size: 1px; background: var(--nbd-line); }
.nbd-listing .nbd-grid + .nbd-listing__title { margin-block-start: 64px; }

/* Committees */
.nbd-committee {
	position: relative; display: flex; align-items: flex-end; min-block-size: 340px; overflow: hidden; isolation: isolate;
	border-radius: var(--nbd-radius-lg); text-decoration: none; color: #fff;
}
.nbd-committee__media { position: absolute; inset: 0; z-index: -2; }
.nbd-committee__media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 0.6s var(--nbd-ease); }
.nbd-committee::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(4 36 40 / 0.92) 10%, rgb(4 36 40 / 0.2) 70%); }
.nbd-committee:hover .nbd-committee__media img { transform: scale(1.06); }
.nbd-committee__num { position: absolute; inset-block-start: 18px; inset-inline-start: 22px; font-family: var(--nbd-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: rgb(255 255 255 / 0.85); }
.nbd-committee__body { display: grid; gap: 6px; padding: 26px; }
.nbd-committee__body strong { font-family: var(--nbd-display); font-size: 1.35rem; }
.nbd-committee__body span { color: rgb(255 255 255 / 0.82); }
.nbd-committee__body em { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 8px; font-style: normal; font-weight: 600; color: color-mix(in srgb, var(--nbd-secondary) 55%, #fff); }
.nbd-committee__body em .nbd-i { inline-size: 18px; block-size: 18px; }
.nbd-committee:hover { color: #fff; }

.nbd-minilist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.nbd-minilist a { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 14px 18px; border-radius: var(--nbd-radius); background: var(--nbd-surface); border: 1px solid var(--nbd-line); text-decoration: none; color: var(--nbd-ink); }
.nbd-minilist a:hover { border-color: var(--nbd-primary); }
.nbd-minilist strong { font-family: var(--nbd-display); font-weight: 600; }
.nbd-minilist span { grid-column: 1; font-size: 0.88rem; color: var(--nbd-muted); }
.nbd-minilist .nbd-i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--nbd-primary); }

/* Gallery */
.nbd-gallery__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 28px; }
.nbd-gallery__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.nbd-filter {
	display: inline-flex; align-items: center; gap: 8px; min-block-size: 42px; padding-inline: 16px;
	border: 1.5px solid var(--nbd-line); border-radius: 999px; background: var(--nbd-surface); color: var(--nbd-ink);
	font: inherit; font-size: 0.93rem; font-weight: 600; cursor: pointer;
}
.nbd-filter span { font-size: 0.78rem; color: var(--nbd-muted); font-family: 'NBD Latin', var(--nbd-font); }
.nbd-filter:hover { border-color: var(--nbd-primary); }
.nbd-filter.is-active { background: var(--nbd-primary); border-color: var(--nbd-primary); color: #fff; }
.nbd-filter.is-active span { color: rgb(255 255 255 / 0.75); }
.nbd-gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.nbd-gallery__item[hidden] { display: none; }
@media (min-width: 900px) {
	.nbd-gallery__grid--mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
	.nbd-gallery__grid--mosaic .nbd-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
	.nbd-gallery__grid--mosaic .nbd-gallery__item:first-child .nbd-gallery__btn,
	.nbd-gallery__grid--mosaic .nbd-gallery__item:first-child img { block-size: 100%; }
	.nbd-gallery__grid--mosaic .nbd-gallery__item:first-child .nbd-gallery__cap strong { font-size: 1.3rem; }
}
.nbd-gallery__btn {
	position: relative; display: block; inline-size: 100%; padding: 0; border: 0; overflow: hidden; cursor: zoom-in;
	border-radius: var(--nbd-radius-lg); background: var(--nbd-primary-mid); text-align: start; color: #fff; font: inherit;
}
.nbd-gallery__btn img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--nbd-ease); }
.nbd-gallery__btn:hover img { transform: scale(1.06); }
.nbd-gallery__cap {
	position: absolute; inset-inline: 0; inset-block-end: 0; display: grid; gap: 2px; padding: 40px 18px 16px;
	background: linear-gradient(to top, rgb(4 36 40 / 0.9), transparent);
}
.nbd-gallery__cap small { font-size: 0.8rem; color: rgb(255 255 255 / 0.75); }
.nbd-gallery__cap strong { font-family: var(--nbd-display); font-weight: 600; line-height: 1.4; }
.nbd-gallery__btn .nbd-i { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; inline-size: 38px; block-size: 38px; padding: 8px; border-radius: 50%; background: rgb(255 255 255 / 0.9); color: var(--nbd-primary); opacity: 0; transform: scale(0.8); transition: 0.25s var(--nbd-ease); }
.nbd-gallery__btn:hover .nbd-i, .nbd-gallery__btn:focus-visible .nbd-i { opacity: 1; transform: none; }

.nbd-lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgb(4 24 27 / 0.92); }
.nbd-lightbox[hidden] { display: none; }
.nbd-lightbox__inner { position: relative; display: grid; gap: 14px; max-inline-size: min(1100px, 100%); max-block-size: 100%; color: #fff; }
.nbd-lightbox img { max-block-size: 74vh; inline-size: auto; margin-inline: auto; border-radius: var(--nbd-radius-lg); }
.nbd-lightbox__meta small { color: rgb(255 255 255 / 0.7); }
.nbd-lightbox__meta h3 { color: #fff; margin: 2px 0 6px; }
.nbd-lightbox__meta p { margin: 0; color: rgb(255 255 255 / 0.8); max-inline-size: 70ch; }
.nbd-lightbox__close, .nbd-lightbox__nav {
	position: fixed; display: grid; place-items: center; inline-size: 48px; block-size: 48px; border: 0; border-radius: 50%;
	background: rgb(255 255 255 / 0.14); color: #fff; font-size: 1.5rem; cursor: pointer;
}
.nbd-lightbox__close { inset-block-start: 20px; inset-inline-end: 20px; }
.nbd-lightbox__nav--prev { inset-inline-start: 20px; inset-block-start: 50%; }
.nbd-lightbox__nav--next { inset-inline-end: 20px; inset-block-start: 50%; }
.nbd-lightbox__close:hover, .nbd-lightbox__nav:hover { background: rgb(255 255 255 / 0.28); }

/* Donation packages */
.nbd-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; align-items: stretch; }
.nbd-package {
	position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px;
	background: var(--nbd-surface); border: 1.5px solid var(--nbd-line); border-radius: var(--nbd-radius-lg);
	transition: transform 0.25s var(--nbd-ease), box-shadow 0.25s var(--nbd-ease), border-color 0.25s;
}
.nbd-package:hover { transform: translateY(-4px); box-shadow: var(--nbd-shadow); border-color: var(--nbd-primary); }
.nbd-package__name { margin: 0; font-size: 1.2rem; }
.nbd-package__amount { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.nbd-package__amount b { font-family: var(--nbd-display); font-size: 2.4rem; line-height: 1; color: var(--nbd-primary); }
.nbd-package__amount span { font-size: 0.9rem; color: var(--nbd-muted); }
.nbd-package__text { margin: 0 0 8px; color: var(--nbd-muted); font-size: 0.93rem; flex: 1; }
.nbd-package .nbd-btn { min-block-size: 44px; }
.nbd-package.is-featured { background: var(--nbd-primary); border-color: var(--nbd-primary); color: rgb(255 255 255 / 0.85); box-shadow: var(--nbd-shadow); }
@media (min-width: 900px) { .nbd-package.is-featured { transform: translateY(-10px); } .nbd-package.is-featured:hover { transform: translateY(-14px); } }
.nbd-package.is-featured .nbd-package__name, .nbd-package.is-featured .nbd-package__amount b { color: #fff; }
.nbd-package.is-featured .nbd-package__amount span, .nbd-package.is-featured .nbd-package__text { color: rgb(255 255 255 / 0.78); }
.nbd-package__flag {
	position: absolute; inset-block-start: -13px; inset-inline-start: 24px; padding-block: 4px; padding-inline: 12px;
	border-radius: 999px; background: var(--nbd-secondary-cta); color: #fff; font-size: 0.8rem; font-weight: 700; font-family: var(--nbd-display);
}

/* Social channels */
.nbd-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.nbd-channel {
	display: grid; gap: 6px; padding: 26px; border-radius: var(--nbd-radius-lg);
	background: var(--nbd-surface); border: 1px solid var(--nbd-line); color: var(--nbd-ink); text-decoration: none;
	transition: transform 0.25s var(--nbd-ease), box-shadow 0.25s var(--nbd-ease);
}
.nbd-channel:hover { transform: translateY(-4px); box-shadow: var(--nbd-shadow); color: var(--nbd-ink); }
.nbd-channel .nbd-icon { inline-size: 44px; block-size: 44px; padding: 10px; margin-block-end: 8px; border-radius: 14px; background: var(--nbd-primary-soft); color: var(--nbd-primary); }
.nbd-channel strong { font-family: var(--nbd-display); font-size: 1.15rem; }
.nbd-channel span { color: var(--nbd-muted); font-size: 0.93rem; }

/* Contact cards */
.nbd-contact { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.nbd-contact__item { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--nbd-radius-lg); background: var(--nbd-surface); border: 1px solid var(--nbd-line); }
.nbd-contact__item .nbd-feature__icon { margin: 0; inline-size: 52px; block-size: 52px; flex-shrink: 0; }
.nbd-contact__item .nbd-feature__icon svg { inline-size: 26px; block-size: 26px; }
.nbd-contact__item small { display: block; color: var(--nbd-muted); font-size: 0.85rem; }
.nbd-contact__item span { font-family: var(--nbd-display); font-weight: 600; font-size: 1.05rem; }
.nbd-contact__item a { color: var(--nbd-ink); text-decoration: none; }
.nbd-contact + .nbd-social a { background: var(--nbd-primary-soft); color: var(--nbd-primary); }

/* Ideas & voting */
.nbd-ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.nbd-idea { display: flex; gap: 20px; align-items: center; padding: 22px 24px; background: var(--nbd-surface); border: 1px solid var(--nbd-line); border-radius: var(--nbd-radius-lg); }
.nbd-idea__main { flex: 1; min-inline-size: 0; }
.nbd-idea h3 { margin: 0 0 6px; font-size: 1.15rem; }
.nbd-idea p { margin: 0 0 10px; color: var(--nbd-muted); }
.nbd-idea__votes { display: grid; justify-items: center; min-inline-size: 84px; padding: 12px; border-radius: 18px; background: var(--nbd-primary-soft); text-align: center; }
.nbd-idea__votes b { font-family: var(--nbd-display); font-size: 1.8rem; line-height: 1; color: var(--nbd-primary); }
.nbd-idea__votes span { font-size: 0.8rem; color: var(--nbd-muted); }
.nbd-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 20px 24px; margin-block-end: 24px; border-radius: var(--nbd-radius-lg); background: var(--nbd-secondary-soft); }
.nbd-callout .nbd-i { inline-size: 28px; block-size: 28px; color: var(--nbd-secondary-cta); }
.nbd-callout p { margin: 0; flex: 1; min-inline-size: 220px; font-weight: 500; }
.nbd-round__head { margin-block-end: 20px; }
.nbd-round__head h3 { margin: 0 0 4px; }
.nbd-round__head p { margin: 0; color: var(--nbd-muted); }

/* ==========================================================================
   Forms
   ========================================================================== */
.nbd-formcard { padding: clamp(24px, 3.4vw, 44px); background: var(--nbd-surface); border-radius: 28px; box-shadow: var(--nbd-shadow); }
.nbd-formcard--narrow { max-inline-size: 720px; margin-inline: auto; }
.nbd-formcard__title { font-size: var(--nbd-h3); }
.nbd-form__title { font-size: var(--nbd-h4); margin-block-end: 16px; }
.nbd-form__intro { padding: 14px 16px; border-radius: var(--nbd-radius); background: var(--nbd-secondary-soft); font-size: 0.93rem; }
.nbd-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.nbd-field { display: grid; gap: 6px; }
.nbd-field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .nbd-form__grid { grid-template-columns: minmax(0, 1fr); } }
.nbd-field label { font-weight: 600; font-size: 0.93rem; }
.nbd-req { color: var(--nbd-secondary-cta); }
.nbd-opt { font-weight: 400; color: var(--nbd-muted); font-size: 0.85rem; }
.nbd-field :is(input, select, textarea) {
	inline-size: 100%; min-block-size: 50px; padding-block: 10px; padding-inline: 16px;
	border: 1.5px solid var(--nbd-line); border-radius: var(--nbd-radius); background: var(--nbd-bg);
	color: var(--nbd-ink); font: inherit; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.nbd-field textarea { min-block-size: 130px; resize: vertical; }
.nbd-field :is(input, select, textarea):focus { outline: none; border-color: var(--nbd-primary); background: var(--nbd-surface); box-shadow: 0 0 0 4px var(--nbd-primary-soft); }
.nbd-field.has-error :is(input, select, textarea) { border-color: var(--nbd-error); }
.nbd-field__error { margin: 0; color: var(--nbd-error); font-size: 0.87rem; }
.nbd-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-block-start: 20px; }
.nbd-form__note { margin: 0; font-size: 0.85rem; color: var(--nbd-muted); flex: 1; min-inline-size: 220px; }
.nbd-hp { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.nbd-alert { padding: 16px 18px; margin-block-end: 18px; border-radius: var(--nbd-radius); border-inline-start: 4px solid; }
.nbd-alert strong { display: block; font-family: var(--nbd-display); }
.nbd-alert p { margin: 4px 0 0; }
.nbd-alert--ok { background: color-mix(in srgb, var(--nbd-ok) 9%, var(--nbd-surface)); border-color: var(--nbd-ok); }
.nbd-alert--error { background: color-mix(in srgb, var(--nbd-error) 8%, var(--nbd-surface)); border-color: var(--nbd-error); }
.nbd-form--inline .nbd-form__grid { grid-template-columns: minmax(0, 1fr); }
.nbd-form--inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.nbd-form--inline .nbd-form__grid { flex: 1 1 240px; }
.nbd-form--inline .nbd-form__foot { margin: 0; }
.nbd-form--inline .nbd-field input { min-block-size: 54px; border-radius: 999px; padding-inline: 22px; }
.nbd-form--inline .nbd-btn { min-block-size: 54px; }

/* ==========================================================================
   Detail pages (event, program, committee, volunteering)
   ========================================================================== */
.nbd-detail__hero {
	position: relative; overflow: hidden; color: rgb(255 255 255 / 0.86);
	background: linear-gradient(135deg, var(--nbd-primary), var(--nbd-primary-deep));
	padding-block: clamp(36px, 5vw, 72px);
}
.nbd-detail__hero::after {
	content: ""; position: absolute; inline-size: 520px; aspect-ratio: 1; border-radius: 50%; inset-block-end: -300px; inset-inline-start: -160px;
	background: radial-gradient(circle, color-mix(in srgb, var(--nbd-secondary) 40%, transparent), transparent 70%);
}
.nbd-detail__hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .nbd-detail__hero-in { grid-template-columns: minmax(0, 1fr); } }
.nbd-detail__intro { display: grid; gap: 14px; justify-items: start; }
.nbd-detail__title { margin: 0; color: #fff; }
.nbd-detail__lead { margin: 0; font-size: 1.12rem; color: rgb(255 255 255 / 0.82); max-inline-size: 60ch; }
.nbd-detail__hero .nbd-meta { color: rgb(255 255 255 / 0.86); }
.nbd-detail__hero .nbd-meta .nbd-i { color: color-mix(in srgb, var(--nbd-secondary) 60%, #fff); }
.nbd-detail__media { margin: 0; }
.nbd-detail__media img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--nbd-shadow-lg); }

.nbd-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: rgb(255 255 255 / 0.7); }
.nbd-crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 6px; opacity: 0.6; }
.nbd-crumbs a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.nbd-crumbs a:hover { color: #fff; text-decoration: underline; }

.nbd-detail__body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(40px, 6vw, 80px); }
.nbd-detail__body--single { grid-template-columns: minmax(0, 1fr); max-inline-size: calc(900px + 2 * var(--nbd-gutter)); }
@media (max-width: 960px) { .nbd-detail__body { grid-template-columns: minmax(0, 1fr); } }
.nbd-detail__side { position: sticky; inset-block-start: calc(var(--nbd-header-h) + 20px); }
.nbd-detail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 24px; }
.nbd-detail__gallery { padding-block-end: clamp(40px, 6vw, 80px); }

.nbd-panel { padding: 26px; background: var(--nbd-surface); border-radius: 28px; box-shadow: var(--nbd-shadow); border: 1px solid var(--nbd-line); }
.nbd-panel__title { font-size: 1.3rem; margin-block-end: 14px; }
.nbd-panel__note { font-size: 0.9rem; color: var(--nbd-muted); padding: 12px 14px; border-radius: var(--nbd-radius); background: var(--nbd-tint); }
.nbd-panel .nbd-form__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.nbd-panel .nbd-field--full { grid-column: 1 / -1; }
.nbd-panel .nbd-form__foot .nbd-btn { inline-size: 100%; }

.nbd-tickets { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.nbd-tickets li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: var(--nbd-radius); background: var(--nbd-tint); }
.nbd-tickets span { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.nbd-tickets .nbd-i { color: var(--nbd-primary); inline-size: 18px; block-size: 18px; }
.nbd-tickets b { font-family: var(--nbd-display); color: var(--nbd-primary); }
.nbd-tickets small { grid-column: 1 / -1; font-size: 0.82rem; color: var(--nbd-secondary-strong); }
.nbd-tickets small.is-out { color: var(--nbd-muted); }

.nbd-next { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-block-start: 16px; padding: 14px 16px; border-radius: var(--nbd-radius); border: 1.5px dashed var(--nbd-line); text-decoration: none; color: var(--nbd-ink); }
.nbd-next small { color: var(--nbd-muted); }
.nbd-next strong { grid-column: 1; font-family: var(--nbd-display); font-weight: 600; }
.nbd-next .nbd-i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--nbd-primary); }
.nbd-next:hover { border-color: var(--nbd-primary); }

.nbd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block-start: 22px; border-block-start: 1px solid var(--nbd-line); }
.nbd-share__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-inline-end: 6px; }
.nbd-share__label .nbd-i { inline-size: 18px; block-size: 18px; }
.nbd-share a, .nbd-share button {
	display: inline-flex; align-items: center; gap: 6px; min-block-size: 38px; padding-inline: 14px; border-radius: 999px;
	border: 1px solid var(--nbd-line); background: var(--nbd-surface); color: var(--nbd-ink); font: inherit; font-size: 0.88rem; text-decoration: none; cursor: pointer;
}
.nbd-share a:hover, .nbd-share button:hover { border-color: var(--nbd-primary); color: var(--nbd-primary); }
.nbd-share .nbd-i { inline-size: 16px; block-size: 16px; }

.nbd-tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.nbd-tasks li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--nbd-radius-lg); background: var(--nbd-surface); border: 1px solid var(--nbd-line); font-weight: 500; }
.nbd-tasks .nbd-i { flex-shrink: 0; inline-size: 32px; block-size: 32px; padding: 6px; border-radius: 10px; background: var(--nbd-secondary-soft); color: var(--nbd-secondary-cta); }

/* ==========================================================================
   Generic content (classic pages, posts, legal)
   ========================================================================== */
.nbd-page { padding-block: clamp(32px, 6vw, 72px); }
.nbd-page__head { margin-block-end: 28px; }
.nbd-page__title { margin: 0; }
.nbd-prose { max-inline-size: 72ch; font-size: 1.08rem; }
.nbd-prose > :first-child { margin-block-start: 0; }
.nbd-prose h2 { font-size: var(--nbd-h3); margin-block: 1.6em 0.5em; }
.nbd-prose img { border-radius: var(--nbd-radius); }
.nbd-legal h2:first-child { margin-block-start: 0; }
.nbd-entry__media { margin: 0 0 28px; }
.nbd-entry__media img { inline-size: 100%; border-radius: var(--nbd-radius-lg); }

.nbd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.nbd-card__more { margin-block-start: auto; font-weight: 600; }

.nbd-404 { text-align: center; display: grid; justify-items: center; gap: 8px; }
.nbd-404__code { margin: 0; font-family: var(--nbd-display); font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; line-height: 1; color: var(--nbd-secondary); }
.nbd-404 .nbd-search__form { inline-size: min(560px, 100%); margin-block: 16px; }

.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 32px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-inline-size: 44px; block-size: 44px; padding-inline: 12px; border-radius: 999px; background: var(--nbd-surface); border: 1px solid var(--nbd-line); text-decoration: none; }
.nav-links .current { background: var(--nbd-primary); color: var(--nbd-on-primary); border-color: var(--nbd-primary); }

/* ==========================================================================
   Footer
   ========================================================================== */
.nbd-footer { position: relative; overflow: hidden; background: var(--nbd-primary-deep); color: rgb(255 255 255 / 0.78); }
.nbd-footer::before {
	content: ""; position: absolute; inline-size: 600px; aspect-ratio: 1; border-radius: 50%; inset-block-start: -360px; inset-inline-end: -200px;
	background: radial-gradient(circle, color-mix(in srgb, var(--nbd-primary) 90%, #fff 10%), transparent 70%); opacity: 0.6;
}
.nbd-footer a { color: inherit; text-decoration: none; }
.nbd-footer a:hover { color: #fff; }
.nbd-footer__grid {
	position: relative; display: grid; gap: 40px 32px; padding-block: clamp(56px, 7vw, 88px);
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) { .nbd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nbd-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.nbd-footer__brand .nbd-logo__img { max-block-size: 56px; }
.nbd-footer__brand p { margin-block-start: 18px; max-inline-size: 40ch; font-size: 0.95rem; }
.nbd-footer__title { margin: 0 0 16px; font-size: 1rem; color: #fff; }
.nbd-footer__subtitle { margin: 22px 0 12px; font-size: 0.95rem; color: #fff; }
.nbd-footer__links, .nbd-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nbd-footer__links a { position: relative; }
.nbd-footer__links a:hover { padding-inline-start: 4px; transition: padding 0.2s; }
.nbd-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.nbd-footer__contact .nbd-icon { flex-shrink: 0; margin-block-start: 5px; color: var(--nbd-secondary); }

.nbd-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nbd-social a { display: inline-grid; place-items: center; inline-size: 42px; block-size: 42px; border-radius: 50%; background: rgb(255 255 255 / 0.1); transition: background-color 0.2s, transform 0.2s; }
.nbd-social a:hover { background: var(--nbd-secondary-cta); color: #fff; transform: translateY(-2px); }

.nbd-footer__bottom { position: relative; border-block-start: 1px solid rgb(255 255 255 / 0.12); font-size: var(--nbd-text-sm); }
.nbd-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; }
.nbd-footer__bottom p { margin: 0; }
.nbd-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

.nbd-wa {
	position: fixed; z-index: 90; inset-inline-start: 20px; inset-block-end: calc(20px + env(safe-area-inset-bottom, 0px));
	display: grid; place-items: center; inline-size: 58px; block-size: 58px; border-radius: 50%;
	background: #25D366; color: #fff; box-shadow: 0 12px 30px -10px rgb(37 211 102 / 0.7);
}
.nbd-wa .nbd-icon { inline-size: 30px; block-size: 30px; }
.nbd-wa:hover { color: #fff; transform: translateY(-2px); }

.nbd-nav-empty { margin: 0; font-size: var(--nbd-text-sm); }

/* ==========================================================================
   Scroll reveal (only when JS adds .nbd-js; content stays visible without JS)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.nbd-js .nbd-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--nbd-ease), transform 0.8s var(--nbd-ease); }
	.nbd-js .nbd-reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Elementor: Nabd widgets, containers, header & footer templates
   Widgets reuse the section components above; these rules cover the markup that
   differs from the block version (.nbd-cols instead of core columns, .nbd-actions…).
   ========================================================================== */
.elementor { overflow-x: clip; }

/* Two-column layouts inside widgets */
.nbd-cols { display: flex; gap: clamp(28px, 5vw, 72px); align-items: center; }
.nbd-cols > * { flex: 1 1 0; min-inline-size: 0; }
@media (max-width: 900px) {
	.nbd-cols { flex-direction: column; align-items: stretch; }
	.nbd-cols > * { flex: none !important; inline-size: 100%; }
}
.nbd-split--end > .nbd-split__media { order: 2; }
.nbd-split .nbd-split__body > :last-child { margin-block-end: 0; }
.nbd-split .nbd-split__body p { margin-block: 0 1em; }

/* Button rows */
.nbd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 8px 0; }
.nbd-cta .nbd-actions, .nbd-cta--center .nbd-actions { justify-content: center; }
.nbd-btn--light { background: var(--nbd-surface); color: var(--nbd-primary); }
.nbd-btn--light:hover { background: var(--nbd-secondary-soft); color: var(--nbd-primary-strong); }
.nbd-btn--ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.45); }
.nbd-btn--ghost-light:hover { background: rgb(255 255 255 / 0.1); color: #fff; border-color: #fff; }
.elementor-widget-nbd-button.nbd-center, .nbd-center > .nbd-btn { text-align: center; }

/* CTA alignment */
.nbd-cta--start { text-align: start; }
.nbd-cta--start .nbd-cta__title, .nbd-cta--start .nbd-cta__text { margin-inline: 0; }
.nbd-cta--start .nbd-actions { justify-content: flex-start; }

/* Stats / steps variants */
.nbd-stats--light .nbd-stat { border-color: var(--nbd-line); }
.nbd-stats--light .nbd-stat__num { color: var(--nbd-primary); }
.nbd-stats--light .nbd-stat__label { color: var(--nbd-muted); }
.nbd-stats.no-bar .nbd-stat__num::after { display: none; }
.nbd-steps.no-line::before { display: none; }

/* Feature grid column presets */
.nbd-feature-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.nbd-feature-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
a.nbd-feature { display: block; color: inherit; text-decoration: none; }

/* Vision / mission light tone */
.nbd-vm--light { background: var(--nbd-surface); border: 1px solid var(--nbd-line); }
.nbd-vm--light .nbd-feature__icon { background: var(--nbd-primary-soft); color: var(--nbd-primary); }
.elementor-widget-nbd-highlights .nbd-vm-grid { margin-block-start: 0; }

/* Hero visual shapes */
.nbd-shape--rounded .nbd-hero__frame { border-radius: 40px; }
.nbd-shape--circle .nbd-hero__frame { border-radius: 50%; inset: 6%; }
.nbd-hero__visual.no-dots .nbd-dot { display: none; }
.nbd-hero__cols { align-items: center; }

/* Tasks list */
.nbd-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nbd-tasks li { display: flex; gap: 10px; align-items: flex-start; }
.nbd-tasks .nbd-i { flex-shrink: 0; inline-size: 20px; block-size: 20px; margin-block-start: 0.2em; color: var(--nbd-primary); }

/* Sections built as Elementor containers: tone classes set text colours, the container
   settings own padding and background so they stay editable in the panel. */
.nbd-el-section { position: relative; }
.e-con.nbd-section--dark { color: rgb(255 255 255 / 0.86); }
.e-con.nbd-section--dark :is(h1, h2, h3, h4) { color: #fff; }
.e-con.nbd-section--dark .nbd-lead { color: rgb(255 255 255 / 0.78); }
.e-con.nbd-section--dark .nbd-eyebrow { color: color-mix(in srgb, var(--nbd-secondary) 60%, #fff); }
.e-con.nbd-section--dark .nbd-stats--light .nbd-stat__num { color: #fff; }
.elementor .nbd-head { margin-block-end: 0; }
.elementor-widget-nbd-heading.nbd-head-center .nbd-head, .nbd-head--center { margin-inline: auto; }
.nbd-el-formcard { padding: clamp(24px, 3.4vw, 44px); background: var(--nbd-surface); border-radius: 28px; box-shadow: var(--nbd-shadow); }
@media (min-width: 901px) {
	.nbd-el-sticky { position: sticky; inset-block-start: calc(var(--nbd-header-h) + 24px); }
}

/* Header built in Elementor (نبض ← الهيدر والفوتر والقوالب) */
.nbd-header--el > .elementor { overflow: visible; }
.nbd-header--el .e-con { --min-height: 0; }
.nbd-navw { display: flex; align-items: center; justify-content: center; inline-size: 100%; min-inline-size: 0; }
.nbd-navw .nbd-header__nav { flex: 1; }
.elementor-widget-nbd-nav { flex-grow: 1; min-inline-size: 0; }
.nbd-tools { display: flex; align-items: center; gap: 6px; }
.nbd-header--el .nbd-search { position: absolute; inset-inline: 0; inset-block-start: 100%; box-shadow: var(--nbd-shadow); }
.nbd-header--el .elementor-widget-nbd-header-tools { position: static; }
.nbd-header--el .e-con, .nbd-header--el .e-con-inner { position: static; }
.nbd-header.is-compact .nbd-tools .nbd-langmenu { display: none; }
.nbd-header.is-compact .nbd-navw { justify-content: flex-end; }
@media (max-width: 1180px) {
	.nbd-tools .nbd-langmenu { display: none; }
	.nbd-navw { justify-content: flex-end; }
}
.nbd-header--el .elementor-widget-nbd-button, .nbd-header--el .elementor-widget-nbd-logo, .nbd-header--el .elementor-widget-nbd-header-tools { flex-shrink: 0; }
.nbd-el-doc.nbd-header { position: relative; inset-block-start: 0; }
.nbd-el-doc.nbd-footer-el { min-block-size: 200px; }

/* Footer built in Elementor */
.nbd-footer-el { color: rgb(255 255 255 / 0.78); }
.nbd-footer-el a { color: inherit; }
.nbd-footer-el a:hover { color: #fff; }
.nbd-footer-el :is(h2, h3, h4) { color: #fff; }
.nbd-footer-el .nbd-footer__links, .nbd-footer-el .nbd-footer__legal { margin: 0; }
.nbd-copyright { margin: 0; font-size: var(--nbd-text-sm); }
.nbd-site-text { margin: 0; }
.nbd-site-text p { margin: 0; }

/* Elementor editor niceties */
.elementor-editor-active .nbd-reveal { opacity: 1 !important; transform: none !important; }
.elementor-editor-active .nbd-drawer:not([hidden]) { z-index: 9999; }
