/* Base theme rules carried over for the MOR Astro build. */

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are fully component-scoped.
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--color--secondary);
	color: var(--color--base);
	border-color: var(--color--secondary);
}

/*
 * Link styles
 * Base link treatment.
 */
a {
	text-decoration-thickness: .0625em !important;
	text-underline-offset: .15em;
}

/*
 * Static export overrides for Cloudflare Pages
 * - Light gray background
 * - High-contrast black text/icons
 * - Black logo treatment for readability
 */
:root {
	--mor-bg: #e8e8e8;
	--color--base: #e8e8e8 !important;
	--color--contrast: #000000 !important;
	--color--primary: #000000 !important;
	--color--secondary: #000000 !important;
}

html,
body,
.wp-site-blocks,
.has-base-background-color {
	background-color: var(--mor-bg) !important;
	color: #000000 !important;
}

body,
p,
li,
span,
h1,
h2,
h3,
h4,
h5,
h6,
a,
.wp-block-navigation .wp-block-navigation-item__content,
.wp-block-site-tagline {
	color: #000000 !important;
}

a:where(:not(.wp-element-button)):hover {
	color: #000000 !important;
}

.wp-block-social-link,
.wp-block-social-link a,
.wp-block-social-link svg {
	color: #000000 !important;
	fill: #000000 !important;
}

/* Existing export uses white logo files; force visible black-on-light treatment. */
.custom-logo {
	filter: brightness(0) saturate(100%) !important;
}
