/*
Theme Name: EDZNET Holiday Cottage
Theme URI: https://proof.edznet.dev/holiday-cottage/
Author: EDZNET
Author URI: https://edznet.dev/
Description: A one-of-a-kind block theme for two self-catering holiday cottages on the Cornish coast, shown as Porthwenack Cottages. Tide and season led: the homepage carries this week's season band, the next free week in each cottage and a stylised tide line, and the availability calendar shows Saturday-to-Saturday weeks with low, mid and high season prices, short breaks in low season and booked weeks, all editable in the Site Editor. Includes a dog-friendly and a pet-free cottage, walks from the door with a sketch map, getting-here notes and a UK GDPR privacy notice. Fonts are bundled; no third-party requests.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edznet-holiday-cottage
Tags: block-patterns, block-styles, full-site-editing, custom-colors, editor-style, holiday, one-column, template-editing, translation-ready, wide-blocks
*/

/* Tokens: aliases of theme.json presets */
:root {
	--ehc-base: var(--wp--preset--color--base);
	--ehc-panel: var(--wp--preset--color--panel);
	--ehc-card: var(--wp--preset--color--card);
	--ehc-ink: var(--wp--preset--color--ink);
	--ehc-ink-soft: var(--wp--preset--color--ink-soft);
	--ehc-accent: var(--wp--preset--color--accent);
	--ehc-lichen: var(--wp--preset--color--lichen);
	--ehc-buoy: var(--wp--preset--color--buoy);
	--ehc-night: var(--wp--preset--color--night);
	--ehc-night-ink: var(--wp--preset--color--night-ink);
	--ehc-display: var(--wp--preset--font-family--display);
	--ehc-body: var(--wp--preset--font-family--body);
	--ehc-line: color-mix(in srgb, var(--ehc-ink) 16%, transparent);
	--ehc-focus: var(--ehc-accent);

	/* Illustration colours */
	--ehc-sea: color-mix(in srgb, var(--ehc-accent) 78%, var(--ehc-base));
	--ehc-sea-far: color-mix(in srgb, var(--ehc-accent) 40%, var(--ehc-base));
	--ehc-land: color-mix(in srgb, var(--ehc-ink) 72%, #6b8a5a);
	--ehc-granite: color-mix(in srgb, var(--ehc-ink) 55%, var(--ehc-base));
	--ehc-sand: color-mix(in srgb, var(--ehc-lichen) 38%, var(--ehc-base));
	--ehc-whitewash: var(--ehc-card);
}

/* Night tide: the dark scheme re-points the presets so every block follows */
@media (prefers-color-scheme: dark) {

	:root:root {
		--wp--preset--color--base: #0d1b21;
		--wp--preset--color--panel: #13262d;
		--wp--preset--color--card: #102229;
		--wp--preset--color--ink: #e6ede9;
		--wp--preset--color--ink-soft: #a9bdbf;
		--wp--preset--color--accent: #7fcad2;
		--wp--preset--color--lichen: #e2be5c;
		--wp--preset--color--buoy: #f2907f;
		--wp--preset--color--season-low: #1f3d42;
		--wp--preset--color--season-mid: #2c5c57;
		--wp--preset--color--season-high: #7a6121;
		--wp--preset--color--night: #071216;
		--wp--preset--color--night-ink: #eef1ec;
		--ehc-focus: #f0cf72;
		--ehc-land: #24352f;
		--ehc-granite: #3a4a4d;
		--ehc-sea: #1d4f57;
		--ehc-sea-far: #183a40;
		--ehc-sand: #4a4430;
		--ehc-whitewash: #d9dfd9;
		color-scheme: dark;
	}

	.ehc-tide {
		--ehc-tide-line: rgba(238, 241, 236, 0.1);
	}

	.ehc-pano .p-dark,
	.ehc-elev .e-win {
		fill: #0d1b21;
	}
}

/* Base */
body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizelegibility;
	font-variant-numeric: lining-nums;
}

:where(a) {
	text-decoration-thickness: 0.07em;
	text-underline-offset: 0.2em;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--ehc-focus);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection {
	color: var(--ehc-night);
	background: var(--ehc-lichen);
}

