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

   Look: a calm, uncluttered room. Warm-white page, white surfaces, deep teal
   for everything interactive, soft mist panels and a little sand, stone and
   blush. Three recurring motifs, all plain CSS:
     1. Soft frame — images sit in a white mat with rounded corners and a
        hairline edge.
     2. Rail line  — headings and page headers rest on a hairline with a
        short eucalyptus bar at its start.
     3. Tile dots  — list bullets and step numbers are small rounded tiles.

   Contrast reference (WCAG 2.1, calculated from relative luminance):
     charcoal   #2a3331 on warm white #fbfaf6 / white / mist #eef2ef /
                mist deep #e2e9e5 ........................ 12.4 / 13.0 / 11.5 / 10.5:1
     ink-soft   #3d4a47 on warm white / white / mist / mist deep  8.9 / 9.3 / 8.2 / 7.5:1
     ink-muted  #55625f on warm white / white / mist / mist deep  6.1 / 6.4 / 5.6 / 5.2:1
     teal       #2f5d62 on warm white / white / mist / mist deep  7.0 / 7.3 / 6.5 / 5.9:1
     teal deep  #234a4e on mist deep #e2e9e5 ..................... 7.9:1
     white      #ffffff on teal #2f5d62 / teal deep #234a4e ...... 7.3 / 9.7:1
     footer text #dfe8e4 and stone #e7e2d8 on teal deep #234a4e .. 7.7 / 7.5:1
     blush text #8a4a36 on white / blush tint #f8eee8 ............ 6.7 / 5.9:1
     form border #72837e on white / warm white / mist (non-text) . 4.0 / 3.8 / 3.5:1
   Eucalyptus #7fa99b, sage #a9c4b8, sand #d9c9ad, sand shade #b9a27a,
   stone #e7e2d8 (on light surfaces) and blush #e0b3a2 are decoration only —
   borders, bullets, rail lines — and never carry text.
   Focus ring: 3px charcoal on light surfaces (12:1), 3px stone on the deep
   teal footer (7.5:1), always with a 2px offset.
   ========================================================================== */

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

:root {
	/* Colour — raw palette */
	--bto-teal: #2f5d62;
	--bto-teal-deep: #234a4e;
	--bto-eucalyptus: #7fa99b;
	--bto-sage: #a9c4b8;
	--bto-teal-soft: #e2e9e5;
	--bto-teal-line: #a9c4b8;
	--bto-charcoal: #2a3331;
	--bto-mist: #eef2ef;
	--bto-mist-deep: #e2e9e5;
	--bto-white: #fbfaf6;
	--bto-pure: #ffffff;
	--bto-water: #e2e9e5;
	--bto-water-deep: #a9c4b8;
	--bto-water-soft: #eef2ef;
	--bto-blush: #e0b3a2;
	--bto-blush-deep: #8a4a36;
	--bto-blush-soft: #f8eee8;
	--bto-blush-line: #ecd3c8;
	--bto-sand: #d9c9ad;
	--bto-sand-deep: #b9a27a;
	--bto-stone: #e7e2d8;

	/* Colour — roles */
	--bto-bg: var(--bto-white);
	--bto-bg-deep: var(--bto-mist);
	--bto-surface: var(--bto-pure);
	--bto-ink: var(--bto-charcoal);
	--bto-ink-soft: #3d4a47;
	--bto-ink-muted: #55625f;
	--bto-line: #d5ddd9;
	--bto-line-strong: #72837e;
	--bto-accent: var(--bto-teal);
	--bto-accent-hover: var(--bto-teal-deep);
	--bto-accent-soft: var(--bto-teal-soft);
	--bto-focus: var(--bto-charcoal);

	/* Motif — rail line: a hairline with a short eucalyptus bar at its start.
	   Used as a background on anything that needs bottom padding of 1.25rem
	   or more. */
	--bto-shelf:
		linear-gradient(var(--bto-eucalyptus), var(--bto-eucalyptus)) left bottom / 3rem 3px no-repeat,
		linear-gradient(var(--bto-line), var(--bto-line)) left bottom 1px / 100% 1px no-repeat;

	/* Typography — system stacks, nothing to download. Headings use a
	   system serif; body and interface text use the system sans. */
	--bto-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--bto-font-head: "Iowan Old Style", "Sitka Heading", "Sitka Text", Charter, "Bitstream Charter", Cambria, Georgia, "Times New Roman", serif;
	--bto-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--bto-text-xs: 0.8125rem;
	--bto-text-sm: 0.875rem;
	--bto-text-base: 1rem;
	--bto-text-md: 1.0625rem;
	--bto-text-lg: 1.1875rem;
	--bto-text-xl: 1.4375rem;
	--bto-text-2xl: 1.75rem;
	--bto-text-3xl: 2.125rem;
	--bto-text-4xl: 2.75rem;

	--bto-leading-tight: 1.16;
	--bto-leading-snug: 1.35;
	--bto-leading-normal: 1.65;
	--bto-leading-relaxed: 1.75;

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

	/* Shape: soft corners, thin hairlines and very light shadows. */
	--bto-radius-sm: 4px;
	--bto-radius: 8px;
	--bto-radius-lg: 12px;
	--bto-radius-frame: 1rem;
	--bto-radius-pill: 999px;
	--bto-shadow: 0 10px 24px rgba(42, 51, 49, 0.1);
	--bto-shadow-soft: 0 1px 2px rgba(42, 51, 49, 0.04), 0 6px 18px rgba(42, 51, 49, 0.05);

	/* Layout */
	--bto-container: 1180px;
	--bto-container-narrow: 780px;
	--bto-measure: 68ch;
	--bto-gutter: var(--bto-s4);
	--bto-header-row: 4.5rem;
	--bto-sticky-offset: 5.25rem;

	color-scheme: light;
}

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

