/*
Theme Name:   New Being Foundation
Theme URI:    https://newbeingfoundation.org
Description:  Child theme of Hello Elementor for the New Being Foundation.
Author:       New Being Foundation
Template:     hello-elementor
Version:      0.2.0
Text Domain:  nbf
*/

/* ------------------------------------------------------------------
   Tokens. Colours follow the NBF logo, brightened for print-poster
   contrast. Elementor's global colours mirror these.
   ------------------------------------------------------------------ */
:root {
	--nbf-teal: #1a8fc4;
	--nbf-green: #3aa64a;
	--nbf-orange: #f07a12;
	--nbf-red: #e8434f;
	--nbf-ink: #34324a;
	--nbf-ink-soft: #5f5d70;
	--nbf-line: #d9d8e0;
	--nbf-paper: #ffffff;
	--nbf-mist: #f4f4f7;
	--nbf-font: "Jost", "Helvetica Neue", Arial, sans-serif;
	--nbf-wrap: 1200px;
	--nbf-gutter: clamp(16px, 4vw, 48px);
}

body {
	font-family: var(--nbf-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--nbf-ink-soft);
	background: var(--nbf-paper);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--nbf-font);
	font-weight: 600;
	line-height: 1.2;
	color: var(--nbf-ink);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

a {
	color: var(--nbf-teal);
}

a:hover,
a:focus {
	color: var(--nbf-ink);
}

:focus-visible {
	outline: 3px solid var(--nbf-orange);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------
   Shared pieces
   ------------------------------------------------------------------ */

/* Dark text band behind a headline, one band per line. */
.nbf-label {
	display: inline;
	padding: 0.12em 0.45em;
	background: var(--nbf-ink);
	color: var(--nbf-paper);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.nbf-label--light {
	background: var(--nbf-paper);
	color: var(--nbf-ink);
}

.nbf-tag {
	display: inline-block;
	padding: 0.4em 1em;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nbf-paper);
	background: var(--nbf-teal);
}

.nbf-tag--green { background: var(--nbf-green); }
.nbf-tag--orange { background: var(--nbf-orange); }
.nbf-tag--red { background: var(--nbf-red); }

.nbf-button {
	display: inline-block;
	padding: 0.7em 1.8em;
	font-family: var(--nbf-font);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid var(--nbf-orange);
	background: var(--nbf-orange);
	color: var(--nbf-paper);
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.nbf-button:hover,
.nbf-button:focus {
	background: var(--nbf-ink);
	border-color: var(--nbf-ink);
	color: var(--nbf-paper);
}

.nbf-button--outline {
	background: transparent;
	border-color: var(--nbf-ink);
	color: var(--nbf-ink);
}

.nbf-section-title .elementor-heading-title {
	margin: 0;
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-align: center;
	color: var(--nbf-ink);
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.nbf-header {
	position: relative;
	z-index: 50;
	background: var(--nbf-paper);
	border-bottom: 1px solid var(--nbf-line);
}

.nbf-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: 14px var(--nbf-gutter);
}

.nbf-header__brand img {
	display: block;
	width: auto;
	height: 64px;
}

.nbf-header__name {
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--nbf-ink);
}

.nbf-header__nav {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 32px;
}

.nbf-menu {
	display: flex;
	flex: 1;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nbf-menu a {
	display: block;
	padding: 6px 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--nbf-ink);
	border-bottom: 2px solid transparent;
}

.nbf-menu a:hover,
.nbf-menu a:focus,
.nbf-menu .current-menu-item > a,
.nbf-menu .current-menu-ancestor > a {
	border-bottom-color: var(--nbf-teal);
}

/* Dropdowns: open on hover or keyboard focus. */
.nbf-menu > li {
	position: relative;
}

.nbf-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 0 3px 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.nbf-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -18px;
	z-index: 60;
	min-width: 250px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: var(--nbf-paper);
	border-top: 3px solid var(--nbf-teal);
	box-shadow: 0 14px 30px rgba(31, 29, 48, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.nbf-menu li:hover > .sub-menu,
.nbf-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nbf-menu li.nbf-closed > .sub-menu {
	opacity: 0;
	visibility: hidden;
}

.nbf-menu .sub-menu a {
	padding: 10px 18px;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
	border-bottom: 0;
}

.nbf-menu .sub-menu a:hover,
.nbf-menu .sub-menu a:focus,
.nbf-menu .sub-menu .current-menu-item > a {
	color: var(--nbf-teal);
	background: var(--nbf-mist);
}

.nbf-header__toggle {
	display: none;
}

@media (max-width: 1100px) {
	.nbf-header__inner {
		justify-content: space-between;
	}

	.nbf-header__brand img {
		height: 44px;
	}

	.nbf-header__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.nbf-header__bars,
	.nbf-header__bars::before,
	.nbf-header__bars::after {
		display: block;
		width: 24px;
		height: 2px;
		background: var(--nbf-ink);
		transition: transform 0.2s;
	}

	.nbf-header__bars {
		position: relative;
	}

	.nbf-header__bars::before,
	.nbf-header__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.nbf-header__bars::before { top: -7px; }
	.nbf-header__bars::after { top: 7px; }

	.nbf-menu-open .nbf-header__bars { background: transparent; }
	.nbf-menu-open .nbf-header__bars::before { transform: translateY(7px) rotate(45deg); }
	.nbf-menu-open .nbf-header__bars::after { transform: translateY(-7px) rotate(-45deg); }

	.nbf-header__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 16px var(--nbf-gutter) 24px;
		background: var(--nbf-paper);
		border-bottom: 1px solid var(--nbf-line);
	}

	.nbf-menu-open .nbf-header__nav {
		display: flex;
	}

	.nbf-menu {
		flex-direction: column;
		gap: 0;
	}

	.nbf-menu a {
		padding: 12px 0;
		border-bottom: 1px solid var(--nbf-line);
	}

	.nbf-header__nav {
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}

	.nbf-menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 16px;
		border-top: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nbf-menu .sub-menu a {
		padding: 10px 0;
		border-bottom: 1px solid var(--nbf-line);
	}

	.nbf-menu .menu-item-has-children > a::after {
		display: none;
	}

	.nbf-header__cta {
		text-align: center;
	}
}

/* Fallback if Elementor's generated page CSS is missing: containers stack as columns
   instead of collapsing. Elementor's own rules are more specific and win when present. */
.elementor .e-con {
	--display: flex;
	--flex-direction: column;
}

/* ------------------------------------------------------------------
   Homepage hero: four photo tiles, one coloured word per tile.
   Elementor containers carry the classes; widgets inside are headings.
   ------------------------------------------------------------------ */
.elementor .e-con.nbf-hero {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	--gap: 0;
	--row-gap: 0;
	--column-gap: 0;
	position: relative;
	display: grid;
	gap: 0;
	grid-template-columns: repeat(4, 1fr);
	min-height: clamp(520px, 52vw, 720px);
	overflow: hidden;
	background: var(--nbf-ink);
}

.elementor .e-con.nbf-hero__tile {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	position: relative;
	display: block;
	min-height: 100%;
	background-size: cover;
	background-position: center;
}

/* Darkens the lower edge so the band and join line stay readable on any photo. */
.elementor .e-con.nbf-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	z-index: 1;
	height: 32%;
	background: linear-gradient(to top, rgba(20, 18, 34, 0.75), transparent);
	pointer-events: none;
}

.elementor .e-con .elementor-widget.nbf-hero__word {
	width: max-content;
	max-width: none;
}

.nbf-hero__word {
	position: absolute;
	top: 18%;
	left: 0;
	z-index: 2;
}

.nbf-hero__tile:nth-child(2 of .nbf-hero__tile) .nbf-hero__word { top: 21%; }
.nbf-hero__tile:nth-child(3 of .nbf-hero__tile) .nbf-hero__word { top: 24%; }
.nbf-hero__tile:nth-child(4 of .nbf-hero__tile) .nbf-hero__word { top: 21%; }

