/*
 * Dales & Shires -- "Heritage" design.
 * Colours, fonts and sizes live in theme.json; this file is only for what
 * theme.json can't express (sticky header, cards, framed photos, bands).
 */

/* Sticky header: the whole header template part stays at the top. */
.ds-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .ds-site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}
/* Header bar: its contents line up with the page content (1180px wide,
   centred), and it gets slimmer once the page is scrolled (header.js adds
   .is-scrolled). Laptops and up: logo left, menu words and phone button
   right. Phones and tablets (up to 1024px, so iPhones in landscape and
   iPads too): call symbol left, larger logo centred, menu button right,
   opening a full-width drop-down like the old site's. */
.ds-mainbar {
	--ds-content-edge: max(var(--wp--style--root--padding-left, 1.5rem), calc((100% - 1180px) / 2));
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.85rem var(--ds-content-edge);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	border-bottom: 4px solid var(--wp--preset--color--olive);
	transition: padding 0.25s ease;
}
.is-scrolled .ds-mainbar {
	padding-top: 0.45rem;
	padding-bottom: 0.45rem;
}
.ds-logo {
	display: block;
	flex: none;
	line-height: 0;
}
.ds-logo img {
	display: block;
	width: 250px;
	height: auto;
	transition: width 0.25s ease;
}
.is-scrolled .ds-logo img {
	width: 170px;
}
.ds-mainbar__right {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}
.ds-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ds-nav a {
	color: var(--wp--preset--color--white);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}
.ds-nav a:hover,
.ds-nav a:focus-visible {
	color: var(--wp--preset--color--sage);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}
.ds-header-call,
.ds-menu-toggle {
	display: none;
}
@media (prefers-reduced-motion: reduce) {
	.ds-mainbar,
	.ds-logo img,
	.ds-nav,
	.ds-menu-toggle span,
	.ds-menu-toggle span::before,
	.ds-menu-toggle span::after {
		transition: none !important;
	}
}

/* Phone number in the header: a small outlined "button". */
.ds-header-phone {
	margin: 0;
	white-space: nowrap;
}
.ds-header-phone a,
.ds-header-call {
	--ds-phone-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}
.ds-header-phone a {
	display: inline-block;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--wp--preset--color--olive-light);
	border-radius: 2px;
	color: var(--wp--preset--color--white);
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.02em;
}
.ds-header-phone a::before,
.ds-header-call::before {
	content: "";
	display: inline-block;
	width: 0.95em;
	height: 0.95em;
	margin-right: 0.45em;
	vertical-align: -0.1em;
	background: currentColor;
	-webkit-mask: var(--ds-phone-icon) center / contain no-repeat;
	mask: var(--ds-phone-icon) center / contain no-repeat;
}
.ds-header-phone a:hover {
	background: var(--wp--preset--color--olive);
	border-color: var(--wp--preset--color--olive);
}

