/*
 * Learn4Belarus — chrome and templates (front end only).
 * Tokens live in blocks.css. Desktop sizes follow design/frames/*-desktop.png
 * (1280 wide, 1050 container); mobile follows *-mobile.png (390 wide).
 */

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body.l4b {
	margin: 0;
	overflow-x: clip;
	font-family: var(--wp--preset--font-family--inter, Inter, system-ui, sans-serif);
	font-size: 15px;
	line-height: 1.6;
	color: var(--l4b-ink-600);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:where(.l4b) img {
	max-width: 100%;
	height: auto;
}

:where(.l4b) a {
	color: var(--l4b-link);
}

:where(.l4b) a:hover {
	color: var(--l4b-brand-900);
}

.l4b :focus-visible {
	outline: 2px solid var(--l4b-cta);
	outline-offset: 2px;
}

:where(.l4b) :where(h1, h2, h3, h4, h5, h6) {
	margin: 0 0 0.6em;
	font-weight: 700;
	line-height: 1.25;
	color: var(--l4b-ink-900);
}

:where(.l4b) p {
	margin: 0 0 1em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 14px;
	background: #fff;
	color: var(--l4b-brand-900);
	font-weight: 600;
	border-radius: 5px;
	box-shadow: var(--l4b-shadow-card);
}

.l4b-container {
	width: min(var(--l4b-container), 100% - 2 * var(--l4b-gutter));
	margin-left: auto;
	margin-right: auto;
}

.l4b-icon {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

/* Buttons used by templates (blocks use .wp-block-button). */
.l4b-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 19px;
	border: 0;
	border-radius: 5px;
	background: var(--l4b-cta);
	color: #fff !important;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}

.l4b-btn:hover {
	background: var(--l4b-brand-900);
}

.l4b-btn--ghost {
	background: #fff;
	color: var(--l4b-ink-800) !important;
	border: 1px solid #D5DCE4;
}

.l4b-btn--ghost:hover {
	background: #fff;
	border-color: var(--l4b-ink-800);
}

.l4b-more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	color: var(--l4b-link);
	text-decoration: none;
}

.l4b-more:hover {
	text-decoration: underline;
}

.l4b-eyebrow {
	margin: 0 0 6px;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7D8996;
}

/* ---------- Header ---------- */

.l4b-header {
	position: relative;
	z-index: 20;
	background: #fff;
}

.l4b-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 13px;
}

.l4b-brand {
	display: inline-flex;
	align-items: center;
	gap: 22px;
	min-width: 0;
	text-decoration: none;
}

.l4b-logo {
	display: block;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: contain;
}

.l4b-brand__title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.024em;
	color: #75130F;
}

.l4b-header__tools {
	display: flex;
	align-items: center;
	gap: 22px;
}

.l4b-social {
	display: inline-flex;
	line-height: 0;
}

.l4b-social svg {
	width: 18px;
	height: 18px;
}

.l4b-header__divider {
	width: 1px;
	height: 22px;
	margin: 0 -1px;
	background: #D9DCE1;
}

.l4b-search {
	position: relative;
	display: flex;
	align-items: center;
}

.l4b-search__toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: #26364B;
	font: inherit;
	cursor: pointer;
}

.l4b-search__label {
	font-size: 11.5px;
	color: #627184;
}

.l4b-search__field {
	width: 190px;
	height: 34px;
	margin-right: 10px;
	padding: 0 12px;
	border: 1px solid #DFE4EB;
	border-radius: 6px;
	font: inherit;
	font-size: 13px;
	color: var(--l4b-ink-800);
}

.l4b-search.is-collapsible .l4b-search__field {
	position: absolute;
	right: 100%;
	width: 0;
	padding: 0;
	border-width: 0;
	opacity: 0;
	pointer-events: none;
	transition: width 0.2s ease, opacity 0.15s ease;
}

.l4b-search.is-collapsible.is-open .l4b-search__field {
	width: 220px;
	padding: 0 12px;
	border-width: 1px;
	opacity: 1;
	pointer-events: auto;
	background: #fff;
}

/* ---------- Section cards ---------- */

.l4b-sections {
	padding: 12px 0 0;
}

.l4b-sections__frame {
	position: relative;
}

