/* What block markup needs on top of design.css: wrappers, the editor
 * canvas, fixes, and the design's hand-written rules. */

.wp-site-blocks {
	container: site / inline-size;

	/* Some design rows (a heading with a decorative line) are wider than a
	 * phone; clip, not hidden, so sticky elements keep working. */
	overflow-x: clip;
}

/* The design's sticky side columns (FAQ intro, office list, option list,
 * "what's included") stick only on desktop; once the columns stack they
 * would cover the content that scrolls under them. */
@media (max-width: 1023px) {

	:root :is(.u-0f96aa71, .u-38ea72ff, .u-617cc9e1, .u-abc940eb) {
		position: static;
	}
}

/* Icon block: the SVG takes the block's size and text colour. */
.ftc-icon {
	display: inline-flex;
	flex: none;
	line-height: 0;
}

.ftc-icon svg {
	width: var(--icon-size, 24px);
	height: var(--icon-size, 24px);
}

.ftc-icon-picker {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 4px;
	margin-bottom: 16px;
}

.ftc-icon-picker svg {
	width: 20px;
	height: 20px;
}

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

/* Contact details block */
.contact-details {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.contact-details.is-stack {
	flex-direction: column;
	gap: 10px;
}

/* Footer: values from the design. */
:root .site-footer {
	background: #f4f2ed;
	color: #57534c;
	font-size: 14px;
	line-height: 1.6;
}

:root .site-footer__in {
	box-sizing: content-box;
	max-width: 1240px;
	margin: 0 auto;
	padding: 64px 24px 40px;
	display: grid;
	gap: 32px;
}

/* The logo column, then the link columns and Contact in one group, so they
   share its width equally and a footer location with no menu leaves no gap.
   Four in a row, two below 782 px, one below 481 px. */
@media (min-width: 1100px) {

	:root .site-footer__in {
		grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
	}
}

:root .site-footer__menus {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

:root .site-footer__menus > * {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 781px) {

	/* No growing, so an odd last column stays half width. */
	:root .site-footer__menus > * {
		flex: 0 1 calc(50% - 16px);
	}
}

@media (max-width: 480px) {

	:root .site-footer__menus > * {
		flex-basis: 100%;
	}
}

:root .site-footer__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

:root .site-footer__in > .site-footer__col:first-child {
	gap: 12px;
}

:root .site-footer p {
	margin: 0;
}

/* A linked column heading keeps the heading's colour; the extra class beats
   the footer's link colour below. */
:root .site-footer .site-footer__title a {
	color: inherit;
}

:root .site-footer .site-footer__title a:hover {
	color: #8a5a12;
}

/* A second heading in the same column. */
:root .site-footer__col > .site-footer__title:not(:first-child) {
	margin-top: 14px;
}

:root .site-footer__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:root .site-footer a {
	color: #57534c;
	text-decoration: none;
}

:root .site-footer a:hover {
	color: #8a5a12;
}

:root .site-footer__title {
	margin: 0;
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.6;
	color: #18212b;
}

:root .site-footer__brand a {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 700;
	font-size: 17px;
	color: #18212b;
}

:root .site-footer__brand .brand__mark {
	width: 36px;
	height: 36px;
	background: #15304d;
	border-bottom: 3px solid #c8902e;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 12px;
	color: #fff;
}

:root .site-footer__brand .brand__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 240px;
	max-height: 48px;
}

:root .site-footer__legal {
	background: #0b1c2d;
	color: #cbc5ba;
}

:root .site-footer__legal .contact-details {
	box-sizing: content-box;
	max-width: 1240px;
	margin: 0 auto;
	padding: 18px 24px;
	font-size: 13px;
	line-height: 1.6;
}

/* The design's own page-wide rules (from each mockup's <style>). */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

:root section[id],
:root [id].wp-block-group {
	scroll-margin-top: 12px;
}

:root details summary {
	cursor: pointer;
	list-style: none;
}

:root details summary::-webkit-details-marker {
	display: none;
}

:root .pm {
	transition: transform 0.2s;
}

:root details[open]:not([data-ftc-closing]) .pm {
	transform: rotate(45deg);
}

:root .toc a:hover {
	background: #15304d;
	color: #fff;
	border-color: #15304d;
}

:root .mbar {
	display: none;
}

@media (max-width: 760px) {

	:root .mbar {
		display: flex;
	}

	:root .optrow {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* A comparison shown as a table on wide screens and as cards on phones. */
:root .cmp-c {
	display: none;
}

@media (max-width: 760px) {

	:root .cmp-t {
		display: none;
	}

	:root .cmp-c {
		display: flex;
	}
}

/* A hero's side panel (About Us); phones drop it. */
@media (max-width: 760px) {

	:root .herobg {
		display: none;
	}
}

/* The dotted line between a price list's item and its price. */
:root .leader {
	flex: 1 1 auto;
	min-width: 24px;
	border-bottom: 2px dotted #cbc5ba;
	transform: translateY(-6px);
}

/* A list visitors can tick off; the site script adds the checkboxes. */
:root .ck-list > li {
	padding: 18px 0;
	border-top: 1px dashed #e3ded5;
}

:root .ck {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	cursor: pointer;
}

:root .ck input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	accent-color: #15304d;
}

:root .ck:has(input:checked) strong {
	text-decoration: line-through;
	text-decoration-color: #c8902e;
}

/* Block wrappers that add their own spacing. */
:root .wp-block-image,
:root .wp-block-table,
:root .wp-block-quote {
	margin: 0;
}

:root .wp-block-image img {
	display: block;
}

/* "ftc-avatar" on an Image block: a round 64px photo matching the team
   cards' initials badge (u-e738ae3c: navy circle, 3px gold ring); the photo
   fills it, cropped. !important beats the inline width, aspect ratio and
   object-fit the block saves from its sidebar; the editor's resize box and
   the lightbox wrapper are made to fill the circle too. */
:root .wp-block-image.ftc-avatar {
	position: relative;
	flex: none;
	width: 64px;
	height: 64px;
	border: 3px solid #c8902e;
	border-radius: 50%;
	overflow: hidden;
	box-sizing: border-box;
	background: #15304d;
}

:root .wp-block-image.ftc-avatar > div {
	width: 100% !important;
	height: 100% !important;
}

:root .wp-block-image.ftc-avatar img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto !important;
	object-fit: cover !important;
}

:root .wp-block-quote > p {
	margin: 0;
}

/* A quote's text keeps the design's line breaks (white-space: pre-line), but
 * the breaks around its paragraph would show as blank lines; a flex box drops
 * them. Loses to the design's own display. */
:root :where(.wp-block-quote) {
	display: flex;
	flex-direction: column;
}

:root .wp-block-buttons > .wp-block-button {
	display: inline-flex;
}

:root .wp-block-button__link {
	align-items: center;
	gap: 10px;
}

/* A card whose first link covers the whole card. */
:root .is-linked {
	position: relative;
}

/* In the design the link wraps the card, so its text keeps the card's
 * colours. */
:root .is-linked a {
	color: inherit;
	text-decoration: none;
}

:root .is-linked a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* FAQ "+" marker turns into "×" when open, and back as soon as a smooth
   close starts (src/animations/details.js). */
:root .has-pm > summary::after {
	transition: transform 0.2s;
}

:root .has-pm[open]:not([data-ftc-closing]) > summary::after {
	transform: rotate(45deg);
}

/* Option picker tabs: the design's on/off states. */
:root .picker__tab {
	width: 100%;
	display: flex;
	gap: 12px;
	align-items: center;
	text-align: left;
	cursor: pointer;
	padding: 18px 20px;
	min-height: 60px;
	box-sizing: border-box;
	border-radius: 6px;
	font-family: "Public Sans", sans-serif;
	font-size: 16px;
	font-weight: 600;
	background: #fff;
	color: #18212b;
	border: 0;
	border-left: 4px solid transparent;
	margin: 0;
}

:root .picker__tab[aria-selected="true"] {
	background: #15304d;
	color: #fff;
	border-left-color: #c8902e;
}

:root .picker__tab:focus-visible {
	outline: 2px solid #c8902e;
	outline-offset: 2px;
}

:root .picker__panel[hidden] {
	display: none;
}

/* Core block styles set border-box on these wrappers; the design's sizes
 * assume the browser default. :where() keeps it below the design's classes. */
:root :where(.wp-block-group, .wp-block-list, .wp-block-quote, .wp-block-details, .wp-block-buttons) {
	box-sizing: content-box;
}

/* Core table styles add cell borders, a header border and cell padding the
 * design doesn't have; back to the browser default. Outranks core, loses to
 * the design's `t-` rules. */
:root .wp-block-table :where(thead, th, td) {
	border: revert;
	padding: revert;
	word-break: revert;
}

/* The design's tables size columns to their content, not in equal parts, and
 * don't break words (that would let a column shrink below its longest word). */
:root .wp-block-table .has-fixed-layout {
	table-layout: revert;
}

:root .wp-block-table .has-fixed-layout :where(th, td) {
	word-break: revert;
}

/* Rank Math wraps the breadcrumb trail in a paragraph. */
:root .crumbs p {
	margin: 0;
}

/* Forms (WPForms, its own styles off): the design's inputs and gold button. */
:root .wpforms-container {
	font-family: "Public Sans", sans-serif;
	color: #18212b;
}

:root .wpforms-field-container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

:root .wpforms-field {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0;
}

:root .wpforms-field.wpforms-one-half {
	grid-column: auto / span 1;
}

:root .wpforms-field-label,
:root .wpforms-field-sublabel {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

:root .wpforms-field-label.wpforms-label-hide {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

:root .wpforms-required-label {
	color: #b42318;
}

:root .wpforms-field input:not([type="checkbox"]):not([type="radio"]),
:root .wpforms-field select,
:root .wpforms-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid #e3ded5;
	border-radius: 4px;
	background: #fff;
	color: #18212b;
	font: inherit;
	font-size: 15px;
	line-height: 1.5;
}

:root .wpforms-field textarea {
	min-height: 140px;
	resize: vertical;
}

:root .wpforms-field input:focus,
:root .wpforms-field select:focus,
:root .wpforms-field textarea:focus {
	outline: 2px solid #c8902e;
	outline-offset: 1px;
	border-color: #c8902e;
}

:root .wpforms-field fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

:root .wpforms-field ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

:root .wpforms-field li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	line-height: 1.55;
	color: #57534c;
}

:root .wpforms-field input[type="checkbox"],
:root .wpforms-field input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: #15304d;
	flex: none;
}