@media (max-width: 1024px) {
	.ds-mainbar {
		display: grid;
		grid-template-columns: 2.75rem 1fr 2.75rem;
		gap: 0.5rem;
	}
	.ds-logo {
		justify-self: center;
	}
	.ds-logo img {
		width: 225px;
	}
	.is-scrolled .ds-logo img {
		width: 170px;
	}
	.ds-header-phone {
		display: none;
	}
	/* The call symbol and the menu button: plain, fine-lined symbols either
	   side, level with the bottom of the logo (the tap area stays large). */
	.ds-mainbar {
		align-items: end;
		padding-bottom: 1.15rem; /* A little more below the logo than above (Dave). */
	}
	.is-scrolled .ds-mainbar {
		padding-bottom: 0.6rem;
	}
	.ds-header-call,
	.ds-menu-toggle {
		display: flex;
		align-items: flex-end;
		justify-content: center;
		width: 2.75rem;
		height: 2.75rem;
		padding: 0 0 0.1rem;
		border: 0;
		background: none;
		color: var(--wp--preset--color--white);
		cursor: pointer;
	}
	.ds-header-call {
		--ds-phone-icon: 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
	}
	/* Symbols start a little larger and shrink with the logo on scroll. */
	.ds-header-call::before {
		width: 1.35rem;
		height: 1.35rem;
		margin: 0;
		transition: width 0.25s ease, height 0.25s ease;
	}
	.is-scrolled .ds-header-call::before {
		width: 1.1rem;
		height: 1.1rem;
	}
	.ds-header-call:hover,
	.ds-menu-toggle:hover {
		color: var(--wp--preset--color--sage);
	}
	.ds-mainbar__right {
		justify-self: end;
	}
	/* Three bars that turn into a cross while the menu is open. */
	.ds-menu-toggle span,
	.ds-menu-toggle span::before,
	.ds-menu-toggle span::after {
		display: block;
		width: 1.4rem;
		height: 1.5px;
		background: currentColor;
		transition: transform 0.25s ease, background-color 0.25s ease, width 0.25s ease;
	}
	.is-scrolled .ds-menu-toggle span,
	.is-scrolled .ds-menu-toggle span::before,
	.is-scrolled .ds-menu-toggle span::after {
		width: 1.15rem;
	}
	.ds-menu-toggle span {
		position: relative;
		margin-bottom: 5px; /* So the bottom bar, not the middle, meets the logo's line. */
	}
	.ds-menu-toggle span::before,
	.ds-menu-toggle span::after {
		content: "";
		position: absolute;
		left: 0;
	}
	.ds-menu-toggle span::before {
		top: -5px;
	}
	.ds-menu-toggle span::after {
		top: 5px;
	}
	.ds-menu-toggle[aria-expanded="true"] span {
		background-color: transparent;
	}
	.ds-menu-toggle[aria-expanded="true"] span::before {
		transform: translateY(5px) rotate(45deg);
	}
	.ds-menu-toggle[aria-expanded="true"] span::after {
		transform: translateY(-5px) rotate(-45deg);
	}
	/* The drop-down: full width, just under the bar, items centred. Hidden
	   only when JavaScript is running (without it, the links stay visible
	   under the bar). */
	.ds-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin-top: 4px; /* Below the olive line. */
		background: var(--wp--preset--color--ink);
		border-bottom: 4px solid var(--wp--preset--color--olive);
		box-shadow: 0 12px 24px rgb(0 0 0 / 0.25);
	}
	.ds-js .ds-nav {
		visibility: hidden;
		opacity: 0;
		transform: translateY(-0.5rem);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	}
	.ds-js .ds-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.2s ease;
	}
	/* Light and calm: the serif heading font, normal weight, sentence
	   case, with short fine rules between the items. */
	.ds-nav ul {
		flex-direction: column;
		align-items: center;
		gap: 0;
		padding: 0.75rem 0 1rem;
		text-align: center;
	}
	.ds-nav li {
		width: min(16rem, 80%);
	}
	.ds-nav li + li {
		border-top: 1px solid rgb(255 255 255 / 0.1);
	}
	.ds-nav a {
		display: block;
		padding: 0.8rem 1rem;
		font-family: var(--wp--preset--font-family--serif);
		font-size: 1.0625rem;
		font-weight: 400;
		letter-spacing: 0.01em;
		text-transform: none;
	}
	.ds-nav a:hover,
	.ds-nav a:focus-visible {
		color: var(--wp--preset--color--sage);
		text-decoration: underline;
		text-decoration-color: var(--wp--preset--color--olive-light);
		text-underline-offset: 0.35em;
	}
}
@media (max-width: 781px) {
	.ds-logo img {
		width: 189px;
	}
	.is-scrolled .ds-logo img {
		width: 125px;
	}
}
@media (max-width: 380px) {
	.ds-logo img {
		width: 162px;
	}
}

/* Small uppercase label above a heading. */
.ds-eyebrow {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--olive);
}

/* Italic serif sub-heading under the page title. */
.ds-subtitle.wp-block-heading {
	font-style: italic;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
}

/* Photo in a white mount with a thin stone border. */
.ds-framed {
	margin: 0;
	padding: 12px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--stone);
}
.ds-framed img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* White card with an olive top edge. */
.ds-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--stone);
	border-top: 4px solid var(--wp--preset--color--olive);
	padding: clamp(1.25rem, 3vw, 2rem);
}

/* Service cards: photo on top, text below. */
.ds-service-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--stone);
	gap: 0 !important;
}
.ds-service-card > .wp-block-image {
	margin: 0;
}
.ds-service-card > .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.ds-service-card__body {
	padding: 1.5rem;
}

/* Big serif figures in the olive band. */
.ds-stat {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.2;
}




/* Homepage: recent sales grid. */
.ds-sales-grid .wp-block-image {
	margin: 0;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--stone);
}
.ds-sales-grid .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.ds-sales-grid .wp-element-caption {
	margin: 0;
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
	text-align: left;
	color: var(--wp--preset--color--body);
}


/* Keep in-page jumps (e.g. #enquiry) clear of the sticky header. */
:target {
	scroll-margin-top: 9rem;
}

/* Key-points band: three separate panels, each with a subtle olive
   gradient, on a slightly darker olive ground. */
.ds-band {
	background-color: #43531f !important;
}
.ds-band .wp-block-columns {
	gap: 1rem;
}
.ds-band .wp-block-column {
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	background: linear-gradient(135deg, #5d7132 0%, #4f6128 100%);
	border-radius: 3px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ds-band .wp-block-column > * {
	margin-block: 0.25rem 0;
}
.ds-band .wp-block-column > :first-child {
	margin-top: 0;
}

/* Homepage: property types as a scattered "cloud" of tags -- varied
   sizes and styles, centred, so the set looks deliberate, not ragged. */
.ds-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.6rem 0.5rem;
	padding: 0.5rem 0;
}
.ds-tags span {
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	line-height: 1.3;
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--ink);
	font-size: 0.9375rem;
}
.ds-tags span:nth-child(3n + 1) {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.125rem;
	background: var(--wp--preset--color--olive);
	color: var(--wp--preset--color--white);
}
.ds-tags span:nth-child(3n + 2) {
	background: transparent;
	border: 1px solid var(--wp--preset--color--olive);
	color: var(--wp--preset--color--olive);
	font-weight: 600;
}
.ds-tags span:nth-child(4n) {
	transform: translateY(-0.35rem);
}
.ds-tags span:nth-child(5n) {
	transform: translateY(0.35rem);
}