.l4b-sections__list {
	display: flex;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.l4b-sections__list > li {
	flex: 1 1 0;
	min-width: 0;
}

.l4b-section-card {
	--tone-bar: var(--l4b-brand-700);
	--tone-tile: var(--l4b-brand-600);
	--tone-text: #72120E;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 112px;
	padding: 18px 12px 12px;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 7px;
	box-shadow: 0 4px 15px rgba(26, 42, 63, 0.045);
	color: var(--tone-text) !important;
	text-decoration: none;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.l4b-section-card--navy {
	--tone-bar: var(--l4b-navy-700);
	--tone-tile: var(--l4b-navy-700);
	--tone-text: var(--l4b-navy-700);
}

.l4b-section-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: var(--tone-bar);
}

.l4b-section-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(26, 42, 63, 0.09);
}

.l4b-section-card.is-current {
	border-color: color-mix(in srgb, var(--tone-bar) 35%, #E5E7EB);
	background: color-mix(in srgb, var(--tone-bar) 4%, #fff);
}

.l4b-section-card__icon {
	display: grid;
	place-items: center;
	width: 35px;
	height: 35px;
	border-radius: 8px;
	background: var(--tone-tile);
	color: #fff;
}

.l4b-section-card__icon .l4b-icon {
	width: 16px;
	height: 16px;
	stroke-width: 1.8;
}

.l4b-section-card__label {
	margin-top: 9px;
	padding-right: 16px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	hyphens: manual;
}

.l4b-section-card__arrow {
	position: absolute;
	right: 11px;
	bottom: 11px;
	color: #96202A;
	line-height: 0;
}

.l4b-sections__more {
	position: absolute;
	top: 50%;
	right: -6px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid #E5E7EB;
	border-radius: 50%;
	background: #fff;
	color: #72120E;
	box-shadow: 0 2px 8px rgba(26, 42, 63, 0.15);
	transform: translateY(-50%);
	cursor: pointer;
}

.l4b-sections__more[hidden] {
	display: none;
}

/* ---------- Side tabs ---------- */

.l4b-sidetab {
	position: fixed;
	left: 0;
	top: min(378px, 46vh);
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 124px;
	padding: 0;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	border-radius: 5px 0 0 5px;
	background: rgba(178, 9, 27, 0.88);
	box-shadow: 0 -3px 11px rgba(80, 11, 22, 0.16);
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.l4b-sidetab:hover {
	background: var(--l4b-cta);
	width: 31px;
}

/* ---------- Main ---------- */

.l4b-main {
	display: block;
	min-height: 40vh;
}

.l4b-breadcrumbs {
	margin: 49px 0 0;
	font-size: 12px;
	line-height: 1.4;
}

.l4b-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.l4b-breadcrumbs li {
	display: flex;
	align-items: center;
	color: #7D8898;
}

.l4b-breadcrumbs li + li::before {
	content: "›";
	margin: 0 9px;
	color: #A3ADB9;
}

.l4b-breadcrumbs a {
	color: #7D8898;
	text-decoration: none;
}

.l4b-breadcrumbs a:hover {
	color: var(--l4b-brand-900);
	text-decoration: underline;
}

.l4b-breadcrumbs [aria-current] {
	font-weight: 600;
	color: var(--l4b-brand-900);
}

.l4b-page-head {
	margin: 44px 0 30px;
}

.l4b-page-title {
	margin: 0;
	font-size: 34px !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.015em;
	color: var(--l4b-ink-900) !important;
}

.l4b-page-title::after {
	content: "";
	display: block;
	width: 66px;
	height: 4px;
	margin-top: 14px;
	border-radius: 2px;
	background: var(--l4b-brand-900);
}

.l4b-page-head--plain .l4b-page-title::after {
	display: none;
}

.l4b-lead,
.l4b-lead p {
	font-size: 16px;
	line-height: 1.65;
	color: var(--l4b-ink-500);
}

.l4b-lead {
	max-width: 760px;
	margin-top: 16px;
}

.l4b-lead p:last-child {
	margin-bottom: 0;
}

/* Block content flows inside the container; alignfull groups break out. */
.l4b-flow > * {
	width: min(var(--l4b-container), 100% - 2 * var(--l4b-gutter));
	margin-left: auto !important;
	margin-right: auto !important;
}

.l4b-flow > .alignfull {
	width: auto;
	max-width: none;
}

.l4b-flow > .alignfull > :not(.l4b-sidetab) {
	width: min(var(--l4b-container), 100%);
	margin-left: auto !important;
	margin-right: auto !important;
}

.l4b-flow--inset > * {
	width: 100%;
}

/* ---------- Home ---------- */

.l4b-home > .is-style-l4b-hero {
	margin-top: 23px !important;
}

.wp-block-group.is-style-l4b-hero > .wp-block-columns {
	align-items: center;
	gap: 40px;
	margin: 0;
}

@media (min-width: 782px) {
	/* Design: the hero row is 360px; the copy sits slightly above its middle. */
	.wp-block-group.is-style-l4b-hero > .wp-block-columns {
		min-height: 360px;
	}

	.is-style-l4b-hero .wp-block-column:first-child {
		padding-bottom: 20px;
	}
}

.is-style-l4b-hero .wp-block-column:first-child {
	padding-left: 19px;
}

.is-style-l4b-hero h1 {
	margin: 0 0 19px;
	font-size: 45px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--l4b-ink-900);
}

.is-style-l4b-hero p {
	margin: 0;
}

@media (min-width: 782px) {
	.is-style-l4b-hero .wp-block-column:first-child > p {
		max-width: 300px;
	}

	.is-style-l4b-hero .wp-block-column:first-child > .l4b-hero__sub {
		max-width: 255px;
	}
}

.is-style-l4b-hero .l4b-hero__lead {
	font-size: 25px;
	line-height: 1.28;
	color: #506176;
}

.is-style-l4b-hero .l4b-hero__sub {
	margin-top: 5px !important;
	font-size: 17px;
	line-height: 1.41;
	color: #596B7C;
}

.is-style-l4b-hero .wp-block-buttons {
	margin-top: 24px !important;
}

.l4b-home > .is-style-l4b-band-navy {
	margin-top: 38px !important;
}

.l4b-home > .l4b-home__articles {
	margin-top: 53px !important;
}

.l4b-home > .is-style-l4b-band-grey {
	margin-top: 14px !important;
}

.l4b-home > .l4b-home__faq {
	margin-top: 36px !important;
}

/* Navy band layout: copy left, two feature cards right. */
.is-style-l4b-band-navy > .wp-block-columns {
	gap: 44px;
	margin: 0 auto;
}

.is-style-l4b-band-navy > .wp-block-columns > .wp-block-column:first-child {
	display: flex;
	flex-direction: column;
	padding-bottom: 3px;
}

.is-style-l4b-band-navy > .wp-block-columns > .wp-block-column:first-child > * {
	margin: 0;
}

.is-style-l4b-band-navy > .wp-block-columns > .wp-block-column:first-child > h2 {
	margin-top: 4px;
}

.is-style-l4b-band-navy h2 {
	margin: 4px 0 0;
	font-size: 31.5px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.is-style-l4b-band-navy .is-style-l4b-bar::after {
	margin-top: 12px !important;
}

.is-style-l4b-band-navy > .wp-block-columns > .wp-block-column:first-child > p {
	margin-top: 16px !important;
	font-size: 15.5px;
	line-height: 1.48;
	color: #EEF2F7;
}

.is-style-l4b-band-navy > .wp-block-columns > .wp-block-column:first-child > .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 22px;
}

.is-style-l4b-band-navy .wp-block-columns .wp-block-columns {
	gap: 15px;
	margin: 0;
}

.is-style-l4b-band-navy .wp-block-columns .wp-block-columns > .wp-block-column {
	display: flex;
}

.is-style-l4b-band-navy .wp-block-columns .wp-block-columns > .wp-block-column > .wp-block-group {
	flex: 1;
	margin: 0;
}

/* The БЯСПЕКА tab stays on top of everything, this one included. */
.l4b-sidetab--safety {
	z-index: 60;
}

.l4b-sidetab--invite {
	position: absolute !important;
	z-index: 5;
	top: 82px;
	left: 0;
	width: 28px;
	height: auto;
	min-height: 190px;
	margin: 0 !important;
	background: #fff;
	box-shadow: 0 -3px 11px rgba(0, 0, 0, 0.1);
	font-size: 10.5px;
}

.l4b-sidetab--invite a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 190px;
	padding: 0 7px;
	color: var(--l4b-cta) !important;
	text-decoration: none;
}

.l4b-sidetab--invite:hover {
	background: #fff;
	width: 31px;
}

/* ---------- Two-column template layouts ---------- */

.l4b-layout {
	display: grid;
	align-items: start;
}

.l4b-layout--courses {
	grid-template-columns: minmax(0, 1fr) 270px;
	gap: 25px;
}

.l4b-layout--article {
	grid-template-columns: minmax(0, 648px) 368px;
	justify-content: space-between;
	gap: 34px;
	margin-top: 24px;
}

.l4b-aside > * + * {
	margin-top: 18px;
}

.l4b-aside .l4b-box > * + * {
	margin-top: 18px !important;
}

/* ---------- Article ---------- */

.l4b-article__eyebrow {
	margin: 0 0 3px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--l4b-brand-900);
}