h1,
h2,
h3 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

h1 em,
h2 em {
	color: var(--ehc-accent);
}

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

.screen-reader-text:focus {
	z-index: 100000;
	top: 5px;
	left: 5px;
	width: auto;
	height: auto;
	padding: 1rem 1.25rem;
	clip-path: none;
	color: var(--ehc-ink);
	background: var(--ehc-card);
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		scroll-behavior: auto;
		transition-duration: 0.01ms;
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
	}
}

/* Small furniture: chart labels. Land features upright and spaced, water features in italic serif. */
.ehc-eyebrow {
	margin-bottom: 0.6rem;
	color: var(--ehc-ink-soft);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.ehc-eyebrow::before {
	content: "";
	display: inline-block;
	width: 1.6rem;
	height: 1px;
	margin-right: 0.7rem;
	vertical-align: 0.3em;
	background: currentcolor;
}

.ehc-eyebrow--water {
	color: var(--ehc-accent);
	font-family: var(--ehc-display);
	font-size: 1.35rem;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.ehc-lede {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
}

.ehc-editor-note {
	display: none;
}

.editor-styles-wrapper .ehc-editor-note {
	display: block;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	color: #1e1e1e;
	background: #fff6c8;
	border: 2px dashed #8a6d00;
}

/* Header */
.ehc-topline {
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	text-align: center;
}

.ehc-topline p {
	margin: 0;
	max-width: none;
}

.ehc-topline span + span::before,
.ehc-topline span + a::before {
	content: "";
	display: inline-block;
	width: 0.4rem;
	height: 0.4rem;
	margin: 0 0.8rem;
	vertical-align: 0.12em;
	border: 1px solid currentcolor;
	border-radius: 50%;
}

.ehc-topline a {
	color: inherit;
	font-weight: 600;
}

.ehc-brand {
	gap: 0.85rem;
}

.ehc-brand .wp-block-site-title {
	margin: 0;
}

.ehc-brand .wp-block-site-tagline {
	margin: 0.25rem 0 0;
	color: var(--ehc-ink-soft);
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ehc-mark {
	display: block;
	flex: none;
	width: 3.2rem;
	height: 3.2rem;
	color: var(--ehc-accent);
}

.ehc-header {
	border-bottom: 1px solid var(--ehc-line);
}

.ehc-header .wp-block-navigation {
	gap: 0.25rem 1.5rem;
}

.ehc-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.35rem 0;
	text-decoration: none;
}

.ehc-header .wp-block-navigation a:hover,
.ehc-header .wp-block-navigation .current-menu-item > a,
.ehc-header .wp-block-navigation a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--ehc-lichen);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.45em;
}

.ehc-header .wp-block-navigation .ehc-nav-cta a {
	padding: 0.45rem 1rem;
	color: var(--ehc-card);
	background: var(--ehc-ink);
	border-radius: 999px;
}

.ehc-header .wp-block-navigation .ehc-nav-cta a:hover,
.ehc-header .wp-block-navigation .ehc-nav-cta a[aria-current="page"] {
	color: var(--ehc-card);
	background: var(--ehc-accent);
	text-decoration: none;
}

@media (max-width: 781px) {

	.ehc-header .wp-block-navigation {
		justify-content: flex-start;
		font-size: 0.95rem;
	}
}

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--ehc-ink);
	background: transparent;
	border: 1.5px solid currentcolor;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--ehc-accent);
	background: transparent;
}

/* Hero: the cove panorama */
.ehc-hero {
	position: relative;
	overflow: hidden;
}

.ehc-hero__copy {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 1rem clamp(2rem, 5vw, 5rem);
	align-items: end;
}

.ehc-hero__copy > .ehc-eyebrow {
	grid-column: 1 / -1;
	margin: 0;
}

.ehc-hero h1 {
	margin: 0;
	font-size: clamp(3.1rem, 7.4vw, 6.6rem);
	line-height: 0.92;
	letter-spacing: -0.015em;
}

.ehc-hero h1 em {
	display: block;
	color: var(--ehc-accent);
}

.ehc-hero__aside {
	padding-bottom: 0.6rem;
}