@media (min-width: 62em) {
	:root {
		--bto-sticky-offset: 4.25rem;
	}
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Room for the sticky header when jumping to a heading. */
	scroll-padding-top: calc(var(--bto-sticky-offset) + 1rem);
}

@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;
	}
}

body {
	margin: 0;
	background-color: var(--bto-bg);
	color: var(--bto-ink);
	font-family: var(--bto-font-body);
	font-size: var(--bto-text-md);
	line-height: var(--bto-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;
}

hr {
	border: 0;
	height: 3px;
	margin: var(--bto-s7) 0;
	background: var(--bto-shelf);
}

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

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

h1 {
	font-size: clamp(2rem, 1.4rem + 2.6vw, var(--bto-text-4xl));
}

h2 {
	font-size: clamp(1.5625rem, 1.25rem + 1.4vw, var(--bto-text-3xl));
}

h3 {
	font-size: clamp(1.25rem, 1.1rem + 0.8vw, var(--bto-text-xl));
}

h4 {
	font-size: var(--bto-text-lg);
}

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

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

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

a:hover,
a:focus {
	color: var(--bto-accent-hover);
	text-decoration-thickness: 2px;
}

strong,
b {
	font-weight: 700;
}

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

mark {
	background: #efe6d2;
	color: var(--bto-ink);
	padding: 0 0.15em;
}

code,
kbd,
samp {
	font-family: var(--bto-font-mono);
	font-size: 0.9em;
	background: var(--bto-bg-deep);
	border: 1px solid var(--bto-line);
	border-radius: var(--bto-radius-sm);
	padding: 0.1em 0.35em;
}

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

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

/* A quote sits in a soft mist panel. */
blockquote {
	margin: var(--bto-s6) 0;
	padding: var(--bto-s5);
	background: var(--bto-water-soft);
	border: 1px solid var(--bto-water-deep);
	border-radius: var(--bto-radius-frame);
	font-family: var(--bto-font-head);
	font-size: var(--bto-text-lg);
	color: var(--bto-ink);
}

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

blockquote cite {
	display: block;
	margin-top: var(--bto-s2);
	font-family: var(--bto-font-body);
	font-size: var(--bto-text-sm);
	font-style: normal;
	color: var(--bto-ink-soft);
}

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

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

/* On the deep teal footer the ring switches to stone. */
.bto-site-footer :focus-visible {
	outline-color: var(--bto-stone);
}

/* The main landmark only receives focus from the skip link. */
.bto-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(--bto-ink);
	border-radius: var(--bto-radius-pill);
	box-shadow: var(--bto-shadow);
	clip-path: none;
	color: var(--bto-surface);
	display: block;
	font-size: var(--bto-text-base);
	font-weight: 700;
	height: auto;
	left: var(--bto-s4);
	line-height: normal;
	outline: 3px solid var(--bto-eucalyptus);
	outline-offset: 2px;
	padding: var(--bto-s3) var(--bto-s5);
	text-decoration: none;
	top: var(--bto-s4);
	width: auto;
	z-index: 100000;
}

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

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

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

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

.bto-site-main {
	flex: 1 0 auto;
	padding-block: var(--bto-s7) var(--bto-s9);
}

/* Used on the homepage, where the hero sits flush against the header. */
.bto-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. */
.bto-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bto-s7);
}

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

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

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

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

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

/* Section heading: title, "View all" link and description rest on a rail line. */
.bto-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--bto-s2) var(--bto-s4);
	margin-bottom: var(--bto-s6);
	padding-bottom: calc(var(--bto-s4) + 10px);
	background: var(--bto-shelf);
}

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

/* Always on its own line under the title and the "View all" link. */
.bto-section__description {
	flex: 0 0 100%;
	order: 3;
	margin: 0;
	color: var(--bto-ink-soft);
	font-size: var(--bto-text-base);
	max-width: 62ch;
}

.bto-section__link {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0.2rem 0.85rem;
	background: var(--bto-surface);
	border: 1px solid var(--bto-teal-line);
	border-radius: var(--bto-radius-pill);
	font-size: var(--bto-text-sm);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.bto-section__link:hover,
.bto-section__link:focus {
	background: var(--bto-accent);
	border-color: var(--bto-accent);
	color: var(--bto-surface);
}

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

/* --------------------------------------------------------------------------
   6. Header and navigation
   -------------------------------------------------------------------------- */

/* A light header that stays in view. On wide screens the brand row scrolls
   away and only the mist navigation band stays pinned (negative top). */
.bto-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bto-surface);
	border-bottom: 1px solid var(--bto-line);
}

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

.bto-branding {
	display: flex;
	align-items: center;
	gap: var(--bto-s3);
	min-width: 0;
}

.bto-branding__mark {
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
}

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

.bto-branding__title {
	font-family: var(--bto-font-head);
	font-size: var(--bto-text-xl);
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
	letter-spacing: -0.015em;
}

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

.bto-branding__title a:hover {
	color: var(--bto-accent);
}

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

/* On the narrowest phones the tagline would wrap under the menu button. */
@media (max-width: 29.99em) {
	.bto-branding__tagline {
		display: none;
	}

	.bto-branding__title {
		font-size: var(--bto-text-lg);
	}
}

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

