/*
 * OriEve Foundation v1.0.8
 * Astra remains the shell owner. This file provides controlled tokens and
 * presentation only; it does not create or replace header, menu or footer markup.
 */

.orieve-foundation-enabled,
.editor-styles-wrapper {
	--orieve-color-ink: #0c1016;
	--orieve-color-pearl: #fbf8f2;
	--orieve-color-gold: #c9a24d;
	--orieve-color-deep-gold: #8b661b;
	--orieve-color-deep-gold-hover: #6f4d10;
	--orieve-color-soft-gold: #e3c98a;
	--orieve-color-stone: #6c6a64;
	--orieve-color-white: #ffffff;
	--orieve-space-1: 0.25rem;
	--orieve-space-2: 0.5rem;
	--orieve-space-3: 0.75rem;
	--orieve-space-4: 1rem;
	--orieve-space-6: 1.5rem;
	--orieve-space-8: 2rem;
	--orieve-space-12: 3rem;
	--orieve-space-16: 4rem;
	--orieve-space-24: 6rem;
	--orieve-content-width: 75rem;
	--orieve-reading-width: 72ch;
	--orieve-focus-ring: 3px solid var(--orieve-color-deep-gold);
	--orieve-font-display: Georgia, "Times New Roman", serif;
	--orieve-font-body: Georgia, "Times New Roman", serif;
	--orieve-font-ui: Arial, Helvetica, sans-serif;
	color: var(--orieve-color-ink);
	font-family: var(--orieve-font-body);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	line-height: 1.65;
}

/*
 * DEF-R01-003: Astra/Gutenberg alignfull math uses 100vw, which includes the
 * desktop scrollbar. JavaScript supplies the actual document client width so
 * full-width blocks meet the viewport edge without horizontal overflow.
 */
.orieve-foundation-enabled .site-content .entry-content > .alignfull {
	margin-left: calc(50% - (var(--orieve-safe-viewport-width, 100vw) / 2));
	margin-right: calc(50% - (var(--orieve-safe-viewport-width, 100vw) / 2));
	max-width: var(--orieve-safe-viewport-width, 100vw);
	width: var(--orieve-safe-viewport-width, 100vw);
}

body.page-id-82.ast-plain-container.ast-no-sidebar #primary {
	margin-top: 0;
}

body.page-id-112.ast-plain-container.ast-no-sidebar #primary {
	margin-top: 0;
}

body.page-id-100.ast-plain-container.ast-no-sidebar #primary {
	margin-top: 0;
}

body.page-id-112 #wpforms-97 :where(input:not([type="hidden"]):not([aria-hidden="true"]), textarea) {
	max-width: 100%;
	width: 100%;
}

body.page-id-112 #wpforms-97 .wpforms-submit {
	background: var(--orieve-color-deep-gold);
	border: 2px solid var(--orieve-color-deep-gold);
	border-radius: 0;
	color: var(--orieve-color-white);
	font-family: var(--orieve-font-ui);
	font-weight: 700;
	min-height: 2.75rem;
	padding: 0.75rem 1.25rem;
}

body.page-id-112 #wpforms-97 .wpforms-submit:hover {
	background: var(--orieve-color-deep-gold-hover);
	border-color: var(--orieve-color-deep-gold-hover);
	color: var(--orieve-color-white);
}

.orieve-foundation-enabled *,
.orieve-foundation-enabled *::before,
.orieve-foundation-enabled *::after,
.editor-styles-wrapper *,
.editor-styles-wrapper *::before,
.editor-styles-wrapper *::after {
	box-sizing: border-box;
}

/* Astra-owned shell: presentation only. */
.orieve-foundation-enabled :where(.site-header, .ast-primary-header-bar, .ast-mobile-header-wrap .ast-primary-header-bar) {
	background: var(--orieve-color-pearl);
	color: var(--orieve-color-ink);
}

.orieve-foundation-enabled :where(.ast-primary-header-bar, .main-header-bar) {
	border-bottom: 1px solid color-mix(in srgb, var(--orieve-color-deep-gold) 45%, transparent);
}

.orieve-foundation-enabled :where(.site-title, .site-title a) {
	color: var(--orieve-color-ink);
	font-family: var(--orieve-font-display);
	font-weight: 600;
	letter-spacing: -0.01em;
}