/* Testimonials: side-by-side cards, modest serif italic. */
.ds-testimonials .wp-block-quote {
	margin: 0;
	height: 100%;
	box-sizing: border-box;
	padding: 1.75rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--stone);
	border-top: 4px solid var(--wp--preset--color--olive);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}
.ds-testimonials .wp-block-quote p {
	margin: 0;
}
.ds-testimonials .wp-block-quote cite {
	display: block;
	margin-top: 1rem;
	font-family: var(--wp--preset--font-family--sans);
	font-style: normal;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--olive);
}

/* Portal and membership logos: small and quiet. */
.ds-affiliations {
	padding: 1.25rem 0;
	border-top: 1px solid var(--wp--preset--color--stone);
	border-bottom: 1px solid var(--wp--preset--color--stone);
}
.ds-logo-row {
	gap: 1.75rem !important;
	align-items: center;
}
@media (min-width: 782px) {
	.ds-affiliations .ds-logo-row {
		gap: 3rem !important;
	}
}
/* Phones: one logo per line. */
@media (max-width: 781px) {
	.ds-affiliations .ds-logo-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem !important;
	}
}
.ds-logo-row .wp-block-image {
	margin: 0;
}
.ds-logo-row .wp-block-image img {
	height: 30px;
	width: auto;
	display: block;
}

/* Call-to-action line under the recent sales. */
.ds-cta-line {
	margin-top: var(--wp--preset--spacing--50) !important;
	font-family: var(--wp--preset--font-family--serif);
}


/* Property-type tags "bulge" one after another, on a loop. Uses the
   separate `scale` property so it combines with the tags' up/down offsets.
   Off for visitors who ask their device to reduce motion. */
@keyframes ds-bulge {
	0%, 6%, 100% { scale: 1; }
	3% { scale: 1.14; }
}
.ds-tags span {
	animation: ds-bulge 11.90s ease-in-out infinite;
}
.ds-tags span:nth-child(1) { animation-delay: 7.65s; }
.ds-tags span:nth-child(2) { animation-delay: 9.35s; }
.ds-tags span:nth-child(3) { animation-delay: 1.70s; }
.ds-tags span:nth-child(4) { animation-delay: 6.80s; }
.ds-tags span:nth-child(5) { animation-delay: 8.50s; }
.ds-tags span:nth-child(6) { animation-delay: 0.00s; }
.ds-tags span:nth-child(7) { animation-delay: 0.85s; }
.ds-tags span:nth-child(8) { animation-delay: 5.95s; }
.ds-tags span:nth-child(9) { animation-delay: 5.10s; }
.ds-tags span:nth-child(10) { animation-delay: 10.20s; }
.ds-tags span:nth-child(11) { animation-delay: 11.05s; }
.ds-tags span:nth-child(12) { animation-delay: 3.40s; }
.ds-tags span:nth-child(13) { animation-delay: 2.55s; }
.ds-tags span:nth-child(14) { animation-delay: 4.25s; }
@media (prefers-reduced-motion: reduce) {
	.ds-tags span { animation: none; }
}

/* Homepage hero: a larger heading, now it stands alone. */
.ds-hero-title.wp-block-heading {
	font-size: clamp(1.75rem, 2.8vw, 2.25rem);
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 0;
}
.ds-hero-sub {
	margin-top: 0.5rem !important;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	line-height: 1.35;
	color: var(--wp--preset--color--body);
}

/* "What makes us different" tiles. */
.ds-diff-grid {
	gap: 1.25rem !important;
	margin-top: var(--wp--preset--spacing--40) !important;
}
.ds-diff-tile {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: 3px;
	padding: 1.5rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ds-diff-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(30, 30, 30, 0.08);
}
.ds-diff-tile > * {
	margin-block: 0.6rem 0;
}
.ds-diff-tile > :first-child {
	margin-top: 0;
}
.ds-diff-tile h3 {
	font-size: 1.125rem;
}
.ds-diff-tile p {
	font-size: 0.975rem;
	line-height: 1.55;
}
.ds-diff-icon {
	margin: 0;
}