/* Mobile menu button */
.bto-menu-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: var(--bto-s2);
	background: var(--bto-bg);
	border: 1.5px solid var(--bto-line-strong);
	border-radius: var(--bto-radius-pill);
	box-shadow: none;
	color: var(--bto-ink);
	cursor: pointer;
	font: inherit;
	font-size: var(--bto-text-sm);
	font-weight: 700;
	min-height: 2.75rem;
	padding: var(--bto-s2) var(--bto-s4);
}

.bto-menu-toggle:hover {
	background: var(--bto-water);
	border-color: var(--bto-teal);
	color: var(--bto-ink);
}

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

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

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

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

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

/* The open panel scrolls inside the pinned header on short screens. */
.bto-header__panel.is-open {
	display: block;
	max-height: calc(100vh - var(--bto-header-row) - 1rem);
	overflow-y: auto;
	overscroll-behavior: contain;
}

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

.bto-nav__list li {
	position: relative;
}

.bto-nav__list a {
	display: block;
	padding: var(--bto-s3) var(--bto-s2);
	border-bottom: 1px solid var(--bto-line);
	color: var(--bto-ink);
	font-size: var(--bto-text-base);
	font-weight: 600;
	text-decoration: none;
}

.bto-nav__list a:hover {
	color: var(--bto-accent);
}

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

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

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

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

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

	/* Brand row scrolls away; the navigation band stays pinned. */
	.bto-site-header {
		top: calc(-1 * var(--bto-header-row));
	}

	/* Two rows: brand and search on the first, the full menu on the second.
	   If a longer menu is assigned, the list wraps instead of overflowing. */
	.bto-site-header .bto-container {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: var(--bto-s5);
	}

	.bto-header__inner {
		flex: 1 1 0;
		height: var(--bto-header-row);
	}

	/* The panel wrapper dissolves so that its two children (menu and search)
	   can be placed independently in the header's flex layout. */
	.bto-header__panel,
	.bto-header__panel.is-open {
		display: contents;
	}

	.bto-header__search {
		order: 2;
		flex: 0 1 16rem;
		min-width: 11rem;
		margin-top: 0;
	}

	/* The mist band: painted edge to edge with an outset border-image, which
	   adds no scrollable overflow; the menu itself stays in the container. */
	.bto-nav {
		order: 3;
		flex: 1 0 100%;
		min-width: 0;
		padding-block: 0.4rem;
		background: var(--bto-bg-deep);
		border-image: linear-gradient(var(--bto-bg-deep), var(--bto-bg-deep)) fill 0 / 0 / 0 100vmax;
	}

	.bto-nav__list {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--bto-s1);
		margin-inline: calc(-1 * var(--bto-s3));
	}

	/* Pill-shaped items. */
	.bto-nav__list a {
		border-bottom: 0;
		border-radius: var(--bto-radius-pill);
		padding: 0.4rem var(--bto-s3);
		font-size: var(--bto-text-sm);
		white-space: nowrap;
	}

	.bto-nav__list a:hover {
		background: var(--bto-surface);
		color: var(--bto-accent);
	}

	.bto-nav .current-menu-item > a,
	.bto-nav .current-menu-ancestor > a,
	.bto-nav .current_page_item > a {
		background: var(--bto-accent);
		color: var(--bto-surface);
		box-shadow: none;
	}

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

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

	.bto-nav__list .sub-menu a {
		padding-left: var(--bto-s3);
		white-space: normal;
		border-radius: var(--bto-radius);
		background: none;
		color: var(--bto-ink);
	}

	.bto-nav__list .sub-menu a:hover {
		background: var(--bto-bg);
		color: var(--bto-accent);
	}
}

@media (min-width: 75em) {
	.bto-nav__list a {
		font-size: 0.9375rem;
		padding-inline: var(--bto-s4);
	}

	.bto-nav__list {
		margin-inline: calc(-1 * var(--bto-s4));
	}
}

/* Logged-in view: keep the pinned header below the WordPress toolbar. */
@media (min-width: 37.5625em) {
	.admin-bar .bto-site-header {
		top: 46px;
	}
}

@media (min-width: 48.9375em) {
	.admin-bar .bto-site-header {
		top: 32px;
	}
}

@media (min-width: 62em) {
	.admin-bar .bto-site-header {
		top: calc(32px - var(--bto-header-row));
	}
}

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

label {
	display: block;
	font-size: var(--bto-text-sm);
	font-weight: 700;
	margin-bottom: var(--bto-s2);
}

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

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

.bto-required {
	color: var(--bto-blush-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(--bto-surface);
	border: 1.5px solid var(--bto-line-strong);
	border-radius: var(--bto-radius-lg);
	color: var(--bto-ink);
	font: inherit;
	font-size: var(--bto-text-base);
	padding: var(--bto-s3) var(--bto-s4);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--bto-teal);
}

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

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

/* Search field: one pill, input and button joined. */
.bto-search-form {
	display: flex;
	gap: 0;
}

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

.bto-search-form input[type="search"] {
	min-height: 2.75rem;
	padding-block: var(--bto-s2);
	border-right: 0;
	border-radius: var(--bto-radius-pill) 0 0 var(--bto-radius-pill);
}

.bto-search-form__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3rem;
	min-height: 2.75rem;
	background: var(--bto-accent);
	border: 1.5px solid var(--bto-accent);
	border-radius: 0 var(--bto-radius-pill) var(--bto-radius-pill) 0;
	box-shadow: none;
	color: var(--bto-surface);
	cursor: pointer;
	padding: 0 var(--bto-s4) 0 var(--bto-s3);
}