.l4b-article__eyebrow a {
	color: inherit;
	text-decoration: none;
}

.l4b-article__title {
	margin: 0 0 12px !important;
	font-size: 32px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.015em;
	color: var(--l4b-ink-900) !important;
}

.l4b-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0 0 15px;
	font-size: 11px;
	color: #788697;
}

.l4b-article__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.l4b-article__meta a {
	color: inherit;
	text-decoration: none;
}

.l4b-article__lead {
	margin: 0 0 20px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--l4b-ink-500);
}

/* Prose: post and page bodies written in the editor (old and new). */
.l4b-prose {
	font-size: 14px;
	line-height: 1.85;
	color: var(--l4b-ink-600);
	overflow-wrap: break-word;
}

.l4b-prose > * {
	max-width: 100%;
}

.l4b-prose p,
.l4b-prose ul,
.l4b-prose ol {
	margin: 0 0 1.1em;
}

.l4b-prose ul,
.l4b-prose ol {
	padding-left: 1.4em;
}

.l4b-prose li + li {
	margin-top: 0.3em;
}

.l4b-prose h2 {
	margin: 1.6em 0 0.45em;
	font-size: 20px;
	line-height: 1.4;
	color: #26394B;
}

.l4b-prose h3 {
	margin: 1.5em 0 0.4em;
	font-size: 17px;
	line-height: 1.4;
	color: #26394B;
}

