/* ==========================================================================
   Balcony Gardening — main stylesheet
   Design system: tokens, typography, components, layouts, utilities.
   No external dependencies. No remote fonts. No image files. Mobile-first.

   Look: a city balcony. Warm concrete background, white surfaces, charcoal
   ink like a metal railing, deep leafy green as the working colour,
   terracotta and cedar accents and a hint of sky blue. The identity comes
   from straight, compact shapes: small square-ish corners, hairline borders,
   a "railing" mark (a terracotta top rail over charcoal bars) in front of
   section titles and along the footer, and numbered planter-label steps.
   The few decorative shapes are CSS gradients or inline SVG data URIs, so
   nothing is requested from the network.

   Contrast reference (WCAG AA, calculated):
     ink             #2f3437 on concrete #f3f0e9 ....... 10.9:1
     ink-soft        #474e52 on concrete ............... 7.4:1
     ink-muted       #5a6266 on concrete / white ....... 5.4:1 / 6.2:1
     green           #23493a on concrete / white ....... 8.8:1 / 10.0:1
     white           #ffffff on green #23493a .......... 10.0:1
     terracotta-deep #9a4a2c on concrete / white ....... 5.4:1 / 6.2:1
     footer text     #c9cec9 on ink #2f3437 ............ 7.9:1
     sage            #9dbb9a on ink #2f3437 ............ 5.9:1
   Leaf #4f8a5b, terracotta #c8704c, cedar #b98a5a and sky #bcdcec are used
   for shapes, borders and accents only, never for body text.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
	/* Colour */
	--bgd-bg: #f3f0e9;
	--bgd-bg-deep: #e9e5db;
	--bgd-concrete: #d9d4c8;
	--bgd-surface: #ffffff;
	--bgd-ink: #2f3437;
	--bgd-ink-soft: #474e52;
	--bgd-ink-muted: #5a6266;
	--bgd-leaf: #4f8a5b;
	--bgd-green: #23493a;
	--bgd-green-dark: #19372b;
	--bgd-sage: #9dbb9a;
	--bgd-sage-soft: #e6eee3;
	--bgd-sage-tint: #f1f5ee;
	--bgd-sage-line: #c4d5c0;
	--bgd-terracotta: #c8704c;
	--bgd-terracotta-deep: #9a4a2c;
	--bgd-terracotta-soft: #f9ede5;
	--bgd-terracotta-line: #eac9b8;
	--bgd-cedar: #b98a5a;
	--bgd-sky: #bcdcec;
	--bgd-sky-soft: #e7f2f8;
	--bgd-line: #dcd7cb;
	--bgd-line-strong: #868a85;
	--bgd-focus: #9a4a2c;

	/* Shapes drawn once and reused as backgrounds */
	--bgd-sprout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='none' stroke='%239dbb9a' stroke-width='3' stroke-linecap='round' d='M32 38V22'/%3E%3Cpath fill='%239dbb9a' d='M32 30c-8 0-12-4-13-11 8 0 12 4 13 11z'/%3E%3Cpath fill='%23c4d5c0' d='M32 26c1-7 5-11 13-11-1 7-5 11-13 11z'/%3E%3Cpath fill='%23c4d5c0' d='M19 38h26v5H19z'/%3E%3Cpath fill='%239dbb9a' d='M21 43h22l-3 13H24z'/%3E%3C/svg%3E");
	--bgd-icon-tip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='24' fill='%2323493a'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' d='M24 38V24'/%3E%3Cpath fill='%23fff' d='M24 28c-7 0-11-4-12-11 7 0 11 4 12 11z'/%3E%3Cpath fill='%239dbb9a' d='M24 24c1-7 5-11 12-11-1 7-5 11-12 11z'/%3E%3C/svg%3E");
	--bgd-icon-note: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='24' fill='%239a4a2c'/%3E%3Cpath fill='%23fff' d='M21 10h6l-1 18h-4zM21 32h6v6h-6z'/%3E%3C/svg%3E");
	--bgd-rail: linear-gradient(var(--bgd-terracotta), var(--bgd-terracotta)) left top / 100% 3px no-repeat, repeating-linear-gradient(90deg, var(--bgd-ink) 0 3px, transparent 3px 7px) left top / 100% 100% no-repeat;

	/* Typography — system stacks, nothing to download. */
	--bgd-font-head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bgd-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--bgd-font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--bgd-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--bgd-text-xs: 0.8125rem;
	--bgd-text-sm: 0.875rem;
	--bgd-text-base: 1rem;
	--bgd-text-md: 1.0625rem;
	--bgd-text-lg: 1.1875rem;
	--bgd-text-xl: 1.375rem;
	--bgd-text-2xl: 1.625rem;
	--bgd-text-3xl: 2rem;
	--bgd-text-4xl: 2.625rem;

	--bgd-leading-tight: 1.15;
	--bgd-leading-snug: 1.35;
	--bgd-leading-normal: 1.6;
	--bgd-leading-relaxed: 1.72;

	/* Spacing — 4px scale */
	--bgd-s1: 0.25rem;
	--bgd-s2: 0.5rem;
	--bgd-s3: 0.75rem;
	--bgd-s4: 1rem;
	--bgd-s5: 1.5rem;
	--bgd-s6: 2rem;
	--bgd-s7: 2.5rem;
	--bgd-s8: 3rem;
	--bgd-s9: 4rem;
	--bgd-s10: 5.5rem;

	/* Shape and shadow: straight and compact, like planters and railings. */
	--bgd-radius-sm: 0.25rem;
	--bgd-radius: 0.5rem;
	--bgd-radius-lg: 0.75rem;
	--bgd-radius-xl: 1.125rem;
	--bgd-pill: 999px;
	--bgd-shadow-sm: 0 1px 2px rgba(47, 52, 55, 0.06);
	--bgd-shadow: 0 12px 26px -14px rgba(47, 52, 55, 0.32);
	--bgd-shadow-lg: 0 24px 44px -20px rgba(47, 52, 55, 0.38);

	/* Layout */
	--bgd-container: 1180px;
	--bgd-container-wide: 1320px;
	--bgd-container-narrow: 780px;
	--bgd-reading: 46rem;
	--bgd-measure: 43rem;
	--bgd-gutter: var(--bgd-s4);

	color-scheme: light;
}

@media (min-width: 48em) {
	:root {
		--bgd-gutter: var(--bgd-s6);
	}
}

/* --------------------------------------------------------------------------
   2. Light reset
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.bgd-card:hover,
	.bgd-topic:hover,
	.bgd-steps > li:hover {
		transform: none !important;
	}
}

body {
	margin: 0;
	background-color: var(--bgd-bg);
	color: var(--bgd-ink);
	font-family: var(--bgd-font-body);
	font-size: var(--bgd-text-md);
	line-height: var(--bgd-leading-normal);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-wrap: break-word;
}

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

img {
	display: block;
}

figure {
	margin: 0;
}

/* Divider: a hairline with a short terracotta rail at its centre. */
hr {
	height: 3px;
	margin: var(--bgd-s7) 0;
	border: 0;
	background:
		linear-gradient(var(--bgd-terracotta), var(--bgd-terracotta)) center / 3rem 3px no-repeat,
		linear-gradient(var(--bgd-line), var(--bgd-line)) center / 100% 1px no-repeat;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--bgd-font-head);
	color: var(--bgd-ink);
	line-height: var(--bgd-leading-tight);
	margin: 0 0 var(--bgd-s4);
	font-weight: 700;
	letter-spacing: -0.02em;
	overflow-wrap: break-word;
}

h1 {
	font-size: clamp(1.875rem, 1.4rem + 2.2vw, var(--bgd-text-4xl));
	font-weight: 800;
	letter-spacing: -0.028em;
}

h2 {
	font-size: clamp(1.4375rem, 1.25rem + 1vw, var(--bgd-text-3xl));
}

h3 {
	font-size: clamp(1.1875rem, 1.1rem + 0.5vw, var(--bgd-text-xl));
	letter-spacing: -0.015em;
}

h4 {
	font-size: var(--bgd-text-lg);
	letter-spacing: -0.01em;
}

h5,
h6 {
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bgd-ink-soft);
}

p {
	margin: 0 0 var(--bgd-s4);
}

