/*
Theme Name: Blocksy Child
Description: Child theme for the Sunset site, built on Blocksy.
Template: blocksy
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocksy-child
*/

/* Two fonts used by single blocks. The Customizer only loads fonts it assigns itself. */
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@600&family=Poppins&display=swap");

/*
 * This file only holds what the Customizer and the block options cannot do.
 * Set fonts, colours, buttons, form fields, header and footer in the Customizer,
 * and block sizes, colours and spacing in the block options.
 */

/* ==== Buttons with an arrow ====
   Every arrow button uses .sa-btn, so they all share one arrow and one hover.
   The modifiers below only change sizes and colours. */

.sa-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.sa-btn .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 21px;
	height: 21px;
	background: url("assets/images/arrow-right-white.svg") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.sa-btn .wp-block-button__link:is(:hover, :focus-visible)::after {
	transform: translateX(4px);
}

/* Filled buttons all change to the same blue, including ones given their own colour in the block options. */
.sa-btn:not(.sa-btn--outline, .sa-btn--outline-dark, .sa-btn--link) .wp-block-button__link:is(:hover, :focus-visible) {
	background-color: var(--theme-palette-color-2) !important;
}

/* Sizes */
.sa-btn--dark .wp-block-button__link,
.sa-btn--outline .wp-block-button__link {
	gap: 7px;
	min-width: 257px;
}

.sa-btn--wide .wp-block-button__link {
	gap: 11px;
	min-width: 319px;
}

.sa-btn--pill .wp-block-button__link {
	box-sizing: border-box;
	gap: 16px;
	min-width: 0;
	white-space: nowrap;
}

.sa-btn--pill .wp-block-button__link::after {
	width: 20px;
	height: 20px;
}

/* Blue outline: fills blue on hover. */
.sa-btn--outline .wp-block-button__link::after {
	background-image: url("assets/images/arrow-right-blue.svg");
}

.sa-btn--outline .wp-block-button__link:is(:hover, :focus-visible) {
	background-color: var(--theme-palette-color-1) !important;
	color: var(--theme-palette-color-8) !important;
}

.sa-btn--outline .wp-block-button__link:is(:hover, :focus-visible)::after {
	background-image: url("assets/images/arrow-right-white.svg");
}

/* Dark outline: fills dark on hover. */
.sa-btn--outline-dark .wp-block-button__link::after {
	background-image: url("assets/images/arrow-dark-20.svg");
}

.sa-btn--outline-dark .wp-block-button__link:is(:hover, :focus-visible) {
	border-color: var(--theme-palette-color-4) !important;
	background-color: var(--theme-palette-color-4) !important;
	color: var(--theme-palette-color-8) !important;
}

.sa-btn--outline-dark .wp-block-button__link:is(:hover, :focus-visible)::after {
	background-image: url("assets/images/arrow-right-white.svg");
}

/* Text link: no fill, underlines on hover. */
.sa-btn--link .wp-block-button__link {
	background-color: transparent;
	color: var(--theme-palette-color-1);
}

.sa-btn--link .wp-block-button__link::after {
	background-image: url("assets/images/arrow-blue-20.svg");
}

.sa-btn--link .wp-block-button__link:is(:hover, :focus-visible) {
	background-color: transparent !important;
	color: var(--theme-palette-color-1) !important;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ==== Header icons ==== */

/* Blocksy has no setting to change the search icon, so the design's icon replaces it here. */
.ct-header-search svg {
	display: none;
}

.ct-header-search::before {
	content: "";
	display: block;
	width: 25px;
	height: 25px;
	background: url("assets/images/icon-search.svg") center / contain no-repeat;
}

.sa-header-icons {
	display: flex;
	align-items: center;
	gap: 19px;
}

.sa-header-icons a,
.sa-header-icons img {
	display: block;
}

/* ==== Hero: overlapping, rotated photos ==== */

.sa-hero {
	overflow: hidden;
}

/* Sizes are in cqw so the photos keep their layout at any width. */
.sa-hero__gallery {
	position: relative;
	container-type: inline-size;
	aspect-ratio: 1280 / 466;
}

.sa-hero__gallery > .wp-block-image {
	position: absolute;
	width: 47.376cqw;
	margin: 0;
}

.sa-hero__gallery img {
	width: 100%;
	height: auto;
	aspect-ratio: 606.4 / 371.6;
	object-fit: cover;
}

.sa-hero__gallery > .wp-block-image:nth-child(1) {
	top: 3.296cqw;
	left: 1.135cqw;
	transform: rotate(-5.16deg) skewX(-0.3deg);
}

.sa-hero__gallery > .wp-block-image:nth-child(2) {
	top: 2.083cqw;
	left: 74.74cqw;
	transform: rotate(-5.17deg) skewX(-0.31deg);
}

.sa-hero__gallery > .wp-block-image:nth-child(3) {
	top: 5.164cqw;
	left: 37.158cqw;
	transform: rotate(6.61deg) skewX(0.39deg);
}

.sa-hero__gallery > .wp-block-image:nth-child(4) {
	top: 3.951cqw;
	left: 110.765cqw;
	transform: rotate(6.61deg) skewX(0.39deg);
}

/* ==== Products: carousel ==== */

.sa-carousel {
	position: relative;
	aspect-ratio: 646 / 434;
}

/* A plain scrolling row: the script only adds the arrows and dots on top. */
.sa-carousel__track {
	position: absolute;
	top: -6%;
	left: 4.8%;
	display: flex;
	width: 90.4%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.sa-carousel__track::-webkit-scrollbar {
	display: none;
}

/* The padding leaves room for the shadow, because the scrolling row clips anything outside it. */
.sa-carousel__track > .wp-block-image {
	position: relative;
	flex: 0 0 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 4.452% 5.137% 5.822%;
	scroll-snap-align: start;
}

/* Any photo added in the editor gets the same size, corners and shadow. */
.sa-carousel__track img {
	width: 100%;
	height: auto;
	border-radius: 15px;
	box-shadow: 0 4px 26px rgba(0, 0, 0, 0.5);
	aspect-ratio: 524 / 357;
	object-fit: cover;
}

/* The image caption is the category name and doubles as the label on the image. */
.sa-carousel__track figcaption {
	position: absolute;
	top: 77.7%;
	left: 50.6%;
	width: 197px;
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
	transform: translateX(-50%);
	pointer-events: none;
}

.sa-carousel__symbol {
	position: absolute;
	top: 44.47%;
	left: -32.97%;
	width: 81.42%;
	margin: 0;
	pointer-events: none;
}

.sa-carousel__symbol img {
	width: 100%;
	height: auto;
}

.sa-carousel__nav {
	position: absolute;
	top: 46.9%;
	width: 44px;
	min-height: 0;
	height: 44px;
	padding: 0;
	border: 2px solid var(--theme-palette-color-1);
	border-radius: 50%;
	background: url("assets/images/chevron-left.svg") center / 20px no-repeat;
	transform: translateY(-50%);
	cursor: pointer;
}

.sa-carousel__nav.is-prev {
	left: 0;
}

.sa-carousel__nav.is-next {
	right: 0;
	background: var(--theme-palette-color-1) url("assets/images/chevron-right.svg") center / 20px no-repeat;
}

.sa-carousel__dots {
	position: absolute;
	top: 91.7%;
	left: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.sa-carousel__dot {
	width: 7px;
	min-height: 0;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--theme-palette-color-1);
	cursor: pointer;
}

.sa-carousel__dot.is-active {
	background: var(--theme-palette-color-4);
}

/* ==== Products: category list ==== */

.sa-categories__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
}

.sa-categories__list li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.sa-categories__list li::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: url("assets/images/bullet.svg") center / contain no-repeat;
	transform: rotate(-90deg);
}

.sa-categories__list a {
	text-decoration: none;
}

.sa-categories__list li.is-active::before {
	background-image: url("assets/images/bullet-active.svg");
}

.sa-categories__list li.is-active a {
	color: var(--theme-palette-color-1);
	font-weight: 700;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* ==== Seasonal catalogue: faded mountain background ==== */

.sa-catalogue {
	position: relative;
	overflow: hidden;
}

.sa-section .sa-catalogue__bg {
	position: absolute;
	top: 112px;
	left: 0;
	width: 100%;
	max-width: none;
	height: 482px;
	margin: 0 !important;
	opacity: 0.35;
}

.sa-catalogue__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sa-catalogue > .wp-block-columns {
	position: relative;
}

/* ==== Team: photo overlapping the panel ==== */

.sa-team-card__photo {
	position: relative;
	z-index: 1;
}

.sa-team-card.is-dov .sa-team-card__photo img {
	object-position: 50% 12.5%;
}

.sa-team-card.is-frances .sa-team-card__photo img {
	object-position: 50% 17.9%;
}

/* ==== Request a quote ==== */

.sa-quote.wp-block-cover {
	overflow: hidden;
	background: #fff;
}

/* The design shows this photo faded and stretched slightly rather than cropped. */
.sa-quote .wp-block-cover__image-background {
	inset: auto;
	top: -79.71%;
	left: 0;
	height: 282.35%;
	object-fit: fill;
	opacity: 0.85;
}

/* The form comes from a shortcode, so it has no block options. */
.sa-quote-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
	box-sizing: border-box;
	padding: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.84);
	scroll-margin-top: 40px;
}