.bto-search-form__submit:hover {
	background: var(--bto-accent-hover);
	border-color: var(--bto-accent-hover);
	color: var(--bto-surface);
}

.bto-search-form__submit .bto-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.bto-button,
.bto-button--primary,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--bto-s2);
	background: var(--bto-accent);
	border: 2px solid var(--bto-accent);
	border-radius: var(--bto-radius-pill);
	color: var(--bto-surface);
	cursor: pointer;
	font-family: var(--bto-font-body);
	font-size: var(--bto-text-base);
	font-weight: 700;
	letter-spacing: 0.005em;
	line-height: 1.3;
	min-height: 3rem;
	padding: var(--bto-s3) 1.6rem;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.bto-button--secondary {
	background: var(--bto-surface);
	border-color: var(--bto-teal);
	color: var(--bto-teal);
}

.bto-button--secondary:hover,
.bto-button--secondary:focus {
	background: var(--bto-water);
	border-color: var(--bto-teal-deep);
	color: var(--bto-teal-deep);
}

.bto-button--small {
	font-size: var(--bto-text-sm);
	min-height: 2.5rem;
	padding: var(--bto-s2) 1.15rem;
}

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

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

/* Category label above a title: teal text after a short eucalyptus dash. */
.bto-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-size: var(--bto-text-xs);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--bto-teal);
	text-decoration: none;
	margin-bottom: var(--bto-s2);
}

.bto-eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 1.1rem;
	height: 3px;
	border-radius: 2px;
	background: var(--bto-eucalyptus);
}

a.bto-eyebrow:hover {
	color: var(--bto-accent-hover);
	text-decoration: underline;
}

/* Small chip: soft corners on a mist ground. */
.bto-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--bto-s1);
	background: var(--bto-water);
	border: 1px solid var(--bto-water-deep);
	border-radius: var(--bto-radius);
	color: var(--bto-teal);
	font-size: var(--bto-text-sm);
	font-weight: 700;
	padding: 0.35rem 0.75rem;
	text-decoration: none;
}

a.bto-chip:hover {
	background: var(--bto-teal);
	border-color: var(--bto-teal);
	color: var(--bto-surface);
}

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

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

.bto-meta__item {
	display: inline-flex;
	align-items: center;
	gap: var(--bto-s2);
}

.bto-meta a {
	color: inherit;
}

.bto-meta svg {
	flex: 0 0 auto;
	color: var(--bto-teal);
}

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

/* Intro paragraph available to page content. */
.bto-lead {
	font-size: var(--bto-text-lg);
	line-height: var(--bto-leading-relaxed);
	color: var(--bto-ink-soft);
}

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

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

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

@media (min-width: 62em) {
	.bto-grid {
		gap: var(--bto-s6);
	}

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

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

/* Quiet card: hairline border and a very light shadow. */
.bto-card {
	display: flex;
	flex-direction: column;
	background: var(--bto-surface);
	border: 1px solid var(--bto-line);
	border-radius: var(--bto-radius-frame);
	box-shadow: var(--bto-shadow-soft);
	height: 100%;
	transition: border-color 0.18s ease;
}

.bto-card:hover {
	border-color: var(--bto-eucalyptus);
}

/* Soft frame: the card's white edge is the mat around the image. */
.bto-card__media,
.bto-card-row__media,
.bto-frame {
	display: block;
	position: relative;
	overflow: hidden;
	background: var(--bto-water);
}

.bto-card__media {
	margin: 10px 10px 0;
	border-radius: calc(var(--bto-radius-frame) - 6px);
	box-shadow: 0 0 0 1px var(--bto-line);
	aspect-ratio: 16 / 9;
}

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

/* Posts without a featured image get a mist panel with a small shelf, two
   bottles and a folded towel (an inline data URI: no image file, no request). */
.bto-card__media--placeholder,
.bto-card-row__media--placeholder {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Crect x='6' y='36' width='52' height='4' rx='2' fill='%23d9c9ad'/%3E%3Crect x='12' y='14' width='9' height='22' rx='3' fill='%232f5d62'/%3E%3Crect x='14.500' y='9' width='4' height='6' rx='1' fill='%23234a4e'/%3E%3Crect x='25' y='20' width='10' height='16' rx='3' fill='%237fa99b'/%3E%3Crect x='40' y='29' width='14' height='7' rx='3' fill='%23ffffff'/%3E%3Crect x='40' y='22' width='14' height='7' rx='3' fill='%23a9c4b8'/%3E%3C/svg%3E") center center / 5.5rem auto no-repeat,
		linear-gradient(180deg, var(--bto-water-soft), var(--bto-water));
}

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

.bto-grid--4 .bto-card__body {
	padding: var(--bto-s4);
}

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

.bto-grid--4 .bto-card__title {
	font-size: var(--bto-text-md);
}

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

.bto-card__title a:hover,
.bto-card-row__title a:hover,
.bto-steps__title a:hover {
	color: var(--bto-accent);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.bto-card__excerpt {
	color: var(--bto-ink-soft);
	font-size: var(--bto-text-sm);
	line-height: var(--bto-leading-normal);
	margin: 0;
}

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

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

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

.bto-card-row__media {
	border-radius: var(--bto-radius-lg);
	box-shadow: 0 0 0 1px var(--bto-line);
	aspect-ratio: 4 / 3;
}

/* min-width: 0 keeps long titles from blowing out the grid column. */
.bto-card-row__body {
	min-width: 0;
}

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

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

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

/* Numbered path (Start Here): each step number sits in a rounded tile. */
.bto-steps {
	list-style: none;
	counter-reset: bto-step;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bto-s4);
	margin: 0;
	padding: 0;
}

@media (min-width: 48em) {
	.bto-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--bto-s5);
	}
}