.nbf-hero__word .elementor-heading-title {
	display: inline-block;
	margin: 0;
	padding: 0.06em 0.16em 0;
	font-size: clamp(44px, 6.6vw, 112px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	background: var(--nbf-paper);
}

.nbf-hero__tile:nth-child(1 of .nbf-hero__tile) .elementor-heading-title { color: var(--nbf-teal); }
.nbf-hero__tile:nth-child(2 of .nbf-hero__tile) .elementor-heading-title { color: var(--nbf-green); }
.nbf-hero__tile:nth-child(3 of .nbf-hero__tile) .elementor-heading-title { color: var(--nbf-red); }
.nbf-hero__tile:nth-child(4 of .nbf-hero__tile) .elementor-heading-title { color: var(--nbf-orange); }

.elementor-widget.nbf-hero__band {
	position: absolute;
	left: var(--nbf-gutter);
	bottom: 22%;
	z-index: 3;
	max-width: min(760px, 80%);
}

.nbf-hero__band .elementor-heading-title {
	margin: 0;
	font-size: clamp(18px, 2.4vw, 32px);
	font-weight: 600;
	line-height: 1.55;
	color: var(--nbf-paper);
}

.nbf-hero__band em {
	font-style: italic;
	font-weight: 700;
}

@media (max-width: 767px) {
	.elementor .e-con.nbf-hero {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(2, 1fr);
		min-height: 640px;
	}

	.nbf-hero__word,
	.nbf-hero__tile:nth-child(n of .nbf-hero__tile) .nbf-hero__word {
		top: 14%;
	}

	.nbf-hero__word .elementor-heading-title {
		font-size: 12.5vw;
	}

	.elementor-widget.nbf-hero__band {
		bottom: 120px;
		max-width: calc(100% - 2 * var(--nbf-gutter));
	}
}

/* Inner-page hero: three tiles, shorter, no join bar. */
.elementor .e-con.nbf-hero--page {
	grid-template-columns: repeat(3, 1fr);
	min-height: clamp(400px, 36vw, 520px);
}

.nbf-hero--page .nbf-hero__tile:nth-child(3 of .nbf-hero__tile) .elementor-heading-title {
	color: var(--nbf-orange);
}

.nbf-hero--page .elementor-widget.nbf-hero__band {
	bottom: 12%;
}

@media (max-width: 767px) {
	.elementor .e-con.nbf-hero--page {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: 1fr;
		min-height: 440px;
	}

	.nbf-hero--page .nbf-hero__word .elementor-heading-title {
		font-size: 10vw;
	}

	/* Stagger the words down the photos; the last one hangs from the right edge
	   so longer words ("Touch.", "Future.") never get cut off. */
	.nbf-hero--page .nbf-hero__tile:nth-child(1 of .nbf-hero__tile) .nbf-hero__word { top: 12%; }
	.nbf-hero--page .nbf-hero__tile:nth-child(2 of .nbf-hero__tile) .nbf-hero__word { top: 24%; }
	.nbf-hero--page .nbf-hero__tile:nth-child(3 of .nbf-hero__tile) .nbf-hero__word {
		top: 36%;
		left: auto;
		right: 0;
	}

	.nbf-hero--page .elementor-widget.nbf-hero__band {
		bottom: 32px;
	}
}

/* ------------------------------------------------------------------
   How we work: three teardrop photos pointing to the next step.
   ------------------------------------------------------------------ */
.elementor .e-con.nbf-section {
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: clamp(56px, 8vw, 96px) var(--nbf-gutter) 0;
}

.elementor .e-con.nbf-steps {
	--gap: clamp(24px, 4vw, 56px);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 40px;
}

.elementor .e-con.nbf-step {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	position: relative;
	display: block;
}

.nbf-step--teal { --c: var(--nbf-teal); }
.nbf-step--green { --c: var(--nbf-green); }
.nbf-step--orange { --c: var(--nbf-orange); }

.elementor-widget.nbf-step__media {
	position: relative;
	width: 86%;
	margin: 8% 0 0 2%;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 50% 0 50% 50%;
	background: var(--c);
	transform: rotate(45deg);
}

.nbf-step__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: rotate(-45deg) scale(1.42);
	filter: grayscale(1) contrast(1.1) brightness(1.1);
	mix-blend-mode: multiply;
}

.elementor-widget.nbf-step__num {
	position: absolute;
	top: -6px;
	left: 0;
	z-index: 2;
}

.nbf-step__num .elementor-heading-title {
	margin: 0;
	font-size: clamp(56px, 6vw, 84px);
	font-weight: 800;
	line-height: 1;
	color: var(--c);
	text-shadow: 3px 3px 0 var(--nbf-paper);
}

.elementor-widget.nbf-step__title {
	position: relative;
	z-index: 2;
	margin-top: -26%;
}

.nbf-step__title .elementor-heading-title {
	margin: 0;
	font-size: clamp(26px, 2.8vw, 38px);
	font-weight: 800;
	line-height: 1.32;
	letter-spacing: 0;
	color: var(--c);
}

.nbf-step__title .nbf-label {
	padding: 0 0.3em;
}

.nbf-step__text {
	margin-top: 16px;
}

.nbf-step__text p {
	margin: 0;
	font-size: 1rem;
}

@media (max-width: 860px) {
	.elementor .e-con.nbf-steps {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin-left: auto;
		margin-right: auto;
	}

	.elementor-widget.nbf-step__media {
		width: 78%;
	}
}

/* ------------------------------------------------------------------
   News cards ([nbf_latest_posts])
   ------------------------------------------------------------------ */
/* News and story sections: same width and side spacing as the other sections. */
.elementor .e-con.nbf-news {
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: clamp(56px, 8vw, 96px) var(--nbf-gutter) 0;
}

.nbf-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.5vw, 32px);
	margin-top: 40px;
}

.nbf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.nbf-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 10 / 7;
	overflow: hidden;
	background: var(--nbf-mist);
}

.nbf-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.nbf-story-card__link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.nbf-story-card__link:hover .nbf-card__title .nbf-label {
	color: var(--nbf-teal);
}

.nbf-card:hover .nbf-card__media img {
	transform: scale(1.04);
}

/* The photo zooms on hover, which puts it in its own layer: keep the tag and
   title band above it. */
.nbf-card__title,
.nbf-card .nbf-tag {
	position: relative;
	z-index: 2;
}

.nbf-card .nbf-tag {
	position: absolute;
	top: 0;
	left: clamp(16px, 2vw, 24px);
}

.nbf-card__title {
	margin: -2.2em clamp(16px, 2vw, 24px) 0;
	padding-right: 16px;
	font-size: clamp(1.05rem, 1.5vw, 1.3rem);
	font-weight: 500;
	line-height: 1.55;
}

.nbf-card__title a {
	text-decoration: none;
	color: var(--nbf-ink);
}

.nbf-card__title .nbf-label {
	padding: 0.25em 0.6em;
}

.nbf-card__excerpt {
	margin: 20px clamp(16px, 2vw, 24px) 24px;
	font-size: 0.98rem;
}

.nbf-card .nbf-button {
	margin: auto clamp(16px, 2vw, 24px) 0;
	min-width: 190px;
	text-align: center;
}

@media (max-width: 860px) {
	.nbf-cards {
		grid-template-columns: 1fr;
		gap: 48px;
	}
}

/* ------------------------------------------------------------------
   About page
   ------------------------------------------------------------------ */

/* Two columns: a large lead statement beside the body copy. */
.elementor .e-con.nbf-intro {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}

.nbf-intro__lead .elementor-heading-title {
	margin: 0;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: var(--nbf-ink);
}

.nbf-intro__lead em {
	font-style: normal;
	color: var(--nbf-teal);
}

.nbf-intro__body p:first-child {
	margin-top: 0;
}

/* Small coloured label above a heading. */
.nbf-eyebrow .elementor-heading-title {
	margin: 0 0 12px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nbf-orange);
}

.elementor-widget.nbf-section-action--left {
	margin-top: 8px;
	text-align: left;
}

.elementor .e-con.nbf-intro > .e-con {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
}

/* Mission and vision panels. */
.elementor .e-con.nbf-panels {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(24px, 4vw, 48px);
	margin-top: 40px;
}

.elementor .e-con.nbf-panel {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	position: relative;
	display: block;
}

.nbf-panel--teal { --c: var(--nbf-teal); }
.nbf-panel--green { --c: var(--nbf-green); }
.nbf-panel--red { --c: var(--nbf-red); }
.nbf-panel--orange { --c: var(--nbf-orange); }
.nbf-panel--ink { --c: var(--nbf-ink); }

/* Three-up panels (Our Work focus areas). */
.elementor .e-con.nbf-panels--3 {
	grid-template-columns: repeat(3, 1fr);
	row-gap: clamp(40px, 5vw, 64px);
}

