/*
 * Rosie's Retrievers: components.
 *
 * Tokens (colours, fonts, sizes, spacing) are in theme.json; this file uses them through
 * the --wp--preset--* custom properties, plus a few of its own below. Mobile first.
 *
 * Colour rules (WCAG 2.2 AA, checked):
 * - Heart navy #3a405a on cream 9.5:1, on white 10.2:1, on sand 8.6:1.
 * - White on navy 10.2:1; pale gold #e6cf9f on navy 6.7:1; blush #e9afa3 on navy 5.4:1.
 * - Deep gold #7a5a26 (links) on cream 5.9:1, on sand 5.3:1; white on deep gold 6.3:1.
 * - Deep navy text on honey #d9bd86 7.2:1 (the button on navy).
 * - Retriever gold #b4935c is 2.7:1 on cream, so it is used for graphics only (hearts,
 *   paws, rules), never for text on light backgrounds.
 */

:root {
	--rr-navy: var(--wp--preset--color--navy, #3a405a);
	--rr-navy-deep: var(--wp--preset--color--navy-deep, #2b3046);
	--rr-gold: var(--wp--preset--color--gold, #b4935c);
	--rr-honey: var(--wp--preset--color--honey, #d9bd86);
	--rr-gold-light: var(--wp--preset--color--gold-light, #e6cf9f);
	--rr-gold-deep: var(--wp--preset--color--gold-deep, #7a5a26);
	--rr-blush: var(--wp--preset--color--blush, #e9afa3);
	--rr-blush-soft: var(--wp--preset--color--blush-soft, #fbece8);
	--rr-cream: var(--wp--preset--color--cream, #faf6ef);
	--rr-sand: var(--wp--preset--color--sand, #f3eadc);
	--rr-slate: var(--wp--preset--color--slate, #5a5e6e);
	--rr-radius: var(--wp--custom--radius, 20px);
	--rr-radius-small: var(--wp--custom--radius-small, 10px);
	--rr-header-height: 84px;
	--rr-serif: var(--wp--preset--font-family--fraunces);
	--rr-sans: var(--wp--preset--font-family--nunito);
	--rr-shadow: var(--wp--preset--shadow--card);

	/* Icons, drawn for this theme (not taken from the logo). */
	--rr-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2s-7.6-4.7-9.7-9.4C.8 8.4 2.9 4.4 6.7 4.4c2.1 0 3.6 1.2 4.4 2.6h1.8c.8-1.4 2.3-2.6 4.4-2.6 3.8 0 5.9 4 4.4 7.4-2.1 4.7-9.7 9.4-9.7 9.4z'/%3E%3C/svg%3E");
	--rr-paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5.5' cy='9.5' r='2.3'/%3E%3Ccircle cx='9.6' cy='5.2' r='2.3'/%3E%3Ccircle cx='14.4' cy='5.2' r='2.3'/%3E%3Ccircle cx='18.5' cy='9.5' r='2.3'/%3E%3Cpath d='M12 11c-3.1 0-6.2 3.6-6.2 6.4 0 1.9 1.5 2.9 3.1 2.9 1.3 0 2.1-.7 3.1-.7s1.8.7 3.1.7c1.6 0 3.1-1 3.1-2.9 0-2.8-3.1-6.4-6.2-6.4z'/%3E%3C/svg%3E");
	--rr-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2.5 11h2.7v9.5h5.3v-6h3v6h5.3V11h2.7z'/%3E%3C/svg%3E");
	--rr-match: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4a5 5 0 1 0 0 10A5 5 0 0 0 9 4zm6 6a5 5 0 1 0 0 10 5 5 0 0 0 0-10z' fill-rule='evenodd'/%3E%3C/svg%3E");
	--rr-vet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5zm-1.5 5h3v3.5H17v3h-3.5V17h-3v-3.5H7v-3h3.5z'/%3E%3C/svg%3E");
	--rr-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.2 16.6 4.8 12.2 3.4 13.6l5.8 5.8L20.6 8 19.2 6.6z'/%3E%3C/svg%3E");
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--rr-header-height) + 60px); /* Header and info bar. */
}

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

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

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

.has-navy-background-color :focus-visible,
.has-navy-deep-background-color :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.top-bar :focus-visible,
.is-style-card-navy :focus-visible,
.cta-panel :focus-visible {
	outline-color: var(--rr-honey);
}

img {
	max-width: 100%;
	height: auto;
}

/* Settings-driven text (announcement, licence line) is empty until it is set. */
p:empty {
	display: none;
}

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

.skip-link:focus,
.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 100000;
	padding: 12px 20px;
	background: #fff;
	color: var(--rr-navy);
}

/* ---------- Page frame ---------- */
.wp-site-blocks > * + *,
main.site-main > *,
main.site-main .landing-content > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

main.site-main .landing-content > * + * {
	margin-block-start: 0;
}

.section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.section-head {
	margin-bottom: var(--wp--preset--spacing--50);
}

.section-head h2,
.section-head p {
	margin-top: 0;
}

.section-head-row {
	margin-bottom: var(--wp--preset--spacing--40);
	gap: 12px 24px;
}

.section-head-row h2,
.section-head-row p {
	margin: 0;
}

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

/* On short screens (landscape phones, high zoom) the header scrolls away with the page. */
@media (max-height: 600px) {
	.wp-site-blocks > header.wp-block-template-part {
		position: static;
	}

	html {
		scroll-padding-top: 16px;
	}
}

.top-bar {
	background: var(--rr-navy-deep);
	color: #fff;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

.top-bar-inner {
	min-height: 38px;
	gap: 4px 24px;
}

.top-bar p {
	margin: 0;
}

.top-bar-links {
	gap: 4px 20px;
}

.top-bar a {
	color: var(--rr-gold-light);
	font-weight: 700;
	text-decoration: none;
}

.top-bar a:hover {
	text-decoration: underline;
}

.top-bar-location::before {
	content: "";
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-right: 8px;
	background: var(--rr-blush);
	-webkit-mask: var(--rr-heart) center / contain no-repeat;
	mask: var(--rr-heart) center / contain no-repeat;
	vertical-align: -0.1em;
}

@media (max-width: 719px) {
	.top-bar-location,
	.top-bar-email {
		display: none;
	}

	.top-bar-inner {
		justify-content: center !important;
	}
}

.site-header {
	position: relative;
	background: var(--rr-navy);
	color: #fff;
	box-shadow: 0 8px 24px rgba(43, 48, 70, 0.18);
}

.header-inner {
	min-height: var(--rr-header-height);
	gap: 16px;
}

.site-header .wp-block-site-logo {
	flex-shrink: 1;
	min-width: 0;
	line-height: 0;
}

.site-header .wp-block-site-logo img {
	display: block;
	width: 250px;
	max-width: 100%;
	height: auto;
}

@media (max-width: 480px) {
	.site-header .wp-block-site-logo img {
		width: 190px;
	}
}

.header-actions {
	gap: 12px;
}

.site-header .header-cta {
	display: none;
}

@media (min-width: 1180px) {
	.site-header .header-cta {
		display: flex;
	}
}

.button-small .wp-block-button__link {
	min-height: 44px;
	padding: 9px 20px;
	font-size: 1rem;
	white-space: nowrap;
}

/* Main navigation (on navy) */
.wp-block-navigation.main-nav .wp-block-navigation__container {
	gap: 2px;
}

.wp-block-navigation.main-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	white-space: nowrap;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
}

.wp-block-navigation.main-nav .wp-block-navigation-item__content:hover,
.wp-block-navigation.main-nav .current-menu-item > .wp-block-navigation-item__content {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.wp-block-navigation.main-nav .current-menu-item > .wp-block-navigation-item__content {
	box-shadow: inset 0 -3px 0 var(--rr-honey);
}

/* Menu button */
.wp-block-navigation.main-nav .wp-block-navigation__responsive-container-open {
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--rr-honey);
	border-radius: 999px;
	background: var(--rr-honey);
	color: var(--rr-navy-deep);
	font-family: var(--rr-sans);
	font-size: 1rem;
	font-weight: 800;
}

.wp-block-navigation.main-nav .wp-block-navigation__responsive-container-open::after {
	content: "Menu";
}

.wp-block-navigation.main-nav .wp-block-navigation__responsive-container-open svg {
	width: 20px;
	height: 20px;
}

/* The menu collapses to the button below 1080px (core collapses at 600px). */
@media (min-width: 600px) and (max-width: 1079px) {
	.wp-block-navigation.main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.wp-block-navigation.main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Open mobile menu (navy overlay) */
.wp-block-navigation.main-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
	background: var(--rr-navy) !important;
	color: #fff !important;
}

.wp-block-navigation.main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding-top: 64px;
	gap: 8px;
}

.wp-block-navigation.main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 8px;
}

.wp-block-navigation.main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}

.wp-block-navigation.main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: flex;
	width: 100%;
	min-height: 52px;
	padding: 0 20px;
	border-radius: var(--rr-radius-small);
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	font-family: var(--rr-serif);
	font-size: 1.375rem;
	font-weight: 600;
}

.wp-block-navigation.main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	background: rgba(255, 255, 255, 0.13);
}

.wp-block-navigation.main-nav .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	box-shadow: inset 4px 0 0 var(--rr-honey);
}

.wp-block-navigation.main-nav .wp-block-navigation__responsive-container-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--rr-honey);
	color: var(--rr-navy-deep);
}