.orieve-foundation-enabled :where(.main-header-menu > .menu-item > .menu-link, .ast-builder-menu-1 .menu-item > .menu-link, .ast-header-button-1 .ast-custom-button, .ast-header-button-1 .menu-link, .menu-toggle, .ast-mobile-menu-trigger-minimal) {
	align-items: center;
	color: var(--orieve-color-ink);
	display: inline-flex;
	font-family: var(--orieve-font-ui);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	min-height: 2.75rem;
	text-decoration-thickness: 0.12em;
	text-underline-offset: 0.25em;
}

/*
 * DEF-R02-001: Astra's generated header colour selectors are more specific
 * than the low-specificity foundation defaults above. Keep Astra as the shell
 * owner while ensuring its desktop links and mobile toggle retain the approved
 * Ink-on-Pearl contrast wherever the Foundation is active.
 */
.orieve-foundation-enabled .ast-builder-menu-1 .menu-item > .menu-link,
.orieve-foundation-enabled [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal {
	color: var(--orieve-color-ink);
}

.orieve-foundation-enabled :where(.main-header-menu > .menu-item > .menu-link, .ast-builder-menu-1 .menu-item > .menu-link):hover {
	text-decoration: underline;
	text-decoration-color: var(--orieve-color-deep-gold);
}

.orieve-foundation-enabled :where(.current-menu-item > .menu-link, .current_page_item > .menu-link, .menu-link[aria-current="page"]) {
	box-shadow: inset 0 -0.18rem 0 var(--orieve-color-deep-gold);
}

.orieve-foundation-enabled :where(.ast-header-button-1 .ast-custom-button, .ast-header-button-1 .menu-link) {
	background: var(--orieve-color-deep-gold);
	border: 2px solid var(--orieve-color-deep-gold);
	color: var(--orieve-color-white);
	justify-content: center;
	min-width: 2.75rem;
	padding: 0.65rem 1.1rem;
}

.orieve-foundation-enabled :where(.ast-header-button-1 .ast-custom-button, .ast-header-button-1 .menu-link):hover {
	background: var(--orieve-color-deep-gold-hover);
	border-color: var(--orieve-color-deep-gold-hover);
	color: var(--orieve-color-white);
}

.orieve-foundation-enabled :where(.ast-mobile-popup-drawer, .ast-mobile-popup-inner, .ast-mobile-header-content) {
	background: var(--orieve-color-pearl);
	color: var(--orieve-color-ink);
}

.orieve-foundation-enabled :where(.site-footer, .site-primary-footer-wrap, .site-below-footer-wrap) {
	background: var(--orieve-color-ink);
	color: var(--orieve-color-pearl);
}

.orieve-foundation-enabled :where(.site-footer a, .site-footer p, .site-footer li, .site-footer .widget-title) {
	color: var(--orieve-color-pearl);
}

.orieve-foundation-enabled .site-footer a {
	text-decoration-color: var(--orieve-color-soft-gold);
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.22em;
}

.orieve-foundation-enabled .site-footer a:hover {
	text-decoration-thickness: 0.16em;
}

.orieve-foundation-enabled #colophon.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.orieve-foundation-enabled #colophon.site-footer > :where(.orieve-r03-footer-navigation, .orieve-foundation-footer-navigation) {
	align-items: center;
	display: flex;
	flex: 0 1 auto;
	justify-content: center;
	padding: var(--orieve-space-2) var(--orieve-space-3);
	text-align: center;
	width: auto;
}

.orieve-foundation-enabled #colophon .orieve-foundation-footer-menu {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--orieve-space-6);
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.orieve-foundation-enabled #colophon .orieve-foundation-footer-menu > li {
	list-style: none;
	margin: 0;
}

.orieve-foundation-enabled #colophon :where(.orieve-r03-footer-navigation, .orieve-foundation-footer-navigation) a {
	align-items: center;
	display: inline-flex;
	min-height: 2.75rem;
}

.orieve-foundation-enabled #colophon.site-footer > .site-below-footer-wrap {
	background: var(--orieve-color-ink);
	color: var(--orieve-color-pearl);
	flex: 1 0 100%;
}

.orieve-foundation-enabled #colophon :where(.ast-footer-copyright, .ast-footer-copyright p) {
	color: var(--orieve-color-pearl);
}

@media (max-width: 47.99rem) {
	.orieve-foundation-enabled #colophon.site-footer > :where(.orieve-r03-footer-navigation, .orieve-foundation-footer-navigation) {
		flex-basis: 100%;
	}

	.orieve-foundation-enabled #colophon .orieve-foundation-footer-menu {
		flex-direction: column;
		gap: 0;
	}
}