.nbf-panels--3 .nbf-panel__title .elementor-heading-title {
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.nbf-panels--3 .nbf-panel__text p {
	font-size: 0.98rem;
}

@media (max-width: 960px) {
	.elementor .e-con.nbf-panels--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

.elementor-widget.nbf-panel__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.elementor-widget.nbf-panel__tag {
	position: absolute;
	top: 0;
	left: clamp(16px, 2vw, 24px);
	z-index: 2;
}

.nbf-panel__tag .elementor-heading-title {
	margin: 0;
	padding: 0.4em 1em;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--nbf-paper);
	background: var(--c);
}

.elementor-widget.nbf-panel__title {
	position: relative;
	z-index: 2;
	margin: -2.4em clamp(16px, 2vw, 24px) 0;
}

.nbf-panel__title .elementor-heading-title {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	font-weight: 700;
	line-height: 1.5;
	color: var(--c);
}

.nbf-panel__title .nbf-label {
	padding: 0.2em 0.5em;
}

.elementor-widget.nbf-panel__text {
	margin: 20px clamp(16px, 2vw, 24px) 0;
}

.nbf-panel__text p {
	margin: 0;
}

/* Values: dark band of large words. */
.elementor .e-con.nbf-band {
	margin-top: clamp(56px, 8vw, 96px);
	padding: clamp(56px, 7vw, 88px) var(--nbf-gutter);
	background: var(--nbf-ink);
}

.nbf-band .nbf-section-title .elementor-heading-title {
	color: var(--nbf-paper);
}

.nbf-values {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 0;
	max-width: 1000px;
	margin: 32px auto 0;
	padding: 0;
	list-style: none;
}

.nbf-values li {
	font-size: clamp(1.4rem, 3vw, 2.4rem);
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--nbf-teal);
}

.nbf-values li:nth-child(4n + 2) { color: var(--nbf-green); }
.nbf-values li:nth-child(4n + 3) { color: var(--nbf-red); }
.nbf-values li:nth-child(4n + 4) { color: var(--nbf-orange); }

.nbf-values li:not(:last-child)::after {
	content: "·";
	margin: 0 0.45em;
	color: rgba(255, 255, 255, 0.35);
}

.nbf-band__note {
	max-width: 640px;
	margin: 28px auto 0;
	text-align: center;
	color: #c9c8d4;
}

.nbf-band__note p {
	margin: 0;
}

/* Focus areas: numbered list in columns. */
.nbf-focus {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 32px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: focus;
}

.nbf-focus li {
	counter-increment: focus;
	padding-top: 16px;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--nbf-ink);
	border-top: 4px solid var(--c, var(--nbf-teal));
}

.nbf-focus li::before {
	content: counter(focus, decimal-leading-zero);
	display: block;
	margin-bottom: 8px;
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1;
	color: var(--c, var(--nbf-teal));
}

.nbf-focus li:nth-child(2) { --c: var(--nbf-green); }
.nbf-focus li:nth-child(3) { --c: var(--nbf-red); }
.nbf-focus li:nth-child(4) { --c: var(--nbf-orange); }
.nbf-focus li:nth-child(5) { --c: var(--nbf-ink); }

.elementor-widget.nbf-section-action {
	margin-top: 40px;
	text-align: center;
}

/* Elementor button widget styled as .nbf-button. */
.nbf-section-action .elementor-button,
.nbf-cta__actions .elementor-button {
	padding: 0.85em 2em;
	font-family: var(--nbf-font);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 2px solid var(--nbf-ink);
	border-radius: 0;
	background: transparent;
	color: var(--nbf-ink);
}

.nbf-section-action .elementor-button:hover,
.nbf-section-action .elementor-button:focus {
	background: var(--nbf-ink);
	color: var(--nbf-paper);
}

/* Leadership cards. */
.elementor .e-con.nbf-team {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(20px, 3vw, 40px);
	margin-top: 40px;
}

.elementor .e-con.nbf-person {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	display: block;
}

.nbf-person--teal { --c: var(--nbf-teal); }
.nbf-person--green { --c: var(--nbf-green); }
.nbf-person--red { --c: var(--nbf-red); }
.nbf-person--orange { --c: var(--nbf-orange); }

.elementor-widget.nbf-person__media {
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--c);
}

.nbf-person__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	filter: grayscale(1) contrast(1.05);
	mix-blend-mode: multiply;
	transition: filter 0.3s, mix-blend-mode 0.3s;
}

.nbf-person:hover .nbf-person__media img {
	filter: none;
	mix-blend-mode: normal;
}

.nbf-person__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: clamp(3rem, 6vw, 5rem);
	font-weight: 800;
	color: rgba(255, 255, 255, 0.9);
}

.elementor-widget.nbf-person__name {
	position: relative;
	z-index: 2;
	margin: -1.3em 12px 0;
}

.nbf-person__name .elementor-heading-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: 0.02em;
}

.nbf-person__name .nbf-label {
	padding: 0.2em 0.5em;
}

.nbf-person__role .elementor-heading-title {
	margin: 10px 12px 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--c);
}

/* Featured project: photo beside the story and its numbers. */
.elementor .e-con.nbf-feature {
	display: grid;
	grid-template-columns: 6fr 5fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.elementor-widget.nbf-feature__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.elementor .e-con.nbf-feature__body {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	display: block;
}

.nbf-feature__tag .elementor-heading-title {
	display: inline-block;
	margin: 0 0 16px;
	padding: 0.4em 1em;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--nbf-paper);
	background: var(--nbf-red);
}

.nbf-feature__title .elementor-heading-title {
	margin: 0 0 16px;
	font-size: clamp(1.8rem, 3.2vw, 2.6rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--nbf-ink);
}

.nbf-feature__text p {
	margin: 0 0 1em;
}

.nbf-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 24px 0;
	padding: 20px 0;
	border-top: 1px solid var(--nbf-line);
	border-bottom: 1px solid var(--nbf-line);
}

.nbf-stats div {
	margin: 0;
}

.nbf-stats dt {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 800;
	line-height: 1;
	color: var(--nbf-teal);
}

.nbf-stats div:nth-child(2) dt { color: var(--nbf-green); }
.nbf-stats div:nth-child(3) dt { color: var(--nbf-orange); }

.nbf-stats dd {
	margin: 6px 0 0;
	font-size: 0.85rem;
	line-height: 1.35;
}

.nbf-feature .nbf-section-action {
	margin-top: 0;
	text-align: left;
}

/* Button inside the dark band. */
.nbf-band .nbf-section-action {
	text-align: center;
}

.nbf-band .nbf-section-action .elementor-button {
	border-color: var(--nbf-paper);
	color: var(--nbf-paper);
}

.nbf-band .nbf-section-action .elementor-button:hover,
.nbf-band .nbf-section-action .elementor-button:focus {
	border-color: var(--nbf-orange);
	background: var(--nbf-orange);
	color: var(--nbf-paper);
}

@media (max-width: 860px) {
	.elementor .e-con.nbf-feature {
		grid-template-columns: 1fr;
	}
}

/* Ways to help: four solid colour cards. */
.elementor .e-con.nbf-ways {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	margin-top: 40px;
}

.elementor .e-con.nbf-way {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(24px, 2.5vw, 36px);
	color: var(--nbf-paper);
	background: var(--c);
}

.nbf-way--teal { --c: var(--nbf-teal); }
.nbf-way--green { --c: var(--nbf-green); }
.nbf-way--red { --c: var(--nbf-red); }
.nbf-way--orange { --c: var(--nbf-orange); }

.nbf-way__num .elementor-heading-title {
	margin: 0;
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
	color: rgba(255, 255, 255, 0.45);
}

.nbf-way__title .elementor-heading-title {
	margin: 12px 0 0;
	font-size: clamp(1.3rem, 1.8vw, 1.6rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--nbf-paper);
}

.elementor-widget.nbf-way__text {
	flex: 1;
}

.nbf-way__text p {
	margin: 12px 0 24px;
	font-size: 0.98rem;
	color: var(--nbf-paper);
}

.nbf-way .elementor-button {
	padding: 0.75em 1.5em;
	font-family: var(--nbf-font);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 2px solid var(--nbf-paper);
	border-radius: 0;
	background: transparent;
	color: var(--nbf-paper);
}

.nbf-way .elementor-button:hover,
.nbf-way .elementor-button:focus {
	background: var(--nbf-paper);
	color: var(--c);
}

.elementor .e-con.nbf-ways--3 {
	grid-template-columns: repeat(3, 1fr);
}

.nbf-way__text a {
	color: var(--nbf-paper);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.nbf-way__text a:hover,
.nbf-way__text a:focus {
	text-decoration-thickness: 2px;
}

/* Map beside the office addresses on the Contact page. */
.elementor-widget.nbf-map iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: 0;
	filter: grayscale(0.6) contrast(1.05);
}

.nbf-offices h3 {
	margin: 0 0 6px;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	color: #8f8da3;
}

.nbf-offices p {
	margin: 0 0 24px;
	font-size: 1.05rem;
	color: var(--nbf-paper);
}