/* Items given the class "nav-mobile-only" show only in the mobile menu. */
.wp-block-navigation.main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .nav-mobile-only {
	display: none;
}

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--rr-navy);
	background: transparent;
	color: var(--rr-navy);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
	border-color: var(--rr-navy);
	background: var(--rr-navy);
	color: #fff;
}

.has-navy-background-color .wp-block-button.is-style-outline .wp-block-button__link,
.cta-panel .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: #fff;
	color: #fff;
}

.has-navy-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover,
.cta-panel .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #fff;
	color: var(--rr-navy);
}

.wp-block-button.is-style-honey .wp-block-button__link {
	border-color: var(--rr-honey);
	background: var(--rr-honey);
	color: var(--rr-navy-deep);
}

.wp-block-button.is-style-honey .wp-block-button__link:hover,
.wp-block-button.is-style-honey .wp-block-button__link:focus {
	border-color: var(--rr-gold-light);
	background: var(--rr-gold-light);
	color: var(--rr-navy-deep);
}

.wp-block-button.is-style-gold .wp-block-button__link {
	border-color: var(--rr-gold-deep);
	background: var(--rr-gold-deep);
	color: #fff;
}

.wp-block-button.is-style-gold .wp-block-button__link:hover,
.wp-block-button.is-style-gold .wp-block-button__link:focus {
	border-color: var(--rr-navy);
	background: var(--rr-navy);
	color: #fff;
}