:root .wpforms-field-description {
	font-size: 13px;
	color: #57534c;
}

:root .wpforms-error,
:root label.wpforms-error,
:root em.wpforms-error {
	color: #b42318;
	font-size: 13px;
	font-style: normal;
	font-weight: 600;
}

:root .wpforms-field input.wpforms-error,
:root .wpforms-field select.wpforms-error,
:root .wpforms-field textarea.wpforms-error {
	border-color: #b42318;
}

:root .wpforms-submit-container {
	margin-top: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
}

:root .wpforms-submit {
	background: #c8902e;
	color: #18212b;
	border: 1px solid #c8902e;
	padding: 15px 28px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
}

:root .wpforms-submit:hover,
:root .wpforms-submit:focus-visible {
	background: #8a5a12;
	border-color: #8a5a12;
	color: #fff;
}

:root .wpforms-confirmation-container-full,
:root .wpforms-confirmation-container {
	background: #f4f2ed;
	border-left: 4px solid #c8902e;
	padding: 20px 24px;
	color: #18212b;
	font-size: 16px;
	line-height: 1.6;
}

:root .wpforms-confirmation-container-full p,
:root .wpforms-confirmation-container p {
	margin: 0;
}

@media (max-width: 600px) {

	:root .wpforms-field.wpforms-one-half {
		grid-column: 1 / -1;
	}
}

