/*
Theme Name: EDZNET Guest Farm
Theme URI: https://proof.edznet.dev/guest-farm/
Author: EDZNET
Author URI: https://edznet.dev/
Description: A one-of-a-kind block theme for a South African guest farm, shown as Melkwegfontein, a fictional working sheep farm in the Great Karoo. Night-sky led: the homepage opens on a hand-drawn star chart of the southern sky (the Milky Way, the Southern Cross and the Pointers finding the pole) over the farm's horizon, then a "Tonight's sky" panel that works out the moon's phase, sunset, full darkness and whether it is a dark-sky night for stargazing, in the visitor's browser so it stays right on cached pages. Seasonal rates in rand per person sharing with SA school and public holidays marked on a year strip, rooms and cottages, the night sky (finding south, month by month), farm life (lambing, walks, braai, fossils, rock art), gravel-road directions, news and a POPIA privacy notice. Light and dark schemes. 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-guest-farm
Tags: block-patterns, block-styles, full-site-editing, custom-colors, editor-style, one-column, template-editing, translation-ready, wide-blocks, two-columns
*/

/* Tokens: aliases of theme.json presets */
:root {
	--mf-base: var(--wp--preset--color--base);
	--mf-panel: var(--wp--preset--color--panel);
	--mf-sheet: var(--wp--preset--color--sheet);
	--mf-ink: var(--wp--preset--color--ink);
	--mf-ink-soft: var(--wp--preset--color--ink-soft);
	--mf-accent: var(--wp--preset--color--accent);
	--mf-star: var(--wp--preset--color--star);
	--mf-night: var(--wp--preset--color--night);
	--mf-night-soft: var(--wp--preset--color--night-soft);
	--mf-night-ink: var(--wp--preset--color--night-ink);
	--mf-display: var(--wp--preset--font-family--display);
	--mf-body: var(--wp--preset--font-family--body);
	--mf-line: color-mix(in srgb, var(--mf-ink) 18%, transparent);
	--mf-line-strong: color-mix(in srgb, var(--mf-ink) 40%, transparent);
	--mf-focus: var(--mf-accent);
	--mf-band: #0d1129;
	--mf-land: var(--mf-night);
	--mf-moon: #f3ead2;
	--mf-stars:
		radial-gradient(1px 1px at 22px 34px, rgba(255, 249, 232, 0.85), transparent 1.5px),
		radial-gradient(1px 1px at 131px 88px, rgba(255, 249, 232, 0.55), transparent 1.5px),
		radial-gradient(1.5px 1.5px at 201px 12px, rgba(255, 238, 200, 0.9), transparent 2px),
		radial-gradient(1px 1px at 77px 151px, rgba(255, 249, 232, 0.5), transparent 1.5px),
		radial-gradient(1px 1px at 172px 170px, rgba(255, 249, 232, 0.65), transparent 1.5px),
		radial-gradient(1px 1px at 248px 119px, rgba(255, 249, 232, 0.45), transparent 1.5px);
}

/* Dark: the whole farm after dark. The presets are re-pointed so every block follows */
@media (prefers-color-scheme: dark) {

	:root:root {
		--wp--preset--color--base: #0b0e20;
		--wp--preset--color--panel: #12162f;
		--wp--preset--color--sheet: #161b38;
		--wp--preset--color--ink: #ece5d4;
		--wp--preset--color--ink-soft: #b0abc1;
		--wp--preset--color--accent: #eba468;
		--wp--preset--color--star: #f0c36a;
		--wp--preset--color--night: #06081a;
		--wp--preset--color--night-soft: #10142e;
		--wp--preset--color--night-ink: #eee7d7;
		--mf-focus: var(--mf-star);
		--mf-band: #090c22;
		color-scheme: dark;
	}
}

/* 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.22em;
}

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

::selection {
	color: var(--mf-night);
	background: var(--mf-star);
}

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

p {
	text-wrap: pretty;
}

:where(h1, h2, h3) em {
	font-style: italic;
}

.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Full-width bands sit flush against each other */
main > .alignfull,
main > .wp-block-post-content > .alignfull,
main > .wp-block-post-content.alignfull {
	margin-block-start: 0;
}