/* Numbered list with a description under each title. */
.nbf-focus--detail {
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
}

.nbf-focus--detail strong {
	display: block;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.nbf-focus--detail span {
	display: block;
	margin-top: 8px;
	font-size: 0.98rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--nbf-ink-soft);
}

/* Requirements band: text beside a checklist. */
.elementor .e-con.nbf-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 6vw, 96px);
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	align-items: start;
}

.nbf-split__title .elementor-heading-title {
	margin: 0 0 16px;
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	font-weight: 700;
	color: var(--nbf-paper);
}

.nbf-split__text p {
	margin: 0 0 1em;
	color: #c9c8d4;
}

.nbf-split__text a {
	color: var(--nbf-paper);
}

.nbf-checklist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nbf-checklist li {
	position: relative;
	padding: 14px 0 14px 40px;
	color: var(--nbf-paper);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nbf-checklist li::before {
	content: "";
	position: absolute;
	top: 19px;
	left: 4px;
	width: 16px;
	height: 9px;
	border-left: 3px solid var(--nbf-green);
	border-bottom: 3px solid var(--nbf-green);
	transform: rotate(-45deg);
}

/* Application form section. */
.elementor .e-con.nbf-apply {
	display: grid;
	grid-template-columns: 4fr 7fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
	padding-bottom: clamp(56px, 8vw, 96px);
	scroll-margin-top: 24px;
}

.nbf-apply__title .elementor-heading-title {
	margin: 0 0 16px;
	font-size: clamp(1.8rem, 3.2vw, 2.6rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--nbf-ink);
}

.nbf-apply__text p {
	margin: 0 0 1em;
}

/* Fluent Forms with visible labels (application and contact forms). */
.nbf-form .fluentform .ff-el-input--label label {
	font-family: var(--nbf-font);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nbf-ink);
}

.nbf-form .fluentform .ff-el-form-control {
	min-height: 48px;
	padding: 10px 14px;
	font-family: var(--nbf-font);
	font-size: 1rem;
	color: var(--nbf-ink);
	border: 1px solid var(--nbf-line);
	border-radius: 0;
}

.nbf-form .fluentform select.ff-el-form-control:not([size]):not([multiple]) {
	height: 48px;
}

.nbf-form .fluentform .ff-el-form-control:focus {
	border-color: var(--nbf-teal);
}

.nbf-form .fluentform .ff-el-tc {
	font-size: 0.95rem;
}

.nbf-form .fluentform .ff-btn-submit {
	padding: 14px 36px;
	font-family: var(--nbf-font);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 0;
	background-color: var(--nbf-orange);
}

.nbf-form .fluentform .ff-btn-submit:hover,
.nbf-form .fluentform .ff-btn-submit:focus {
	background-color: var(--nbf-ink);
	opacity: 1;
}

@media (max-width: 960px) {
	.elementor .e-con.nbf-ways,
	.elementor .e-con.nbf-ways--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.nbf-focus--detail {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.elementor .e-con.nbf-ways,
	.elementor .e-con.nbf-ways--3,
	.elementor .e-con.nbf-split,
	.elementor .e-con.nbf-apply,
	.nbf-focus--detail {
		grid-template-columns: 1fr;
	}
}

/* Events list ([nbf_events]). */
.nbf-events {
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.nbf-event {
	display: grid;
	grid-template-columns: 120px 1fr 280px;
	gap: clamp(20px, 3vw, 40px);
	align-items: center;
	padding: 24px 0;
	border-top: 1px solid var(--nbf-line);
}

.nbf-event:last-child {
	border-bottom: 1px solid var(--nbf-line);
}

.nbf-event--teal { --c: var(--nbf-teal); }
.nbf-event--green { --c: var(--nbf-green); }
.nbf-event--orange { --c: var(--nbf-orange); }

.nbf-event__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	color: var(--nbf-paper);
	background: var(--c);
}

.nbf-event__day {
	font-size: 2.8rem;
	font-weight: 800;
	line-height: 1;
}

.nbf-event__month {
	margin-top: 4px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nbf-event__title {
	margin: 10px 0 0;
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-weight: 700;
}

.nbf-event__title a {
	text-decoration: none;
	color: var(--nbf-ink);
}

.nbf-event__title a:hover,
.nbf-event__title a:focus {
	color: var(--c);
}

.nbf-event__meta {
	margin: 6px 0 0;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c);
}

.nbf-event__excerpt {
	margin: 10px 0 0;
	font-size: 0.98rem;
}

.nbf-event__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 10 / 7;
	object-fit: cover;
}

.nbf-events__empty {
	margin-top: 32px;
	text-align: center;
}

@media (max-width: 860px) {
	.nbf-event {
		grid-template-columns: 88px 1fr;
		align-items: start;
	}

	.nbf-event__day {
		font-size: 2rem;
	}

	.nbf-event__img {
		grid-column: 1 / -1;
		order: -1;
	}
}

/* Closing call to action. */
.elementor .e-con.nbf-cta {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	margin-top: clamp(56px, 8vw, 96px);
	padding: clamp(40px, 5vw, 64px) max(var(--nbf-gutter), calc((100% - var(--nbf-wrap)) / 2 + var(--nbf-gutter)));
	background: var(--nbf-orange);
}

.elementor .e-con.nbf-band + .e-con.nbf-cta {
	margin-top: 0;
}

.elementor-widget.nbf-cta__title {
	flex: 1 1 420px;
	width: auto;
}

.nbf-cta__title .elementor-heading-title {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--nbf-paper);
}

.elementor .e-con.nbf-cta__actions {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	--gap: 16px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: auto;
}

.nbf-cta__actions .elementor-button {
	border-color: var(--nbf-paper);
	color: var(--nbf-paper);
}

.nbf-cta__actions .nbf-cta__primary .elementor-button {
	background: var(--nbf-paper);
	color: var(--nbf-orange);
}

.nbf-cta__actions .elementor-button:hover,
.nbf-cta__actions .elementor-button:focus {
	border-color: var(--nbf-ink);
	background: var(--nbf-ink);
	color: var(--nbf-paper);
}

@media (max-width: 960px) {
	.nbf-focus {
		grid-template-columns: repeat(2, 1fr);
	}

	.elementor .e-con.nbf-team {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.elementor .e-con.nbf-intro,
	.elementor .e-con.nbf-panels,
	.elementor .e-con.nbf-panels--3 {
		grid-template-columns: 1fr;
	}

	.nbf-focus {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* ------------------------------------------------------------------
   Theme templates: News, single posts and plain pages
   ------------------------------------------------------------------ */
body .site-main.nbf-archive,
body .site-main.nbf-article,
body .site-main.nbf-plain {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Dark title band at the top of theme-rendered pages. */
.nbf-page-head {
	background: var(--nbf-ink);
}

.nbf-page-head__inner {
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: clamp(48px, 7vw, 88px) var(--nbf-gutter) clamp(40px, 5vw, 64px);
}

.nbf-page-head__title {
	margin: 0;
	font-size: clamp(2.2rem, 5vw, 4rem);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
}

.nbf-page-head__title .nbf-label {
	padding: 0.05em 0.25em;
	color: var(--nbf-teal);
}

.nbf-page-head__intro {
	max-width: 620px;
	margin: 20px 0 0;
	font-size: 1.1rem;
	color: #c9c8d4;
}

/* Topic filter chips. */
.nbf-filter ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.nbf-filter a {
	display: inline-block;
	padding: 0.5em 1.1em;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--nbf-paper);
	border: 2px solid rgba(255, 255, 255, 0.35);
}

.nbf-filter a:hover,
.nbf-filter a:focus,
.nbf-filter a[aria-current] {
	color: var(--nbf-ink);
	border-color: var(--nbf-paper);
	background: var(--nbf-paper);
}

.nbf-filter .nbf-filter--teal[aria-current],
.nbf-filter .nbf-filter--teal:hover { color: var(--nbf-paper); border-color: var(--nbf-teal); background: var(--nbf-teal); }
.nbf-filter .nbf-filter--green[aria-current],
.nbf-filter .nbf-filter--green:hover { color: var(--nbf-paper); border-color: var(--nbf-green); background: var(--nbf-green); }
.nbf-filter .nbf-filter--red[aria-current],
.nbf-filter .nbf-filter--red:hover { color: var(--nbf-paper); border-color: var(--nbf-red); background: var(--nbf-red); }
.nbf-filter .nbf-filter--orange[aria-current],
.nbf-filter .nbf-filter--orange:hover { color: var(--nbf-paper); border-color: var(--nbf-orange); background: var(--nbf-orange); }

.nbf-archive__body {
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: clamp(40px, 5vw, 64px) var(--nbf-gutter) clamp(56px, 8vw, 96px);
}

.nbf-archive__body .nbf-cards {
	margin-top: 0;
	row-gap: clamp(48px, 6vw, 72px);
}

.nbf-archive__empty {
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: 56px var(--nbf-gutter) 0;
}

.nbf-pagination {
	max-width: var(--nbf-wrap);
	margin: 56px auto 0;
	padding: 0 var(--nbf-gutter);
}

.nbf-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.nbf-pagination .page-numbers {
	min-width: 44px;
	padding: 10px 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: var(--nbf-ink);
	border: 2px solid var(--nbf-line);
}

.nbf-pagination .page-numbers.current,
.nbf-pagination a.page-numbers:hover,
.nbf-pagination a.page-numbers:focus {
	color: var(--nbf-paper);
	border-color: var(--nbf-ink);
	background: var(--nbf-ink);
}

/* Single post. */
.nbf-article__media {
	height: clamp(260px, 44vw, 560px);
	background: var(--nbf-ink);
}

.nbf-article__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
}

.nbf-article__titlebox {
	position: relative;
	max-width: 900px;
	margin: -96px auto 0;
	padding: 0 var(--nbf-gutter);
}

.nbf-article__titlebox .nbf-tag {
	text-decoration: none;
}

.nbf-article__title {
	margin: 0;
	font-size: clamp(1.7rem, 3.6vw, 2.8rem);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: 0;
}

.nbf-article__title .nbf-label {
	padding: 0.1em 0.35em;
}

.nbf-article__meta {
	margin: 16px 0 0;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nbf-ink-soft);
}

.nbf-prose {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px var(--nbf-gutter) 0;
	font-size: 1.1rem;
	line-height: 1.75;
}

.nbf-plain .nbf-prose {
	padding-bottom: clamp(56px, 8vw, 96px);
}

.nbf-prose h2,
.nbf-prose h3,
.nbf-prose h4 {
	margin: 1.8em 0 0.6em;
	font-size: 1.3rem;
	font-weight: 700;
}

.nbf-prose img {
	height: auto;
}

.nbf-prose ul,
.nbf-prose ol {
	padding-left: 1.3em;
}

.nbf-prose li {
	margin-bottom: 0.4em;
}

.nbf-prose blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 24px;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--nbf-ink);
	border-left: 4px solid var(--nbf-orange);
}

