.sfl-fayre-page .site,
.sfl-fayre-page #page,
.sfl-fayre-page .site-content,
.sfl-fayre-page .entry-content,
.sfl-fayre-page .post-inner,
.sfl-fayre-page main {
	min-height: 100%;
}

.sfl-fayre-page .entry-content > .sfl-landing,
.sfl-fayre-page .wp-block-post-content > .sfl-landing {
	margin: 0;
}

.sfl-fayre-page .entry-header,
.sfl-fayre-page .page-header,
.sfl-fayre-page .entry-title,
.sfl-fayre-page .post-title {
	display: none;
}

.sfl-fayre-page .entry-content,
.sfl-fayre-page .wp-block-post-content {
	margin: 0;
	padding: 0;
}

.sfl-fayre-page,
.sfl-fayre-page button,
.sfl-fayre-page input,
.sfl-fayre-page select,
.sfl-fayre-page textarea {
	font-family: "Manrope", sans-serif;
}

.sfl-landing {
	--sfl-blue-900: #0d5477;
	--sfl-blue-700: #1c85be;
	--sfl-blue-500: #57c4ea;
	--sfl-sand: #f5f2e7;
	--sfl-card: rgba(255, 255, 255, 0.78);
	--sfl-card-strong: rgba(255, 255, 255, 0.92);
	--sfl-line: rgba(20, 90, 121, 0.12);
	--sfl-shadow: 0 24px 70px rgba(8, 56, 82, 0.12);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 34px 22px 110px;
	background-image: var(--sfl-desktop-bg);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	isolation: isolate;
	overflow: hidden;
	scroll-behavior: smooth;
}

.sfl-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(250, 247, 236, 0.3), rgba(232, 244, 247, 0.54)),
		radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 52%);
	z-index: -2;
}

.sfl-sea {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 26vh;
	min-height: 180px;
	pointer-events: none;
	z-index: -1;
	opacity: 0.98;
}

.sfl-wave,
.sfl-wave-glow {
	position: absolute;
	left: -10%;
	width: 120%;
	border-radius: 48% 52% 0 0 / 100% 100% 0 0;
}

.sfl-wave-back {
	bottom: -34px;
	height: 140px;
	background: linear-gradient(180deg, rgba(109, 204, 243, 0.16), rgba(63, 154, 218, 0.34));
	animation: sfl-wave-drift 14s linear infinite;
}

.sfl-wave-front {
	bottom: -52px;
	height: 170px;
	background: linear-gradient(180deg, rgba(106, 207, 245, 0.22), rgba(31, 132, 201, 0.58));
	clip-path: polygon(0 40%, 8% 31%, 17% 36%, 24% 25%, 34% 38%, 43% 28%, 52% 39%, 63% 27%, 74% 36%, 83% 24%, 91% 33%, 100% 26%, 100% 100%, 0 100%);
	animation: sfl-wave-swell 9s ease-in-out infinite;
}

.sfl-wave-glow {
	bottom: 28px;
	height: 60px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
	filter: blur(12px);
	opacity: 0.58;
	animation: sfl-wave-shimmer 6s ease-in-out infinite;
}

.sfl-inner {
	position: relative;
	width: min(100%, 1120px);
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 28px;
	border-radius: 36px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.18));
	border: 1px solid rgba(255, 255, 255, 0.34);
	backdrop-filter: blur(10px);
	box-shadow: var(--sfl-shadow);
}

.sfl-home-layout {
	align-items: center;
	padding-top: 18px;
	padding-bottom: 18px;
	background: transparent;
	border: 0;
	box-shadow: none;
	backdrop-filter: none;
}

.sfl-home-logo-wrap,
.sfl-logo-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.sfl-home-logo-wrap {
	padding: 8px 12px 0;
	min-height: 250px;
}

.sfl-logo-wrap-stalls {
	padding-top: 10px;
}

.sfl-home-logo-wrap::before,
.sfl-logo-wrap::before {
	content: "";
	position: absolute;
	inset: 5% 18% 10%;
	border-radius: 999px;
	background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.22) 62%, rgba(255, 255, 255, 0) 100%);
	filter: blur(10px);
	z-index: 0;
}

.sfl-logo {
	position: relative;
	z-index: 1;
	display: block;
	width: min(100%, 430px);
	height: auto;
	max-height: 280px;
	object-fit: contain;
	filter:
		drop-shadow(0 12px 24px rgba(10, 70, 101, 0.12))
		drop-shadow(0 3px 10px rgba(255, 255, 255, 0.42));
}