a {
	color: var(--bgd-green);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover,
a:focus {
	color: var(--bgd-terracotta-deep);
}

strong,
b {
	font-weight: 700;
}

small {
	font-size: var(--bgd-text-sm);
}

mark {
	background: var(--bgd-sky);
	color: var(--bgd-ink);
	border-radius: 0.15em;
	padding: 0 0.2em;
}

code,
kbd,
samp {
	font-family: var(--bgd-font-mono);
	font-size: 0.85em;
	background: var(--bgd-bg-deep);
	border-radius: var(--bgd-radius-sm);
	padding: 0.12em 0.4em;
}

pre {
	font-family: var(--bgd-font-mono);
	font-size: var(--bgd-text-sm);
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-line);
	border-radius: var(--bgd-radius);
	padding: var(--bgd-s4);
	overflow-x: auto;
	line-height: 1.5;
}

pre code {
	background: none;
	padding: 0;
}

blockquote {
	margin: var(--bgd-s6) 0;
	padding: var(--bgd-s2) 0 var(--bgd-s2) var(--bgd-s5);
	border-left: 4px solid var(--bgd-cedar);
	font-size: var(--bgd-text-lg);
	color: var(--bgd-ink-soft);
}

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

blockquote cite {
	display: block;
	margin-top: var(--bgd-s2);
	font-size: var(--bgd-text-sm);
	font-style: normal;
	color: var(--bgd-ink-muted);
}

/* --------------------------------------------------------------------------
   4. Accessibility
   -------------------------------------------------------------------------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--bgd-focus);
	outline-offset: 2px;
}

/* The main landmark only receives focus from the skip link. */
.bgd-site-main:focus {
	outline: 0;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--bgd-ink);
	border-radius: var(--bgd-radius);
	box-shadow: var(--bgd-shadow);
	clip-path: none;
	color: var(--bgd-surface);
	display: block;
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-base);
	font-weight: 600;
	height: auto;
	left: var(--bgd-s4);
	line-height: normal;
	outline-color: var(--bgd-sky);
	padding: var(--bgd-s3) var(--bgd-s5);
	text-decoration: none;
	top: var(--bgd-s4);
	width: auto;
	z-index: 100000;
}

.bgd-skip-link:focus {
	position: fixed;
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */

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

.bgd-container--narrow {
	max-width: var(--bgd-container-narrow);
}

.bgd-site-main {
	flex: 1 0 auto;
	min-width: 0;
	padding-block: var(--bgd-s6) var(--bgd-s9);
}

/* Used on the homepage, where the hero sits flush against the header. */
.bgd-site-main--flush {
	padding-top: 0;
}

/* minmax(0, 1fr) lets the column shrink below the intrinsic width of wide
   children (tables, long words) so they scroll inside it instead of pushing
   the page sideways. */
.bgd-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bgd-s7);
}

.bgd-layout > * {
	min-width: 0;
}

@media (min-width: 66em) {
	.bgd-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr) 19rem;
		gap: var(--bgd-s8);
		align-items: start;
	}
}

.bgd-stack > * + * {
	margin-top: var(--bgd-s4);
}

.bgd-section {
	margin-block: var(--bgd-s9);
}

.bgd-section:first-child {
	margin-top: var(--bgd-s8);
}

/* Section heading: railing mark, title, "View all" on the right, a one-line
   description underneath and a hairline closing the block. */
.bgd-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--bgd-s1) var(--bgd-s4);
	margin-bottom: var(--bgd-s5);
	padding-bottom: var(--bgd-s4);
	border-bottom: 1px solid var(--bgd-line);
}

.bgd-section__title {
	margin: 0;
	font-size: var(--bgd-text-2xl);
}

/* The railing mark: a terracotta top rail over four charcoal bars. */
.bgd-section__title::before {
	content: "";
	display: inline-block;
	width: 1.5rem;
	height: 0.72em;
	margin-right: 0.55em;
	background: var(--bgd-rail);
}

/* Always on its own line under the title and the "View all" link. The
   reading width is capped with padding, not max-width: a max-width would
   shrink the flex item and let it slide up beside the title. */
.bgd-section__description {
	flex: 0 0 100%;
	order: 3;
	margin: 0;
	padding-right: max(0px, calc(100% - 46rem));
	color: var(--bgd-ink-soft);
	font-size: var(--bgd-text-base);
}

.bgd-section__link {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	color: var(--bgd-green);
	font-size: var(--bgd-text-sm);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.bgd-section__link:hover,
.bgd-section__link:focus {
	color: var(--bgd-terracotta-deep);
	text-decoration: underline;
}

.bgd-section__link::after {
	content: "\2192";
	margin-left: 0.4em;
}

/* --------------------------------------------------------------------------
   6. Header and navigation
   A white bar under a deep-green top edge. One line on large screens: mark
   and name, the menu, a compact search. Below 66em the menu and the search
   fold into a panel behind a button.
   -------------------------------------------------------------------------- */

.bgd-site-header {
	position: relative;
	z-index: 50;
	background: var(--bgd-surface);
	border-top: 4px solid var(--bgd-green);
	border-bottom: 1px solid var(--bgd-line);
}

.bgd-site-header .bgd-container {
	max-width: var(--bgd-container-wide);
}

.bgd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bgd-s4);
	min-height: 4rem;
	min-width: 0;
}

.bgd-branding {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.bgd-branding__mark {
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2.25rem;
}

.bgd-branding__text {
	min-width: 0;
}

.bgd-branding__title {
	font-family: var(--bgd-font-head);
	font-size: 1.1875rem;
	font-weight: 800;
	line-height: 1.1;
	margin: 0;
	letter-spacing: -0.025em;
}

.bgd-branding__title a {
	color: var(--bgd-ink);
	text-decoration: none;
}

.bgd-branding__title a:hover {
	color: var(--bgd-green);
}

.bgd-branding__tagline {
	margin: 0.2rem 0 0;
	font-size: var(--bgd-text-xs);
	color: var(--bgd-ink-muted);
	line-height: 1.3;
}

@media (min-width: 30em) {
	.bgd-branding__title {
		font-size: 1.3125rem;
		white-space: nowrap;
	}
}

/* The tagline shows beside the mark on tablets only: on phones it would wrap
   under the menu button, and on large screens the header is a single line
   shared with the menu (the hero and the footer carry the tagline there). */
@media (max-width: 47.99em), (min-width: 66em) {
	.bgd-branding__tagline {
		display: none;
	}
}

.custom-logo-link img {
	max-height: 3rem;
	width: auto;
}

/* Menu button (small screens) */
.bgd-menu-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: transparent;
	border: 1.5px solid var(--bgd-ink);
	border-radius: var(--bgd-radius);
	color: var(--bgd-ink);
	cursor: pointer;
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	font-weight: 700;
	min-height: 2.75rem;
	padding: var(--bgd-s2) 0.875rem;
}

.bgd-menu-toggle:hover,
.bgd-menu-toggle:focus {
	background: var(--bgd-sage-soft);
	border-color: var(--bgd-green);
	color: var(--bgd-green);
}

.bgd-menu-toggle[aria-expanded="true"] {
	background: var(--bgd-ink);
	border-color: var(--bgd-ink);
	color: var(--bgd-surface);
}

.bgd-menu-toggle__bars {
	display: block;
	position: relative;
	width: 1.125rem;
	height: 2px;
	background: currentColor;
}

.bgd-menu-toggle__bars::before,
.bgd-menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.bgd-menu-toggle__bars::before {
	top: -6px;
}

.bgd-menu-toggle__bars::after {
	top: 6px;
}

.bgd-header__panel {
	display: none;
	padding-bottom: var(--bgd-s5);
}

.bgd-header__panel.is-open {
	display: block;
}

.bgd-nav {
	font-family: var(--bgd-font-ui);
}

.bgd-nav__list,
.bgd-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Small screens: the menu is a plain list of full-width rows split by
   hairlines. */
.bgd-nav__list {
	border-top: 1px solid var(--bgd-line);
}

.bgd-nav__list li {
	position: relative;
}

.bgd-nav__list > li {
	border-bottom: 1px solid var(--bgd-line);
}

.bgd-nav__list a {
	display: block;
	padding: 0.8rem var(--bgd-s2);
	color: var(--bgd-ink);
	font-size: var(--bgd-text-base);
	font-weight: 600;
	text-decoration: none;
}

.bgd-nav__list a:hover,
.bgd-nav__list a:focus {
	background: var(--bgd-sage-tint);
	color: var(--bgd-green);
}