.nbf-article__foot {
	max-width: 760px;
	margin: 40px auto 0;
	padding: 32px var(--nbf-gutter) 0;
	border-top: 1px solid var(--nbf-line);
}

.nbf-article__more {
	margin-top: clamp(56px, 8vw, 96px);
	padding: clamp(48px, 6vw, 72px) var(--nbf-gutter) clamp(56px, 8vw, 96px);
	background: var(--nbf-mist);
}

.nbf-article__more > .nbf-cards,
.nbf-article__more > .nbf-carousel {
	max-width: var(--nbf-wrap);
	margin-left: auto;
	margin-right: auto;
}

.nbf-article__more-title {
	margin: 0;
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-align: center;
}

.nbf-article__more .nbf-card {
	background: var(--nbf-paper);
	padding-bottom: 24px;
}

@media (max-width: 767px) {
	.nbf-article__titlebox {
		margin-top: -48px;
	}
}

/* ------------------------------------------------------------------
   Team ([nbf_team], /team/ and bios)
   ------------------------------------------------------------------ */
.nbf-members {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 40px) clamp(16px, 2.5vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nbf-member--teal { --c: var(--nbf-teal); }
.nbf-member--green { --c: var(--nbf-green); }
.nbf-member--red { --c: var(--nbf-red); }
.nbf-member--orange { --c: var(--nbf-orange); }

.nbf-member__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.nbf-member__media {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--c);
}

.nbf-member__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	filter: grayscale(1) contrast(1.05);
	mix-blend-mode: multiply;
	transition: filter 0.3s, transform 0.4s;
}

.nbf-member__link:hover .nbf-member__media img,
.nbf-member__link:focus .nbf-member__media img {
	filter: none;
	mix-blend-mode: normal;
	transform: scale(1.03);
}

.nbf-member__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: clamp(3rem, 6vw, 5rem);
	font-weight: 800;
	color: rgba(255, 255, 255, 0.9);
	background: var(--c, var(--nbf-red));
}

.nbf-member__name {
	position: relative;
	z-index: 2;
	margin: -1.4em 12px 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.nbf-member__name .nbf-label {
	padding: 0.2em 0.5em;
	overflow-wrap: anywhere;
}

.nbf-member__role {
	margin: 10px 12px 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c);
}

.nbf-member__more {
	margin: 8px 12px 0;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--nbf-ink);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.2s, transform 0.2s;
}

.nbf-member__link:hover .nbf-member__more,
.nbf-member__link:focus .nbf-member__more {
	opacity: 1;
	transform: none;
}

.nbf-team-page__body {
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: clamp(40px, 5vw, 64px) var(--nbf-gutter) clamp(56px, 8vw, 96px);
}

.nbf-team-group + .nbf-team-group {
	margin-top: clamp(48px, 6vw, 80px);
}

.nbf-team-group__title {
	margin: 0 0 28px;
	padding-bottom: 12px;
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	border-bottom: 3px solid var(--nbf-ink);
}

/* Bio page. */
.nbf-bio__inner {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(32px, 6vw, 88px);
	align-items: start;
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) var(--nbf-gutter) 0;
}

.nbf-bio__media {
	position: sticky;
	top: 24px;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--nbf-teal);
}

.nbf-bio__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center top;
}

.nbf-bio__back {
	display: inline-block;
	margin-bottom: 24px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.nbf-bio__group {
	margin: 0 0 12px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nbf-orange);
}

.nbf-bio__name {
	margin: 0;
	font-size: clamp(1.8rem, 3.6vw, 2.8rem);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: 0;
}

.nbf-bio__name .nbf-label {
	padding: 0.05em 0.3em;
}

.nbf-bio__role {
	margin: 14px 0 0;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nbf-teal);
}

.nbf-bio__text {
	margin-top: 28px;
	font-size: 1.08rem;
	line-height: 1.75;
}

.nbf-bio__more {
	max-width: var(--nbf-wrap);
	margin: 40px auto 0;
	padding: 0 var(--nbf-gutter);
}

.nbf-bio__all {
	margin: 40px 0 0;
	text-align: center;
}

