/**
 * FITY Kolonie - theme styles.
 *
 * Only what theme.json cannot express: the header, the responsive navigation,
 * the hero composition and a few layout utilities.
 *
 * Mobile first. Modern CSS: custom properties, grid, flexbox, clamp(), logical
 * properties. No CSS framework.
 */

/* --- Accessibility ------------------------------------------------------ */

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

.skip-link {
	position: absolute;
	inset-inline-start: -9999px;
	z-index: 999;
}

.skip-link:focus {
	inset-inline-start: 1rem;
	inset-block-start: 1rem;
	padding: 0.75rem 1.25rem;
	border-radius: 8px;
	background-color: var( --wp--preset--color--ink );
	color: var( --wp--preset--color--base );
	text-decoration: none;
}

:where( a, button, summary, input, select, textarea ):focus-visible {
	outline: 3px solid var( --wp--preset--color--forest );
	outline-offset: 2px;
}

/* In-page anchors must clear the sticky header. */
.wp-block-group[ id ] {
	scroll-margin-top: 6rem;
}

/* --- Site header -------------------------------------------------------- */

.fity-header {
	position: relative;
	z-index: 60;
	border-bottom: 1px solid var( --wp--preset--color--line );
	background-color: var( --wp--preset--color--base );
}

/*
 * Sticky from tablet up only. On a phone the viewport is short and the camp
 * pages already carry a fixed CTA bar at the bottom - two fixed bars would eat
 * the screen.
 */
@media ( min-width: 48rem ) {
	.fity-header {
		position: sticky;
		top: 0;
	}
}

/*
 * align-items is stated here rather than left to the block layout: a stretched
 * row would pull the CTA to the full height of the header instead of letting
 * its own padding size it.
 */
.fity-header__inner,
.fity-header__brand,
.fity-header__end,
.fity-header__nav,
.fity-header__cta {
	align-items: center;
}

.fity-header__inner {
	gap: clamp( 0.75rem, 2vw, 2.5rem );
	min-height: 4.25rem;
}

@media ( min-width: 48rem ) {
	.fity-header__inner {
		min-height: 5rem;
	}
}

.fity-header__brand {
	flex: 0 0 auto;
}

.fity-header__brand .wp-block-site-title {
	margin: 0;
	white-space: nowrap;
}

.fity-header__brand .wp-block-site-title a {
	color: var( --wp--preset--color--forest-dark );
	letter-spacing: -0.02em;
	text-decoration: none;
}

/* A single sun-coloured mark keeps the wordmark from reading as plain text. */
.fity-header__brand .wp-block-site-title a::after {
	content: "";
	display: inline-block;
	width: 0.375rem;
	height: 0.375rem;
	margin-inline-start: 0.2em;
	border-radius: 999px;
	background-color: var( --wp--preset--color--sun );
}

.fity-header__end {
	gap: clamp( 0.5rem, 1.5vw, 1.5rem );
}

.fity-header__nav,
.fity-header__cta {
	margin: 0;
}

/* The CTA is the important control on a phone; the menu button follows it. */
@media ( max-width: 61.9375rem ) {
	.fity-header__cta {
		order: 1;
	}

	.fity-header__nav {
		order: 2;
	}

	.fity-header__cta .fity-button {
		min-height: 44px;
		padding: 0.5rem 0.9rem;
		font-size: 0.8125rem;
		letter-spacing: 0.02em;
	}
}

.fity-header__cta .fity-button {
	white-space: nowrap;
}

/*
 * Core switches the navigation block to an overlay below 600px. Four Polish
 * category labels plus a CTA do not fit an inline menu at tablet widths, so the
 * overlay is kept until 992px by re-stating core's own two breakpoint rules.
 */
@media ( min-width: 37.5rem ) and ( max-width: 61.9375rem ) {
	.fity-header .wp-block-navigation__responsive-container:not( .hidden-by-default ):not( .is-menu-open ) {
		display: none;
	}

	.fity-header .wp-block-navigation__responsive-container-open:not( .always-shown ) {
		display: flex;
	}
}

@media ( max-width: 61.9375rem ) {
	.fity-header .wp-block-navigation__responsive-container-open {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: 10px;
		color: var( --wp--preset--color--forest-dark );
	}

	.fity-header .wp-block-navigation__responsive-container-open:hover {
		background-color: var( --wp--preset--color--sand );
	}
}