.bgd-nav__list .sub-menu a {
	padding-left: var(--bgd-s5);
	font-weight: 500;
}

.bgd-nav .current-menu-item > a,
.bgd-nav .current-menu-ancestor > a,
.bgd-nav .current_page_item > a {
	color: var(--bgd-green);
	box-shadow: inset 3px 0 0 var(--bgd-terracotta);
}

.bgd-header__search {
	margin-top: var(--bgd-s4);
}

/* Shown only to users who can edit menus, when no menu is assigned to the
   primary location. Visitors never see this block. */
.bgd-nav--empty {
	margin: 0;
	padding: var(--bgd-s3) 0;
	font-size: var(--bgd-text-sm);
}

@media (min-width: 66em) {
	.bgd-menu-toggle {
		display: none;
	}

	.bgd-site-header .bgd-container {
		display: flex;
		align-items: center;
		column-gap: var(--bgd-s5);
	}

	.bgd-header__inner {
		flex: 0 0 auto;
		min-height: 4.5rem;
	}

	/* The panel wrapper dissolves so that its two children (menu and search)
	   sit directly in the header's flex row. */
	.bgd-header__panel,
	.bgd-header__panel.is-open {
		display: contents;
	}

	.bgd-nav {
		flex: 1 1 auto;
		min-width: 0;
	}

	/* The items fit on one line; a longer menu wraps onto a second line
	   instead of overflowing the page. */
	.bgd-nav__list {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-end;
		gap: 0 0.125rem;
		border: 0;
		padding: var(--bgd-s2) 0;
	}

	.bgd-nav__list > li {
		border: 0;
	}

	.bgd-nav__list a {
		padding: 0.5rem 0.55rem;
		border-radius: var(--bgd-radius-sm);
		color: var(--bgd-ink-soft);
		font-size: var(--bgd-text-xs);
		white-space: nowrap;
	}

	.bgd-nav .current-menu-item > a,
	.bgd-nav .current-menu-ancestor > a,
	.bgd-nav .current_page_item > a {
		box-shadow: inset 0 -2px 0 var(--bgd-terracotta);
	}

	/* Between 66em and 80em the line belongs to the menu: the search field
	   returns as soon as there is room for it. */
	.bgd-header__search {
		display: none;
		flex: 0 0 9.5rem;
		margin-top: 0;
	}

	/* Submenus (one level) */
	.bgd-nav__list .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 13rem;
		background: var(--bgd-surface);
		border: 1px solid var(--bgd-line);
		border-top: 3px solid var(--bgd-green);
		border-radius: 0 0 var(--bgd-radius) var(--bgd-radius);
		box-shadow: var(--bgd-shadow-lg);
		padding: var(--bgd-s2);
		z-index: 60;
	}

	.bgd-nav__list li:hover > .sub-menu,
	.bgd-nav__list li:focus-within > .sub-menu {
		display: block;
	}

	.bgd-nav__list .sub-menu a {
		padding-left: var(--bgd-s3);
		white-space: normal;
	}
}

@media (min-width: 80em) {
	.bgd-nav__list a {
		padding-inline: 0.7rem;
		font-size: var(--bgd-text-sm);
	}

	.bgd-header__search {
		display: block;
		flex-basis: 11.5rem;
	}
}

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */

label {
	display: block;
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	font-weight: 600;
	margin-bottom: var(--bgd-s2);
}

.bgd-field {
	margin-bottom: var(--bgd-s5);
}

.bgd-field__hint {
	display: block;
	margin-top: var(--bgd-s2);
	font-size: var(--bgd-text-xs);
	font-weight: 400;
	color: var(--bgd-ink-muted);
}

.bgd-required {
	color: var(--bgd-terracotta-deep);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
	width: 100%;
	background: var(--bgd-surface);
	border: 1.5px solid var(--bgd-line-strong);
	border-radius: var(--bgd-radius);
	color: var(--bgd-ink);
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-base);
	line-height: 1.4;
	padding: 0.7rem var(--bgd-s4);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--bgd-green);
}

textarea {
	min-height: 11rem;
	resize: vertical;
	line-height: var(--bgd-leading-normal);
}

input::placeholder,
textarea::placeholder {
	color: var(--bgd-ink-muted);
	opacity: 1;
}

/* Search field: one box holding the input and a square button. */
.bgd-search-form {
	display: flex;
	align-items: center;
	gap: 0;
	background: var(--bgd-surface);
	border: 1.5px solid var(--bgd-line-strong);
	border-radius: var(--bgd-radius);
	padding: 0.1875rem;
}

.bgd-search-form:focus-within {
	border-color: var(--bgd-green);
}

.bgd-search-form__field {
	flex: 1 1 auto;
	min-width: 0;
}

.bgd-search-form input[type="search"] {
	min-height: 2.375rem;
	background: transparent;
	border: 0;
	border-radius: var(--bgd-radius-sm);
	padding: var(--bgd-s1) var(--bgd-s2) var(--bgd-s1) var(--bgd-s3);
	-webkit-appearance: none;
	appearance: none;
}

.bgd-search-form__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.375rem;
	min-width: 2.375rem;
	height: 2.375rem;
	min-height: 2.375rem;
	background: var(--bgd-green);
	border: 0;
	border-radius: var(--bgd-radius-sm);
	color: var(--bgd-surface);
	cursor: pointer;
	padding: 0;
}

.bgd-search-form__submit:hover,
.bgd-search-form__submit:focus {
	background: var(--bgd-green-dark);
	color: var(--bgd-surface);
}

.bgd-search-form__submit .bgd-icon {
	width: 1.0625rem;
	height: 1.0625rem;
}

.bgd-header__search input[type="search"] {
	font-size: var(--bgd-text-sm);
}

/* --------------------------------------------------------------------------
   8. Buttons — solid, straight-edged blocks
   -------------------------------------------------------------------------- */

.bgd-button,
.bgd-button--primary,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--bgd-s2);
	background: var(--bgd-green);
	border: 1.5px solid var(--bgd-green);
	border-radius: var(--bgd-radius);
	color: var(--bgd-surface);
	cursor: pointer;
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-base);
	font-weight: 700;
	line-height: 1.3;
	min-height: 3rem;
	padding: 0.7rem 1.4rem;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bgd-button:hover,
.bgd-button:focus,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
	background: var(--bgd-green-dark);
	border-color: var(--bgd-green-dark);
	color: var(--bgd-surface);
}

.bgd-button--primary::after {
	content: "\2192";
}

.bgd-button--secondary {
	background: transparent;
	border-color: var(--bgd-ink);
	color: var(--bgd-ink);
}

.bgd-button--secondary:hover,
.bgd-button--secondary:focus {
	background: var(--bgd-ink);
	border-color: var(--bgd-ink);
	color: var(--bgd-surface);
}

/* For dark panels (the closing call to action). */
.bgd-button--light {
	background: var(--bgd-bg);
	border-color: var(--bgd-bg);
	color: var(--bgd-ink);
}

.bgd-button--light:hover,
.bgd-button--light:focus {
	background: var(--bgd-surface);
	border-color: var(--bgd-surface);
	color: var(--bgd-green);
}

.bgd-button--small {
	font-size: var(--bgd-text-sm);
	min-height: 0;
	padding: var(--bgd-s2) var(--bgd-s4);
}

.bgd-button[disabled],
button[disabled] {
	cursor: not-allowed;
	opacity: 0.55;
}

/* --------------------------------------------------------------------------
   9. Labels, categories, metadata
   -------------------------------------------------------------------------- */

.bgd-eyebrow {
	display: inline-block;
	font-family: var(--bgd-font-ui);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bgd-terracotta-deep);
	text-decoration: none;
	margin-bottom: var(--bgd-s2);
}

a.bgd-eyebrow:hover,
a.bgd-eyebrow:focus {
	color: var(--bgd-green);
	text-decoration: underline;
}

.bgd-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--bgd-s1);
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-concrete);
	border-radius: var(--bgd-radius);
	color: var(--bgd-ink);
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	font-weight: 600;
	padding: 0.4rem 0.8rem;
	text-decoration: none;
}

a.bgd-chip:hover,
a.bgd-chip:focus {
	background: var(--bgd-sage-soft);
	border-color: var(--bgd-leaf);
	color: var(--bgd-green);
}