.sa-quote-form p {
	margin: 0;
}

.sa-quote-form__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sa-quote-form__fields p {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sa-quote-form__notice {
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--theme-palette-color-5);
	color: var(--theme-palette-color-4);
	font-weight: 500;
}

.sa-quote-form__notice.is-error {
	color: #b42318;
}

/* Hidden from people. Bots that fill it in are ignored. */
.sa-quote-form__trap {
	position: absolute;
	left: -9999px;
}

.sa-quote-form label {
	margin: 0;
	color: var(--theme-palette-color-3);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.sa-quote-form input[type="text"],
.sa-quote-form input[type="email"],
.sa-quote-form textarea {
	padding-inline: 11px;
}

.sa-quote-form textarea {
	resize: none;
}

.sa-quote-form input::placeholder,
.sa-quote-form textarea::placeholder {
	color: #98a4ae;
	opacity: 1;
}

.sa-quote-form button[type="submit"] {
	align-self: flex-start;
	min-height: 53px;
	background: var(--theme-palette-color-2);
	font-weight: 600;
}

/* ==== Testimonials: scrolling row ==== */

.sa-testimonials {
	position: relative;
}

.sa-testimonials > p {
	opacity: 0.9;
}

.sa-testimonials__row {
	position: relative;
}

/* The avatars hang below the cards, so the row is taller than them. */
.sa-testimonials__list {
	width: calc(100% - 31px);
	height: 187px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.sa-testimonials__list::-webkit-scrollbar {
	display: none;
}

.sa-tcard {
	flex: 0 0 calc((100% - 32px) / 3);
	box-sizing: border-box;
	scroll-snap-align: start;
}

.sa-testimonials__next {
	position: absolute;
	top: 65px;
	right: 0;
	width: 41px;
	min-height: 0;
	height: 41px;
	padding: 0;
	border: 0;
	background: url("assets/images/chevron-right-dark.svg") center / contain no-repeat;
	cursor: pointer;
}

.sa-testimonials__next:hover {
	background: url("assets/images/chevron-right-dark.svg") center / contain no-repeat;
}

.sa-testimonials__next[hidden] {
	display: none;
}

/* ==== Mobile-only blocks (shown with the block Hide option) ==== */

.sa-categories__pills {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 11px;
	list-style: none;
}

.sa-categories__pills li {
	margin: 0;
}

.sa-categories__pills a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 251px;
	height: 30px;
	border-radius: 24px;
	background: var(--theme-palette-color-5);
	text-decoration: none;
}

.sa-section .sa-featured__list {
	width: calc(100% - 4vw);
	max-width: none;
	margin-left: 4vw !important;
	overflow-x: auto;
	scrollbar-width: none;
}

.sa-featured__list::-webkit-scrollbar {
	display: none;
}

.sa-product {
	position: relative;
	flex: none;
	box-sizing: border-box;
	height: 136px;
}

.sa-product__title {
	min-height: 34px;
}

.sa-product:first-child .sa-product__title {
	max-width: 93px;
}

.sa-product:not(:first-child) .sa-product__title {
	white-space: nowrap;
}

.sa-section .sa-product__heart {
	position: absolute;
	top: 113px;
	left: 107px;
}

.sa-footer-scenic-mobile {
	position: relative;
	height: 47px;
	overflow: hidden;
}

.sa-footer-scenic-mobile .wp-block-image {
	position: absolute;
	top: 9.5px;
	left: 0;
	width: 100.92%;
}

.sa-footer-scenic-mobile .wp-block-image:last-child {
	top: 26.86px;
	left: -1.04%;
	width: 101.46%;
}

.sa-footer-scenic-mobile img {
	width: 100%;
	height: auto;
}

.sa-footer-mobile {
	position: relative;
}

.ct-footer .sa-footer-mobile__logo {
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
}

/* ==== Footer ==== */

.ct-footer .wp-block-image {
	margin: 0;
}

.ct-footer .wp-block-image a,
.ct-footer .wp-block-image img,
.sa-section .wp-block-image a {
	display: block;
}

/* Blocksy's full-width row still keeps side padding, so this makes the scenic image edge to edge. */
.ct-footer [data-row*="top"] > div {
	width: 100%;
	max-width: none;
	padding-inline: 0;
}

.sa-footer-scenic img {
	height: auto;
}

/* The Customizer only offers set column layouts, and the design's columns are not one of them. */
@media (min-width: 1000px) {
	[data-footer] .ct-footer [data-row*="middle"] > div {
		--grid-template-columns: 506fr 347fr 321fr 106fr;
		padding-block: 40px 46.5px;
	}

	[data-footer] .ct-footer [data-row*="bottom"] > div {
		--grid-template-columns: 373fr 482fr 425fr;
	}
}

/* ==== Tablet: block options have no per-device values, so these override them ==== */

@media (max-width: 999.98px) {
	.sa-section .wp-block-columns {
		flex-wrap: wrap !important;
		row-gap: 32px !important;
	}

	.sa-section .wp-block-column {
		flex-basis: 100% !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.sa-section .wp-block-column > h2 {
		margin-right: 0 !important;
	}

	.sa-products {
		padding-bottom: 48px !important;
	}

	.sa-carousel__symbol {
		display: none;
	}

	.sa-section .sa-catalogue__bg {
		top: 0;
		height: 100%;
	}

	.sa-section .sa-catalogue__cover {
		margin: 0 !important;
	}

	.sa-section .sa-catalogue__cover img {
		width: 100% !important;
		max-width: 560px;
		height: auto;
	}

	.sa-quote .wp-block-cover__image-background {
		inset: 0;
		height: 100%;
		object-fit: cover;
	}

	.sa-quote.wp-block-cover {
		padding-bottom: 40px !important;
	}

	.sa-testimonials {
		padding-bottom: 72px !important;
	}

	.sa-testimonials__list {
		width: 100%;
		height: auto;
		padding-bottom: 8px;
	}

	.sa-tcard {
		flex-basis: calc((100% - 16px) / 2);
	}

	.sa-testimonials__next {
		top: auto;
		bottom: -56px;
	}
}

/* ==== iPad landscape and small laptops: the desktop layout, tightened. The design has no frame for these sizes ==== */

/* Text runs longer below the design's 1440px width, so the testimonial row grows to fit. */
@media (min-width: 1000px) and (max-width: 1439.98px) {
	.sa-testimonials__list {
		height: auto;
		padding-bottom: 10px;
	}

	.sa-testimonials__next {
		top: 50%;
		transform: translateY(-50%);
	}
}

@media (min-width: 1280px) and (max-width: 1439.98px) {
	.sa-products .wp-block-column:first-child > h2 {
		white-space: nowrap;
	}
}

@media (min-width: 1000px) and (max-width: 1279.98px) {
	[data-header] .ct-header [data-id="menu"] {
		--menu-items-spacing: 18px;
	}

	[data-header] .ct-header [data-id="menu"] > ul > li > a {
		--theme-font-size: 13px;
	}

	.sa-btn .wp-block-button__link {
		white-space: nowrap;
	}

	.sa-hero .wp-block-column:first-child {
		flex-basis: 58% !important;
	}

	.sa-hero .wp-block-column:nth-child(2) {
		flex-basis: 42% !important;
		padding-left: 48px !important;
	}

	.sa-hero .wp-block-column:nth-child(2) img {
		width: 100% !important;
	}

	.sa-products .wp-block-column:first-child {
		flex-basis: 36% !important;
		padding-right: 24px !important;
	}

	.sa-products .wp-block-column:first-child > h2 {
		font-size: 30px !important;
	}

	.sa-products .wp-block-column:nth-child(2) {
		flex-basis: 46% !important;
		padding-right: 16px !important;
	}

	.sa-products .wp-block-column:last-child {
		flex-basis: 18% !important;
	}

	.sa-catalogue .wp-block-column:first-child {
		padding-right: 40px !important;
	}

	.sa-section .sa-catalogue__cover {
		margin: -20px 0 0 !important;
	}

	.sa-section .sa-catalogue__cover img {
		width: 100% !important;
	}

	.sa-team .wp-block-column {
		flex-basis: 33.33% !important;
		padding-right: 12px;
	}

	.sa-section .sa-team-card__photo {
		flex: 0 0 clamp(130px, 13vw, 166px) !important;
		margin: 24px -24px 0 0 !important;
	}

	.sa-team-card__photo img {
		width: 100% !important;
	}

	.sa-section .sa-team-card__panel {
		flex: 1 1 0 !important;
		min-width: 0;
		padding: 40px 10px 16px 38px !important;
	}

	.sa-section .sa-team-card__social {
		margin-left: 0 !important;
	}

	.sa-quote .wp-block-column:first-child {
		padding-right: 40px !important;
	}

	.sa-quote .wp-block-column:first-child img {
		max-width: 100%;
		height: auto;
	}

	/* Testimonial cards: stars move to their own line when they no longer fit beside the name. */
	.sa-section .sa-tcard {
		padding-bottom: 14px !important;
	}

	.sa-section .sa-tcard__row {
		flex-wrap: wrap;
		margin-bottom: 0 !important;
	}

	.sa-section .sa-tcard__stars {
		margin: 0 !important;
	}

	.sa-tcard__name {
		white-space: nowrap;
	}
}

/* ==== Mobile and iPad vertical: matches the mobile design. Block options have no per-device values, so these override them ==== */

@media (max-width: 999.98px) {
	/* Thin dark line between sections. */
	.sa-section {
		border-top: 4px solid var(--theme-palette-color-4);
	}

	.sa-section .wp-block-columns {
		row-gap: 0 !important;
	}

	/* Small images would otherwise sit low on the text line. */
	.sa-section .wp-block-image img {
		display: block;
	}

	.sa-footer-mobile a {
		color: rgba(230, 226, 217, 0.9);
	}

	/* Header icons: the design's own search and menu icons, spaced as in the design */
	.ct-header-search::before {
		width: 18px;
		height: 18px;
		background-image: url("assets/images/icon-search-mobile.svg");
	}

	.ct-header-trigger svg {
		display: none;
	}

	.ct-header-trigger::before {
		content: "";
		display: block;
		width: 18px;
		height: 18px;
		background: url("assets/images/icon-menu-mobile.svg") center / contain no-repeat;
	}

	[data-device="mobile"] .ct-header-search {
		margin-inline-end: -3px !important;
	}

	[data-device="mobile"] [data-id="text"] {
		margin-inline-end: 14px !important;
	}

	[data-device="mobile"] .ct-header-trigger {
		margin-inline-end: 3.4px !important;
	}

	.sa-header-icons {
		gap: 7px;
	}

	.sa-header-icons a:first-child img {
		width: 22px;
		height: 18px;
	}

	/* Hero: logo on top, centred heading */
	.sa-hero {
		padding-top: 17px !important;
		padding-bottom: 0 !important;
	}

	.sa-hero .wp-block-column:nth-child(2) {
		order: -1;
	}

	.sa-hero .wp-block-column:nth-child(2) .wp-block-image {
		width: 144px;
		margin-inline: auto !important;
	}

	.sa-hero .wp-block-column:nth-child(2) img {
		width: 144px !important;
	}

	.sa-section.sa-hero h1 {
		margin: 21px 0 17px !important;
		text-align: center;
	}

	.sa-hero .wp-block-column > p {
		padding-inline: 11px 11.8px;
		font-size: 12px !important;
		opacity: 0.9;
	}

	.sa-section .sa-hero__gallery {
		width: 86.67vw;
		max-width: none;
		margin: 1px 0 0 1.64vw !important;
		aspect-ratio: 338 / 155;
	}

	.sa-hero__gallery > .wp-block-image:nth-child(1) {
		top: 7.11cqw;
	}

	.sa-hero__gallery > .wp-block-image:nth-child(2) {
		top: 7.11cqw;
		left: 79.44cqw;
	}

	.sa-hero__gallery > .wp-block-image:nth-child(3) {
		top: 8.98cqw;
	}

	/* Products */
	.sa-section.sa-products {
		min-height: 0 !important;
		padding-top: 25px !important;
		padding-bottom: 23px !important;
		background-color: var(--theme-palette-color-6) !important;
	}

	.sa-products .wp-block-column:first-child {
		padding-top: 0 !important;
	}

	.sa-products .wp-block-column:first-child > h2 {
		font-size: 20px !important;
	}

	.sa-products .wp-block-column:first-child > p {
		margin-top: 11px !important;
		font-size: 13px !important;
	}

	.sa-products .wp-block-column:first-child > p:nth-of-type(2) {
		font-size: 12px !important;
		opacity: 0.8;
	}

	.sa-section .sa-carousel {
		height: 173px;
		margin-top: 18px !important;
		aspect-ratio: auto;
	}

	.sa-carousel__track {
		top: -15px;
		left: calc(50% - 7.5px);
		width: 297px;
		transform: translateX(-50%);
	}

	.sa-section .sa-carousel__track > .wp-block-image {
		padding: 15px;
	}

	.sa-carousel__track img {
		height: 155px;
		border-radius: 16px;
		box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
		aspect-ratio: auto;
	}

	.sa-carousel__track figcaption {
		top: auto;
		bottom: 19px;
		left: 50%;
		width: 164px;
		height: 17px;
		border-radius: 999px;
		background: rgba(0, 0, 0, 0.4);
		backdrop-filter: blur(6px);
		color: rgba(255, 255, 255, 0.8);
		font-size: 14px;
		line-height: 17px;
	}

	.sa-carousel__nav,
	.sa-carousel__nav.is-prev,
	.sa-carousel__nav.is-next {
		top: 53px;
		width: 20px;
		height: 20px;
		background-size: 20px;
		transform: none;
	}

	.sa-carousel__nav.is-prev {
		left: calc(50% - 169px);
	}

	.sa-carousel__nav.is-next {
		right: auto;
		left: calc(50% + 134px);
	}

	.sa-carousel__dots {
		top: 168px;
		left: -7.5px;
	}

	.sa-carousel__dot {
		width: 5px;
		height: 5px;
	}

	.sa-carousel__symbol {
		display: block;
		top: -194px;
		right: -15.6px;
		left: auto;
		width: 123.25px;
	}

	.sa-section .sa-categories__title {
		margin: 24px 0 12px !important;
		font-size: 13px !important;
		font-weight: 800 !important;
		text-align: center;
	}

	/* Featured products: the design crops the second and third photos differently */
	.sa-product .wp-block-image:first-child {
		width: 100%;
		height: 71px;
		overflow: hidden;
		border-radius: 7px;
	}

	.sa-product:nth-child(2) .wp-block-image:first-child img {
		width: 100% !important;
		height: 81px !important;
		margin-top: -3.18px;
		object-fit: fill !important;
		aspect-ratio: auto !important;
	}

	.sa-product:nth-child(3) .wp-block-image:first-child img {
		width: 130.7% !important;
		max-width: none;
		height: 108.5px !important;
		margin: -19.04px 0 0 -12.64px;
		object-fit: fill !important;
		aspect-ratio: auto !important;
	}

	/* Seasonal catalogue */
	.sa-catalogue {
		min-height: 0 !important;
		padding-top: 25px !important;
		padding-bottom: 21px !important;
	}

	.sa-catalogue .wp-block-column:first-child .wp-block-group {
		gap: 10px !important;
	}

	.sa-catalogue h2 {
		font-size: 20px !important;
		font-weight: 800;
	}

	.sa-catalogue .wp-block-group > p {
		font-size: 13px !important;
	}

	.sa-catalogue .wp-block-group > p:nth-of-type(2) {
		max-width: 351px;
		font-size: 12px !important;
	}

	.sa-section .sa-catalogue__bg {
		top: 25px;
		height: 389px;
		opacity: 0.3;
	}

	.sa-section .sa-catalogue__cover-mobile {
		width: 289px;
		margin-inline: auto !important;
	}

	.sa-btn-small .wp-block-button__link {
		min-width: 180px;
	}

	/* Team */
	.sa-section.sa-team {
		min-height: 0 !important;
		padding-top: 25px !important;
		padding-bottom: 25px !important;
		background-color: var(--theme-palette-color-6) !important;
	}

	.sa-team > h2 {
		letter-spacing: 0.3px !important;
	}

	.sa-team > p {
		margin-top: 8px !important;
		font-size: 12px !important;
		opacity: 0.8;
	}

	.sa-section.sa-team .wp-block-columns {
		row-gap: 16px !important;
		margin-top: 24px !important;
	}

	/* The mobile design lists Dov last. */
	.sa-team .wp-block-column:nth-child(2) {
		order: 3;
	}

	.sa-section .sa-team-card {
		justify-content: center;
		margin-top: 0 !important;
	}

	.sa-section .sa-team-card__photo {
		flex: 0 0 120px !important;
		margin: 0 -11px 0 0 !important;
	}

	.sa-section .is-frances .sa-team-card__photo {
		margin-right: -5px !important;
	}

	.sa-section .is-dov .sa-team-card__photo {
		margin-right: -9.71px !important;
	}

	.sa-team-card__photo img {
		width: 120px !important;
	}

	.sa-section .sa-team-card__panel {
		position: relative;
		flex: 0 0 135px !important;
		min-height: 110px !important;
		padding: 24px 8px 0 20px !important;
	}

	.sa-section .is-frances .sa-team-card__panel {
		padding: 26px 8px 0 17px !important;
	}

	.sa-section .is-dov .sa-team-card__panel {
		flex-basis: 137.81px !important;
		margin-top: 1.16px;
		padding: 25.42px 8px 0 16.84px !important;
	}

	.sa-team-card__panel > p {
		font-size: 8px !important;
	}

	.sa-team-card__panel > p:nth-of-type(2) {
		max-width: 97px;
		margin-top: 0 !important;
		font-size: 7px !important;
	}

	.sa-section .sa-team-card__social {
		position: absolute;
		top: 81px;
		left: 83px;
		gap: 6.96px !important;
		margin: 0 !important;
	}

	.sa-section .is-frances .sa-team-card__social {
		top: 84px;
		left: 80px;
		gap: 11.9px !important;
	}

	.sa-section .is-dov .sa-team-card__social {
		top: 81.4px;
		left: 78.1px;
		gap: 12.5px !important;
	}

	.sa-team-card__social img {
		width: 17px !important;
	}

	/* Request a quote */
	.sa-quote.wp-block-cover {
		min-height: 0 !important;
		padding: 25px 0 69px !important;
	}

	.sa-quote .wp-block-cover__background {
		background: linear-gradient(to top, rgba(96, 110, 178, 0.04), rgba(162, 169, 206, 0.86) 23.556%, rgba(229, 229, 234, 0.79) 50.96%) !important;
	}

	.sa-quote .wp-block-cover__image-background {
		inset: auto;
		top: -79.71%;
		left: 0;
		height: 282.35%;
		object-fit: fill;
	}

	.sa-section.sa-quote .wp-block-columns {
		row-gap: 17px !important;
	}

	.sa-quote .wp-block-column > p {
		margin-top: 0 !important;
		font-size: 12px !important;
		text-transform: uppercase;
	}

	.sa-quote-form {
		position: relative;
		gap: 5px;
		padding: 20px 35px;
		background: rgba(244, 244, 246, 0.84);
	}

	.sa-quote-form__fields {
		gap: 5px;
	}

	.sa-quote-form label {
		font-size: 10px;
	}

	.sa-quote-form input[type="text"],
	.sa-quote-form input[type="email"] {
		height: 28px;
		border-radius: 8px;
	}

	.sa-quote-form textarea {
		height: 92px;
		border-radius: 8px;
	}

	.sa-quote-form button[type="submit"] {
		position: absolute;
		top: calc(100% + 18px);
		left: 50%;
		width: 180px;
		min-height: 30px;
		padding: 0;
		background: var(--theme-palette-color-1);
		font-weight: 700;
		transform: translateX(-50%);
	}

	/* Testimonials: smaller cards with the avatar on the right */
	.sa-section.sa-testimonials {
		min-height: 0 !important;
		padding-top: 25px !important;
		padding-bottom: 0 !important;
		background-color: var(--theme-palette-color-6) !important;
	}

	.sa-testimonials > h2 {
		letter-spacing: 0.2px !important;
	}

	.sa-section .sa-testimonials__row {
		width: auto;
		max-width: none;
		margin: 20px 0 0 4vw !important;
	}

	.sa-testimonials__list {
		gap: 12px !important;
		width: 100%;
		height: 143px;
		padding-bottom: 0;
	}

	.sa-section .sa-tcard {
		position: relative;
		flex: 0 0 231px;
		height: 139px;
		min-height: 0 !important;
		padding: 18px 4px 18px 22px !important;
		overflow: hidden;
	}

	.sa-section .sa-tcard__text {
		font-size: 9px !important;
	}

	.sa-section .sa-tcard__row,
	.sa-section .sa-tcard__person {
		display: block;
		margin: 0 !important;
	}

	.sa-section .sa-tcard__name {
		font-size: 10px !important;
		letter-spacing: 0.1px !important;
	}

	.sa-section .sa-tcard__role {
		margin-top: 4px !important;
		font-size: 9px !important;
	}

	.sa-section .sa-tcard__avatar {
		position: absolute;
		top: 77px;
		left: 171px;
	}

	.sa-tcard__avatar img {
		width: 45px !important;
	}

	.sa-section .sa-tcard__stars {
		position: absolute;
		top: 110px;
		left: 22px;
		margin: 0 !important;
	}

	.sa-tcard__stars img {
		display: block;
		width: 66px !important;
	}

	.sa-testimonials__next {
		display: none;
	}
}

/* iPad vertical: the mobile layout with sizes between mobile and desktop. Headings and buttons are set in the Customizer. */
@media (min-width: 690px) and (max-width: 999.98px) {
	/* Header icons */
	.ct-header-search::before,
	.ct-header-trigger::before {
		width: 24px;
		height: 24px;
	}

	.sa-header-icons {
		gap: 12px;
	}

	.sa-header-icons a:first-child img {
		width: 28px;
		height: 23px;
	}

	.sa-header-icons a:last-child img {
		width: 26px;
		height: 26px;
	}

	[data-device="mobile"] .ct-header-search {
		margin-inline-end: 2px !important;
	}

	/* Hero */
	.sa-hero {
		padding-top: 36px !important;
		padding-bottom: 8px !important;
	}

	.sa-hero .wp-block-column:nth-child(2) .wp-block-image {
		width: 240px;
	}

	.sa-hero .wp-block-column:nth-child(2) img {
		width: 240px !important;
	}

	.sa-section.sa-hero h1 {
		margin: 28px 0 20px !important;
	}

	.sa-hero .wp-block-column > p {
		max-width: 640px;
		margin-inline: auto !important;
		padding-inline: 0;
		font-size: 15px !important;
	}

	.sa-section .sa-hero__gallery {
		margin-top: 16px !important;
	}

	/* Products */
	.sa-section.sa-products {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}

	.sa-products .wp-block-column:first-child > h2 {
		font-size: 28px !important;
	}

	.sa-products .wp-block-column:first-child > p {
		font-size: 16px !important;
	}

	.sa-products .wp-block-column:first-child > p:nth-of-type(2) {
		font-size: 15px !important;
	}

	.sa-section .sa-carousel {
		height: 282px;
		margin-top: 28px !important;
	}

	.sa-carousel__track {
		left: 50%;
		width: 450px;
	}

	.sa-carousel__track img {
		height: 244px;
	}

	.sa-carousel__track figcaption {
		width: 220px;
		height: 26px;
		font-size: 18px;
		line-height: 26px;
	}

	.sa-carousel__nav,
	.sa-carousel__nav.is-prev,
	.sa-carousel__nav.is-next {
		top: 106px;
		width: 32px;
		height: 32px;
		background-size: 22px;
	}

	.sa-carousel__nav.is-prev {
		left: calc(50% - 262px);
	}

	.sa-carousel__nav.is-next {
		left: calc(50% + 230px);
	}

	.sa-carousel__dots {
		top: 262px;
		left: 0;
	}

	.sa-carousel__dot {
		width: 7px;
		height: 7px;
	}

	.sa-carousel__symbol {
		top: -196px;
		right: -2vw;
		width: 170px;
	}

	.sa-section .sa-categories__title {
		margin: 32px 0 16px !important;
		font-size: 16px !important;
	}

	.sa-section .sa-categories__pills {
		gap: 12px;
		font-size: 14px !important;
	}

	.sa-categories__pills a {
		width: 340px;
		height: 40px;
	}

	/* Seasonal catalogue */
	.sa-catalogue {
		padding-top: 40px !important;
		padding-bottom: 36px !important;
	}

	.sa-catalogue .wp-block-column:first-child .wp-block-group {
		gap: 12px !important;
	}

	.sa-catalogue h2 {
		font-size: 28px !important;
	}

	.sa-catalogue .wp-block-group > p {
		font-size: 16px !important;
	}

	.sa-catalogue .wp-block-group > p:nth-of-type(2) {
		max-width: 640px;
		font-size: 15px !important;
	}

	.sa-section .sa-catalogue__bg {
		top: 40px;
		height: 100%;
	}

	.sa-section .sa-catalogue__cover-mobile {
		width: 420px;
		margin-top: 8px !important;
	}

	.sa-section .sa-catalogue__cover-mobile img {
		width: 420px !important;
	}

	.sa-btn-small .wp-block-button__link {
		min-width: 240px;
	}

	/* Team */
	.sa-section.sa-team {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}

	.sa-team > p {
		font-size: 15px !important;
	}

	.sa-section.sa-team .wp-block-columns {
		row-gap: 24px !important;
		margin-top: 32px !important;
	}

	.sa-section .sa-team-card .sa-team-card__photo {
		flex: 0 0 160px !important;
		margin: 0 -18px 0 0 !important;
	}

	.sa-team-card__photo img {
		width: 160px !important;
	}

	.sa-section .sa-team-card .sa-team-card__panel {
		flex: 0 0 240px !important;
		min-height: 150px !important;
		margin-top: 0;
		padding: 26px 12px 16px 36px !important;
	}

	.sa-team-card__panel > p {
		font-size: 13px !important;
	}

	.sa-team-card__panel > p:nth-of-type(2) {
		max-width: none;
		margin-top: 2px !important;
		font-size: 12px !important;
	}

	.sa-section .sa-team-card .sa-team-card__social {
		position: static;
		gap: 8px !important;
		margin: 8px 0 0 !important;
	}

	.sa-team-card__social img {
		width: 24px !important;
	}

	/* Request a quote */
	.sa-quote.wp-block-cover {
		padding: 40px 0 100px !important;
	}

	.sa-section.sa-quote .wp-block-columns {
		row-gap: 24px !important;
	}

	.sa-quote .wp-block-column > p {
		margin-top: 6px !important;
		font-size: 14px !important;
	}

	.sa-quote-form {
		padding: 28px 40px;
	}

	.sa-quote-form__fields {
		gap: 10px;
	}

	.sa-quote-form label {
		font-size: 13px;
	}

	.sa-quote-form input[type="text"],
	.sa-quote-form input[type="email"] {
		height: 38px;
		border-radius: 10px;
	}

	.sa-quote-form textarea {
		height: 110px;
		border-radius: 10px;
	}

	.sa-quote-form button[type="submit"] {
		top: calc(100% + 24px);
		width: 240px;
		min-height: 42px;
	}

	/* Testimonials */
	.sa-section.sa-testimonials {
		padding-top: 40px !important;
	}

	.sa-section .sa-testimonials__row {
		margin-top: 28px !important;
	}

	.sa-testimonials__list {
		gap: 16px !important;
		height: 200px;
	}

	.sa-section .sa-tcard {
		flex: 0 0 310px;
		height: 192px;
		padding: 20px 20px 18px 24px !important;
	}

	.sa-section .sa-tcard__text {
		font-size: 12px !important;
	}

	.sa-section .sa-tcard__name {
		margin-top: 4px !important;
		font-size: 13px !important;
	}

	.sa-section .sa-tcard__role {
		margin-top: 2px !important;
		font-size: 12px !important;
	}

	.sa-section .sa-tcard__avatar {
		top: 112px;
		left: 228px;
	}

	.sa-tcard__avatar img {
		width: 60px !important;
	}

	.sa-section .sa-tcard__stars {
		top: 156px;
		left: 22px;
	}

	.sa-tcard__stars img {
		width: 86px !important;
	}

	/* Footer */
	.sa-footer-scenic-mobile {
		height: 12.05vw;
	}

	.sa-footer-scenic-mobile .wp-block-image {
		top: 2.44vw;
	}

	.sa-footer-scenic-mobile .wp-block-image:last-child {
		top: 6.89vw;
	}

	.ct-footer .sa-footer-mobile {
		padding-top: 36px !important;
		padding-bottom: 24px !important;
	}

	.ct-footer .sa-footer-mobile__logo {
		top: 16px;
	}

	.ct-footer .sa-footer-mobile__logo img {
		width: 190px !important;
	}

	.sa-footer-mobile .is-nowrap img {
		width: 26px !important;
	}

	.sa-footer-mobile p {
		font-size: 13px !important;
	}

	.sa-footer-mobile > p {
		font-size: 11px !important;
	}
}

/* ==== Inner pages: only what the Customizer and block options cannot do ==== */

/* Angled photo in the introduction */
.sa-about-intro__photo {
	position: relative;
	width: 97%;
	margin-inline: auto;
	overflow: hidden;
	aspect-ratio: 663.145 / 405.765;
	transform: rotate(3deg);
}

.sa-about-intro__photo img {
	position: absolute;
	top: -8.78%;
	left: -13.36%;
	width: 122.81%;
	max-width: none;
	height: 117.66%;
}

/* Keeps the empty paragraph in photo-only cover blocks from adding space. */
.sa-about-photo .wp-block-cover__inner-container p:empty {
	display: none;
}

/* Industry cards: details show on hover. Touch screens have no hover, so they always show them.
   The details are collapsed rather than display:none so keyboards and screen readers still reach them. */
.sa-industry {
	box-sizing: border-box;
	min-height: 360px;
	margin: 0 !important;
}

.sa-industry .wp-block-cover {
	height: 100%;
}

.sa-industry__more {
	height: 0;
	margin: 0 !important;
	overflow: hidden;
}

.sa-industry:nth-child(4) .wp-block-cover__image-background {
	inset: auto;
	top: -12.94%;
	left: -4.12%;
	width: 122.41%;
	max-width: none;
	height: 125.78%;
	object-fit: fill;
}

@media (hover: hover) and (min-width: 1000px) {
	.sa-industry:is(:hover, :focus-within) {
		box-shadow: inset 0 0 0 2px var(--theme-palette-color-1), 0 12px 24px rgba(66, 85, 99, 0.1);
	}

	.sa-industry:is(:hover, :focus-within) .wp-block-cover {
		height: 112px;
		min-height: 112px !important;
	}

	.sa-industry:is(:hover, :focus-within) .wp-block-cover__background {
		background: linear-gradient(169.14deg, rgba(66, 85, 99, 0) 25%, rgba(66, 85, 99, 0.2) 75%) !important;
		opacity: 1 !important;
	}

	.sa-industry:is(:hover, :focus-within) .wp-block-cover h3 {
		font-size: 24px !important;
		text-align: left;
	}

	.sa-industry:is(:hover, :focus-within) .sa-industry__more {
		height: auto;
		overflow: visible;
	}

	.sa-industry:nth-child(1):is(:hover, :focus-within) .wp-block-cover__image-background {
		opacity: 0.78;
	}

	.sa-industry:nth-child(4):is(:hover, :focus-within) .wp-block-cover__image-background {
		top: -115.98%;
		left: 0;
		width: 100%;
		height: 349.82%;
	}
}

@media (hover: none), (max-width: 999.98px) {
	.sa-industry {
		min-height: 0;
	}

	.sa-industry .wp-block-cover {
		height: 180px;
		min-height: 180px !important;
	}

	.sa-industry .wp-block-cover__background {
		background: linear-gradient(169.14deg, rgba(66, 85, 99, 0) 25%, rgba(66, 85, 99, 0.2) 75%) !important;
		opacity: 1 !important;
	}

	.sa-industry .wp-block-cover h3 {
		font-size: 24px !important;
		text-align: left;
	}

	.sa-industry__more {
		height: auto;
		overflow: visible;
	}

	.sa-industry:nth-child(4) .wp-block-cover__image-background {
		top: -115.98%;
		left: 0;
		width: 100%;
		height: 349.82%;
	}
}

/* Below the design's width the card text wraps more, so cards are taller to hold it without jumping on hover. */
@media (hover: hover) and (min-width: 1000px) and (max-width: 1279.98px) {
	.sa-industry {
		min-height: 410px;
	}
}

@media (min-width: 1000px) and (max-width: 1279.98px) {
	.sa-section.sa-page h1 {
		font-size: 40px !important;
	}

	.sa-section.sa-page h2 {
		font-size: 30px !important;
	}

	.sa-page-text {
		font-size: 16px !important;
	}

	.sa-page-invitation__row {
		flex-wrap: wrap !important;
		gap: 32px !important;
	}

	.sa-page-invitation__row > .wp-block-group {
		flex-basis: 100% !important;
	}

	.sa-page-invitation__buttons {
		gap: 16px !important;
	}

	.sa-section.sa-about-approach .wp-block-columns {
		column-gap: 28px !important;
	}

	.sa-about-value-title {
		font-size: 20px !important;
	}
}

/* iPad vertical and phones: one column */
@media (max-width: 999.98px) {
	.sa-section.sa-page .wp-block-columns {
		row-gap: 28px !important;
	}

	.sa-section.sa-page {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}

	/* The cards section already ends with its blue line, so the dark mobile divider would double it. */
	.sa-section.sa-page-invitation {
		border-top: 0;
	}

	.sa-section .sa-page-intro__columns {
		margin-top: 24px !important;
	}

	.sa-section .sa-industry .wp-block-cover h3 {
		font-size: 20px !important;
	}

	.sa-page-label {
		font-size: 13px !important;
	}

	.sa-page-eyebrow {
		font-size: 16px !important;
	}

	.sa-page-text {
		font-size: 15px !important;
	}

	.sa-section .sa-about-intro__photo {
		width: 92%;
	}

	.sa-page .wp-block-column > h1,
	.sa-page .wp-block-column > h2 {
		margin-top: 12px !important;
		margin-bottom: 12px !important;
	}

	.sa-about-photo.wp-block-cover {
		min-height: 340px !important;
	}

	.sa-section.sa-about-approach .wp-block-columns {
		flex-wrap: wrap !important;
		column-gap: 32px !important;
	}

	.sa-section.sa-about-approach .wp-block-column {
		flex-basis: calc(50% - 16px) !important;
	}

	.sa-about-value-title {
		font-size: 18px !important;
	}

	.sa-section .sa-about-industries__title {
		font-size: 28px !important;
	}

	.sa-section .sa-about-industries__title + p,
	.sa-section .sa-industries {
		margin-top: 20px !important;
	}

	.sa-section .sa-industries {
		padding-right: 0 !important;
	}

	.sa-section .sa-industry__tagline {
		font-size: 16px !important;
	}

	.sa-section .sa-industry__text {
		font-size: 14px !important;
	}

	.sa-btn--link .wp-block-button__link {
		padding-inline: 0 !important;
		font-size: 13px !important;
		white-space: normal;
	}

	.sa-page-invitation__row {
		flex-wrap: wrap !important;
		gap: 24px !important;
	}

	.sa-page-invitation__row > .wp-block-group {
		flex-basis: 100% !important;
	}

	.sa-page-invitation__buttons {
		flex-wrap: wrap !important;
		gap: 16px !important;
	}

	.sa-btn--pill .wp-block-button__link {
		font-size: 14px !important;
	}
}

@media (max-width: 689.98px) {
	.sa-section.sa-page {
		padding-top: 25px !important;
		padding-bottom: 25px !important;
	}

	.sa-section.sa-page .wp-block-columns {
		row-gap: 20px !important;
	}

	.sa-page-label {
		font-size: 11px !important;
	}

	.sa-page-eyebrow {
		font-size: 13px !important;
	}

	.sa-page-text {
		font-size: 12px !important;
	}

	.sa-about-photo.wp-block-cover {
		min-height: 220px !important;
	}

	.sa-section.sa-about-approach .wp-block-columns {
		row-gap: 24px !important;
	}

	.sa-section.sa-about-approach .wp-block-column {
		flex-basis: 100% !important;
	}

	.sa-about-value-title {
		font-size: 14px !important;
	}

	.sa-section .sa-about-industries__title {
		font-size: 20px !important;
	}

	.sa-section .sa-industries {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.sa-industry .wp-block-cover {
		height: 150px;
		min-height: 150px !important;
	}

	.sa-section .sa-industry .wp-block-cover h3 {
		font-size: 16px !important;
	}

	.sa-section .sa-page-intro__columns {
		margin-top: 16px !important;
	}

	.sa-section .sa-industry__tagline {
		margin-top: 12px !important;
		font-size: 13px !important;
	}

	.sa-section .sa-industry__text {
		margin-top: 8px !important;
		font-size: 12px !important;
	}

	.sa-section .sa-industry .wp-block-buttons {
		margin-top: 8px !important;
	}

	.sa-btn--link .wp-block-button__link {
		font-size: 11px !important;
	}

	.sa-btn--pill .wp-block-button__link {
		font-size: 11px !important;
	}
}

/* ==== Services page: only what the Customizer and block options cannot do ==== */

/* Angled photo. Figma lets it run 28px past the content width and cuts it there. */
.sa-services-intro__columns > .wp-block-column:last-child {
	clip-path: inset(-60px -4.23% -60px -60px);
}

.sa-section .sa-services-intro__photo {
	width: 101.2%;
	max-width: none;
	margin-left: 4.64%;
	transform: rotate(3deg);
}

/* Block options can set these widths but cannot stop them shrinking. */
.sa-services-option > .wp-block-cover,
.sa-services-step__number {
	flex-shrink: 0;
}

/* Small laptops: narrower step columns */
@media (min-width: 1000px) and (max-width: 1279.98px) {
	.sa-section .sa-services-steps {
		column-gap: 16px !important;
	}

	.sa-section .sa-services-step {
		padding-inline: 0 !important;
	}

	.sa-section .sa-services-step__title {
		font-size: 17px !important;
	}
}

/* iPad vertical and phones */
@media (max-width: 999.98px) {
	.sa-services-intro__columns > .wp-block-column:last-child {
		clip-path: none;
	}

	.sa-section .sa-services-intro__photo {
		width: 92%;
		margin: 16px auto !important;
	}

	.sa-section.sa-services-process .wp-block-cover__inner-container > * + * {
		margin-top: 20px !important;
	}

	.sa-section .sa-services-cards,
	.sa-section .sa-services-steps {
		margin-top: 20px !important;
	}

	/* Three cards stay in a row on iPad. */
	.sa-section .sa-services-cards {
		flex-wrap: nowrap !important;
		column-gap: 16px !important;
	}

	.sa-section .sa-services-cards > .wp-block-column {
		flex-basis: 0 !important;
	}

	.sa-section .sa-service .wp-block-cover {
		min-height: 170px !important;
	}

	.sa-section .sa-service__details {
		padding: 16px !important;
	}

	.sa-section .sa-service h3 {
		font-size: 18px !important;
	}

	.sa-section .sa-service__text,
	.sa-section .sa-services-option__text {
		margin-top: 10px !important;
		font-size: 14px !important;
	}

	.sa-section .sa-services-option > .wp-block-cover {
		flex-basis: 170px !important;
		min-height: 0 !important;
	}

	.sa-section .sa-services-option__copy {
		padding: 20px !important;
	}

	.sa-section .sa-services-option h3 {
		font-size: 20px !important;
	}

	/* Steps go two by two on iPad. */
	.sa-section .sa-services-steps {
		flex-wrap: wrap !important;
		gap: 20px 24px !important;
	}

	.sa-section .sa-services-steps > .wp-block-column {
		flex-basis: calc(50% - 12px) !important;
		padding: 0 !important;
	}

	.sa-section .sa-services-step__title {
		font-size: 18px !important;
	}

	.sa-section .sa-services-step__header {
		align-items: center;
	}
}

@media (max-width: 689.98px) {
	.sa-section .sa-services-cards {
		flex-wrap: wrap !important;
		row-gap: 16px !important;
	}

	.sa-section .sa-services-cards > .wp-block-column,
	.sa-section .sa-services-steps > .wp-block-column {
		flex-basis: 100% !important;
	}

	.sa-section .sa-service .wp-block-cover {
		min-height: 190px !important;
	}

	.sa-section .sa-service__details {
		padding: 14px !important;
	}

	.sa-section .sa-service h3 {
		font-size: 14px !important;
	}

	.sa-section .sa-service__text,
	.sa-section .sa-services-option__text {
		margin-top: 6px !important;
		font-size: 12px !important;
	}

	.sa-section .sa-services-option > .wp-block-cover {
		flex-basis: 100px !important;
	}

	.sa-section .sa-services-option__copy {
		padding: 12px !important;
	}

	.sa-section .sa-services-option h3 {
		font-size: 14px !important;
	}

	.sa-section .sa-services-steps {
		row-gap: 16px !important;
	}

	.sa-section .sa-services-step__number {
		flex-basis: 36px !important;
		min-height: 36px !important;
	}

	.sa-section .sa-services-step__title {
		font-size: 14px !important;
	}

	.sa-section .sa-services-step .sa-page-text {
		margin-top: 8px !important;
	}
}

/* ==== Catalogue page: only what the Customizer and block options cannot do ==== */

/* Home's button has a smaller gap before the arrow. */
.sa-catalogue-page .sa-btn .wp-block-button__link {
	gap: 18px;
}

/* iPad vertical and phones: the right column drops below the text, so the wordmark lines up on the left. */
@media (max-width: 999.98px) {
	.sa-section .sa-page-brand > * {
		margin-right: auto !important;
		margin-left: 0 !important;
	}

	.sa-section.sa-page .sa-catalogue-page__title {
		margin-top: 24px !important;
		margin-right: 0 !important;
		font-size: 28px !important;
	}

	.sa-section .sa-catalogue-page .sa-btn .wp-block-button__link {
		padding-inline: 32px !important;
	}

	.sa-section .sa-catalogue-page__booklet {
		max-width: 560px;
		margin: 24px auto 0 !important;
	}
}

@media (max-width: 689.98px) {
	.sa-section.sa-page .sa-catalogue-page__title {
		margin-top: 20px !important;
		font-size: 20px !important;
	}

	.sa-section .sa-page-brand > * {
		max-width: 300px !important;
	}

	.sa-section .sa-page-brand__tagline {
		font-size: 10px !important;
	}
}

/* ==== Contact page: only what the Customizer and block options cannot do ==== */

/* Inline images leave a gap under them, which would push the icons out of line with their labels. */
.sa-contact-block img {
	display: block;
}

/* Blocksy's form settings in the Customizer also style the Home form, so this form's own look is set here. */
.sa-contact-form {
	--theme-form-field-height: 52px;
	--theme-form-font-size: 15px;
	--theme-form-field-border-radius: 12px;
	--theme-form-field-background-initial-color: var(--theme-palette-color-6);
	--theme-form-field-background-focus-color: var(--theme-palette-color-6);
	--theme-form-field-border-initial-color: #d0d2dd;
	--theme-form-field-border-focus-color: var(--theme-palette-color-1);
	--theme-form-text-initial-color: var(--theme-palette-color-3);
	--theme-form-text-focus-color: var(--theme-palette-color-3);
	display: grid;
	gap: 24px;
	margin-top: 24px;
}

.sa-contact-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.sa-contact-form label {
	display: block;
	margin: 0 0 8px;
	color: var(--theme-palette-color-3);
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
}

.sa-contact-form input:not([type="checkbox"], [type="file"]),
.sa-contact-form select,
.sa-contact-form textarea {
	width: 100%;
	padding-inline: 16px;
}

.sa-contact-form textarea {
	height: 120px;
	padding-block: 16px;
	line-height: 20px;
	resize: vertical;
}

.sa-contact-form ::placeholder {
	color: var(--theme-palette-color-3);
	opacity: 0.65;
}

.sa-contact-form select,
.sa-contact-form .sa-contact-form__date[type="text"] {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='4' viewBox='0 0 6 4'%3E%3Cpath fill='%23425563' fill-opacity='.65' d='M0 0h6L3 4z'/%3E%3C/svg%3E");
	background-position: right 25px center;
	background-repeat: no-repeat;
	background-size: 6px 4px;
}

/* The select's first option is its hint, so it matches the other fields' hints until something is chosen. */
.sa-contact-form select:has(option[value=""]:checked) {
	color: #808d96;
}

.sa-contact-form label.sa-contact-form__upload-label {
	margin-bottom: 10px;
}

.sa-contact-form__note {
	margin: 0 0 10px;
	color: var(--theme-palette-color-3);
	font-size: 14px;
	line-height: 18px;
	opacity: 0.65;
}

/* The real file input covers the whole area, so clicking and dragging a file both work. */
.sa-contact-form__upload {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	box-sizing: border-box;
	min-height: 84px;
	padding: 20px;
	border: 1px dashed var(--theme-palette-color-1);
	border-radius: 12px;
	color: var(--theme-palette-color-3);
	font-size: 14px;
	line-height: 1.5;
}

.sa-contact-form__upload:focus-within {
	outline: 2px solid var(--theme-palette-color-1);
	outline-offset: 2px;
}

.sa-contact-form__upload img {
	flex: none;
}

.sa-contact-form__upload-title {
	display: block;
}

.sa-contact-form .sa-contact-form__file {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
	opacity: 0;
}

.sa-contact-form label.sa-contact-form__consent {
	display: flex;
	gap: 12px;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
}

.sa-contact-form .sa-contact-form__consent input {
	appearance: none;
	flex: none;
	width: 18px;
	height: 18px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--theme-palette-color-1);
	border-radius: 3px;
	background: transparent;
	cursor: pointer;
}

.sa-contact-form .sa-contact-form__consent input::before {
	content: none;
}

.sa-contact-form .sa-contact-form__consent input:checked {
	background: var(--theme-palette-color-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3.5 3.5L11 1.5'/%3E%3C/svg%3E") center / 12px 10px no-repeat;
}

.sa-contact-form > .sa-btn {
	display: flex;
}

.sa-contact-form .sa-contact-form__submit {
	min-height: 52px;
	padding: 0 28px;
	border-radius: 100px;
	font-size: 15px;
}

/* Small laptops */
@media (min-width: 1000px) and (max-width: 1279.98px) {
	.sa-section .sa-contact-columns {
		column-gap: 40px !important;
	}

	.sa-section .sa-contact-panel {
		padding: 28px !important;
	}

	.sa-section .sa-contact-details__title {
		font-size: 28px !important;
	}

	.sa-section .sa-contact-block__value {
		font-size: 16px !important;
	}
}

/* iPad vertical and phones */
@media (max-width: 999.98px) {
	.sa-section.sa-contact-intro {
		padding-bottom: 140px !important;
	}

	/* Here the tagline sits over the mountain, where the blue is hard to read. */
	.sa-contact-intro .sa-page-brand__tagline {
		color: var(--theme-palette-color-6) !important;
	}

	.sa-section.sa-page .sa-contact-details__title {
		margin-top: 0 !important;
		font-size: 28px !important;
	}

	.sa-section .sa-contact-block {
		margin-top: 20px !important;
	}

	.sa-section .sa-contact-block__value {
		font-size: 16px !important;
	}

	.sa-section .sa-contact-details .wp-block-cover {
		min-height: 340px !important;
		margin: 28px 0 0 !important;
	}

	.sa-section .sa-contact-panel {
		padding: 24px !important;
	}

	.sa-section .sa-contact-panel h3 {
		font-size: 22px !important;
	}

	.sa-section .sa-contact-panel__text {
		margin-top: 14px !important;
		font-size: 14px !important;
	}

	.sa-contact-form {
		--theme-form-field-height: 42px;
		--theme-form-font-size: 14px;
		gap: 18px;
		margin-top: 18px;
	}

	.sa-contact-form label {
		font-size: 14px;
	}

	.sa-contact-form textarea {
		height: 110px;
		padding-block: 12px;
	}

	.sa-contact-form .sa-contact-form__submit {
		min-height: 42px;
		font-size: 14px;
	}
}

@media (max-width: 689.98px) {
	.sa-section.sa-contact-intro {
		padding-bottom: 90px !important;
	}

	.sa-section.sa-page .sa-contact-details__title {
		font-size: 20px !important;
	}

	.sa-section .sa-contact-block__label {
		font-size: 13px !important;
	}

	.sa-section .sa-contact-block__value {
		font-size: 14px !important;
	}

	.sa-section .sa-contact-details .wp-block-cover {
		min-height: 220px !important;
		margin-top: 20px !important;
	}

	.sa-section .sa-contact-panel {
		padding: 16px !important;
	}

	.sa-section .sa-contact-panel h3 {
		font-size: 16px !important;
	}

	.sa-section .sa-contact-panel__text {
		margin-top: 8px !important;
		font-size: 12px !important;
	}

	.sa-contact-form {
		--theme-form-field-height: 38px;
		--theme-form-font-size: 12px;
		gap: 14px;
		margin-top: 14px;
	}

	.sa-contact-form__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.sa-contact-form label {
		margin-bottom: 6px;
		font-size: 12px;
		line-height: 16px;
	}

	.sa-contact-form__note {
		font-size: 11px;
		line-height: 15px;
	}

	.sa-contact-form__upload {
		gap: 12px;
		min-height: 70px;
		padding: 14px;
		font-size: 12px;
	}

	.sa-contact-form label.sa-contact-form__consent {
		font-size: 11px;
		line-height: 18px;
	}

	.sa-contact-form .sa-contact-form__submit {
		min-height: 36px;
		padding: 0 22px;
		font-size: 11px;
	}
}

/* ==== Blog page: only what the Customizer and block options cannot do ==== */

.sa-blog-search {
	display: flex;
	flex: none;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	width: 300px;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border-radius: 12px;
	background: var(--theme-palette-color-6);
}

.sa-blog-search:focus-within {
	outline: 2px solid var(--theme-palette-color-1);
}

.sa-blog-search img {
	flex: none;
}

.sa-blog-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 20px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	color: var(--theme-palette-color-3);
	font-size: 15px;
}

.sa-blog-search input::placeholder {
	color: var(--theme-palette-color-3);
	opacity: 1;
}

.sa-blog-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

.sa-blog-topics a {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	height: 42px;
	padding: 0 21.5px;
	border: 1px solid #d0d2dd;
	border-radius: 100px;
	background: var(--theme-palette-color-6);
	color: var(--theme-palette-color-3);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.sa-blog-topics a:hover {
	border-color: var(--theme-palette-color-1);
	color: var(--theme-palette-color-1);
}

.sa-blog-topics a.is-active {
	border-color: var(--theme-palette-color-1);
	background: var(--theme-palette-color-1);
	color: var(--theme-palette-color-8);
}

/* This block's width option applies to the image rather than its frame, so the frame's size is set here. */
.sa-blog-card > .wp-block-post-featured-image {
	flex: 0 0 47.81%;
	width: 47.81%;
}

.sa-blog-card > .wp-block-post-featured-image a {
	display: block;
	height: 100%;
}

.sa-blog-card > .wp-block-post-featured-image img {
	display: block;
	width: 100%;
}

.sa-blog-card__link .wp-block-button__link {
	gap: 12px;
	min-height: 20px;
	padding: 0;
	font-size: 14px;
	line-height: 20px;
}

/* The next page's link, which "Load more stories" reads. People use the button below it instead. */
.sa-blog-list .wp-block-query-pagination {
	display: none;
}

.sa-blog-list.is-loading .sa-blog-more {
	opacity: 0.6;
}

.sa-blog-more__done {
	margin: 24px 0 0;
	color: var(--theme-palette-color-3);
	text-align: center;
}

/* Small laptops */
@media (min-width: 1000px) and (max-width: 1279.98px) {
	.sa-section .sa-blog-card__details {
		padding: 20px !important;
	}

	.sa-section .sa-blog-card h3 {
		font-size: 20px !important;
	}
}

/* iPad vertical and phones */
@media (max-width: 999.98px) {
	.sa-section .sa-blog-featured .sa-post-meta {
		font-size: 13px !important;
	}

	.sa-section .sa-blog-head {
		flex-wrap: wrap !important;
		gap: 16px !important;
	}

	.sa-blog-search {
		width: 100%;
		height: 42px;
	}

	.sa-section .sa-blog-topics {
		gap: 8px;
		margin-top: 16px;
	}

	.sa-blog-topics a {
		height: 36px;
		padding: 0 16px;
		font-size: 14px;
	}

	.sa-section .sa-blog-list-wrap {
		margin-top: 20px !important;
	}

	/* The photo fills the card's height, which now depends on its text. */
	.sa-section .sa-blog-card > .wp-block-post-featured-image {
		position: relative;
		flex-basis: 40%;
		width: 40%;
		height: auto;
		min-height: 200px;
	}

	.sa-section .sa-blog-card > .wp-block-post-featured-image img {
		position: absolute;
		top: 0;
		left: 0;
		height: 100% !important;
	}

	.sa-section .sa-blog-card__details {
		padding: 16px !important;
	}

	.sa-section .sa-blog-card h3 {
		margin-top: 10px !important;
		font-size: 18px !important;
	}

	.sa-section .sa-blog-card__text {
		margin-top: 10px !important;
		font-size: 14px !important;
	}

	.sa-section .sa-blog-card__meta {
		margin-top: 10px !important;
		font-size: 12px !important;
	}

	.sa-section .sa-blog-card__link {
		margin-top: 0;
	}

	.sa-section .sa-blog-card__link .wp-block-button__link {
		margin-top: 10px !important;
		font-size: 13px;
	}
}

@media (max-width: 689.98px) {
	.sa-section .sa-blog-featured-wrap {
		margin-top: 24px !important;
	}

	.sa-section .sa-blog-featured .wp-block-post-terms {
		font-size: 11px !important;
	}

	.sa-section .sa-blog-featured .wp-block-post-title,
	.sa-section .sa-blog-featured .wp-block-post-excerpt,
	.sa-section .sa-blog-featured .sa-post-meta,
	.sa-section .sa-blog-featured .wp-block-button__link {
		margin-top: 12px !important;
	}

	.sa-section .sa-blog-featured .sa-post-meta {
		font-size: 11px !important;
	}

	.sa-section .sa-blog-search {
		height: 38px;
	}

	.sa-blog-search input[type="search"] {
		font-size: 12px;
	}

	.sa-blog-topics a {
		height: 30px;
		padding: 0 12px;
		font-size: 12px;
	}

	.sa-section .sa-blog-card {
		flex-direction: column !important;
	}

	.sa-section .sa-blog-card > .wp-block-post-featured-image {
		flex-basis: auto;
		width: 100%;
		height: 170px;
		min-height: 0;
	}

	.sa-section .sa-blog-card > .wp-block-post-featured-image img {
		border-radius: 15px 15px 0 0 !important;
	}

	.sa-section .sa-blog-card__details {
		padding: 14px !important;
	}

	.sa-section .sa-blog-card__topic {
		font-size: 11px !important;
	}

	.sa-section .sa-blog-card h3 {
		margin-top: 8px !important;
		font-size: 14px !important;
	}

	.sa-section .sa-blog-card__text {
		margin-top: 8px !important;
		font-size: 12px !important;
	}

	.sa-section .sa-blog-card__meta {
		margin-top: 8px !important;
		font-size: 11px !important;
	}

	.sa-section .sa-blog-card__link .wp-block-button__link {
		margin-top: 8px !important;
		font-size: 11px;
	}
}

/* ==== Single story: only what the Customizer and block options cannot do ==== */

/* Every story's text, so new posts look right without setting each block. */
.single-post .entry-content > p,
.single-post .entry-content > ul,
.single-post .entry-content > ol {
	color: var(--theme-palette-color-3);
	font-size: 18px;
	line-height: 1.55;
}

.single-post .entry-content > h2 {
	margin-top: 36px;
	margin-bottom: 14px;
	color: #111111;
	font-size: 28px;
	line-height: 1.15;
}

.single-post .entry-content > h3 {
	margin-top: 28px;
	margin-bottom: 10px;
	color: var(--theme-palette-color-1);
	font-size: 20px;
	line-height: 1.3;
}

.single-post .entry-content > p a {
	color: var(--theme-palette-color-1);
}

.single-post .entry-content > .wp-block-image {
	margin-block: 28px;
}

.single-post .entry-content > .wp-block-image img,
.single-post .ct-featured-image img {
	border-radius: 15px;
}

.single-post .entry-content > .wp-block-image figcaption {
	margin-top: 10px;
	color: var(--theme-palette-color-3);
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

.single-post .entry-content > .wp-block-quote {
	margin-block: 28px;
	padding: 4px 0 4px 20px;
	border: 0;
	border-left: 3px solid var(--theme-palette-color-1);
}

.single-post .entry-content > .wp-block-quote p {
	margin: 0;
	color: var(--theme-palette-color-4);
	font-size: 20px;
	font-style: normal;
	font-weight: 500;
	line-height: 1.4;
}

/* Blocksy only sets its content width inside its page wrapper, and this section comes after that. */
.sa-story-cta {
	--theme-block-max-width: var(--theme-normal-container-max-width);
	--theme-block-width: var(--theme-container-width);
	--wp--style--global--content-size: var(--theme-normal-container-max-width);
}

/* The topic above the title, in the same style as the labels on the other pages. */
.single-post .hero-section .entry-header > .entry-meta:first-child {
	--theme-font-size: 13px;
	--theme-font-weight: 700;
	--theme-text-transform: uppercase;
	--theme-link-initial-color: var(--theme-palette-color-1);
	--theme-link-hover-color: var(--theme-palette-color-6);
}

/* iPad vertical and phones */
@media (max-width: 999.98px) {
	.single-post .entry-content > p,
	.single-post .entry-content > ul,
	.single-post .entry-content > ol {
		font-size: 15px;
	}

	.single-post .entry-content > h2 {
		margin-top: 28px;
		font-size: 22px;
	}

	.single-post .entry-content > h3 {
		font-size: 18px;
	}

	.single-post .entry-content > .wp-block-quote p {
		font-size: 17px;
	}
}

@media (max-width: 689.98px) {
	.single-post .hero-section .entry-header > .entry-meta:first-child {
		--theme-font-size: 11px;
	}

	.single-post .entry-content > p,
	.single-post .entry-content > ul,
	.single-post .entry-content > ol {
		font-size: 12px;
	}

	.single-post .entry-content > h2 {
		margin-top: 20px;
		margin-bottom: 8px;
		font-size: 16px;
	}

	.single-post .entry-content > h3 {
		margin-top: 16px;
		margin-bottom: 6px;
		font-size: 14px;
	}

	.single-post .entry-content > .wp-block-image,
	.single-post .entry-content > .wp-block-quote {
		margin-block: 18px;
	}

	.single-post .entry-content > .wp-block-image figcaption {
		font-size: 11px;
	}

	.single-post .entry-content > .wp-block-quote p {
		font-size: 14px;
	}
}
