/* Areas page: one tall photo panel per county */
.nffat-counties {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nffat-county {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 540px;
	padding: 28px;
	overflow: hidden;
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--teal-900);
	color: var(--wp--preset--color--white);
	isolation: isolate;
}

.nffat-county > .nffat-county__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nffat-county::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgb(4 41 39 / 0.96) 0%, rgb(4 41 39 / 0.85) 38%, rgb(4 41 39 / 0.35) 62%, rgb(4 41 39 / 0) 82%);
	pointer-events: none;
}

.nffat-county::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(4 41 39 / 0.45);
	pointer-events: none;
	transition: opacity 400ms var(--nffat-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.nffat-county:hover::before {
		opacity: 0.3;
	}
}

.nffat-county__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(36px, 3.4vw, 48px);
	line-height: 1;
	letter-spacing: -0.02em;
}

/* The whole panel is clickable through the heading link; the town links sit above it. */
.nffat-county__link {
	color: inherit;
}

.nffat-county__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
}

.nffat-county__count {
	margin: 6px 0 16px;
	font-size: 15px;
	color: rgb(255 255 255 / 0.8);
}

.nffat-county__towns {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nffat-county__town {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	border-radius: var(--nffat-radius-pill);
	background: rgb(255 255 255 / 0.14);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--white);
	transition: background-color 200ms var(--nffat-ease-out), color 200ms var(--nffat-ease-out);
}

.nffat-county__town.is-more {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

@media (hover: hover) and (pointer: fine) {
	.nffat-county__town:hover {
		background: var(--wp--preset--color--magenta);
		color: var(--wp--preset--color--white);
	}
}

@media (max-width: 899px) {
	.nffat-counties {
		grid-template-columns: minmax(0, 1fr);
	}

	.nffat-county {
		min-height: 420px;
	}
}

.nffat-areas__outro {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	align-items: stretch;
	gap: 16px;
}

.nffat-areas__range {
	--nffat-link-color: var(--wp--preset--color--magenta-100);
	--nffat-link-highlight: rgb(238 61 150 / 0.4);
	display: flex;
	align-items: center;
	padding: clamp(32px, 4vw, 56px);
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--teal-900);
	color: rgb(255 255 255 / 0.92);
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.6;
}

.nffat-areas__range p,
.nffat-areas__unlisted p {
	margin: 0;
}

.nffat-areas__unlisted {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	gap: 28px;
	padding: clamp(32px, 4vw, 48px);
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--magenta-100);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(22px, 2vw, 28px);
	line-height: 1.25;
}

@media (max-width: 899px) {
	.nffat-areas__outro {
		grid-template-columns: minmax(0, 1fr);
	}
}



/* County and town pages */
.wp-site-blocks > main.nffat-area-main {
	max-width: none;
	margin-block-start: 0;
	padding-bottom: 0;
}

.nffat-area {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: clamp(72px, 8vw, 120px);
	max-width: var(--nffat-page-max);
	margin: 0 auto;
	padding: 0 var(--wp--style--root--padding-right) clamp(72px, 8vw, 120px) var(--wp--style--root--padding-left);
}

.nffat-area:has(+ .nffat-area__faq) {
	padding-bottom: 0;
}

.nffat-area__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
}

.nffat-area__lead p {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(24px, 2.4vw, 34px);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.nffat-area__reach {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(28px, 3vw, 40px);
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--white);
	box-shadow: 0 24px 48px -28px rgb(4 41 39 / 0.35);
	font-size: 17px;
	line-height: 1.65;
}

.nffat-area__reach p {
	margin: 0;
}

.nffat-area__reach-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--wp--preset--color--teal-50);
	color: var(--wp--preset--color--teal);
	rotate: -6deg;
}

.nffat-area__reach-icon .nffat-icon {
	width: 26px;
	height: 26px;
}

.nffat-area__reach-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

@media (max-width: 899px) {
	.nffat-area__intro {
		grid-template-columns: minmax(0, 1fr);
	}
}

.nffat-area__section {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.nffat-area__section > .nffat-section-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--2-xl);
}

.nffat-area__extras {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nffat-area__extra {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 8px 8px 8px 22px;
	border-radius: var(--nffat-radius-pill);
	background: var(--wp--preset--color--teal-50);
	font-weight: 700;
	color: var(--wp--preset--color--teal-700);
	transition: background-color 220ms var(--nffat-ease-out);
}

.nffat-area__extra .nffat-round {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
}

.nffat-area__extra .nffat-icon {
	width: 16px;
	height: 16px;
}

@media (hover: hover) and (pointer: fine) {
	.nffat-area__extra:hover {
		background: var(--wp--preset--color--teal-100);
	}
}

.nffat-area__points {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nffat-area__point {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(28px, 3vw, 40px);
	border-radius: var(--nffat-radius-card);
	background: var(--wp--preset--color--teal-900);
	color: rgb(255 255 255 / 0.9);
	font-size: 18px;
	line-height: 1.6;
}

.nffat-area__point:nth-child(2n) {
	background: var(--wp--preset--color--magenta-100);
	color: var(--wp--preset--color--ink);
}

.nffat-area__point:only-child {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(36px, 5vw, 64px);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.3;
	color: var(--wp--preset--color--white);
}

.nffat-area__point:only-child .nffat-area__point-icon {
	width: 88px;
	height: 88px;
	border-radius: 26px;
}

.nffat-area__point:only-child .nffat-area__point-icon .nffat-icon {
	width: 40px;
	height: 40px;
}

@media (max-width: 699px) {
	.nffat-area__point:only-child {
		grid-template-columns: minmax(0, 1fr);
	}
}

.nffat-area__point > p {
	margin: 0;
}

.nffat-area__point-icon {
	--motion-amount: 60;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 18px;
	background: var(--wp--preset--color--magenta);
	color: var(--wp--preset--color--white);
}

.nffat-area__point:nth-child(2n) .nffat-area__point-icon {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--magenta-600);
}

.nffat-area__point-icon .nffat-icon {
	width: 26px;
	height: 26px;
}

.nffat-area__point:first-child a {
	color: var(--wp--preset--color--magenta-100);
}

.nffat-town-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nffat-town-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 4 / 3;
	padding: 20px;
	overflow: hidden;
	border-radius: var(--nffat-radius-inner);
	background: var(--wp--preset--color--teal-900);
	color: var(--wp--preset--color--white);
	isolation: isolate;
}

.nffat-town-card > .nffat-town-card__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nffat-town-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgb(4 41 39 / 0.9) 0%, rgb(4 41 39 / 0) 65%);
	pointer-events: none;
}

.nffat-town-card__link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: inherit;
}

.nffat-town-card__link::before {
	content: "";
	position: absolute;
	inset: 0;
}

.nffat-town-card__kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.75);
}

.nffat-town-card__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(24px, 2vw, 30px);
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.nffat-town-card__go {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--magenta-600);
}

.nffat-town-card__go .nffat-icon {
	width: 16px;
	height: 16px;
}

.nffat-area__faq {
	padding-block: clamp(72px, 8vw, 112px);
}

@media (max-width: 1099px) {
	.nffat-town-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 699px) {
	.nffat-town-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.nffat-town-card {
		padding: 14px;
	}

	.nffat-town-card__kicker {
		display: none;
	}

	.nffat-town-card__name {
		font-size: 17px;
	}

	.nffat-town-card__go {
		top: 10px;
		right: 10px;
		width: 32px;
		height: 32px;
	}
}