.ehc-hero__aside .ehc-lede {
	margin-top: 0;
}

@media (max-width: 900px) {

	.ehc-hero__copy {
		grid-template-columns: 1fr;
	}
}

.ehc-pano {
	margin: clamp(1.5rem, 4vw, 3rem) 0 0;
	line-height: 0;
}

.ehc-pano svg {
	display: block;
	width: 100%;
	height: auto;
	min-height: 15rem;
	max-height: 34rem;
}

.ehc-pano .p-sun {
	fill: var(--ehc-lichen);
}

.ehc-pano .p-ring {
	fill: none;
	stroke: var(--ehc-lichen);
	stroke-width: 1;
	stroke-dasharray: 2 6;
}

.ehc-pano .p-far {
	fill: var(--ehc-sea-far);
}

.ehc-pano .p-sea {
	fill: var(--ehc-sea);
}

.ehc-pano .p-glint {
	stroke: var(--ehc-lichen);
	stroke-width: 2;
	stroke-linecap: round;
	opacity: 0.8;
}

.ehc-pano .p-wave {
	fill: none;
	stroke: var(--ehc-night-ink);
	stroke-width: 2;
	stroke-linecap: round;
	opacity: 0.5;
}

.ehc-pano .p-sound text {
	fill: var(--ehc-night-ink);
	font-family: var(--ehc-display);
	font-size: 15px;
	font-style: italic;
	opacity: 0.75;
}

.ehc-pano .p-land {
	fill: var(--ehc-land);
}

.ehc-pano .p-cliff {
	fill: color-mix(in srgb, var(--ehc-land) 55%, var(--ehc-night));
}

.ehc-pano .p-rock {
	fill: var(--ehc-granite);
}

.ehc-pano .p-wall {
	fill: none;
	stroke: var(--ehc-granite);
	stroke-width: 4;
	stroke-linecap: round;
}

.ehc-pano .p-hut rect,
.ehc-pano .p-house rect {
	fill: var(--ehc-whitewash);
}

.ehc-pano .p-house--stone > rect:first-child {
	fill: var(--ehc-granite);
}

.ehc-pano .p-roof,
.ehc-pano .p-chim,
.ehc-pano .p-stair {
	fill: var(--ehc-ink);
}

.ehc-pano .p-house .p-dark,
.ehc-pano .p-hut .p-dark {
	fill: var(--ehc-ink);
}

.ehc-pano .p-house .p-door {
	fill: var(--ehc-buoy);
}

.ehc-pano .p-sand {
	fill: var(--ehc-sand);
}

.ehc-pano .p-tide {
	fill: none;
	stroke: var(--ehc-ink);
	stroke-width: 1.5;
	stroke-dasharray: 1 5;
	stroke-linecap: round;
}

.ehc-pano .p-path {
	fill: none;
	stroke: var(--ehc-lichen);
	stroke-width: 2.5;
	stroke-dasharray: 7 6;
	stroke-linecap: round;
}

.ehc-pano .p-quay {
	fill: var(--ehc-granite);
}

.ehc-pano .p-boat {
	fill: var(--ehc-buoy);
}

.ehc-pano .p-mast,
.ehc-pano .p-gull {
	fill: none;
	stroke: var(--ehc-ink);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ehc-pano .p-label text {
	fill: var(--ehc-night-ink);
	font-family: var(--ehc-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.24em;
}

.ehc-pano .p-label .p-label--small {
	fill: var(--ehc-ink);
	font-size: 10px;
	letter-spacing: 0.16em;
}

.ehc-pano .p-label .p-label--water {
	fill: var(--ehc-night-ink);
	font-family: var(--ehc-display);
	font-size: 26px;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.ehc-pano .p-label .p-label--water.p-label--small {
	fill: var(--ehc-ink);
	font-size: 15px;
}

/* Sections */
.ehc-section-head {
	max-width: 46rem;
	margin-bottom: var(--wp--preset--spacing--40);
}

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

.ehc-section--rule {
	border-top: 1px solid var(--ehc-line);
}

/* Depth contours behind panel sections, like isobaths on a chart */
.ehc-contours {
	position: relative;
	isolation: isolate;
}

.ehc-contours::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='160' viewBox='0 0 600 160'%3E%3Cg fill='none' stroke='%2346585e' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M0 40c80-24 160 24 240 0s160-24 240 0 80 12 120 0'/%3E%3Cpath d='M0 80c90-30 170 30 260 0s170-28 250 0 60 10 90 0' stroke-dasharray='4 5'/%3E%3Cpath d='M0 124c100-22 180 22 280 0s160-22 240 0 60 8 80 0'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 600px 160px;
	pointer-events: none;
}

/* Cottage cards */
.ehc-cards {
	gap: var(--wp--preset--spacing--40);
}

.ehc-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--ehc-card);
	border: 1px solid var(--ehc-line);
	border-radius: 1rem;
	box-shadow: var(--wp--preset--shadow--lifted);
}