.bto-steps > li {
	counter-increment: bto-step;
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	gap: var(--bto-s4);
	align-items: start;
	background: var(--bto-surface);
	border: 1px solid var(--bto-line);
	border-radius: var(--bto-radius-lg);
	box-shadow: var(--bto-shadow-soft);
	padding: var(--bto-s5);
}

.bto-steps > li::before {
	content: counter(bto-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	background: var(--bto-accent);
	border-radius: var(--bto-radius-lg);
	color: var(--bto-surface);
	font-family: var(--bto-font-head);
	font-size: var(--bto-text-lg);
	font-weight: 700;
	line-height: 1;
}

.bto-steps__title {
	font-size: var(--bto-text-lg);
	line-height: var(--bto-leading-snug);
	margin: 0 0 var(--bto-s2);
}

.bto-steps p {
	color: var(--bto-ink-soft);
	font-size: var(--bto-text-sm);
	margin: 0;
}

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

/* A soft mist band; the art sits in a rounded white frame. */
.bto-hero {
	background: linear-gradient(180deg, var(--bto-mist-deep), var(--bto-mist));
	border-bottom: 1px solid var(--bto-line);
	padding-block: var(--bto-s7) var(--bto-s8);
}

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

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

	.bto-hero__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: var(--bto-s9);
	}
}

.bto-hero__title {
	font-size: clamp(2.25rem, 1.45rem + 3.4vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -0.022em;
	line-height: 1.08;
	margin-bottom: var(--bto-s5);
	max-width: 17ch;
}

.bto-hero__text {
	color: var(--bto-ink-soft);
	font-size: var(--bto-text-lg);
	line-height: var(--bto-leading-relaxed);
	max-width: 46ch;
	margin-bottom: var(--bto-s6);
}

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

/* Decorative inline SVG (no image request, no JS) in a soft frame: a white
   mat with rounded corners and a hairline edge. */
.bto-hero__figure {
	width: 100%;
	max-width: 21rem;
	margin-inline: auto;
	background: var(--bto-surface);
	border: 10px solid var(--bto-surface);
	border-radius: 1.75rem;
	box-shadow: 0 0 0 1px var(--bto-line), var(--bto-shadow-soft);
	overflow: hidden;
}

@media (min-width: 62em) {
	.bto-hero__figure {
		max-width: 28rem;
		border-width: 14px;
	}
}

.bto-hero__figure svg {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 1rem;
}

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

.bto-topic {
	display: flex;
	flex-direction: column;
	gap: var(--bto-s2);
	background: var(--bto-water-soft);
	border: 1px solid var(--bto-water-deep);
	border-radius: var(--bto-radius-frame);
	padding: var(--bto-s5) var(--bto-s4) var(--bto-s4);
	text-decoration: none;
	height: 100%;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.bto-topic:hover {
	background: var(--bto-surface);
	border-color: var(--bto-teal);
}

.bto-topic__name {
	font-family: var(--bto-font-head);
	font-size: var(--bto-text-lg);
	font-weight: 700;
	line-height: 1.25;
	color: var(--bto-ink);
}

.bto-topic:hover .bto-topic__name {
	color: var(--bto-accent);
}

.bto-topic__desc {
	color: var(--bto-ink-soft);
	font-size: var(--bto-text-sm);
	line-height: var(--bto-leading-normal);
}

.bto-topic__count {
	margin-top: auto;
	padding-top: var(--bto-s2);
	color: var(--bto-ink-muted);
	font-size: var(--bto-text-xs);
	font-weight: 700;
}

/* Closing call to action: a wide, quiet mist panel. */
.bto-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bto-s5);
	align-items: center;
	background: linear-gradient(135deg, var(--bto-mist-deep), var(--bto-mist));
	border: 1px solid var(--bto-line);
	border-radius: var(--bto-radius-frame);
	color: var(--bto-ink);
	padding: var(--bto-s6) var(--bto-s5);
}

@media (min-width: 48em) {
	.bto-cta {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: var(--bto-s8);
	}
}

.bto-cta__title {
	color: var(--bto-ink);
	margin-bottom: var(--bto-s3);
}

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

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

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

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

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

.bto-breadcrumbs li + li::before {
	content: "/";
	color: var(--bto-sand-deep);
	font-weight: 700;
}

.bto-breadcrumbs a {
	color: var(--bto-ink-soft);
	text-decoration: none;
	font-weight: 600;
}

.bto-breadcrumbs a:hover {
	color: var(--bto-accent);
	text-decoration: underline;
}

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

.bto-article__header {
	margin-bottom: var(--bto-s6);
}

.bto-article__title {
	margin-bottom: var(--bto-s4);
	max-width: 22ch;
}

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

.bto-article__meta {
	padding-bottom: calc(var(--bto-s4) + 10px);
	background: var(--bto-shelf);
}

/* Featured image in a soft frame: white mat, rounded corners, hairline
   edge and a very light shadow. */
.bto-article__figure {
	margin-bottom: var(--bto-s7);
}