.sfl-logo-stalls {
	width: min(100%, 280px);
	max-height: none;
}

.sfl-home-card {
	width: min(100%, 930px);
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 24px 28px 22px;
	border-radius: 30px;
	background: linear-gradient(180deg, var(--sfl-card-strong), rgba(248, 252, 251, 0.78));
	border: 1px solid rgba(255, 255, 255, 0.82);
	box-shadow:
		0 18px 54px rgba(10, 62, 89, 0.11),
		inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.sfl-home-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.sfl-home-meta-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(16, 109, 156, 0.08);
	border: 1px solid rgba(16, 109, 156, 0.1);
	color: var(--sfl-blue-900);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.sfl-kicker {
	margin: 0 0 8px;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sfl-blue-700);
}

.sfl-heading {
	position: relative;
	z-index: 1;
	width: 100%;
	text-align: center;
	color: var(--sfl-blue-900);
}

.sfl-title {
	font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.sfl-intro {
	max-width: 720px;
	margin: 14px auto 0;
	font-size: 1.04rem;
	line-height: 1.7;
	color: rgba(12, 84, 119, 0.86);
}

.sfl-last-updated {
	margin: 12px 0 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: rgba(12, 84, 119, 0.68);
}

.sfl-buttons {
	width: 100%;
	display: grid;
	grid-template-columns: minmax(280px, 1.1fr) repeat(2, minmax(200px, 1fr));
	gap: 16px;
	align-items: start;
}

.sfl-buttons-stalls {
	margin-top: 8px;
}

.sfl-button,
.sfl-modal-action,
.sfl-print-button,
.sfl-anchor-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 16px 20px;
	border: 0;
	border-radius: 18px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.sfl-button,
.sfl-modal-action,
.sfl-print-button {
	cursor: pointer;
	color: #ffffff;
	box-shadow: 0 14px 28px rgba(10, 62, 89, 0.16);
}

.sfl-button:hover,
.sfl-button:focus-visible,
.sfl-modal-action:hover,
.sfl-modal-action:focus-visible,
.sfl-print-button:hover,
.sfl-print-button:focus-visible,
.sfl-anchor-chip:hover,
.sfl-anchor-chip:focus-visible,
.sfl-back-to-top:hover,
.sfl-back-to-top:focus-visible {
	transform: translateY(-2px);
}

.sfl-button:focus-visible,
.sfl-modal-action:focus-visible,
.sfl-print-button:focus-visible,
.sfl-anchor-chip:focus-visible,
.sfl-back-to-top:focus-visible,
.sfl-modal-close:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.92);
	outline-offset: 3px;
}