/* The Contact Us consultation form (form class ftc-consult-form): the design's
 * numbered steps, question rows (ftc-yn) with pill-shaped choices. */
:root .ftc-consult-form .wpforms-field-container {
	--ftc-row-gap: 28px;
	gap: var(--ftc-row-gap) 20px;
}

:root .ftc-consult-form .wpforms-field {
	position: relative;
	gap: 8px;
}

/* Error messages sit in the gap under their field: when one disappears on
 * blur, nothing below moves, so a click that blurred the field still lands. */
:root .ftc-consult-form .wpforms-field .wpforms-error:not(input):not(select):not(textarea) {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 4px;
	line-height: 1.4;
}

:root .ftc-consult-form .wpforms-field-label {
	font-size: 15px;
	font-weight: 700;
	color: #18212b;
}

:root .ftc-consult-form .wpforms-field input:not([type="checkbox"]):not([type="radio"]),
:root .ftc-consult-form .wpforms-field select,
:root .ftc-consult-form .wpforms-field textarea {
	padding: 13px 14px;
	border-color: #cbc5ba;
	border-radius: 6px;
	font-size: 16px;
	line-height: normal;
}

:root .ftc-consult-form .wpforms-field input.wpforms-error:not([type="checkbox"]):not([type="radio"]),
:root .ftc-consult-form .wpforms-field select.wpforms-error,
:root .ftc-consult-form .wpforms-field textarea.wpforms-error {
	border-color: #b42318;
}

