/* Extracted module from mds.css (staged refactor) */

/* Header controls: keep all alignment/spacing knobs in one place */
body.mds-container {
	--mds-header-max-width: 1000px;
	--mds-header-columns-gap: 12px;
	--mds-header-logo-col-width: 352px;
	--mds-header-stats-col-width: 149px;
	--mds-logo-gold: #f4c95f;
	--mds-header-logo-nudge-x: 0px; /* no manual nudge; structural alignment via column width */
	--mds-header-logo-nudge-y: -4px; /* tighten header vertically */
	--mds-header-banner-nudge-y: -3px; /* tighten header vertically */
	--mds-header-stats-nudge-y: 0px; /* align with tighter header row */
	--mds-header-phrases-margin-top: 0;
	--mds-header-phrases-margin-bottom: 1px;
	--mds-home-header-row-margin-top: -2px;
	--mds-home-header-row-margin-bottom: 2px;
	--mds-home-nav-margin-bottom: 1px;
	--mds-home-main-margin-top: 0; /* safe: avoid overlap */
}

/* Center header inner content to match grid width */
header.wp-block-template-part {
	width: 100% !important;
	max-width: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

header.wp-block-template-part .wp-block-columns,
header.wp-block-template-part .wp-block-group {
	max-width: var(--mds-header-max-width, 1000px) !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Keep the header row within the 1000px grid and prevent right-side overflow on MDS pages */
body.mds-container header.wp-block-template-part > .wp-block-columns {
	gap: var(--mds-header-columns-gap, 12px) !important;
}

body.mds-container header.wp-block-template-part > .wp-block-columns > .wp-block-column {
	min-width: 0 !important;
}

/* Match actual header content widths so logo/stats do not overflow the 1000px row */
body.mds-container header.wp-block-template-part > .wp-block-columns > .wp-block-column:first-child {
	flex: 0 0 var(--mds-header-logo-col-width, 380px) !important;
}

body.mds-container header.wp-block-template-part > .wp-block-columns > .wp-block-column:last-child {
	flex: 0 0 var(--mds-header-stats-col-width, 149px) !important;
}

/* The center image column should absorb available width and shrink inside the 1000px header */
body.mds-container header.wp-block-template-part > .wp-block-columns > .wp-block-column:nth-child(3) {
	flex: 1 1 auto !important;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo.aligncenter {
	text-align: left !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Visual alignment tweak: logo artwork has a bit of left whitespace compared to the grid edge */
body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link {
	position: relative;
	left: var(--mds-header-logo-nudge-x, 0px);
	top: var(--mds-header-logo-nudge-y, 0px);
}

body.mds-container header.wp-block-template-part > .wp-block-columns > .wp-block-column:last-child .mds-shortcode-container[data-mds-params*="stats"] {
	position: relative;
	top: var(--mds-header-stats-nudge-y, 3px);
}

body.mds-container header.wp-block-template-part > .wp-block-columns .wp-block-image img,
body.mds-container header.wp-block-template-part > .wp-block-columns .custom-logo {
	max-width: 100% !important;
	height: auto !important;
}

/* Homepage above-the-fold compaction: move the grid up without redesigning the header */
body.home.mds-container .wp-block-cover__inner-container > .wp-block-group {
	padding-top: 0 !important;
	padding-bottom: 6px !important;
}

body.home.mds-container header.wp-block-template-part > .wp-block-columns {
	margin-top: var(--mds-home-header-row-margin-top, 0) !important;
	margin-bottom: var(--mds-home-header-row-margin-bottom, 7px) !important;
}

body.home.mds-container h4.wp-block-heading.has-text-align-center {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	line-height: 1.1;
}

/* Header phrases (above menu) */
body.mds-container .mdh2-header-phrases {
	max-width: var(--mds-header-max-width, 1000px);
	width: 100%;
	margin: var(--mds-header-phrases-margin-top, 1px) auto var(--mds-header-phrases-margin-bottom, 4px);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

body.mds-container .mdh2-header-phrase {
	display: inline-block;
	padding: 2px 12px;
	border-radius: 999px;
	border: 1px solid rgba(125, 255, 191, 0.18);
	background: rgba(7, 16, 24, 0.32);
	color: #b6edd0;
	font-family: var(--wp--preset--font-family--libre-caslon-condensed), "Times New Roman", serif;
	font-size: 12.5px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-shadow: 0 0 6px rgba(125, 255, 191, 0.08);
	white-space: nowrap;
}

body.home.mds-container nav.wp-block-navigation {
	margin-top: -2px !important;
	margin-bottom: var(--mds-home-nav-margin-bottom, -14px) !important;
	padding-bottom: 1px !important;
	margin-block-start: 0 !important;
	margin-block-end: var(--mds-home-nav-margin-bottom, -14px) !important;
}

body.home.mds-container > .wp-site-blocks .wp-block-cover__inner-container > .wp-block-group > main.wp-block-group {
	margin-top: var(--mds-home-main-margin-top, -22px) !important;
	margin-bottom: 6px !important;
}

/* Hard centering guard: keep header and grid stack on the same 1000px center axis */
body.home.mds-container header.wp-block-template-part > .wp-block-columns,
body.home.mds-container nav.wp-block-navigation,
body.home.mds-container > .wp-site-blocks .wp-block-cover__inner-container > .wp-block-group > main.wp-block-group,
body.home.mds-container > .wp-site-blocks .wp-block-cover__inner-container > .wp-block-group > main.wp-block-group > .wp-block-group.has-accent-one-background-color.has-background,
body.home.mds-container .entry-content .mds-shortcode-container[id^="grid-"] {
	width: min(1000px, 100%) !important;
	max-width: 1000px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

body.home.mds-container .entry-content .mds-shortcode-container[id^="grid-"] {
	display: block !important;
}

body.home.mds-container > .wp-site-blocks .wp-block-cover__inner-container > .wp-block-group > main.wp-block-group > .wp-block-group.has-accent-one-background-color.has-background {
	padding-top: 0 !important;
	padding-bottom: 6px !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.home.mds-container > .wp-site-blocks .wp-block-cover__inner-container > .wp-block-group > main.wp-block-group > .wp-block-group.has-accent-one-background-color.has-background > .wp-block-group {
	gap: 0 !important;
}

@media (max-width: 900px) {
	body.mds-container .mdh2-header-phrases {
		margin-top: 0;
		margin-bottom: 3px;
		gap: 8px;
	}

	body.mds-container .mdh2-header-phrase {
		font-size: 11px;
		padding: 2px 9px;
		letter-spacing: 0.01em;
	}
}

body.mds-order-pixels .mds-container {
	position: relative;
	z-index: 2;
}

.mds-resale-toggle {
	display: flex;
	gap: 10px;
	margin: 20px 0 10px;
	flex-wrap: wrap;
}

.mds-resale-tab {
	border-radius: 999px;
	padding: 8px 16px;
	border: 1px solid rgba(0, 255, 204, 0.35);
	background: rgba(4, 12, 22, 0.85);
	color: #e9f7ff;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mds-resale-tab.is-active {
	box-shadow: 0 0 10px rgba(0, 255, 204, 0.7);
}

.mds-resale-tab.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
}

.mds-resale-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.mds-resale-actions__controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.mds-resale-count {
	font-weight: 600;
	color: #e9f7ff;
}

.mds-resale-block {
	position: absolute;
	border: 1px solid rgba(0, 255, 204, 0.65);
	box-shadow: 0 0 6px rgba(0, 255, 204, 0.45);
	border-radius: 2px;
	pointer-events: none;
	z-index: 10005;
}

.mds-resale-block::after {
	content: "$";
	position: absolute;
	top: 2px;
	right: 3px;
	font-size: 10px;
	color: #00ffd5;
	text-shadow: 0 0 6px rgba(0, 255, 204, 0.8);
}

.mds-resale-block.is-selected {
	background: rgba(0, 255, 204, 0.2);
	box-shadow: 0 0 12px rgba(0, 255, 204, 0.85);
}

body.mds-resale-mode .mds-resale-block {
	pointer-events: auto;
	cursor: pointer;
}

body.mds-resale-mode .mds-select-wrapper,
body.mds-resale-mode #submit-buttons {
	display: none !important;
}

body.mds-resale-mode #mds-resale-actions {
	display: flex !important;
}

.mds-resale-panel {
	margin-top: 30px;
	padding: 20px;
	border-radius: 16px;
	background: rgba(12, 16, 28, 0.85);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	color: #e9f7ff;
}

.mds-resale-devnet {
	font-size: 13px;
	opacity: 0.85;
	margin-bottom: 16px;
}

.mds-resale-blocks-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-height: 180px;
	overflow-y: auto;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.2);
}

.mds-resale-block-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #e9f7ff;
}

.mds-resale-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin-top: 14px;
}

