/* Global base layer: typography, links, and shared element rhythm. */

:where(body, .editor-styles-wrapper) {
	color: var(--mndz-color-text-muted);
	font-family: var(--mndz-font-body);
	font-size: var(--mndz-font-size-body);
	font-weight: var(--mndz-font-weight-body);
	line-height: var(--mndz-line-height-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

:where(body, .editor-styles-wrapper) :where(h1, h2, h3, h4, h5, h6) {
	margin: 0 0 0.5em;
	font-family: var(--mndz-font-display);
	font-weight: var(--mndz-font-weight-heading);
	line-height: var(--mndz-line-height-heading);
	letter-spacing: 0.01em;
	color: var(--mndz-color-heading);
}

:where(body, .editor-styles-wrapper) h1 {
	font-size: var(--mndz-font-size-h1);
}

:where(body, .editor-styles-wrapper) h2 {
	font-size: var(--mndz-font-size-h2);
}

:where(body, .editor-styles-wrapper) h3 {
	font-size: var(--mndz-font-size-h3);
}

:where(body, .editor-styles-wrapper) h4 {
	font-size: var(--mndz-font-size-h4);
}

:where(body, .editor-styles-wrapper) h5 {
	font-size: var(--mndz-font-size-h5);
}

:where(body, .editor-styles-wrapper) h6 {
	font-size: var(--mndz-font-size-h6);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

:where(body, .editor-styles-wrapper) p {
	margin: var(--mndz-paragraph-spacing);
	max-width: 78ch;
}

:where(body, .editor-styles-wrapper) .header-widget-region .widget p {
	margin: 0;
	max-width: none;
}

:where(body, .editor-styles-wrapper) :where(ul, ol) {
	margin: 0 0 1.1em;
	padding-left: 1.2rem;
}

:where(body, .editor-styles-wrapper) li {
	margin: 0.45em 0;
}

:where(body, .editor-styles-wrapper) blockquote {
	margin: 0 0 1.2em;
	padding: 0.75em 1.1em;
	border-left: 3px solid rgba(var(--mndz-accent-rgb), 0.42);
	background: rgba(var(--mndz-accent-rgb), 0.06);
	border-radius: var(--mndz-radius-card);
	color: var(--mndz-color-text);
}

:where(body, .editor-styles-wrapper) hr {
	margin: 1.4em 0;
	border: 0;
	border-top: 1px solid var(--mndz-color-border);
}

:where(
	.site-content .entry-content,
	.site-content .wp-block-post-content,
	.editor-styles-wrapper
) a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn) {
	color: var(--mndz-color-accent);
	font-weight: var(--mndz-font-weight-link);
	text-decoration: none;
	background-image: linear-gradient(currentcolor, currentcolor);
	background-position: 0 calc(100% - 1px);
	background-repeat: no-repeat;
	background-size: 0 1.25px;
	transition:
		color var(--mndz-motion-fast) var(--mndz-motion-easing),
		background-size var(--mndz-motion-fast) var(--mndz-motion-easing);
}

:where(
	.site-content .entry-content,
	.site-content .wp-block-post-content,
	.editor-styles-wrapper
) a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):hover,
:where(
	.site-content .entry-content,
	.site-content .wp-block-post-content,
	.editor-styles-wrapper
) a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):focus-visible {
	color: var(--mndz-color-accent-hover);
	background-size: 100% 1.25px;
}

/*
 * Strong content-link contract for DS-managed page roots.
 * Avoid :where() specificity collapse so theme defaults do not leak through.
 */
.site-content .entry-content a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn),
.site-content .wp-block-post-content a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn),
.mndz-contact-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn),
.mndz-help-centre-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn),
.mndz-shipping-collection-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn),
.mndz-refund-returns-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn),
.mndz-privacy-policy-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn) {
	color: var(--mndz-color-accent);
	font-weight: var(--mndz-font-weight-link);
	text-decoration: none !important;
	text-decoration-line: none !important;
	text-decoration-thickness: 0 !important;
	border-bottom: 0 !important;
	background-image: linear-gradient(currentcolor, currentcolor);
	background-position: 0 calc(100% - 1px);
	background-repeat: no-repeat;
	background-size: 0 1.25px;
	transition:
		color var(--mndz-motion-fast) var(--mndz-motion-easing),
		background-size var(--mndz-motion-fast) var(--mndz-motion-easing);
}

.site-content .entry-content a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):hover,
.site-content .entry-content a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):focus-visible,
.site-content .wp-block-post-content a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):hover,
.site-content .wp-block-post-content a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):focus-visible,
.mndz-contact-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):hover,
.mndz-contact-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):focus-visible,
.mndz-help-centre-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):hover,
.mndz-help-centre-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):focus-visible,
.mndz-shipping-collection-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):hover,
.mndz-shipping-collection-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):focus-visible,
.mndz-refund-returns-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):hover,
.mndz-refund-returns-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):focus-visible,
.mndz-privacy-policy-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):hover,
.mndz-privacy-policy-page a:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.mndz-btn):not(.mndz-policy-btn):focus-visible {
	color: var(--mndz-color-accent-hover);
	text-decoration: none !important;
	background-size: 100% 1.25px;
}

:where(body, .editor-styles-wrapper) :where(a, button, input, select, textarea):focus-visible {
	outline: var(--mndz-focus-ring-size) solid var(--mndz-focus-ring-color);
	outline-offset: var(--mndz-focus-ring-offset);
}