:root .ftc-consult-form .wpforms-field textarea {
	min-height: 156px;
	line-height: 1.6;
}

/* The note under the form sat beside the button in the design; its flex
 * basis is a width there, not a height in the card's column. */
:root .wp-block-group:has(> .ftc-consult-form) > p {
	flex-basis: auto;
}

:root .ftc-consult-form .wpforms-field select {
	appearance: none;
	padding-right: 40px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315304D' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}

:root .ftc-consult-form .wpforms-field input:focus,
:root .ftc-consult-form .wpforms-field select:focus,
:root .ftc-consult-form .wpforms-field textarea:focus {
	border-color: #15304d;
}

:root .ftc-form-step {
	grid-column: 1 / -1;
	display: flex;
	gap: 14px;
	align-items: center;
}

:root .ftc-form-step ~ .ftc-form-step,
:root .ftc-consult-form .ftc-consent {
	border-top: 1px solid #e3ded5;
	padding-top: 28px;
}

:root .ftc-form-step__number {
	flex: none;
	display: flex;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	background: #15304d;
	color: #fff;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 16px;
	font-weight: 700;
}

:root .ftc-form-step__title {
	margin: 0;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 22px;
	font-weight: 700;
	color: #18212b;
}

/* A run of question rows reads as one bordered list. */
:root .ftc-consult-form .wpforms-field.ftc-yn {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px 24px;
	align-items: center;
	padding: 16px 0;
	border-top: 1px solid #e3ded5;
	border-bottom: 1px solid #e3ded5;
}

/* Rows after the first of a run (ftc-yn-first) close the row gap and overlap
 * borders. Marked by class, not "+": WPForms puts its hidden spam-trap fields
 * at a random place among the fields, so rows aren't always siblings. */
:root .ftc-consult-form .wpforms-field.ftc-yn:not(.ftc-yn-first) {
	margin-top: calc(-1px - var(--ftc-row-gap));
}

/* A row has no gap under it for an absolute message, so it takes a line of
 * its own; it goes on the same click that answers the question. */
:root .ftc-consult-form .wpforms-field.ftc-yn .wpforms-error:not(input):not(select):not(textarea) {
	position: static;
	grid-column: 1 / -1;
	margin-top: 0;
}

:root .ftc-yn fieldset {
	display: contents;
}

:root .ftc-yn legend.wpforms-field-label {
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

:root .ftc-yn ul {
	flex-flow: row wrap;
}

:root .ftc-yn li {
	position: relative;
	display: inline-flex;
	gap: 10px;
	align-items: center;
	padding: 11px 16px;
	border: 1px solid #cbc5ba;
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	color: #18212b;
	cursor: pointer;
}

:root .ftc-yn li input[type="radio"] {
	margin: 0;
}

/* The whole pill is the label's click area. */
:root .ftc-yn li label::after {
	content: "";
	position: absolute;
	inset: 0;
	cursor: pointer;
}

:root .ftc-yn li:has(input:checked) {
	border-color: #15304d;
	background: #eef2f6;
}

:root .ftc-yn li:has(input:focus-visible) {
	outline: 2px solid #c8902e;
	outline-offset: 2px;
}

:root .ftc-consult-form .ftc-consent li {
	gap: 12px;
	line-height: 1.6;
}

:root .ftc-consult-form .wpforms-submit-container {
	margin-top: 28px;
}

:root .ftc-consult-form .wpforms-submit {
	padding: 16px 30px;
	border: 0;
	font-size: 16px;
	font-weight: 700;
}

@media (max-width: 760px) {

	:root .ftc-consult-form .wpforms-field.ftc-yn {
		grid-template-columns: minmax(0, 1fr);
	}

	:root .ftc-yn li {
		gap: 8px;
		padding: 9px 13px;
		font-size: 14px;
	}

	:root .wp-block-group:has(> .ftc-consult-form) {
		padding: 26px 18px !important;
	}
}

/* A page's form popup (src/site/form-dialog.js). Without the script the
 * section shows after the consultation section as a card. */
:root .form-dialog {
	background: #f4f2ed;
	padding: 72px 24px;
}

:root .form-dialog > * {
	max-width: 760px;
	margin-right: auto;
	margin-left: auto;
}

:root .form-dialog__title {
	margin-bottom: 24px;
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.2;
}

:root .form-dialog__dialog {
	width: min(760px, 100% - 32px);
	max-width: none;
	max-height: calc(100% - 48px);
	padding: 0;
	border: 0;
	border-top: 4px solid #c8902e;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 30px 80px -30px rgba(11, 28, 45, 0.6);
	overflow: hidden;
}

/* The form scrolls inside the popup, so the close button stays in view. */
:root .form-dialog__dialog[open] {
	display: flex;
	flex-direction: column;
}

:root .form-dialog__dialog::backdrop {
	background: rgba(11, 28, 45, 0.72);
}

:root:has(.form-dialog__dialog[open]) {
	overflow: hidden;
}

:root .form-dialog__dialog .form-dialog {
	flex: 1 1 auto;
	min-height: 0;
	background: none;
	padding: 40px 44px;
	overflow: auto;
	overscroll-behavior: contain;
}

:root .form-dialog__dialog .form-dialog__title {
	margin-right: 40px;
}

:root .form-dialog__close {
	position: absolute;
	z-index: 1;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #18212b;
	cursor: pointer;
}

:root .form-dialog__close:hover,
:root .form-dialog__close:focus-visible {
	background: #f4f2ed;
	color: #8a5a12;
}

:root .form-dialog__close:focus-visible {
	outline: 2px solid #c8902e;
	outline-offset: 2px;
}

@media (max-width: 600px) {

	:root .form-dialog__dialog {
		width: 100%;
		height: 100%;
		max-height: none;
		margin: 0;
		border-radius: 0;
	}

	:root .form-dialog__dialog .form-dialog {
		padding: 28px 20px;
	}
}

/* Long text pages (privacy policy, terms): a readable line length, sections
 * spaced apart, room between list items. */
:root .prose {
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: 760px;
}

:root .prose .h3 {
	font-size: 22px;
}

:root .prose ul {
	margin: 0;
	padding-left: 22px;
}

:root .prose li + li {
	margin-top: 10px;
}

:root .prose li::marker {
	color: #c8902e;
}

/* Pages converted from the old site: the design's classes plus these. */
:root .page-hero {
	background-image: repeating-linear-gradient(115deg, rgba(200, 144, 46, 0.08) 0 1px, transparent 1px 22px);
}

:root .wrap-hero {
	gap: 18px;
	padding-top: 40px;
	padding-bottom: 72px;
}

:root .page-title {
	margin: 0;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: clamp(38px, 4.8vw, 58px);
	line-height: 1.12;
	font-weight: 700;
	color: #18212b;
}

:root .cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 48px;
	align-items: start;
}

:root .grid-3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 24px;
}