/* Faint sage boxes (Where We Cover / Our Service / Price Ranges). */
.ds-soft-box {
	background: var(--wp--preset--color--sage);
	border-radius: 3px;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.ds-soft-box > :first-child {
	margin-top: 0;
}

/* Stand-in for the coverage map. */
/* Coverage map (assets/images/coverage-map.svg, inlined): counties of
   northern England shaded by how central they are to D&S's coverage. */
.ds-map {
	--ds-map-halo: var(--wp--preset--color--white);
	margin: 0;
}

.ds-coverage-map {
	display: block;
	width: 100%;
	max-width: 440px;
	height: auto;
	margin-inline: auto;
}

.ds-map-land { fill: #ebe7dc; stroke: var(--wp--preset--color--white); stroke-width: 0.6; }
.ds-map-core { fill: var(--wp--preset--color--olive); stroke: var(--wp--preset--color--white); stroke-width: 1.2; stroke-linejoin: round; }
.ds-map-cumbria { fill: #66783e; stroke: var(--wp--preset--color--white); stroke-width: 1.2; stroke-linejoin: round; }
.ds-map-near { fill: #7d8f55; stroke: var(--wp--preset--color--white); stroke-width: 1.2; stroke-linejoin: round; }

.ds-map-county {
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: 12px;
	font-weight: 700;
	fill: var(--wp--preset--color--white);
}

.ds-map-county--near {
	font-weight: 400;
}

.ds-map-pin {
	fill: var(--wp--preset--color--black);
	stroke: var(--wp--preset--color--white);
	stroke-width: 2;
}

.ds-map-label {
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: 15px;
	font-weight: 700;
	fill: var(--wp--preset--color--white);
}

/* County page maps: the county in olive, its main towns labelled. */
.ds-county-map {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--wp--preset--color--stone);
	background: var(--wp--preset--color--white);
}

.ds-county-map .ds-map-core {
	stroke: none;
}

.ds-county-map .ds-map-land {
	stroke-width: 0.8;
}

.ds-map-pin--town {
	fill: var(--wp--preset--color--white);
	stroke: #2c3615;
	stroke-width: 1.2;
}

.ds-county-map .ds-map-label {
	font-size: 13px;
	font-weight: 400;
	paint-order: stroke;
	stroke: #3f4e1f;
	stroke-width: 3px;
	stroke-linejoin: round;
}

.ds-county-map .ds-map-label--main {
	font-size: 15px;
	font-weight: 700;
}

.ds-county-map-wrap {
	margin-top: 2rem;
}

.ds-soft-box .ds-map {
	margin-block: 1rem;
}

.ds-soft-box .ds-coverage-map {
	max-width: 300px;
}

.ds-map-key {
	margin: 1.25rem auto 0;
	padding: 0;
	max-width: 360px;
	list-style: none;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--muted);
}

.ds-map-key li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0.3rem 0;
}

.ds-map-swatch {
	flex: none;
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 50%;
}

.ds-map-swatch--core { background: var(--wp--preset--color--olive); }
.ds-map-swatch--cumbria { background: #66783e; }
.ds-map-swatch--near { background: #7d8f55; }

/* A heading with a smaller, bracketed aside on the line below. */
.ds-heading-with-aside.wp-block-heading {
	margin-bottom: 0;
}
.ds-heading-aside {
	margin-top: 0.15rem !important;
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: 1.125rem;
	color: var(--wp--preset--color--olive);
}

/* Closing "Do we sound like your sort of agent?" band: more breathing room. */
.ds-final-cta {
	padding-top: clamp(3.5rem, 8vw, 6rem) !important;
	padding-bottom: clamp(3.5rem, 8vw, 6rem) !important;
}
.ds-final-cta > .wp-block-columns {
	gap: clamp(2rem, 6vw, 5rem) !important;
}
.ds-final-cta .wp-block-column > * + * {
	margin-top: 1.25rem;
}
.ds-final-cta .wp-block-buttons {
	margin-top: 2rem !important;
}

/* No stray gap between the page content and the footer. */
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Homepage main cards: light sage boxes on a white section, so they stand
   apart from the olive band above and the sage section below. */
.ds-main-services .ds-service-card {
	background: #f3f5ee;
	border-color: #dfe5d3;
}

/* Recent sales on phones: two per row, smaller captions. */
@media (max-width: 600px) {
	.ds-sales-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.75rem !important;
	}
	.ds-sales-grid .wp-element-caption {
		padding: 0.5rem 0.6rem;
		font-size: 0.8125rem;
		line-height: 1.4;
	}
}

/* ---------- Tablet & in-between screen sizes ---------- */

/* Tablets (portrait): WordPress stacks all columns below 782px. Keep the
   olive key-points band three across, and turn the photo cards into
   wide horizontal cards (photo left, text right) instead of tall stacks. */
@media (min-width: 600px) and (max-width: 781px) {
	.ds-band .wp-block-columns {
		flex-wrap: nowrap !important;
	}
	.ds-band .wp-block-columns > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
	}
	.ds-band .ds-stat {
		font-size: 1.35rem;
	}
	.ds-service-card {
		display: flex;
		flex-direction: row;
		align-items: stretch;
	}
	.ds-service-card > .wp-block-image {
		flex: 0 0 40%;
	}
	.ds-service-card > .wp-block-image img {
		height: 100%;
		aspect-ratio: auto;
	}
	.ds-service-card__body {
		flex: 1;
		margin: 0 !important;
	}
}

/* "What makes us different": balanced, centred rows at every width
   (5 / 3+2 / 2+2+1 / 1), never a lonely tile. */
.ds-diff-grid {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
}
.ds-diff-grid > .ds-diff-tile {
	box-sizing: border-box;
	flex: 0 0 100%;
	margin: 0 !important;
}
@media (min-width: 480px) {
	.ds-diff-grid > .ds-diff-tile { flex-basis: calc((100% - 1.25rem) / 2); }
}
@media (min-width: 700px) {
	.ds-diff-grid > .ds-diff-tile { flex-basis: calc((100% - 2.5rem) / 3); }
}
@media (min-width: 1100px) {
	.ds-diff-grid > .ds-diff-tile { flex-basis: calc((100% - 5rem) / 5); }
}

/* Recent sales: 4 across on laptops and up, 2 across below, so the eight
   photos always make complete rows. */
.ds-sales-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (min-width: 900px) {
	.ds-sales-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

/* Phones: clear separation between the portal logos and the
   "We are members of" group. */
@media (max-width: 781px) {
	.ds-affiliations .wp-block-columns > .wp-block-column + .wp-block-column {
		margin-top: 1.25rem;
		padding-top: 1.5rem;
		border-top: 1px solid var(--wp--preset--color--stone);
	}
}

/* ---------- Enquiry form ---------- */
.ds-enquiry__form {
	display: grid;
	gap: 1rem;
}
.ds-enquiry__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1rem;
}
.ds-enquiry__field {
	display: grid;
	gap: 0.35rem;
}
.ds-enquiry__field label {
	font-size: 0.9375rem;
	font-weight: 600;
}
.ds-enquiry__field input,
.ds-enquiry__field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: 2px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--body);
	font: inherit;
	font-size: 1rem;
}
.ds-enquiry__field textarea {
	resize: vertical;
	min-height: 7rem;
}
.ds-enquiry__field input:focus,
.ds-enquiry__field textarea:focus {
	outline: 2px solid var(--wp--preset--color--olive);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--olive);
}
.ds-enquiry__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
}
.ds-enquiry__submit button {
	cursor: pointer;
	border: 0;
	background: var(--wp--preset--color--olive);
	color: var(--wp--preset--color--white);
	font-weight: 700;
	font-size: 1.0625rem;
	padding: 0.95rem 1.6rem;
	border-radius: 2px;
}
.ds-enquiry__submit button:hover {
	background: var(--wp--preset--color--ink);
}
.ds-enquiry__privacy {
	margin: 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}