.mds-resale-fields label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
}

.mds-resale-listings {
	margin-top: 20px;
}

.mds-resale-listings table {
	width: 100%;
	border-collapse: collapse;
	color: #e9f7ff;
}

.mds-resale-listings th,
.mds-resale-listings td {
	padding: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	text-align: left;
}

.mds-market-page {
	margin-top: 20px;
	color: #e9f7ff;
}

.mds-market-header {
	margin-bottom: 20px;
}

.mds-market-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin-bottom: 20px;
}

.mds-market-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
}

.mds-market-grid {
	position: relative;
	margin-bottom: 20px;
}

.mds-market-grid-inner {
	position: relative;
	max-width: 100%;
	margin: 0 auto;
}

#mds-market-grid-image {
	width: 100%;
	height: auto;
	display: block;
}

#mds-market-overlays {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

.mds-market-block {
	position: absolute;
	background: rgba(0, 255, 170, 0.15);
	border: 1px solid rgba(0, 255, 170, 0.6);
	color: #00ffd5;
	font-size: 10px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.mds-market-block span {
	background: rgba(0, 0, 0, 0.5);
	padding: 2px 4px;
	border-radius: 3px;
}

.mds-market-listing {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	gap: 16px;
}

.mds-market-listing__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mds-market-listing__price {
	font-weight: 600;
}

.mds-market-listing__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mds-offer-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10050;
}