.bgd-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bgd-s2) var(--bgd-s4);
	color: var(--bgd-ink-muted);
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	list-style: none;
	margin: 0;
	padding: 0;
}

.bgd-meta > li {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bgd-s2) var(--bgd-s4);
}

.bgd-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.bgd-meta a {
	color: inherit;
}

.bgd-meta svg {
	flex: 0 0 auto;
	color: var(--bgd-leaf);
}

.bgd-icon {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.125em;
}

/* --------------------------------------------------------------------------
   10. Cards and grids
   -------------------------------------------------------------------------- */

.bgd-grid {
	display: grid;
	gap: var(--bgd-s5);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 36em) {
	.bgd-grid--2,
	.bgd-grid--3,
	.bgd-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 62em) {
	.bgd-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bgd-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--bgd-s4);
	}
}

/* A card is a white panel with the picture flush to its top edge, so the one
   image each guide has is shown as large as the column allows. */
.bgd-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-line);
	border-radius: var(--bgd-radius-lg);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.bgd-card:hover {
	border-color: var(--bgd-line-strong);
	box-shadow: var(--bgd-shadow);
	transform: translateY(-2px);
}

.bgd-card__media {
	display: block;
	background: var(--bgd-sage-soft);
	border-bottom: 1px solid var(--bgd-line);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.bgd-card__media img,
.bgd-card-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Guides without a featured image get a quiet potted sprout on sage. */
.bgd-card__media--placeholder,
.bgd-card-row__media--placeholder {
	background: var(--bgd-sprout) center / auto 62% no-repeat, var(--bgd-sage-soft);
}

.bgd-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: var(--bgd-s2);
	padding: var(--bgd-s4) var(--bgd-s4) var(--bgd-s5);
}

.bgd-card__body .bgd-eyebrow {
	margin-bottom: 0;
	font-size: 0.6875rem;
}

.bgd-card__title {
	font-size: var(--bgd-text-lg);
	line-height: 1.25;
	margin: 0;
}

.bgd-grid--4 .bgd-card__title {
	font-size: 1.0625rem;
}

.bgd-card__title a,
.bgd-card-row__title a,
.bgd-steps__title a {
	color: var(--bgd-ink);
	text-decoration: none;
}

.bgd-card__title a:hover,
.bgd-card-row__title a:hover,
.bgd-steps__title a:hover,
.bgd-card__title a:focus,
.bgd-card-row__title a:focus,
.bgd-steps__title a:focus {
	color: var(--bgd-green);
	text-decoration: underline;
}

.bgd-card__excerpt {
	color: var(--bgd-ink-soft);
	font-size: 0.9375rem;
	line-height: 1.55;
	margin: 0;
}

.bgd-card__footer {
	margin-top: auto;
	padding-top: var(--bgd-s3);
	border-top: 1px dashed var(--bgd-concrete);
}

.bgd-card__footer .bgd-meta {
	font-size: var(--bgd-text-xs);
}

/* Horizontal card (lists and search results) */
.bgd-card-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bgd-s4);
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-line);
	border-radius: var(--bgd-radius-lg);
	padding: var(--bgd-s3);
}

@media (min-width: 36em) {
	.bgd-card-row {
		grid-template-columns: 12rem minmax(0, 1fr);
		gap: var(--bgd-s5);
		align-items: center;
	}
}

.bgd-card-row__media {
	display: block;
	background: var(--bgd-sage-soft);
	border-radius: var(--bgd-radius);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

/* min-width: 0 keeps long titles from blowing out the grid column. */
.bgd-card-row__body {
	min-width: 0;
	padding: 0 var(--bgd-s2) var(--bgd-s2);
}

@media (min-width: 36em) {
	.bgd-card-row__body {
		padding: var(--bgd-s2) var(--bgd-s3) var(--bgd-s2) 0;
	}
}

.bgd-card-row__title {
	font-size: var(--bgd-text-xl);
	margin: 0 0 var(--bgd-s2);
}

.bgd-card-row__excerpt {
	color: var(--bgd-ink-soft);
	font-size: var(--bgd-text-base);
	margin: 0 0 var(--bgd-s3);
}

.bgd-card-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bgd-s4);
}

/* Numbered path (Start Here): four planter labels in a row, each led by a
   large two-digit number. */
.bgd-steps {
	list-style: none;
	counter-reset: bgd-step;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bgd-s4);
	margin: 0;
	padding: 0;
}

@media (min-width: 40em) {
	.bgd-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 66em) {
	.bgd-steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.bgd-steps > li {
	counter-increment: bgd-step;
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	gap: var(--bgd-s3);
	align-items: start;
	align-content: start;
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-line);
	border-top: 4px solid var(--bgd-green);
	border-radius: var(--bgd-radius-sm) var(--bgd-radius-sm) var(--bgd-radius-lg) var(--bgd-radius-lg);
	padding: var(--bgd-s5) var(--bgd-s4);
	min-width: 0;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bgd-steps > li > div {
	min-width: 0;
}

.bgd-steps > li:hover {
	border-top-color: var(--bgd-terracotta);
	box-shadow: var(--bgd-shadow);
	transform: translateY(-2px);
}

@media (min-width: 66em) {
	.bgd-steps > li {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--bgd-s2);
		padding: var(--bgd-s5);
	}
}

.bgd-steps > li::before {
	content: counter(bgd-step, decimal-leading-zero);
	color: var(--bgd-terracotta-deep);
	font-family: var(--bgd-font-head);
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.bgd-steps__title {
	font-size: 1.125rem;
	line-height: 1.25;
	margin: 0 0 var(--bgd-s2);
}

.bgd-steps p {
	color: var(--bgd-ink-soft);
	font-size: 0.9375rem;
	line-height: 1.55;
	margin: 0;
}

/* --------------------------------------------------------------------------
   11. Homepage — hero and sections
   -------------------------------------------------------------------------- */

/* Copy on the left, the balcony drawing on the right; stacked on small
   screens. A pale sky wash fades into the concrete page background. */
.bgd-hero {
	background: linear-gradient(180deg, var(--bgd-sky-soft) 0%, var(--bgd-bg) 78%);
	border-bottom: 1px solid var(--bgd-line);
	padding-block: var(--bgd-s7) var(--bgd-s8);
	overflow: hidden;
}

.bgd-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bgd-s7);
	align-items: center;
}

.bgd-hero__copy {
	min-width: 0;
	max-width: 38rem;
}

@media (min-width: 62em) {
	.bgd-hero {
		padding-block: var(--bgd-s9);
	}

	.bgd-hero__inner {
		grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
		gap: var(--bgd-s8);
	}
}

.bgd-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 var(--bgd-s4);
	color: var(--bgd-terracotta-deep);
	font-size: var(--bgd-text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
}

.bgd-hero__eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 1.5rem;
	height: 0.875rem;
	background: var(--bgd-rail);
}

.bgd-hero__title {
	font-size: clamp(2.125rem, 1.3rem + 3.4vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.05;
	margin: 0 0 var(--bgd-s5);
	max-width: 15ch;
}

.bgd-hero__text {
	color: var(--bgd-ink-soft);
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	line-height: var(--bgd-leading-normal);
	max-width: 34rem;
	margin: 0 0 var(--bgd-s6);
}

.bgd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bgd-s3);
}

/* Decorative inline SVG (no image request, no JS). */
.bgd-hero__figure {
	width: 100%;
	max-width: 34rem;
	margin-inline: auto;
}

@media (min-width: 62em) {
	.bgd-hero__figure {
		max-width: none;
	}
}

.bgd-hero__figure svg {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 18px 26px rgba(47, 52, 55, 0.18));
}

/* Category cards ("Browse by Category") */
.bgd-topics {
	display: grid;
	gap: var(--bgd-s4);
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.bgd-topics > li {
	min-width: 0;
}

.bgd-topic {
	display: flex;
	flex-direction: column;
	gap: var(--bgd-s2);
	min-width: 0;
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-line);
	border-radius: var(--bgd-radius-lg);
	padding: var(--bgd-s5);
	text-decoration: none;
	height: 100%;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.bgd-topic:hover,
.bgd-topic:focus {
	border-color: var(--bgd-leaf);
	box-shadow: var(--bgd-shadow);
	transform: translateY(-2px);
}

.bgd-topic__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: var(--bgd-s2);
	background: var(--bgd-sage-soft);
	border-radius: var(--bgd-radius);
	color: var(--bgd-green);
}