.ds-enquiry__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.ds-enquiry__notice {
	padding: 1rem 1.25rem;
	border-radius: 2px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--body);
	border-left: 4px solid var(--wp--preset--color--olive);
}
.ds-enquiry__notice p {
	margin: 0.25rem 0;
}
.ds-enquiry__notice--error {
	border-left-color: #a23b2a;
	margin-bottom: 1rem;
}

/* On the olive closing band: light labels, white button. */
.ds-final-cta .ds-enquiry__field label,
.ds-final-cta .ds-enquiry__privacy {
	color: var(--wp--preset--color--white);
}
.ds-final-cta .ds-enquiry__field input,
.ds-final-cta .ds-enquiry__field textarea {
	border-color: transparent;
}
.ds-final-cta .ds-enquiry__field input:focus,
.ds-final-cta .ds-enquiry__field textarea:focus {
	outline-color: var(--wp--preset--color--white);
}
.ds-final-cta .ds-enquiry__submit button {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--olive);
}
.ds-final-cta .ds-enquiry__submit button:hover {
	background: var(--wp--preset--color--sage);
}

/* ---------- Button hover / keyboard-focus states ----------
   Every button goes dark (ink, white text) on hover, to match the solid
   olive buttons. !important is needed where WordPress's colour classes
   (e.g. has-white-background-color) use !important themselves. */
.wp-block-button__link,
.ds-enquiry__submit button,
.ds-header-phone a {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible,
.ds-final-cta .wp-block-button__link:hover,
.ds-final-cta .wp-block-button__link:focus-visible,
.ds-enquiry__submit button:hover,
.ds-enquiry__submit button:focus-visible,
.ds-final-cta .ds-enquiry__submit button:hover,
.ds-final-cta .ds-enquiry__submit button:focus-visible {
	background-color: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--white) !important;
	border-color: var(--wp--preset--color--ink) !important;
}

/* ---------- About page ---------- */

/* Alternating photo-and-text rows: every other row puts the photo on the
   right (desktop only; on phones the photo always comes first). */
@media (min-width: 782px) {
	.ds-about-row--flip > .wp-block-columns {
		flex-direction: row-reverse;
	}
}
.ds-about-row h2.wp-block-heading {
	margin-top: 0;
}

/* Fee band: the fee itself stands out. */
.ds-about-fee__headline {
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

/* Gentle "already on the market?" pointer. */
.ds-callout {
	margin-top: 1.5rem !important;
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--sage);
	border-left: 4px solid var(--wp--preset--color--olive);
}
.ds-callout > * {
	margin-block: 0.4rem 0;
}
.ds-callout > :first-child {
	margin-top: 0;
}

/* Logo strip inside the About "Where We Advertise" section. */
.ds-about-advertise .ds-affiliations {
	margin-top: var(--wp--preset--spacing--50) !important;
}