.l4b-prose h4,
.l4b-prose h5,
.l4b-prose h6 {
	margin: 1.4em 0 0.4em;
	font-size: 15px;
	color: #26394B;
}

.l4b-prose > :first-child {
	margin-top: 0;
}

.l4b-prose img {
	border-radius: 6px;
}

.l4b-prose figure {
	margin: 1.4em 0;
}

.l4b-prose figcaption {
	margin-top: 6px;
	font-size: 12px;
	color: var(--l4b-muted);
}

.l4b-prose blockquote,
.l4b-prose .wp-block-quote {
	margin: 1.4em 0;
	padding: 18px 24px;
	border-left: 3px solid var(--l4b-cta);
	background: #FBF2F3;
	font-style: italic;
	color: #4A576B;
}

.l4b-prose blockquote p:last-child {
	margin-bottom: 0;
}

.l4b-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.l4b-prose th,
.l4b-prose td {
	padding: 8px 10px;
	border: 1px solid var(--l4b-line);
	text-align: left;
	vertical-align: top;
}

.l4b-prose th {
	background: var(--l4b-surface-1);
	color: var(--l4b-ink-800);
}

.l4b-prose iframe {
	max-width: 100%;
}

.l4b-prose .wp-block-button__link,
.l4b-prose .su-button {
	font-size: 13px;
}

/* Old content sets sizes and colours inline; keep it within the design. */
.l4b-prose [style*="font-size"] {
	font-size: inherit !important;
}

.l4b-prose .has-medium-font-size,
.l4b-prose .has-large-font-size {
	font-size: 15px !important;
}

.l4b-prose .has-x-large-font-size,
.l4b-prose .has-huge-font-size {
	font-size: 20px !important;
}

