/* =========================================================
WAHSUITS — POLISH LAYER
Loaded last on every page. Refines the WordPress-exported
styles without touching them, so it can be tuned or removed
in one place.
========================================================= */

:root {
	--wah-page: var(--wp--style--global--wide-size, 1400px);
	--wah-radius-lg: 32px;
	--wah-radius-md: 22px;
	--wah-glass: rgba(10, 24, 44, 0.55);
	--wah-glass-border: rgba(255, 255, 255, 0.12);
	--wah-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--wah-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 140px;
}

/* "hidden" turns html/body into scroll containers, which breaks the sticky header. */
html,
body,
.wp-site-blocks {
	overflow-x: clip !important;
}

body {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	background:
		radial-gradient(1100px 700px at 8% -5%, rgba(74, 173, 179, 0.34), transparent 60%),
		radial-gradient(900px 650px at 100% 25%, rgba(248, 157, 50, 0.10), transparent 60%),
		radial-gradient(1300px 900px at 50% 115%, rgba(74, 211, 211, 0.22), transparent 60%),
		linear-gradient(180deg, #0b1f3a 0%, #10294a 55%, #0c2135 100%) !important;
	background-attachment: fixed !important;
}

::selection {
	background: var(--wah-aqua);
	color: var(--wah-text-dark);
}

:focus-visible {
	outline: 3px solid var(--wah-aqua);
	outline-offset: 3px;
	border-radius: 6px;
}

img {
	max-width: 100%;
}

/* ---------- HEADER ---------- */

.wp-site-blocks > .is-position-sticky {
	transition: padding 0.35s var(--wah-ease-out);
}

header.wp-block-template-part .alignwide.has-background {
	max-width: var(--wah-page);
	margin-left: auto;
	margin-right: auto;
	border-radius: 999px !important;
	padding: 10px 28px !important;
	justify-content: space-between !important;
	background:
		linear-gradient(100deg, rgba(74, 173, 179, 0.92) 0%, rgba(199, 223, 210, 0.85) 45%, rgba(13, 54, 114, 0.95) 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0 12px 34px rgba(3, 10, 24, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
	transition: padding 0.35s var(--wah-ease-out), box-shadow 0.35s ease;
}

header.wp-block-template-part .wp-block-buttons:empty {
	display: none;
}

header.wp-block-template-part .custom-logo {
	width: 96px;
	height: auto;
	transition: width 0.35s var(--wah-ease-out), transform 0.35s var(--wah-spring);
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

header.wp-block-template-part .custom-logo-link:hover .custom-logo {
	transform: rotate(-6deg) scale(1.06);
}

.wah-scrolled .wp-site-blocks > .is-position-sticky {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}

.wah-scrolled header.wp-block-template-part .alignwide.has-background {
	padding-top: 6px !important;
	padding-bottom: 6px !important;
	box-shadow: 0 16px 40px rgba(3, 10, 24, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.wah-scrolled header.wp-block-template-part .custom-logo {
	width: 62px;
}

header .wp-block-navigation .wp-block-navigation__container {
	gap: 6px !important;
}

header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 9px 16px !important;
	border-radius: 999px;
	font-style: normal !important;
	font-size: 15px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--wah-spring) !important;
}

header .wp-block-navigation .wp-block-navigation-item__content:hover {
	background: rgba(255, 255, 255, 0.18);
}

header .wp-block-navigation .wah-current > .wp-block-navigation-item__content {
	background: rgba(9, 25, 48, 0.55);
	color: var(--wah-yellow) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 225, 106, 0.35);
}

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	background:
		radial-gradient(600px 400px at 20% 0%, rgba(74, 173, 179, 0.35), transparent 70%),
		rgba(8, 20, 38, 0.97) !important;
	overscroll-behavior: contain; /* swiping on the menu never scrolls the page behind it */
	/* Fade in only: WordPress also slid it up from a little lower, leaving a strip of the page uncovered at the top. */
	animation-name: wah-menu-in !important;
}

@keyframes wah-menu-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* While the menu is open, the header around it is lifted above everything else on the page (set by js/nav.js):
   otherwise the "back to top" button and other raised bits showed through the menu. */
.wah-menu-host {
	z-index: 2147483000 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 10px !important;
	padding-top: 30px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 26px !important;
	font-weight: 900 !important;
}

.wp-block-navigation__responsive-container-open {
	padding: 8px;
	border-radius: 50%;
	background: rgba(9, 25, 48, 0.45) !important;
}

/* ---------- BUTTONS ---------- */

.wp-block-button .wp-block-button__link,
.wah-button {
	position: relative;
	overflow: hidden;
	padding: 16px 32px !important;
	border-radius: 999px !important;
	font-family: Inter, system-ui, sans-serif !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	font-style: normal !important;
	letter-spacing: 0.04em !important;
	text-transform: none !important;
	color: var(--wah-text-dark) !important;
	background: linear-gradient(90deg, var(--wah-aqua), var(--wah-yellow) 55%, var(--wah-orange)) !important;
	background-size: 200% 100% !important;
	background-position: 0% 50% !important;
	box-shadow: 0 10px 26px rgba(248, 157, 50, 0.25), 0 4px 12px rgba(0, 0, 0, 0.16);
	transition: transform 0.25s var(--wah-spring), box-shadow 0.25s ease, background-position 0.5s ease !important;
}

.wp-block-button .wp-block-button__link:hover,
.wah-button:hover {
	transform: translateY(-3px) scale(1.03);
	background-position: 100% 50% !important;
	box-shadow: 0 16px 34px rgba(248, 157, 50, 0.32), 0 0 30px rgba(125, 225, 212, 0.3);
	filter: none;
}

.wp-block-button .wp-block-button__link:active,
.wah-button:active {
	transform: translateY(0) scale(0.98);
}

/* ---------- SHARED CARD FRAME ---------- */

.home .wp-site-blocks > .alignwide.has-background-background-color,
.home .wp-site-blocks > .has-custom-blu-scurissimo-background-color,
body:not(.home) .wp-site-blocks > .wp-block-group > .alignwide.has-background-background-color {
	max-width: var(--wah-page) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	border-radius: var(--wah-radius-lg) !important;
	box-shadow: 0 30px 80px rgba(2, 8, 20, 0.35);
}

.home .wp-site-blocks > .alignwide.has-background-background-color,
.home .wp-site-blocks > .has-custom-blu-scurissimo-background-color {
	width: calc(100% - 40px);
}

.home .wp-site-blocks > .alignwide.has-background-background-color {
	margin-top: 8px !important;
	padding: clamp(32px, 5vw, 72px) !important;
	background:
		radial-gradient(700px 400px at 0% 0%, rgba(125, 225, 212, 0.25), transparent 65%),
		radial-gradient(600px 400px at 100% 100%, rgba(248, 157, 50, 0.14), transparent 65%),
		#f4fbff !important;
}

/* ---------- HOME HERO ---------- */

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-columns {
	gap: clamp(28px, 5vw, 72px);
}

.home .wp-site-blocks > .alignwide.has-background-background-color h1 {
	font-size: clamp(2.4rem, 4.6vw, 4.4rem) !important;
	line-height: 1.02 !important;
	letter-spacing: -0.03em;
	margin-top: 12px;
}

.home .wp-site-blocks > .alignwide.has-background-background-color h2 {
	font-size: clamp(1.3rem, 2vw, 1.9rem) !important;
	font-weight: 600 !important;
	margin-top: 10px;
}

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-image-12 {
	width: min(300px, 70%) !important;
	animation: wahBob 6s ease-in-out infinite;
	filter: drop-shadow(0 18px 28px rgba(13, 54, 114, 0.18));
}

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-buttons {
	margin-top: 30px;
}

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-button {
	width: auto !important;
}

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-button__link {
	padding: 18px 40px !important;
	font-size: 18px !important;
}

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-image-24 {
	display: block;
	border: none !important;
	border-radius: 28px !important;
	box-shadow: 0 30px 60px rgba(13, 31, 48, 0.28), 0 0 0 8px rgba(255, 255, 255, 0.9);
	transform: rotate(1.5deg);
	transition: transform 0.6s var(--wah-spring), box-shadow 0.4s ease;
}

.home .wp-site-blocks > .alignwide.has-background-background-color .wp-image-24:hover {
	transform: rotate(0deg) scale(1.02);
	box-shadow: 0 40px 80px rgba(13, 31, 48, 0.32), 0 0 0 8px #fff;
}

@keyframes wahBob {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-10px) rotate(-1.5deg); }
}