/* ---------- Text styles ---------- */
.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	color: var(--rr-gold-deep);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.is-style-eyebrow.has-text-align-center {
	justify-content: center;
}

.is-style-eyebrow::before {
	content: "";
	flex: 0 0 14px;
	height: 14px;
	background: var(--rr-blush);
	-webkit-mask: var(--rr-heart) center / contain no-repeat;
	mask: var(--rr-heart) center / contain no-repeat;
}

.has-navy-background-color .is-style-eyebrow,
.cta-panel .is-style-eyebrow,
.is-style-card-navy .is-style-eyebrow {
	color: var(--rr-gold-light);
}

.is-style-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
}

.wp-block-heading.is-style-hearts {
	position: relative;
	padding-top: 30px;
}

.wp-block-heading.is-style-hearts::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 54px;
	height: 22px;
	/* Blush, navy and blush hearts, like those in the logo. */
	background: linear-gradient(90deg, var(--rr-blush) 0 18px, var(--rr-navy) 18px 34px, var(--rr-blush) 34px);
	-webkit-mask-image: var(--rr-heart), var(--rr-heart), var(--rr-heart);
	-webkit-mask-size: 16px 16px, 12px 12px, 14px 14px;
	-webkit-mask-position: 0 6px, 20px 0, 38px 8px;
	-webkit-mask-repeat: no-repeat;
	mask-image: var(--rr-heart), var(--rr-heart), var(--rr-heart);
	mask-size: 16px 16px, 12px 12px, 14px 14px;
	mask-position: 0 6px, 20px 0, 38px 8px;
	mask-repeat: no-repeat;
}