.bto-frame {
	border: 10px solid var(--bto-surface);
	border-radius: var(--bto-radius-frame);
	box-shadow: 0 0 0 1px var(--bto-line), var(--bto-shadow-soft);
}

@media (min-width: 48em) {
	.bto-frame {
		border-width: 14px;
		border-radius: 1.25rem;
	}
}

.bto-frame img {
	width: 100%;
}

.bto-article__figure > img {
	border: 10px solid var(--bto-surface);
	border-radius: var(--bto-radius-frame);
	box-shadow: 0 0 0 1px var(--bto-line);
	width: 100%;
}

/* Figures and captions */
.bto-article__figure figcaption,
.bto-content figcaption,
.wp-block-image figcaption,
.wp-caption-text {
	margin-top: var(--bto-s4);
	padding: var(--bto-s2) var(--bto-s3);
	background: var(--bto-bg-deep);
	border-radius: var(--bto-radius-sm);
	color: var(--bto-ink-soft);
	font-size: var(--bto-text-sm);
	line-height: var(--bto-leading-snug);
	text-align: left;
}

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

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

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

/* Every H2 in a guide rests on a rail line. */
.bto-content h2 {
	margin-top: var(--bto-s8);
	padding-bottom: calc(var(--bto-s3) + 10px);
	background: var(--bto-shelf);
}

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

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

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

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

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

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

/* Tile bullets: a small rounded eucalyptus square (inline data URI, list
   semantics kept). */
.bto-content ul:not([class]),
.bto-content ul.wp-block-list {
	list-style-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Crect x='1' y='1' width='8' height='8' rx='2.500' fill='%237fa99b'/%3E%3C/svg%3E");
}

.bto-content ul:not([class]) > li,
.bto-content ul.wp-block-list > li {
	padding-left: 0.3em;
}

/* Ordered lists carry the steps of a guide: bold numbers, room to breathe
   and a hairline between top-level steps. */
.bto-content ol {
	padding-left: 1.75em;
}

.bto-content ol > li {
	padding-left: 0.35em;
}

.bto-content ol > li::marker {
	color: var(--bto-accent);
	font-family: var(--bto-font-head);
	font-weight: 700;
}

.bto-content > ol > li + li {
	margin-top: var(--bto-s3);
	padding-top: var(--bto-s3);
	border-top: 1px dashed var(--bto-line);
}

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

/* In-article images: a slimmer version of the soft frame. */
.bto-content img {
	border: 6px solid var(--bto-surface);
	border-radius: var(--bto-radius-lg);
	box-shadow: 0 0 0 1px var(--bto-line);
	max-width: 100%;
	height: auto;
	background-color: var(--bto-surface);
}

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

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

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

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

.bto-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--bto-text-sm);
	line-height: var(--bto-leading-snug);
}

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

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

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

.bto-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
	background: rgba(238, 242, 239, 0.7);
}

.bto-content thead th,
.wp-block-table thead th {
	background: var(--bto-teal);
	border-bottom: 0;
	color: var(--bto-surface);
	font-size: var(--bto-text-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

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

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

/* Callouts — used in article content and available in the block editor.
   Plain: white under a sage bar. Tip: sage and teal. "Good to know"
   (--warning): a calm blush-sand note with dark text, not an alarm. */
.bto-callout {
	position: relative;
	background: var(--bto-surface);
	border: 1px solid var(--bto-line);
	border-top: 4px solid var(--bto-water-deep);
	border-radius: var(--bto-radius-lg);
	padding: var(--bto-s5);
	margin-block: var(--bto-s6);
}

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

.bto-callout__title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--bto-font-body);
	font-size: var(--bto-text-sm);
	font-weight: 800;
	letter-spacing: 0.07em;
	line-height: var(--bto-leading-snug);
	text-transform: uppercase;
	color: var(--bto-teal);
	margin: 0 0 var(--bto-s2);
}

/* Small shape before the title: an upright rounded bar for tips and notes,
   a blush dot for "good to know". */
.bto-callout__title::before {
	content: "";
	flex: 0 0 auto;
	width: 0.4rem;
	height: 1rem;
	border-radius: var(--bto-radius-pill);
	background: currentColor;
}

.bto-callout--tip {
	background: var(--bto-teal-soft);
	border-color: var(--bto-teal-line);
	border-top-color: var(--bto-teal);
	color: var(--bto-ink);
}

.bto-callout--tip .bto-callout__title {
	color: var(--bto-teal);
}

.bto-callout--warning {
	background: var(--bto-blush-soft);
	color: var(--bto-ink);
	border-color: var(--bto-blush-line);
	border-top-color: var(--bto-blush);
}

.bto-callout--warning .bto-callout__title {
	color: var(--bto-blush-deep);
}

.bto-callout--warning .bto-callout__title::before {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--bto-blush-deep);
	box-shadow: 0 0 0 3px var(--bto-blush);
}

/* At-a-glance card (difficulty, time needed, best for, when to do it and
   the "What you need" list): a labelled panel with a mist header strip. */
.bto-tutorial-facts {
	background: var(--bto-surface);
	border: 1px solid var(--bto-line);
	border-radius: var(--bto-radius-frame);
	padding: 0 var(--bto-s5) var(--bto-s5);
	margin-bottom: var(--bto-s6);
	overflow: hidden;
}

.bto-tutorial-facts__title,
.bto-toc__title {
	font-family: var(--bto-font-body);
	font-size: var(--bto-text-sm);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bto-ink-soft);
	margin: 0 0 var(--bto-s4);
}