.mds-offer-modal__content {
	background: rgba(12, 16, 28, 0.95);
	padding: 20px;
	border-radius: 16px;
	width: min(320px, 90vw);
	color: #e9f7ff;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mds-offer-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

/* Header live text banner (replaces center banner image) */
body.mds-container header.wp-block-template-part .wp-block-columns > .wp-block-column:nth-child(3) figure.wp-block-image.mdh2-banner-enabled {
	position: relative;
	top: var(--mds-header-banner-nudge-y, 0px);
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-height: 44px;
}

body.mds-container header.wp-block-template-part .wp-block-columns > .wp-block-column:nth-child(3) figure.wp-block-image.mdh2-banner-enabled img {
	display: none;
}

body.mds-container header.wp-block-template-part .mdh2-banner-text {
	display: inline-block;
	position: relative;
	font-family: var(--wp--preset--font-family--libre-caslon-condensed), "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(11px, 0.98vw, 15px);
	line-height: 1.1;
	letter-spacing: 0;
	font-stretch: normal;
	transform: scaleX(0.98);
	transform-origin: center center;
	white-space: nowrap;
	text-align: center;
	color: #7dffbf;
	-webkit-text-fill-color: currentColor;
	background: none;
	-webkit-text-stroke: 0;
	text-shadow:
		-0.55px 0 0 rgba(0, 220, 255, 0.24),
		0.55px 0 0 rgba(255, 88, 150, 0.14),
		0 0 2px rgba(125, 255, 191, 0.16);
	opacity: 0.96;
}

/* VHS scanlines as additive overlay so base #7dffbf stays unchanged in brightness */
body.mds-container header.wp-block-template-part .mdh2-banner-text::before {
	content: attr(data-banner-text);
	position: absolute;
	inset: 0;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	white-space: inherit;
	text-align: inherit;
	pointer-events: none;
	color: transparent;
	-webkit-text-fill-color: transparent;
	background-image: repeating-linear-gradient(
		to bottom,
		rgba(8, 12, 18, 0.42) 0px,
		rgba(8, 12, 18, 0.42) 1px,
		rgba(0, 0, 0, 0) 1px,
		rgba(0, 0, 0, 0) 3px
	);
	background-size: 100% 3px;
	background-repeat: repeat;
	-webkit-background-clip: text;
	background-clip: text;
	opacity: 0.86;
}

body.mds-container header.wp-block-template-part .mdh2-banner-text::after {
	content: attr(data-banner-text);
	position: absolute;
	inset: 0;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	white-space: inherit;
	text-align: inherit;
	pointer-events: none;
	color: rgba(242, 247, 255, 0.98);
	opacity: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.95) 45%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.95) 45%, transparent 100%);
	-webkit-mask-size: 34% 100%;
	mask-size: 34% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: -45% 0;
	mask-position: -45% 0;
	animation: mds-banner-sweep 14s linear infinite;
}