.wp-block-heading.is-style-hearts.has-text-align-center::before {
	left: 50%;
	transform: translateX(-50%);
}

.text-link a {
	font-weight: 800;
	text-decoration: none;
}

.text-link a::after {
	content: " \2192";
}

.text-link a:hover {
	text-decoration: underline;
}

/* Lists */
.is-style-paws {
	padding-left: 0;
	list-style: none;
}

.is-style-paws li {
	position: relative;
	padding-left: 38px;
	margin-bottom: 12px;
}

.is-style-paws li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 24px;
	height: 24px;
	background: var(--rr-gold);
	-webkit-mask: var(--rr-paw) center / contain no-repeat;
	mask: var(--rr-paw) center / contain no-repeat;
}

.is-style-links {
	padding-left: 0;
	list-style: none;
}

.is-style-links li {
	padding: 10px 0;
	border-bottom: 1px solid rgba(58, 64, 90, 0.14);
}

.is-style-links li a {
	font-weight: 700;
}

/* ---------- Cards and panels ---------- */
.is-style-card {
	padding: clamp(22px, 3vw, 32px);
	border-radius: var(--rr-radius);
	background: #fff;
	box-shadow: var(--rr-shadow);
}

.is-style-card > :first-child {
	margin-top: 0;
}

.is-style-card > :last-child {
	margin-bottom: 0;
}

.is-style-card-navy {
	padding: clamp(22px, 3vw, 32px);
	border-radius: var(--rr-radius);
	background: var(--rr-navy);
	color: #fff;
}

.is-style-card-navy :where(h1, h2, h3, h4) {
	color: #fff;
}

.is-style-card-navy a:where(:not(.wp-element-button)) {
	color: var(--rr-gold-light);
}

.is-style-notice {
	padding: 24px 28px;
	border: 2px dashed rgba(122, 90, 38, 0.35);
	border-radius: var(--rr-radius);
	background: var(--rr-blush-soft);
}

.is-style-notice > :first-child {
	margin-top: 0;
}

.is-style-notice > :last-child {
	margin-bottom: 0;
}

/* Photos */
.wp-block-image.is-style-photo img,
.wp-block-post-featured-image.is-style-photo img {
	border-radius: var(--rr-radius);
	box-shadow: var(--rr-shadow);
}

.wp-block-image.is-style-photo {
	margin-top: 0;
}

.wp-block-image.is-style-arched img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 999px 999px var(--rr-radius) var(--rr-radius);
	box-shadow: var(--wp--preset--shadow--lift);
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(40px, 6vw, 88px);
	padding-bottom: clamp(48px, 7vw, 104px);
	background:
		radial-gradient(circle at 88% 12%, rgba(233, 175, 163, 0.35), transparent 42%),
		radial-gradient(circle at 6% 92%, rgba(180, 147, 92, 0.18), transparent 38%),
		var(--rr-sand);
}

.hero-columns {
	gap: clamp(32px, 5vw, 72px);
}

.hero-title {
	margin-top: 8px;
	font-size: var(--wp--preset--font-size--huge);
	line-height: 1.05;
}

.hero-title em {
	color: var(--rr-gold-deep);
	font-style: italic;
	font-weight: 500;
}

.hero-buttons {
	margin-top: 28px;
	gap: 12px;
}

.hero-announcement {
	display: inline-block;
	margin-top: 24px;
	padding: 10px 18px;
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--rr-shadow);
	font-weight: 700;
}

.hero-media {
	position: relative;
}

.hero-photo {
	position: relative;
	max-width: 460px;
	margin: 0 auto;
}

/* The logo's hearts, floating by the photo. */
.hero-media::before,
.hero-media::after {
	content: "";
	position: absolute;
	z-index: 1;
	background: var(--rr-blush);
	-webkit-mask: var(--rr-heart) center / contain no-repeat;
	mask: var(--rr-heart) center / contain no-repeat;
	pointer-events: none;
}