/* Shared content foundation. */
.orieve-foundation-enabled :where(.site-content h1, .site-content h2, .site-content h3),
.editor-styles-wrapper :where(h1, h2, h3) {
	color: var(--orieve-color-ink);
	font-family: var(--orieve-font-display);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.08;
	text-wrap: balance;
}

.orieve-foundation-enabled .site-content h1,
.editor-styles-wrapper h1 {
	font-size: clamp(2.25rem, 1.6rem + 3vw, 4.75rem);
}

.orieve-foundation-enabled .site-content h2,
.editor-styles-wrapper h2 {
	font-size: clamp(1.75rem, 1.35rem + 1.7vw, 3rem);
}

.orieve-foundation-enabled .site-content h3,
.editor-styles-wrapper h3 {
	font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.75rem);
}

.orieve-foundation-enabled :where(.site-content p, .site-content li),
.editor-styles-wrapper :where(p, li) {
	max-width: var(--orieve-reading-width);
}

.orieve-foundation-enabled .site-content a:not(.wp-block-button__link),
.editor-styles-wrapper a:not(.wp-block-button__link) {
	color: currentColor;
	text-decoration-color: var(--orieve-color-deep-gold);
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.2em;
}

.orieve-foundation-enabled :where(a, button, input, select, textarea, summary):focus-visible,
.editor-styles-wrapper :where(a, button, input, select, textarea, summary):focus-visible {
	outline: var(--orieve-focus-ring);
	outline-offset: 3px;
}

.orieve-foundation-enabled :where(.orieve-container, .is-style-orieve-container),
.editor-styles-wrapper :where(.orieve-container, .is-style-orieve-container) {
	margin-inline: auto;
	max-width: min(calc(100% - 2rem), var(--orieve-content-width));
	width: 100%;
}

.orieve-foundation-enabled :where(.is-style-orieve-section-pearl, .is-style-orieve-section-ink),
.editor-styles-wrapper :where(.is-style-orieve-section-pearl, .is-style-orieve-section-ink) {
	padding-block: clamp(var(--orieve-space-12), 8vw, var(--orieve-space-24));
}

.orieve-foundation-enabled .is-style-orieve-section-pearl,
.editor-styles-wrapper .is-style-orieve-section-pearl {
	background: var(--orieve-color-pearl);
	color: var(--orieve-color-ink);
}

.orieve-foundation-enabled .is-style-orieve-section-ink,
.editor-styles-wrapper .is-style-orieve-section-ink {
	background: var(--orieve-color-ink);
	color: var(--orieve-color-pearl);
}

.orieve-foundation-enabled .is-style-orieve-section-ink :where(h1, h2, h3, p, li, a),
.editor-styles-wrapper .is-style-orieve-section-ink :where(h1, h2, h3, p, li, a) {
	color: var(--orieve-color-pearl);
}

.orieve-foundation-enabled .is-style-orieve-lead,
.editor-styles-wrapper .is-style-orieve-lead {
	font-size: clamp(1.1rem, 1rem + 0.55vw, 1.4rem);
	line-height: 1.55;
	max-width: 42ch;
}

.orieve-foundation-enabled .is-style-orieve-eyebrow,
.editor-styles-wrapper .is-style-orieve-eyebrow {
	color: var(--orieve-color-deep-gold);
	font-family: var(--orieve-font-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.45;
	text-transform: uppercase;
}

.orieve-foundation-enabled .is-style-orieve-section-ink .is-style-orieve-eyebrow,
.editor-styles-wrapper .is-style-orieve-section-ink .is-style-orieve-eyebrow {
	color: var(--orieve-color-soft-gold);
}

.orieve-foundation-enabled .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
	align-items: center;
	border: 2px solid transparent;
	border-radius: 0;
	display: inline-flex;
	font-family: var(--orieve-font-ui);
	font-size: 0.95rem;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.03em;
	min-height: 2.75rem;
	min-width: 2.75rem;
	padding: 0.75rem 1.25rem;
	text-decoration: none;
}

.orieve-foundation-enabled .wp-block-button.is-style-orieve-primary .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-orieve-primary .wp-block-button__link {
	background: var(--orieve-color-deep-gold);
	border-color: var(--orieve-color-deep-gold);
	color: var(--orieve-color-white);
}

.orieve-foundation-enabled .wp-block-button.is-style-orieve-primary .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button.is-style-orieve-primary .wp-block-button__link:hover {
	background: var(--orieve-color-deep-gold-hover);
	border-color: var(--orieve-color-deep-gold-hover);
}