/* Homepage heading "Dales & Shires – Estate Agents": always one line.
   Its column is a size container, so the font scales with the space the
   heading actually has (full width on phones, the left column on
   desktop). The text is ~15.9em wide; /16.4 leaves a little margin.
   The first font-size is a fallback for browsers without container units. */
.ds-hero .wp-block-column:has(> .ds-hero-title--oneline) {
	container-type: inline-size;
}
.ds-hero-title--oneline.wp-block-heading {
	white-space: nowrap;
	font-size: clamp(1.1rem, 4.6vw, 2.25rem);
	font-size: min(2.25rem, calc(100cqi / 16.4));
}

/* Homepage hero buttons: stacked full-width on phones. */
@media (max-width: 600px) {
	.ds-hero-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.ds-hero-buttons > .wp-block-button {
		width: 100%;
	}
	.ds-hero-buttons .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
}

/* ---------- Services & other content pages ---------- */

/* Card grids (services hub, good-to-know, case studies). */
.ds-card-grid {
	gap: 1.5rem !important;
	margin-top: var(--wp--preset--spacing--40) !important;
}
.ds-grid-card {
	display: flex;
	flex-direction: column;
	margin: 0 !important;
}
.ds-grid-card > .ds-service-card__body {
	flex: 1;
	margin: 0 !important;
}
.ds-services-grid .ds-service-card {
	background: #f3f5ee;
	border-color: #dfe5d3;
}
.ds-good-to-know .ds-card {
	margin: 0 !important;
}

/* Plain tag list (e.g. services we can recommend): tidy, not animated. */
.ds-tags--plain {
	justify-content: flex-start;
}
.ds-tags--plain span,
.ds-tags--plain span:nth-child(n) {
	animation: none;
	transform: none;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	background: var(--wp--preset--color--white);
	border: 1px solid #dfe5d3;
	color: var(--wp--preset--color--ink);
}

/* "Switched to us and sold" case studies. */
.ds-case__photo img {
	aspect-ratio: 3 / 2;
}
.ds-case__badge {
	display: inline-block;
	margin: 0 0 0.5rem !important;
	padding: 0.15rem 0.6rem;
	background: #a23b2a;
	color: var(--wp--preset--color--white);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-radius: 2px;
}
.ds-case__price {
	margin-top: 0.25rem !important;
	font-weight: 700;
	color: var(--wp--preset--color--olive);
}
.ds-case .wp-block-list {
	padding-left: 1.1rem;
	font-size: 0.975rem;
}
.ds-case__before {
	font-size: 0.975rem;
	color: var(--wp--preset--color--muted);
}
.ds-case__after {
	margin-top: 0.25rem !important;
	font-family: var(--wp--preset--font-family--serif);
}

/* Contact page. */
.ds-contact-card {
	margin-top: 1.5rem !important;
}
.ds-contact-card > * {
	margin-block: 0.6rem 0;
}
.ds-contact-card > :first-child {
	margin-top: 0;
}
.ds-hours table {
	border-collapse: collapse;
	width: 100%;
}
.ds-hours td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--stone);
	padding: 0.45rem 0;
}
.ds-hours td:last-child {
	text-align: right;
	font-weight: 600;
}
.ds-contact-form {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-top: 4px solid var(--wp--preset--color--olive);
}
.ds-contact-form h2 {
	margin-top: 0;
}

/* Card grids stretch to fill the row (no empty columns), and the six
   services cards always make balanced rows: 3 + 3, then 2 + 2 + 2, then 1. */
.ds-card-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)) !important;
}
.ds-services-grid .ds-card-grid {
	grid-template-columns: 1fr !important;
}
@media (min-width: 600px) {
	.ds-services-grid .ds-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
@media (min-width: 960px) {
	.ds-services-grid .ds-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

/* Olive band on desktop: a little more room for the small text, so each
   panel's description fits on two lines (Dave's request). */
@media (min-width: 1024px) {
	.ds-band .wp-block-column {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
	.ds-band .wp-block-column p:not(.ds-stat) {
		font-size: 1.0625rem;
	}
}

/* County pages: "Areas we cover" box. */
.ds-county-areas ul {
	padding-left: 1.2rem;
}

.ds-county-areas li {
	margin: 0.25rem 0;
}


/* ---------- Properties for sale ---------- */

.ds-properties h1 {
	margin-bottom: 0.5rem;
}

.ds-properties-intro {
	max-width: 46rem;
	margin-left: 0 !important; /* Line up with the title, not centred. */
	color: var(--wp--preset--color--muted);
}

.ds-property-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
	padding: 0;
	list-style: none;
}

.ds-property-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--stone);
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ds-property-card a:hover,
.ds-property-card a:focus-visible {
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
	transform: translateY(-2px);
}

.ds-property-card__img {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--wp--preset--color--sage);
}