.ehc-card h3 {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--xx-large);
}

.ehc-card__link {
	margin-top: auto;
	padding-top: 1rem;
	font-weight: 600;
}

.ehc-tag {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.25rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border: 1.5px solid currentcolor;
	border-radius: 999px;
}

.ehc-tag::before {
	content: "";
	width: 0.95rem;
	height: 0.95rem;
	background: currentcolor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cellipse cx='8' cy='11' rx='3.6' ry='3'/%3E%3Ccircle cx='3' cy='7' r='1.6'/%3E%3Ccircle cx='6' cy='3.6' r='1.6'/%3E%3Ccircle cx='10' cy='3.6' r='1.6'/%3E%3Ccircle cx='13' cy='7' r='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ehc-tag--dogs {
	color: var(--ehc-accent);
}

.ehc-tag--nodogs {
	color: var(--ehc-buoy);
}

.ehc-tag--nodogs::before {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.2' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M3.6 12.4l8.8-8.8' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ehc-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ehc-line);
}

.ehc-facts li {
	padding: 0.65rem 0.5rem 0.65rem 0;
	border-bottom: 1px solid var(--ehc-line);
	line-height: 1.35;
}

.ehc-facts strong {
	display: block;
	color: var(--ehc-ink-soft);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Elevation drawings */
.ehc-elev {
	display: block;
	width: 100%;
	max-width: 26rem;
	height: auto;
	margin: 0 auto 0.5rem;
}

.ehc-elev .e-roof,
.ehc-elev .e-chim {
	fill: var(--ehc-ink);
}

.ehc-elev .e-stone,
.ehc-elev .e-stair {
	fill: var(--ehc-granite);
}

.ehc-elev .e-white {
	fill: var(--ehc-whitewash);
	stroke: var(--ehc-ink);
	stroke-width: 2;
}

.ehc-elev .e-course {
	fill: none;
	stroke: var(--ehc-base);
	stroke-width: 1.5;
	opacity: 0.35;
}

.ehc-elev .e-win {
	fill: var(--ehc-sea-far);
	stroke: var(--ehc-ink);
	stroke-width: 2;
}

.ehc-elev .e-win--sea {
	fill: var(--ehc-sea);
}

.ehc-elev .e-bar,
.ehc-elev .e-rail,
.ehc-elev .e-pole,
.ehc-elev .e-sky,
.ehc-elev .e-thrift {
	fill: none;
	stroke: var(--ehc-ink);
	stroke-width: 2;
	stroke-linecap: round;
}

.ehc-elev .e-door {
	fill: var(--ehc-buoy);
	stroke: var(--ehc-ink);
	stroke-width: 2;
}

.ehc-elev .e-door--sea {
	fill: var(--ehc-accent);
}

.ehc-elev .e-knob {
	fill: var(--ehc-lichen);
}

.ehc-elev .e-flag,
.ehc-elev .e-bloom {
	fill: var(--ehc-buoy);
}

.ehc-elev .e-pot {
	fill: var(--ehc-sand);
	stroke: var(--ehc-ink);
	stroke-width: 2;
}

.ehc-elev .e-bowl {
	fill: var(--ehc-accent);
}

.ehc-elev .e-ground {
	stroke: var(--ehc-ink);
	stroke-width: 3;
	stroke-linecap: round;
}

/* Walk list (homepage) */
.ehc-walklist {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: walk;
}

.ehc-walklist li {
	display: grid;
	grid-template-columns: 3.2rem 1fr;
	gap: 0.15rem 1rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--ehc-line);
	counter-increment: walk;
}