/* ---------- HOME DARK SECTION ---------- */

.home .wp-site-blocks > .has-custom-blu-scurissimo-background-color {
	margin-top: 28px !important;
	padding-top: 40px !important;
	padding-bottom: 40px !important;
	overflow: hidden;
	background:
		radial-gradient(900px 500px at 50% 0%, rgba(74, 173, 179, 0.16), transparent 70%),
		#0d1f30 !important;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.home .wah-home-section {
	padding-top: clamp(50px, 7vw, 90px);
	padding-bottom: clamp(50px, 7vw, 90px);
}

.wah-kicker,
.wah-small-title {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	font-weight: 800;
	opacity: 1 !important;
	color: var(--wah-aqua) !important;
	background: rgba(125, 225, 212, 0.10);
	border: 1px solid rgba(125, 225, 212, 0.22);
}

.home .wah-section-title {
	letter-spacing: -0.03em;
}

.home .wah-feature-card {
	padding: 34px 28px;
	text-align: center;
	transition: transform 0.35s var(--wah-spring), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.home .wah-feature-card:hover {
	transform: translateY(-8px) rotate(-0.5deg);
	border-color: rgba(125, 225, 212, 0.4);
}


.home .wah-pin-image {
	transform: rotate(-1.5deg);
	transition: transform 0.6s var(--wah-spring);
}

.home .wah-pin-image:hover {
	transform: rotate(0deg) scale(1.02);
}

.home .wah-pin-content {
	text-align: left;
}

.home .wah-pin .wah-section-title,
.home .wah-pin .wah-section-text {
	text-align: left;
	margin-left: 0;
}

.home .wah-pin-tags span {
	transition: transform 0.25s var(--wah-spring), background 0.25s ease;
}

.home .wah-pin-tags span:hover {
	transform: translateY(-3px);
	background: rgba(125, 225, 212, 0.18);
}

@media (max-width: 900px) {
	.home .wah-pin-content,
	.home .wah-pin .wah-section-title,
	.home .wah-pin .wah-section-text {
		text-align: center;
	}

	.home .wah-pin-tags {
		justify-content: center;
	}
}

/* Gallery: wider strip with soft fading edges */
.home .wah-moving-gallery .wah-section-inner {
	width: 100% !important;
	max-width: none !important;
}

.home .wah-moving-gallery .wah-section-inner > p:not(.wah-kicker) {
	color: rgba(255, 255, 255, 0.8);
}

.home .wah-marquee {
	margin-top: 30px;
	padding: 34px 0 40px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.home .wah-marquee-card {
	background: #fffdf8;
	transition: transform 0.45s var(--wah-spring), box-shadow 0.3s ease;
}

/* Commissions card */
.home .wah-commissions-card {
	transition: transform 0.4s var(--wah-spring);
}

.home .wah-commissions.is-open .wah-commissions-card {
	border-color: rgba(92, 242, 166, 0.35);
	box-shadow: var(--wah-shadow), 0 0 60px rgba(92, 242, 166, 0.12);
}

/* ---------- INNER PAGES ---------- */

body:not(.home) .wp-site-blocks > .wp-block-group > .alignwide.has-background-background-color {
	width: 100%;
	padding-bottom: 40px;
	overflow: hidden;
}

body:not(.home) .wp-block-post-title {
	font-size: clamp(2.6rem, 6vw, 4.6rem) !important;
	font-weight: 900 !important;
	letter-spacing: -0.03em;
	text-align: center;
	color: #18155b !important;
}

body:not(.home) .wp-block-post-featured-image img {
	/* show the whole picture: shrink it to fit instead of cropping it */
	display: block;
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	max-height: 70vh;
	margin-inline: auto;
	object-fit: contain !important;
	box-shadow: 0 24px 50px rgba(13, 31, 48, 0.2);
}

/* WAHfamily: let the card grid use the whole page card */
.page-id-22 .entry-content > .wah-world,
.page-id-22 .wp-block-post-content > .wah-world {
	width: min(100%, 1300px) !important;
	max-width: 1300px !important;
}

.page-id-22 .wah-world .wah-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
}

.page-id-22 .wah-world .wah-item {
	flex: 0 1 190px;
	max-width: 210px;
}

.page-id-22 .wah-world .country-section h2 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	letter-spacing: -0.02em;
}

