/* ==========================================================================
   Būk savimi — main stylesheet
   Palette and fonts come from theme.json (var(--wp--preset--…)).
   ========================================================================== */

:root {
	--c-cream: var(--wp--preset--color--cream, #FBF8F1);
	--c-white: var(--wp--preset--color--white, #fff);
	--c-sage-50: var(--wp--preset--color--sage-50, #EEF2E8);
	--c-sage-200: #D9E1D0;
	--c-sage: var(--wp--preset--color--sage, #B4C0A8);
	--c-sage-600: var(--wp--preset--color--sage-600, #6F8564);
	--c-forest: var(--wp--preset--color--forest, #3F5A3A);
	--c-ink: var(--wp--preset--color--ink, #1D2A20);
	--c-muted: #4C5A4E;
	--c-butter-50: var(--wp--preset--color--butter-50, #FDF7DA);
	--c-butter: var(--wp--preset--color--butter, #FCF0A8);
	--c-berry: #F2D75B;
	--c-sky-50: var(--wp--preset--color--sky-50, #E6F0F5);
	--c-sky: var(--wp--preset--color--sky, #6CA8C8);
	--c-sky-700: var(--wp--preset--color--sky-700, #2F6E91);
	--c-footer: #24382A;

	--f-heading: var(--wp--preset--font-family--heading, Fraunces, Georgia, serif);
	--f-body: var(--wp--preset--font-family--body, "Nunito Sans", system-ui, sans-serif);

	--content: var(--wp--style--global--content-size, 46rem);
	--wide: var(--wp--style--global--wide-size, 76rem);
	--gutter: clamp(1rem, 4vw, 2rem);
	--section-y: clamp(3.5rem, 8vw, 6.5rem);
	--header-h: 84px;

	--r-s: 10px;
	--r-m: 18px;
	--r-l: 32px;
	--blob: 58% 42% 52% 48% / 46% 54% 46% 54%;
	--shadow: 0 1px 2px rgb(29 42 32 / 0.04), 0 12px 32px -12px rgb(29 42 32 / 0.14);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--c-cream);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

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

h1, h2, h3, h4 {
	font-family: var(--f-heading);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--c-ink);
	text-wrap: balance;
	margin: 0;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.35rem); font-weight: 600; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--c-forest); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color 0.2s; }
a:hover { color: var(--c-sky-700); }

:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 3px; border-radius: 4px; }

strong { font-weight: 800; }

.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 {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	background: var(--c-ink); color: #fff; padding: 0.75rem 1.25rem; border-radius: var(--r-s);
	font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	background: var(--c-forest); color: #fff;
	border: 2px solid var(--c-forest); border-radius: 999px;
	padding: 0.8rem 1.55rem;
	font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.wp-element-button:hover,
.wp-block-button__link:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; transform: translateY(-1px); }

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
	background: transparent; color: var(--c-forest); border-color: currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--c-forest); color: #fff; border-color: var(--c-forest); }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }

/* Text link with arrow */
.bs-more a,
a.bs-more {
	font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
}
.bs-more a::after,
a.bs-more::after { content: "→"; transition: transform 0.2s var(--ease); }
.bs-more a:hover::after,
a.bs-more:hover::after { transform: translateX(4px); }

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

.site-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, box-shadow 0.3s;
}
/* The blur sits on a background layer: on the header itself it would trap the fixed mobile menu inside the header box. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgb(251 248 241 / 0.92);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}
.nav-open .site-header::before { background: var(--c-cream); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header.is-scrolled { border-color: var(--c-sage-200); box-shadow: 0 6px 24px -18px rgb(29 42 32 / 0.5); }

.site-header__inner {
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin: 0 auto; padding: 0 var(--gutter);
	height: var(--header-h);
	display: flex; align-items: center; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--c-ink); flex-shrink: 0; }
.brand:hover { color: var(--c-ink); }
.brand__logo { width: 56px; height: 56px; transition: transform 0.6s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-8deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-heading); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; }
.brand__tag { font-size: 0.8rem; color: var(--c-muted); font-weight: 600; margin-top: 0.2rem; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.site-nav__phone { display: none; }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav a {
	display: block; padding: 0.55rem 0.8rem; border-radius: 999px;
	color: var(--c-ink); text-decoration: none; font-weight: 700; font-size: 0.98rem; white-space: nowrap;
	transition: background 0.2s, color 0.2s;
}
.primary-nav .menu > li > a:hover,
.primary-nav .menu > li:focus-within > a { background: var(--c-sage-50); color: var(--c-ink); }
.primary-nav .current-menu-item > a,
.primary-nav .is-active-parent > a { color: var(--c-forest); background: var(--c-sage-50); }

.menu-item-has-children > a { padding-right: 0.25rem !important; }
@media (min-width: 1121px) {
	.primary-nav .menu > li.menu-item-has-children { border-radius: 999px; padding-right: 0.3rem; transition: background 0.2s; }
	.primary-nav .menu > li.menu-item-has-children > a { background: none !important; }
	.primary-nav .menu > li.menu-item-has-children:hover,
	.primary-nav .menu > li.menu-item-has-children:focus-within,
	.primary-nav .menu > li.menu-item-has-children.is-open,
	.primary-nav .menu > li.menu-item-has-children.current-menu-item,
	.primary-nav .menu > li.menu-item-has-children.is-active-parent { background: var(--c-sage-50); }
	.primary-nav .menu > li.menu-item-has-children .submenu-toggle { margin-right: 0; }
}
.submenu-toggle {
	display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 0.3rem;
	border: 0; background: none; color: var(--c-ink); border-radius: 50%; cursor: pointer; padding: 0;
}
.submenu-toggle svg { transition: transform 0.2s; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 0.5rem;
	position: absolute; top: calc(100% + 0.4rem); left: 0; min-width: 15rem;
	background: #fff; border: 1px solid var(--c-sage-200); border-radius: var(--r-m); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; inset: -0.6rem 0 auto; height: 0.6rem; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { border-radius: var(--r-s); font-weight: 600; }
.primary-nav .sub-menu a:hover { background: var(--c-sage-50); }

.header-cta { padding: 0.65rem 1.2rem; font-size: 0.95rem; }

.site-header__actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-switch {
	list-style: none; margin: 0; padding: 3px; display: flex; gap: 2px;
	background: var(--c-sage-50); border-radius: 999px;
}
.lang-switch a {
	display: block; padding: 0.3rem 0.6rem; border-radius: 999px;
	font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; color: var(--c-muted); text-decoration: none;
}
.lang-switch a:hover { color: var(--c-ink); }
.lang-switch a.is-current { background: #fff; color: var(--c-forest); box-shadow: 0 1px 3px rgb(29 42 32 / 0.12); }

.nav-toggle {
	display: none; width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid var(--c-sage-200); background: #fff; cursor: pointer; place-items: center; padding: 0;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span { height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
	:root { --header-h: 72px; }
	.brand__logo { width: 48px; height: 48px; }
	.brand__name { font-size: 1.2rem; }
	.nav-toggle { display: grid; }
	.site-header__actions { margin-left: auto; }

	.site-nav {
		position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-h);
		margin: 0; padding: 1.5rem var(--gutter) 2.5rem;
		flex-direction: column; align-items: stretch; gap: 1.5rem;
		background: var(--c-cream); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 46px)); }
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
	/* While closed, nothing inside the panel may catch taps (not even the always-open submenus). */
	.site-nav { pointer-events: none; }
	.nav-open { overflow: hidden; }

	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--c-sage-200); }
	.primary-nav .menu > li > a { flex: 1; font-family: var(--f-heading); font-size: 1.45rem; font-weight: 500; padding: 0.9rem 0; background: none !important; }
	.submenu-toggle { display: none; }
	.primary-nav .sub-menu {
		position: static; opacity: 1; visibility: inherit; transform: none; /* inherit: hidden while the panel is closed */
		width: 100%; min-width: 0; padding: 0 0 0.9rem 0.25rem;
		border: 0; box-shadow: none; background: none;
	}
	.primary-nav .sub-menu::before { display: none; }
	.primary-nav .sub-menu a { padding: 0.45rem 0; font-size: 1.05rem; color: var(--c-muted); }
	.primary-nav .sub-menu a:hover { background: none; color: var(--c-forest); }

	.site-nav__extra { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
	.site-nav__phone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; text-decoration: none; }
	.header-cta { padding: 0.85rem 1.6rem; font-size: 1rem; }
}

@media (max-width: 420px) {
	.brand__tag { display: none; }
}

/* ---------- Page layout ---------- */

.site-main { display: block; }

.entry-content { padding-bottom: var(--section-y); }
.site-main--home .entry-content { padding-bottom: 0; }

.entry-content > * {
	width: min(100% - 2 * var(--gutter), var(--content));
	margin-inline: auto;
}
.entry-content > .alignwide { width: min(100% - 2 * var(--gutter), var(--wide)); }
.entry-content > .alignfull { width: 100%; }
.entry-content > * + * { margin-block-start: 1.25rem; }
.entry-content > .alignfull { margin-block: 0; }
.entry-content > :first-child:not(.alignfull) { margin-top: clamp(2.5rem, 6vw, 4.5rem); }

.entry-content > h2 { margin-top: 3rem; }
.entry-content > h3 { margin-top: 2rem; }
.entry-content ul:not([class*="bs-"]):not(.wp-block-gallery),
.entry-content ol:not([class*="bs-"]) { padding-left: 1.3rem; }
.entry-content li + li { margin-top: 0.35rem; }

.wp-block-image img { border-radius: var(--r-l); }
.wp-block-image figcaption { font-size: 0.875rem; color: var(--c-muted); margin-top: 0.6rem; text-align: center; }

/* Page hero (all pages except home) */
.page-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(60rem 22rem at 110% -20%, rgb(252 240 168 / 0.65), transparent 60%),
		radial-gradient(40rem 20rem at -10% 120%, rgb(108 168 200 / 0.18), transparent 60%),
		var(--c-sage-50);
	padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3rem, 7vw, 5rem);
	border-bottom-left-radius: var(--r-l) var(--r-l);
}
.page-hero__inner { max-width: var(--wide); margin: 0 auto; position: relative; z-index: 1; }
.page-hero__title { max-width: 20ch; }
.page-hero__lead { max-width: 40rem; margin-top: 1.1rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--c-muted); line-height: 1.6; }
.page-hero__eyebrow { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; color: var(--c-forest); margin-bottom: 0.75rem; }
.page-hero__sprig {
	position: absolute; right: max(-40px, calc((100vw - var(--wide)) / 2 - 60px)); bottom: -14px;
	width: clamp(200px, 30vw, 400px); height: auto; opacity: 0.9; pointer-events: none;
}
@media (max-width: 720px) { .page-hero__sprig { opacity: 0.35; right: -60px; } }
.page-hero .wp-block-buttons { margin-top: 2rem; }