.bgd-topic__icon .bgd-icon {
	width: 1.5rem;
	height: 1.5rem;
}

.bgd-topic__name {
	font-family: var(--bgd-font-head);
	font-size: var(--bgd-text-lg);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
	color: var(--bgd-ink);
}

.bgd-topic:hover .bgd-topic__name {
	color: var(--bgd-green);
}

.bgd-topic__desc {
	color: var(--bgd-ink-soft);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.bgd-topic__count {
	margin-top: auto;
	padding-top: var(--bgd-s2);
	color: var(--bgd-terracotta-deep);
	font-size: var(--bgd-text-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Closing call to action: a deep-green panel with three pots on a shelf. */
.bgd-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bgd-s5);
	align-items: end;
	background: var(--bgd-green);
	border-radius: var(--bgd-radius-xl);
	color: var(--bgd-sage-soft);
	padding: var(--bgd-s6) var(--bgd-s5);
	overflow: hidden;
}

@media (min-width: 48em) {
	.bgd-cta {
		grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
		gap: var(--bgd-s7);
		padding: var(--bgd-s8) var(--bgd-s8) 0;
	}

	.bgd-cta__copy {
		padding-bottom: var(--bgd-s8);
	}
}

.bgd-cta__title {
	color: var(--bgd-surface);
	margin-bottom: var(--bgd-s3);
}

.bgd-cta__text {
	color: var(--bgd-sage-soft);
	margin: 0;
	max-width: 54ch;
}

.bgd-cta__actions {
	margin-top: var(--bgd-s5);
}

.bgd-cta :focus-visible {
	outline-color: var(--bgd-sky);
}

.bgd-cta__art {
	display: none;
}

@media (min-width: 48em) {
	.bgd-cta__art {
		display: block;
	}

	.bgd-cta__art svg {
		display: block;
		width: 100%;
		height: auto;
	}
}

/* --------------------------------------------------------------------------
   12. Article
   -------------------------------------------------------------------------- */

.bgd-breadcrumbs {
	margin-bottom: var(--bgd-s5);
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	color: var(--bgd-ink-muted);
}

.bgd-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bgd-s1) var(--bgd-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.bgd-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: var(--bgd-s2);
	min-width: 0;
}

/* The separator is a slanted bar, like a railing brace. */
.bgd-breadcrumbs li + li::before {
	content: "";
	flex: 0 0 auto;
	width: 1.5px;
	height: 0.85em;
	background: var(--bgd-line-strong);
	transform: skewX(-18deg);
}

.bgd-breadcrumbs a {
	color: var(--bgd-ink-soft);
	text-decoration: none;
}

.bgd-breadcrumbs a:hover,
.bgd-breadcrumbs a:focus {
	color: var(--bgd-terracotta-deep);
	text-decoration: underline;
}

.bgd-breadcrumbs [aria-current="page"] {
	color: var(--bgd-ink-muted);
}

/* Without a sidebar the article sits in a centred reading column; related
   guides below it keep the full width. */
.bgd-no-sidebar.single .bgd-breadcrumbs,
.bgd-no-sidebar.single .bgd-article,
.bgd-no-sidebar.single .bgd-post-nav,
.bgd-no-sidebar.single .bgd-comments {
	max-width: var(--bgd-reading);
	margin-inline: auto;
}

.bgd-article {
	min-width: 0;
}

.bgd-article__header {
	margin-bottom: var(--bgd-s5);
}

.bgd-article__title {
	margin-bottom: var(--bgd-s4);
}

.bgd-article__summary {
	color: var(--bgd-ink-soft);
	font-size: var(--bgd-text-lg);
	line-height: var(--bgd-leading-normal);
	max-width: var(--bgd-measure);
	margin-bottom: var(--bgd-s5);
}

.bgd-article__meta {
	padding-top: var(--bgd-s3);
	border-top: 1px solid var(--bgd-line);
}

/* The featured image is the only picture of a guide: full column width,
   fixed 16:9 frame so the page does not jump while it loads. */
.bgd-article__figure {
	margin-bottom: var(--bgd-s6);
}

.bgd-article__figure img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--bgd-sage-soft);
	border: 1px solid var(--bgd-line);
	border-radius: var(--bgd-radius-lg);
}

/* Figures and captions */
.bgd-article__figure figcaption,
.bgd-content figcaption,
.wp-block-image figcaption,
.wp-caption-text {
	margin-top: var(--bgd-s3);
	color: var(--bgd-ink-muted);
	font-size: var(--bgd-text-sm);
	line-height: var(--bgd-leading-snug);
	text-align: left;
}

/* Body text */
.bgd-content {
	font-size: 1.125rem;
	line-height: var(--bgd-leading-relaxed);
	min-width: 0;
}

.bgd-content > * {
	max-width: var(--bgd-measure);
}

.bgd-content > .alignwide,
.bgd-content > .alignfull,
.bgd-content > .bgd-tutorial-facts,
.bgd-content > .bgd-toc,
.bgd-content > figure,
.bgd-content > .wp-block-image,
.bgd-content > .wp-block-gallery,
.bgd-content > .wp-block-table,
.bgd-content > .bgd-table-wrap,
.bgd-content > table,
.bgd-content > .bgd-callout,
.bgd-content > .bgd-contact,
.bgd-content > .bgd-ad-slot {
	max-width: 100%;
}

.bgd-content h2 {
	margin-top: var(--bgd-s8);
}

/* A short terracotta rail above every main heading of a guide. */
.bgd-content h2::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 3px;
	margin-bottom: var(--bgd-s3);
	background: var(--bgd-terracotta);
}

.bgd-content h3 {
	margin-top: var(--bgd-s6);
}

.bgd-content h4 {
	margin-top: var(--bgd-s5);
}

.bgd-content > h2:first-child,
.bgd-content > h3:first-child {
	margin-top: 0;
}

.bgd-content ul,
.bgd-content ol {
	margin: 0 0 var(--bgd-s5);
	padding-left: 1.4em;
}

.bgd-content li + li {
	margin-top: var(--bgd-s2);
}

.bgd-content li > ul,
.bgd-content li > ol {
	margin-top: var(--bgd-s2);
	margin-bottom: 0;
}

.bgd-content ul:not([class]) > li::marker {
	color: var(--bgd-leaf);
}

/* Ordered lists are usually the steps of a guide: bold green numerals with
   room to breathe. */
.bgd-content ol {
	padding-left: 1.7em;
}

.bgd-content ol > li {
	padding-left: 0.3em;
}

.bgd-content ol > li::marker {
	color: var(--bgd-green);
	font-family: var(--bgd-font-head);
	font-weight: 800;
}

.bgd-content > ol > li + li {
	margin-top: var(--bgd-s3);
}

.bgd-content figure,
.bgd-content .wp-block-image {
	margin-block: var(--bgd-s6);
}

.bgd-content img {
	border-radius: var(--bgd-radius-lg);
	background-color: var(--bgd-surface);
}

.bgd-content a {
	text-decoration: underline;
}

/* Tables — always scroll inside their own box, never the page.
   inc/toc.php wraps every table in .bgd-table-wrap; the bare-table rules
   below cover the block editor and any table that escapes the wrapper. */
.bgd-table-wrap,
.wp-block-table {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-block: var(--bgd-s6);
	border: 1px solid var(--bgd-line);
	border-radius: var(--bgd-radius);
	background: var(--bgd-surface);
}

/* A block-editor table figure already scrolls: its inner wrapper stays plain. */
.wp-block-table .bgd-table-wrap {
	overflow: visible;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.bgd-content > table {
	display: block;
	overflow-x: auto;
	margin-block: var(--bgd-s6);
}

.bgd-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--bgd-font-ui);
	font-size: 0.9375rem;
	line-height: var(--bgd-leading-snug);
}

.bgd-table-wrap table,
.wp-block-table table {
	min-width: 30rem;
	margin: 0;
}

.bgd-content th,
.bgd-content td,
.wp-block-table th,
.wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--bgd-line);
	padding: var(--bgd-s3) var(--bgd-s4);
	text-align: left;
	vertical-align: top;
}

.bgd-content tbody tr:last-child > *,
.wp-block-table tbody tr:last-child > * {
	border-bottom: 0;
}

.bgd-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
	background: rgba(243, 240, 233, 0.6);
}