.screen-reader-text:focus {
	z-index: 100;
}

/* Night bands: header, hero, tonight, mastheads, footer. A sparse star field in CSS */
.mf-night {
	--mf-focus: var(--mf-star);
	--mf-line: rgba(238, 231, 215, 0.2);
	--mf-line-strong: rgba(238, 231, 215, 0.42);
	color: var(--mf-night-ink);
	background-color: var(--mf-night);
	background-image: var(--mf-stars);
	background-size: 260px 190px;
}

.mf-night :is(h1, h2, h3, h4, .wp-block-heading) {
	color: var(--mf-night-ink);
}

.mf-night a:where(:not(.wp-block-button__link)) {
	color: var(--mf-star);
}

.mf-night a:where(:not(.wp-block-button__link)):hover {
	color: var(--mf-night-ink);
}

/* Almanac label: a small four-point star, then spaced capitals */
.mf-label {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
	color: var(--mf-accent);
	font-family: var(--mf-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.mf-label::before {
	content: "";
	flex: none;
	width: 0.85em;
	height: 0.85em;
	background: currentcolor;
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.mf-night .mf-label {
	color: var(--mf-star);
}

.mf-lede {
	max-width: 40rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
}

.mf-more a {
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentcolor;
}

.mf-more a::after {
	content: " \2192";
}

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

.editor-styles-wrapper .mf-editor-note {
	display: block;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	color: #1e1e1e;
	background: #fff4d6;
	border: 2px dashed #9c431b;
}

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

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--mf-sheet);
	background: var(--mf-ink);
}

.mf-night .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--mf-night-ink);
}

.mf-night .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--mf-night);
	background: var(--mf-night-ink);
}

.mf-btn-star > .wp-block-button__link,
.mf-night .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	color: var(--mf-night);
	background: var(--mf-star);
}

.mf-btn-star > .wp-block-button__link:hover,
.mf-night .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	color: var(--mf-night);
	background: var(--mf-night-ink);
}

/* Header */
.mf-topline {
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	border-bottom: 1px solid var(--mf-line);
}

.mf-topline p {
	margin: 0;
}

.mf-topline__note::before {
	content: "";
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	margin-right: 0.5rem;
	vertical-align: 0.05em;
	background: var(--mf-star);
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(240, 195, 106, 0.22);
}

.mf-topline a {
	text-decoration: none;
}

.mf-header {
	position: relative;
	z-index: 2;
}

.mf-brand {
	align-items: center;
}

.mf-mark {
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
}

.mf-mark__star {
	fill: var(--mf-star);
}

.mf-mark__hill {
	fill: var(--mf-night-ink);
}