.ds-property-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ds-ribbon {
	position: absolute;
	top: 0.75rem;
	left: 0;
	padding: 0.3rem 0.8rem;
	background: var(--wp--preset--color--olive);
	color: var(--wp--preset--color--white);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ds-property-card__body {
	padding: 1rem 1.25rem 1.25rem;
}

.ds-property-card__price {
	margin: 0 0 0.35rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.3125rem;
	font-weight: 700;
	color: var(--wp--preset--color--olive);
}

.ds-price-qualifier {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

.ds-property-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.0625rem;
	line-height: 1.35;
}

.ds-property-card__type {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--muted);
}

/* Single property */
.ds-property__back {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
}

.ds-gallery {
	position: relative;
	margin-bottom: 2rem;
	background: var(--wp--preset--color--ink);
}

.ds-gallery__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ds-gallery__track::-webkit-scrollbar {
	display: none;
}

.ds-gallery__slide {
	flex: 0 0 100%;
	margin: 0;
	aspect-ratio: 3 / 2;
	max-height: 70vh;
	scroll-snap-align: start;
}

.ds-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ds-gallery__btn {
	position: absolute;
	top: 50%;
	width: 2.75rem;
	height: 2.75rem;
	margin-top: -1.375rem;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.9);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ds-gallery__btn::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 0.65rem;
	height: 0.65rem;
	border-top: 2px solid var(--wp--preset--color--ink);
	border-right: 2px solid var(--wp--preset--color--ink);
}

.ds-gallery__btn--prev { left: 1rem; }
.ds-gallery__btn--prev::before { transform: translateX(2px) rotate(-135deg); }
.ds-gallery__btn--next { right: 1rem; }
.ds-gallery__btn--next::before { transform: translateX(-2px) rotate(45deg); }

.ds-gallery__btn:hover,
.ds-gallery__btn:focus-visible {
	background: var(--wp--preset--color--white);
}

.ds-gallery__count {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	padding: 0.2rem 0.6rem;
	background: rgb(0 0 0 / 0.6);
	color: var(--wp--preset--color--white);
	font-size: 0.8125rem;
}

.ds-property__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 20rem;
	gap: var(--wp--preset--spacing--60);
	align-items: start;
}

.ds-property__title {
	margin: 0 0 0.35rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.ds-property__type {
	margin: 0 0 1.25rem;
	color: var(--wp--preset--color--muted);
}

.ds-property__summary {
	font-size: var(--wp--preset--font-size--large);
}

.ds-property__main h2 {
	margin-top: 2.5rem;
	font-size: 1.5rem;
}

.ds-property__main h3 {
	margin: 2rem 0 0.5rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--wp--preset--color--stone);
	font-size: 1.125rem;
}

.ds-room h4 {
	margin: 1.1rem 0 0.2rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
}

.ds-room p {
	margin: 0;
}

.ds-room__size {
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

.ds-facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
	gap: 1px;
	margin: 1.5rem 0;
	border: 1px solid var(--wp--preset--color--stone);
	background: var(--wp--preset--color--stone);
}

.ds-facts div {
	padding: 0.75rem 1rem;
	background: var(--wp--preset--color--white);
}

.ds-facts dt {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ds-facts dd {
	margin: 0.15rem 0 0;
	font-weight: 600;
}

.ds-key-features {
	padding-left: 1.2rem;
}

.ds-key-features li {
	margin: 0.35rem 0;
}

.ds-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.ds-plans h2 {
	margin-top: 0 !important;
	font-size: 1.25rem !important;
}

.ds-plan-note {
	margin: 0.4rem 0 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
}

.ds-plan {
	display: block;
	max-width: 24rem;
	margin: 1rem 0;
	border: 1px solid var(--wp--preset--color--stone);
	background: var(--wp--preset--color--white);
}

.ds-plan img {
	display: block;
	width: 100%;
	height: auto;
}

.ds-property__disclaimer {
	margin-top: 2.5rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
}

.ds-property__aside {
	position: sticky;
	top: 7rem;
}

.ds-property__box {
	padding: 1.5rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--stone);
	border-top: 4px solid var(--wp--preset--color--olive);
}

.ds-status {
	display: inline-block;
	margin-bottom: 0.75rem;
	padding: 0.2rem 0.7rem;
	background: var(--wp--preset--color--olive);
	color: var(--wp--preset--color--white);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ds-property__price {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.2;
}

.ds-property__rooms {
	margin: 0.35rem 0 1.25rem;
	color: var(--wp--preset--color--muted);
}

.ds-property__box .wp-block-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ds-property__box .wp-block-button,
.ds-property__box .wp-block-button__link {
	width: 100%;
	text-align: center;
}

.ds-property__note {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 900px) {
	.ds-property__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	/* On phones and tablets, the price and buttons come straight after the photos. */
	.ds-property__aside {
		position: static;
		grid-row: 1;
	}

	.ds-gallery {
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1.5rem));
	}

	.ds-gallery__btn {
		display: none;
	}
}

/* Legal pages (privacy, complaints) */
.ds-legal h1 {
	margin-bottom: 0.25rem;
}

.ds-legal-date {
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
}

.ds-legal h2 {
	margin-top: 2.25rem;
	font-size: 1.375rem;
}