.page-id-22 .wah-world .country-section h2::before,
.page-id-22 .wah-world .country-section h2::after {
	content: "";
	flex: 1;
	max-width: 160px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, rgba(74, 173, 179, 0.6));
}

.page-id-22 .wah-world .country-section h2::after {
	transform: scaleX(-1);
}

.page-id-22 .wah-world .wah-card {
	transition: transform 0.45s var(--wah-spring), box-shadow 0.35s ease, opacity 0.6s var(--wah-ease-out);
	transition-delay: var(--wah-delay, 0s);
}

.page-id-22 .wah-world .wah-card:hover {
	transition-delay: 0s;
}

.page-id-22 .wah-world .wah-card:hover {
	transform: translateY(-8px) rotate(-1deg) !important;
}

.page-id-22 .wah-world .wah-modal-toggle:checked + .wah-card + .wah-modal .wah-popup {
	animation: wahPop 0.45s var(--wah-spring);
}

@keyframes wahPop {
	from { opacity: 0; transform: translateY(20px) scale(0.92); }
	to { opacity: 1; transform: none; }
}

/* ---------- PRICE CALCULATOR ---------- */

body:not(.home) .wah-package-header h2 {
	color: #18155b !important;
	text-shadow: none;
}

body:not(.home) .wah-package-header p {
	color: #4a5878 !important;
	opacity: 1;
}