@media (max-width: 960px) {
	.nbf-members {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.nbf-members {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nbf-member__name {
		font-size: 0.9rem;
	}

	.nbf-member__more {
		opacity: 1;
		transform: none;
	}

	.nbf-bio__inner {
		grid-template-columns: 1fr;
	}

	.nbf-bio__media {
		position: static;
		max-width: 320px;
	}
}

/* ------------------------------------------------------------------
   Research ([nbf_research], /research/ and single research)
   ------------------------------------------------------------------ */
.nbf-research-page__body {
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: clamp(40px, 5vw, 64px) var(--nbf-gutter) clamp(56px, 8vw, 96px);
}

.nbf-research-list {
	display: grid;
	gap: 0;
}

.nbf-research {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
	padding: clamp(28px, 3vw, 40px) 0;
	border-top: 1px solid var(--nbf-line);
}

.nbf-research:last-child {
	border-bottom: 1px solid var(--nbf-line);
}

.nbf-research__media {
	display: block;
	aspect-ratio: 10 / 7;
	overflow: hidden;
	background: var(--nbf-mist);
}

.nbf-research__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.nbf-research:hover .nbf-research__media img {
	transform: scale(1.04);
}

.nbf-research__tags {
	margin: 0;
}

.nbf-research__title {
	margin: 14px 0 0;
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.nbf-research__title a {
	text-decoration: none;
	color: var(--nbf-ink);
}

.nbf-research__title a:hover,
.nbf-research__title a:focus {
	color: var(--nbf-teal);
}

.nbf-research__meta {
	margin: 10px 0 0;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--nbf-ink-soft);
}

.nbf-research__summary {
	margin: 14px 0 0;
}

.nbf-research__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin: 20px 0 0;
}

.nbf-research__link {
	font-weight: 600;
}

.nbf-research-single__summary {
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.6;
	color: var(--nbf-ink);
}

.nbf-sample-note {
	padding: 14px 18px;
	font-size: 0.95rem;
	background: #fff4e8;
	border-left: 4px solid var(--nbf-orange);
}

.nbf-button__meta {
	font-weight: 400;
	opacity: 0.8;
}

@media (max-width: 767px) {
	.nbf-research {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------
   Shared small pieces for the content types below
   ------------------------------------------------------------------ */
.nbf-tag--ink { background: var(--nbf-ink); }
.nbf-tag + .nbf-tag { margin-left: 4px; }

.nbf-button--light {
	border-color: var(--nbf-paper);
	background: var(--nbf-paper);
	color: var(--nbf-ink);
}

.nbf-page-head__back {
	margin: 0 0 20px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nbf-page-head__back a {
	color: #c9c8d4;
	text-decoration: none;
}

.nbf-page-head__back a:hover,
.nbf-page-head__back a:focus {
	color: var(--nbf-paper);
}

.nbf-page-head .nbf-tag {
	margin-bottom: 16px;
}

.nbf-page-head__title--long {
	font-size: clamp(1.8rem, 4vw, 3rem);
}

.nbf-empty {
	margin: 32px 0 0;
	padding: 24px;
	text-align: center;
	background: var(--nbf-mist);
}

/* Homepage: band and buttons sit low, over the bottom of the photos, clear of faces. */
.elementor .e-con.nbf-hero:not(.nbf-hero--page) .elementor-widget.nbf-hero__band {
	bottom: 5%;
}

/* Homepage hero buttons: programmes and volunteering. */
.elementor .e-con .elementor-widget.nbf-hero__actions {
	position: absolute;
	right: var(--nbf-gutter);
	bottom: 5%;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	width: auto;
}

.nbf-hero__actions .nbf-button {
	padding: 0.95em 1.8em;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
	.elementor .e-con .elementor-widget.nbf-hero__actions {
		left: var(--nbf-gutter);
		right: var(--nbf-gutter);
		bottom: 24px;
		flex-wrap: nowrap;
		gap: 8px;
	}

	.nbf-hero__actions .nbf-button {
		flex: 1 1 0;
		padding: 0.9em 0.5em;
		font-size: 0.72rem;
		letter-spacing: 0.04em;
		text-align: center;
		white-space: nowrap;
	}

	/* Homepage on phones: photos on top, the text band and buttons in a dark strip
	   below them, so nothing covers the children's faces. */
	.elementor .e-con.nbf-hero:not(.nbf-hero--page) {
		grid-template-rows: none;
		grid-auto-rows: auto;
		min-height: 0;
	}

	.elementor .e-con.nbf-hero:not(.nbf-hero--page) .e-con.nbf-hero__tile {
		min-height: 0;
		aspect-ratio: 1;
	}

	.elementor .e-con.nbf-hero:not(.nbf-hero--page)::after {
		display: none;
	}

	.elementor .e-con.nbf-hero:not(.nbf-hero--page) .elementor-widget.nbf-hero__band,
	.elementor .e-con.nbf-hero:not(.nbf-hero--page) .elementor-widget.nbf-hero__actions {
		position: static;
		grid-column: 1 / -1;
		max-width: none;
		margin: 0;
	}

	.elementor .e-con.nbf-hero:not(.nbf-hero--page) .elementor-widget.nbf-hero__band {
		padding: 24px var(--nbf-gutter) 16px;
	}

	.elementor .e-con.nbf-hero:not(.nbf-hero--page) .elementor-widget.nbf-hero__actions {
		padding: 0 var(--nbf-gutter) 28px;
	}
}

.nbf-way--ink { --c: var(--nbf-ink); }

.nbf-focus--four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
	.nbf-focus--four {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.nbf-focus--four {
		grid-template-columns: 1fr;
	}
}

.nbf-section-intro p {
	max-width: 760px;
	margin: 20px auto 40px;
	font-size: 1.05rem;
	text-align: center;
}

.nbf-facts dl {
	margin: 0;
}

.nbf-facts dl div {
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nbf-facts dt {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8f8da3;
}

.nbf-facts dd {
	margin: 4px 0 0;
	color: var(--nbf-paper);
}

.nbf-steps-list {
	margin: 0 0 1em;
	padding-left: 1.3em;
}

.nbf-steps-list li {
	margin-bottom: 0.4em;
}

.elementor .e-con.nbf-apply + .e-con.nbf-apply {
	padding-top: 0;
	border-top: 0;
}

.nbf-apply--partner {
	scroll-margin-top: 24px;
}

.nbf-figures-note p {
	margin: 16px 0 0;
	font-size: 0.85rem;
	text-align: center;
	color: var(--nbf-ink-soft);
}

/* ------------------------------------------------------------------
   Programmes ([nbf_programmes], /programmes/ and programme pages)
   ------------------------------------------------------------------ */
.nbf-programme--teal { --c: var(--nbf-teal); }
.nbf-programme--green { --c: var(--nbf-green); }
.nbf-programme--red { --c: var(--nbf-red); }
.nbf-programme--orange { --c: var(--nbf-orange); }
.nbf-programme--ink { --c: var(--nbf-ink); }

.nbf-programmes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.5vw, 28px);
	margin-top: 40px;
}

.nbf-programme__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	background: var(--nbf-paper);
	border-top: 6px solid var(--c);
	box-shadow: 0 1px 0 var(--nbf-line), 0 0 0 1px var(--nbf-line);
	transition: box-shadow 0.2s, transform 0.2s;
}

.nbf-programme__link:hover,
.nbf-programme__link:focus {
	box-shadow: 0 16px 32px rgba(31, 29, 48, 0.12);
	transform: translateY(-3px);
}

.nbf-programme__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--c);
}

.nbf-programme__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nbf-programme__body {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.nbf-programme__num {
	position: absolute;
	top: -30px;
	right: 20px;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--nbf-paper);
	background: var(--c);
}

.nbf-programme__status {
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 0.3em 0.8em;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c);
	border: 1.5px solid var(--c);
}

.nbf-programme__title {
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--nbf-ink);
}

.nbf-programme__summary {
	margin-top: 10px;
	flex: 1;
	font-size: 0.98rem;
}

.nbf-programme__more {
	margin-top: 18px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c);
}

.nbf-programmes-page__body,
.nbf-programme-single__others {
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: clamp(16px, 3vw, 32px) var(--nbf-gutter) clamp(56px, 8vw, 96px);
}

.nbf-programme-single__others {
	padding-top: clamp(56px, 8vw, 96px);
}

.nbf-programme-single .nbf-article__titlebox {
	max-width: var(--nbf-wrap);
}

.nbf-tag--programme {
	text-decoration: none;
	background: var(--c);
}

.nbf-programme-single .nbf-article__title .nbf-label {
	color: var(--c);
}

.nbf-programme-single__lead {
	max-width: 760px;
	margin: 20px 0 0;
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.55;
	color: var(--nbf-ink);
}

.nbf-programme-single .nbf-detail-card {
	border-top-color: var(--c);
}

.nbf-ticks {
	padding: 0;
	list-style: none;
}

.nbf-ticks li {
	position: relative;
	margin: 0;
	padding: 10px 0 10px 34px;
	border-bottom: 1px solid var(--nbf-line);
}

.nbf-ticks li::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 4px;
	width: 14px;
	height: 8px;
	border-left: 3px solid var(--c, var(--nbf-teal));
	border-bottom: 3px solid var(--c, var(--nbf-teal));
	transform: rotate(-45deg);
}

.nbf-status {
	display: inline-block;
	padding: 0.2em 0.7em;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nbf-paper);
	background: var(--nbf-green);
}

.nbf-status--planned { background: var(--nbf-orange); }
.nbf-status--completed { background: var(--nbf-ink); }

.nbf-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 4px;
	margin-top: clamp(48px, 6vw, 72px);
}

.nbf-gallery__item img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: opacity 0.2s;
}

.nbf-gallery__item:hover img,
.nbf-gallery__item:focus img {
	opacity: 0.85;
}

.nbf-take-part {
	margin-top: clamp(48px, 6vw, 72px);
	background: var(--nbf-ink);
}

.nbf-take-part__inner {
	max-width: 860px;
	margin: 0 auto;
	padding: clamp(48px, 6vw, 72px) var(--nbf-gutter);
}

.nbf-take-part__title {
	margin: 0 0 20px;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 700;
	color: var(--nbf-paper);
}

.nbf-take-part__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0 0;
}

/* ------------------------------------------------------------------
   Impact: figures, stories, quotes
   ------------------------------------------------------------------ */
.nbf-figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 4px;
	margin: 40px 0 0;
}

.nbf-figure {
	padding: clamp(24px, 3vw, 36px);
	color: var(--nbf-paper);
	background: var(--c);
}