.ehc-walklist li:first-child {
	border-top: 1px solid var(--ehc-line);
}

.ehc-walklist li::before {
	content: counter(walk);
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	color: var(--ehc-card);
	background: var(--ehc-accent);
	border-radius: 50%;
	font-family: var(--ehc-display);
	font-size: 1.5rem;
}

.ehc-walklist strong {
	font-family: var(--ehc-display);
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.1;
}

.ehc-walklist span {
	color: var(--ehc-ink-soft);
}

/* Tide staff: how a stay works */
.wp-block-group.ehc-staff {
	grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
}

.ehc-staff {
	gap: 0;
	border-left: 6px solid var(--ehc-ink);
}

.ehc-staff__mark {
	position: relative;
	padding: 0.25rem 1.5rem 0.5rem;
	border-right: 1px solid var(--ehc-line);
}

.ehc-staff__mark::before {
	content: "";
	position: absolute;
	top: 0.9rem;
	left: 0;
	width: 1rem;
	height: 3px;
	background: var(--ehc-ink);
}

.ehc-staff__mark:nth-child(odd)::before {
	width: 0.6rem;
	background: var(--ehc-buoy);
}

.ehc-staff__figure {
	margin: 0 0 0.4rem;
	font-family: var(--ehc-display);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.05;
}

.ehc-staff p:not(.ehc-staff__figure) {
	margin: 0;
	color: var(--ehc-ink-soft);
}

/* News cards */
.ehc-post-card {
	height: 100%;
	padding: 1.25rem 0 0;
	border-top: 3px solid var(--ehc-ink);
}

.ehc-post-card .wp-block-post-title {
	margin: 0.4rem 0 0.6rem;
}

.ehc-post-card .wp-block-post-title a:hover {
	color: var(--ehc-accent);
}

.ehc-post-card .wp-block-post-excerpt {
	color: var(--ehc-ink-soft);
}

/* Inner-page masthead: a horizon rule with a tide-staff tick scale */
.ehc-masthead {
	position: relative;
	border-bottom: 1px solid var(--ehc-ink);
}

.ehc-masthead::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 10px;
	background: repeating-linear-gradient(90deg, var(--ehc-ink) 0 1px, transparent 1px 24px);
	opacity: 0.5;
}

.ehc-masthead h1 {
	margin: 0;
}

.ehc-masthead .ehc-lede {
	max-width: 44rem;
}

/* Spec and comparison tables */
.ehc-spec table,
.ehc-compare table {
	width: 100%;
	border-collapse: collapse;
}

.ehc-spec th,
.ehc-spec td,
.ehc-compare th,
.ehc-compare td {
	padding: 0.65rem 0.75rem 0.65rem 0;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--ehc-line);
}

.ehc-spec th {
	width: 34%;
	color: var(--ehc-ink-soft);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ehc-compare thead th {
	font-family: var(--ehc-display);
	font-size: 1.5rem;
	font-weight: 400;
	border-bottom: 2px solid var(--ehc-ink);
}

.ehc-compare tbody th {
	font-weight: 600;
}

.wp-block-table.ehc-spec,
.wp-block-table.ehc-compare {
	overflow-x: auto;
}

/* Lists */
.ehc-ticks {
	padding-left: 0;
	list-style: none;
}

.ehc-ticks li {
	position: relative;
	margin-bottom: 0.55rem;
	padding-left: 1.7rem;
}

.ehc-ticks li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 0;
	width: 1rem;
	height: 0.5rem;
	border-top: 2px solid var(--ehc-accent);
	border-radius: 50% 50% 0 0;
}

.ehc-steps {
	padding-left: 0;
	list-style: none;
	counter-reset: step;
}

.ehc-steps li {
	position: relative;
	margin-bottom: 0.9rem;
	padding-left: 2.6rem;
	counter-increment: step;
}