.bgd-content thead th,
.wp-block-table thead th {
	background: var(--bgd-ink);
	border-bottom: 0;
	color: var(--bgd-surface);
	font-size: var(--bgd-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bgd-content tbody th {
	font-weight: 700;
}

.bgd-content table caption {
	caption-side: bottom;
	padding: var(--bgd-s3) var(--bgd-s4);
	color: var(--bgd-ink-muted);
	font-size: var(--bgd-text-sm);
	text-align: left;
}

/* Callouts — used in article content and available in the block editor.
   A tinted panel with a solid rail down its left edge and a round badge in
   front of the title: a sprout for tips, an exclamation mark for the "good
   to know" notes that carry balcony safety reminders. */
.bgd-callout {
	position: relative;
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-line);
	border-left: 5px solid var(--bgd-line-strong);
	border-radius: var(--bgd-radius-sm) var(--bgd-radius) var(--bgd-radius) var(--bgd-radius-sm);
	padding: var(--bgd-s4) var(--bgd-s5);
	margin-block: var(--bgd-s6);
	font-size: var(--bgd-text-md);
	line-height: 1.65;
}

.bgd-callout > :last-child {
	margin-bottom: 0;
}

.bgd-callout__title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	font-weight: 800;
	letter-spacing: 0.07em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--bgd-ink-soft);
	margin-bottom: var(--bgd-s2);
}

.bgd-callout__title::before {
	content: "";
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--bgd-line-strong);
}

.bgd-callout--tip {
	background: var(--bgd-sage-tint);
	border-color: var(--bgd-sage-line);
	border-left-color: var(--bgd-leaf);
}

.bgd-callout--tip .bgd-callout__title {
	color: var(--bgd-green);
}

.bgd-callout--tip .bgd-callout__title::before {
	background: var(--bgd-icon-tip) center / contain no-repeat;
}

.bgd-callout--warning {
	background: var(--bgd-terracotta-soft);
	border-color: var(--bgd-terracotta-line);
	border-left-color: var(--bgd-terracotta);
}

.bgd-callout--warning .bgd-callout__title {
	color: var(--bgd-terracotta-deep);
}

.bgd-callout--warning .bgd-callout__title::before {
	background: var(--bgd-icon-note) center / contain no-repeat;
}

/* "At a glance" card (difficulty, time needed, best time, suits, what you
   need): a white panel under a deep-green title bar, like a plant label. */
.bgd-tutorial-facts {
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-sage-line);
	border-radius: var(--bgd-radius-lg);
	margin-bottom: var(--bgd-s6);
	overflow: hidden;
}

.bgd-tutorial-facts__title {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	background: var(--bgd-green);
	color: var(--bgd-surface);
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	margin: 0;
	padding: var(--bgd-s3) var(--bgd-s5);
}

.bgd-tutorial-facts__title::before {
	content: "";
	flex: 0 0 auto;
	width: 1.25rem;
	height: 0.75rem;
	background:
		linear-gradient(var(--bgd-terracotta), var(--bgd-terracotta)) left top / 100% 3px no-repeat,
		repeating-linear-gradient(90deg, var(--bgd-sage) 0 3px, transparent 3px 7px) left top / 100% 100% no-repeat;
}

.bgd-facts {
	display: grid;
	gap: var(--bgd-s4) var(--bgd-s5);
	grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
	margin: 0;
	padding: var(--bgd-s5);
}

.bgd-facts__item {
	display: flex;
	align-items: flex-start;
	gap: var(--bgd-s3);
	min-width: 0;
}

.bgd-facts__item > span:last-child {
	min-width: 0;
}

.bgd-facts__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--bgd-sage-soft);
	border-radius: var(--bgd-radius);
	color: var(--bgd-green);
}

.bgd-facts__icon .bgd-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.bgd-facts__label {
	display: block;
	font-family: var(--bgd-font-ui);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	line-height: var(--bgd-leading-snug);
	text-transform: uppercase;
	color: var(--bgd-ink-muted);
	margin: 0;
}

.bgd-facts__value {
	display: block;
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-base);
	font-weight: 600;
	line-height: var(--bgd-leading-snug);
	margin-top: 0.15rem;
}

.bgd-materials {
	padding: var(--bgd-s4) var(--bgd-s5) var(--bgd-s5);
	background: var(--bgd-sage-tint);
	border-top: 1px solid var(--bgd-sage-line);
}

.bgd-materials .bgd-facts__label {
	margin-bottom: var(--bgd-s3);
}

.bgd-materials__list {
	list-style: none;
	display: grid;
	gap: var(--bgd-s2) var(--bgd-s5);
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	margin: 0;
	padding: 0;
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-base);
	line-height: 1.45;
}

.bgd-materials__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0;
	min-width: 0;
}

/* An empty tick box in front of every item of the "What you need" list. */
.bgd-materials__list li::before {
	content: "";
	flex: 0 0 auto;
	width: 0.875rem;
	height: 0.875rem;
	margin-top: 0.28em;
	background: var(--bgd-surface);
	border: 2px solid var(--bgd-leaf);
	border-radius: 3px;
}

/* Table of contents */
.bgd-toc {
	background: var(--bgd-bg-deep);
	border-radius: var(--bgd-radius-lg);
	padding: var(--bgd-s5);
	margin-bottom: var(--bgd-s6);
}

.bgd-toc__title {
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--bgd-ink);
	margin: 0 0 var(--bgd-s3);
}

.bgd-toc ol {
	counter-reset: bgd-toc;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-base);
	line-height: 1.45;
}

.bgd-toc > ol > li {
	counter-increment: bgd-toc;
	margin: 0;
	padding: var(--bgd-s2) 0;
	border-top: 1px solid var(--bgd-concrete);
}

.bgd-toc > ol > li > a::before {
	content: counter(bgd-toc, decimal-leading-zero);
	display: inline-block;
	min-width: 2em;
	color: var(--bgd-terracotta-deep);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.bgd-toc a {
	color: var(--bgd-ink);
	font-weight: 600;
	text-decoration: none;
}

.bgd-toc a:hover,
.bgd-toc a:focus {
	color: var(--bgd-green);
	text-decoration: underline;
}

.bgd-toc ol ol {
	margin: var(--bgd-s2) 0 0 2em;
	font-size: var(--bgd-text-sm);
}

.bgd-toc ol ol li + li {
	margin-top: var(--bgd-s1);
}

.bgd-toc ol ol a {
	color: var(--bgd-ink-soft);
	font-weight: 400;
}

/* FAQ: a ruled list; each question is led by a square green badge. */
.bgd-faq {
	margin-top: var(--bgd-s8);
}

.bgd-faq > h2 {
	margin-bottom: var(--bgd-s4);
}

.bgd-faq__item {
	border-top: 1px solid var(--bgd-concrete);
	padding: var(--bgd-s4) 0;
}

.bgd-faq__item:last-child {
	border-bottom: 1px solid var(--bgd-concrete);
}

.bgd-faq__question {
	display: flex;
	align-items: flex-start;
	gap: var(--bgd-s3);
	font-size: 1.125rem;
	line-height: 1.35;
	letter-spacing: -0.01em;
	margin: 0 0 var(--bgd-s2);
}

.bgd-faq__question::before {
	content: "?";
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	background: var(--bgd-green);
	border-radius: var(--bgd-radius-sm);
	color: var(--bgd-surface);
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1;
}

.bgd-faq__answer {
	color: var(--bgd-ink-soft);
	font-size: var(--bgd-text-base);
	line-height: 1.65;
	padding-left: calc(1.5rem + var(--bgd-s3));
}

.bgd-faq__answer > :last-child {
	margin-bottom: 0;
}

/* Article footer */
.bgd-article__footer {
	margin-top: var(--bgd-s8);
	padding-top: var(--bgd-s5);
	border-top: 1px solid var(--bgd-line);
}

.bgd-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bgd-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.bgd-tags__label {
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	font-weight: 700;
	color: var(--bgd-ink-soft);
}

/* Previous / next */
.bgd-post-nav {
	margin-top: var(--bgd-s7);
}

.bgd-post-nav__links {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bgd-s4);
}

@media (min-width: 48em) {
	.bgd-post-nav__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* When only "next" exists it moves to the right-hand column, where its
	   right-aligned text expects to sit. */
	.bgd-post-nav__link--next:only-child {
		grid-column: 2;
	}
}