.l4b-article__body .wp-block-buttons:last-child,
.l4b-article__body > p:last-child > a:only-child {
	margin-top: 1.6em;
}

/* ---------- Pages ---------- */

.l4b-page-body {
	margin-top: 30px;
}

.l4b-page-body.l4b-flow > :first-child {
	margin-top: 0 !important;
}

.l4b-about > :first-child {
	margin-top: 40px !important;
}

/* Pages built from the theme's patterns. */
.l4b-page-body--built > * + * {
	margin-top: 30px;
}

.l4b-page-body--built > .is-style-l4b-lead {
	margin-top: 0;
	margin-bottom: 0;
}

.l4b-page-body--built > .l4b-page-band {
	margin-top: 34px !important;
	padding-top: 30px;
	padding-bottom: 30px;
}

.l4b-page-body--built > .l4b-page-section {
	margin-top: 44px !important;
}

.l4b-page-body--built > .l4b-page-band + .l4b-page-section {
	margin-top: 40px !important;
}

.l4b-page-body--built > .is-style-l4b-more {
	margin-top: 32px;
}

.l4b-page-band .wp-block-columns {
	gap: 18px;
	margin: 0;
}

.l4b-page-band .wp-block-column {
	display: flex;
}

.l4b-page-band .wp-block-column > .is-style-l4b-feature {
	flex: 1;
}

/* ---------- Archive grid ---------- */

.l4b-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px 15px;
	margin: 0;
}

.l4b-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--l4b-line);
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.l4b-card:hover {
	border-color: #CBD3DC;
	box-shadow: var(--l4b-shadow-card);
}

.l4b-card__media {
	display: block;
	height: 150px;
	background: var(--l4b-surface-3);
	overflow: hidden;
}

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

.l4b-card__media.is-empty {
	background:
		radial-gradient(circle at 78% 30%, rgba(242, 90, 105, 0.12) 0 34px, transparent 35px),
		linear-gradient(135deg, #F5F7FA, #EDF0F4);
}

.l4b-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 14px 15px 15px;
}

.l4b-card__title {
	margin: 0 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.33 !important;
	color: #273849 !important;
}

.l4b-card__title a {
	color: inherit;
	text-decoration: none;
}

.l4b-card__title a::before {
	content: "";
	position: absolute;
	inset: 0;
}

.l4b-card__more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: auto;
	padding-top: 12px;
	font-size: 12px;
	font-weight: 700;
	color: #861B19;
	text-decoration: none;
}

.l4b-card__more--tag {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: underline;
	color: #A82728;
}

.l4b-card__date {
	margin-bottom: 6px;
	font-size: 10.5px;
	color: #8A98A5;
}

.l4b-card--news .l4b-card__title {
	font-size: 14px !important;
	color: #981B1B !important;
}

.l4b-pagination {
	margin: 36px 0 0;
}

.l4b-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.l4b-pagination a,
.l4b-pagination span {
	display: grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--l4b-line);
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--l4b-ink-800);
	text-decoration: none;
}

.l4b-pagination a:hover {
	border-color: var(--l4b-brand-900);
	color: var(--l4b-brand-900);
}

.l4b-pagination .current {
	border-color: var(--l4b-cta);
	background: var(--l4b-cta);
	color: #fff;
}

.l4b-pagination .dots {
	border: 0;
	background: none;
}

/* Query Loop pagination inside page content (e.g. the Навіны page). */
.wp-block-query-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 30px !important;
}

.wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--l4b-line);
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--l4b-ink-800);
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	border-color: var(--l4b-cta);
	background: var(--l4b-cta);
	color: #fff;
}

.wp-block-query-pagination .page-numbers.dots {
	border: 0;
	background: none;
}

/* Post lists inside old page content (Query Loop in list layout). */
.l4b-prose .wp-block-post-template {
	padding-left: 0;
	list-style: none;
}

.l4b-prose .wp-block-post-template > li {
	margin: 0 0 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--l4b-line);
}

.l4b-prose .wp-block-post-template .wp-block-post-title {
	margin: 0 0 4px;
	font-size: 17px;
	line-height: 1.35;
}

.l4b-prose .wp-block-post-template .wp-block-post-title a {
	color: var(--l4b-ink-800);
	text-decoration: none;
}