.ds-enquiry__privacy a,
footer .has-small-font-size a {
	color: inherit;
}

/* County "How We Can Help" cards: four across, so a slightly smaller
   heading keeps "About Dales & Shires" on one line. */
.ds-county-help .ds-service-card h3 {
	font-size: 1.125rem;
}

/* Quiet links (Dave's one-way funnel): same colour and font as the text
   around them, underlined only on hover/focus. Used for links that exist
   mainly for search engines (nearby places, county town names). */
a.ds-quiet-link,
.ds-quiet-links a {
	color: inherit;
	font: inherit;
	text-decoration: none;
}

a.ds-quiet-link:hover,
a.ds-quiet-link:focus-visible,
.ds-quiet-links a:hover,
.ds-quiet-links a:focus-visible {
	text-decoration: underline;
}

/* County links on Where We Cover: deliberately visible (Dave wants
   visitors to find the county pages; deeper pages stay quiet). */
a.ds-county-link {
	font-weight: 700;
	text-decoration: underline;
}

/* ---------- Location pages (valuation and probate) ---------- */

/* Page title: the same size as other pages' titles, not the default H1. */
.wp-block-post-title.ds-hero-title {
	font-size: clamp(1.75rem, 2.8vw, 2.25rem);
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 0;
}

.ds-hero-note {
	margin-top: 1rem !important;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--muted);
}

/* Text and the place-details card start on the same line. */
.ds-location-about .wp-block-column > :first-child,
.ds-location-about .ds-card > :first-child {
	margin-top: 0;
}

.ds-location-about .ds-card h2 {
	font-size: var(--wp--preset--font-size--x-large);
}

/* Even grid of sage text boxes (two across; one on phones). */
.ds-info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.ds-info-box h3 {
	margin: 0 0 0.75rem;
}

.ds-info-box p:last-child {
	margin-bottom: 0;
}

@media (max-width: 781px) {
	.ds-info-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ds-buttons-center {
	justify-content: center;
}

.ds-cta-strip p {
	margin-inline: auto;
}

.ds-info-box h4 {
	margin: 1.25rem 0 0.5rem;
	font-size: 1.0625rem;
}

.ds-small-print {
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}

.ds-other-services h2 {
	margin-bottom: var(--wp--preset--spacing--40);
}

/* Grid items line up: no flow-layout gap above the second and later boxes. */
.ds-info-grid > * {
	margin-block: 0 !important;
}

/* Optional heading above the olive band's panels (probate pages). */
.ds-band .ds-band-title {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	font-style: italic;
}

.ds-band a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Footer ----------
   Desktop: logo over the small print on the left; menu over the phone
   number on the right. Phones and small tablets: everything centred, in
   the order logo, menu, phone number, then the small print at the very
   bottom (as on the old site). */
.ds-footer {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"logo  nav"
		"small phone";
	align-items: end;
	gap: 1rem 2rem;
}
.ds-footer__logo {
	grid-area: logo;
	justify-self: start;
	line-height: 0;
}
.ds-footer__logo img {
	width: 220px;
	height: auto;
}
.ds-footer__nav {
	grid-area: nav;
}
.ds-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ds-footer a {
	color: var(--wp--preset--color--white);
}
.ds-footer__nav a {
	text-decoration: none;
}
.ds-footer__nav a:hover,
.ds-footer__nav a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}
.ds-footer__phone {
	grid-area: phone;
	margin: 0;
	text-align: right;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}
.ds-footer__phone a {
	text-decoration: none;
}
.ds-footer__address {
	display: block;
}
.ds-footer__small {
	grid-area: small;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}
@media (max-width: 781px) {
	.ds-footer {
		grid-template-columns: 1fr;
		grid-template-areas:
			"logo"
			"nav"
			"phone"
			"small";
		justify-items: center;
		gap: 1.5rem;
		text-align: center;
	}
	.ds-footer__logo {
		justify-self: center;
	}
	.ds-footer__nav ul {
		justify-content: center;
		gap: 0.6rem 1.25rem;
	}
	.ds-footer__phone {
		text-align: center;
	}
	.ds-footer__small {
		margin-top: 0.5rem;
		padding-top: 1.25rem;
		border-top: 1px solid rgb(255 255 255 / 0.12);
		font-size: 0.8125rem;
	}
	.ds-footer__address {
		margin-bottom: 1.7em; /* A blank line after the address on phones. */
	}
}

/* Homepage: slim "Already on the Market?" box under the three main cards,
   in the same pale sage as them (Dave, Sept 2026). */
.ds-home-aotm {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	margin-top: var(--wp--preset--spacing--40) !important;
	padding: 1.25rem 1.5rem;
	background: #f3f5ee;
	border: 1px solid #dfe5d3;
}
.ds-home-aotm__text > * {
	margin: 0 !important;
}
.ds-home-aotm__text h3 {
	margin-bottom: 0.35rem !important;
}
.ds-home-aotm__link {
	flex: none;
	margin: 0 !important;
}
@media (max-width: 781px) {
	.ds-home-aotm {
		flex-direction: column;
		align-items: flex-start;
	}
}
