/*
Theme Name: Stay
Theme URI: https://varnify.com/themes/stay/
Author: Varnify
Author URI: https://varnify.com/
Description: For owners of a few holiday cottages, cabins or rooms who want guests to book direct. Each cottage is a leather fob on a brass ring, hung over your own photograph: what a stay really costs, everything in, and the way to book. A walk from the gate to the door, a key board of your cottages, a price list on the back of the fob, your visitors' book and your registration numbers.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.0.0
Update URI: https://varnify.com/themes/stay/
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: varnify-stay
Tags: block-patterns, full-site-editing, one-column, custom-colors, editor-style, wide-blocks, translation-ready
*/

/* ---------------------------------------------------------------------------
   Tokens the blocks do not cover.
   The display and text fonts are variables so an owner's own fonts (Styles,
   Typography) reach the fobs and prices too: see inc/class-varnify-stay-fonts.php.
   --------------------------------------------------------------------------- */

:root {
	--stay-display: var(--varnify-stay-font-heading, var(--wp--preset--font-family--bricolage));
	--stay-text: var(--varnify-stay-font-text, var(--wp--preset--font-family--bricolage));
	--stay-night: var(--wp--preset--color--night, #18120e);
	--stay-board: var(--wp--preset--color--board, #201913);
	/* The plain board the price list and the booking panel are made of, a shade up from the ground under it. */
	--stay-panel: color-mix(in oklab, var(--stay-board) 95%, var(--stay-hide));
	--stay-panel-edge: inset 0 0 0 1px rgba(246, 239, 228, 0.1), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
	--stay-hide: var(--wp--preset--color--hide, #f6efe4);
	--stay-mist: var(--wp--preset--color--mist, #c9bfb3);
	--stay-brass: var(--wp--preset--color--brass, #d8b061);
	--stay-ink: var(--wp--preset--color--ink, #2a1a10);

	/*
	 * The leathers. "Your leather" is the owner's one colour choice
	 * (Appearance, Your leather, or Styles, Colors), the palette's saddle.
	 * When a chosen leather cannot carry the hide-coloured lettering, the
	 * theme prints the nearest shade that can (--varnify-stay-leather, set
	 * by inc/class-varnify-stay-leather.php). Everything leather-coloured
	 * is worked out from it here: the burnished edge, the thread, the book's
	 * cover.
	 */
	--stay-saddle: var(--varnify-stay-leather, var(--wp--preset--color--saddle, #94552b));
	--stay-saddle-deep: color-mix(in oklab, var(--stay-saddle) 72%, #000);
	--stay-oxblood: var(--wp--preset--color--oxblood, #8a2c28);
	--stay-bottle: var(--wp--preset--color--bottle, #2f5b47);
	--stay-tan: var(--wp--preset--color--tan, #5e3b26);
	--stay-stitch: rgba(246, 239, 228, 0.5);
	--stay-rail: #4a3222;
	--stay-cord: #8a8378;
	--stay-gutter: var(--wp--custom--gutter, 1.5rem);
	--stay-section: var(--wp--preset--spacing--70, 7rem);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wp-site-blocks > * + *,
.varnify-stay-main > * + * {
	margin-block-start: 0;
}

/*
 * What is below the first screen is laid out and painted as the guest
 * scrolls near it, not before the opening photograph shows: the sections
 * after the walk, each of the walk's photographs and each photograph in a
 * cottage's gallery (whose frames already clip, and are sized by their
 * shape or their row, so nothing moves). The walk itself is
 * left alone, because its photographs run off the page's edges.
 */
@media screen {
	.varnify-stay-main > :not(:first-child):not(.varnify-stay-walk) {
		content-visibility: auto;
		contain-intrinsic-size: auto 60rem;
	}

	.varnify-stay-stop__photo,
	.wp-block-gallery.varnify-stay-gallery > figure.wp-block-image {
		content-visibility: auto;
	}
}

:where(h1, h2, h3, h4) {
	text-wrap: balance;
}

:where(p, li, dd) {
	text-wrap: pretty;
}

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

/* Form controls take the page's text font (the owner's, if they chose one). */
:where(button, input, select, textarea) {
	font-family: inherit;
}

:focus-visible {
	outline: 3px solid var(--stay-brass);
	outline-offset: 3px;
}

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

/* WordPress's skip link shows on focus by resetting clip-path; the old clip
   above would keep it cut to nothing, so the focused link was invisible. */
.screen-reader-text:focus {
	clip: auto;
}

.varnify-stay-starter-note {
	padding: 0.75rem 1rem;
	border: 1.5px dashed rgba(216, 176, 97, 0.7);
	border-radius: 6px;
	color: var(--stay-mist);
	font-size: var(--wp--preset--font-size--small);
}

/*
 * An example visitors' book entry is stamped "Example" in the margin, in
 * oxblood ink, the way an office stamps a specimen. A rubber stamp is never
 * pressed quite square, hence the small turn. It stays readable, and screen
 * readers hear "Example review: replace it with a real one."
 */
.varnify-stay-example-mark {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border: 2px solid currentColor;
	border-radius: 3px;
	outline: 1px solid currentColor;
	outline-offset: 2px;
	background: transparent;
	color: var(--wp--preset--color--oxblood, #8a2c28);
	font-family: var(--stay-display);
	font-size: 0.8125rem;
	font-style: normal;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transform: rotate(-5deg);
}

/* ---------------------------------------------------------------------------
   One grade for every photograph.
   The starter photographs come from many cameras and so will the owner's.
   One warm dusk grade, the light at the end of the drive, makes them a set:
   a little sepia and less saturation, then a wash of saddle and board laid
   over by multiply. Subtle on purpose; text over photographs has its own
   gradients and is checked for contrast on top of this.
   --------------------------------------------------------------------------- */

/*
 * The strength is per photograph: --varnify-stay-grade is 1 unless the
 * starter photograph says otherwise (Varnify_Stay_Starter::looks()), so a
 * photograph already taken in warm evening light is not pushed into grey,
 * and a bright summer green one is warmed a little more.
 */
:root {
	--stay-grade-wash: linear-gradient(180deg, rgba(148, 85, 43, 0.12) 0%, rgba(110, 61, 30, 0.08) 55%, rgba(32, 25, 19, 0.24) 100%);
}

:is(.varnify-stay-hero__photo, .varnify-stay-hero .wp-block-post-featured-image, .varnify-stay-stop__photo, .varnify-stay-main .wp-block-image) img,
.varnify-stay-keyfob__photo {
	--k: var(--varnify-stay-grade, 1);
	filter: sepia(calc(0.18 * var(--k))) saturate(calc(1 - 0.14 * var(--k))) contrast(calc(1 + 0.05 * var(--k))) brightness(calc(1 - 0.03 * var(--k)));
}

:where(.varnify-stay-stop__photo, .varnify-stay-main .wp-block-image:not(:has(figcaption))) {
	position: relative;
}

:is(.varnify-stay-hero__photo, .varnify-stay-hero .wp-block-post-featured-image, .varnify-stay-stop__photo, .varnify-stay-main .wp-block-image:not(:has(figcaption)))::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--stay-grade-wash);
	mix-blend-mode: multiply;
	pointer-events: none;
}

.varnify-stay-gallery .wp-block-image::after {
	border-radius: 6px;
}

/* Section heads: a large heading, the lede set to the right. */
.varnify-stay-head {
	gap: 1.25rem 3.5rem;
	margin-bottom: var(--wp--preset--spacing--60);
}

.varnify-stay-head > h2 {
	flex: 1 1 32rem;
	margin: 0;
}

.varnify-stay-lede {
	flex: 0 1 30rem;
	margin: 0;
	color: var(--stay-mist);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
}

.varnify-stay-walk,
.varnify-stay-keys,
.varnify-stay-prices,
.varnify-stay-before,
.varnify-stay-unit,
.varnify-stay-bookby {
	padding-block: var(--stay-section);
}

/* ---------------------------------------------------------------------------
   Header: the farm's name, the way round, the phone and the way to book,
   in its own dark strip on every page.

   It stays in reach. The header part is sticky (never fixed, so nothing
   moves on load); once the page has scrolled, varnify-stay-front.js marks
   it .is-stuck, and the strip tightens: less padding, the name a little
   smaller, the place line put away, and a line of saddle stitching fades in
   along its lower edge with a soft shadow under it, like the edge of a
   leather strap. The part keeps the height it had at the top (the script
   measures it), so the page below never jumps; the strip it leaves lets
   clicks through. Without the script it is sticky and never compact. An
   owner turns it off with the Group style "Scrolls away" on the header's
   group. Not applied in the Site Editor.
   --------------------------------------------------------------------------- */

:root {
	--stay-stuck-h: 64px;
}

@media (max-width: 1099px) {
	:root {
		--stay-stuck-h: 60px;
	}
}

.varnify-stay-bar {
	position: relative;
	gap: 0.75rem 2rem;
	padding: 1.25rem var(--stay-gutter);
	border-bottom: 1px solid rgba(246, 239, 228, 0.14);
	background: var(--stay-night);
	color: var(--stay-hide);
}

/* The stitching along the stuck strip's lower edge. */
.varnify-stay-bar::after {
	content: "";
	position: absolute;
	right: var(--stay-gutter);
	bottom: 2px;
	left: var(--stay-gutter);
	border-top: 2px dashed rgba(216, 176, 97, 0.6);
	opacity: 0;
	pointer-events: none;
}

html:not(:has(.is-style-varnify-stay-scrolls)) {
	/* Anchors and keyboard focus stop below the stuck header. */
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--stay-stuck-h) + 12px);
}

/* The header's own controls are already in view: no padding for them. */
html:not(:has(.is-style-varnify-stay-scrolls)) header.wp-block-template-part * {
	scroll-margin-top: calc(-1 * (var(--wp-admin--admin-bar--height, 0px) + var(--stay-stuck-h) + 12px));
}

body:not(.editor-styles-wrapper) header.wp-block-template-part:not(:has(.is-style-varnify-stay-scrolls)) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 40;
	min-height: var(--stay-head-h, auto);
	pointer-events: none;
}

body:not(.editor-styles-wrapper) header.wp-block-template-part:not(:has(.is-style-varnify-stay-scrolls)) > * {
	pointer-events: auto;
}

body:not(.editor-styles-wrapper) header.wp-block-template-part:not(:has(.is-style-varnify-stay-scrolls)) .varnify-stay-bar {
	transition: padding 0.18s ease-out, box-shadow 0.18s ease-out;
}

body:not(.editor-styles-wrapper) header.wp-block-template-part:not(:has(.is-style-varnify-stay-scrolls)) .varnify-stay-bar .wp-block-site-title {
	transform-origin: 0 50%;
	transition: transform 0.18s ease-out;
}

body:not(.editor-styles-wrapper) header.wp-block-template-part:not(:has(.is-style-varnify-stay-scrolls)) .varnify-stay-bar::after {
	transition: opacity 0.18s ease-out;
}

header.wp-block-template-part.is-stuck .varnify-stay-bar {
	padding-block: 7px;
	box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.85);
}

header.wp-block-template-part.is-stuck .varnify-stay-bar::after {
	opacity: 1;
}

header.wp-block-template-part.is-stuck .varnify-stay-bar .wp-block-site-title {
	transform: scale(0.86);
}

header.wp-block-template-part.is-stuck .varnify-stay-bar__place {
	display: none;
}

@media (max-width: 480px) {
	.varnify-stay-bar__place {
		display: none;
	}
}

/* The phone's admin bar scrolls away with the page. */
@media (max-width: 600px) {
	body.admin-bar:not(.editor-styles-wrapper) header.wp-block-template-part {
		top: 0;
	}
}

@media (max-width: 1099px) {
	header.wp-block-template-part.is-stuck .varnify-stay-bar {
		padding-block: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body:not(.editor-styles-wrapper) header.wp-block-template-part .varnify-stay-bar,
	body:not(.editor-styles-wrapper) header.wp-block-template-part .varnify-stay-bar .wp-block-site-title,
	body:not(.editor-styles-wrapper) header.wp-block-template-part .varnify-stay-bar::after {
		transition: none;
	}
}

.varnify-stay-bar > * {
	align-self: center;
}

.varnify-stay-bar__brand {
	gap: 0.3rem;
}

.varnify-stay-bar__brand > * {
	max-width: 100%;
}

.varnify-stay-bar .wp-block-site-title {
	margin: 0;
	font-family: var(--stay-display);
}

.varnify-stay-bar .wp-block-site-title a {
	color: inherit;
}

.varnify-stay-bar__place,
.varnify-stay-bar__names {
	margin: 0;
	color: var(--stay-mist);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
}

.varnify-stay-bar__nav a,
.varnify-stay-bar .varnify-stay-bar__nav a.wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
}

.varnify-stay-bar__nav a {
	color: var(--stay-mist);
}

.varnify-stay-bar__nav a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 6px;
}

.varnify-stay-bar__owners {
	gap: 1rem;
	align-items: center;
}

.varnify-stay-call {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 0 1.1rem;
	border: 2px solid var(--stay-brass);
	border-radius: 10px;
	background: rgba(24, 18, 14, 0.35);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	font-variant-numeric: tabular-nums lining-nums;
	white-space: nowrap;
}

.varnify-stay-call:hover {
	background: var(--stay-brass);
	color: var(--stay-ink);
}

/*
 * Book: a small leather tag with its brass eyelet, the fob's own shape in
 * little, so the way to book is in the header on every page.
 */
.varnify-stay-booktag {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 0 1.15rem 0 0.8rem;
	border-radius: 14px 8px 8px 14px;
	position: relative;
	isolation: isolate;
	background-color: var(--stay-saddle);
	box-shadow: var(--stay-leather-edge);
	color: #fff;
	font-family: var(--stay-display);
	font-size: 1.0625rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.varnify-stay-booktag::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: var(--stay-grain) 0 0 / 200px 200px;
	mix-blend-mode: soft-light;
	pointer-events: none;
}

.varnify-stay-booktag__eye {
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--stay-night);
	box-shadow: 0 0 0 2.5px var(--stay-brass), 0 1px 0 3px rgba(20, 10, 4, 0.45);
}

.varnify-stay-booktag:hover {
	background-color: var(--stay-saddle-deep);
	color: #fff;
}

.varnify-stay-booktag:focus-visible {
	outline-color: #fff;
}

@media (max-width: 1279px) {
	.varnify-stay-bar__names {
		display: none;
	}
}

/* Between the tablet's one row and a wide screen, the place line gives way so the links keep one row. */
@media (min-width: 1100px) and (max-width: 1379px) {
	.varnify-stay-bar__place {
		display: none;
	}
}

/*
 * Phones and tablets: one row. The name and the place on the left, then
 * the phone, the Book tag and the menu button; the links go in the menu.
 * Up to 1099px, where the links, the number and the Book tag no longer fit
 * on one row beside the name.
 */
@media (max-width: 1099px) {
	.varnify-stay-bar {
		padding: 0.75rem 1rem;
		flex-wrap: nowrap !important;
		gap: 0.75rem;
	}

	.varnify-stay-bar__brand {
		flex: 1 1 auto;
		gap: 0.15rem;
		min-width: 0;
	}

	/*
	 * The name is never cut short: it scales a little with the screen and,
	 * if it is long, wraps to a second line. The place line keeps to one
	 * line, and goes under 480px, so the strip stays 80px or less.
	 */
	.varnify-stay-bar .wp-block-site-title {
		font-size: clamp(1rem, 0.25rem + 3.6vw, 1.375rem) !important;
		line-height: 1.08;
		overflow-wrap: break-word;
		text-wrap: balance;
	}

	.varnify-stay-bar__place {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.varnify-stay-bar__names {
		display: none;
	}

	.varnify-stay-bar__nav {
		order: 3;
	}

	.varnify-stay-bar__owners {
		gap: 0.5rem;
	}

	/* The links live behind the menu button at every width up to here. */
	.varnify-stay-bar__nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
		width: 48px;
		height: 48px;
		align-items: center;
		justify-content: center;
		border: 2px solid rgba(246, 239, 228, 0.6);
		border-radius: 10px;
		color: inherit;
	}

	.varnify-stay-bar__nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.varnify-stay-bar__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex;
	}
}

@media (max-width: 781px) {
	.varnify-stay-call--short {
		width: 48px;
		padding: 0;
		justify-content: center;
	}

	.varnify-stay-call--short .varnify-stay-call__number {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.varnify-stay-booktag {
		padding: 0 0.8rem;
	}

	.varnify-stay-booktag__eye {
		display: none;
	}
}

/*
 * A phone: every pixel to the name, so a name like "Wattle Creek Farm"
 * keeps to one line from 360px. The call button, the Book tag and the menu
 * stay 48px tall and at least 44px wide.
 */
@media (max-width: 479px) {
	.varnify-stay-bar {
		padding-inline: 0.875rem;
		gap: 0.5rem;
	}

	.varnify-stay-bar__owners {
		gap: 0.375rem;
	}

	.varnify-stay-booktag {
		padding: 0 0.6rem;
	}

	/* Where the cottage's fob is docked at the foot of the screen, that is the way to book. */
	body:has(.varnify-stay-hero__fob) .varnify-stay-bar .varnify-stay-booktag {
		display: none;
	}
}

.varnify-stay-bar__nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--stay-night) !important;
	color: var(--stay-hide) !important;
	padding: 1.5rem;
}

.varnify-stay-bar__nav .wp-block-navigation__responsive-container.is-menu-open a {
	font-family: var(--stay-display);
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: -0.03em;
}

/* ---------------------------------------------------------------------------
   The opening photograph. Day turns to dusk as the page scrolls.
   --------------------------------------------------------------------------- */

.varnify-stay-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: max(38rem, min(100svh - 5.75rem, 62rem));
	color: #fff;
}

.varnify-stay-hero__photo,
.varnify-stay-hero .wp-block-post-featured-image {
	position: absolute !important;
	inset: 0;
	z-index: -2;
	margin: 0 !important;
}

.varnify-stay-hero__photo img,
.varnify-stay-hero .wp-block-post-featured-image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: 62% 60%;
}

.varnify-stay-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(to top, rgba(24, 18, 14, 0.88) 0%, rgba(24, 18, 14, 0.42) 40%, rgba(24, 18, 14, 0) 64%),
		linear-gradient(to bottom, rgba(24, 18, 14, 0.35) 0, rgba(24, 18, 14, 0) 6rem);
}

.varnify-stay-hero__words {
	position: absolute;
	left: var(--stay-gutter);
	bottom: clamp(2.5rem, 6vh, 4rem);
	width: min(48rem, 60vw);
}

.varnify-stay-hero__headline {
	margin: 0;
	color: #fff;
	font-family: var(--stay-display);
	font-size: var(--wp--preset--font-size--huge) !important;
	font-weight: 500;
	line-height: 0.94;
	letter-spacing: -0.05em;
}

.varnify-stay-hero__lede,
.varnify-stay-hero__lede p {
	max-width: 34rem;
	margin: 1.25rem 0 0;
	color: #fff;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
}

.varnify-stay-hero .wp-block-post-excerpt__more-text {
	display: none;
}

/*
 * The photograph is the backdrop of the whole first screen: it runs on up
 * behind the header's strip (which keeps its own solid ground over it), so
 * it is one full-screen picture with the words and the fob on it, and the
 * fob still hangs below the strip. The header is always drawn over it.
 */
header.wp-block-template-part {
	position: relative;
	z-index: 40;
}

body:not(.editor-styles-wrapper) .varnify-stay-main > .varnify-stay-hero:not(.varnify-stay-hero--board):first-child {
	--under: 6.5rem;
	margin-top: calc(-1 * var(--under)) !important;
	min-height: max(44.5rem, min(100svh + 0.75rem, 68.5rem));
}

@media (min-width: 782px) {
	body:not(.editor-styles-wrapper) .varnify-stay-main > .varnify-stay-hero:not(.varnify-stay-hero--board):first-child .varnify-stay-hero__fob {
		top: var(--under);
	}
}

/* Day to dusk, and the fob settling on its string: assets/css/varnify-stay-motion.css. */
.varnify-stay-hero__photo picture {
	display: contents;
}

/* ---------------------------------------------------------------------------
   The fob: stitched leather on a brass ring.
   --------------------------------------------------------------------------- */

.varnify-stay-fob {
	--string: 6.5rem;
	position: relative;
	width: 24rem;
	max-width: 100%;
	padding-top: var(--string);
	color: var(--stay-hide);
	font-family: var(--stay-text);
}

:root,
.varnify-stay-fob--saddle,
.varnify-stay-keyfob--saddle {
	--leather: var(--stay-saddle);
}

.varnify-stay-fob--oxblood,
.varnify-stay-keyfob--oxblood {
	--leather: var(--stay-oxblood);
}

.varnify-stay-fob--bottle,
.varnify-stay-keyfob--bottle {
	--leather: var(--stay-bottle);
}

.varnify-stay-fob--tan,
.varnify-stay-keyfob--tan {
	--leather: var(--stay-tan);
}

.varnify-stay-fob__string {
	position: absolute;
	top: 0;
	left: 50%;
	width: 2px;
	height: calc(var(--string) + 2.6rem);
	transform: translateX(-1px);
	background: var(--stay-cord);
}

.varnify-stay-fob__ring {
	position: absolute;
	z-index: 2;
	top: calc(var(--string) + 2.6rem);
	left: 50%;
	width: 58px;
	height: 58px;
	margin: -29px 0 0 -29px;
	border: 5px solid var(--stay-brass);
	border-radius: 50%;
	pointer-events: none;
}

.varnify-stay-fob__tag {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding: 5rem 1.75rem 1.75rem;
	border-radius: 30px 30px 20px 20px;
	background: var(--leather);
	--stitch: 9px;
	-webkit-mask: radial-gradient(circle at 50% 2.6rem, transparent 13px, #000 14px);
	mask: radial-gradient(circle at 50% 2.6rem, transparent 13px, #000 14px);
}

.varnify-stay-fob__tag p,
.varnify-stay-fob__tag dl {
	margin: 0;
}

.varnify-stay-fob__top {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.8125rem;
}

.varnify-stay-fob__name {
	font-family: var(--stay-display);
	font-size: clamp(2rem, 12cqi, 2.875rem);
	font-weight: 600;
	font-stretch: 85%;
	line-height: 0.95;
	letter-spacing: -0.035em;
}

.varnify-stay-fob__meta,
.varnify-stay-fob__what {
	font-size: 0.875rem;
	line-height: 1.4;
	overflow-wrap: break-word;
}

.varnify-stay-fob__cut {
	width: 100%;
	margin: 0.25rem 0;
	border: 0;
	border-top: 2px dashed rgba(246, 239, 228, 0.4);
}

.varnify-stay-fob__total {
	font-family: var(--stay-display);
	font-size: clamp(3.25rem, 23cqi, 5.5rem);
	font-weight: 600;
	font-stretch: 75%;
	line-height: 0.85;
	letter-spacing: -0.06em;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-fob__lines {
	display: grid;
	gap: 0.15rem;
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-fob__lines div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.varnify-stay-fob__lines dd {
	margin: 0;
}

.varnify-stay-fob__lines--levies {
	padding-top: 0.4rem;
	border-top: 2px solid rgba(246, 239, 228, 0.6);
}

.varnify-stay-fob__pay {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-fob__go {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	border-radius: 10px;
	background: #fff;
	color: var(--stay-ink);
	font-family: var(--stay-display);
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
}

.varnify-stay-fob__go:hover {
	background: var(--stay-hide);
	color: var(--stay-ink);
}

.varnify-stay-fob__tag :focus-visible {
	outline-color: #fff;
}

.varnify-stay-fob__go-short {
	display: none;
}

/* ---------------------------------------------------------------------------
   Leather: every fob, the back of the fob, the booking fob, the facts and
   the house book's cover are cut from the same hide.

   - Grain: a tile of SVG noise (feTurbulence) lit from the top left by
     feDiffuseLighting, so the pebble of the hide has a lit side and a
     shadowed side; a much larger, fainter mottle under it, because a hide
     is never one even colour. The browser draws the 200px tile once and
     repeats it: no image file, no per-frame filter.
   - A burnished edge: the cut edge of real leather is skived and rubbed
     darker, so a dark rim runs round it, the colour deepens towards every
     edge, and a thin lighter line runs along the top bevel.
   - Saddle stitching: the thread (::after) lies in a pressed channel a
     shade darker than the leather, lit on its lower wall, and each stitch
     throws a small shadow into it.
   - Names and figures are pressed in: a shadow above, a catch of light
     below.
   - The brass ring throws its shadow on the leather round the hole.

   Text on the leathers keeps its measured contrast: the grain, the edge
   and the sheen only ever darken (the lit grain is clamped at the
   leather's own colour, and the light from the top left is drawn as
   shade falling away from it), so the leather guard's 4.5:1 on the flat
   colour holds everywhere on the fob, even for the palest colour it lets
   through.
   --------------------------------------------------------------------------- */

:root {
	--stay-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3CfeDiffuseLighting surfaceScale='1.4' diffuseConstant='1.05' lighting-color='%23fff'%3E%3CfeDistantLight azimuth='235' elevation='55'/%3E%3C/feDiffuseLighting%3E%3CfeComponentTransfer%3E%3CfeFuncR type='table' tableValues='.12 .3 .44 .5 .5'/%3E%3CfeFuncG type='table' tableValues='.12 .3 .44 .5 .5'/%3E%3CfeFuncB type='table' tableValues='.12 .3 .44 .5 .5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .42 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
	--stay-leather-edge:
		inset 0 1.5px 0 rgba(255, 236, 205, 0.2),
		inset 0 0 0 1.5px color-mix(in oklab, var(--leather, var(--stay-saddle)) 45%, #0c0603),
		inset 0 0 0 4px rgba(20, 10, 4, 0.16),
		inset 0 -3px 0 1px rgba(20, 10, 4, 0.22),
		inset 0 0 18px 3px rgba(20, 10, 4, 0.3);
	--stay-leather-lift: 0 1px 0 rgba(255, 236, 205, 0.06), 0 3px 4px rgba(0, 0, 0, 0.35), 0 18px 32px -14px rgba(0, 0, 0, 0.7);
	--stay-leather-sheen: radial-gradient(130% 90% at 18% 0%, transparent 20%, rgba(20, 10, 4, 0.08) 60%), radial-gradient(150% 120% at 50% 40%, transparent 55%, rgba(20, 10, 4, 0.22) 100%);
}

:is(.varnify-stay-fob__tag, .varnify-stay-keyfob__tag, .varnify-stay-tariff__fob, .varnify-stay-bookby__fob, .varnify-stay-open__sum, .varnify-stay-house__cover, .varnify-stay-facts) {
	--thread: color-mix(in oklab, var(--stay-hide) 80%, var(--leather, var(--stay-saddle)));
	--channel: color-mix(in oklab, var(--leather, var(--stay-saddle)) 72%, #0c0603);
	position: relative;
	isolation: isolate;
	background-image: var(--stay-leather-sheen);
	box-shadow: var(--stay-leather-edge);
}

/* Things in the hand or on the table cast a shadow. */
:is(.varnify-stay-fob__tag, .varnify-stay-keyfob__tag, .varnify-stay-tariff__fob, .varnify-stay-bookby__fob, .varnify-stay-open__sum, .varnify-stay-house__cover, .varnify-stay-facts) {
	box-shadow: var(--stay-leather-edge), var(--stay-leather-lift);
}

/*
 * The ring's shadow on the leather round the punched hole: --hole-x and
 * --hole-y are the hole's centre, --ring the ring's outer radius. The fobs
 * on a board (the price list's, the booking panel's) show the board
 * through the hole (--hole, its radius) so their shadow is not masked off;
 * the others are masked.
 */
:is(.varnify-stay-fob__tag, .varnify-stay-keyfob__tag, .varnify-stay-tariff__fob, .varnify-stay-bookby__fob, .varnify-stay-open__sum) {
	background-image:
		radial-gradient(circle at var(--hole-x) var(--hole-y), var(--stay-panel) 0 var(--hole, 0px), transparent calc(var(--hole, 0px) + 0.5px)),
		radial-gradient(circle at var(--hole-x) calc(var(--hole-y) + 3px), transparent calc(var(--ring) - 10px), rgba(20, 10, 4, 0.5) calc(var(--ring) - 6px), rgba(20, 10, 4, 0.42) var(--ring), transparent calc(var(--ring) + 5px)),
		var(--stay-leather-sheen);
}

.varnify-stay-fob__tag {
	--hole-x: 50%;
	--hole-y: 2.6rem;
	--ring: 29px;
}

.varnify-stay-keyfob__tag {
	--hole-x: 50%;
	--hole-y: 30px;
	--ring: 17px;
}

.varnify-stay-tariff__fob {
	--hole-x: 50px;
	--hole-y: 50%;
	--ring: 31px;
}

.varnify-stay-open__sum,
.varnify-stay-bookby__fob {
	--hole-x: 50%;
	--hole-y: 2.6rem;
	--ring: 28px;
	--hole: 13px;
}

/*
 * Fobs hung on the board panel (the price list's, the booking panel's, the
 * book-by-phone fob) show their raw cut edge: on a fob dyed on its face,
 * the edge shows the paler core of the hide. It is what outlines the fob
 * against the board, whatever the leather: it is mixed from the leather
 * and the pale core (40:60, OKLab), so it keeps the leather's warmth and
 * still gives at least 3:1 against the board (Varnify_Stay_Leather::edge(),
 * tested for every preset, every cottage leather and the darkest and
 * lightest shades the guard allows). The hole is cut the same way.
 */
:is(.varnify-stay-tariff__fob, .varnify-stay-open__sum, .varnify-stay-bookby__fob) {
	--raw-edge: color-mix(in oklab, var(--leather, var(--stay-saddle)) 40%, #f0dfc0);
	background-image:
		radial-gradient(circle at var(--hole-x) var(--hole-y), var(--stay-panel) 0 var(--hole, 0px), var(--raw-edge) calc(var(--hole, 0px) + 0.5px) calc(var(--hole, 0px) + 1.5px), transparent calc(var(--hole, 0px) + 2px)),
		radial-gradient(circle at var(--hole-x) calc(var(--hole-y) + 3px), transparent calc(var(--ring) - 10px), rgba(20, 10, 4, 0.5) calc(var(--ring) - 6px), rgba(20, 10, 4, 0.42) var(--ring), transparent calc(var(--ring) + 5px)),
		var(--stay-leather-sheen);
	box-shadow: 0 0 0 1.5px var(--raw-edge), var(--stay-leather-edge), var(--stay-leather-lift);
}

/*
 * The grain lies on its own layer (so the leather itself stays a plain
 * block of colour and text for the browser, and the first screen is not
 * held up by it); the thread and its channel on another.
 */
:is(.varnify-stay-fob__tag, .varnify-stay-keyfob__tag, .varnify-stay-tariff__fob, .varnify-stay-bookby__fob, .varnify-stay-open__sum, .varnify-stay-house__cover, .varnify-stay-facts)::before,
:is(.varnify-stay-fob__tag, .varnify-stay-keyfob__tag, .varnify-stay-tariff__fob, .varnify-stay-bookby__fob, .varnify-stay-open__sum, .varnify-stay-house__cover, .varnify-stay-facts)::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: inherit;
	pointer-events: none;
}

:is(.varnify-stay-fob__tag, .varnify-stay-keyfob__tag, .varnify-stay-tariff__fob, .varnify-stay-bookby__fob, .varnify-stay-open__sum, .varnify-stay-house__cover, .varnify-stay-facts)::before {
	inset: 0;
	background: var(--stay-grain) 0 0 / 200px 200px;
	mix-blend-mode: soft-light;
}

/* The thread: short stitches in a pressed channel, each with its shadow. */
:is(.varnify-stay-fob__tag, .varnify-stay-keyfob__tag, .varnify-stay-tariff__fob, .varnify-stay-bookby__fob, .varnify-stay-open__sum, .varnify-stay-house__cover, .varnify-stay-facts)::after {
	inset: var(--stitch, 9px);
	border: 2px dashed var(--thread);
	box-shadow:
		0 0 0 2px var(--channel),
		inset 0 0 0 2px var(--channel),
		0 2.5px 0 0 rgba(255, 236, 205, 0.12),
		inset 0 2.5px 0 0 rgba(20, 10, 4, 0.25);
	filter: drop-shadow(0 1px 0 rgba(20, 10, 4, 0.75));
}

/* The cottage's number and name, pressed into the leather. */
:is(.varnify-stay-fob__top, .varnify-stay-keyfob__top) > span:first-child {
	font-family: var(--stay-display);
	font-size: 1rem;
	font-weight: 700;
	font-stretch: 80%;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-variant-numeric: lining-nums;
}

:is(.varnify-stay-fob__top > span:first-child, .varnify-stay-keyfob__top > span:first-child, .varnify-stay-fob__name, .varnify-stay-fob__total, .varnify-stay-keyfob__name, .varnify-stay-keyfob__price, .varnify-stay-tariff__title, .varnify-stay-open__total, .varnify-stay-house__title, .varnify-stay-facts__mark strong) {
	text-shadow: 0 -1px 0 rgba(20, 10, 4, 0.65), 0 1px 0 rgba(255, 236, 205, 0.24), 0 0 1px rgba(20, 10, 4, 0.35);
}

/*
 * The brass rings: turned brass, with the light caught on two sides, a
 * bright point where it is nearest the light, the inside and outside edges
 * in shadow, the way a split ring looks in the hand.
 */
:root {
	--stay-brass-metal: conic-gradient(from var(--varnify-stay-glint, 200deg), #7d5a1f 0%, #c99d4c 9%, #fff0c4 15%, #d8b061 22%, #9a722d 38%, #b88a3c 52%, #f2d690 63%, #c99d4c 72%, #8a6526 86%, #7d5a1f 100%);
	--stay-brass-light:
		radial-gradient(circle at 27% 24%, rgba(255, 252, 235, 0.95) 0 1.2px, rgba(255, 246, 210, 0.55) 2.5px, transparent 6px),
		radial-gradient(circle at 74% 80%, rgba(255, 240, 200, 0.6) 0 1px, transparent 4px),
		linear-gradient(135deg, rgba(255, 250, 225, 0.35), transparent 40%, rgba(40, 24, 6, 0.35) 85%);
}

.varnify-stay-fob__ring,
.varnify-stay-keyfob__ring,
.varnify-stay-tariff__ring,
.varnify-stay-open__ring,
.varnify-stay-bookby__hang::after {
	border: 0;
	background:
		var(--stay-brass-light),
		radial-gradient(farthest-side, transparent calc(100% - var(--band, 5px)), rgba(40, 24, 6, 0.75) calc(100% - var(--band, 5px)), rgba(40, 24, 6, 0) calc(100% - var(--band, 5px) + 1.7px), transparent calc(100% - 1.6px), rgba(40, 24, 6, 0.7) 100%),
		var(--stay-brass-metal);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--band, 5px)), #000 calc(100% - var(--band, 5px) + 0.5px));
	mask: radial-gradient(farthest-side, transparent calc(100% - var(--band, 5px)), #000 calc(100% - var(--band, 5px) + 0.5px));
}

.varnify-stay-fob__ring,
.varnify-stay-tariff__ring {
	--band: 6.5px;
}

.varnify-stay-open__ring,
.varnify-stay-bookby__hang::after {
	--band: 6px;
}

/* Hung over the photograph, on a string from the top of the screen: at rest it hangs straight down. */
.varnify-stay-hero__fob {
	position: absolute !important;
	z-index: 10;
	top: 0;
	right: clamp(1.5rem, 7vw, 7rem);
	margin: 0 !important;
	transform-origin: 50% 0;
}

/* What the big figure is for, said plainly above it. */
.varnify-stay-fob__what {
	font-weight: 600;
}

.varnify-stay-fob__span {
	white-space: nowrap;
}

@media (min-width: 782px) and (max-height: 860px) {
	.varnify-stay-hero__fob {
		--string: 3rem;
	}
}

/*
 * On a phone the fob docks at the foot of the screen and stays there: the
 * cottage, the total and the way to book, always in reach.
 */
@media (max-width: 781px) {
	/*
	 * The docked fob is fixed, but it belongs to the opening section, whose
	 * stacking it shares: lift the whole section above the ones after it,
	 * or a later section with its own ground paints over the dock.
	 */
	.varnify-stay-hero {
		z-index: 30;
		min-height: calc(100svh - 5.75rem);
	}

	body:not(.editor-styles-wrapper) .varnify-stay-main > .varnify-stay-hero:not(.varnify-stay-hero--board):first-child {
		min-height: calc(100svh + 0.75rem);
	}

	.varnify-stay-hero__words {
		left: 1rem;
		right: 1rem;
		bottom: 8.5rem;
		width: auto;
	}

	.varnify-stay-hero__headline {
		font-size: clamp(2.75rem, 13.5vw, 3.75rem) !important;
		line-height: 0.96;
	}

	.varnify-stay-hero__lede,
	.varnify-stay-hero__lede p {
		font-size: 1rem;
	}

	.varnify-stay-hero__fob {
		position: fixed !important;
		top: auto;
		right: 0.75rem;
		bottom: 0.75rem;
		left: 0.75rem;
		width: auto;
		padding: 0;
		transform: none;
	}

	.varnify-stay-hero__fob.is-out {
		visibility: hidden;
		opacity: 0;
		transform: translateY(120%);
	}

	.varnify-stay-hero__fob .varnify-stay-fob__string {
		display: none;
	}

	/*
	 * Docked, the fob lies on its side: the brass eyelet sits wholly inside
	 * the leather at the left end, clear of the stitching, and shows the
	 * leather's own shadow through it rather than whatever is behind.
	 */
	.varnify-stay-hero__fob .varnify-stay-fob__ring {
		top: 50%;
		left: 1.75rem;
		--band: 4.5px;
		width: 30px;
		height: 30px;
		margin: -15px 0 0 -15px;
		background:
			radial-gradient(farthest-side, rgba(14, 9, 6, 0.55) calc(100% - 4.5px), transparent calc(100% - 4px)),
			radial-gradient(farthest-side, transparent calc(100% - 4.5px), rgba(40, 24, 6, 0.55) calc(100% - 4.5px), transparent calc(100% - 3px)),
			var(--stay-brass-metal);
		-webkit-mask: none;
		mask: none;
	}

	.varnify-stay-hero__fob .varnify-stay-fob__tag {
		/*
		 * The name on a line of its own, then the total with what it buys
		 * beside it; the Book button stands at the right, centred on both.
		 * The words beside the total never get narrower than their longest
		 * word: in a wide font (the owner's own) on a small phone they drop
		 * to a line under the total instead of breaking in the middle.
		 */
		position: relative;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.2rem 0.6rem;
		padding: 0.7rem 6.55rem 0.75rem 3.5rem;
		--stitch: 5px;
		border-radius: 20px;
		-webkit-mask: none;
		mask: none;
		background-image: var(--stay-leather-sheen);
		box-shadow: var(--stay-leather-edge), 0 10px 30px rgba(0, 0, 0, 0.45);
	}

	.varnify-stay-hero__fob .varnify-stay-fob__top,
	.varnify-stay-hero__fob .varnify-stay-fob__meta,
	.varnify-stay-hero__fob .varnify-stay-fob__cut,
	.varnify-stay-hero__fob .varnify-stay-fob__lines,
	.varnify-stay-hero__fob .varnify-stay-fob__pay {
		display: none;
	}

	.varnify-stay-hero__fob .varnify-stay-fob__name {
		flex: 1 0 100%;
		font-size: 1.125rem;
		letter-spacing: -0.02em;
	}

	.varnify-stay-hero__fob .varnify-stay-fob__total {
		order: 1;
		font-size: 2.25rem;
	}

	/* "A week in the summer holidays, everything in": what the figure buys. */
	.varnify-stay-hero__fob .varnify-stay-fob__what {
		order: 2;
		flex: 1 1 0;
		min-width: min-content;
		align-self: center;
		font-size: 0.75rem;
		font-weight: 500;
		line-height: 1.25;
	}

	.varnify-stay-hero__fob .varnify-stay-fob__span {
		display: block;
		font-size: 0.875rem;
		font-weight: 700;
	}

	.varnify-stay-hero__fob .varnify-stay-fob__go {
		position: absolute;
		top: 0;
		right: 0.7rem;
		bottom: 0;
		width: 5.25rem;
		height: 4.5rem;
		margin-block: auto;
	}

	.varnify-stay-hero__fob .varnify-stay-fob__go-long {
		display: none;
	}

	.varnify-stay-hero__fob .varnify-stay-fob__go-short {
		display: inline;
	}

	/* The page ends clear of the docked fob, and every section's last line can scroll above it. */
	body:has(.varnify-stay-hero__fob) .wp-site-blocks {
		padding-bottom: 8.5rem;
	}

	body:has(.varnify-stay-hero__fob) .varnify-stay-main > * {
		scroll-margin-bottom: 8.5rem;
	}

	/* Whatever has focus, or is jumped to, stays clear of the docked fob. */
	html:has(.varnify-stay-hero__fob) {
		scroll-padding-bottom: 8.5rem;
	}
}

/* ---------------------------------------------------------------------------
   From the gate to the beach: a path between the stops.
   --------------------------------------------------------------------------- */

.varnify-stay-trail {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: clamp(3rem, 6vw, 4.5rem);
}

.varnify-stay-trail::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	border-left: 3px dashed rgba(216, 176, 97, 0.55);
}

.varnify-stay-stop {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(2rem, 5vw, 3.5rem);
}

.varnify-stay-stop:nth-child(even) {
	flex-direction: row-reverse;
}

.varnify-stay-stop::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border-radius: 50%;
	background: var(--stay-brass);
	box-shadow: 0 0 0 6px var(--stay-night);
}

.varnify-stay-stop__photo {
	position: relative;
	flex: 0 0 calc(50% - 3.5rem);
	aspect-ratio: 4 / 3;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 6px;
}

.varnify-stay-stop:nth-child(3n + 2) .varnify-stay-stop__photo {
	aspect-ratio: 16 / 10;
}

.varnify-stay-stop:nth-child(3n) .varnify-stay-stop__photo {
	aspect-ratio: 5 / 4;
}

.varnify-stay-stop__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.varnify-stay-stop__note {
	flex: 1 1 0;
	min-width: 0;
	max-width: 26rem;
	margin-inline: auto;
}

.varnify-stay-stop__note > * + * {
	margin-top: 0.75rem;
}

/*
 * How far from the gate: the arm of a timber fingerpost, painted cream and
 * lettered in black like the ones at a farm gate or a beach track, pointing
 * at the photograph it names. Fingerposts are bolted level, so it is level.
 */
.varnify-stay-stop__where {
	--arm: #efe5d1;
	--post: #5e3b26;
	--point: 1.15rem;
	position: relative;
	display: flex;
	width: fit-content;
	max-width: 100%;
	margin: 0;
	padding-block: 0.6rem;
	/* The arm slides out from its post, never past the edge of the page. */
	overflow-x: clip;
	font-variant-numeric: tabular-nums lining-nums;
}

/* The post the arm is bolted to, at the arm's far end. */
.varnify-stay-stop__where::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0.9rem;
	width: 0.7rem;
	border-radius: 2px 2px 0 0;
	background: var(--post);
	box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.22);
}

.varnify-stay-stop__tag {
	position: relative;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.15rem 0.6rem;
	max-width: 100%;
	padding: 0.5rem calc(var(--point) + 0.85rem) 0.5rem 2.25rem;
	background:
		radial-gradient(circle at 1.25rem 50%, #6b5a48 0 2.5px, transparent 3px),
		var(--arm);
	min-width: 0;
	color: var(--stay-ink);
	clip-path: polygon(0 0, calc(100% - var(--point)) 0, 100% 50%, calc(100% - var(--point)) 100%, 0 100%);
}

.varnify-stay-stop__tag > * {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Photograph on the left: the arm points left, and its post is at the right end. */
.varnify-stay-stop:nth-child(odd) .varnify-stay-stop__where::before {
	right: 0.9rem;
	left: auto;
}

.varnify-stay-stop:nth-child(odd) .varnify-stay-stop__tag {
	--varnify-stay-arm-from: 1.25rem;
	padding: 0.5rem 2.25rem 0.5rem calc(var(--point) + 0.85rem);
	background:
		radial-gradient(circle at calc(100% - 1.25rem) 50%, #6b5a48 0 2.5px, transparent 3px),
		var(--arm);
	clip-path: polygon(var(--point) 0, 100% 0, 100% 100%, var(--point) 100%, 0 50%);
}

.varnify-stay-stop__far {
	font-family: var(--stay-display);
	font-size: 1.5rem;
	font-weight: 700;
	font-stretch: 85%;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.varnify-stay-stop__place {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
}

.varnify-stay-stop h3 {
	margin-bottom: 0;
	font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
}

.varnify-stay-stop__note p:last-child {
	color: var(--stay-mist);
	font-size: var(--wp--preset--font-size--large);
}

@media (max-width: 781px) {
	.varnify-stay-trail {
		padding-left: 2.1rem;
	}

	.varnify-stay-trail::before {
		left: 0.5rem;
	}

	.varnify-stay-stop,
	.varnify-stay-stop:nth-child(even) {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}

	.varnify-stay-stop::after {
		top: 1.4rem;
		left: -1.6rem;
		margin: 0;
	}

	.varnify-stay-stop__photo {
		flex-basis: auto;
	}

	.varnify-stay-stop__note {
		margin: 0;
	}

	/* On a phone every arm points left, back to the path. */
	.varnify-stay-stop:nth-child(even) .varnify-stay-stop__where::before {
		right: 0.9rem;
		left: auto;
	}

	.varnify-stay-stop:nth-child(even) .varnify-stay-stop__tag {
		--varnify-stay-arm-from: 1.25rem;
		padding: 0.5rem 2.25rem 0.5rem calc(var(--point) + 0.85rem);
		background:
			radial-gradient(circle at calc(100% - 1.25rem) 50%, #6b5a48 0 2.5px, transparent 3px),
			var(--arm);
		clip-path: polygon(var(--point) 0, 100% 0, 100% 100%, var(--point) 100%, 0 50%);
	}
}

/*
 * The walk, art-directed. Each stop is cast for what it shows, the way a
 * guidebook lays out a walk: the gate and the water open and close it edge
 * to edge, the fingerpost standing on the photograph; between them a small
 * close detail (the key), a wide room (the table), a tall one (the fire),
 * a small square (the bed) and a view running off the edge of the page
 * (the bath). Each fingerpost is bolted where its photograph begins, its
 * arm laid over the photograph's edge, pointing in. One grade and one
 * corner across the set; photographs that meet the page edge lose it.
 * The cycle of five repeats for a longer walk; the last stop always opens
 * out to the full width.
 */
.varnify-stay-walk {
	overflow-x: clip;
}

@media (min-width: 782px) {
	.varnify-stay-trail {
		/* How far the page's edge is beyond the trail's: what a bleed reaches. */
		--bleed: max(var(--wp--style--root--padding-left, 1.5rem), (100vw - 1344px) / 2);
		/* Close enough that one stop leads on to the next, as a guidebook's do. */
		gap: clamp(2rem, 3.5vw, 3rem);
	}

	/* The path runs down the left of the page, under the photographs. */
	.varnify-stay-trail::before {
		left: calc((100% - 11 * clamp(1rem, 2vw, 2rem)) / 24);
		z-index: 0;
	}

	.varnify-stay-stop,
	.varnify-stay-stop:nth-child(even) {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: clamp(1rem, 2vw, 2rem);
		align-items: center;
	}

	.varnify-stay-stop::after {
		display: none;
	}

	.varnify-stay-stop__photo {
		z-index: 1;
		grid-row: 1;
		flex: none;
		width: auto;
	}

	.varnify-stay-stop__note {
		position: static;
		z-index: 2;
		grid-row: 1;
		max-width: 28rem;
		margin: 0;
	}

	/* The fingerpost, bolted at the photograph's edge. */
	.varnify-stay-stop .varnify-stay-stop__where {
		position: absolute;
		z-index: 3;
		top: var(--post-y, 14%);
	}

	.varnify-stay-stop__note > .varnify-stay-stop__where + * {
		margin-top: 0;
	}

	/* An arm pointing right: post at its left end. */
	.varnify-stay-stop.is-arm-right .varnify-stay-stop__where::before {
		right: auto;
		left: 0.9rem;
	}

	.varnify-stay-stop.is-arm-right .varnify-stay-stop__tag,
	.varnify-stay-stop:is(:nth-child(5n + 2), :nth-child(5n + 4), :nth-child(5n + 1):not(:first-child)):not(:last-child) .varnify-stay-stop__tag {
		--varnify-stay-arm-from: -1.25rem;
		padding: 0.5rem calc(var(--point) + 0.85rem) 0.5rem 2.25rem;
		background:
			radial-gradient(circle at 1.25rem 50%, #6b5a48 0 2.5px, transparent 3px),
			var(--arm);
		clip-path: polygon(0 0, calc(100% - var(--point)) 0, 100% 50%, calc(100% - var(--point)) 100%, 0 100%);
	}

	.varnify-stay-stop:is(:nth-child(5n + 2), :nth-child(5n + 4), :nth-child(5n + 1):not(:first-child)):not(:last-child) .varnify-stay-stop__where::before {
		right: auto;
		left: 0.9rem;
	}

	/* An arm pointing left: post at its right end. */
	.varnify-stay-stop:is(:nth-child(5n + 3), :nth-child(5n)):not(:last-child) .varnify-stay-stop__tag {
		--varnify-stay-arm-from: 1.25rem;
		padding: 0.5rem 2.25rem 0.5rem calc(var(--point) + 0.85rem);
		background:
			radial-gradient(circle at calc(100% - 1.25rem) 50%, #6b5a48 0 2.5px, transparent 3px),
			var(--arm);
		clip-path: polygon(var(--point) 0, 100% 0, 100% 100%, var(--point) 100%, 0 50%);
	}

	.varnify-stay-stop:is(:nth-child(5n + 3), :nth-child(5n)):not(:last-child) .varnify-stay-stop__where::before {
		right: 0.9rem;
		left: auto;
	}

	/* A close detail, small and square, on the right (the key). */
	.varnify-stay-stop:nth-child(5n + 2):not(:last-child) .varnify-stay-stop__photo {
		grid-column: 8 / 12;
		aspect-ratio: 1;
	}

	.varnify-stay-stop:nth-child(5n + 2):not(:last-child) .varnify-stay-stop__note {
		grid-column: 2 / 7;
	}

	.varnify-stay-stop:nth-child(5n + 2):not(:last-child) .varnify-stay-stop__where {
		right: calc(100% * 5 / 12 - 4.5rem);
		--post-y: 18%;
	}

	/* A room, wide, from the left edge of the page (the table). */
	.varnify-stay-stop:nth-child(5n + 3):not(:last-child) .varnify-stay-stop__photo {
		grid-column: 1 / 9;
		margin-left: calc(-1 * var(--bleed)) !important;
		aspect-ratio: 16 / 10;
		border-radius: 0 6px 6px 0;
	}

	.varnify-stay-stop:nth-child(5n + 3):not(:last-child) .varnify-stay-stop__note {
		grid-column: 9 / 13;
	}

	.varnify-stay-stop:nth-child(5n + 3):not(:last-child) .varnify-stay-stop__where {
		left: calc(100% * 8 / 12 - 4.5rem);
		--post-y: auto;
		top: auto;
		bottom: 12%;
	}

	/* A tall one, on the right (the fire). */
	.varnify-stay-stop:nth-child(5n + 4):not(:last-child) .varnify-stay-stop__photo {
		grid-column: 7 / 12;
		aspect-ratio: 4 / 5;
	}

	.varnify-stay-stop:nth-child(5n + 4):not(:last-child) .varnify-stay-stop__note {
		grid-column: 2 / 7;
		padding-right: 2rem;
	}

	.varnify-stay-stop:nth-child(5n + 4):not(:last-child) .varnify-stay-stop__where {
		right: calc(100% * 6 / 12 - 4.5rem);
		--post-y: 62%;
	}

	/* A small square, set in from the left (the bed). */
	.varnify-stay-stop:nth-child(5n):not(:last-child) .varnify-stay-stop__photo {
		grid-column: 2 / 6;
		aspect-ratio: 1;
	}

	.varnify-stay-stop:nth-child(5n):not(:last-child) .varnify-stay-stop__note {
		grid-column: 7 / 12;
	}

	.varnify-stay-stop:nth-child(5n):not(:last-child) .varnify-stay-stop__where {
		left: calc(100% * 5 / 12 - 4.5rem);
		--post-y: 10%;
	}

	/* A view that runs off the right of the page (the bath). */
	.varnify-stay-stop:nth-child(5n + 1):not(:first-child):not(:last-child) .varnify-stay-stop__photo {
		grid-column: 5 / 13;
		margin-right: calc(-1 * var(--bleed)) !important;
		aspect-ratio: 2 / 1;
		border-radius: 6px 0 0 6px;
	}

	.varnify-stay-stop:nth-child(5n + 1):not(:first-child):not(:last-child) .varnify-stay-stop__note {
		grid-column: 1 / 5;
		padding-right: 1.5rem;
	}

	.varnify-stay-stop:nth-child(5n + 1):not(:first-child):not(:last-child) .varnify-stay-stop__where {
		right: calc(100% * 8 / 12 - 4.5rem);
		--post-y: 70%;
	}

	/*
	 * The gate and the water: the photograph edge to edge, the words on it
	 * low on the left over a shade, and the fingerpost standing on it.
	 */
	.varnify-stay-stop:is(:first-child, :last-child) .varnify-stay-stop__photo {
		grid-column: 1 / -1;
		margin-inline: calc(50% - 50vw) !important;
		height: clamp(28rem, 78vh, 48rem);
		aspect-ratio: auto;
		border-radius: 0;
	}

	.varnify-stay-stop:is(:first-child, :last-child)::before {
		content: "";
		z-index: 1;
		grid-column: 1 / -1;
		grid-row: 1;
		align-self: stretch;
		margin-inline: calc(50% - 50vw);
		background: linear-gradient(to top, rgba(24, 18, 14, 0.9) 0%, rgba(24, 18, 14, 0.55) 34%, rgba(24, 18, 14, 0) 62%), linear-gradient(to right, rgba(24, 18, 14, 0.45), rgba(24, 18, 14, 0) 55%);
		pointer-events: none;
	}

	.varnify-stay-stop:is(:first-child, :last-child) .varnify-stay-stop__note {
		grid-column: 1 / 7;
		align-self: end;
		padding-bottom: clamp(2.5rem, 6vh, 4rem);
	}

	.varnify-stay-stop:is(:first-child, :last-child) .varnify-stay-stop__where {
		position: relative;
		top: auto;
		margin-bottom: 0.9rem;
	}

	.varnify-stay-stop:is(:first-child, :last-child) .varnify-stay-stop__note p:last-child {
		color: var(--stay-hide);
	}
}

/* On a phone: the gate and the water edge to edge; the rest in varied sizes, staggered. */
@media (max-width: 781px) {
	.varnify-stay-stop:is(:first-child, :last-child) .varnify-stay-stop__photo {
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1rem) - 2.1rem) calc(-1 * var(--wp--style--root--padding-right, 1rem)) !important;
		aspect-ratio: 4 / 5;
		border-radius: 0;
	}

	.varnify-stay-stop:nth-child(5n + 2):not(:last-child) .varnify-stay-stop__photo,
	.varnify-stay-stop:nth-child(5n):not(:last-child) .varnify-stay-stop__photo {
		width: 68%;
		aspect-ratio: 1;
	}

	.varnify-stay-stop:nth-child(5n + 4):not(:last-child) .varnify-stay-stop__photo {
		width: 82%;
		margin-left: auto !important;
		aspect-ratio: 4 / 5;
	}

	.varnify-stay-stop:nth-child(5n + 3):not(:last-child) .varnify-stay-stop__photo,
	.varnify-stay-stop:nth-child(5n + 1):not(:first-child):not(:last-child) .varnify-stay-stop__photo {
		margin-right: calc(-1 * var(--wp--style--root--padding-right, 1rem)) !important;
		aspect-ratio: 3 / 2;
		border-radius: 6px 0 0 6px;
	}

	/* The fingerpost laid over the foot of the photograph above it. */
	.varnify-stay-stop__note .varnify-stay-stop__where {
		margin-top: -2.4rem;
		position: relative;
		z-index: 2;
	}
}

/* ---------------------------------------------------------------------------
   The key board: a timber rail, brass hooks, a fob for each cottage.
   --------------------------------------------------------------------------- */

.varnify-stay-board__scroll {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: clamp(0.5rem, 3vw, 3rem);
	padding: 0.5rem 0 1.5rem;
	scrollbar-width: thin;
	scrollbar-color: var(--stay-brass) transparent;
}

/* At least as wide as the board, and as long as the fobs need: the rail runs under all of them. */
.varnify-stay-board__track {
	width: max-content;
	min-width: 100%;
}

.varnify-stay-board__rail {
	height: 34px;
	border-radius: 3px;
	background: var(--stay-rail);
	box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.25);
}

.varnify-stay-board__fobs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(16rem, 22rem);
	justify-content: space-around;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin: -20px 0 0;
	padding: 0 clamp(0.5rem, 3vw, 3rem);
	list-style: none;
}

.varnify-stay-keyfob {
	--cord: 3rem;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	max-width: 22rem;
	scroll-snap-align: center;
	transform-origin: 50% 0;
}

/* Hooks at different heights, so the cords differ; every fob hangs plumb. */
.varnify-stay-keyfob:nth-child(3n + 2) {
	--cord: 5.5rem;
}

.varnify-stay-keyfob:nth-child(3n) {
	--cord: 2rem;
}

/* The cord runs down behind the leather and shows through the punched hole. */
.varnify-stay-keyfob__cord {
	position: relative;
	width: 2px;
	height: calc(var(--cord) + 30px);
	margin-bottom: -30px;
	background: var(--stay-cord);
}

/* The brass ring through the hole; it catches the light when the fob is lifted. */
.varnify-stay-keyfob__ring {
	position: absolute;
	z-index: 2;
	top: calc(var(--cord) + 30px);
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border-radius: 50%;
	pointer-events: none;
}

.varnify-stay-keyfob__cord::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border-radius: 50%;
	background: var(--stay-brass);
}

.varnify-stay-keyfob__tag {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	/* Its padding inside its column: as wide as the hook's column, so a fob
	   never laps over the stitching of the next one along the board. */
	box-sizing: border-box;
	width: 100%;
	padding: 3.6rem 1.35rem 1.4rem;
	border-radius: 26px 26px 16px 16px;
	background-color: var(--leather);
	color: var(--stay-hide);
	--stitch: 7px;
	-webkit-mask: radial-gradient(circle at 50% 30px, transparent 11px, #000 12px);
	mask: radial-gradient(circle at 50% 30px, transparent 11px, #000 12px);
}

.varnify-stay-keyfob__tag p,
.varnify-stay-keyfob__tag h3 {
	margin: 0;
}

.varnify-stay-keyfob__top {
	display: flex;
	justify-content: space-between;
	font-size: 0.8125rem;
}

/* Framed 3:2, so each building reads whole; its focal point comes with the photograph. */
.varnify-stay-keyfob__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	border-radius: 3px;
	object-fit: cover;
}

.varnify-stay-keyfob__name {
	font-family: var(--stay-display);
	font-size: 2rem;
	font-stretch: 85%;
	letter-spacing: -0.035em;
}

.varnify-stay-keyfob__name a {
	color: inherit;
	text-decoration: none;
}

/* The whole fob is the link. */
.varnify-stay-keyfob__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.varnify-stay-keyfob__name a:focus-visible {
	outline: none;
}

.varnify-stay-keyfob__tag:has(a:focus-visible) {
	outline: 3px solid #fff;
	outline-offset: -9px;
}

.varnify-stay-keyfob__tag:hover .varnify-stay-keyfob__name a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.varnify-stay-keyfob__dogs {
	font-size: 0.875rem;
}

.varnify-stay-keyfob__beds {
	padding-top: 0.5rem;
	border-top: 1px solid rgba(246, 239, 228, 0.35);
	font-size: 0.875rem;
}

.varnify-stay-keyfob__price {
	font-family: var(--stay-display);
	font-size: 2.75rem;
	font-weight: 600;
	font-stretch: 75%;
	line-height: 0.9;
	letter-spacing: -0.05em;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-keyfob__per {
	font-size: 0.8125rem;
}

/* Along the board: how many keys, and with the script, arrows to move along. */
.varnify-stay-board__along {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 0.5rem;
}

.varnify-stay-board.is-along .varnify-stay-board__along {
	display: flex;
}

.varnify-stay-board__hint {
	margin: 0;
	color: var(--stay-mist);
	font-size: 0.9375rem;
	text-align: center;
}

.varnify-stay-board__step {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 2px solid var(--stay-brass);
	border-radius: 10px;
	background: transparent;
	color: var(--stay-hide);
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.varnify-stay-board__step:hover {
	background: rgba(216, 176, 97, 0.18);
}

.varnify-stay-board__step[aria-disabled="true"] {
	border-color: rgba(216, 176, 97, 0.4);
	color: var(--stay-mist);
	cursor: default;
}

.varnify-stay-board__step[hidden] {
	display: none;
}

/*
 * On a phone the board scrolls. Each fob is narrow enough that a good third
 * of the next one shows, its price included, so the row reads as more keys
 * along the board.
 */
@media (max-width: 781px) {
	.varnify-stay-board__scroll {
		scroll-padding-inline: 1rem;
	}

	.varnify-stay-board__fobs {
		grid-auto-columns: min(60vw, 14.5rem);
		justify-content: start;
		gap: 1rem;
		padding-inline: 1rem;
	}

	.varnify-stay-keyfob {
		scroll-snap-align: start;
	}

	.varnify-stay-keyfob__tag {
		padding: 3.4rem 1rem 1.2rem;
	}


	.varnify-stay-keyfob__name {
		font-size: 1.75rem;
	}

	.varnify-stay-keyfob__price {
		font-size: 2.25rem;
	}

	.varnify-stay-board__along {
		display: flex;
	}
}

/* ---------------------------------------------------------------------------
   The cottages page: the place edge to edge, and the key board's rail run
   across it, so every fob hangs over the photograph's lower edge.
   --------------------------------------------------------------------------- */

.varnify-stay-hero--board {
	--photo: clamp(30rem, 80vh, 50rem);
	min-height: 0;
	overflow: visible;
	padding-top: clamp(4rem, 12vh, 7rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	background: var(--stay-night);
}

.varnify-stay-hero--board .varnify-stay-hero__photo {
	bottom: auto !important;
	max-width: none !important;
	height: var(--photo);
	overflow: hidden;
}

.varnify-stay-hero--board .varnify-stay-hero__photo img {
	object-position: 50% 62%;
}

/* Dark enough under the words; then the photograph goes into the night. */
.varnify-stay-hero--board::after {
	bottom: auto;
	height: var(--photo);
	background:
		linear-gradient(to bottom, rgba(24, 18, 14, 0.72) 0%, rgba(24, 18, 14, 0.4) 34%, rgba(24, 18, 14, 0.22) 55%, rgba(24, 18, 14, 0.55) 80%, var(--stay-night) 100%),
		linear-gradient(to right, rgba(24, 18, 14, 0.55) 0%, rgba(24, 18, 14, 0) 60%);
}

.varnify-stay-hero--board .varnify-stay-hero__words {
	position: relative;
	left: auto;
	bottom: auto;
	width: auto;
}

.varnify-stay-hero--board .varnify-stay-hero__words > * {
	max-width: 46rem;
}

.varnify-stay-hero--board .varnify-stay-board {
	margin-top: clamp(3rem, 16vh, 9rem) !important;
}

.varnify-stay-dates {
	padding-block: 0 var(--wp--preset--spacing--50);
	background: var(--stay-night);
}

.varnify-stay-dates__strip {
	gap: 1rem 2.5rem;
	padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
	border-block: 2px solid rgba(216, 176, 97, 0.6);
}

.varnify-stay-dates__say {
	flex: 1 1 28rem;
	margin: 0;
	color: var(--stay-hide);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
}

.varnify-stay-dates__say strong {
	color: #fff;
	font-family: var(--stay-display);
}

.varnify-stay-dates__more {
	margin: 0;
}

.varnify-stay-dates__more a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 1.1rem;
	border: 2px solid var(--stay-brass);
	border-radius: 10px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.varnify-stay-dates__more a:hover {
	background: var(--stay-brass);
	color: var(--stay-ink);
}

@media (max-width: 781px) {
	.varnify-stay-hero--board {
		--photo: 30rem;
		padding-top: 3.5rem;
	}

	.varnify-stay-hero--board .varnify-stay-hero__words {
		position: relative;
		left: auto;
		right: auto;
		bottom: auto;
	}

	.varnify-stay-hero--board .varnify-stay-hero__headline {
		font-size: clamp(3rem, 15vw, 4rem) !important;
	}

	.varnify-stay-hero--board .varnify-stay-board {
		margin-top: 3rem !important;
	}
}

/* ---------------------------------------------------------------------------
   The price list: a board, turned over for every season. The leather is
   only as big as a fob: on the front, the name and the way to read it are
   on a fob sewn to the left of the board, its ring through it; the
   cheapest stays are on the board beside it.
   --------------------------------------------------------------------------- */

.varnify-stay-tariff {
	position: relative;
}

.varnify-stay-tariff__ring {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50px;
	width: 62px;
	height: 62px;
	margin: -31px 0 0 -31px;
	border-radius: 50%;
	pointer-events: none;
}

/* The front and the back share one place; the script turns the fob over. */
.varnify-stay-tariff__faces {
	position: relative;
	display: grid;
}

.varnify-stay-tariff__faces > * {
	grid-area: 1 / 1;
	min-width: 0;
}

.varnify-stay-tariff__front[hidden],
.varnify-stay-tariff__turn[hidden] {
	display: none;
}

.varnify-stay-tariff.is-turnable .varnify-stay-tariff__faces {
	perspective: 2400px;
}

.varnify-stay-tariff.is-turnable .varnify-stay-tariff__card {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

/* Turned about the line through the ring. */
.varnify-stay-tariff.is-turnable .varnify-stay-tariff__back,
.varnify-stay-tariff.is-turned .varnify-stay-tariff__front {
	transform: rotateX(180deg);
}

.varnify-stay-tariff.is-turned .varnify-stay-tariff__back {
	transform: none;
}

.varnify-stay-tariff__card {
	padding: 2.5rem 3rem 2.25rem;
	border-radius: 22px;
	background-color: var(--stay-panel);
	box-shadow: var(--stay-panel-edge);
	color: var(--stay-hide);
}

.varnify-stay-tariff__scroll {
	overflow-x: auto;
}

.varnify-stay-tariff table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-tariff caption {
	padding-bottom: 0.75rem;
	text-align: left;
	font-size: 0.875rem;
}

.varnify-stay-tariff th,
.varnify-stay-tariff td {
	padding: 0.9rem 1.1rem 0.9rem 0;
	border-bottom: 1px solid rgba(246, 239, 228, 0.3);
	text-align: left;
	vertical-align: top;
	font-weight: 400;
}

.varnify-stay-tariff td {
	text-align: right;
}

.varnify-stay-tariff thead th {
	border-bottom: 2px solid rgba(246, 239, 228, 0.75);
	font-weight: 600;
	vertical-align: bottom;
}

.varnify-stay-tariff thead th + th {
	text-align: right;
}

.varnify-stay-tariff tbody tr:last-child > * {
	border-bottom: 0;
}

.varnify-stay-tariff__col {
	display: block;
	overflow-wrap: anywhere;
}

.varnify-stay-tariff__season {
	display: block;
	font-family: var(--stay-display);
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.varnify-stay-tariff__rule,
.varnify-stay-tariff__week {
	display: block;
	font-size: 0.8125rem;
}

/* "$2,490 / a week", never "$2,490 a / week". */
.varnify-stay-tariff__week {
	text-wrap: balance;
}

.varnify-stay-nowrap {
	white-space: nowrap;
}

.varnify-stay-tariff__big {
	display: block;
	font-family: var(--stay-display);
	font-size: 1.625rem;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.varnify-stay-tariff__levy {
	margin: 0.9rem 0 0;
	font-size: 0.875rem;
}

/*
 * The price list holds whatever font the owner chose. When its columns
 * cannot sit side by side (a small phone, or a very wide font), the script
 * adds .is-stacked and every season stacks: its name, then one line per
 * cottage with the cottage's name beside its price (the cell's data-label;
 * the table roles stay in the markup for screen readers). Without the script
 * the table scrolls sideways inside its card, as it always did.
 */
.varnify-stay-tariff.is-stacked :is(table, caption, tbody, tr) {
	display: block;
}

.varnify-stay-tariff.is-stacked thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.varnify-stay-tariff.is-stacked tbody tr {
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(246, 239, 228, 0.3);
}

.varnify-stay-tariff.is-stacked tbody tr:last-child {
	border-bottom: 0;
}

.varnify-stay-tariff.is-stacked :is(tbody th, td) {
	padding: 0.2rem 0;
	border: 0;
}

.varnify-stay-tariff.is-stacked tbody th {
	display: block;
	padding-bottom: 0.4rem;
}

.varnify-stay-tariff.is-stacked td {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	column-gap: 1rem;
	text-align: right;
}

.varnify-stay-tariff.is-stacked td::before {
	content: attr(data-label);
	grid-row: 1 / span 2;
	min-width: 0;
	overflow-wrap: anywhere;
	text-align: left;
	font-weight: 600;
}

.varnify-stay-tariff.is-stacked td > * {
	grid-column: 2;
}

.varnify-stay-tariff__front {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
	gap: 1.5rem 3rem;
	align-items: center;
	padding: 1.25rem 3rem 1.25rem 1.25rem;
}

.varnify-stay-tariff__front p,
.varnify-stay-tariff__front dl {
	margin: 0;
}

/* The fob sewn on: the ring through its hole on the left, a little proud of the board. */
.varnify-stay-tariff__fob {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	min-height: 18rem;
	padding: 2.25rem 2.25rem 2.25rem 6.75rem;
	border-radius: 18px 30px 30px 18px;
	background-color: var(--leather, var(--stay-saddle));
	--stitch: 9px;
	--hole: 17px;
}

.varnify-stay-tariff__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	font-size: 0.875rem;
}

.varnify-stay-tariff__title {
	font-family: var(--stay-display);
	font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
	font-weight: 600;
	font-stretch: 85%;
	line-height: 0.95;
	letter-spacing: -0.035em;
	overflow-wrap: anywhere;
}

.varnify-stay-tariff__more {
	font-size: 0.9375rem;
}

/* The heading and its note sit in the middle of the fob, under the line at the top. */
.varnify-stay-tariff__fob .varnify-stay-tariff__title {
	margin-top: auto;
}

.varnify-stay-tariff__fob .varnify-stay-tariff__more {
	margin-bottom: auto;
}

.varnify-stay-tariff__least div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0;
	border-top: 2px dashed rgba(246, 239, 228, 0.4);
}

.varnify-stay-tariff__least div:last-child {
	border-bottom: 2px dashed rgba(246, 239, 228, 0.4);
}

.varnify-stay-tariff__least dt {
	font-family: var(--stay-display);
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.varnify-stay-tariff__least dt span {
	display: block;
	font-family: var(--stay-text);
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0;
}

.varnify-stay-tariff__least dd {
	margin: 0;
	font-family: var(--stay-display);
	font-size: 2.25rem;
	font-weight: 600;
	font-stretch: 75%;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums lining-nums;
	white-space: nowrap;
}

.varnify-stay-tariff__turn {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 48px;
	margin: 1.5rem 0 0 2.25rem;
	padding: 0 1.25rem;
	border: 2px solid var(--stay-brass);
	border-radius: 10px;
	background: transparent;
	color: var(--stay-hide);
	font-size: 1.0625rem;
	font-weight: 700;
	cursor: pointer;
}

.varnify-stay-tariff__turn:hover {
	background: var(--stay-brass);
	color: var(--stay-ink);
}

.varnify-stay-tariff__turn svg {
	flex: none;
}

@media (max-width: 781px) {
	.varnify-stay-tariff__ring {
		top: 44px;
		left: 50%;
		width: 54px;
		height: 54px;
		margin: -27px 0 0 -27px;
	}

	.varnify-stay-tariff__card {
		padding: 1.5rem 1.25rem;
		border-radius: 18px;
	}

	/* On a phone the fob hangs by the top, as the cottage's own fob does. */
	.varnify-stay-tariff__fob {
		min-height: 0;
		padding: 5.75rem 1.25rem 1.6rem;
		border-radius: 40px 40px 18px 18px;
		--hole-x: 50%;
		--hole-y: 44px;
		--ring: 27px;
		--hole: 15px;
	}

	/* Hung by the top, it turns about the upright line through the ring. */
	.varnify-stay-tariff.is-turnable .varnify-stay-tariff__back,
	.varnify-stay-tariff.is-turned .varnify-stay-tariff__front {
		transform: rotateY(180deg);
	}

	.varnify-stay-tariff.is-turned .varnify-stay-tariff__back {
		transform: none;
	}

	.varnify-stay-tariff__front {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
		padding: 0.75rem 0.75rem 1.25rem;
	}

	.varnify-stay-tariff__least {
		padding-inline: 0.5rem;
	}

	.varnify-stay-tariff__least dd {
		font-size: 1.875rem;
	}

	.varnify-stay-tariff__turn {
		display: flex;
		width: 100%;
		justify-content: center;
		margin-left: 0;
	}

	.varnify-stay-tariff th,
	.varnify-stay-tariff td {
		padding: 0.6rem 0.6rem 0.6rem 0;
		font-size: 0.875rem;
	}

	.varnify-stay-tariff__season {
		font-size: 1.125rem;
	}

	.varnify-stay-tariff__big {
		font-size: 1.25rem;
	}
}

/* ---------------------------------------------------------------------------
   The visitors' book, lying open on the kitchen table.

   This is the one light ground on a dark site, and the reason is literal:
   it is the guest book's own ruled paper, with each entry written on its
   lines in blue-black pen, the page's printed parts in sepia, and the red
   margin rule of a bound book. It also gives the page its one change of
   light between the dark sections.
   --------------------------------------------------------------------------- */

.varnify-stay-book,
.varnify-stay-unit-reviews {
	padding-block: var(--stay-section);
}

.varnify-stay-book__labels {
	--line: 2rem;
	/* Where the rule falls in each line: on the baseline of the writing. */
	--rule-at: calc(var(--line) * 0.72 + 2px);
	--paper: #f4ecdc;
	--pen: #1f2b45;
	--printed: #6e4a30;
	--ruled: rgba(62, 96, 140, 0.24);
	--margin-rule: rgba(138, 44, 40, 0.5);
	--page-pad: clamp(1.5rem, 4vw, 4.5rem);
	position: relative;
	columns: 2;
	column-gap: calc(var(--page-pad) * 2);
	margin-block: 0 0.75rem !important;
	padding: calc(var(--line) * 2) var(--page-pad) calc(var(--line) * 3) calc(var(--page-pad) + 1.25rem);
	border-radius: 4px;
	background:
		linear-gradient(90deg, transparent calc(50% - 3rem), rgba(70, 45, 25, 0.13) calc(50% - 2px), rgba(70, 45, 25, 0.2) 50%, rgba(70, 45, 25, 0.13) calc(50% + 2px), transparent calc(50% + 3rem)),
		linear-gradient(90deg, transparent calc(var(--page-pad) + 0.3rem), var(--margin-rule) calc(var(--page-pad) + 0.3rem) calc(var(--page-pad) + 0.4rem), transparent calc(var(--page-pad) + 0.4rem)),
		linear-gradient(90deg, transparent calc(50% + var(--page-pad) - 0.25rem), var(--margin-rule) calc(50% + var(--page-pad) - 0.25rem) calc(50% + var(--page-pad) - 0.15rem), transparent calc(50% + var(--page-pad) - 0.15rem)),
		repeating-linear-gradient(to bottom, transparent 0 calc(var(--rule-at) - 1px), var(--ruled) calc(var(--rule-at) - 1px) var(--rule-at), transparent var(--rule-at) var(--line)),
		var(--paper);
	/* The edges of the pages beneath, then the leather cover. */
	box-shadow: 0 3px 0 #e6dbc6, 0 6px 0 #d9ccb2, 0 9px 0 #cbbc9f, 0 14px 0 var(--stay-saddle-deep);
	color: var(--pen);
}

.varnify-stay-label {
	--hand-slant: -7deg;
	--hand-width: 92%;
	--hand-weight: 380;
	position: relative;
	margin: 0 0 var(--line);
	padding: 0;
	border: 0;
	break-inside: avoid;
	background: none;
	color: var(--pen);
}

/*
 * Every guest writes in their own pen and their own hand. No third
 * typeface: the text face's own width and weight, leant over the way a
 * hand leans (a synthesised slant when the face has no italic), and each
 * entry set a fraction off level. Inks are the colours pens come in, each
 * at least 7:1 on the paper.
 */
.varnify-stay-label:nth-child(6n + 2) {
	--pen: #3a2414;
	--hand-slant: -4deg;
	--hand-width: 100%;
	--hand-weight: 340;
}

.varnify-stay-label:nth-child(6n + 3) {
	--pen: #1d3a30;
	--hand-slant: -9deg;
	--hand-width: 85%;
	--hand-weight: 430;
}

.varnify-stay-label:nth-child(6n + 4) {
	--pen: #222;
	--hand-slant: -2deg;
	--hand-width: 96%;
	--hand-weight: 300;
}

.varnify-stay-label:nth-child(6n + 5) {
	--pen: #2a2a5a;
	--hand-slant: -6deg;
	--hand-width: 88%;
	--hand-weight: 460;
}

.varnify-stay-label:nth-child(6n) {
	--pen: #4a1f1c;
	--hand-slant: -8deg;
	--hand-width: 94%;
	--hand-weight: 360;
}

.varnify-stay-label p {
	margin: 0;
	color: var(--pen);
	font-family: var(--stay-text);
	font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
	font-weight: var(--hand-weight);
	font-stretch: var(--hand-width);
	font-style: oblique calc(-1 * var(--hand-slant));
	font-synthesis: style;
	line-height: var(--line);
	letter-spacing: 0;
}

/*
 * Signed below the entry, from the left, on one ruled line, as guests do.
 * Everything on the page is a whole number of lines tall, so every line of
 * writing sits on its rule, in both columns: the stars may not lift the
 * line, and the signature is set a little narrow to stay on one.
 */
.varnify-stay-label cite {
	display: block;
	padding-left: 1.5rem;
	color: var(--printed);
	font-size: 0.8125rem;
	font-style: normal;
	font-weight: 600;
	font-stretch: 88%;
	line-height: var(--line);
	text-align: left;
}

.varnify-stay-label p,
.varnify-stay-label cite {
	/* Line boxes exactly --line tall, whatever the font. */
	line-height: var(--line);
}

.varnify-stay-label__stars {
	line-height: 0;
}

.varnify-stay-label__stars {
	margin-right: 0.4em;
	color: var(--printed);
	letter-spacing: 0.04em;
}

/* The visitors' book on a cottage's own page. */
.varnify-stay-unit-reviews {
	padding-block: var(--stay-section, 6rem);
}

.varnify-stay-unit-reviews > h2 {
	margin: 0 0 var(--wp--preset--spacing--50, 3rem);
}

.varnify-stay-unit-reviews .varnify-stay-book__labels {
	margin-top: 0 !important;
}

/*
 * An example entry is marked in the page's margin, small, in oxblood, the
 * way an owner pencils a note beside a line. Screen readers hear "Example
 * review: replace it with a real one." It is never left off.
 */
.varnify-stay-label .varnify-stay-example-mark {
	position: absolute;
	top: 0.35rem;
	right: calc(100% + 1.2rem);
	padding: 0.35rem 0.1rem;
	border: 1px solid currentColor;
	border-radius: 2px;
	outline: 0;
	font-size: 0.625rem;
	letter-spacing: 0.14em;
	line-height: 1;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

/* A gum leaf pressed between the pages. */
.varnify-stay-book__labels::after {
	content: "";
	position: absolute;
	right: clamp(1rem, 4vw, 4rem);
	bottom: 1.25rem;
	width: 7.5rem;
	height: 4.5rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 72'%3E%3Cg fill='none' stroke='%237a5a36' stroke-linecap='round'%3E%3Cpath d='M6 64 C38 50 70 34 114 10' stroke-width='1.6'/%3E%3Cpath d='M30 53 C26 40 30 28 40 22 C44 34 40 46 30 53Z M54 42 C62 30 74 26 84 28 C78 38 66 44 54 42Z M74 31 C70 18 76 8 86 4 C90 16 84 26 74 31Z M44 47 C52 54 64 58 76 54 C68 46 56 44 44 47Z M94 20 C100 12 110 10 116 12 C112 20 102 22 94 20Z' fill='%23a98457' fill-opacity='.35' stroke-width='1.1'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
	opacity: 0.85;
	transform: rotate(-8deg);
	pointer-events: none;
}

@media (max-width: 781px) {
	.varnify-stay-book__labels {
		--line: 1.875rem;
		--page-pad: 1.25rem;
		columns: 1;
		padding-left: calc(var(--page-pad) + 1.25rem);
		padding-right: 1rem;
		background:
			linear-gradient(90deg, transparent calc(var(--page-pad) + 0.3rem), var(--margin-rule) calc(var(--page-pad) + 0.3rem) calc(var(--page-pad) + 0.4rem), transparent calc(var(--page-pad) + 0.4rem)),
			repeating-linear-gradient(to bottom, transparent 0 calc(var(--rule-at) - 1px), var(--ruled) calc(var(--rule-at) - 1px) var(--rule-at), transparent var(--rule-at) var(--line)),
			var(--paper);
	}

	/* On a phone the signature takes two lines, each on its rule: who, then where and when. */
	.varnify-stay-label cite {
		padding-left: 0.5rem;
		font-size: 0.8125rem;
	}

	.varnify-stay-label__who,
	.varnify-stay-label__when {
		display: block;
		line-height: var(--line) !important;
	}

	.varnify-stay-label__when {
		padding-left: 1rem;
		font-weight: 500;
	}
}

/* ---------------------------------------------------------------------------
   Before you book: the enamel signs screwed to the shed's iron.
   Vitreous enamel, a cream line inset from the edge, a screw in each
   corner, the words in the farm's own lettering. Screwed on, so level.
   Signs come in more than one size, so they do not line up like cards.
   --------------------------------------------------------------------------- */

/*
 * The machinery shed's wall, where the signs are screwed up: galvanised
 * corrugated iron gone a soft grey with the weather, the corrugations
 * upright, each ridge catching the light and each trough in shadow, a
 * little rust coming through at the foot. No light ground: the iron is a
 * mid grey, between the dark sections either side. The enamel stays dark
 * on it, as enamel does, and the heading and the line beside it are
 * signwritten on the iron in white paint, the hide colour.
 *
 * The iron is dark enough that the paint reads at 4.5:1 on the brightest
 * ridge, so the line beside the heading can be painted too; measured
 * contrasts are in plan.md (design round 4, Sam's choices).
 */
.varnify-stay-before {
	--wall: #535853;
	--pitch: 76px;
	/*
	 * One corrugation, left to right: the trough in shadow, the flank
	 * turning to the light, a narrow bright crest, and a quick fall into the
	 * shade on the far side. The crest is the brightest the iron gets; the
	 * paint on it still reads at 4.5:1 (plan.md, release 1.0).
	 */
	--profile: repeating-linear-gradient(90deg,
		rgba(0, 0, 0, 0.3) 0,
		rgba(0, 0, 0, 0.13) calc(var(--pitch) * 0.2),
		rgba(255, 255, 255, 0.03) calc(var(--pitch) * 0.36),
		rgba(255, 255, 255, 0.1) calc(var(--pitch) * 0.45),
		rgba(255, 255, 255, 0.115) calc(var(--pitch) * 0.49),
		rgba(0, 0, 0, 0.03) calc(var(--pitch) * 0.53),
		rgba(0, 0, 0, 0.19) calc(var(--pitch) * 0.76),
		rgba(0, 0, 0, 0.3) var(--pitch));
	/* Weathering: streaks where the rain runs down the sheets. */
	--streaks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='480'%3E%3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045 .004' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -.7 .3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
	background-color: var(--wall);
	background-image:
		var(--profile),
		linear-gradient(180deg, rgba(20, 16, 12, 0.35), transparent 7rem, transparent calc(100% - 9rem), rgba(70, 48, 26, 0.18)),
		var(--streaks);
	background-size: var(--pitch) 100%, auto, 240px 480px;
	background-blend-mode: normal, normal, multiply;
	color: var(--stay-hide);
}

@media (max-width: 781px) {
	.varnify-stay-before {
		--pitch: 52px;
	}
}

.varnify-stay-before h2 {
	color: var(--stay-hide);
}

.varnify-stay-before :focus-visible {
	outline-color: var(--stay-hide);
}

/* The phone number on the wall is a leather button, like the fob's. */
.varnify-stay-before .varnify-stay-call {
	border-color: var(--stay-saddle-deep);
	background: var(--stay-saddle);
	color: #fff;
}

.varnify-stay-before .varnify-stay-call:hover {
	background: var(--stay-saddle-deep);
	color: #fff;
}

.varnify-stay-before .varnify-stay-lede {
	gap: 0.75rem 1rem;
	color: var(--stay-hide);
}

.varnify-stay-before .varnify-stay-lede p {
	margin: 0;
}

/*
 * The signs, put up over the years as each question came up, so no two are
 * alike: a tall one with an arched top by the door, a long plank, an
 * ordinary plate, a small one, a wide one, and one hung from a nail on a
 * wire. Each is screwed up by hand, so a little off true. They are set on
 * the wall in the order they are read, left to right and down; on a phone,
 * one under the other, staggered.
 */
.varnify-stay-labels {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: start;
	gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.5rem);
}

.varnify-stay-tag {
	--enamel: #1d4535;
	--line: var(--stay-hide);
	--screw: radial-gradient(circle, #2a1a10 0 2px, #b9ad9c 2.5px 4px, rgba(0, 0, 0, 0.35) 4.5px 5px, transparent 5.5px);
	--at: 0.9rem;
	--hang: 0deg;
	position: relative;
	display: flex;
	grid-column: span 4;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0 !important;
	padding: 1.9rem 2rem 1.8rem;
	border-radius: 14px;
	background:
		var(--screw) var(--at) var(--at) / 12px 12px no-repeat,
		var(--screw) calc(100% - var(--at)) var(--at) / 12px 12px no-repeat,
		var(--screw) var(--at) calc(100% - var(--at)) / 12px 12px no-repeat,
		var(--screw) calc(100% - var(--at)) calc(100% - var(--at)) / 12px 12px no-repeat,
		var(--enamel);
	box-shadow: inset 0 0 0 6px var(--enamel), inset 0 0 0 9px var(--line), 0 3px 0 rgba(0, 0, 0, 0.35), 0 10px 18px -10px rgba(20, 14, 8, 0.6);
	color: var(--stay-hide);
	rotate: var(--hang);
}

.varnify-stay-tag--tan {
	--enamel: #4f3020;
}

.varnify-stay-tag--oxblood {
	--enamel: #7a2420;
}

.varnify-stay-tag--bottle {
	--enamel: #1d4535;
}

.varnify-stay-tag h3 {
	margin: 0;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.varnify-stay-tag p {
	margin: 0;
	line-height: 1.45;
}

/* 1. By the door: tall, its top arched, one screw under the arch. */
.varnify-stay-tag:nth-child(6n + 1) {
	--hang: -0.5deg;
	grid-column: 1 / span 4;
	grid-row: span 2;
	align-self: stretch;
	justify-content: center;
	min-height: 20rem;
	padding: 5rem 2.25rem 2.5rem;
	border-radius: 50% 50% 14px 14px / 4.5rem 4.5rem 14px 14px;
	background:
		var(--screw) 50% 1.6rem / 12px 12px no-repeat,
		var(--screw) var(--at) calc(100% - var(--at)) / 12px 12px no-repeat,
		var(--screw) calc(100% - var(--at)) calc(100% - var(--at)) / 12px 12px no-repeat,
		var(--enamel);
}

.varnify-stay-tag:nth-child(6n + 1) h3 {
	font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
}

/* 2. A long plank across the wall: name and words side by side, a screw at each end. */
.varnify-stay-tag:nth-child(6n + 2) {
	--hang: 0.35deg;
	grid-column: 5 / span 8;
	flex-direction: row;
	align-items: baseline;
	gap: 0.6rem 2rem;
	padding: 1.5rem 3.25rem;
	border-radius: 5px;
	background:
		var(--screw) 1.3rem 50% / 12px 12px no-repeat,
		var(--screw) calc(100% - 1.3rem) 50% / 12px 12px no-repeat,
		var(--enamel);
	box-shadow: inset 0 0 0 5px var(--enamel), inset 0 0 0 7px var(--line), 0 3px 0 rgba(0, 0, 0, 0.35), 0 10px 18px -10px rgba(20, 14, 8, 0.6);
}

.varnify-stay-tag:nth-child(6n + 2) h3 {
	flex: none;
}

/* 3. An ordinary plate, four screws. */
.varnify-stay-tag:nth-child(6n + 3) {
	--hang: 0.9deg;
	grid-column: 5 / span 4;
}

/* 4. A small plate with round ends, put up later and a little lower. */
.varnify-stay-tag:nth-child(6n + 4) {
	--hang: -1.4deg;
	grid-column: 9 / span 3;
	margin-top: 2.25rem !important;
	padding: 1.5rem 1.75rem 1.6rem;
	border-radius: 2.25rem;
	font-size: 0.9375rem;
	background:
		var(--screw) 50% 0.7rem / 12px 12px no-repeat,
		var(--screw) 50% calc(100% - 0.7rem) / 12px 12px no-repeat,
		var(--enamel);
}

.varnify-stay-tag:nth-child(6n + 4) h3 {
	font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.625rem);
}

/* 5. A wide one, set in a little from the door. */
.varnify-stay-tag:nth-child(6n + 5) {
	--hang: 0.4deg;
	grid-column: 2 / span 5;
}

/*
 * 6. Hung from a nail on a wire run to two screw eyes, so it hangs a touch
 * further off true, from the nail.
 */
.varnify-stay-tag:nth-child(6n) {
	--hang: -1.8deg;
	grid-column: 7 / span 5;
	margin-top: 3.25rem !important;
	background:
		var(--screw) 22% 0.75rem / 12px 12px no-repeat,
		var(--screw) 78% 0.75rem / 12px 12px no-repeat,
		var(--enamel);
	transform-origin: 50% -2.2rem;
}

.varnify-stay-tag:nth-child(6n)::before {
	content: "";
	position: absolute;
	bottom: calc(100% - 0.75rem - 6px);
	left: calc(22% + 6px);
	right: calc(22% + 6px);
	height: 2.9rem;
	background:
		radial-gradient(circle at 50% 4px, #d8d0c2 0 2px, #3a3530 2.5px 4px, transparent 4.5px),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100 L50 4 L100 100' fill='none' stroke='%232b2622' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	pointer-events: none;
}

/* A wall with fewer signs: the last one takes what is left of its row. */
.varnify-stay-tag:last-child:nth-child(6n + 3) {
	grid-column: 5 / -1;
}

@media (max-width: 1099px) and (min-width: 782px) {
	.varnify-stay-tag:nth-child(6n + 1) {
		grid-column: 1 / span 5;
	}

	.varnify-stay-tag:nth-child(6n + 2) {
		grid-column: 6 / -1;
		flex-direction: column;
		gap: 0.6rem;
		padding-block: 1.6rem;
	}

	.varnify-stay-tag:nth-child(6n + 3) {
		grid-column: 6 / span 4;
	}

	.varnify-stay-tag:nth-child(6n + 4) {
		grid-column: 10 / -1;
	}

	.varnify-stay-tag:nth-child(6n + 5) {
		grid-column: 1 / span 6;
	}

	.varnify-stay-tag:nth-child(6n) {
		grid-column: 7 / -1;
	}
}

/* On a phone: one under the other, but not one size, nor all in line. */
@media (max-width: 781px) {
	.varnify-stay-labels {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 1.5rem 0;
	}

	.varnify-stay-tag,
	.varnify-stay-tag:is(:nth-child(6n + 1), :nth-child(6n + 2), :nth-child(6n + 3), :nth-child(6n + 4), :nth-child(6n + 5), :nth-child(6n)) {
		grid-column: 1 / -1;
		grid-row: auto;
		padding-inline: 1.5rem;
	}

	.varnify-stay-tag:nth-child(6n + 1) {
		min-height: 0;
		padding-top: 4.25rem;
		border-radius: 50% 50% 14px 14px / 3.5rem 3.5rem 14px 14px;
	}

	.varnify-stay-tag:nth-child(6n + 2) {
		flex-direction: column;
		gap: 0.6rem;
		padding: 1.4rem 2.5rem;
	}

	.varnify-stay-tag:nth-child(6n + 3) {
		grid-column: 1 / span 11;
	}

	.varnify-stay-tag:nth-child(6n + 4) {
		grid-column: 3 / -1;
		margin-top: 0.5rem !important;
	}

	.varnify-stay-tag:nth-child(6n + 5) {
		grid-column: 2 / -1;
	}

	.varnify-stay-tag:nth-child(6n) {
		grid-column: 1 / span 11;
		margin-top: 3rem !important;
	}
}

/* ---------------------------------------------------------------------------
   A cottage's page.
   --------------------------------------------------------------------------- */

.varnify-stay-unit__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 3.5rem;
	align-items: flex-start;
}

.varnify-stay-unit__story {
	flex: 999 1 36rem;
	min-width: 0;
	font-size: var(--wp--preset--font-size--large);
}

.varnify-stay-unit__story > p {
	max-width: 38rem;
}

.varnify-stay-unit__side {
	position: sticky;
	top: 1.5rem;
	flex: 1 1 21rem;
	min-width: 0;
}

.varnify-stay-unit__h {
	margin: 0 0 1.25rem;
	font-size: var(--wp--preset--font-size--x-large) !important;
}

/*
 * A cottage's photographs, laid out like the pages of a guidebook rather
 * than a grid of equal boxes: the first big, the next two beside it, then
 * a tall one, a wide one and two small, and a last one across the width.
 * Each keeps its own crop; one grade and one corner across them all.
 */
.wp-block-gallery.varnify-stay-gallery {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-auto-rows: clamp(7.5rem, 11vw, 11rem);
	grid-auto-flow: dense;
	gap: 0.6rem !important;
	margin-block: 2rem;
}

.wp-block-gallery.varnify-stay-gallery > figure.wp-block-image {
	grid-column: span 2;
	width: auto !important;
	height: 100%;
	margin: 0 !important;
}

.wp-block-gallery.varnify-stay-gallery > figure.wp-block-image:nth-child(7n + 1) {
	grid-column: span 4;
	grid-row: span 2;
}

.wp-block-gallery.varnify-stay-gallery > figure.wp-block-image:nth-child(7n + 4) {
	grid-row: span 2;
}

.wp-block-gallery.varnify-stay-gallery > figure.wp-block-image:nth-child(7n + 5) {
	grid-column: span 4;
}

.wp-block-gallery.varnify-stay-gallery > figure.wp-block-image:nth-child(7n + 6) {
	grid-column: span 4;
}

.wp-block-gallery.varnify-stay-gallery > figure.wp-block-image:nth-child(7n):last-child,
.wp-block-gallery.varnify-stay-gallery > figure.wp-block-image:nth-child(7n + 1):last-child:not(:first-child) {
	grid-column: 1 / -1;
	grid-row: span 2;
}

.wp-block-gallery.varnify-stay-gallery > figure.wp-block-image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	border-radius: 6px;
}

@media (max-width: 600px) {
	.wp-block-gallery.varnify-stay-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 9rem;
	}

	.wp-block-gallery.varnify-stay-gallery > figure.wp-block-image:is(*, :nth-child(7n + 1), :nth-child(7n + 4), :nth-child(7n + 5), :nth-child(7n + 6), :nth-child(7n):last-child) {
		grid-column: span 1;
		grid-row: span 1;
	}

	/* The first big; the rest in pairs, and an odd one out across the width. */
	.wp-block-gallery.varnify-stay-gallery > figure.wp-block-image:is(:first-child, :last-child:nth-child(even)) {
		grid-column: 1 / -1;
		grid-row: span 2;
	}
}

/*
 * The facts, pressed into a strap of the cottage's own leather: the four
 * counts as marks (a little picture, a figure, a word), the beds and the
 * way round inside as sentences, and the registration on a brass plate
 * riveted at the foot. One leather object, not a ruled table.
 */
.varnify-stay-facts {
	--stitch: 7px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.6rem 1.5rem 1.5rem;
	border-radius: 16px 16px 26px 26px;
	background-color: var(--leather);
	color: var(--stay-hide);
}

.varnify-stay-facts__marks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Each mark pressed into the leather: a shallow hollow, lit from the top. */
.varnify-stay-facts__mark {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "icon figure" "word word";
	align-items: center;
	gap: 0.15rem 0.5rem;
	padding: 0.7rem 0.8rem 0.65rem;
	border-radius: 10px;
	background: rgba(20, 10, 4, 0.16);
	box-shadow: inset 0 2px 3px rgba(20, 10, 4, 0.45), inset 0 -1px 0 rgba(255, 236, 205, 0.12), 0 1px 0 rgba(255, 236, 205, 0.1);
}

.varnify-stay-facts__mark svg {
	grid-area: icon;
	opacity: 0.9;
}

.varnify-stay-facts__mark strong {
	grid-area: figure;
	font-family: var(--stay-display);
	font-size: 2rem;
	font-weight: 700;
	font-stretch: 80%;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-facts__mark span {
	grid-area: word;
	font-size: 0.875rem;
	line-height: 1.25;
}

.varnify-stay-facts__line {
	margin: 0;
	font-size: 1rem;
	line-height: 1.45;
}

.varnify-stay-facts__line strong {
	display: block;
	font-family: var(--stay-display);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* The registration on a small brass plate, riveted at the foot. */
.varnify-stay-facts__plate {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 0.1rem 0.6rem;
	align-items: baseline;
	margin: 0.25rem 0 0;
	padding: 0.55rem 1.6rem;
	border-radius: 4px;
	background: linear-gradient(180deg, #e6c47c, #c99d4c 55%, #b08436);
	box-shadow: inset 0 1px 0 rgba(255, 248, 225, 0.6), inset 0 -1px 0 rgba(60, 38, 8, 0.4), 0 2px 3px rgba(20, 10, 4, 0.45);
	color: var(--stay-ink);
	font-size: 0.8125rem;
}

.varnify-stay-facts__plate strong {
	font-family: var(--stay-display);
	font-size: 1rem;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-facts__plate::before,
.varnify-stay-facts__plate::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -3.5px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #fff3cf, #a07a32 60%, #5c4314);
	box-shadow: 0 1px 0 rgba(255, 248, 225, 0.5);
}

.varnify-stay-facts__plate::before {
	left: 0.55rem;
}

.varnify-stay-facts__plate::after {
	right: 0.55rem;
}


/*
 * Booking by phone: the same plain board as the booking panel, saying how
 * to book, and beside it the cottage's own fob hung from its brass ring,
 * carrying the call button where the booking panel's fob carries Book. The
 * leather is never wider than a fob. The ring is drawn by the fob's hanger
 * (the fob's own ::before and ::after are its grain and thread), so the
 * pattern is all ordinary blocks an owner can edit.
 */
.varnify-stay-bookby__card {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
	padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.1rem, 3vw, 2.5rem);
	border-radius: 24px;
	background-color: var(--stay-panel);
	box-shadow: var(--stay-panel-edge);
	color: var(--stay-hide);
}

.varnify-stay-bookby__card a {
	color: var(--stay-hide);
}

.varnify-stay-bookby__card :focus-visible {
	outline-color: #fff;
}

.varnify-stay-bookby__words {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.varnify-stay-bookby__words p {
	margin: 0;
}

.varnify-stay-bookby__card .varnify-stay-lede {
	flex: none;
	max-width: 36rem;
	color: var(--stay-hide);
}

.varnify-stay-bookby__or {
	margin-top: 0.5rem !important;
	padding-top: 1rem;
	border-top: 2px dashed rgba(246, 239, 228, 0.4);
	font-size: 0.9375rem;
}

.varnify-stay-bookby__email {
	margin-top: -0.6rem !important;
}

.varnify-stay-bookby__email a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.varnify-stay-bookby__hang {
	position: relative;
	justify-self: center;
	width: 100%;
	max-width: 24rem;
	min-width: 0;
}

.varnify-stay-bookby__hang::after {
	content: "";
	position: absolute;
	z-index: 2;
	top: 2.6rem;
	left: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	pointer-events: none;
}

.varnify-stay-bookby__fob {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding: 5rem 1.75rem 1.75rem;
	border-radius: 30px 30px 20px 20px;
	background-color: var(--leather, var(--stay-saddle));
	color: var(--stay-hide);
	text-align: center;
	--stitch: 9px;
}

.varnify-stay-bookby__fob p {
	margin: 0;
}

/* "Ring to book" and the owners' names, pressed in like the fob's number and name. */
.varnify-stay-bookby__label {
	font-family: var(--stay-display);
	font-size: 1rem;
	font-weight: 700;
	font-stretch: 80%;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.varnify-stay-bookby__who {
	font-family: var(--stay-display);
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
	font-weight: 600;
	font-stretch: 85%;
	line-height: 1;
	letter-spacing: -0.03em;
	overflow-wrap: anywhere;
}

.varnify-stay-bookby__label,
.varnify-stay-bookby__who {
	text-shadow: 0 -1px 0 rgba(20, 10, 4, 0.65), 0 1px 0 rgba(255, 236, 205, 0.24), 0 0 1px rgba(20, 10, 4, 0.35);
}

/* The call button on the fob is its Book button: white, the full width. */
.varnify-stay-bookby__fob .varnify-stay-call {
	justify-content: center;
	width: 100%;
	min-height: 58px;
	margin-top: 0.4rem;
	border: 0;
	background: #fff;
	color: var(--stay-ink);
	font-family: var(--stay-display);
	font-size: 1.25rem;
	white-space: normal;
}

.varnify-stay-bookby__fob .varnify-stay-call:hover {
	background: var(--stay-hide);
	color: var(--stay-ink);
}

.varnify-stay-bookby__fob .varnify-stay-call:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.varnify-stay-bookby__note {
	font-size: 0.875rem;
	line-height: 1.45;
}

/* Under the words on a tablet or a phone; the fob keeps a fob's width. */
@media (max-width: 1023px) {
	.varnify-stay-bookby__card {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.varnify-stay-bookby__card {
		border-radius: 18px;
	}

	.varnify-stay-bookby__fob {
		padding-inline: 1.4rem;
	}
}

/* ---------------------------------------------------------------------------
   Plain pages, the archive head and the footer.
   --------------------------------------------------------------------------- */

.varnify-stay-text {
	padding-block: var(--wp--preset--spacing--60) var(--stay-section);
}

.varnify-stay-text h1 {
	margin-bottom: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--xx-large);
}

.varnify-stay-text h2 {
	margin-top: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--x-large);
}

.varnify-stay-pagehead {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.varnify-stay-pagehead h1 {
	margin: 0;
}

.varnify-stay-foot {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	font-size: 1rem;
}

.varnify-stay-foot a {
	color: #fff;
}

.varnify-stay-foot__grid {
	gap: 2.5rem 4rem;
}

.varnify-stay-foot__who {
	gap: 0.4rem;
}

.varnify-stay-foot__who p {
	margin: 0;
}

.varnify-stay-foot__name {
	margin-bottom: 0.4rem !important;
	color: #fff;
	font-family: var(--stay-display);
	font-size: 1.75rem !important;
}

.varnify-stay-foot__name a {
	color: inherit;
	text-decoration: none;
}

.varnify-stay-foot__phone a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-foot__licences {
	flex: 0 1 34rem;
}

.varnify-stay-licences table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-licences th,
.varnify-stay-licences td {
	padding: 0.5rem 1rem 0.5rem 0;
	border-bottom: 1px solid rgba(246, 239, 228, 0.18);
	text-align: left;
	font-weight: 400;
}

.varnify-stay-licences thead th {
	color: var(--stay-brass);
	font-weight: 700;
}

.varnify-stay-foot__legal {
	margin-top: var(--wp--preset--spacing--50) !important;
	gap: 0 1.5rem;
}

.varnify-stay-foot__legal a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* ---------------------------------------------------------------------------
   Booking: the calendar on a plain board, and beside it the cottage's own
   fob, hung from its ring, with the price: the total, the lines, how it is
   paid and the Book button. The leather is never wider than a fob.
   --------------------------------------------------------------------------- */

.varnify-stay-bookby__title {
	margin: 0 0 var(--wp--preset--spacing--40);
}

.varnify-stay-booking {
	position: relative;
	color: var(--stay-hide);
}

.varnify-stay-booking[aria-busy="true"] .varnify-stay-open__tag {
	opacity: 0.85;
}

.varnify-stay-open {
	position: relative;
}

.varnify-stay-open__tag {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 3.5rem clamp(1.1rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
	border-radius: 24px;
	background-color: var(--stay-panel);
	box-shadow: var(--stay-panel-edge);
}

.varnify-stay-open__ring {
	position: absolute;
	z-index: 2;
	top: 2.6rem;
	left: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	pointer-events: none;
}

.varnify-stay-open__tag p,
.varnify-stay-open__tag h2,
.varnify-stay-open__tag h3 {
	margin: 0;
}

.varnify-stay-open__tag a {
	color: var(--stay-hide);
}

.varnify-stay-open__tag :focus-visible {
	outline-color: #fff;
}

.varnify-stay-open__steps {
	position: absolute;
	top: 1.4rem;
	left: 2.25rem;
	display: flex;
	gap: 6px;
	width: min(9rem, 26%);
}

.varnify-stay-open__steps span[aria-hidden] {
	flex: 1 1 0;
	height: 6px;
	border-radius: 3px;
	background: rgba(246, 239, 228, 0.3);
}

.varnify-stay-open__steps span.is-on {
	background: #fff;
}

.varnify-stay-open__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 0.25rem 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px dashed rgba(246, 239, 228, 0.4);
}

.varnify-stay-open__no {
	grid-column: 2;
	grid-row: 1;
	font-size: 0.875rem;
}

.varnify-stay-open__name {
	font-family: var(--stay-display);
	font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
	font-weight: 600;
	font-stretch: 85%;
	line-height: 0.95;
	letter-spacing: -0.035em;
}

.varnify-stay-open__meta {
	grid-column: 1 / -1;
	font-size: 0.9375rem;
}

.varnify-stay-open__cols {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

.varnify-stay-open__cal {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

/*
 * Earlier and later months: one arrow at each end of the month names' row,
 * the names centred between, so nothing crowds a month's name.
 */
.varnify-stay-open__months {
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	left: 0;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
}

.varnify-stay-open__months > * {
	pointer-events: auto;
}

.varnify-stay-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 2px solid rgba(246, 239, 228, 0.8);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.14);
	color: var(--stay-hide);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.varnify-stay-step:hover {
	background: rgba(0, 0, 0, 0.3);
}

.varnify-stay-step.is-off {
	opacity: 0.35;
}

.varnify-stay-open__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	/* A five-week month beside a six-week one keeps its rows the same
	   height, so the weeks line up across the two. */
	align-items: start;
	gap: 1.5rem;
}

.varnify-stay-cal {
	width: 100%;
	border-collapse: separate;
	border-spacing: 3px;
	table-layout: fixed;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-cal caption {
	padding: 0.4rem 0 0.6rem;
	text-align: center;
	font-family: var(--stay-display);
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.varnify-stay-cal th {
	padding: 0 0 0.25rem;
	font-size: 0.75rem;
	font-weight: 500;
}

.varnify-stay-cal abbr {
	text-decoration: none;
}

.varnify-stay-cal td {
	padding: 0;
}

.varnify-stay-day {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	/* Room for the diary's ink line along the foot of a chosen night, kept
	   at the head too, so the date sits in the middle of its square. */
	padding-block: 6px;
	border: 2px solid transparent;
	border-radius: 6px;
	color: var(--stay-hide);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.varnify-stay-day__mark {
	font-size: 0.625rem;
	font-weight: 600;
	text-transform: none;
}

/* Past, too soon or closed: plain and light, still readable on the leather. */
.varnify-stay-day.is-off {
	font-size: 0.875rem;
	font-weight: 300;
}

.varnify-stay-day.is-taken .varnify-stay-day__n {
	font-weight: 400;
	text-decoration: line-through;
	text-decoration-thickness: 2px;
}

/* Someone leaves this morning, the night is free: the owner's diagonal. */
.varnify-stay-day.is-turn {
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.28) 0 50%, transparent 50% 100%);
}

a.varnify-stay-day.is-arrive,
a.varnify-stay-day.is-leave {
	border-color: rgba(246, 239, 228, 0.85);
	background-color: rgba(0, 0, 0, 0.14);
}

a.varnify-stay-day.is-leave {
	border-style: dashed;
}

a.varnify-stay-day:hover {
	background-color: rgba(0, 0, 0, 0.32);
}

/*
 * The nights chosen: each square filled like a page of the diary, with the
 * owner's ink line drawn under them from the arrival (a dot) to the morning
 * they leave (a bar). The line itself is in varnify-stay-motion.css.
 */
.varnify-stay-day.is-in,
.varnify-stay-day.is-out,
.varnify-stay-day.is-mid {
	border-color: var(--stay-hide);
	background: var(--stay-hide);
	color: var(--stay-ink);
}

.varnify-stay-day.is-in,
.varnify-stay-day.is-out {
	border-color: var(--stay-ink);
	box-shadow: inset 0 0 0 1px var(--stay-ink);
}

/*
 * Held for another guest who is booking it now: pencilled in, not inked.
 * Hatched in pencil with a dashed edge, it reads as neither free (bold) nor
 * booked (struck through), and may come free again.
 */
.varnify-stay-day.is-held {
	border: 2px dashed rgba(246, 239, 228, 0.7);
	background: repeating-linear-gradient(135deg, rgba(246, 239, 228, 0.22) 0 2px, transparent 2px 7px);
	font-weight: 400;
}

.varnify-stay-day.is-held .varnify-stay-day__n {
	font-weight: 500;
}

a.varnify-stay-day.is-in:hover {
	background: var(--stay-hide);
}

.varnify-stay-open__rules {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	line-height: 1.5;
}

/* "Calendar checked against Airbnb and Booking.com at 2:40pm": a stitched
   tick, like the owner's pencil mark in the diary after ringing round. */
.varnify-stay-open__synced {
	display: flex;
	gap: 0.55em;
	align-items: baseline;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

.varnify-stay-open__synced::before {
	content: "";
	flex: none;
	width: 0.7em;
	height: 0.38em;
	border-bottom: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: translateY(-0.2em) rotate(-45deg);
}

.varnify-stay-party {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(246, 239, 228, 0.3);
}

.varnify-stay-party label {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-weight: 600;
	font-size: 0.9375rem;
}

.varnify-stay-party select,
.varnify-stay-field input,
.varnify-stay-field textarea {
	min-height: 48px;
	padding: 0.55rem 0.8rem;
	border: 2px solid rgba(246, 239, 228, 0.75);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.18);
	color: var(--stay-hide);
	font-size: 1.0625rem;
}

.varnify-stay-party select option {
	color: var(--stay-ink);
}

.varnify-stay-party__go {
	min-height: 48px;
	padding: 0 1rem;
	border: 2px solid rgba(246, 239, 228, 0.75);
	border-radius: 10px;
	background: transparent;
	color: var(--stay-hide);
	font-weight: 600;
	cursor: pointer;
}

.varnify-stay-open__sum {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding: 5rem 1.75rem 1.75rem;
	border-radius: 30px 30px 20px 20px;
	background-color: var(--leather, var(--stay-saddle));
	--stitch: 9px;
}

/* Focused by the script after a redraw, so a screen reader reads the new price; nothing to show. */
.varnify-stay-open__sum:focus {
	outline: none;
}

.varnify-stay-open__ask {
	font-family: var(--stay-display);
	font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.varnify-stay-open__range {
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-open__total {
	font-family: var(--stay-display);
	font-size: clamp(3.5rem, 2.4rem + 4vw, 6rem);
	font-weight: 600;
	font-stretch: 75%;
	line-height: 0.85;
	letter-spacing: -0.06em;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-open__lines {
	display: grid;
	gap: 0.2rem;
	margin: 0;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-open__lines div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.varnify-stay-open__lines dd {
	margin: 0;
}

.varnify-stay-open__lines--levies {
	padding-top: 0.4rem;
	border-top: 2px solid rgba(246, 239, 228, 0.6);
}

.varnify-stay-open__pay {
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.3;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-open__note,
.varnify-stay-open__talk {
	font-size: 0.875rem;
}

.varnify-stay-open__problem {
	padding: 0.8rem 1rem;
	border-radius: 10px;
	background: var(--stay-hide);
	color: var(--wp--preset--color--oxblood, #8a2c28);
	font-weight: 600;
}

.varnify-stay-open__problem a {
	color: inherit !important;
}

.varnify-stay-open__problem ul {
	margin: 0.4rem 0 0;
	padding-left: 1.2rem;
}

.varnify-stay-open__alts {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.varnify-stay-open__alts a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	min-height: 52px;
	padding: 0.6rem 0.9rem;
	border: 2px solid rgba(246, 239, 228, 0.7);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.14);
	text-decoration: none;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-open__alts a:hover {
	background: rgba(0, 0, 0, 0.3);
}

.varnify-stay-go {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 58px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: var(--stay-ink);
	font-family: var(--stay-display);
	font-size: 1.25rem;
	font-weight: 700;
	cursor: pointer;
}

.varnify-stay-go:hover {
	background: var(--stay-hide);
}

.varnify-stay-open__form {
	margin: 0.25rem 0 0;
}

/* How guests pay (1.3): the deposit by bank transfer or a payment link, on
   the fob, as the paid lines. */
.varnify-stay-ways__title {
	font-size: 1.1875rem;
	line-height: 1.3;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-ways__bank {
	margin: 0.75rem 0;
	padding: 0.7rem 0.9rem;
	border: 2px dashed rgba(246, 239, 228, 0.7);
	border-radius: 10px;
}

.varnify-stay-ways__bank p {
	margin: 0.3rem 0 0;
}

.varnify-stay-ways__how {
	font-weight: 700;
	margin-top: 0 !important;
}

.varnify-stay-ways__details,
.varnify-stay-ways__ref {
	font-variant-numeric: tabular-nums lining-nums;
	overflow-wrap: anywhere;
}

.varnify-stay-ways__link {
	margin: 0.75rem 0;
}

.varnify-stay-ways__link .varnify-stay-go,
.varnify-stay-ways__link .varnify-stay-go:hover,
.varnify-stay-ways__link .varnify-stay-go:visited {
	color: var(--stay-ink) !important;
	text-decoration: none;
}

.varnify-stay-ways__host,
.varnify-stay-ways__rest {
	font-size: 0.875rem;
}

.varnify-stay-ways__host {
	display: block;
	margin-top: 0.35rem;
	text-align: center;
}

/* Payments: what is paid, where the card goes, and test mode. */
.varnify-stay-open__paid {
	font-weight: 700;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-stay-open__secure {
	margin-top: 0.6rem;
}

.varnify-stay-open__test {
	padding: 0.6rem 0.8rem;
	border: 2px dashed var(--stay-ink);
	border-radius: 10px;
	background: var(--stay-hide);
	color: var(--stay-ink);
	font-variant-numeric: tabular-nums;
}

.varnify-stay-details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.varnify-stay-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.varnify-stay-field label {
	font-weight: 600;
}

.varnify-stay-field__help {
	font-size: 0.8125rem;
}

.varnify-stay-field.is-bad input,
.varnify-stay-agree.is-bad input {
	border-color: #fff;
	outline: 3px solid #fff;
	outline-offset: 1px;
}

.varnify-stay-agree {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.9375rem;
}

.varnify-stay-agree input {
	flex: none;
	width: 24px;
	height: 24px;
	margin: 0;
	accent-color: #fff;
}

.varnify-stay-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Under the calendar on a tablet or a phone, the fob keeps a fob's width. */
@media (max-width: 1023px) {
	.varnify-stay-open__cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.varnify-stay-open__sum {
		width: 100%;
		max-width: 30rem;
		justify-self: center;
	}
}

@media (max-width: 600px) {
	.varnify-stay-open__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.varnify-stay-open__steps {
		left: 1.4rem;
	}

	.varnify-stay-open__tag {
		border-radius: 18px;
	}

	.varnify-stay-open__sum {
		padding-inline: 1.4rem;
	}
}