.l4b-prose .wp-block-post-template .wp-block-post-title a:hover {
	color: var(--l4b-brand-900);
}

.l4b-prose .wp-block-post-template .wp-block-post-date {
	font-size: 11px;
	color: var(--l4b-muted);
}

.l4b-prose .wp-block-post-template .wp-block-separator {
	display: none;
}

/* Search and 404. */
.l4b-searchform {
	display: flex;
	gap: 10px;
	max-width: 620px;
	margin: 0 0 30px;
}

.l4b-searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #DFE4EB;
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
}

.l4b-results {
	display: grid;
	gap: 14px;
	max-width: 760px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.l4b-result {
	padding: 16px 18px;
	border: 1px solid var(--l4b-line);
	border-radius: 8px;
	background: #fff;
}

.l4b-result h2 {
	margin: 0 0 6px !important;
	font-size: 16px !important;
}

.l4b-result h2 a {
	color: var(--l4b-ink-800);
	text-decoration: none;
}

.l4b-result h2 a:hover {
	color: var(--l4b-brand-900);
}

.l4b-result p {
	margin: 0;
	font-size: 13px;
	color: var(--l4b-ink-500);
}

.l4b-result .l4b-eyebrow {
	margin-bottom: 6px;
}

.l4b-notice {
	max-width: 640px;
	padding: 30px;
	border: 1px solid var(--l4b-line);
	border-radius: 15px;
	background: var(--l4b-surface-1);
}

.l4b-notice .l4b-btn + .l4b-btn {
	margin-left: 8px;
}

.l4b-notice .l4b-btn {
	margin-bottom: 8px;
}

/* ---------- Footer ---------- */

.l4b-footer {
	margin-top: 35px;
	padding: 24px 0 16px;
	background: var(--l4b-surface-1);
	border-top: 2px solid var(--l4b-line);
}

.l4b-footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 17px;
	border-bottom: 2px solid #E6E9EE;
}

.l4b-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.l4b-footer__brand .l4b-logo {
	width: 47px;
	height: 47px;
}

.l4b-footer__title {
	display: block;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	color: #75130F;
}

.l4b-footer__sub {
	display: block;
	font-size: 11px;
	line-height: 1.4;
	color: var(--l4b-muted);
}

.l4b-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 11px;
}

.l4b-footer__links a {
	color: var(--l4b-ink-500);
	text-decoration: none;
}

.l4b-footer__links a:hover {
	color: var(--l4b-brand-900);
	text-decoration: underline;
}

.l4b-footer__copy {
	margin: 0 !important;
	font-size: 10.5px;
	color: var(--l4b-faint);
}

/* Partner and donor logos (editable box). */
.l4b-box--footer-partners {
	padding: 19px 0 20px;
}

.l4b-box--footer-partners .wp-block-group,
.l4b-box--footer-partners .l4b-partners {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 26px;
	margin: 0;
}

.l4b-box--footer-partners .wp-block-image,
.l4b-box--footer-partners figure {
	margin: 0 !important;
}

.l4b-box--footer-partners img {
	display: block;
	width: auto;
	max-height: 30px;
	filter: grayscale(1);
	opacity: 0.6;
	transition: filter 0.15s ease, opacity 0.15s ease;
}

.l4b-box--footer-partners a:hover img {
	filter: none;
	opacity: 1;
}

/* ---------- Tablet ---------- */

/* Leave room for the fixed side tab when the page margin gets narrow. */
@media (min-width: 601px) and (max-width: 1149px) {
	:root {
		--l4b-gutter: 36px;
	}
}

/* Columns stack below 782px (WordPress default); keep the collage and the band cards in proportion. */
@media (min-width: 601px) and (max-width: 781px) {
	.is-style-l4b-hero .wp-block-query.is-style-l4b-collage {
		max-width: 540px;
		margin: 0 auto;
	}

	.is-style-l4b-band-navy .wp-block-columns .wp-block-columns {
		flex-wrap: nowrap !important;
	}

	.is-style-l4b-band-navy .wp-block-columns .wp-block-columns > .wp-block-column {
		flex-basis: 50% !important;
	}
}