.sfl-button-primary {
	background: linear-gradient(135deg, #ff9442, #ff7134);
}

.sfl-button-secondary {
	background: linear-gradient(135deg, #7fc95f, #5cae4f);
}

.sfl-button-accent,
.sfl-print-button,
.sfl-modal-action,
.sfl-back-to-top {
	background: linear-gradient(135deg, #32afe4, #116ea9);
}

.sfl-button-stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sfl-button-raffle {
	flex-direction: column;
	gap: 5px;
	border-radius: 22px;
	padding-top: 17px;
	padding-bottom: 17px;
}

.sfl-button-subtext {
	font-size: 0.8rem;
	font-weight: 500;
	opacity: 0.94;
}

.sfl-button-note {
	display: block;
	padding: 0 8px;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	color: var(--sfl-blue-900);
}

.sfl-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.sfl-countdown-item {
	padding: 10px 8px;
	border-radius: 16px;
	background: rgba(13, 84, 119, 0.05);
	border: 1px solid rgba(13, 84, 119, 0.08);
	text-align: center;
}

.sfl-countdown-value {
	display: block;
	font-size: 1.1rem;
	font-weight: 900;
	color: var(--sfl-blue-900);
}

.sfl-countdown-label {
	display: block;
	margin-top: 4px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(13, 84, 119, 0.68);
}

.sfl-raffle-stack.is-live .sfl-button-note {
	color: #238a52;
}

.sfl-raffle-stack.is-live .sfl-button-raffle {
	background: linear-gradient(135deg, #76c459, #4ba544);
}

.sfl-inner-stalls {
	padding: 34px 34px 30px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 251, 0.74));
	border: 1px solid rgba(255, 255, 255, 0.86);
	box-shadow:
		0 22px 64px rgba(10, 62, 89, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.sfl-utility-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border-radius: 22px;
	background: rgba(13, 84, 119, 0.05);
	border: 1px solid rgba(13, 84, 119, 0.08);
}

.sfl-section-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sfl-anchor-chip {
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	color: var(--sfl-blue-900);
	border: 1px solid rgba(13, 84, 119, 0.08);
	box-shadow: none;
}

.sfl-stall-sections {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.sfl-section-block {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 8px;
}

.sfl-section-heading {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: 4px;
	border-bottom: 1px solid rgba(13, 84, 119, 0.08);
}

.sfl-section-title {
	margin: 0;
	font-size: clamp(1.55rem, 2.6vw, 2.1rem);
	color: var(--sfl-blue-900);
}

.sfl-section-intro {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: rgba(12, 84, 119, 0.78);
}

.sfl-stall-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.sfl-stall-card {
	padding: 20px 20px 18px;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 251, 0.9));
	border: 1px solid rgba(13, 84, 119, 0.08);
	box-shadow: 0 12px 24px rgba(10, 62, 89, 0.06);
	transform: translateY(18px);
	opacity: 0;
	transition: transform 0.45s ease, opacity 0.45s ease, box-shadow 0.2s ease;
}

.sfl-stall-card.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.sfl-stall-card:hover {
	box-shadow: 0 18px 34px rgba(10, 62, 89, 0.1);
}

.sfl-card-top {
	margin-bottom: 10px;
}

.sfl-stall-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.sfl-stall-tag::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.85;
}

.sfl-tag-games {
	background: rgba(255, 148, 66, 0.16);
	color: #df6f2b;
}

.sfl-tag-food {
	background: rgba(247, 116, 91, 0.15);
	color: #cf5b49;
}

.sfl-tag-activities {
	background: rgba(50, 175, 228, 0.14);
	color: #1271ad;
}

.sfl-tag-animals {
	background: rgba(96, 171, 104, 0.16);
	color: #3e8750;
}

.sfl-tag-crafts {
	background: rgba(143, 119, 221, 0.14);
	color: #7453c1;
}

.sfl-tag-school {
	background: rgba(127, 201, 95, 0.16);
	color: #4e9a46;
}

.sfl-tag-default {
	background: rgba(13, 84, 119, 0.12);
	color: var(--sfl-blue-900);
}

.sfl-stall-name {
	margin: 0 0 8px;
	font-size: 1.16rem;
	line-height: 1.3;
	color: var(--sfl-blue-900);
}

.sfl-stall-copy {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.65;
	color: rgba(12, 84, 119, 0.86);
}

.sfl-callout {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 22px;
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(255, 148, 66, 0.94), rgba(255, 113, 52, 0.9));
	color: #ffffff;
	box-shadow: 0 18px 36px rgba(186, 90, 33, 0.18);
	text-align: center;
}

.sfl-callout strong {
	font-size: 1.03rem;
}

.sfl-callout span {
	font-size: 0.96rem;
	opacity: 0.96;
}

.sfl-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 30;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 62px;
	min-height: 62px;
	padding: 12px 16px;
	border-radius: 999px;
	color: #ffffff;
	font-size: 0.94rem;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 18px 34px rgba(10, 62, 89, 0.18);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sfl-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.sfl-modal {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

body.sfl-modal-open {
	overflow: hidden;
}

.sfl-modal[hidden] {
	display: none;
}

.sfl-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 39, 56, 0.5);
	backdrop-filter: blur(6px);
}

.sfl-modal-panel {
	position: relative;
	width: min(100%, 520px);
	padding: 28px 24px 24px;
	border-radius: 28px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 249, 0.94));
	box-shadow: 0 24px 70px rgba(10, 62, 89, 0.18);
	color: var(--sfl-blue-900);
	text-align: center;
}

.sfl-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(13, 84, 119, 0.08);
	color: var(--sfl-blue-900);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.sfl-modal-kicker {
	margin: 0 0 10px;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sfl-blue-700);
}

.sfl-modal-title {
	margin: 0;
	font-size: 1.9rem;
	line-height: 1.15;
}

.sfl-modal-copy {
	margin: 14px 0 0;
	font-size: 1rem;
	line-height: 1.65;
	color: rgba(12, 84, 119, 0.84);
}