.bgd-post-nav__link {
	display: block;
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-line);
	border-radius: var(--bgd-radius-lg);
	padding: var(--bgd-s4) var(--bgd-s5);
	text-decoration: none;
	height: 100%;
}

.bgd-post-nav__link:hover,
.bgd-post-nav__link:focus {
	border-color: var(--bgd-green);
	background: var(--bgd-sage-tint);
}

.bgd-post-nav__direction {
	display: block;
	font-family: var(--bgd-font-ui);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bgd-terracotta-deep);
	margin-bottom: var(--bgd-s2);
}

.bgd-post-nav__link--prev .bgd-post-nav__direction::before {
	content: "\2190\00a0";
}

.bgd-post-nav__link--next .bgd-post-nav__direction::after {
	content: "\00a0\2192";
}

.bgd-post-nav__title {
	display: block;
	font-family: var(--bgd-font-head);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--bgd-ink);
	line-height: 1.3;
}

.bgd-post-nav__link--prev {
	text-align: left;
}

.bgd-post-nav__link--next {
	text-align: right;
}

/* --------------------------------------------------------------------------
   13. Sidebar and widgets
   -------------------------------------------------------------------------- */

.bgd-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bgd-s5);
}

@media (min-width: 66em) {
	.bgd-sidebar--sticky {
		position: sticky;
		top: var(--bgd-s5);
	}
}

.bgd-widget {
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-line);
	border-top: 4px solid var(--bgd-green);
	border-radius: var(--bgd-radius-sm) var(--bgd-radius-sm) var(--bgd-radius-lg) var(--bgd-radius-lg);
	padding: var(--bgd-s5);
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-base);
}

.bgd-widget__title,
.bgd-widget .widget-title {
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--bgd-ink);
	margin: 0 0 var(--bgd-s4);
}

.bgd-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bgd-widget li + li {
	margin-top: var(--bgd-s3);
	padding-top: var(--bgd-s3);
	border-top: 1px solid var(--bgd-line);
}

.bgd-widget a {
	color: var(--bgd-ink);
	text-decoration: none;
}

.bgd-widget a:hover,
.bgd-widget a:focus {
	color: var(--bgd-green);
	text-decoration: underline;
}

.bgd-widget .children,
.bgd-widget .sub-menu {
	margin-top: var(--bgd-s3);
	padding-left: var(--bgd-s4);
}

/* --------------------------------------------------------------------------
   14. Archives, pagination, search, 404
   -------------------------------------------------------------------------- */

/* Archive and page titles sit on a short terracotta rail. */
.bgd-archive-header {
	margin-bottom: var(--bgd-s7);
}

.bgd-archive-header__title {
	margin-bottom: var(--bgd-s4);
}

.bgd-archive-header__title::after,
.bgd-page__header .bgd-page__title::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 4px;
	margin-top: var(--bgd-s4);
	background: var(--bgd-terracotta);
}

.bgd-archive-header__description {
	color: var(--bgd-ink-soft);
	font-size: var(--bgd-text-lg);
	line-height: var(--bgd-leading-normal);
	max-width: var(--bgd-measure);
}

.bgd-archive-header__description > :last-child {
	margin-bottom: 0;
}

.bgd-archive-header__count {
	margin: var(--bgd-s3) 0 0;
	color: var(--bgd-ink-muted);
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
}

.bgd-subcategories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bgd-s2);
	list-style: none;
	margin: var(--bgd-s4) 0 0;
	padding: 0;
}

.bgd-pagination {
	margin-top: var(--bgd-s8);
	font-family: var(--bgd-font-ui);
}

.bgd-pagination .nav-links {
	display: flex;
	justify-content: center;
}

.bgd-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--bgd-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.bgd-pagination li {
	margin: 0;
}

.bgd-pagination a.page-numbers,
.bgd-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding-inline: var(--bgd-s3);
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-concrete);
	border-radius: var(--bgd-radius);
	color: var(--bgd-ink);
	font-size: var(--bgd-text-sm);
	font-weight: 700;
	text-decoration: none;
}

.bgd-pagination a.page-numbers:hover,
.bgd-pagination a.page-numbers:focus {
	background: var(--bgd-sage-soft);
	border-color: var(--bgd-leaf);
	color: var(--bgd-green);
}

.bgd-pagination span.page-numbers.current {
	background: var(--bgd-green);
	border-color: var(--bgd-green);
	color: var(--bgd-surface);
}

.bgd-pagination span.page-numbers.dots {
	border-color: transparent;
	background: none;
	min-width: 1.5rem;
	padding-inline: 0;
}

/* Search */
.bgd-search-intro {
	margin-bottom: var(--bgd-s6);
}

.bgd-search-intro .bgd-archive-header__title {
	margin-bottom: var(--bgd-s3);
}

.bgd-search-intro .bgd-search-form {
	max-width: 32rem;
	margin-top: var(--bgd-s4);
}

.bgd-no-results {
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-line);
	border-left: 5px solid var(--bgd-cedar);
	border-radius: var(--bgd-radius-sm) var(--bgd-radius-lg) var(--bgd-radius-lg) var(--bgd-radius-sm);
	padding: var(--bgd-s6) var(--bgd-s5);
}

.bgd-no-results .bgd-search-form {
	max-width: 30rem;
	margin-top: var(--bgd-s5);
}

.bgd-no-results__suggestions {
	display: grid;
	gap: var(--bgd-s2);
	list-style: none;
	margin: var(--bgd-s4) 0 var(--bgd-s5);
	padding: 0;
}

.bgd-no-results__suggestions li {
	padding-left: 1.3em;
	position: relative;
}

.bgd-no-results__suggestions li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.5rem;
	height: 0.5rem;
	background: var(--bgd-terracotta);
	border-radius: 1px;
}

/* 404 */
.bgd-error-404 {
	text-align: center;
	max-width: 46rem;
	margin-inline: auto;
}

/* An almost-empty pot on the rail, then the number. */
.bgd-error-404__art {
	width: 100%;
	max-width: 16rem;
	margin: 0 auto var(--bgd-s3);
	border-bottom: 1px solid var(--bgd-line);
}

.bgd-error-404__art svg {
	display: block;
	width: 100%;
	height: auto;
}

.bgd-error-404__code {
	margin: 0 0 var(--bgd-s2);
	color: var(--bgd-terracotta-deep);
	font-family: var(--bgd-font-head);
	font-size: var(--bgd-text-sm);
	font-weight: 800;
	letter-spacing: 0.3em;
	line-height: 1;
	text-indent: 0.3em;
}

.bgd-error-404 .bgd-search-form {
	max-width: 26rem;
	margin: var(--bgd-s5) auto 0;
	text-align: left;
}

.bgd-error-404 .bgd-subcategories {
	justify-content: center;
	margin-top: var(--bgd-s4);
}

.bgd-error-404 .bgd-section {
	margin-top: var(--bgd-s8);
	text-align: left;
}

.bgd-error-404__headline {
	margin-top: var(--bgd-s7);
	font-size: var(--bgd-text-xl);
}

/* --------------------------------------------------------------------------
   15. Pages and contact form
   -------------------------------------------------------------------------- */

.bgd-page__header {
	margin-bottom: var(--bgd-s6);
}

.bgd-page__header .bgd-page__title {
	margin-bottom: 0;
}

.bgd-page__updated {
	margin: var(--bgd-s3) 0 0;
	color: var(--bgd-ink-muted);
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
}

.bgd-form-notice {
	border-radius: var(--bgd-radius);
	padding: var(--bgd-s4) var(--bgd-s5);
	margin-bottom: var(--bgd-s5);
	border: 1px solid;
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-base);
}

.bgd-form-notice > :last-child {
	margin-bottom: 0;
}

.bgd-form-notice--success {
	background: var(--bgd-sage-soft);
	border-color: var(--bgd-sage-line);
	color: var(--bgd-ink);
}

.bgd-form-notice--error {
	background: var(--bgd-terracotta-soft);
	border-color: var(--bgd-terracotta);
	color: #7a2f1a;
}

.bgd-form-notice--error a {
	color: inherit;
}

.bgd-form-notice__list {
	margin: var(--bgd-s2) 0 0;
	padding-left: 1.2em;
}

.bgd-form {
	max-width: 38rem;
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-line);
	border-radius: var(--bgd-radius-lg);
	padding: var(--bgd-s5);
}