/* Inline navigation, from the width where the overlay is switched off. */
@media ( min-width: 62rem ) {
	.fity-header .wp-block-navigation__responsive-container-open:not( .always-shown ) {
		display: none;
	}

	.fity-header__nav .wp-block-navigation__container {
		gap: clamp( 1rem, 2vw, 1.875rem );
	}

	.fity-header__nav .wp-block-navigation-item__content {
		display: block;
		padding-block: 0.4rem;
		border-bottom: 2px solid transparent;
		color: var( --wp--preset--color--ink );
		white-space: nowrap;
	}

	.fity-header__nav .wp-block-navigation-item__content:hover,
	.fity-header__nav .current-menu-item > .wp-block-navigation-item__content {
		border-bottom-color: var( --wp--preset--color--sun );
		color: var( --wp--preset--color--forest-dark );
	}

	/* Slightly tighter than the in-page CTAs, which stay the loudest. */
	.fity-header__cta .fity-button {
		min-height: 46px;
		padding: 0.65rem 1.25rem;
		font-size: 0.9375rem;
	}
}

/*
 * --- Mobile navigation drawer --------------------------------------------
 *
 * Core's navigation block renders the mobile menu as a full-screen overlay:
 *
 *   .wp-block-navigation__responsive-container    fixed, covers the viewport
 *     .wp-block-navigation__responsive-close      full-width wrapper
 *       .wp-block-navigation__responsive-dialog   role="dialog"
 *         button.…__responsive-container-close
 *         .…__responsive-container-content        the <ul> lives in here
 *
 * That markup is left untouched: opening, closing, focus handling, aria-expanded
 * and the scroll lock on <html> all stay core's job. CSS alone re-reads the
 * three wrappers as a right-side drawer - the container becomes the backdrop,
 * the close wrapper becomes the panel, the dialog becomes its surface.
 * assets/js/navigation.js adds the brand line, contact row and CTA, which core
 * leaves no slot for.
 *
 * Every selector carries .fity-header plus core's own :not( .disable-default-
 * overlay ) so it outweighs wp-block-navigation's stylesheet: a block theme can
 * have that file printed AFTER this one, so matching specificity is not enough.
 */

/* Backdrop. The inline background-color comes from the block's overlay colour
   attribute, so replacing it with the scrim needs !important. */
.fity-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: rgba( 9, 34, 27, 0.55 ) !important;
	color: var( --wp--preset--color--base ) !important;
}

@supports ( backdrop-filter: blur( 2px ) ) {
	.fity-header .wp-block-navigation__responsive-container.is-menu-open {
		backdrop-filter: blur( 2px );
	}
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open:not( .disable-default-overlay ) {
	/* dvh keeps the panel clear of the collapsing mobile browser chrome. */
	height: 100dvh;
	padding: 0;
	overflow: hidden;
}

/* The panel: right-aligned, never wider than a comfortable reading column. */
.fity-header .wp-block-navigation__responsive-container.is-menu-open:not( .disable-default-overlay ) .wp-block-navigation__responsive-close {
	display: flex;
	width: min( 90vw, 380px );
	max-width: none;
	height: 100%;
	margin-inline: auto 0;
}

@media ( prefers-reduced-motion: no-preference ) {
	.fity-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
		animation: fity-drawer-in 0.22s cubic-bezier( 0.22, 0.61, 0.36, 1 ) both;
	}
}

@keyframes fity-drawer-in {
	from {
		transform: translateX( 8% );
		opacity: 0.4;
	}

	to {
		transform: none;
		opacity: 1;
	}
}

/*
 * The surface. padding-block-start reserves the top bar; the brand and the
 * close button are absolutely positioned into that band, so the content below
 * can carry the hairline that closes the bar off across the full width.
 *
 * flex + min-height:0 is what lets the link list scroll on a short screen while
 * the footer CTA stays put. Core gives the dialog a margin-top when the admin
 * bar is present; flex:1 absorbs it instead of overflowing.
 */
.fity-header .wp-block-navigation__responsive-container.is-menu-open:not( .disable-default-overlay ) .wp-block-navigation__responsive-dialog {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	padding-block-start: 64px;
	background-color: var( --wp--preset--color--forest-dark );
	box-shadow: -18px 0 48px rgba( 9, 34, 27, 0.45 );
}

/*
 * Above the breakpoint core reuses the same container as the inline desktop
 * menu, so the drawer furniture has to be hidden by default and only shown once
 * the overlay is actually open - otherwise it lands in the desktop header.
 */