@media (max-width: 1083px) {
	.l4b-sections__frame {
		width: 100%;
	}

	.l4b-sections__list {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-left: var(--l4b-gutter);
		padding: 0 var(--l4b-gutter) 14px;
		margin-bottom: -10px;
		scrollbar-width: none;
	}

	.l4b-sections__list::-webkit-scrollbar {
		display: none;
	}

	.l4b-sections__list > li {
		flex: 0 0 142px;
		scroll-snap-align: start;
	}

	.l4b-sections__more {
		right: 8px;
		top: calc(50% - 5px);
	}

	.l4b-layout--article {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

@media (max-width: 900px) {
	.l4b-layout--courses,
	.l4b-layout--article {
		grid-template-columns: minmax(0, 1fr);
	}

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

	.is-style-l4b-band-navy > .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.is-style-l4b-band-navy > .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.is-style-l4b-band-navy > .wp-block-columns > .wp-block-column:first-child > .wp-block-buttons {
		margin-top: 0 !important;
	}

	.l4b-sidetab--invite {
		display: none;
	}
}

/* ---------- Phone ---------- */

@media (max-width: 600px) {
	.l4b-header__bar {
		flex-wrap: wrap;
		gap: 5px;
		padding-top: 12px;
	}

	.l4b-brand {
		gap: 12px;
	}

	.l4b-logo {
		width: 47px;
		height: 47px;
	}

	.l4b-brand__title {
		font-size: 24px;
	}

	.l4b-header__tools {
		width: 100%;
		justify-content: flex-end;
		gap: 16px;
	}

	.l4b-search.is-collapsible.is-open .l4b-search__field {
		width: min(200px, 50vw);
	}

	.l4b-sections {
		padding-top: 10px;
	}

	.l4b-sections__list > li {
		flex-basis: 136px;
	}

	.l4b-section-card {
		height: 100px;
		padding: 15px 12px 12px;
	}

	.l4b-section-card__icon {
		width: 31px;
		height: 31px;
	}

	.l4b-section-card__label {
		margin-top: 10px;
	}

	.l4b-sidetab {
		top: min(370px, 46vh);
		width: 20px;
		height: 92px;
		font-size: 9px;
	}

	.l4b-breadcrumbs {
		margin-top: 30px;
	}

	.l4b-page-head {
		margin: 24px 0 22px;
	}

	.l4b-page-title {
		font-size: 28px !important;
	}

	.l4b-lead,
	.l4b-lead p {
		font-size: 15px;
	}

	.l4b-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.l4b-card__media {
		height: 170px;
	}

	/* Home */
	.l4b-home > .is-style-l4b-hero {
		margin-top: 16px !important;
	}

	.wp-block-group.is-style-l4b-hero > .wp-block-columns {
		gap: 22px;
	}

	.is-style-l4b-hero .wp-block-column:first-child {
		padding-left: 0;
	}

	.is-style-l4b-hero h1 {
		margin-bottom: 12px;
		font-size: 30px;
	}

	.is-style-l4b-hero .l4b-hero__lead {
		font-size: 16px;
	}

	.is-style-l4b-hero .l4b-hero__sub {
		margin-top: 6px !important;
		font-size: 12px;
	}

	.is-style-l4b-hero .wp-block-buttons {
		margin-top: 16px !important;
	}

	.is-style-l4b-hero .wp-block-button__link {
		padding: 10px 16px;
		font-size: 13px;
	}

	.l4b-home > .is-style-l4b-band-navy {
		margin-top: 26px !important;
		padding-top: 24px;
		padding-bottom: 24px;
	}

	.is-style-l4b-band-navy > .wp-block-columns {
		gap: 22px;
	}

	.is-style-l4b-band-navy h2 {
		font-size: 26px;
	}

	.is-style-l4b-band-navy > .wp-block-columns > .wp-block-column:first-child > p {
		font-size: 14px;
	}

	.is-style-l4b-band-navy > .wp-block-columns > .wp-block-column:first-child > .wp-block-buttons {
		padding-top: 18px;
	}

	.is-style-l4b-band-navy .wp-block-columns .wp-block-columns {
		gap: 16px;
	}

	.l4b-home > .l4b-home__articles {
		margin-top: 34px !important;
	}

	.l4b-home > .is-style-l4b-band-grey {
		margin-top: 30px !important;
		padding-top: 22px;
		padding-bottom: 24px;
	}

	.l4b-home > .l4b-home__faq {
		margin-top: 30px !important;
	}

	/* Article */
	.l4b-layout--article {
		margin-top: 18px;
	}

	.l4b-article__title {
		font-size: 24.5px !important;
		line-height: 1.2 !important;
	}

	.l4b-prose h2 {
		font-size: 21px;
		line-height: 1.35;
	}

	.l4b-article__lead {
		font-size: 14px;
	}

	/* Footer */
	.l4b-footer {
		margin-top: 30px;
	}

	.l4b-footer__top {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.l4b-box--footer-partners .wp-block-group,
	.l4b-box--footer-partners .l4b-partners {
		justify-content: flex-start;
		gap: 12px 20px;
	}

	.l4b-box--footer-partners img {
		max-height: 30px;
	}
}

/* ---------- Phone: measured against design/frames/*-mobile.png ---------- */

@media (max-width: 600px) {
	.l4b-header__bar {
		padding-top: 13px;
		gap: 3px;
	}

	.l4b-brand {
		gap: 14px;
		margin-left: 4px;
	}

	.l4b-logo {
		width: 48px;
		height: 48px;
	}

	.l4b-brand__title {
		font-size: 24px;
		letter-spacing: -0.012em;
	}

	.l4b-sections {
		padding-top: 15px;
	}

	.l4b-sections__list {
		gap: 8px;
	}

	.l4b-sections__list > li {
		flex-basis: 149px;
	}

	.l4b-section-card {
		height: 108px;
		padding: 16px 12px 12px;
	}

	.l4b-section-card__icon {
		width: 35px;
		height: 35px;
	}

	.l4b-section-card__label {
		margin-top: 9px;
	}

	/* Hero */
	.l4b-home > .is-style-l4b-hero {
		margin-top: 16px !important;
	}

	.wp-block-group.is-style-l4b-hero > .wp-block-columns {
		gap: 7px;
	}

	.is-style-l4b-hero h1 {
		margin-bottom: 13px;
		font-size: 29.5px;
		line-height: 1.15;
	}

	.is-style-l4b-hero .l4b-hero__lead {
		font-size: 16px;
		line-height: 1.3;
	}

	.is-style-l4b-hero .l4b-hero__sub {
		margin-top: 9px !important;
		font-size: 13px;
		line-height: 1.35;
	}

	.is-style-l4b-hero .wp-block-buttons {
		margin-top: 12px !important;
	}

	.is-style-l4b-hero .wp-block-button__link {
		padding: 11px 18px;
		font-size: 13px;
	}

	/* Navy band */
	.l4b-home > .is-style-l4b-band-navy {
		margin-top: 22px !important;
		padding-top: 27px;
		padding-bottom: 14px;
	}

	.is-style-l4b-band-navy h2 {
		max-width: 260px;
		font-size: 26px;
		line-height: 1.12;
	}

	.is-style-l4b-band-navy > .wp-block-columns {
		gap: 19px;
	}

	.is-style-l4b-band-navy > .wp-block-columns > .wp-block-column:first-child > p {
		margin-top: 15px !important;
		font-size: 14.5px;
		line-height: 1.38;
	}

	.is-style-l4b-band-navy > .wp-block-columns > .wp-block-column:first-child > .wp-block-buttons {
		padding-top: 22px;
	}

	.is-style-l4b-band-navy .wp-block-columns .wp-block-columns {
		gap: 23px;
	}

	/* Section rows */
	.l4b-home > .l4b-home__articles {
		margin-top: 30px !important;
	}

	.l4b-home > .is-style-l4b-band-grey {
		margin-top: 29px !important;
		padding-top: 24px;
		padding-bottom: 24px;
	}

	.l4b-home > .l4b-home__faq {
		margin-top: 18px !important;
	}

	.is-style-l4b-hero .wp-block-column:first-child {
		padding-left: 2px;
	}

	.l4b-box--footer-partners img {
		max-height: 22px;
	}

	/* Footer */
	.l4b-footer {
		margin-top: 28px;
		padding-top: 21px;
	}

	.l4b-footer__links {
		font-size: 11.5px;
		gap: 6px 12px;
	}
}