@media (max-width: 640px) {
	.nbf-figures {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nbf-figure {
		padding: 20px 16px;
	}

	.nbf-figure__value {
		font-size: 2.4rem;
	}

	.nbf-figure__label {
		font-size: 0.92rem;
	}
}

.nbf-figure--teal { --c: var(--nbf-teal); }
.nbf-figure--green { --c: var(--nbf-green); }
.nbf-figure--red { --c: var(--nbf-red); }
.nbf-figure--orange { --c: var(--nbf-orange); }

.nbf-figure__value {
	font-size: clamp(2.6rem, 5vw, 3.8rem);
	font-weight: 800;
	line-height: 1;
}

.nbf-figure__label {
	margin: 10px 0 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
}

.nbf-figure__note {
	margin: 8px 0 0;
	font-size: 0.8rem;
	opacity: 0.85;
}

.nbf-card__meta {
	margin: 14px clamp(16px, 2vw, 24px) 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nbf-teal);
}

.nbf-card__meta + .nbf-card__excerpt {
	margin-top: 10px;
}

.nbf-quote {
	margin: 0 0 1.5em;
	padding: 8px 0 8px 28px;
	font-size: clamp(1.3rem, 2.4vw, 1.7rem);
	font-weight: 600;
	line-height: 1.45;
	color: var(--nbf-ink);
	border-left: 6px solid var(--nbf-orange);
}

.nbf-quote p {
	margin: 0;
}

/* ------------------------------------------------------------------
   Careers
   ------------------------------------------------------------------ */
.nbf-careers-page__body {
	max-width: 960px;
	margin: 0 auto;
	padding: clamp(40px, 5vw, 64px) var(--nbf-gutter) clamp(56px, 8vw, 96px);
}

.nbf-jobs {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nbf-job {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	padding: 28px 0;
	border-top: 1px solid var(--nbf-line);
}

.nbf-job:last-child {
	border-bottom: 1px solid var(--nbf-line);
}

.nbf-job__title {
	margin: 12px 0 0;
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-weight: 700;
}

.nbf-job__title a {
	text-decoration: none;
	color: var(--nbf-ink);
}

.nbf-job__title a:hover,
.nbf-job__title a:focus {
	color: var(--nbf-teal);
}

.nbf-job__facts {
	margin: 8px 0 0;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--nbf-teal);
}

.nbf-job__summary {
	margin: 10px 0 0;
}

.nbf-job__action {
	flex-shrink: 0;
}

.nbf-jobs-empty {
	padding: clamp(28px, 4vw, 48px);
	text-align: center;
	background: var(--nbf-mist);
	border-top: 6px solid var(--nbf-orange);
}

.nbf-jobs-empty h2 {
	margin: 0;
	font-size: 1.4rem;
}

.nbf-careers-page__note {
	margin: 32px 0 0;
	font-size: 0.95rem;
	text-align: center;
}

.nbf-opportunity__body {
	padding-top: clamp(32px, 4vw, 48px);
	padding-bottom: clamp(56px, 8vw, 96px);
}

@media (max-width: 767px) {
	.nbf-job {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ------------------------------------------------------------------
   Research hub: search and filters, keywords
   ------------------------------------------------------------------ */
.nbf-research-filters {
	background: var(--nbf-mist);
	border-bottom: 1px solid var(--nbf-line);
}

.nbf-research-filters__inner {
	display: grid;
	grid-template-columns: 2fr 1.2fr 1.2fr 0.7fr 1fr auto;
	gap: 16px;
	align-items: end;
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: 24px var(--nbf-gutter);
}

.nbf-field {
	margin: 0;
}

.nbf-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nbf-ink);
}

.nbf-field input,
.nbf-field select {
	width: 100%;
	height: 46px;
	padding: 0 12px;
	font-family: var(--nbf-font);
	font-size: 0.95rem;
	color: var(--nbf-ink);
	border: 1px solid var(--nbf-line);
	border-radius: 0;
	background: var(--nbf-paper);
}

.nbf-field input:focus,
.nbf-field select:focus {
	border-color: var(--nbf-teal);
	outline: 2px solid var(--nbf-teal);
	outline-offset: 0;
}

.nbf-research-filters__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.nbf-research-filters__actions .nbf-button {
	height: 46px;
	cursor: pointer;
}

.nbf-research-filters__reset {
	font-size: 0.9rem;
	font-weight: 600;
}

.nbf-research-page__count {
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nbf-ink-soft);
}

.nbf-keywords a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 0.2em 0.6em;
	font-size: 0.85rem;
	text-decoration: none;
	color: var(--nbf-ink);
	background: var(--nbf-paper);
	border: 1px solid var(--nbf-line);
}

@media (max-width: 1000px) {
	.nbf-research-filters__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nbf-field--wide,
	.nbf-research-filters__actions {
		grid-column: 1 / -1;
	}
}

/* ------------------------------------------------------------------
   News: author and share links
   ------------------------------------------------------------------ */
.nbf-article__author::before {
	content: "·";
	margin: 0 0.5em;
}

.nbf-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--nbf-line);
}

.nbf-share__label {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nbf-ink);
}

.nbf-share ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nbf-share a,
.nbf-share__copy {
	display: inline-block;
	padding: 8px 14px;
	font-family: var(--nbf-font);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: var(--nbf-ink);
	background: var(--nbf-paper);
	border: 2px solid var(--nbf-line);
	border-radius: 0;
	cursor: pointer;
}

.nbf-share a:hover,
.nbf-share a:focus,
.nbf-share__copy:hover,
.nbf-share__copy:focus {
	color: var(--nbf-paper);
	background: var(--nbf-ink);
	border-color: var(--nbf-ink);
}