body:not(.home) .wah-package-kicker {
	color: #2a9d92;
}

/* ---------- FOOTER ---------- */

footer.wp-block-template-part {
	padding: 0 20px 24px;
}

footer.wp-block-template-part > .wp-block-group {
	position: relative;
	max-width: var(--wah-page);
	margin: 48px auto 0 !important;
	padding: 48px 24px 36px !important;
	border-radius: var(--wah-radius-lg);
	background:
		radial-gradient(600px 300px at 50% 0%, rgba(125, 225, 212, 0.16), transparent 70%),
		var(--wah-glass);
	border: 1px solid var(--wah-glass-border);
	backdrop-filter: blur(14px);
	box-shadow: 0 20px 60px rgba(2, 8, 20, 0.3);
}

footer .wp-block-spacer {
	height: 10px !important;
}

footer .wp-image-74 {
	width: 130px !important;
	transition: transform 0.5s var(--wah-spring);
}

footer .wp-image-74:hover {
	transform: rotate(-8deg) scale(1.08);
}

footer .wp-block-social-links {
	gap: 12px !important;
}

footer .wp-block-social-links .wp-social-link {
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid var(--wah-glass-border);
	border-radius: 50% !important;
	transition: transform 0.25s var(--wah-spring), background 0.25s ease;
}

footer .wp-block-social-links .wp-social-link a {
	padding: 12px !important;
}

footer .wp-block-social-links .wp-social-link svg {
	width: 22px;
	height: 22px;
	fill: #fff !important;
	color: #fff !important;
}

footer .wp-block-social-links .wp-social-link:hover {
	transform: translateY(-4px) scale(1.08);
	background: linear-gradient(135deg, var(--wah-aqua), var(--wah-orange)) !important;
}

footer .wp-block-social-links .wp-social-link:hover svg {
	fill: var(--wah-text-dark) !important;
}

footer .wp-block-paragraph {
	color: rgba(255, 255, 255, 0.7) !important;
	letter-spacing: 0.04em;
}

/* ---------- BACK TO TOP ---------- */

.wah-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 60;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border: none;
	border-radius: 50%;
	font-size: 22px;
	font-weight: 900;
	color: var(--wah-text-dark);
	background: linear-gradient(135deg, var(--wah-aqua), var(--wah-orange));
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	opacity: 0;
	transform: translateY(20px) scale(0.8);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.35s var(--wah-spring);
}

.wah-scrolled-far .wah-to-top {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.wah-to-top:hover {
	transform: translateY(-3px) scale(1.06);
}

/* ---------- SCROLL REVEAL (only when JS is running) ---------- */

.wah-js .wah-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s var(--wah-ease-out), transform 0.8s var(--wah-ease-out);
	transition-delay: var(--wah-delay, 0s);
}