@keyframes mds-banner-sweep {
	0%, 66% {
		opacity: 0;
		-webkit-mask-position: -45% 0;
		mask-position: -45% 0;
	}
	68% {
		opacity: 0.95;
	}
	82% {
		opacity: 0.95;
		-webkit-mask-position: 145% 0;
		mask-position: 145% 0;
	}
	84%, 100% {
		opacity: 0;
		-webkit-mask-position: 145% 0;
		mask-position: 145% 0;
	}
}

body.mds-container header.wp-block-template-part .mdh2-banner-note {
	display: block;
	max-width: 100%;
	text-align: center;
	white-space: nowrap;
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: clamp(10px, 0.82vw, 12px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.01em;
	color: rgba(230, 238, 247, 0.92);
	text-shadow: none;
}

@media (max-width: 1200px) {
	body.mds-container header.wp-block-template-part .mdh2-banner-text {
		font-size: clamp(9px, 1vw, 14px);
	}
}

@media (max-width: 900px) {
	body.mds-container header.wp-block-template-part .mdh2-banner-text {
		font-size: clamp(8px, 2vw, 12px);
		white-space: normal;
		max-width: 100%;
	}

	body.mds-container header.wp-block-template-part .mdh2-banner-note {
		white-space: normal;
		font-size: clamp(9px, 1.8vw, 11px);
	}
}

/* MDS text logo (replaces image logo visually, keeps existing header layout) */
@font-face {
	font-family: "Alba Super";
	src: url("/wp-content/uploads/fonts/ALBAS___.woff2") format("woff2");
	font-display: swap;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled {
	display: inline-block !important;
	position: relative;
	line-height: 1;
	text-decoration: none;
	overflow: visible;
	transition: none;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-image-enabled {
	display: inline-flex !important;
	align-items: flex-start;
	white-space: nowrap;
	position: relative;
	isolation: isolate;
}

/* Image-logo effect: match banner effect family (scanlines + sweep) */
body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-image-enabled img.custom-logo {
	display: block;
	position: relative;
	z-index: 1;
	filter: none;
	transition: none;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-image-enabled::before,
body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-image-enabled::after {
	content: none;
	display: none;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-image-enabled:hover img.custom-logo {
	filter: none;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled img {
	display: none !important;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link .mdh2-logo {
	display: inline-block;
	position: relative;
	padding: 0;
	line-height: 1;
	overflow: visible;
	white-space: nowrap;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link .mdh2-logo::before {
	content: "";
	position: absolute;
	inset: -12px -18px;
	pointer-events: none;
	border-radius: 999px;
	background: radial-gradient(closest-side, rgba(255, 210, 90, 0.22), rgba(255, 210, 90, 0) 74%);
	filter: blur(8px);
	opacity: 0;
	transition: opacity 180ms ease, filter 180ms ease;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link .mdh2-text {
	position: relative;
	z-index: 1;
	display: inline-block;
	font-family: "Alba Super", "Cooper Black", "Arial Rounded MT Bold", system-ui, sans-serif;
	font-size: clamp(15px, 1.6vw, 26px);
	font-weight: 400;
	letter-spacing: 0.01em;
	white-space: nowrap;
	color: var(--mds-logo-gold, #f4c95f);
	text-shadow:
		0 0 4px rgba(255, 187, 38, 0.24),
		-0.65px 0 0 rgba(0, 220, 255, 0.44),
		0.65px 0 0 rgba(255, 76, 140, 0.34);
	transition: color 180ms ease, text-shadow 180ms ease, filter 180ms ease;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link .mdh2-char {
	display: inline-block;
	padding: 0 0.015em;
	will-change: auto;
	color: transparent;
	-webkit-text-fill-color: transparent;
	background-image:
		linear-gradient(to bottom, var(--mds-logo-gold, #f4c95f), var(--mds-logo-gold, #f4c95f)),
		repeating-linear-gradient(
			to bottom,
			rgba(22, 14, 5, 0.58) 0px,
			rgba(22, 14, 5, 0.58) 1px,
			rgba(0, 0, 0, 0) 1px,
			rgba(0, 0, 0, 0) 3px
		);
	background-size: 100% 100%, 100% 3px;
	background-repeat: no-repeat, repeat;
	background-blend-mode: multiply;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-stroke: 0.16px rgba(112, 68, 10, 0.42);
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link .mdh2-sup {
	/* Restore classic superscript style for the ² character (no Alba special handling). */
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: 0.66em;
	font-weight: 700;
	vertical-align: super;
	line-height: 1;
	transform: none;
	margin-left: -0.14em;
	color: currentColor;
	-webkit-text-stroke: 0;
	text-shadow: inherit;
	padding-left: 0;
	padding-right: 0;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled:hover {
	transform: none;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled:hover .mdh2-logo::before {
	opacity: 0.18;
	filter: blur(6px);
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled:hover .mdh2-text {
	color: #f7fbff;
	-webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.55);
	text-shadow:
		0 0 3px rgba(255, 255, 255, 0.22),
		0 0 7px rgba(220, 240, 255, 0.14);
	filter: none;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled:hover .mdh2-char {
	background-image: none;
	color: #f7fbff;
	-webkit-text-fill-color: #f7fbff;
	-webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.55);
}

/* Logo in text mode: use same static style recipe as banner text */
body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled .mdh2-logo {
	display: inline-flex;
	position: static;
	align-items: baseline;
	gap: 0;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled .mdh2-text:not(.mdh2-sup) {
	display: inline-block;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled .mdh2-text {
	display: inline-block;
	position: relative;
	font-family: "Alba Super", "Cooper Black", "Arial Rounded MT Bold", system-ui, sans-serif;
	font-size: clamp(15px, 1.6vw, 26px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.01em;
	white-space: nowrap;
	color: #7dffbf !important;
	-webkit-text-fill-color: currentColor !important;
	background: none !important;
	-webkit-text-stroke: 0 !important;
	text-shadow:
		-0.55px 0 0 rgba(0, 220, 255, 0.24),
		0.55px 0 0 rgba(255, 88, 150, 0.14),
		0 0 2px rgba(125, 255, 191, 0.16) !important;
	opacity: 0.96 !important;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled .mdh2-text::before {
	content: attr(data-logo-text);
	position: absolute;
	inset: 0;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	white-space: inherit;
	text-align: inherit;
	pointer-events: none;
	color: transparent;
	-webkit-text-fill-color: transparent;
	background-image: repeating-linear-gradient(
		to bottom,
		rgba(8, 12, 18, 0.42) 0px,
		rgba(8, 12, 18, 0.42) 1px,
		rgba(0, 0, 0, 0) 1px,
		rgba(0, 0, 0, 0) 3px
	);
	background-size: 100% 3px;
	background-repeat: repeat;
	-webkit-background-clip: text;
	background-clip: text;
	opacity: 0.86;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled .mdh2-text::after {
	content: none;
	display: none;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled .mdh2-sup {
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: 0.82em;
	font-weight: 700;
	vertical-align: baseline;
	line-height: 1;
	display: inline-block;
	position: relative;
	top: -10px;
	left: 5px;
	margin-left: 0;
	transform: none;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled .mdh2-char {
	display: none;
}

/* Live text logo hover: brighten + neon shine */
body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled .mdh2-logo::before {
	background: radial-gradient(
		closest-side,
		rgba(117, 232, 182, 0.24),
		rgba(117, 232, 182, 0) 74%
	);
	opacity: 0;
	transition: opacity 180ms ease, filter 180ms ease;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled .mdh2-text {
	transition:
		color 180ms ease,
		text-shadow 180ms ease,
		filter 180ms ease,
		opacity 180ms ease;
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled:hover .mdh2-logo::before {
	opacity: 0.34;
	filter: blur(7px);
}

body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled:hover .mdh2-text {
	color: #75e8b6;
	text-shadow:
		-0.55px 0 0 rgba(0, 220, 255, 0.24),
		0.55px 0 0 rgba(255, 88, 150, 0.14),
		0 0 4px rgba(117, 232, 182, 0.30),
		0 0 10px rgba(117, 232, 182, 0.18);
	filter: brightness(1.16) saturate(1.10);
	opacity: 1;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
	body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link .mdh2-char {
		color: var(--mds-logo-gold, #f4c95f);
		-webkit-text-fill-color: currentColor;
		background-image: none;
		-webkit-text-stroke: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled {
		transition: none;
	}

	body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-image-enabled img.custom-logo {
		transition: none;
	}

	body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link .mdh2-logo::before,
	body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link .mdh2-text {
		transition: none;
	}

	body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link.mdh2-logo-enabled:hover {
		transform: none;
	}
}

@media (max-width: 900px) {
	body.mds-container header.wp-block-template-part .wp-block-site-logo .custom-logo-link .mdh2-text {
		font-size: clamp(12px, 3.4vw, 18px);
		white-space: nowrap;
	}
}

/* Global MDS-page header/menu/content compaction (homepage has stronger overrides above) */
body.mds-container .wp-block-cover__inner-container > .wp-block-group {
	padding-top: 4px !important;
	padding-bottom: 12px !important;
}

body.mds-container header.wp-block-template-part > .wp-block-columns {
	margin-top: 2px !important;
	margin-bottom: 10px !important;
}

body.mds-container h4.wp-block-heading.has-text-align-center {
	margin-top: 2px !important;
	margin-bottom: 4px !important;
	line-height: 1.15;
}

body.mds-container nav.wp-block-navigation {
	max-width: var(--mds-header-max-width, 1000px) !important;
	width: min(var(--mds-header-max-width, 1000px), calc(100% - 24px)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	min-height: 0;
}

body.mds-container nav.wp-block-navigation::before,
body.mds-container nav.wp-block-navigation::after {
	content: none !important;
}

body.mds-container nav.wp-block-navigation .wp-block-navigation__container {
	width: 100%;
	justify-content: center;
	gap: 14px !important;
	background: transparent !important;
	background-image: none !important;
}

body.mds-container nav.wp-block-navigation .wp-block-navigation-item__content {
	padding: 0 !important;
	color: inherit;
	text-decoration: none;
	text-underline-offset: 1px;
	background: transparent;
	background-image: none;
}

body.mds-container nav.wp-block-navigation .wp-block-navigation-item__content:hover,
body.mds-container nav.wp-block-navigation .wp-block-navigation-item__content:focus {
	text-decoration: underline;
	text-underline-offset: 1px;
}

/* Header menu typography: neutral + smaller */
body.mds-container nav.wp-block-navigation,
body.mds-container nav.wp-block-navigation .wp-block-navigation-item__content,
body.mds-container nav.wp-block-navigation .wp-block-navigation-item__label {
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.15;
}

body.mds-container > .wp-site-blocks .wp-block-cover__inner-container > main.wp-block-group {
	margin-top: -10px !important;
}