.fity-nav-drawer__brand,
.fity-nav-drawer__footer {
	display: none;
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open .fity-nav-drawer__brand {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 1.375rem;
	display: flex;
	align-items: center;
	height: 64px;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open .fity-nav-drawer__brand a::after {
	content: "";
	display: inline-block;
	width: 0.375rem;
	height: 0.375rem;
	margin-inline-start: 0.2em;
	border-radius: 999px;
	background-color: var( --wp--preset--color--sun );
}

/* A framed 44x44 target instead of a naked X floating in the corner. */
.fity-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	inset-block-start: 10px;
	inset-inline-end: 14px;
	inset-inline-start: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba( 255, 255, 255, 0.16 );
	border-radius: 12px;
	background-color: rgba( 255, 255, 255, 0.07 );
	color: var( --wp--preset--color--base );
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover,
.fity-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:focus-visible {
	border-color: rgba( 255, 255, 255, 0.32 );
	background-color: rgba( 255, 255, 255, 0.16 );
}

/* The scrolling region: the navigation rows, nothing else. */
.fity-header .wp-block-navigation__responsive-container.is-menu-open:not( .disable-default-overlay ) .wp-block-navigation__responsive-container-content {
	flex: 1;
	min-height: 0;
	align-items: stretch;
	justify-content: flex-start;
	padding: 1rem 0 0;
	border-block-start: 1px solid rgba( 255, 255, 255, 0.1 );
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open:not( .disable-default-overlay ) .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	gap: 0;
	align-items: stretch;
	margin: 0;
	padding: 0;
}

/*
 * Rows, separated by a hairline rather than by empty space. Core stacks the
 * <li> as a flex column aligned by the desktop layout attribute, which leaves
 * the link only as wide as its label; stretching it is what makes the whole row
 * - hover, active accent and touch target - span the drawer.
 */
.fity-header .wp-block-navigation__responsive-container.is-menu-open:not( .disable-default-overlay ) .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
	align-items: stretch;
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open:not( .disable-default-overlay ) .wp-block-navigation__responsive-container-content .wp-block-navigation-item + .wp-block-navigation-item {
	border-block-start: 1px solid rgba( 255, 255, 255, 0.1 );
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open:not( .disable-default-overlay ) .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 60px;
	padding: 0.75rem 1.375rem;
	color: var( --wp--preset--color--base );
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Chevron drawn from borders - no extra asset, and it inherits the row colour. */
.fity-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	content: "";
	flex: 0 0 auto;
	width: 0.4375rem;
	height: 0.4375rem;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	opacity: 0.4;
	transform: rotate( 45deg );
	transition: opacity 0.15s ease;
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.fity-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
	background-color: rgba( 255, 255, 255, 0.07 );
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover::after,
.fity-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible::after {
	opacity: 0.75;
}

/*
 * Active page: a sun-coloured accent bar plus a lighter row. Drawn with an
 * inset box-shadow because core forces `background: transparent !important` on
 * the <li>, and because a border would shift the label by its own width.
 */
.fity-header .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content,
.fity-header .wp-block-navigation__responsive-container.is-menu-open .current_page_item > .wp-block-navigation-item__content,
.fity-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[ aria-current ] {
	background-color: rgba( 255, 255, 255, 0.09 );
	box-shadow: inset 3px 0 0 0 var( --wp--preset--color--sun );
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content::after,
.fity-header .wp-block-navigation__responsive-container.is-menu-open .current_page_item > .wp-block-navigation-item__content::after,
.fity-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[ aria-current ]::after {
	border-color: var( --wp--preset--color--sun );
	opacity: 1;
}

/* The theme's default focus ring is forest green - invisible on this panel. */
.fity-header .wp-block-navigation__responsive-container.is-menu-open :where( a, button ):focus-visible {
	outline: 2px solid var( --wp--preset--color--sun );
	outline-offset: -3px;
}

/* Footer: contact line, then the CTA. Built by assets/js/navigation.js. */
.fity-header .wp-block-navigation__responsive-container.is-menu-open .fity-nav-drawer__footer {
	display: grid;
	flex: 0 0 auto;
	gap: 0.875rem;
	padding: 1.125rem 1.375rem calc( 1.375rem + env( safe-area-inset-bottom, 0px ) );
	border-block-start: 1px solid rgba( 255, 255, 255, 0.12 );
	background-color: rgba( 0, 0, 0, 0.1 );
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open .fity-nav-drawer__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.125rem;
	font-size: 0.9375rem;
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open .fity-nav-drawer__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 28px;
	color: rgba( 255, 255, 255, 0.82 );
	text-decoration: none;
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open .fity-nav-drawer__contact-link:hover,
.fity-header .wp-block-navigation__responsive-container.is-menu-open .fity-nav-drawer__contact-link:focus-visible {
	color: var( --wp--preset--color--base );
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open .fity-nav-drawer__contact-icon {
	color: var( --wp--preset--color--sun );
	font-size: 1rem;
}

.fity-header .wp-block-navigation__responsive-container.is-menu-open .fity-nav-drawer__cta .fity-button {
	width: 100%;
	min-height: 50px;
	font-size: 1rem;
}

/* On the form itself a second "ZAPISZ DZIECKO" would only lead away from it. */
body.fity-registration .fity-nav-drawer__cta {
	display: none;
}

/* The camp page keeps its fixed bottom CTA; a second one up top is noise. */
@media ( max-width: 47.9375rem ) {
	body.single-product .fity-header__cta {
		display: none;
	}
}

/* On the form itself a second "ZAPISZ DZIECKO" would lead away from it. */
body.fity-registration .fity-header__cta {
	display: none;
}

/* --- Hero --------------------------------------------------------------- */

/* Tight at the top on a phone: the CTA has to land in the first viewport. */
.fity-hero {
	position: relative;
	overflow: hidden;
	padding-block: var( --wp--preset--spacing--30 ) var( --wp--preset--spacing--60 );
}

@media ( min-width: 56rem ) {
	.fity-hero {
		padding-block: var( --wp--preset--spacing--50 ) var( --wp--preset--spacing--60 );
	}
}

.fity-hero__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var( --wp--preset--spacing--40 );
	align-items: start;
}

/* Grid gaps own the rhythm here - core's flow margins would double it up. */
.fity-hero__inner > * {
	margin-block: 0;
}

/*
 * Phone order: copy, photograph, numbers. The CTA therefore sits above the
 * image and stays reachable without scrolling.
 *
 * Desktop: copy and numbers stack on the left, the photograph spans both rows.
 */
@media ( min-width: 56rem ) {
	.fity-hero__inner {
		grid-template-columns: 1.05fr 1fr;
		gap: var( --wp--preset--spacing--40 ) var( --wp--preset--spacing--50 );
		align-items: center;
	}

	.fity-hero__copy {
		grid-column: 1;
		grid-row: 1;
	}

	.fity-hero__media {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: center;
	}

	.fity-hero__stats {
		grid-column: 1;
		grid-row: 2;
	}
}

/*
 * The primary CTA must be reachable without scrolling on a normal phone.
 * Capping the hero height keeps the button in the first viewport on a 667px
 * screen while still giving the photograph real presence.
 */
.fity-hero__media figure {
	margin: 0;
}

.fity-hero__media img {
	display: block;
	width: 100%;
	max-height: 34vh;
	border-radius: 18px;
	object-fit: cover;
}

@media ( min-width: 56rem ) {
	.fity-hero__media img {
		max-height: none;
		aspect-ratio: 4 / 3;
	}
}

.fity-hero__eyebrow {
	display: inline-block;
	margin: 0;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background-color: var( --wp--preset--color--sun-soft );
	color: #8f3a05;
	font-size: var( --wp--preset--font-size--small );
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fity-hero__copy h1 {
	max-width: 18ch;
	text-wrap: balance;
}

/*
 * The numbers sit in a column roughly half the viewport wide, so they get a
 * two-by-two grid and a smaller scale than the same block gets in the
 * full-width "Dlaczego rodzice wracają" section.
 */
.fity-hero__stats .fity-stats {
	grid-template-columns: repeat( 2, 1fr );
	gap: 1.25rem 1rem;
}

.fity-hero__stats .fity-stats__value {
	font-size: clamp( 1.875rem, 1.4rem + 1.4vw, 2.5rem );
}

.fity-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
}

.fity-hero__actions p {
	margin: 0;
}

/* The page's primary action carries a little more weight than the rest. */
.fity-hero__actions .fity-button--primary {
	min-height: 54px;
	padding-inline: 1.75rem;
}

/*
 * Full-width CTA on the narrowest phones - it is the point of the page. The
 * plugin wraps the button in its own block element, so that wrapper is what
 * has to take the whole line.
 */
@media ( max-width: 26rem ) {
	.fity-hero__actions .fity-cta-block {
		flex: 1 0 100%;
	}

	.fity-hero__actions .fity-cta-block .fity-button {
		width: 100%;
	}
}

/* --- Section helpers ---------------------------------------------------- */

.fity-section-heading {
	max-width: 24ch;
	text-wrap: balance;
}

.fity-lead {
	max-width: 62ch;
	color: var( --wp--preset--color--muted );
	font-size: var( --wp--preset--font-size--large );
}

/* --- Placeholder imagery ------------------------------------------------ */

/*
 * Every placeholder is clearly marked so nobody ships one by accident.
 * Replace them with real FITY photography - never with stock images.
 */
.fity-placeholder img {
	border-radius: 16px;
	outline: 2px dashed var( --wp--preset--color--line );
	outline-offset: -2px;
}

/* --- Testimonials ------------------------------------------------------- */

.fity-testimonial {
	height: 100%;
	padding: var( --wp--preset--spacing--40 );
	border: 1px solid var( --wp--preset--color--line );
	border-radius: 16px;
	background-color: var( --wp--preset--color--base );
	box-shadow: var( --wp--preset--shadow--soft );
}

.fity-testimonial cite {
	display: block;
	margin-top: var( --wp--preset--spacing--30 );
	color: var( --wp--preset--color--muted );
	font-size: var( --wp--preset--font-size--small );
	font-style: normal;
}

/* --- Staff -------------------------------------------------------------- */

.fity-staff-member img {
	aspect-ratio: 1;
	border-radius: 999px;
	object-fit: cover;
}

/* --- Safety list -------------------------------------------------------- */

.fity-safety-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: var( --wp--preset--spacing--30 );
	margin: 0;
	padding: 0;
	list-style: none;
}

@media ( min-width: 48rem ) {
	.fity-safety-list {
		grid-template-columns: repeat( 2, 1fr );
		gap: var( --wp--preset--spacing--30 ) var( --wp--preset--spacing--40 );
	}
}

.fity-safety-list li {
	padding-left: 2rem;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: 0 0.25em;
	background-size: 1.25rem;
}

/* --- Catalogue / archive ------------------------------------------------ */

.fity-archive-header {
	border-bottom: 1px solid var( --wp--preset--color--line );
}

/* --- Camp detail page --------------------------------------------------- */

/*
 * The featured image and the details column are one composition: a fixed
 * ratio stops a tall or short photograph from throwing the price area out of
 * alignment.
 */
.single-product .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 18px;
	object-fit: cover;
}

.single-product .wp-block-post-featured-image {
	margin-bottom: 0;
}

/*
 * A camp without a photograph yet must not leave half the page blank. The
 * featured-image block renders nothing at all in that case, so the column it
 * sits in is dropped and the details fall back to the normal content width.
 */
/* :empty would not match - the block template leaves whitespace behind. */
.single-product .wp-block-columns > .wp-block-column:not( :has( * ) ) {
	display: none;
}

/* :has() cannot be nested, so the sibling combinator does the pairing. */
.single-product .wp-block-columns > .wp-block-column:not( :has( * ) ) + .wp-block-column {
	max-width: var( --wp--style--global--content-size );
	margin-inline: auto;
}

.single-product .wp-block-post-terms {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.single-product .wp-block-post-terms a {
	text-decoration: none;
}

.single-product .wp-block-post-title {
	margin-block: 0.25rem 1.25rem;
	text-wrap: balance;
}

/* Keep the sticky mobile CTA from covering page content. */
body.single-product {
	padding-bottom: 6rem;
}

@media ( min-width: 48rem ) {
	body.single-product {
		padding-bottom: 0;
	}
}

/* --- Dark surfaces ------------------------------------------------------ */

/*
 * theme.json repaints links forest-dark on hover, which is correct on the
 * light page but invisible on a forest-dark panel - the footer and the CTA
 * band - where it turns the link the exact colour of its own background.
 * On those surfaces the link keeps the inherited colour and signals hover
 * with an underline instead.
 *
 * Two classes plus :hover outrank the `:root :where(a...):hover` rule
 * theme.json generates, so no !important is needed.
 */
.has-forest-dark-background-color a:not( .wp-element-button ):not( .fity-button ),
.has-forest-background-color a:not( .wp-element-button ):not( .fity-button ) {
	color: inherit;
}

.has-forest-dark-background-color a:not( .wp-element-button ):not( .fity-button ):hover,
.has-forest-dark-background-color a:not( .wp-element-button ):not( .fity-button ):focus,
.has-forest-background-color a:not( .wp-element-button ):not( .fity-button ):hover,
.has-forest-background-color a:not( .wp-element-button ):not( .fity-button ):focus {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* The site title is a link too, and should not look like body copy. */
.has-forest-dark-background-color .wp-block-site-title a {
	text-decoration: none;
}

/* --- Motion preferences ------------------------------------------------- */

@media ( prefers-reduced-motion: reduce ) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