.wah-js .wah-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {
	body {
		background-attachment: scroll !important;
	}

	header.wp-block-template-part .alignwide.has-background {
		padding: 8px 14px 8px 18px !important;
	}

	header.wp-block-template-part .custom-logo,
	.wah-scrolled header.wp-block-template-part .custom-logo {
		width: 56px;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color,
	.home .wp-site-blocks > .has-custom-blu-scurissimo-background-color {
		width: calc(100% - 24px);
		border-radius: 26px !important;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color {
		padding: 28px 22px !important;
		text-align: center;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-column {
		flex-basis: 100% !important;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color .wp-image-12 {
		width: 180px !important;
		margin: 0 auto;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color h1,
	.home .wp-site-blocks > .alignwide.has-background-background-color h2 {
		text-align: center !important;
	}

	.home .wp-site-blocks > .alignwide.has-background-background-color .wp-block-buttons {
		justify-content: center;
	}

	.page-id-22 .wah-world .wah-grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 14px !important;
	}

	.page-id-22 .wah-world .wah-item {
		max-width: none;
	}

	.page-id-22 .wah-world .country-section h2::before,
	.page-id-22 .wah-world .country-section h2::after {
		display: none;
	}

	footer.wp-block-template-part {
		padding: 0 12px 16px;
	}

	.wah-to-top {
		right: 14px;
		bottom: 14px;
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.wah-js .wah-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ---------- COMMISSIONS COUNTDOWN (set from the admin panel) ---------- */

.wah-countdown {
	display: flex !important;
	flex-direction: column !important;
	align-items: center;
	margin: 4px auto 30px;
}

.wah-countdown-label {
	margin: 0 0 12px !important;
	font-size: 12px !important;
	font-weight: 900;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wah-aqua) !important;
}

.wah-countdown-units {
	display: flex !important;
	flex-direction: row !important;
	justify-content: center;
	gap: clamp(8px, 2vw, 16px);
}

.wah-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: clamp(64px, 14vw, 96px);
	padding: 14px 8px 12px;
	border-radius: 20px;
	background: rgba(13, 31, 48, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wah-countdown-unit b {
	font-size: clamp(28px, 5vw, 46px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--wah-white);
}

.wah-countdown-unit small {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.wah-countdown-unit:first-child b {
	color: var(--wah-yellow);
}

.wah-countdown-end {
	margin: 12px 0 0 !important;
	font-size: 14px !important;
	font-style: italic;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.7) !important;
}

.wah-commissions-card.is-just-closed {
	animation: wahPop 0.6s var(--wah-spring);
}

@keyframes wahPop {
	from { opacity: 0; transform: translateY(20px) scale(0.92); }
	to { opacity: 1; transform: none; }
}

/* ---------- HEADER STARS: frame the top of the page, never cover content ---------- */

.wah-stars-left,
.wah-stars-right {
	width: min(12vw, 150px);
	height: 480px;
	max-height: 480px;
	transition: opacity 0.5s ease;
}

/* They sit on top of the page, so they step aside as soon as you scroll. */
.wah-scrolled .wah-stars-left,
.wah-scrolled .wah-stars-right {
	opacity: 0 !important;
}

@media (max-width: 768px) {
	.wah-stars-left,
	.wah-stars-right {
		width: 72px;
		height: 288px;
		max-height: 288px;
	}
}

/* ---------- HOME GALLERY: keep faces in frame, two full cards on phones ---------- */

.home .wah-marquee-card img {
	object-position: center 30%;
}

@media (max-width: 600px) {
	.home .wah-marquee {
		width: 100vw !important;
		max-width: none !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: 0 !important;
		margin-top: 20px;
		padding: 20px 0 28px;
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
		mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	}

	.home .wah-moving-gallery,
	.home .wah-moving-gallery .wah-section-inner {
		overflow: visible !important;
	}

	.home .wah-marquee-track {
		gap: 14px;
	}

	.home .wah-marquee-card {
		flex-basis: 168px;
		height: 236px;
		padding: 9px 9px 38px;
		border-radius: 16px;
	}

	.home .wah-marquee-card img {
		border-radius: 10px;
	}

	.home .wah-polaroid-caption {
		left: 10px;
		right: 10px;
		bottom: 12px;
		font-size: 12px;
	}
}

/* ---------- HOME: blocks size to their section, not the screen (no cut-off text on tablets) ---------- */

.home .wah-commissions-card,
.home .wah-pin-grid {
	width: 100% !important;
	box-sizing: border-box;
}

.home .wah-commissions-card {
	max-width: 900px !important;
}

.home .wah-pin-grid {
	max-width: 1200px !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home .wah-pin-content {
	min-width: 0;
}

@media (max-width: 900px) {
	.home .wah-pin-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- MENU: stays on one line on tablets and small laptops (seven items, with Resources) ---------- */

@media (min-width: 601px) and (max-width: 1280px) {
	header .wp-block-navigation__container {
		gap: 0 !important;
		flex-wrap: nowrap !important;
	}

	header .wp-block-navigation-item__content {
		padding-left: 8px !important;
		padding-right: 8px !important;
		font-size: 13.5px !important;
		white-space: nowrap;
	}
}

/* Narrow laptops: a little tighter still, so the light/dark button stays on the same line. */
@media (min-width: 1141px) and (max-width: 1199px) {
	header .wp-block-navigation-item__content {
		padding-left: 5px !important;
		padding-right: 5px !important;
		font-size: 13px !important;
		letter-spacing: 0.2px !important;
	}
}

/* Small tablets and narrow laptops: the full menu doesn't fit, so use the phone menu button. */
@media (min-width: 600px) and (max-width: 1140px) {
	header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}

	header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
}

/* ---------- INNER PAGES: centred on phones and tablets ----------
   These page blocks were sized from the screen width (94vw, 100vw - 32px) while sitting inside
   the padded page card, so on phones they hung over the right edge. Make them fit the card instead. */

@media (max-width: 1100px) {
	html body .wp-site-blocks .wah-lab,
	html body .wp-site-blocks .wah-package-guide,
	html body .wp-site-blocks .wah-price-calculator,
	html body .wp-site-blocks .wah-tos-page,
	html body .wp-site-blocks .wah-care-page,
	html body .wp-site-blocks .wah-spotlight {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		box-sizing: border-box !important;
	}
}

/* Phones: the stars bob up and down only, so they never poke past the screen edge
   (older iPhones would otherwise let the page slide sideways). */
@media (max-width: 768px) {
	.wah-stars-left,
	.wah-stars-right {
		animation-name: wahBob !important;
	}
}

@keyframes wahBob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(10px); }
}

/* Footer: a small, quiet way into the admin panel */
.wah-admin-link { margin-top: 6px !important; font-size: 12px !important; opacity: 0.55; }
.wah-admin-link a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.wah-admin-link a:hover,
.wah-admin-link a:focus-visible { opacity: 1; border-bottom-style: solid; }
.wah-admin-link:hover,
.wah-admin-link:focus-within { opacity: 0.9; }

/* =========================================================
   CENTRED PAGES
   The page text area was pulled 20px to the left of the page (its negative margins only moved it,
   they didn't widen it), so the Price Calculator and the other pages sat slightly off-centre.
   ========================================================= */

body:not(.home) .entry-content.alignfull.wp-block-post-content {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* =========================================================
   SEWN PICTURES
   Photos get a stitched seam just inside their edge, like the frame of the WAHfamily map.
   ========================================================= */

:root { --wah-stitch: rgba(255, 248, 232, 0.92); --wah-stitch-dark: #1f8f96; }
html[data-theme="dark"] { --wah-stitch-dark: rgba(255, 225, 106, 0.75); }

.wp-block-image.has-custom-border img,
.wp-post-image,
.wah-pin-image img,
.wah-marquee-card img,
.wah-about-image img,
.wah-care-sticker img,
.wah-meet-pic > img,
.wah-res-shop-pic img,
.wah-world .wah-popup-img {
	outline: 2px dashed var(--wah-stitch);
	outline-offset: -9px;
}
.home .wah-marquee-card img { outline-offset: -7px; }
/* The cut-out sticker: the seam in the map's thread colour. */
.wah-care-sticker img {
	outline: 2px dashed var(--wah-stitch-dark);
	outline-offset: -7px;
}

/* =========================================================
   CREDITS: SEWN ON, LIKE THE MAP
   The pictures are see-through drawings: they sit straight on the card, with no tile or frame behind them.
   ========================================================= */

html body .wah-spotlight .wah-spot-img,
html body .wah-spotlight .wah-spot-img img {
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}
html body .wah-spotlight .wah-spot-img img {
	padding: 0 !important;
	border-radius: 0 !important;
	filter: drop-shadow(0 10px 18px rgba(9, 25, 48, 0.25));
}

.wah-spot-card::before,
.wah-pattern-credits::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1.5px dashed var(--wah-stitch-dark);
	border-radius: 12px;
	pointer-events: none;
	opacity: 0.75;
}
.wah-pattern-credits { position: relative; }
.wah-pattern-credits::before { inset: 10px; border-radius: 20px; }
.wah-pattern-item {
	outline: 1.5px dashed var(--wah-stitch-dark);
	outline-offset: -6px;
}

/* =========================================================
   RARITY
   One to five stars, each rarity in its own thread colour (the same as the patches on the map).
   ========================================================= */

[data-rarity] { --rar: #79afd1; --rar-glow: rgba(121, 175, 209, 0.35); }
[data-rarity="rare"] { --rar: #3fc7b6; --rar-glow: rgba(63, 199, 182, 0.45); }
[data-rarity="epic"] { --rar: #a67cff; --rar-glow: rgba(166, 124, 255, 0.5); }
[data-rarity="legendary"] { --rar: #f2c522; --rar-glow: rgba(242, 197, 34, 0.55); }
[data-rarity="mythic"] { --rar: #f8892a; --rar-glow: rgba(248, 137, 42, 0.6); }

.wah-rarity-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 13px 6px 11px;
	border-radius: 999px;
	border: 1.5px solid var(--rar);
	background: rgba(9, 25, 48, 0.55);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 1px;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 0 14px var(--rar-glow);
}
.wah-rarity-stars {
	color: var(--rar);
	letter-spacing: 1px;
	text-shadow: 0 0 8px var(--rar-glow);
}
.wah-rarity-badge[data-rarity="legendary"] {
	background: linear-gradient(90deg, rgba(242, 197, 34, 0.3), rgba(9, 25, 48, 0.6));
}
.wah-rarity-badge[data-rarity="mythic"] {
	border-color: transparent;
	background:
		linear-gradient(rgba(9, 25, 48, 0.82), rgba(9, 25, 48, 0.82)) padding-box,
		linear-gradient(90deg, #f8892a, #ff5fa2, #a67cff, #3fc7b6, #ffe16a, #f8892a) border-box;
	background-size: 100% 100%, 300% 100%;
	animation: wahMythicEdge 4s linear infinite;
}
.wah-rarity-badge[data-rarity="legendary"] > .wah-rarity-stars { animation: wahTwinkle 2.4s ease-in-out infinite; }
.wah-rarity-badge[data-rarity="mythic"] > .wah-rarity-stars {
	background: linear-gradient(90deg, #ffe16a, #ff5fa2, #a67cff, #3fc7b6, #ffe16a);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: none;
	animation: wahMythicText 3s linear infinite;
}

@keyframes wahMythicEdge { to { background-position: 0 0, 300% 0; } }
@keyframes wahMythicText { to { background-position: 200% 0; } }
@keyframes wahTwinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes wahMythicBorder {
	0%, 100% { border-color: #f8892a; }
	25% { border-color: #ff5fa2; }
	50% { border-color: #a67cff; }
	75% { border-color: #3fc7b6; }
}

/* A light sweeping over rare cards; brighter the rarer the WAH. Moved with transforms only. */
@keyframes wahSweep {
	0% { transform: translateX(0) skewX(-18deg); }
	55%, 100% { transform: translateX(560%) skewX(-18deg); }
}

/* =========================================================
   HOME: A RANDOM WAH FROM THE MAP
   ========================================================= */

.wah-meet { padding-top: 40px !important; padding-bottom: 40px !important; }
.wah-meet-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}
.wah-meet.is-new .wah-meet-grid { animation: wahMeetIn 0.45s var(--wah-ease-out); }
@keyframes wahMeetIn { from { opacity: 0; transform: translateY(12px); } }

.wah-meet-pic {
	position: relative;
	justify-self: center;
	width: min(100%, 420px);
	padding: 12px;
	border-radius: 28px;
	background: #fbfdff;
	border: 3px solid var(--rar);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), 0 0 34px var(--rar-glow);
	transform: rotate(-2deg);
	transition: transform 0.5s var(--wah-spring);
	overflow: hidden;
}
.wah-meet-pic:hover { transform: rotate(0deg) scale(1.015); }
.wah-meet-pic > img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 30%;
	border-radius: 18px;
}
.wah-meet-patch {
	position: absolute;
	right: 22px;
	bottom: 22px;
	width: clamp(74px, 24%, 104px);
	aspect-ratio: 1;
	padding: 7px;
	border-radius: 24%;
	background: #fbfdff;
	border: 3px solid var(--rar);
	box-shadow: 0 8px 18px rgba(9, 25, 48, 0.35);
	transform: rotate(8deg);
	z-index: 1;
}
.wah-meet-patch::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 20%;
	border: 1.5px dashed var(--rar);
}
.wah-meet-patch img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wah-meet-pic::after {
	content: "";
	position: absolute;
	top: -20%;
	bottom: -20%;
	left: -40%;
	width: 26%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
	transform: skewX(-18deg);
	pointer-events: none;
	opacity: 0;
	z-index: 2;
}
.wah-meet-pic:is([data-rarity="rare"], [data-rarity="epic"], [data-rarity="legendary"], [data-rarity="mythic"])::after {
	opacity: 1;
	animation: wahSweep 5s ease-in-out infinite;
}
.wah-meet-pic[data-rarity="legendary"]::after { background: linear-gradient(90deg, transparent, rgba(255, 236, 150, 0.6), transparent); animation-duration: 3.4s; }
.wah-meet-pic[data-rarity="mythic"]::after { background: linear-gradient(90deg, transparent, rgba(255, 140, 200, 0.45), rgba(255, 236, 150, 0.6), rgba(140, 240, 225, 0.45), transparent); animation-duration: 3s; }
.wah-meet-pic[data-rarity="mythic"] { animation: wahMythicBorder 5s linear infinite; }

.wah-meet-text { text-align: left; }
.wah-meet .wah-section-title { margin-bottom: 18px !important; text-align: left !important; font-size: clamp(38px, 5.4vw, 72px) !important; overflow-wrap: anywhere; }
.wah-meet .wah-section-text { margin: 0 0 22px !important; text-align: left !important; max-width: 560px; }
.wah-meet-facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px !important;
}
.wah-meet-fact {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}
.wah-meet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wah-meet-shuffle {
	padding: 14px 22px;
	border-radius: 999px;
	border: 1.5px dashed currentColor;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 15px;
	font-weight: 900;
	cursor: pointer;
	transition: transform 0.25s var(--wah-spring), background 0.2s ease;
}
.wah-meet-shuffle:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); }
.wah-meet-shuffle:active { transform: scale(0.96); }
.wah-meet-shuffle:focus-visible { outline: 2px solid var(--wah-aqua); outline-offset: 3px; }
.wah-meet-social,
.wah-popup-social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1.5px dashed rgba(255, 255, 255, 0.4);
	color: inherit !important;
	font-size: 14px;
	font-style: normal !important;
	font-weight: 800;
	text-decoration: none !important;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.wah-meet-social { margin-top: 16px; }
.wah-meet-social:hover,
.wah-popup-social:hover { background: rgba(255, 255, 255, 0.2); border-color: var(--wah-yellow); }
.wah-meet-count { margin: 16px 0 0 !important; font-size: 13px !important; opacity: 0.7; }

html[data-theme="dark"] body .wah-meet { color: var(--wah-ink); }
html[data-theme="light"] body .wah-meet { color: var(--wah-l-ink); }
html[data-theme="light"] body .wah-meet :is(.wah-section-text, .wah-meet-count) { color: var(--wah-l-ink-soft) !important; }
html[data-theme="light"] body .wah-meet .wah-section-title { color: #17787e !important; }
html[data-theme="light"] body :is(.wah-meet-fact, .wah-meet-social) { background: #fff; border-color: rgba(31, 143, 150, 0.3); color: var(--wah-l-ink) !important; }
html[data-theme="light"] body .wah-meet .wah-rarity-badge { background: #fff; color: var(--wah-l-ink); }
html[data-theme="light"] body .wah-meet .wah-rarity-badge[data-rarity="legendary"] { background: linear-gradient(90deg, #fff1b8, #fff); }
html[data-theme="light"] body .wah-meet .wah-rarity-badge[data-rarity="mythic"] {
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(90deg, #f8892a, #ff5fa2, #a67cff, #3fc7b6, #ffe16a, #f8892a) border-box;
	background-size: 100% 100%, 300% 100%;
}
html[data-theme="light"] body .wah-meet .wah-rarity-stars { text-shadow: none; filter: saturate(1.3) brightness(0.85); }
html[data-theme="light"] body .wah-meet-shuffle { color: #17787e; }
html[data-theme="light"] body .wah-meet-shuffle:hover { background: rgba(31, 143, 150, 0.08); }

@media (max-width: 800px) {
	.wah-meet-grid { grid-template-columns: 1fr; text-align: center; }
	.wah-meet-pic { width: min(100%, 340px); }
	.wah-meet-text { text-align: center; }
	.wah-meet .wah-section-title,
	.wah-meet .wah-section-text { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
	.wah-meet-facts,
	.wah-meet-actions { justify-content: center; }
}

/* =========================================================
   PRICE CALCULATOR (drawn from the content file by js/site-content.js)
   ========================================================= */

/* The estimate stays in view while scrolling through the options, just under the menu bar.
   (The page card clips without becoming a scroll box, so the box can stick.) */
.wp-block-group.alignwide.has-background:has(.wah-price-layout) { overflow: clip !important; }
.wah-price-layout { scroll-margin-top: 110px; }
@media (min-width: 901px) {
	.wah-price-layout > .wah-total-card {
		position: sticky;
		top: 104px;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}
}
.wah-number-row label strong { display: block; }
.wah-number-row label span {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 600;
	opacity: 0.82;
	line-height: 1.5;
}
.wah-total { transform-origin: left center; }
.wah-total.is-bump { animation: wahBump 0.35s var(--wah-spring); }
@keyframes wahBump { 40% { transform: scale(1.06); } }

.wah-calc-cta { margin-top: 20px; }
.wah-calc-status {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 !important;
	font-size: 14px;
	font-weight: 900;
}
.wah-calc-dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 10px #4ade80;
}
.wah-calc-status.is-closed .wah-calc-dot { background: #ff6b6b; box-shadow: 0 0 10px #ff6b6b; }
.wah-calc-closed-text { margin: 10px 0 0 !important; font-size: 14px; line-height: 1.55; opacity: 0.9; }
.wah-total-card .wah-apply-button { margin-top: 14px; }
.wah-apply-button.is-disabled {
	cursor: not-allowed;
	background: rgba(255, 255, 255, 0.16) !important;
	color: rgba(255, 255, 255, 0.78) !important;
	border: 1.5px dashed rgba(255, 255, 255, 0.35);
	font-size: 15px;
}
.wah-apply-button.is-disabled:hover { transform: none; filter: none; }
html[data-theme="light"] body .wah-apply-button.is-disabled { background: #eef3f7 !important; color: #5b6b7f !important; border-color: rgba(23, 45, 74, 0.2); }
html[data-theme="light"] body .wah-calc-status { color: var(--wah-l-ink); }

@media (prefers-reduced-motion: reduce) {
	.wah-meet-pic::after,
	.wah-meet-pic,
	.wah-rarity-badge,
	.wah-rarity-stars,
	.wah-total.is-bump { animation: none !important; }
}