.hero-media::before {
	top: -6px;
	left: 4%;
	width: 54px;
	height: 54px;
}

.hero-media::after {
	right: 2%;
	bottom: 12%;
	width: 36px;
	height: 36px;
	background: var(--rr-navy);
}

@media (max-width: 781px) {
	.hero-media {
		order: -1;
	}

	.hero-photo {
		max-width: 260px;
	}
}

/* ---------- Trust badges (Rosie's Retrievers Site Setup plugin) ---------- */
.badges-band {
	position: relative;
	z-index: 2;
	margin-top: -36px !important;
}

.badges-band:not(:has(.rr-badges)) {
	display: none;
}

.rr-badges {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 12px;
	margin: 0;
	padding: 16px;
	list-style: none;
	border-radius: var(--rr-radius);
	background: #fff;
	box-shadow: var(--rr-shadow);
}

.rr-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	line-height: 1.35;
}

.rr-badge-icon {
	position: relative;
	flex: 0 0 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--rr-blush-soft);
}

.rr-badge-icon::after {
	content: "";
	position: absolute;
	inset: 11px;
	background: var(--rr-gold-deep);
	-webkit-mask: var(--rr-heart) center / contain no-repeat;
	mask: var(--rr-heart) center / contain no-repeat;
}

.rr-badge-home .rr-badge-icon::after {
	-webkit-mask-image: var(--rr-home);
	mask-image: var(--rr-home);
}

.rr-badge-vet .rr-badge-icon::after,
.rr-badge-licence .rr-badge-icon::after,
.rr-badge-assured .rr-badge-icon::after {
	-webkit-mask-image: var(--rr-vet);
	mask-image: var(--rr-vet);
}

.rr-badge-registered .rr-badge-icon::after {
	-webkit-mask-image: var(--rr-check);
	mask-image: var(--rr-check);
}

.rr-badge strong {
	display: block;
	font-weight: 800;
}

.rr-badge span {
	display: block;
	color: var(--rr-slate);
	font-size: var(--wp--preset--font-size--x-small);
}

.rr-badge a {
	color: inherit;
}

/* ---------- Welcome ---------- */
.welcome-columns {
	gap: clamp(32px, 5vw, 72px);
}

/* ---------- Promises ---------- */
.promise-grid.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 20px;
}

.promise {
	position: relative;
	padding-top: 88px !important;
}

.promise::before {
	content: "";
	position: absolute;
	top: 28px;
	left: clamp(22px, 3vw, 32px);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--rr-blush-soft);
}

.promise::after {
	content: "";
	position: absolute;
	top: 38px;
	left: calc(clamp(22px, 3vw, 32px) + 10px);
	width: 24px;
	height: 24px;
	background: var(--rr-gold-deep);
	-webkit-mask: var(--rr-heart) center / contain no-repeat;
	mask: var(--rr-heart) center / contain no-repeat;
}

.promise-home::after {
	-webkit-mask-image: var(--rr-home);
	mask-image: var(--rr-home);
}

.promise-match::after {
	-webkit-mask-image: var(--rr-match);
	mask-image: var(--rr-match);
}

.promise-vet::after {
	-webkit-mask-image: var(--rr-vet);
	mask-image: var(--rr-vet);
}

.promise h3 {
	font-size: var(--wp--preset--font-size--large);
}

/* ---------- Litters ---------- */
.litter-grid.is-layout-grid,
.post-grid.is-layout-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 24px;
}

.litter-card,
.post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: var(--rr-radius);
	background: #fff;
	box-shadow: var(--rr-shadow);
}

.litter-card .wp-block-post-featured-image,
.post-card .wp-block-post-featured-image {
	margin: 0;
}

.litter-card .wp-block-post-featured-image img,
.post-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
}

.litter-card-body,
.post-card-body {
	flex: 1;
	padding: 20px 24px 24px;
}

.litter-card-body > *,
.post-card-body > * {
	margin-top: 0;
	margin-bottom: 10px;
}

.litter-card-title,
.post-card-title {
	font-size: var(--wp--preset--font-size--large);
}

.litter-card-title a,
.post-card-title a {
	color: var(--rr-navy);
	text-decoration: none;
}