.orieve-foundation-enabled .wp-block-button.is-style-orieve-secondary .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-orieve-secondary .wp-block-button__link {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

.orieve-foundation-enabled .wp-block-button.is-style-orieve-secondary .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button.is-style-orieve-secondary .wp-block-button__link:hover {
	background: color-mix(in srgb, currentColor 10%, transparent);
}

.orieve-foundation-enabled .wp-block-separator.is-style-orieve-rule,
.editor-styles-wrapper .wp-block-separator.is-style-orieve-rule {
	border: 0;
	border-top: 1px solid var(--orieve-color-soft-gold);
	max-width: 100%;
}

@media (max-width: 47.99rem) {
	.orieve-foundation-enabled :where(.wp-block-buttons, .wp-block-button, .wp-block-button__link) {
		max-width: 100%;
	}

	.orieve-foundation-enabled .wp-block-buttons.is-layout-flex {
		align-items: stretch;
	}

	.orieve-foundation-enabled .wp-block-buttons.is-layout-flex > .wp-block-button {
		flex: 1 1 100%;
	}

	.orieve-foundation-enabled .wp-block-buttons.is-layout-flex > .wp-block-button > .wp-block-button__link {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.orieve-foundation-enabled *,
	.orieve-foundation-enabled *::before,
	.orieve-foundation-enabled *::after,
	.editor-styles-wrapper *,
	.editor-styles-wrapper *::before,
	.editor-styles-wrapper *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
	}
}

/*
 * FMA-P9-061: compact the Astra-owned desktop shell without changing its
 * markup, menu source, breakpoints or mobile behaviour. The existing crop of
 * the approved Logo_Master remains the header asset; these bounds prevent it
 * from creating an oversized header and preserve its full horizontal mark.
 */
@media (min-width: 64rem) {
	.orieve-foundation-enabled .ast-primary-header-bar .site-primary-header-wrap {
		column-gap: clamp(1rem, 2vw, 2rem);
		min-height: 4.75rem;
		padding-block: 0.5rem;
	}

	.orieve-foundation-enabled .site-branding .custom-logo-link {
		align-items: center;
		display: flex;
		max-width: 10rem;
	}

	.orieve-foundation-enabled .site-branding .custom-logo {
		display: block;
		height: auto;
		max-height: 3.4rem;
		max-width: 10rem;
		width: 100%;
	}

	.orieve-foundation-enabled .site-header-primary-section-right {
		margin-left: auto;
		min-width: 0;
	}

	.orieve-foundation-enabled .ast-builder-menu-1 .main-header-menu {
		align-items: center;
		flex-wrap: nowrap;
		gap: 0.1rem;
	}

	.orieve-foundation-enabled .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
		padding-inline: clamp(0.45rem, 0.7vw, 0.8rem);
		white-space: nowrap;
	}

	.orieve-foundation-enabled .ast-builder-menu-1 .main-header-menu > .menu-item-19 > .menu-link {
		background: var(--orieve-color-deep-gold);
		border: 2px solid var(--orieve-color-deep-gold);
		box-shadow: none;
		color: var(--orieve-color-white);
		justify-content: center;
		min-height: 2.75rem;
		padding-inline: 1rem;
		text-decoration: none;
	}

	.orieve-foundation-enabled .ast-builder-menu-1 .main-header-menu > .menu-item-19 > .menu-link:hover {
		background: var(--orieve-color-deep-gold-hover);
		border-color: var(--orieve-color-deep-gold-hover);
		color: var(--orieve-color-white);
	}
}

/* FMA-P9-061: Home-only editorial hero proportions. */
@media (min-width: 64rem) {
	.orieve-foundation-enabled.home .orieve-r02-hero {
		min-height: min(44rem, calc(100svh - 5.5rem));
		padding-block: clamp(3rem, 5vw, 5rem) !important;
	}

	.orieve-foundation-enabled.home .orieve-r02-hero-grid {
		gap: clamp(1.5rem, 3vw, 3rem);
	}

	.orieve-foundation-enabled.home .orieve-r02-hero-grid > .wp-block-column:first-child {
		flex-basis: 48% !important;
	}

	.orieve-foundation-enabled.home .orieve-r02-hero-grid > .wp-block-column:last-child {
		flex-basis: 52% !important;
	}

	.orieve-foundation-enabled.home .orieve-r02-hero h1 {
		font-size: clamp(2.5rem, 1.4rem + 2.7vw, 4rem);
		max-width: 13ch;
	}

	.orieve-foundation-enabled.home .orieve-r02-media-hero img {
		aspect-ratio: 5 / 4;
		min-height: 26rem;
	}
}