/* A card grid that stops at three columns, so six cards make two even rows. */
:root .grid-3.cards-3 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

:root .cols.cols-center {
	align-items: center;
}

/* White icons from the old site, side by side on navy circles. */
:root .icon-tiles {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

:root .icon-tiles .wp-block-image img {
	box-sizing: content-box;
	width: 48px;
	height: 48px;
	padding: 20px;
	border-radius: 50%;
	background: #15304d;
	object-fit: contain;
}

:root .card-icon img {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

:root .img-round img {
	width: auto;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* A photo on its own stays a sensible height. */
:root .wrap > .img-round img,
:root .stack-18 > .img-round img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

:root .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 20px;
}

:root .gallery .img-round img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Three photos as one tall photo with two stacked beside it. */
:root .gallery.gallery-feature {
	grid-template-columns: 3fr 2fr;
	gap: 16px;
}

:root .gallery-feature > :first-child {
	grid-row: span 2;
}

:root .gallery-feature > :first-child img {
	aspect-ratio: 4 / 5;
}

/* The tall photo sets the height; the other two share it exactly. */
:root .gallery-feature > :not(:first-child) {
	position: relative;
	min-height: 60px;
}

:root .gallery-feature > :not(:first-child) img {
	position: absolute;
	inset: 0;
	height: 100%;
	aspect-ratio: auto;
}

:root .list-check,
:root .list-bullets {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: #18212b;
	font-size: 16px;
	line-height: 1.65;
}

:root .list-check li,
:root .list-bullets li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

:root .list-check li::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 3px;
	background-color: #8a5a12;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='square'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='square'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

:root .list-bullets li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	margin-top: 11px;
	background: #c8902e;
}

:root .faq-item {
	background: #fff;
	border-left: 4px solid #c8902e;
	padding: 20px 24px;
}

:root .faq-item + .faq-item {
	margin-top: 12px;
}

:root .faq-item > summary {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 18px;
	font-weight: 600;
	color: #18212b;
}

:root .faq-item > p {
	margin: 12px 0 0;
}

:root .post-grid .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

/* Page numbers under a post grid. */
:root .pager {
	gap: 8px;
	margin-top: 40px;
	font-size: 15px;
	font-weight: 600;
}

:root .pager :is(a, .current) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	box-sizing: border-box;
	border: 1px solid #e3ded5;
	border-radius: 4px;
	color: #15304d;
	text-decoration: none;
}