.litter-card-title a:hover,
.post-card-title a:hover {
	text-decoration: underline;
}

.litter-empty {
	max-width: 760px;
}

.litter-layout {
	gap: clamp(24px, 4vw, 56px);
}

.litter-facts-title {
	font-size: var(--wp--preset--font-size--x-large);
}

@media (min-width: 782px) {
	.litter-aside .litter-facts {
		position: sticky;
		top: calc(var(--rr-header-height) + 60px);
	}
}

/* Litter details (block from the setup plugin) */
.rr-litter-details {
	margin: 0 0 20px;
}

.rr-litter-details dl {
	display: grid;
	grid-template-columns: minmax(110px, auto) 1fr;
	gap: 10px 16px;
	margin: 16px 0 0;
}

.rr-litter-details dt {
	color: var(--rr-slate);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding-top: 3px;
}

.rr-litter-details dd {
	margin: 0;
	font-weight: 600;
}

.rr-litter-details.is-compact {
	margin: 0 0 8px;
}

.rr-litter-details.is-compact p {
	margin: 6px 0 0;
	color: var(--rr-slate);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}

.rr-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--rr-sand);
	color: var(--rr-navy);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.02em;
}

.rr-status-available {
	background: #e3f1e6;
	color: #1f5a2e;
}

.rr-status-reserved {
	background: var(--rr-blush-soft);
	color: #8a3326;
}

.rr-status-born,
.rr-status-expected {
	background: #fdf1d8;
	color: #6b4a12;
}

.rr-status-homed {
	background: #e9ebf2;
	color: var(--rr-navy);
}

.rr-licence {
	margin: 16px 0 0;
	color: var(--rr-slate);
	font-size: var(--wp--preset--font-size--x-small);
}

/* ---------- Photo strip ---------- */
.strip-grid.is-layout-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.strip-grid .wp-block-image {
	margin: 0;
}

.strip-grid .wp-block-image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

@media (max-width: 599px) {
	.strip-grid.is-layout-grid {
		grid-template-columns: 1fr 1fr;
	}

	.strip-grid .wp-block-image:last-child {
		display: none;
	}
}

.photo-note {
	margin-top: 20px;
	color: var(--rr-slate);
	font-size: var(--wp--preset--font-size--x-small);
}

/* ---------- Calls to action ---------- */
.cta-panel {
	position: relative;
	overflow: hidden;
	padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
	border-radius: calc(var(--rr-radius) * 1.5);
}

.cta-panel::before,
.cta-panel::after {
	content: "";
	position: absolute;
	background: var(--rr-blush);
	opacity: 0.9;
	-webkit-mask: var(--rr-heart) center / contain no-repeat;
	mask: var(--rr-heart) center / contain no-repeat;
	pointer-events: none;
}

.cta-panel::before {
	top: 28px;
	left: 6%;
	width: 42px;
	height: 42px;
}

.cta-panel::after {
	right: 7%;
	bottom: 26px;
	width: 30px;
	height: 30px;
	background: var(--rr-gold);
}

.cta-panel p:not(.is-style-eyebrow) {
	color: #fff;
}

.cta-band {
	padding-top: 0;
}

.comes-home + .cta-band,
.section:not([class*="-background-color"]) + .cta-band {
	padding-top: 0;
}

/* ---------- Page heading banner ---------- */
.page-head {
	position: relative;
	overflow: hidden;
	padding-top: clamp(40px, 6vw, 80px);
	padding-bottom: clamp(32px, 5vw, 64px);
	background:
		radial-gradient(circle at 92% 20%, rgba(233, 175, 163, 0.35), transparent 38%),
		var(--rr-sand);
}

.page-head .wp-block-post-title,
.page-head .wp-block-query-title,
.page-head h1 {
	margin: 0;
}

.page-head .post-meta {
	margin: 0 0 8px;
	color: var(--rr-gold-deep);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.page-body > .wp-block-post-featured-image {
	margin-bottom: var(--wp--preset--spacing--50);
}

.back-link {
	margin-top: var(--wp--preset--spacing--50);
}

/* Content written in the editor */
.prose > * + * {
	margin-block-start: 1.1em;
}

.prose h2 {
	margin-top: 1.6em;
	font-size: var(--wp--preset--font-size--x-large);
}

.prose h3 {
	margin-top: 1.4em;
	font-size: var(--wp--preset--font-size--large);
}

.prose > .alignfull {
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--60);
}