.bto-tutorial-facts .bto-tutorial-facts__title {
	margin: 0 calc(-1 * var(--bto-s5)) var(--bto-s5);
	padding: var(--bto-s3) var(--bto-s5);
	background: var(--bto-water);
	border-bottom: 1px solid var(--bto-line);
	color: var(--bto-teal-deep);
}

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

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

/* Each icon sits in a small rounded tile. */
.bto-facts__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.75rem;
	background: var(--bto-water);
	border: 1px solid var(--bto-water-deep);
	border-radius: var(--bto-radius-lg);
	color: var(--bto-teal);
}

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

.bto-facts__label {
	display: block;
	font-family: var(--bto-font-body);
	font-size: var(--bto-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: var(--bto-leading-snug);
	text-transform: uppercase;
	color: var(--bto-ink-muted);
	margin: 0;
}

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

.bto-materials {
	margin-top: var(--bto-s5);
	padding-top: var(--bto-s4);
	border-top: 1px dashed var(--bto-line-strong);
}

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

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

.bto-materials__list li {
	display: flex;
	align-items: flex-start;
	gap: var(--bto-s3);
	margin: 0;
}

.bto-materials__list li::before,
.bto-no-results__suggestions li::before {
	content: "";
	flex: 0 0 auto;
	width: 0.55rem;
	height: 0.55rem;
	margin-top: 0.55em;
	border-radius: 2px;
	background: var(--bto-eucalyptus);
}

/* Table of contents */
.bto-toc {
	background: var(--bto-water-soft);
	border: 1px solid var(--bto-water-deep);
	border-left: 4px solid var(--bto-eucalyptus);
	border-radius: var(--bto-radius-lg);
	padding: var(--bto-s5);
	margin-bottom: var(--bto-s6);
}

.bto-toc .bto-toc__title {
	margin: 0 0 var(--bto-s3);
	padding: 0;
	background: none;
}

.bto-toc ol {
	counter-reset: bto-toc;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--bto-text-base);
}

.bto-toc > ol > li {
	counter-increment: bto-toc;
	margin: 0;
}

.bto-toc > ol > li + li {
	margin-top: var(--bto-s2);
}

.bto-toc > ol > li > a::before {
	content: counter(bto-toc, decimal-leading-zero) "\00a0\00a0";
	color: var(--bto-teal);
	font-family: var(--bto-font-head);
	font-weight: 700;
}

.bto-toc a {
	color: var(--bto-ink);
	text-decoration: none;
}

.bto-toc a:hover {
	color: var(--bto-accent);
	text-decoration: underline;
}

.bto-toc ol ol {
	margin: var(--bto-s2) 0 0 2.1rem;
	font-size: var(--bto-text-sm);
}

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

.bto-toc ol ol a {
	color: var(--bto-ink-soft);
}

/* FAQ */
.bto-faq {
	margin-top: var(--bto-s8);
}

.bto-faq > h2 {
	padding-bottom: calc(var(--bto-s3) + 10px);
	margin-bottom: var(--bto-s5);
	background: var(--bto-shelf);
}

.bto-faq__item {
	background: var(--bto-surface);
	border: 1px solid var(--bto-line);
	border-radius: var(--bto-radius);
	margin-bottom: var(--bto-s3);
	padding: var(--bto-s4) var(--bto-s5);
}

.bto-faq__question {
	font-family: var(--bto-font-head);
	font-size: var(--bto-text-lg);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 var(--bto-s2);
}

.bto-faq__answer {
	color: var(--bto-ink-soft);
	max-width: var(--bto-measure);
}

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

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

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

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

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

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

@media (min-width: 48em) {
	.bto-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. */
	.bto-post-nav__link--next:only-child {
		grid-column: 2;
	}
}

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

.bto-post-nav__link:hover {
	border-color: var(--bto-teal);
	background: var(--bto-surface);
}

.bto-post-nav__direction {
	display: block;
	font-size: var(--bto-text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bto-ink-muted);
	margin-bottom: var(--bto-s2);
}

.bto-post-nav__title {
	display: block;
	font-family: var(--bto-font-head);
	font-size: var(--bto-text-md);
	font-weight: 700;
	color: var(--bto-ink);
	line-height: var(--bto-leading-snug);
}

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

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

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

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

@media (min-width: 62em) {
	.bto-sidebar--sticky {
		position: sticky;
		top: calc(var(--bto-sticky-offset) + 1rem);
	}
}

.bto-widget {
	background: var(--bto-surface);
	border: 1px solid var(--bto-line);
	border-radius: var(--bto-radius);
	padding: var(--bto-s5);
	font-size: var(--bto-text-base);
}

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

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

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

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

.bto-widget a:hover {
	color: var(--bto-accent);
	text-decoration: underline;
}

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

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

.bto-archive-header {
	margin-bottom: var(--bto-s7);
	padding-bottom: calc(var(--bto-s5) + 10px);
	background: var(--bto-shelf);
}

.bto-archive-header__title {
	margin-bottom: var(--bto-s3);
}

.bto-archive-header__description {
	color: var(--bto-ink-soft);
	font-size: var(--bto-text-lg);
	line-height: var(--bto-leading-relaxed);
	max-width: var(--bto-measure);
	margin-top: var(--bto-s4);
}

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

.bto-archive-header__count {
	margin: var(--bto-s3) 0 0;
	color: var(--bto-ink-muted);
	font-size: var(--bto-text-sm);
	font-weight: 600;
}

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