.ehc-steps li::before {
	content: counter(step);
	position: absolute;
	top: -0.05rem;
	left: 0;
	display: grid;
	place-items: center;
	width: 1.8rem;
	height: 1.8rem;
	font-family: var(--ehc-display);
	font-size: 1.15rem;
	border: 1.5px solid var(--ehc-ink);
	border-radius: 50%;
}

.ehc-callout {
	padding: 1rem 1.25rem;
	background: color-mix(in srgb, var(--ehc-lichen) 22%, var(--ehc-base));
	border-left: 4px solid var(--ehc-lichen);
	border-radius: 0 0.5rem 0.5rem 0;
}

/* Walks page */
.ehc-mapfig {
	margin: 0;
}

.ehc-mapfig figcaption {
	margin-top: 0.75rem;
	color: var(--ehc-ink-soft);
	font-size: var(--wp--preset--font-size--small);
}

.ehc-map {
	display: block;
	width: 100%;
	height: auto;
	background: var(--ehc-card);
	border: 1px solid var(--ehc-line);
	border-radius: 1rem;
}

.ehc-map .m-sea {
	fill: color-mix(in srgb, var(--ehc-accent) 16%, var(--ehc-card));
}

.ehc-map .m-coast {
	fill: none;
	stroke: var(--ehc-ink);
	stroke-width: 2.5;
}

.ehc-map .m-contour {
	fill: none;
	stroke: var(--ehc-accent);
	stroke-width: 1;
	stroke-dasharray: 3 4;
	opacity: 0.55;
}

.ehc-map .m-hedge {
	fill: none;
	stroke: var(--ehc-ink-soft);
	stroke-width: 1;
	opacity: 0.35;
}

.ehc-map .m-houses rect,
.ehc-map .m-engine rect {
	fill: var(--ehc-ink);
}

.ehc-map .m-route {
	fill: none;
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 9 6;
}

.ehc-map .m-route--1,
.ehc-walk--1 .ehc-walk__num {
	--ehc-route: #a83428;
	stroke: var(--ehc-route);
}

.ehc-map .m-route--2,
.ehc-walk--2 .ehc-walk__num {
	--ehc-route: #145f69;
	stroke: var(--ehc-route);
}

.ehc-map .m-route--3,
.ehc-walk--3 .ehc-walk__num {
	--ehc-route: #8a6b12;
	stroke: var(--ehc-route);
}

.ehc-map .m-route--3 {
	stroke-dasharray: 2 6;
}

.ehc-map .m-route--4,
.ehc-walk--4 .ehc-walk__num {
	--ehc-route: #4a5a2b;
	stroke: var(--ehc-route);
}

.ehc-map .m-pins circle {
	fill: var(--ehc-ink);
}

.ehc-map .m-pin-num text {
	fill: var(--ehc-card);
	font-family: var(--ehc-body);
	font-size: 13px;
	font-weight: 600;
	text-anchor: middle;
}

.ehc-map .m-sound text {
	fill: var(--ehc-accent);
	font-family: var(--ehc-display);
	font-size: 15px;
	font-style: italic;
}

.ehc-map .m-label text {
	fill: var(--ehc-ink);
	font-family: var(--ehc-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
}

.ehc-map .m-label .m-water {
	fill: var(--ehc-accent);
	font-family: var(--ehc-display);
	font-size: 20px;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
}

.ehc-map .m-north path {
	fill: var(--ehc-ink);
}

.ehc-map .m-north text {
	fill: var(--ehc-ink);
	font-family: var(--ehc-display);
	font-size: 16px;
	text-anchor: middle;
}

.ehc-walk {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1.2fr) minmax(0, 1fr);
	grid-template-rows: auto auto 1fr;
	gap: 0.5rem 2rem;
	align-items: start;
	padding: 2rem 0;
	border-bottom: 1px solid var(--ehc-line);
}

.ehc-walk > * {
	margin: 0;
}

.ehc-walk__num {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 3.6rem;
	height: 3.6rem;
	color: #fff;
	background: var(--ehc-route, var(--ehc-ink));
	border-radius: 50%;
	font-family: var(--ehc-display);
	font-size: 2rem;
	line-height: 1;
}

.ehc-walk h2 {
	grid-column: 2;
	font-size: var(--wp--preset--font-size--x-large);
}