/* ---------- Content sections (used inside the block editor) ---------- */

.bs-section {
	position: relative;
	padding: var(--section-y) var(--gutter);
}
.bs-section--sage { background: var(--c-sage-50); }
.bs-section--butter { background: var(--c-butter-50); }
.bs-section--sky { background: var(--c-sky-50); }
.bs-section--white { background: #fff; }
.bs-section--forest { background: var(--c-forest); color: #F4F1E6; }
.bs-section--forest :is(h2, h3, a) { color: #fff; }
.bs-section--rounded { border-radius: var(--r-l); }

.bs-kicker {
	font-size: 0.8rem !important; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--c-forest);
	display: inline-flex; align-items: center; gap: 0.6rem;
}
.bs-kicker::before { content: ""; width: 1.6rem; height: 2px; background: var(--c-sage-600); border-radius: 2px; }
.has-text-align-center.bs-kicker,
.bs-head .bs-kicker { justify-content: center; }
.bs-section--forest .bs-kicker { color: var(--c-butter); }
.bs-section--forest .bs-kicker::before { background: var(--c-butter); }

.bs-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.65; color: var(--c-muted); }
.bs-section--forest .bs-lead { color: #DCE3D3; }

.bs-head { text-align: center; max-width: 44rem; margin-inline: auto !important; }
.bs-head > * + * { margin-top: 1rem !important; }
.bs-head + * { margin-top: clamp(2rem, 4vw, 3.25rem) !important; }

/* Hero (home) */
.bs-hero {
	position: relative; overflow: hidden;
	padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
	background:
		radial-gradient(48rem 30rem at 95% 10%, rgb(252 240 168 / 0.7), transparent 62%),
		radial-gradient(36rem 26rem at -5% 95%, rgb(180 192 168 / 0.45), transparent 60%),
		var(--c-cream);
}
.bs-hero > .wp-block-columns { gap: clamp(2rem, 5vw, 4.5rem); align-items: center !important; }
.bs-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.05; letter-spacing: -0.02em; }
.bs-hero h1 em { font-style: normal; color: var(--c-forest); position: relative; white-space: nowrap; }
.bs-hero h1 em::after {
	content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.04em; height: 0.32em; z-index: -1;
	background: var(--c-butter); border-radius: 999px; transform: rotate(-1.2deg);
}
.bs-hero .bs-lead { max-width: 34rem; }
.bs-hero .wp-block-buttons { margin-top: 2rem !important; }

.bs-hero-media { position: relative; margin: 0; }
.bs-hero-media img {
	/* The photo's letter cards run almost the full width: keep the frame a little wider than square and anchored left. */
	width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: 0% 50%;
	border-radius: var(--blob) !important;
	box-shadow: var(--shadow);
}
.bs-hero-media::before {
	content: ""; position: absolute; inset: 6% -5% -5% 8%; z-index: -1;
	border-radius: var(--blob); background: var(--c-sky); opacity: 0.25; transform: rotate(8deg);
}
.bs-hero-media::after {
	content: ""; position: absolute; left: -4%; bottom: -2%;
	width: clamp(88px, 11vw, 132px); aspect-ratio: 1;
	background: url("../img/logo-320.png") center / contain no-repeat, #fff;
	border-radius: 50%; box-shadow: var(--shadow); border: 6px solid #fff;
	animation: bs-float 7s ease-in-out infinite;
}
@keyframes bs-float { 50% { transform: translateY(-8px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .bs-hero-media::after { animation: none; } }

/* Facts strip */
.bs-stats {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 !important;
	background: #fff; border: 1px solid var(--c-sage-200); border-radius: var(--r-l);
	padding: 0.5rem; box-shadow: var(--shadow);
	margin-top: clamp(2.5rem, 6vw, 4.5rem) !important;
}
.bs-stat { padding: 1.4rem 1.4rem; text-align: center; margin: 0 !important; }
.bs-stat + .bs-stat { border-left: 1px solid var(--c-sage-200); }
.bs-stat__num { font-family: var(--f-heading); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; color: var(--c-forest); line-height: 1.1; }
.bs-stat__label { font-size: 0.92rem; color: var(--c-muted); margin-top: 0.35rem !important; line-height: 1.4; }
@media (max-width: 860px) {
	.bs-stats { grid-template-columns: repeat(2, 1fr); }
	.bs-stat:nth-child(3) { border-left: 0; }
	.bs-stat:nth-child(n + 3) { border-top: 1px solid var(--c-sage-200); }
}

/* Split: image + text */
.bs-split > .wp-block-columns { gap: clamp(2rem, 6vw, 5rem); align-items: center !important; }
.bs-split .wp-block-image img { aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--r-l); }
.bs-split .wp-block-image.is-style-blob img,
.is-style-blob img { border-radius: var(--blob) !important; }
.bs-split .wp-block-column > * + * { margin-top: 1.1rem; }

.bs-signature { font-family: var(--f-heading); font-size: 1.1rem; color: var(--c-forest); }

/* Card grid */
.bs-grid { display: grid !important; gap: clamp(1rem, 2vw, 1.5rem) !important; }
.bs-grid > * { margin: 0 !important; }
.bs-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.bs-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.bs-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }

.bs-card {
	position: relative;
	background: #fff; border: 1px solid var(--c-sage-200); border-radius: var(--r-l);
	padding: clamp(1.5rem, 2.5vw, 2rem);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.bs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bs-card > * + * { margin-top: 0.7rem !important; }
.bs-card h3 { font-size: 1.25rem; }
.bs-card p { color: var(--c-muted); font-size: 1rem; line-height: 1.6; }

.bs-card[class*="bs-icon-"]::before {
	content: ""; display: block; width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem;
	border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
	background-color: var(--c-butter);
	background-image: var(--icon); background-repeat: no-repeat; background-position: center; background-size: 1.6rem;
}
.bs-card.bs-icon-home { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2A20' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10.5 12 4l8.5 6.5V20h-17z'/%3E%3Cpath d='M9.5 20v-5.5h5V20'/%3E%3C/svg%3E"); }
.bs-card.bs-icon-leaf { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2A20' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19C5 10 10 5 20 4c-1 10-6 15-15 15Z'/%3E%3Cpath d='M5 19l8-8'/%3E%3C/svg%3E"); }
.bs-card.bs-icon-people { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2A20' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='7' r='3'/%3E%3Cpath d='M3 20c0-4 2.2-7 5-7s5 3 5 7'/%3E%3Ccircle cx='17' cy='10' r='2.2'/%3E%3Cpath d='M13.8 20c.2-3 1.5-5.4 3.2-5.4S20.3 17 20.5 20'/%3E%3C/svg%3E"); }
.bs-card.bs-icon-hand { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2A20' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 13V6a1.5 1.5 0 0 1 3 0v5'/%3E%3Cpath d='M11 10.5V4.5a1.5 1.5 0 0 1 3 0v6'/%3E%3Cpath d='M14 10.5V6a1.5 1.5 0 0 1 3 0v5'/%3E%3Cpath d='M17 9.5a1.5 1.5 0 0 1 3 0V15a6 6 0 0 1-6 6h-1.5a6 6 0 0 1-5-2.7L4.3 14.6a1.6 1.6 0 0 1 2.6-1.8L8 14'/%3E%3C/svg%3E"); }
.bs-card.bs-icon-heart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2A20' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7a4.3 4.3 0 0 1 7.5 2.8C19.5 15.4 12 20 12 20Z'/%3E%3C/svg%3E"); }
.bs-card.bs-icon-sun { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2A20' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4'/%3E%3C/svg%3E"); }
.bs-grid > .bs-card:nth-child(4n + 2)::before { background-color: var(--c-sky-50); }
.bs-grid > .bs-card:nth-child(4n + 3)::before { background-color: var(--c-sage-50); }
.bs-grid > .bs-card:nth-child(4n + 4)::before { background-color: #F7E7DF; }

/* Group cards (admissions / home) */
.bs-group-card {
	display: flex; flex-direction: column;
	background: #fff; border-radius: var(--r-l); overflow: hidden;
	border: 1px solid var(--c-sage-200);
	padding: 0 !important;
}
.bs-group-card > * { margin: 0 !important; padding-inline: clamp(1.5rem, 2.5vw, 2rem); }
.bs-group-card > :last-child { padding-bottom: clamp(1.5rem, 2.5vw, 2rem); }
.bs-group-card > .bs-more { margin-top: auto !important; }
.bs-group-card .bs-age {
	padding-block: 1.6rem 1.3rem; margin-bottom: 1.25rem !important;
	font-family: var(--f-heading); font-size: 2.4rem; font-weight: 600; line-height: 1;
	background: var(--c-butter-50); color: var(--c-ink);
}
.bs-group-card .bs-age span,
.bs-group-card .bs-age em { font-style: normal; display: block; font-family: var(--f-body); font-size: 0.85rem; font-weight: 700; color: var(--c-muted); margin-top: 0.4rem; letter-spacing: 0.02em; }
.bs-grid > .bs-group-card:nth-child(3n + 2) .bs-age { background: var(--c-sage-50); }
.bs-grid > .bs-group-card:nth-child(3n + 3) .bs-age { background: var(--c-sky-50); }
.bs-group-card h3 { margin-bottom: 0.6rem !important; }
.bs-group-card p:not(.bs-age):not(.bs-more) { color: var(--c-muted); font-size: 1rem; }
.bs-group-card > p:not(.bs-age):not(:last-child) { margin-bottom: 1.25rem !important; }

/* Quote */
.bs-quote {
	position: relative; text-align: center; overflow: hidden;
}
.bs-quote blockquote,
.bs-quote .wp-block-quote { border: 0; margin: 0 auto; padding: 0; max-width: 48rem; }
.bs-quote blockquote p {
	font-family: var(--f-heading); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; color: #fff;
}
.bs-quote blockquote::before {
	content: "“"; display: block; font-family: var(--f-heading); font-size: 6rem; line-height: 0.6; height: 2.5rem; color: var(--c-butter);
}
.bs-quote cite { display: block; margin-top: 1.5rem; font-style: normal; font-weight: 700; color: var(--c-butter); font-size: 0.95rem; letter-spacing: 0.04em; }
.bs-quote::after {
	content: ""; position: absolute; right: -60px; bottom: -40px; width: 320px; height: 200px; opacity: 0.18;
	background: url("../img/sprig.svg") center / contain no-repeat; pointer-events: none;
}

/* Inline pull quote (in regular pages) */
.entry-content > .wp-block-quote,
.bs-pull {
	border: 0; border-left: 4px solid var(--c-butter); margin-block: 2.25rem !important; padding: 0.25rem 0 0.25rem 1.5rem;
}
.entry-content > .wp-block-quote p,
.bs-pull p { font-family: var(--f-heading); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; }
.entry-content > .wp-block-quote cite { display: block; margin-top: 0.75rem; font-size: 0.9rem; color: var(--c-muted); font-style: normal; }

/* Callout box */
.bs-callout {
	background: var(--c-butter-50); border-radius: var(--r-m); padding: clamp(1.25rem, 3vw, 2rem) !important;
	border: 1px solid #F1E5A6;
}
.bs-callout--sage { background: var(--c-sage-50); border-color: var(--c-sage-200); }
.bs-callout > * + * { margin-top: 0.75rem !important; }

/* Facebook section */
.bs-social > .wp-block-columns { gap: clamp(2rem, 6vw, 5rem); align-items: center !important; }
.bs-social .wp-block-column > * + * { margin-top: 1.1rem; }

.bs-embed {
	position: relative; width: 100%;
	min-height: var(--embed-h, 600px);
	background: #fff; border-radius: var(--r-l); overflow: hidden;
	border: 1px solid var(--c-sage-200); box-shadow: var(--shadow);
}
.bs-embed--facebook { max-width: 520px; margin-inline: auto; padding: 10px; }
.bs-embed iframe { display: block; width: 100%; border: 0; height: var(--embed-h, 600px); }
.bs-embed--facebook iframe { border-radius: calc(var(--r-l) - 10px); }
.bs-embed__placeholder {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
	text-align: center; padding: 2rem; color: var(--c-muted);
	background:
		radial-gradient(20rem 14rem at 50% 0%, var(--c-sage-50), transparent 70%),
		#fff;
}
.bs-embed__placeholder .bs-icon { width: 44px; height: 44px; color: var(--c-forest); }
.bs-embed__placeholder p { max-width: 22rem; font-size: 0.95rem; }
.bs-embed__direct { font-size: 0.9rem; font-weight: 700; }
.bs-embed.is-loaded .bs-embed__placeholder { display: none; }
.bs-embed--map { min-height: var(--embed-h, 420px); }

/* Myths & facts (Details block) */
.bs-myths { counter-reset: myth; }
.bs-myths > * + * { margin-top: 0.9rem !important; }
.wp-block-details.bs-myth,
.bs-myths .wp-block-details {
	counter-increment: myth;
	background: #fff; border: 1px solid var(--c-sage-200); border-radius: var(--r-m);
	padding: 0; transition: box-shadow 0.3s, border-color 0.3s;
}
.bs-myths .wp-block-details[open] { box-shadow: var(--shadow); border-color: var(--c-sage); }
.bs-myths .wp-block-details summary {
	list-style: none; cursor: pointer; position: relative; display: block;
	padding: 1.15rem 3.75rem 1.15rem 1.35rem;
	font-family: var(--f-heading); font-size: clamp(1.1rem, 1.6vw, 1.25rem); font-weight: 500; line-height: 1.4;
}
.bs-myths .wp-block-details summary::-webkit-details-marker { display: none; }
.bs-myths .wp-block-details summary::after {
	content: ""; position: absolute; right: 1.6rem; top: 50%; width: 0.7rem; height: 0.7rem;
	border-right: 2px solid var(--c-forest); border-bottom: 2px solid var(--c-forest);
	transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--ease);
}
.bs-myths .wp-block-details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.bs-myths .wp-block-details > :not(summary) { margin: 0 1.35rem; }
.bs-myths .wp-block-details > :not(summary) + :not(summary) { margin-top: 0.9rem; }
.bs-myths .wp-block-details > :last-child { margin-bottom: 1.35rem; }
.bs-myths .wp-block-details summary + * { margin-top: 0; }
.bs-myth-belief { color: var(--c-muted); font-style: italic; }
.bs-fact {
	background: var(--c-sage-50); border-radius: var(--r-s); padding: 1rem 1.25rem !important;
}
.bs-fact > * + * { margin-top: 0.7rem !important; }
.bs-myth-belief > strong:first-child,
.bs-fact > :first-child strong:first-child,
.bs-myth-legend strong {
	display: inline-flex; align-items: center; gap: 0.3rem; margin-right: 0.5rem; padding: 0.12rem 0.6rem 0.12rem 0.5rem; border-radius: 999px;
	font-family: var(--f-body); font-size: 0.72rem; font-weight: 800; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 0.2em;
	background: var(--c-forest); color: #fff;
}
.bs-myth-belief > strong:first-child,
.bs-myth-legend strong:first-of-type { background: #F8E1DA; color: #8A3324; }
.bs-myth-belief > strong:first-child::before,
.bs-myth-legend strong:first-of-type::before { content: "✕"; font-size: 0.8em; }
.bs-fact > :first-child strong:first-child::before,
.bs-myth-legend strong:last-of-type::before { content: "✓"; font-size: 0.9em; }
.bs-myth-belief > strong:first-child { font-style: normal; }
/* Myth and fact boxes: same inset on both sides */
.bs-myths .wp-block-details > .bs-myth-belief,
.bs-myths .wp-block-details > .bs-fact { margin-inline: 1.35rem !important; }
.bs-fact { border-left: 3px solid var(--c-sage-600); }
.bs-myth-legend { text-align: center; color: var(--c-muted); font-size: 0.95rem; line-height: 2.2; }
.bs-myth-legend strong:last-of-type { margin-left: 1.5rem; }
.bs-myth-legend + .bs-myths { margin-top: 1.75rem !important; }
.bs-head + .bs-myth-legend { margin-top: 1.5rem !important; }

/* Timeline */
.bs-timeline { position: relative; }
.bs-timeline::before {
	content: ""; position: absolute; top: 0.5rem; bottom: 0.5rem; left: calc(6.5rem + 1.5rem - 1px);
	width: 2px; background: repeating-linear-gradient(to bottom, var(--c-sage) 0 6px, transparent 6px 12px);
}
.bs-timeline > * + * { margin-top: 1.5rem !important; }
.bs-tl-item {
	display: grid !important; grid-template-columns: 6.5rem 1fr; column-gap: 3rem;
	position: relative;
}
.bs-tl-item > * { grid-column: 2; margin: 0 !important; }
.bs-tl-item > * + * { margin-top: 0.6rem !important; }
.bs-tl-item > .bs-tl-year {
	grid-column: 1; grid-row: 1 / span 10; text-align: right;
	font-family: var(--f-heading); font-size: 1.6rem; font-weight: 600; color: var(--c-forest); line-height: 1.2;
	padding-top: 1.35rem;
}
.bs-tl-item > .bs-tl-year::after {
	content: ""; position: absolute; left: calc(6.5rem + 1.5rem - 0.55rem); top: 1.75rem;
	width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--c-berry); border: 3px solid var(--c-cream);
	box-shadow: 0 0 0 2px var(--c-sage-600);
}
.bs-tl-card {
	background: #fff; border: 1px solid var(--c-sage-200); border-radius: var(--r-m); padding: 1.35rem 1.5rem !important;
}
.bs-tl-card > * + * { margin-top: 0.6rem !important; }
.bs-tl-card p { color: var(--c-muted); font-size: 1rem; }
.bs-tl-item--now .bs-tl-card { background: var(--c-butter-50); border-color: #F1E5A6; }
@media (max-width: 640px) {
	.bs-timeline::before { left: 0.55rem; }
	.bs-tl-item { grid-template-columns: 1fr; padding-left: 2.25rem; }
	.bs-tl-item > * { grid-column: 1; }
	.bs-tl-item > .bs-tl-year { grid-row: auto; text-align: left; padding-top: 0; font-size: 1.35rem; }
	.bs-tl-item > .bs-tl-year::after { left: 0.05rem; top: 0.35rem; }
}

/* Steps */
.bs-steps { counter-reset: step; }
.bs-step { counter-increment: step; position: relative; padding-top: 3.75rem !important; }
.bs-step::before {
	content: counter(step); position: absolute; top: clamp(1.5rem, 2.5vw, 2rem); left: clamp(1.5rem, 2.5vw, 2rem);
	width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--c-forest); color: #fff; font-weight: 800;
}
.bs-step.bs-card { padding-top: calc(clamp(1.5rem, 2.5vw, 2rem) + 3.5rem) !important; }

/* Checklist */
ul.bs-checklist { list-style: none; padding: 0 !important; }
ul.bs-checklist li { position: relative; padding-left: 2.1rem; }
ul.bs-checklist li + li { margin-top: 0.7rem; }
ul.bs-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
	background: var(--c-sage-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F5A3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
ul.bs-checklist--dots li::before { background: var(--c-butter); width: 0.6rem; height: 0.6rem; top: 0.6rem; left: 0.4rem; }

/* Requisites */
ul.bs-requisites { list-style: none; padding: 0 !important; margin-block: 1.25rem 0; }
ul.bs-requisites li {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
	padding: 0.75rem 0; border-bottom: 1px dashed var(--c-sage-200); margin: 0 !important;
}
ul.bs-requisites li strong { font-weight: 600; color: var(--c-muted); }

/* Contact list */
ul.bs-phones { list-style: none; padding: 0 !important; margin-block: 0; }
ul.bs-phones li { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.5rem !important; }
ul.bs-phones a { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--c-ink); }
ul.bs-phones a:hover { color: var(--c-forest); }
.bs-phones__name { color: var(--c-muted); }
.bs-phones .bs-icon { color: var(--c-forest); flex-shrink: 0; }
.bs-section--forest ul.bs-phones a { color: #fff; }
.bs-section--forest .bs-phones__name { color: #DCE3D3; }
.bs-section--forest .bs-phones .bs-icon { color: var(--c-butter); }

.bs-contact-card {
	background: #fff; border-radius: var(--r-l); border: 1px solid var(--c-sage-200); padding: clamp(1.5rem, 3vw, 2.25rem) !important;
}
.bs-contact-card > * + * { margin-top: 1rem !important; }
.bs-contact-card h3 { font-size: 0.82rem; font-family: var(--f-body); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-forest); margin-top: 1.75rem !important; }
.bs-contact-card h3:first-child { margin-top: 0 !important; }
.bs-contact-card .bs-big { font-family: var(--f-heading); font-size: 1.35rem; line-height: 1.35; }

/* CTA band */
.bs-cta-wrap { padding: 0 var(--gutter) var(--section-y); }
.bs-cta {
	position: relative; overflow: hidden; text-align: center;
	max-width: var(--wide); margin-inline: auto !important;
	background:
		radial-gradient(30rem 16rem at 0% 100%, rgb(180 192 168 / 0.55), transparent 70%),
		radial-gradient(26rem 14rem at 100% 0%, rgb(108 168 200 / 0.25), transparent 70%),
		var(--c-butter-50);
	border-radius: var(--r-l); padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) !important;
	border: 1px solid #F1E5A6;
}
.bs-cta > * { max-width: 40rem; margin-inline: auto !important; }
.bs-cta > * + * { margin-top: 1.1rem !important; }
.bs-cta .wp-block-buttons { justify-content: center; margin-top: 1.75rem !important; }
.bs-cta .bs-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; }

/* News list */
.post-list { max-width: var(--wide); margin: 0 auto; padding: var(--section-y) var(--gutter); display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.post-card { background: #fff; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--c-sage-200); }
.post-card__media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card__body { padding: 1.5rem; }
.post-card__body > * + * { margin-top: 0.5rem; }
.post-card__date { font-size: 0.85rem; color: var(--c-muted); font-weight: 700; }
.post-card__title { font-size: 1.3rem; }
.post-card__title a { color: var(--c-ink); text-decoration: none; }

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

.site-footer { position: relative; background: var(--c-footer); color: #D9E0D2; margin-top: 60px; }
.site-footer__wave { position: absolute; left: 0; bottom: 100%; width: 100%; height: 60px; color: var(--c-footer); display: block; }
.site-footer__inner {
	max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2.5rem;
	display: grid; grid-template-columns: 1.4fr 1.2fr 0.9fr 1fr; gap: 2.5rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--c-butter); }
.site-footer__brand img { width: 96px; height: 96px; background: #fff; border-radius: 50%; padding: 4px; }
.site-footer__brand p { margin-top: 1.25rem; font-size: 0.98rem; max-width: 22rem; line-height: 1.65; }
.site-footer__title {
	font-family: var(--f-body); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--c-butter); margin-bottom: 1.1rem;
}
.site-footer__list, .site-footer__menu { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.98rem; }
.site-footer__list li + li { margin-top: 0.7rem; }
.site-footer__note { display: block; font-size: 0.85rem; color: #AFBBA8; margin-top: 0.15rem; }
.site-footer__list .bs-icon { flex-shrink: 0; color: var(--c-sage); margin-top: 0.2rem; width: 18px; height: 18px; }
.site-footer__menu li + li { margin-top: 0.5rem; }
.site-footer__menu a { font-size: 0.98rem; }
.site-footer__col > p { font-size: 0.98rem; }
.site-footer__social {
	display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem;
	padding: 0.6rem 1.1rem 0.6rem 0.8rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.25); font-weight: 700;
}
.site-footer__social:hover { border-color: var(--c-butter); }
.site-footer__bottom {
	max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 1.25rem var(--gutter) 1.75rem;
	border-top: 1px solid rgb(255 255 255 / 0.12);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
	font-size: 0.875rem; color: #AFBBA8;
}
.lang-switch--footer { background: rgb(255 255 255 / 0.08); }
.lang-switch--footer a { color: #D9E0D2; }
.lang-switch--footer a:hover { color: #fff; }
.lang-switch--footer a.is-current { background: var(--c-butter); color: var(--c-ink); }

@media (max-width: 960px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Columns stacking ---------- */
@media (max-width: 781px) {
	.wp-block-columns { flex-wrap: wrap !important; }
	.wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.bs-hero .bs-hero-media { max-width: 30rem; margin-inline: auto; }
}

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .bs-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .bs-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .bs-reveal { opacity: 1; transform: none; transition: none; }
	.bs-card:hover { transform: none; }
}

/* ---------- Editor tweaks (the same file loads in the block editor) ---------- */
.editor-styles-wrapper .bs-reveal { opacity: 1 !important; transform: none !important; }
.editor-styles-wrapper .bs-embed__placeholder { position: static; min-height: 200px; }

/* ---------- Page-specific details ---------- */
.bs-section--flush-top { padding-top: clamp(2.5rem, 6vw, 4rem); }
.bs-split .bs-crest img, .bs-crest img { aspect-ratio: 1 !important; object-fit: contain !important; border-radius: 0 !important; max-width: 300px; margin-inline: auto; filter: drop-shadow(0 18px 30px rgb(29 42 32 / 0.18)); }
.bs-portrait img { border-radius: var(--r-l); aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
.bs-portrait { position: relative; }
.bs-portrait::after { content: ""; position: absolute; inset: auto -12px -12px auto; width: 60%; height: 60%; border-radius: var(--r-l); background: var(--c-butter); z-index: -1; }
.entry-content > .wp-block-columns + h2 { margin-top: 3.5rem; }
.bs-source { font-size: 0.92rem; color: var(--c-muted); }
.bs-social__photo { max-width: 280px; margin-top: 2rem !important; }
.bs-social__photo img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 781px) { .bs-social__photo { display: none; } }
.bs-split .bs-pull { max-width: 46rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0 !important; text-align: center; border-left: 0; padding: 0; }
.bs-split .bs-pull p { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.bs-split .bs-pull::before { content: ""; display: block; width: 3rem; height: 3px; border-radius: 3px; background: var(--c-berry); margin: 0 auto 1.25rem; }

/* Facebook feed: example cards and Smash Balloon wrapper */
.bs-fb-feed {
	background: #fff; border-radius: var(--r-l); border: 1px solid var(--c-sage-200); box-shadow: var(--shadow);
	padding: clamp(1rem, 2vw, 1.5rem); max-width: 560px; margin-inline: auto;
}
.bs-fb-feed__head { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-sage-200); }
.bs-fb-feed__head img { width: 44px; height: 44px; border-radius: 50%; }
.bs-fb-feed__name { font-family: var(--f-heading); font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.bs-fb-feed__meta { display: flex; align-items: center; gap: 0.25rem; font-size: 0.85rem; color: var(--c-muted); }
.bs-fb-feed__meta .bs-icon { width: 16px; height: 16px; color: #1877F2; }
.bs-fb-feed__follow {
	margin-left: auto; padding: 0.45rem 1rem; border-radius: 999px; background: var(--c-sage-50);
	font-weight: 800; font-size: 0.9rem; text-decoration: none; color: var(--c-forest);
}
.bs-fb-feed__follow:hover { background: var(--c-forest); color: #fff; }
.bs-fb-feed__list { list-style: none; margin: 0; padding: 0; }
.bs-fb-post + .bs-fb-post { border-top: 1px dashed var(--c-sage-200); }
.bs-fb-post__link { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1rem 0; text-decoration: none; color: var(--c-ink); align-items: start; }
.bs-fb-post:last-child .bs-fb-post__link { padding-bottom: 0.25rem; }
.bs-fb-post__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-m); transition: transform 0.4s var(--ease); }
.bs-fb-post__link:hover .bs-fb-post__img { transform: scale(1.03); }
.bs-fb-post__body { display: flex; flex-direction: column; gap: 0.35rem; }
.bs-fb-post__badge { align-self: flex-start; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-sky-700); background: var(--c-sky-50); border-radius: 999px; padding: 0.15rem 0.55rem; }
.bs-fb-post__text { font-size: 0.98rem; line-height: 1.55; }
.bs-fb-post__more { font-size: 0.88rem; font-weight: 800; color: var(--c-forest); }
.bs-fb-post__link:hover .bs-fb-post__more { color: var(--c-sky-700); }
@media (max-width: 480px) { .bs-fb-post__link { grid-template-columns: 6rem 1fr; } }
.bs-fb-feed--sb { padding: 1rem; }

/* Footer wave: overlap 1px so no seam shows */
.site-footer__wave { bottom: calc(100% - 1px); }

/* Breathing room between a two-column intro and the card grid below it */
.bs-section > .wp-block-columns + .bs-grid,
.bs-section > .wp-block-columns + .bs-pull { margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; }
.bs-tl-item > .bs-tl-year { font-size: 1.45rem; }
@media (max-width: 640px) { .bs-tl-item > .bs-tl-year::after { left: 0.05rem; top: 0.35rem; } }

@media (max-width: 520px) {
	.bs-stat { padding: 1.1rem 0.75rem; }
	.bs-stat__num { font-size: 1.45rem; }
	.bs-stat__label { font-size: 0.85rem; }
}

/* Two group cards: keep them a comfortable width and centred */
.bs-section .bs-grid--pair,
.bs-section .bs-grid--pair + .bs-callout { max-width: 54rem !important; margin-inline: auto !important; }
.bs-section .bs-grid--pair + .bs-callout { margin-top: clamp(1.5rem, 3vw, 2rem) !important; }

/* Contact banner after plain content (timeline, myths, text): give it the same breathing room as after a section */
.entry-content > :not(.alignfull) + .bs-cta-wrap { padding-top: var(--section-y); }

/* Address: second entrance */
.bs-addr-note { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.92rem; font-weight: 700; color: var(--c-forest); background: var(--c-sage-50); border-radius: 999px; padding: 0.25rem 0.8rem; }
.bs-contact-card .bs-addr-note { margin-top: 0.6rem !important; }
.bs-addr-note:empty { display: none; }

/* ---------- Facebook feed ---------- */
.bs-social .bs-head + * { margin-top: clamp(2rem, 4vw, 3rem) !important; }
.bs-social .wp-block-buttons { margin-top: clamp(1.75rem, 3vw, 2.5rem) !important; }
.bs-fb-feed-wrap { max-width: var(--wide); margin-inline: auto; }
.bs-fb-feed-wrap--box .bs-embed { max-width: 520px; }

.bs-fb-grid {
	list-style: none; margin: 0 auto; padding: 0; max-width: 60rem;
	display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bs-fb-grid > li { margin: 0 !important; }

/* One card design for every source. The whole card is clickable through the "more" link. */
.bs-fb-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--c-sage-200); border-radius: var(--r-l); overflow: hidden;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.bs-fb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bs-fb-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--c-sage-50); overflow: hidden; }
.bs-fb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.bs-fb-card:hover .bs-fb-card__media img { transform: scale(1.04); }
.bs-fb-card__media .bs-icon { width: 40px; height: 40px; color: var(--c-sage-600); }
.bs-fb-card__media.is-video::after {
	content: ""; position: absolute; z-index: 2; inset: 50% auto auto 50%; width: 3.25rem; height: 3.25rem; transform: translate(-50%, -50%);
	border-radius: 50%; background: rgb(255 255 255 / 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%233F5A3A'/%3E%3C/svg%3E") 55% 50% / 1.5rem no-repeat;
	box-shadow: var(--shadow); transition: transform 0.3s var(--ease);
}
.bs-fb-card:hover .bs-fb-card__media.is-video::after { transform: translate(-50%, -50%) scale(1.08); }

/* Facebook's embed as a preview: centred, cropped to the picture area, not clickable itself */
.bs-fb-card__media--embed { aspect-ratio: 16 / 9; }
.bs-fb-card__media--embed > .fb-post,
.bs-fb-card__media--embed > .fb-video {
	position: absolute; z-index: 1; left: 0; right: 0; top: 50%;
	transform: translateY(-50%) scale(1.06); /* a touch of zoom hides the player's thin black edges */
	pointer-events: none;
}
.bs-fb-card__media--embed.is-video::after { display: none; } /* Facebook draws its own play button */
.bs-fb-card__media--embed > div > span,
.bs-fb-card__media--embed iframe { display: block; width: 100% !important; }
.bs-fb-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; }

.bs-fb-card__body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1rem 1.2rem 1.15rem; flex: 1; }
.bs-fb-card__body > * { margin: 0 !important; }
.bs-fb-card__meta { font-size: 0.82rem; font-weight: 700; color: var(--c-muted); }
.bs-fb-card__badge { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-sky-700); background: var(--c-sky-50); border-radius: 999px; padding: 0.15rem 0.6rem; }
.bs-fb-card__text { font-size: 0.95rem; line-height: 1.55; color: var(--c-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bs-fb-card__more { margin-top: auto !important; padding-top: 0.15rem; font-size: 0.9rem; font-weight: 800; color: var(--c-forest); text-decoration: none; }
.bs-fb-card__more::after { content: " →"; }
.bs-fb-card__more::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.bs-fb-card:hover .bs-fb-card__more { color: var(--c-sky-700); }
.bs-fb-section + .wp-block-buttons { margin-top: clamp(1.75rem, 3vw, 2.5rem) !important; }

.bs-fb-embeds__consent { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; text-align: center; margin-bottom: 1.5rem; color: var(--c-muted); }
.bs-fb-embeds.is-loaded .bs-fb-embeds__consent { display: none; }
.bs-fb-admin-note { max-width: var(--wide); margin: 0 auto 1rem !important; padding: 0.75rem 1rem; border-radius: var(--r-s); background: #F8E1DA; color: #8A3324; font-size: 0.9rem; }

@media (max-width: 900px) {
	/* Swipe through posts sideways instead of a long column */
	.bs-fb-grid {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 300px);
		overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
		padding-bottom: 0.75rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
	}
	.bs-fb-grid > li { scroll-snap-align: start; }
}

/* Space between a card grid and the button under it */
.bs-section > .bs-grid + .wp-block-buttons { margin-top: clamp(2rem, 4vw, 2.75rem) !important; }
/* Inner pages already pad the bottom of the content, so the closing banner doesn't need its own bottom padding */
.site-main:not(.site-main--home) .entry-content > .bs-cta-wrap:last-child { padding-bottom: 0; }

/* ==========================================================================
   News (blog): list, cards and single article
   ========================================================================== */

.news-list { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) var(--section-y); }

.news-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }

.news-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--c-sage-200); border-radius: var(--r-l); overflow: hidden;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-sage-50); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__media.is-empty { display: grid; place-items: center; background: radial-gradient(14rem 9rem at 70% 20%, rgb(252 240 168 / 0.7), transparent 70%), var(--c-sage-50); }
.news-card__media.is-empty img { width: 30%; max-width: 120px; height: auto; object-fit: contain; opacity: 0.9; }
.news-card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.35rem 1.5rem 1.5rem; flex: 1; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; font-size: 0.85rem; font-weight: 700; color: var(--c-muted); }
.news-card__cat { padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--c-butter-50); color: var(--c-forest); font-size: 0.78rem; font-weight: 800; }
.news-card__title { font-size: 1.3rem; line-height: 1.25; }
.news-card__title a { color: var(--c-ink); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.news-card:hover .news-card__title a { color: var(--c-forest); }
.news-card__excerpt { color: var(--c-muted); font-size: 0.98rem; line-height: 1.6; }
.news-card__more { margin-top: auto; padding-top: 0.25rem; font-weight: 800; font-size: 0.92rem; color: var(--c-forest); }
.news-card__more::after { content: " →"; }

/* The newest post on the first page: large and side by side */
@media (min-width: 900px) {
	.news-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
	.news-card--featured .news-card__media { aspect-ratio: auto; min-height: 22rem; }
	.news-card--featured .news-card__body { justify-content: center; padding: clamp(2rem, 4vw, 3.25rem); gap: 0.9rem; }
	.news-card--featured .news-card__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
	.news-card--featured .news-card__excerpt { font-size: 1.05rem; }
	.news-card--featured .news-card__more { margin-top: 0.75rem; }
}

/* Pagination */
.news-pagination { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.news-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.news-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 0.9rem; border-radius: 999px;
	background: #fff; border: 1px solid var(--c-sage-200); color: var(--c-ink); font-weight: 700; text-decoration: none;
}
.news-pagination a.page-numbers:hover { border-color: var(--c-forest); color: var(--c-forest); }
.news-pagination .page-numbers.current { background: var(--c-forest); border-color: var(--c-forest); color: #fff; }
.news-pagination .page-numbers.dots { background: none; border: 0; }

/* Empty list */
.news-empty {
	max-width: 38rem; margin: 0 auto; text-align: center;
	background: #fff; border: 1px solid var(--c-sage-200); border-radius: var(--r-l); padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
}
.news-empty img { width: 150px; margin: 0 auto 1.25rem; opacity: 0.85; }
.news-empty h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.news-empty p { margin-top: 0.75rem !important; color: var(--c-muted); }
.news-empty .wp-block-buttons { margin-top: 1.75rem; }
.news-follow { padding-top: 0; }

/* Article */
.news-hero__inner { max-width: var(--content); } /* lines up with the article text */
.news-hero__title { max-width: none; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.news-hero.has-cover { padding-bottom: clamp(6rem, 12vw, 9rem); }
.news-back { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.25rem; font-weight: 800; font-size: 0.92rem; text-decoration: none; color: var(--c-forest); }
.news-back::before { content: "←"; transition: transform 0.2s var(--ease); }
.news-back:hover::before { transform: translateX(-4px); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin-bottom: 0.9rem !important; font-size: 0.9rem; font-weight: 700; color: var(--c-muted); }
.news-meta > * + *::before { content: "·"; margin-right: 0.6rem; color: var(--c-sage-600); }
.news-meta__cat { color: var(--c-forest); text-decoration: none; }
.news-meta__cat:hover { text-decoration: underline; }

.news-cover {
	position: relative; z-index: 2;
	width: min(100% - 2 * var(--gutter), 60rem); margin: calc(-1 * clamp(4.5rem, 9vw, 7rem)) auto 0;
}
.news-cover img { width: 100%; max-height: 36rem; object-fit: cover; border-radius: var(--r-l); box-shadow: var(--shadow); }
.news-cover figcaption { margin-top: 0.6rem; text-align: center; font-size: 0.875rem; color: var(--c-muted); }
.news-cover + .news-content > :first-child { margin-top: clamp(2rem, 5vw, 3rem); }

.news-content { font-size: 1.1rem; line-height: 1.75; padding-bottom: clamp(2rem, 4vw, 3rem); }
.news-content > p + p { margin-top: 1.1rem; }
.news-content > .wp-block-image,
.news-content > .wp-block-gallery,
.news-content > figure { margin-block: 2rem !important; }
.news-content .wp-block-gallery img { border-radius: var(--r-m); }

.news-footer { width: min(100% - 2 * var(--gutter), var(--content)); margin: 0 auto; padding: 1.5rem 0 var(--section-y); border-top: 1px solid var(--c-sage-200); }
.news-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.news-share__label { font-weight: 800; font-size: 0.9rem; color: var(--c-muted); margin-right: 0.25rem; }
.news-share__btn {
	display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border-radius: 999px;
	background: #fff; border: 1px solid var(--c-sage-200); color: var(--c-ink); font: inherit; font-size: 0.9rem; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.news-share__btn .bs-icon { width: 18px; height: 18px; color: #1877F2; }
.news-share__btn:hover { border-color: var(--c-forest); color: var(--c-forest); }
.news-share__copy.is-done { background: var(--c-sage-50); border-color: var(--c-sage-600); color: var(--c-forest); }

.news-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.news-nav__link {
	display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.35rem; border-radius: var(--r-m);
	background: #fff; border: 1px solid var(--c-sage-200); color: var(--c-ink); text-decoration: none;
	font-family: var(--f-heading); font-size: 1.1rem; line-height: 1.3; transition: border-color 0.2s, box-shadow 0.3s;
}
.news-nav__link span { font-family: var(--f-body); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-forest); }
.news-nav__link--prev span::before { content: "← "; }
.news-nav__link--next { grid-column: 2; text-align: right; }
.news-nav__link--next span::after { content: " →"; }
.news-nav__link:hover { border-color: var(--c-sage); box-shadow: var(--shadow); color: var(--c-ink); }
@media (max-width: 600px) {
	.news-nav { grid-template-columns: 1fr; }
	.news-nav__link--next { grid-column: 1; }
}

.news-more { background: var(--c-sage-50); padding: var(--section-y) var(--gutter); }
.news-more__inner { max-width: var(--wide); margin: 0 auto; }
.news-more__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