.mf-header .wp-block-site-title {
	margin: 0;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.mf-header .wp-block-site-title a {
	color: var(--mf-night-ink);
}

.mf-tagline {
	margin: 0;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.8;
}

.mf-header .wp-block-navigation {
	gap: 0.25rem 1.4rem;
}

.mf-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.45rem 0;
	color: var(--mf-night-ink);
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.mf-header .wp-block-navigation a:hover,
.mf-header .wp-block-navigation a[aria-current="page"] {
	color: var(--mf-star);
	border-bottom-color: var(--mf-star);
}

@media (max-width: 781px) {

	.mf-topline__note {
		display: none;
	}

	.mf-header .wp-block-navigation {
		width: 100%;
	}

	/* On phones the menu is one row that scrolls sideways: no script needed */
	.mf-header .wp-block-navigation__container {
		justify-content: flex-start;
		flex-wrap: nowrap;
		gap: 1.1rem;
		width: 100%;
		padding-bottom: 0.25rem;
		overflow-x: auto;
		scrollbar-width: thin;
	}

	.mf-header .wp-block-navigation-item {
		flex: none;
	}
}

/* Hero: the star chart */
.mf-hero {
	--mf-land: var(--mf-band);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp(34rem, 88vh, 54rem);
	overflow: hidden;
	background: #050719;
}

.mf-hero > .mf-hero__sky {
	position: absolute;
	inset: 0;
	z-index: 0;
	max-width: none;
	margin: 0;
}

.mf-hero__sky .mf-art {
	display: block;
	width: 100%;
	height: 100%;
}

@media (max-width: 781px) {

	/* Phones: keep the Southern Cross and the pole in view behind the headline */
	.mf-hero__sky .mf-art {
		position: absolute;
		top: 0;
		right: -11rem;
		width: auto;
		min-width: 100%;
		height: 100%;
		aspect-ratio: 16 / 9;
	}

	.mf-hero .mf-chart-label {
		display: none;
	}

	.mf-hero .mf-chart {
		opacity: 0.7;
	}
}

.mf-hero__text {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-bottom: clamp(5rem, 14vw, 9rem);
}

.mf-hero__text > * {
	max-width: 38rem;
}

.mf-hero h1 {
	margin-top: 0.4rem;
	text-shadow: 0 2px 24px rgba(5, 7, 25, 0.8);
}

.mf-hero h1 em {
	display: block;
	color: var(--mf-star);
}

.mf-hero .mf-lede {
	text-shadow: 0 1px 12px rgba(5, 7, 25, 0.9);
}

/* Shared art colours */
.mf-air-top {
	stop-color: #03051a;
}

.mf-air-mid {
	stop-color: #0d1236;
}

.mf-air-low {
	stop-color: #261f4a;
}

.mf-air-glow {
	stop-color: #5b3b44;
}

.mf-milky path {
	fill: #d7d2ff;
	fill-opacity: 0.16;
}

.mf-cloud {
	fill: #e4e0ff;
	opacity: 0.35;
}

.mf-grat {
	stroke: rgba(240, 195, 106, 0.13);
	stroke-width: 1;
	stroke-dasharray: 2 7;
}

.mf-stars {
	fill: #fff8e6;
}

.mf-coalsack {
	fill: #050719;
	opacity: 0.65;
}

.mf-chart-line {
	stroke: var(--mf-star);
	stroke-width: 1.3;
	opacity: 0.75;
}

.mf-chart-guide {
	stroke: var(--mf-star);
	stroke-width: 1;
	stroke-dasharray: 5 7;
	opacity: 0.45;
}

.mf-bright {
	fill: #fffaf0;
}

.mf-chart-label {
	fill: rgba(240, 195, 106, 0.9);
	font-family: var(--mf-display);
}

.mf-land {
	fill: var(--mf-land);
}

.mf-post {
	stroke: var(--mf-land);
}

.mf-strata {
	stroke: rgba(240, 195, 106, 0.12);
}

.mf-lit {
	fill: #f6c46a;
}

.mf-fire circle {
	fill: #f08a3c;
}

@media (prefers-reduced-motion: no-preference) {

	.mf-hero .mf-bright {
		animation: mf-twinkle 5s ease-in-out infinite alternate;
	}

	.mf-hero .mf-bright:nth-of-type(2n) {
		animation-duration: 7s;
		animation-delay: -2s;
	}

	.mf-fire circle:first-child {
		animation: mf-flicker 2.4s ease-in-out infinite alternate;
	}
}

@keyframes mf-twinkle {

	from {
		opacity: 1;
	}

	to {
		opacity: 0.55;
	}
}

@keyframes mf-flicker {

	from {
		opacity: 0.18;
	}

	to {
		opacity: 0.4;
	}
}

/* Inner page masthead: night above, the farm's horizon cut out of the page colour below */
.mf-masthead {
	--mf-land: var(--mf-base);
	position: relative;
	overflow: hidden;
	background-image: var(--mf-stars), linear-gradient(#060820, #1a1844 78%, #3b2a44);
	background-size: 260px 190px, 260px 190px, 260px 190px, 260px 190px, 260px 190px, 260px 190px, 100% 100%;
}

.mf-masthead__text {
	position: relative;
	z-index: 1;
}

.mf-masthead__text > * {
	max-width: 44rem;
}

.mf-masthead h1 {
	margin-top: 0.2rem;
}

.mf-masthead .mf-lede {
	color: rgba(238, 231, 215, 0.9);
}

.mf-masthead > .mf-masthead__horizon {
	margin-top: clamp(1.5rem, 4vw, 3rem);
	margin-bottom: -1px;
}

.mf-masthead__horizon .mf-art {
	display: block;
	width: 100%;
	height: clamp(4.5rem, 10vw, 8rem);
}

.mf-masthead .mf-lit {
	fill: var(--mf-star);
}

/* Tonight's sky band on the homepage and sky page */
.mf-tonight-band {
	background-color: var(--mf-band);
}

.mf-tonight-band__more {
	margin-top: 1.5rem;
	font-size: 0.95rem;
}

/* Section heads */
.mf-section-head {
	margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.mf-section-head h2 {
	max-width: 22ch;
	margin-top: 0;
}

/* Almanac timeline: one night on the farm */
.mf-almanac {
	background: var(--mf-base);
}

.mf-entries {
	position: relative;
	display: grid;
	gap: 0;
}

.mf-entries::before {
	content: "";
	position: absolute;
	top: 0.8rem;
	bottom: 0.8rem;
	left: 7.5rem;
	border-left: 1.5px dotted var(--mf-line-strong);
}

.mf-entry {
	position: relative;
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr) minmax(9rem, 13rem);
	gap: 0 2.5rem;
	align-items: start;
	padding: 1.6rem 0;
	border-top: 1px solid var(--mf-line);
}

.mf-entry:last-child {
	border-bottom: 1px solid var(--mf-line);
}

.mf-entry > * {
	margin: 0;
}

.mf-entry::before {
	content: "";
	position: absolute;
	top: 2.15rem;
	left: calc(7.5rem - 0.5rem);
	width: 1rem;
	height: 1rem;
	background: var(--mf-accent);
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.mf-entry__time {
	padding-right: 1.25rem;
	font-family: var(--mf-display);
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	font-style: italic;
	line-height: 1;
	text-align: right;
	font-variant-numeric: lining-nums tabular-nums;
}

.mf-entry__body h3 {
	margin: 0 0 0.4rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.mf-entry__body p {
	margin: 0 0 0.6rem;
	max-width: 36rem;
}

.mf-entry__art {
	margin: 0;
	color: var(--mf-ink);
}

.mf-entry__art svg {
	display: block;
	width: 100%;
	height: auto;
	max-height: 8.5rem;
}

.mf-entry .mf-figure--south {
	padding: 0.5rem;
	border-radius: 4px;
}

@media (max-width: 781px) {

	.mf-entries::before {
		left: 4.25rem;
	}

	.mf-entry {
		grid-template-columns: 4.25rem minmax(0, 1fr);
		gap: 0 1.5rem;
	}

	.mf-entry::before {
		left: calc(4.25rem - 0.5rem);
		top: 1.95rem;
	}

	.mf-entry__time {
		padding-right: 0.9rem;
		font-size: 1.35rem;
	}

	.mf-entry__art {
		display: none;
	}
}

/* Illustrations */
.mf-figure {
	margin: 0;
}

.mf-figure figcaption {
	margin-top: 0.6rem;
	color: var(--mf-ink-soft);
	font-size: 0.85rem;
	font-style: italic;
}

.mf-art--vignette {
	display: block;
	width: 100%;
	height: auto;
	color: var(--mf-ink);
}

.mf-a {
	fill: var(--mf-accent);
}

.mf-art-horn {
	stroke: var(--mf-accent);
}

.mf-night .mf-art--vignette {
	color: var(--mf-night-ink);
}

.mf-night .mf-a {
	fill: var(--mf-star);
}

.mf-place__art .mf-figure {
	padding: clamp(1rem, 3vw, 2rem);
	background: var(--mf-sheet);
	border: 1px solid var(--mf-line);
	border-radius: 4px;
}

/* Finding-south plate: always a night card */
.mf-figure--south {
	padding: clamp(0.75rem, 2vw, 1.5rem);
	color: var(--mf-night-ink);
	background-color: var(--mf-night);
	background-image: var(--mf-stars);
	background-size: 260px 190px;
	border-radius: 6px;
}

.mf-art--south {
	display: block;
	width: 100%;
	height: auto;
}

.mf-diag-ground {
	stroke: var(--mf-night-ink);
	stroke-width: 1.5;
}

.mf-diag-guide {
	stroke: var(--mf-star);
	stroke-width: 1.4;
	stroke-dasharray: 6 6;
}

.mf-diag-line {
	stroke: var(--mf-night-ink);
	stroke-width: 1.6;
}

.mf-diag-star {
	fill: #fffaf0;
}

.mf-diag-pole {
	fill: none;
	stroke: var(--mf-star);
	stroke-width: 2;
}

.mf-diag-text {
	fill: rgba(238, 231, 215, 0.85);
	font-family: var(--mf-display);
	font-style: italic;
}

/* Road strip map: an almanac sheet */
.mf-figure--road {
	padding: clamp(1rem, 3vw, 2rem);
	background: var(--mf-sheet);
	border: 1px solid var(--mf-line);
	border-radius: 4px;
}

.mf-art--road {
	display: block;
	width: 100%;
	height: auto;
	min-height: 9rem;
}

.mf-road-n1 {
	stroke: var(--mf-ink);
	stroke-width: 12;
}

.mf-road-tar {
	stroke: var(--mf-ink);
	stroke-width: 7;
	stroke-linecap: round;
}

.mf-road-gravel {
	stroke: var(--mf-accent);
	stroke-width: 7;
	stroke-linecap: round;
	stroke-dasharray: 0.5 11;
}

.mf-road-text {
	fill: var(--mf-ink-soft);
	font-family: var(--mf-body);
}

.mf-road-mark {
	fill: var(--mf-ink);
	stroke: var(--mf-ink);
}

.mf-road-house {
	fill: var(--mf-accent);
}

.mf-road-dot {
	fill: var(--mf-sheet);
	stroke: var(--mf-ink);
	stroke-width: 3;
}

/* Rooms and cottages: cards */
.mf-stay-band {
	background: var(--mf-panel);
}

.mf-card {
	display: flex;
	flex-direction: column;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	background: var(--mf-sheet);
	border: 1px solid var(--mf-line);
	border-top: 3px double var(--mf-line-strong);
	border-radius: 2px;
}

.mf-card > * {
	margin-block: 0 0.75rem;
}

.mf-card__art {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--mf-line);
}

.mf-card h3 {
	font-size: var(--wp--preset--font-size--x-large);
}

.mf-card h3 a {
	color: inherit;
	text-decoration: none;
}

.mf-card h3 a:hover {
	color: var(--mf-accent);
}

.mf-card__meta {
	color: var(--mf-ink-soft);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mf-card__price {
	margin-top: auto;
	padding-top: 0.75rem;
	font-size: 1.05rem;
	font-weight: 600;
	border-top: 1px solid var(--mf-line);
}

.mf-card__price a {
	margin-left: 0.5rem;
	font-size: 0.9rem;
	font-weight: 400;
}

/* Practical notes */
.mf-practical {
	background: var(--mf-base);
}

.mf-facts {
	gap: 0;
	border-top: 1px solid var(--mf-line-strong);
}

.mf-fact {
	padding: 1.5rem 1.5rem 1.5rem 0;
	border-bottom: 1px solid var(--mf-line);
}

.mf-fact > * {
	margin: 0 0 0.5rem;
}

.mf-fact__figure {
	font-family: var(--mf-display);
	font-size: clamp(2.2rem, 4vw, 3rem);
	line-height: 1;
	color: var(--mf-accent);
}

.mf-fact__figure span {
	display: block;
	margin-top: 0.35rem;
	color: var(--mf-ink);
	font-family: var(--mf-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.mf-practical__cta {
	margin-top: 2rem;
}

/* News */
.mf-news-band {
	background: var(--mf-panel);
}

.mf-post-card {
	height: 100%;
	padding: 1.4rem 0 0;
	border-top: 3px double var(--mf-line-strong);
}

.mf-post-card > * {
	margin-block: 0 0.6rem;
}

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

.mf-post-card .wp-block-post-excerpt__more-link {
	font-weight: 600;
}

/* Place sections (Stay, On the farm) */
.mf-place + .mf-place {
	border-top: 1px solid var(--mf-line);
}

.mf-place.is-flipped {
	background: var(--mf-panel);
}

.mf-place.is-flipped .mf-place__art .mf-figure {
	background: var(--mf-base);
}

@media (min-width: 782px) {

	.mf-place.is-flipped .wp-block-columns {
		flex-direction: row-reverse;
	}
}

.mf-panel-band {
	background: var(--mf-panel);
}

/* Lists with star bullets and numbered steps */
.mf-ticks {
	padding-left: 0;
	list-style: none;
}

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

.mf-ticks li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 0.1rem;
	width: 0.75em;
	height: 0.75em;
	background: var(--mf-accent);
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

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

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

.mf-steps li::before {
	content: counter(mf-step);
	position: absolute;
	top: -0.1rem;
	left: 0;
	width: 1.8rem;
	height: 1.8rem;
	color: var(--mf-accent);
	font-family: var(--mf-display);
	font-size: 1.15rem;
	font-style: italic;
	line-height: 1.7rem;
	text-align: center;
	border: 1px solid currentcolor;
	border-radius: 50%;
}

/* Month-by-month table */
.mf-months table {
	border-collapse: collapse;
}

.mf-months th,
.mf-months td {
	padding: 0.8rem 1rem 0.8rem 0;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--mf-line);
}

.mf-months thead th {
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--mf-line-strong);
}

.mf-months td:first-child {
	width: 9rem;
	font-family: var(--mf-display);
	font-size: 1.2rem;
	font-style: italic;
}

/* Notice and prose */
.mf-notice {
	padding: 1.25rem 1.5rem;
	background: var(--mf-panel);
	border-left: 4px solid var(--mf-accent);
}

.mf-prose h2,
.wp-block-post-content > h2 {
	margin-top: 2.4rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.mf-prose h3 {
	margin-top: 2rem;
	font-size: var(--wp--preset--font-size--large);
}

.mf-prose .mf-label + h2 {
	margin-top: 0;
}

/* Search */
.mf-search .wp-block-search__input {
	padding: 0.7rem 0.9rem;
	color: var(--mf-ink);
	background: var(--mf-sheet);
	border: 1px solid var(--mf-line-strong);
	border-radius: 999px 0 0 999px;
}

.mf-night .mf-search .wp-block-search__input {
	color: var(--mf-ink);
}

.mf-search .wp-block-search__button {
	margin-left: 0;
	border-radius: 0 999px 999px 0;
}

/* Footer */
.mf-footer {
	font-size: 0.95rem;
	border-top: 1px solid var(--mf-line);
}

.mf-footer h2,
.mf-footer h3.wp-block-heading {
	margin-top: 0;
}

.mf-footer__name {
	font-size: var(--wp--preset--font-size--x-large);
}

.mf-footer h3.wp-block-heading {
	font-family: var(--mf-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mf-star);
}

.mf-footer .wp-block-heading.mf-footer__name {
	color: var(--mf-night-ink);
}

.mf-footer__small {
	opacity: 0.85;
	font-size: 0.88rem;
}

.mf-footer-nav .wp-block-navigation-item__content {
	padding: 0.15rem 0;
	color: var(--mf-night-ink);
}

.mf-footer-nav .wp-block-navigation-item__content:hover {
	color: var(--mf-star);
}

.mf-footer .mf-ticks li::before,
.mf-footer__list li::before {
	background: var(--mf-star);
}

.mf-footer__list {
	padding-left: 0;
	list-style: none;
}

.mf-footer__list li {
	position: relative;
	margin-bottom: 0.4rem;
	padding-left: 1.3rem;
}

.mf-footer__list li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 0;
	width: 0.6em;
	height: 0.6em;
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.mf-footer__legal {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: 1.25rem;
	font-size: 0.82rem;
	border-top: 1px solid var(--mf-line);
}

.mf-footer__legal p {
	margin: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

@media (prefers-reduced-motion: no-preference) {

	html {
		scroll-behavior: smooth;
	}
}

/* Print: rates and directions print plainly */
@media print {

	.mf-topline,
	.mf-header .wp-block-navigation,
	.mf-masthead__horizon,
	.mf-hero__sky {
		display: none;
	}

	.mf-night,
	.mf-masthead {
		color: #000;
		background: none;
	}

	.mf-night :is(h1, h2, h3, h4) {
		color: #000;
	}
}