.bto-pagination {
	margin-top: var(--bto-s8);
}

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

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

.bto-pagination li {
	margin: 0;
}

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

.bto-pagination a.page-numbers:hover {
	background: var(--bto-water);
	border-color: var(--bto-teal);
	color: var(--bto-ink);
}

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

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

/* Search */
.bto-search-intro {
	margin-bottom: var(--bto-s6);
	padding-bottom: calc(var(--bto-s5) + 10px);
	background: var(--bto-shelf);
}

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

.bto-no-results {
	background: var(--bto-surface);
	border: 1px solid var(--bto-line);
	border-radius: var(--bto-radius-frame);
	padding: var(--bto-s6) var(--bto-s5);
}

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

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

.bto-no-results__suggestions li {
	display: flex;
	align-items: flex-start;
	gap: var(--bto-s3);
}

/* Two ways forward on dead ends: the beginner guide and the full list. */
.bto-suggested {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bto-s3);
	margin: var(--bto-s5) 0;
}

.bto-error-404 .bto-suggested {
	justify-content: center;
}

/* 404: the number sits in a soft mist frame. */
.bto-error-404 {
	text-align: center;
	max-width: 46rem;
	margin-inline: auto;
}

.bto-error-404__code {
	display: inline-block;
	font-family: var(--bto-font-head);
	font-size: clamp(3.25rem, 2rem + 7vw, 5.5rem);
	font-weight: 700;
	line-height: 1;
	color: var(--bto-teal);
	margin: 0 0 var(--bto-s6);
	padding: var(--bto-s7) var(--bto-s6) var(--bto-s5);
	background: var(--bto-water);
	border: 10px solid var(--bto-surface);
	border-radius: 1.75rem;
	box-shadow: 0 0 0 1px var(--bto-line), var(--bto-shadow-soft);
}

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

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

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

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

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

.bto-page__header {
	margin-bottom: var(--bto-s6);
	padding-bottom: calc(var(--bto-s5) + 10px);
	background: var(--bto-shelf);
}

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

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

.bto-form-notice {
	border-radius: var(--bto-radius);
	padding: var(--bto-s4) var(--bto-s5);
	margin-bottom: var(--bto-s5);
	border: 1px solid;
	border-top-width: 5px;
}

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

.bto-form-notice--success {
	background: #eef7ef;
	border-color: #9cc5a1;
	color: #1f5128;
}

.bto-form-notice--error {
	background: #fdeeec;
	border-color: #e3a79e;
	color: #7d2418;
}

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

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

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

.bto-form input[aria-invalid="true"],
.bto-form textarea[aria-invalid="true"] {
	border-color: #b3372a;
	border-width: 2px;
}

.bto-field__error {
	display: block;
	margin-top: var(--bto-s2);
	color: #8c2b20;
	font-size: var(--bto-text-sm);
	font-weight: 700;
}

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

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

.bto-comments {
	margin-top: var(--bto-s9);
	padding-top: var(--bto-s6);
	border-top: 1px dashed var(--bto-line-strong);
}

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

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

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

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

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

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

.bto-comments .reply {
	font-size: var(--bto-text-sm);
	font-weight: 700;
}

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

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

/* --------------------------------------------------------------------------
   17. Ad slots (empty and disabled by default)
   -------------------------------------------------------------------------- */

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

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

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

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

/* Deep teal, flat and quiet, under a thin eucalyptus line. */
.bto-site-footer {
	margin-top: auto;
	padding: var(--bto-s8) 0 var(--bto-s6);
	background: var(--bto-teal-deep);
	border-top: 4px solid var(--bto-eucalyptus);
	color: #dfe8e4;
}

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

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

.bto-footer__about p {
	color: #dfe8e4;
	font-size: var(--bto-text-base);
	max-width: 44ch;
	margin-bottom: 0;
}

/* General-information note under the site description. */
.bto-footer__about .bto-footer__disclaimer {
	margin-top: var(--bto-s3);
	font-size: var(--bto-text-sm);
	line-height: var(--bto-leading-snug);
}

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

.bto-footer__heading {
	font-family: var(--bto-font-body);
	font-size: var(--bto-text-sm);
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--bto-stone);
	margin: 0 0 var(--bto-s3);
}

.bto-footer__about .bto-footer__heading {
	font-family: var(--bto-font-head);
	font-size: var(--bto-text-2xl);
	font-weight: 700;
	letter-spacing: -0.015em;
	text-transform: none;
	color: var(--bto-surface);
}

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

.bto-footer__menu li + li {
	margin-top: var(--bto-s1);
}

.bto-footer__menu a {
	display: inline-block;
	padding-block: var(--bto-s1);
	color: var(--bto-surface);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.35);
}

.bto-footer__menu a:hover,
.bto-footer__menu a:focus {
	color: var(--bto-stone);
	text-decoration-color: currentColor;
}

.bto-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--bto-s3);
	padding-top: var(--bto-s5);
	border-top: 1px solid rgba(255, 255, 255, 0.28);
	color: #dfe8e4;
	font-size: var(--bto-text-sm);
}

.bto-footer__bottom p {
	margin: 0;
}

.bto-site-footer a {
	color: var(--bto-surface);
}

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

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

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

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

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

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

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

@media (max-width: 35.99em) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 var(--bto-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(--bto-radius);
}

/* --------------------------------------------------------------------------
   20. Print — guides that read well on a printed page
   -------------------------------------------------------------------------- */

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

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

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

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

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

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

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

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