@keyframes sfl-wave-drift {
	0% {
		transform: translateX(0);
	}

	50% {
		transform: translateX(2.5%);
	}

	100% {
		transform: translateX(0);
	}
}

@keyframes sfl-wave-swell {
	0% {
		transform: translateX(0) translateY(0);
	}

	50% {
		transform: translateX(-2%) translateY(-8px);
	}

	100% {
		transform: translateX(0) translateY(0);
	}
}

@keyframes sfl-wave-shimmer {
	0% {
		opacity: 0.34;
		transform: translateX(-1%);
	}

	50% {
		opacity: 0.62;
		transform: translateX(2%);
	}

	100% {
		opacity: 0.34;
		transform: translateX(-1%);
	}
}

@media (max-width: 960px) {
	.sfl-buttons {
		grid-template-columns: 1fr;
	}

	.sfl-stall-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.sfl-landing {
		padding: 18px 14px 86px;
		background-image: var(--sfl-mobile-bg);
		background-attachment: scroll;
	}

	.sfl-inner,
	.sfl-inner-stalls {
		padding: 18px 14px 22px;
		border-radius: 26px;
	}

	.sfl-home-logo-wrap {
		min-height: 190px;
		padding: 0;
	}

	.sfl-logo {
		width: min(100%, 258px);
		max-height: 190px;
	}

	.sfl-logo-stalls {
		width: min(100%, 220px);
	}

	.sfl-home-card {
		padding: 18px 16px 16px;
		border-radius: 24px;
		gap: 14px;
	}

	.sfl-home-meta {
		gap: 8px;
	}

	.sfl-home-meta-pill {
		padding: 8px 12px;
		font-size: 0.82rem;
	}

	.sfl-title {
		font-size: 2rem;
	}

	.sfl-intro,
	.sfl-section-intro {
		font-size: 0.97rem;
	}

	.sfl-stall-sections {
		gap: 22px;
	}

	.sfl-stall-grid {
		gap: 12px;
	}

	.sfl-stall-card {
		padding: 16px 14px;
		border-radius: 18px;
	}

	.sfl-countdown-item {
		padding: 9px 4px;
	}

	.sfl-countdown-value {
		font-size: 1rem;
	}

	.sfl-countdown-label {
		font-size: 0.64rem;
	}

	.sfl-utility-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.sfl-section-nav {
		gap: 8px;
	}

	.sfl-anchor-chip {
		min-height: 40px;
		padding: 10px 14px;
		font-size: 0.9rem;
	}

	.sfl-sea {
		height: 20vh;
		min-height: 120px;
	}

	.sfl-wave-back {
		height: 110px;
	}

	.sfl-wave-front {
		height: 124px;
	}

	.sfl-back-to-top {
		right: 14px;
		bottom: 14px;
		min-width: 54px;
		min-height: 54px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sfl-wave-back,
	.sfl-wave-front,
	.sfl-wave-glow,
	.sfl-stall-card,
	.sfl-back-to-top,
	.sfl-button,
	.sfl-modal-action,
	.sfl-print-button,
	.sfl-anchor-chip {
		animation: none !important;
		transition: none !important;
	}

	.sfl-stall-card {
		opacity: 1;
		transform: none;
	}
}

@media print {
	body {
		background: #ffffff !important;
	}

	.sfl-landing {
		min-height: auto;
		padding: 0;
		background: #ffffff !important;
	}

	.sfl-overlay,
	.sfl-sea,
	.sfl-buttons,
	.sfl-utility-bar,
	.sfl-back-to-top,
	.sfl-modal {
		display: none !important;
	}

	.sfl-inner,
	.sfl-inner-stalls,
	.sfl-home-card {
		width: 100%;
		padding: 0;
		background: #ffffff !important;
		border: 0;
		box-shadow: none;
		backdrop-filter: none;
	}

	.sfl-logo {
		width: 220px;
	}

	.sfl-stall-grid {
		grid-template-columns: 1fr 1fr;
	}

	.sfl-stall-card {
		opacity: 1 !important;
		transform: none !important;
		break-inside: avoid;
		background: #ffffff;
		border: 1px solid #d5dde3;
		box-shadow: none;
	}

	.sfl-callout {
		background: #ffffff;
		color: #000000;
		box-shadow: none;
		border: 1px solid #d5dde3;
	}
}