.ehc-walk > p:not(.ehc-walk__num) {
	grid-column: 2;
}

.ehc-walk .ehc-spec {
	grid-column: 3;
	grid-row: 1 / -1;
}

@media (max-width: 860px) {

	.ehc-walk {
		grid-template-columns: 4rem minmax(0, 1fr);
	}

	.ehc-walk .ehc-spec {
		grid-column: 1 / -1;
		grid-row: auto;
	}
}

/* Getting here route diagram */
.ehc-map--route {
	margin-bottom: var(--wp--preset--spacing--40);
}

.ehc-map .r-road {
	fill: none;
	stroke: var(--ehc-ink);
	stroke-width: 8;
	stroke-linecap: round;
}

.ehc-map .r-lane {
	fill: none;
	stroke: var(--ehc-accent);
	stroke-width: 4;
	stroke-linecap: round;
}

.ehc-map .r-lane--wrong {
	stroke: var(--ehc-buoy);
	stroke-dasharray: 4 6;
}

.ehc-map .r-cross {
	fill: none;
	stroke: var(--ehc-buoy);
	stroke-width: 4;
	stroke-linecap: round;
}

.ehc-map .r-pass ellipse {
	fill: var(--ehc-lichen);
}

.ehc-map .r-park {
	fill: var(--ehc-accent);
}

.ehc-map .r-p {
	fill: var(--ehc-card);
	font-family: var(--ehc-body);
	font-size: 16px;
	font-weight: 600;
	text-anchor: middle;
}

.ehc-map .r-sea {
	fill: none;
	stroke: var(--ehc-accent);
	stroke-width: 2;
}

.ehc-map .r-label text {
	fill: var(--ehc-ink);
	font-family: var(--ehc-body);
	font-size: 13px;
	font-weight: 600;
}

/* Small 404 drawing */
.ehc-ill-small {
	display: block;
	width: 12rem;
	height: auto;
	margin: 0 auto;
	color: var(--ehc-accent);
}

/* Footer */
.ehc-footer {
	position: relative;
	margin-top: 0;
	padding-top: var(--wp--preset--spacing--50);
}

.ehc-footer__swell {
	position: absolute;
	top: -59px;
	left: 0;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	height: 60px;
}

.ehc-footer__swell path {
	fill: var(--ehc-night);
}

.ehc-footer__swell .ehc-footer__swell-line {
	fill: none;
	stroke: var(--ehc-accent);
	stroke-width: 1.5;
	opacity: 0.6;
}

.ehc-footer a {
	color: inherit;
}

.ehc-footer a:hover {
	color: var(--ehc-lichen);
}

.ehc-footer :where(a, button):focus-visible {
	outline-color: var(--ehc-lichen);
}

.ehc-footer h2,
.ehc-footer h3 {
	color: inherit;
}

.ehc-footer__name {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--xx-large);
}

.ehc-footer__label {
	margin-top: 0.6rem;
	font-family: var(--ehc-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.85;
}

.ehc-footer__soft {
	color: color-mix(in srgb, var(--ehc-night-ink) 78%, transparent);
	font-size: var(--wp--preset--font-size--small);
}

.ehc-footer__legal {
	margin-top: var(--wp--preset--spacing--40);
	padding-top: 1rem;
	font-size: var(--wp--preset--font-size--small);
	border-top: 1px solid color-mix(in srgb, var(--ehc-night-ink) 20%, transparent);
}

.ehc-footer__legal p {
	margin: 0;
}

/* Main gets room for the footer swell */
main.wp-block-group {
	padding-bottom: 60px;
}

/* Search and comments */
.wp-block-search__input {
	padding: 0.7rem 0.9rem;
	color: var(--ehc-ink);
	background: var(--ehc-card);
	border: 1.5px solid var(--ehc-ink-soft);
	border-radius: 0.5rem;
}

.wp-block-search__button {
	border-radius: 0.5rem;
}

.wp-block-post-comments-form input:not([type="submit"]),
.wp-block-post-comments-form textarea {
	color: var(--ehc-ink);
	background: var(--ehc-card);
	border: 1.5px solid var(--ehc-ink-soft);
	border-radius: 0.4rem;
}