@media (max-width: 960px) {
	.nbf-programmes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nbf-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.nbf-programmes,
	.nbf-research-filters__inner {
		grid-template-columns: 1fr;
	}

	.nbf-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------
   Carousels (nbf_list_open() with carousel on; behaviour in assets/nbf.js)
   ------------------------------------------------------------------ */
.nbf-carousel {
	--per-view: 3;
	--gap: clamp(20px, 2.5vw, 32px);
	margin-top: 40px;
}

.nbf-carousel:has(.nbf-programmes),
.nbf-carousel:has(.nbf-research-list) {
	--gap: clamp(16px, 2.5vw, 28px);
}

.nbf-carousel .nbf-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: none;
	grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
	gap: var(--gap);
	margin: 0;
	padding: 6px 0 14px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.nbf-carousel .nbf-carousel__track::-webkit-scrollbar {
	display: none;
}

.nbf-carousel .nbf-carousel__track > * {
	scroll-snap-align: start;
}

.nbf-carousel .nbf-carousel__track:focus-visible {
	outline: 3px solid var(--nbf-orange);
	outline-offset: 4px;
}

/* With fewer items than fit in a row, centre them instead of hugging the left edge. */
.nbf-carousel--static .nbf-carousel__track {
	justify-content: center;
}

/* Compact research card (carousels): same shape whatever the text length. Each part
   gets a fixed number of lines, and the actions sit in one row at the bottom. */
.nbf-carousel .nbf-research {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	padding: 0;
	border: 0;
}

.nbf-carousel .nbf-research:last-child {
	border: 0;
}

.nbf-carousel .nbf-research__body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.nbf-carousel .nbf-research__tags {
	display: flex;
	gap: 4px;
	overflow: hidden;
	white-space: nowrap;
}

.nbf-carousel .nbf-research__tags .nbf-tag {
	overflow: hidden;
	text-overflow: ellipsis;
}

.nbf-carousel .nbf-research__tags .nbf-tag + .nbf-tag {
	margin-left: 0;
}

.nbf-carousel .nbf-research__title,
.nbf-carousel .nbf-research__meta,
.nbf-carousel .nbf-research__summary {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
}

.nbf-carousel .nbf-research__title {
	min-height: calc(3 * 1.25em);
	font-size: 1.2rem;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.nbf-carousel .nbf-research__meta {
	min-height: 1.5em;
	line-height: 1.5;
	-webkit-line-clamp: 1;
	line-clamp: 1;
}

.nbf-carousel .nbf-research__summary {
	min-height: calc(3 * 1.65em);
	line-height: 1.65;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.nbf-carousel .nbf-research__actions {
	flex-wrap: nowrap;
	margin-top: auto;
	padding-top: 20px;
	white-space: nowrap;
}

/* Compact news card (carousels): the whole card is the link, the excerpt is trimmed
   to three lines, and there is no Read more button. */
.nbf-card--compact {
	position: relative;
	height: 100%;
	padding-bottom: 8px;
	transition: transform 0.2s;
}

.nbf-card--compact .nbf-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.nbf-card--compact:hover {
	transform: translateY(-3px);
}

.nbf-card--compact:hover .nbf-card__title .nbf-label {
	color: var(--nbf-teal);
}

.nbf-card--compact:focus-within {
	outline: 3px solid var(--nbf-orange);
	outline-offset: 4px;
}

.nbf-card--compact .nbf-card__title a:focus-visible {
	outline: none;
}

.nbf-card__date {
	margin: 14px clamp(16px, 2vw, 24px) 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nbf-ink-soft);
}

.nbf-card--compact .nbf-card__excerpt {
	display: -webkit-box;
	margin-top: 10px;
	margin-bottom: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.nbf-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 18px;
}

.nbf-carousel__btn {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	font-family: var(--nbf-font);
	font-size: 1.2rem;
	line-height: 1;
	color: var(--nbf-ink);
	background: var(--nbf-paper);
	border: 2px solid var(--nbf-ink);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.nbf-carousel__btn:hover:not(:disabled),
.nbf-carousel__btn:focus-visible {
	color: var(--nbf-paper);
	background: var(--nbf-ink);
}

.nbf-carousel__btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.nbf-carousel__dots {
	display: flex;
	gap: 8px;
}

.nbf-carousel__dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--nbf-line);
	transition: background-color 0.2s, transform 0.2s;
}

.nbf-carousel__dots span.is-active {
	background: var(--nbf-ink);
	transform: scale(1.25);
}

/* Without JavaScript, or with too few items to slide, there is nothing to control. */
.nbf-carousel:not(.nbf-carousel--ready) .nbf-carousel__controls,
.nbf-carousel--static .nbf-carousel__controls {
	display: none;
}

@media (max-width: 960px) {
	.nbf-carousel {
		--per-view: 2;
	}
}

@media (max-width: 640px) {
	.nbf-carousel {
		--per-view: 1;
	}

	/* Show a slice of the next card so it is clear there is more. */
	.nbf-carousel .nbf-carousel__track {
		grid-auto-columns: 86%;
	}
}

/* ------------------------------------------------------------------
   The Events Calendar
   ------------------------------------------------------------------ */

/* Point the plugin's own design tokens at the NBF brand. */
.tribe-common,
.tribe-events {
	--tec-font-family-sans-serif: var(--nbf-font);
	--tec-font-family-base: var(--nbf-font);
	--tec-color-text-primary: var(--nbf-ink);
	--tec-color-text-events-title: var(--nbf-ink);
	--tec-color-text-secondary: var(--nbf-ink-soft);
	--tec-color-text-event-date: var(--nbf-teal);
	--tec-color-accent-primary: var(--nbf-orange);
	--tec-color-accent-primary-hover: #d96a0b;
	--tec-color-accent-primary-active: #c45f09;
	--tec-color-accent-primary-background: rgba(240, 122, 18, 0.07);
	--tec-color-button-primary: var(--nbf-orange);
	--tec-color-link-accent: var(--nbf-teal);
	--tec-color-icon-active: var(--nbf-teal);
	--tec-color-border-active: var(--nbf-teal);
}

.nbf-events-view {
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: clamp(32px, 4vw, 56px) var(--nbf-gutter) clamp(56px, 8vw, 96px);
}

.nbf-events-view .tribe-common-l-container {
	max-width: none;
	padding: 0;
}

.nbf-events-view .tribe-events-header__events-bar,
.nbf-events-view .tribe-events-c-events-bar {
	border-radius: 0;
}

.nbf-events-view .tribe-common .tribe-common-c-btn,
.nbf-events-view .tribe-events .tribe-events-c-search__button {
	background-color: var(--nbf-orange);
}

.nbf-events-view .tribe-common .tribe-common-c-btn:hover,
.nbf-events-view .tribe-common .tribe-common-c-btn:focus,
.nbf-events-view .tribe-events .tribe-events-c-search__button:hover,
.nbf-events-view .tribe-events .tribe-events-c-search__button:focus {
	background-color: var(--nbf-ink);
}

.nbf-events-view .tribe-common-c-btn,
.nbf-events-view .tribe-events-c-search__button {
	border-radius: 0;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nbf-events-view .tribe-events-calendar-list__month-separator-text,
.nbf-events-view .tribe-events-calendar-latest-past__heading {
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nbf-ink);
}

/* Date block in the list view, like the homepage events list. */
.nbf-events-view .tribe-events-calendar-list__event-date-tag-datetime,
.nbf-events-view .tribe-events-calendar-latest-past__event-date-tag-datetime {
	height: auto;
	padding: 10px 0;
	color: var(--nbf-paper);
	background: var(--nbf-teal);
}

.nbf-events-view .tribe-events-calendar-list__event-date-tag-weekday,
.nbf-events-view .tribe-events-calendar-list__event-date-tag-daynum,
.nbf-events-view .tribe-events-calendar-latest-past__event-date-tag-month,
.nbf-events-view .tribe-events-calendar-latest-past__event-date-tag-daynum,
.nbf-events-view .tribe-events-calendar-latest-past__event-date-tag-year {
	color: var(--nbf-paper);
}

.nbf-events-view .tribe-events-calendar-list__event-title,
.nbf-events-view .tribe-events-calendar-latest-past__event-title {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.nbf-events-view .tribe-events-calendar-list__event-featured-image,
.nbf-events-view .tribe-events-calendar-latest-past__event-featured-image {
	aspect-ratio: 10 / 7;
	object-fit: cover;
}

/* Story beside a details card (events and research). */
.nbf-detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: 0 var(--nbf-gutter);
}

.nbf-detail-layout .nbf-prose {
	max-width: none;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
}

.nbf-event-single .nbf-article__titlebox,
.nbf-research-single .nbf-article__titlebox,
.nbf-event-single__foot {
	max-width: var(--nbf-wrap);
}

.nbf-event-single__foot {
	margin-bottom: clamp(56px, 8vw, 96px);
}

.nbf-detail-card {
	position: sticky;
	top: 24px;
	margin-top: 40px;
	padding: 28px;
	background: var(--nbf-mist);
	border-top: 6px solid var(--nbf-teal);
}

.nbf-detail-card__date {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	color: var(--nbf-paper);
	background: var(--nbf-teal);
}

.nbf-detail-card__list {
	margin: 24px 0 0;
}

.nbf-detail-card__list div {
	padding: 12px 0;
	border-bottom: 1px solid var(--nbf-line);
}

.nbf-detail-card__list dt {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nbf-ink-soft);
}

.nbf-detail-card__list dd {
	margin: 4px 0 0;
	font-weight: 500;
	color: var(--nbf-ink);
}

.nbf-detail-card__note {
	margin: 20px 0 0;
}

.nbf-detail-card__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin: 20px 0 0;
}

.nbf-detail-card__ical {
	font-size: 0.9rem;
}

@media (max-width: 860px) {
	.nbf-detail-layout {
		grid-template-columns: 1fr;
	}

	.nbf-detail-card {
		position: static;
		margin-top: 0;
	}
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.nbf-footer {
	color: #c9c8d4;
	background: var(--nbf-ink);
}

.nbf-footer a {
	color: var(--nbf-paper);
	text-decoration: none;
}

.nbf-footer a:hover,
.nbf-footer a:focus {
	color: var(--nbf-orange);
}

.nbf-footer__inner {
	display: flex;
	justify-content: space-between;
	gap: 48px;
	max-width: var(--nbf-wrap);
	margin: 0 auto;
	padding: 56px var(--nbf-gutter) 40px;
}

.nbf-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 48px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.nbf-footer__menu a {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nbf-footer__offices {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	font-size: 0.92rem;
}

.nbf-footer__offices p {
	margin: 0;
}

.nbf-footer__heading {
	margin: 0 0 8px;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	color: #8f8da3;
}

.nbf-footer__hashtag {
	margin: 32px 0 0;
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8f8da3;
}

.nbf-footer__brand {
	flex-shrink: 0;
	text-align: right;
}

.nbf-footer__name {
	margin: 0;
	font-size: 2rem;
	font-weight: 800;
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--nbf-paper);
}

.nbf-footer__tagline {
	max-width: 200px;
	margin: 12px 0 0 auto;
	font-size: 0.85rem;
	line-height: 1.4;
}

.nbf-footer__legal {
	padding: 16px var(--nbf-gutter);
	font-size: 0.8rem;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nbf-footer__legal p {
	margin: 0;
}

@media (max-width: 860px) {
	.nbf-footer__inner {
		flex-direction: column-reverse;
	}

	.nbf-footer__brand {
		text-align: left;
	}

	.nbf-footer__tagline {
		margin-left: 0;
	}

	.nbf-footer__offices {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