/* ---------- Gallery ---------- */
.wp-block-gallery.is-style-masonry {
	display: block !important;
	column-count: 1;
	column-gap: 16px;
}

@media (min-width: 600px) {
	.wp-block-gallery.is-style-masonry {
		column-count: 2;
	}
}

@media (min-width: 1000px) {
	.wp-block-gallery.is-style-masonry {
		column-count: 3;
	}
}

.wp-block-gallery.is-style-masonry .wp-block-image {
	display: block;
	width: 100% !important;
	margin: 0 0 16px !important;
	break-inside: avoid;
}

.wp-block-gallery.is-style-masonry .wp-block-image img {
	display: block;
	width: 100%;
	height: auto !important;
	border-radius: var(--rr-radius-small);
	object-fit: cover;
}

/* ---------- Accordion (details) ---------- */
.wp-block-details.is-style-accordion {
	margin: 0 0 12px;
	padding: 0;
	border-radius: var(--rr-radius-small);
	background: #fff;
	box-shadow: var(--rr-shadow);
}

.wp-block-details.is-style-accordion summary {
	position: relative;
	padding: 18px 56px 18px 22px;
	font-family: var(--rr-serif);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.wp-block-details.is-style-accordion summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-accordion summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--rr-gold-deep);
	font-family: var(--rr-sans);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
}

.wp-block-details.is-style-accordion[open] summary::after {
	content: "\2212";
}

.wp-block-details.is-style-accordion > :not(summary) {
	margin: 0;
	padding: 0 22px 20px;
}

/* ---------- Two columns of contact details ---------- */
.contact-list {
	padding-left: 0;
	list-style: none;
}

.contact-list li {
	margin-bottom: 12px;
}

.contact-list strong {
	display: block;
	color: var(--rr-slate);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ---------- Search and pagination ---------- */
.wp-block-search__inside-wrapper {
	gap: 8px;
}

.wp-block-search__input {
	min-height: 48px;
	padding: 10px 16px;
	border: 2px solid rgba(58, 64, 90, 0.35);
	border-radius: 999px;
	background: #fff;
	color: var(--rr-navy);
	font: inherit;
}

.wp-block-search__button {
	min-height: 48px;
	margin-left: 0;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--rr-navy);
	color: #fff;
	font-weight: 800;
}

.wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--50);
	font-weight: 700;
}

.post-nav {
	gap: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: 32px;
	background: var(--rr-navy-deep);
	color: #fff;
	font-size: var(--wp--preset--font-size--small);
}

.site-footer a {
	color: var(--rr-gold-light);
}

.site-footer a:hover {
	color: #fff;
}

.footer-grid {
	display: grid;
	gap: 36px;
}

@media (min-width: 782px) {
	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

.footer-grid > * {
	margin: 0 !important;
}

.footer-brand .wp-block-site-logo img {
	width: 240px;
	height: auto;
}

.footer-brand p {
	max-width: 380px;
	color: rgba(255, 255, 255, 0.86);
}

.footer-heading {
	margin: 0 0 14px;
	color: #fff;
	font-size: var(--wp--preset--font-size--large);
}

.footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links li {
	margin: 0 0 8px;
}

.footer-links a,
.footer-contact a {
	text-decoration: none;
	font-weight: 700;
}

.footer-links a:hover,
.footer-contact a:hover {
	text-decoration: underline;
}

.footer-column p {
	margin: 0 0 8px;
}

.footer-bottom {
	margin-top: var(--wp--preset--spacing--50) !important;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.86);
	font-size: var(--wp--preset--font-size--x-small);
}

.footer-bottom p {
	margin: 0;
}

.footer-licence {
	margin-bottom: 10px !important;
}

.footer-bottom-row {
	gap: 8px 24px;
}

/* ---------- Editor ---------- */
.editor-styles-wrapper .badges-band {
	margin-top: 0 !important;
}