:root .pager a:hover {
	border-color: #c8902e;
	color: #8a5a12;
}

:root .pager .current {
	border-color: #15304d;
	background: #15304d;
	color: #fff;
}

/* A single post (templates/single.html): date and category under the
 * title, then the image and text in a readable column. */
:root .post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	color: #57534c;
	font-size: 15px;
}

:root .post-meta .wp-block-post-terms a {
	color: #8a5a12;
	font-weight: 600;
	text-decoration: none;
}

:root .post-body {
	display: flex;
	flex-direction: column;
	gap: 36px;
	width: 100%;
	max-width: 760px;
}

:root .post-image img {
	border-radius: 8px;
}

:root .post-text {
	color: #57534c;
	font-size: 17px;
	line-height: 1.75;
}

:root .post-text > * {
	margin: 0;
}

:root .post-text > * + * {
	margin-top: 20px;
}

:root .post-text > :is(h2, h3) {
	margin-top: 40px;
	color: #18212b;
	font-size: 26px;
	line-height: 1.25;
}

:root .post-text > h3 {
	font-size: 21px;
}

:root .post-text :is(ul, ol) {
	padding-left: 22px;
}

:root .post-text li + li {
	margin-top: 8px;
}

:root .post-text li::marker {
	color: #c8902e;
}

/* A small image (an icon) shows at its own size. */
:root .img-icon img {
	width: auto;
	max-width: 100%;
	height: auto;
}

/* Scroll animations: hidden until the script shows them. Only under
   `.ftc-anim`, which the head script adds (includes/animations.php), so the
   page shows as normal without the script and in the editor; screen only, so
   printing shows everything. Never in the first section, a form popup or a
   FAQ answer (FAQ blocks open and close with their own animation,
   src/animations/details.js). Must hide exactly what
   src/animations/targets.js reveals; a test checks the two match
   (tests/js/animations.test.js). */
@media screen {

	.ftc-anim .wp-block-post-content > section:not(:first-of-type, .form-dialog, .is-shown),
	.ftc-anim .wp-block-post-content .wp-block-list:not(.wp-block-post-content > section:first-of-type *, .form-dialog *, dialog *, details *) > li:not(.is-shown, .form-dialog, dialog),
	.ftc-anim .wp-block-post-content .wp-block-columns:not(.wp-block-post-content > section:first-of-type *, .form-dialog *, dialog *, details *) > .wp-block-column:not(.is-shown, .form-dialog, dialog),
	.ftc-anim :is(.ftc-reveal, .ftc-reveal-up):not(.wp-block-post-content > section:first-of-type, .wp-block-post-content > section:first-of-type *, .form-dialog, .form-dialog *, dialog, dialog *) > :not(.is-shown, .form-dialog, dialog, details *) {
		opacity: 0;
	}

	.ftc-anim .wp-block-post-content > section:not(:first-of-type, .form-dialog, .is-shown),
	.ftc-anim .ftc-reveal-up:not(.wp-block-post-content > section:first-of-type, .wp-block-post-content > section:first-of-type *, .form-dialog, .form-dialog *, dialog, dialog *) > :not(.is-shown, .form-dialog, dialog, details *) {
		translate: 0 24px;
	}
}