@media (min-width: 36em) {
	.bgd-form {
		padding: var(--bgd-s6);
	}
}

.bgd-form > :last-child {
	margin-bottom: 0;
}

.bgd-form input[aria-invalid="true"],
.bgd-form textarea[aria-invalid="true"] {
	border-color: var(--bgd-terracotta-deep);
	border-width: 2px;
}

.bgd-field__error {
	display: block;
	margin-top: var(--bgd-s2);
	color: #8a3a20;
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	font-weight: 600;
}

.bgd-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Cookie notice. The markup and a neutral inline style come from the Site
   Setup plugin; these rules (one step more specific) bring it into the
   palette. */
body .bgd-cookie-notice {
	background: var(--bgd-ink);
	border-top: 3px solid var(--bgd-terracotta);
	color: var(--bgd-sage-soft);
	font-family: var(--bgd-font-ui);
}

body .bgd-cookie-notice a {
	color: var(--bgd-sky);
}

body .bgd-cookie-notice__button {
	min-height: 0;
	background: var(--bgd-bg);
	border: 1.5px solid var(--bgd-bg);
	border-radius: var(--bgd-radius);
	color: var(--bgd-ink);
	font-weight: 700;
	padding: 0.5rem 1.2rem;
}

body .bgd-cookie-notice__button:hover,
body .bgd-cookie-notice__button:focus {
	background: var(--bgd-surface);
	border-color: var(--bgd-surface);
	color: var(--bgd-green);
}

body .bgd-cookie-notice__button:focus-visible {
	outline: 3px solid var(--bgd-sky);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   16. Comments
   -------------------------------------------------------------------------- */

.bgd-comments {
	margin-top: var(--bgd-s9);
	padding-top: var(--bgd-s6);
	border-top: 1px solid var(--bgd-line);
}

.bgd-comments__title {
	font-size: var(--bgd-text-2xl);
}

.bgd-comments .comment-list {
	list-style: none;
	margin: 0 0 var(--bgd-s7);
	padding: 0;
}

.bgd-comments .comment-list ol.children {
	list-style: none;
	margin: var(--bgd-s4) 0 0 var(--bgd-s5);
	padding: 0;
}

.bgd-comments .comment-body {
	background: var(--bgd-surface);
	border: 1px solid var(--bgd-line);
	border-radius: var(--bgd-radius-lg);
	padding: var(--bgd-s5);
	margin-bottom: var(--bgd-s4);
}

.bgd-comments .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bgd-s2) var(--bgd-s3);
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	color: var(--bgd-ink-muted);
	margin-bottom: var(--bgd-s3);
}

.bgd-comments .comment-author img {
	display: inline-block;
	border-radius: 50%;
	margin-right: var(--bgd-s2);
	vertical-align: middle;
}

.bgd-comments .reply {
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	font-weight: 600;
}

.comment-respond .comment-form-cookies-consent label,
.comment-respond .comment-notes {
	font-weight: 400;
	font-size: var(--bgd-text-sm);
	color: var(--bgd-ink-soft);
	display: inline;
}

.comment-form p {
	margin-bottom: var(--bgd-s4);
}

.bgd-comments .comment-content {
	min-width: 0;
	overflow-wrap: anywhere;
}

.bgd-comments .comment-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--bgd-s3);
	margin-bottom: var(--bgd-s5);
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-sm);
	font-weight: 600;
}

/* Nested replies indent less on phones so the text column stays readable. */
@media (max-width: 35.99em) {
	.bgd-comments .comment-list ol.children {
		margin-left: var(--bgd-s3);
	}
}

/* --------------------------------------------------------------------------
   17. Ad slots (empty and disabled by default; nothing renders without code)
   -------------------------------------------------------------------------- */

.bgd-ad-slot {
	margin-block: var(--bgd-s6);
	text-align: center;
	overflow: hidden;
}

.bgd-ad-slot__label {
	display: block;
	margin-bottom: var(--bgd-s2);
	color: var(--bgd-ink-muted);
	font-family: var(--bgd-font-ui);
	font-size: var(--bgd-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bgd-ad-slot--sidebar {
	margin-block: 0;
}

/* --------------------------------------------------------------------------
   18. Footer — charcoal, opened by a balcony railing: a terracotta top rail
   over a row of pale bars
   -------------------------------------------------------------------------- */

.bgd-site-footer {
	background:
		repeating-linear-gradient(90deg, rgba(243, 240, 233, 0.16) 0 4px, transparent 4px 22px) left top / 100% 1.75rem no-repeat,
		var(--bgd-ink);
	border-top: 5px solid var(--bgd-terracotta);
	color: #c9cec9;
	margin-top: auto;
	padding-block: var(--bgd-s9) var(--bgd-s6);
	font-family: var(--bgd-font-ui);
}

.bgd-site-footer :focus-visible {
	outline-color: var(--bgd-sky);
}

.bgd-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bgd-s6);
	margin-bottom: var(--bgd-s7);
}

@media (min-width: 48em) {
	.bgd-footer__grid {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--bgd-s8);
	}
}

.bgd-footer__about p {
	color: #c9cec9;
	font-size: 0.9375rem;
	line-height: 1.55;
	max-width: 42ch;
	margin-bottom: 0;
}

.bgd-footer__about .bgd-footer__tagline {
	color: var(--bgd-sage-soft);
	font-size: var(--bgd-text-base);
	margin-bottom: var(--bgd-s3);
}

.bgd-footer__nav {
	min-width: 0;
}

.bgd-footer__heading {
	font-family: var(--bgd-font-ui);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bgd-sage);
	margin: 0 0 var(--bgd-s3);
}

.bgd-footer__about .bgd-footer__heading {
	font-family: var(--bgd-font-head);
	font-size: var(--bgd-text-xl);
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--bgd-surface);
	margin-bottom: var(--bgd-s2);
}

.bgd-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--bgd-text-base);
}

.bgd-footer__menu li + li {
	margin-top: 0.125rem;
}

.bgd-footer__menu a {
	display: inline-block;
	padding-block: 0.3rem;
	color: var(--bgd-sage-soft);
	text-decoration: none;
}

.bgd-footer__menu a:hover,
.bgd-footer__menu a:focus {
	color: var(--bgd-sky);
	text-decoration: underline;
}

.bgd-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--bgd-s3);
	padding-top: var(--bgd-s5);
	border-top: 1px solid rgba(243, 240, 233, 0.18);
	color: #c9cec9;
	font-size: var(--bgd-text-sm);
}

.bgd-footer__bottom p {
	margin: 0;
}

/* --------------------------------------------------------------------------
   19. Utilities and editor alignments
   -------------------------------------------------------------------------- */

.bgd-visually-balanced {
	max-width: var(--bgd-measure);
}

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

.bgd-mt-0 {
	margin-top: 0;
}

.bgd-mb-0 {
	margin-bottom: 0;
}

.alignleft {
	float: left;
	margin: 0 var(--bgd-s5) var(--bgd-s4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--bgd-s4) var(--bgd-s5);
}

@media (max-width: 35.99em) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 var(--bgd-s4);
	}
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide,
.alignfull {
	margin-inline: auto;
}

.wp-block-embed__wrapper {
	position: relative;
}

.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.wp-block-embed.wp-embed-aspect-16-9 iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--bgd-radius-lg);
}

/* --------------------------------------------------------------------------
   20. Print — guides that read well on paper
   -------------------------------------------------------------------------- */

@media print {
	.bgd-site-header,
	.bgd-site-footer,
	.bgd-ad-slot,
	.bgd-post-nav,
	.bgd-comments,
	.bgd-sidebar,
	.bgd-related,
	.bgd-skip-link,
	.bgd-breadcrumbs,
	.bgd-cookie-notice {
		display: none !important;
	}

	body {
		background: #fff;
		font-size: 11pt;
	}

	.bgd-content > * {
		max-width: none;
	}

	.bgd-table-wrap,
	.wp-block-table {
		overflow: visible;
	}

	.bgd-table-wrap table,
	.wp-block-table table {
		min-width: 0;
	}

	a {
		color: inherit;
		text-decoration: underline;
	}

	.bgd-content h2,
	.bgd-content h3 {
		break-after: avoid;
	}

	figure,
	.bgd-callout,
	.bgd-tutorial-facts,
	.bgd-facts__item {
		break-inside: avoid;
	}
}
