﻿/* Theme deferred styles — loaded async (enhancement / below-fold). */
/* Extracted from style.css for first-paint performance. */

/* Typography scroll reveal (theme-owned; see assets/js/type-reveal.js) */

@keyframes op-type-enter {
	from {
		opacity: 0;
		transform: translate3d(0, var(--op-type-enter-shift, 0.75rem), 0);
	}

	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

html.op-type-reveal-enabled
	.site-content
	:is(h1, h2, h3, h4, h5, h6, p).op-type-reveal-pending:not(.is-op-type-revealed):not(
		.is-op-type-revealed--instant
	) {
	opacity: 0;
	transform: translate3d(0, var(--op-type-enter-shift, 0.75rem), 0);
}

html.op-type-reveal-enabled
	.site-content
	:is(h1, h2).op-type-reveal-pending:not(.is-op-type-revealed):not(
		.is-op-type-revealed--instant
	) {
	--op-type-enter-shift: 1rem;
}

html.op-type-reveal-enabled
	.site-content
	:is(h3, h4).op-type-reveal-pending:not(.is-op-type-revealed):not(
		.is-op-type-revealed--instant
	) {
	--op-type-enter-shift: 0.75rem;
}

html.op-type-reveal-enabled
	.site-content
	:is(h5, h6).op-type-reveal-pending:not(.is-op-type-revealed):not(
		.is-op-type-revealed--instant
	) {
	--op-type-enter-shift: 0.5rem;
}

html.op-type-reveal-enabled
	.site-content
	p.op-type-reveal-pending:not(.is-op-type-revealed):not(.is-op-type-revealed--instant) {
	--op-type-enter-shift: 0.625rem;
}

html.op-type-reveal-enabled
	.site-content
	:is(h1, h2).op-type-reveal-pending.is-op-type-revealed:not(.is-op-type-revealed--instant) {
	animation: op-type-enter 0.56s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: var(--op-type-stagger, 0ms);
}

html.op-type-reveal-enabled
	.site-content
	:is(h3, h4).op-type-reveal-pending.is-op-type-revealed:not(.is-op-type-revealed--instant) {
	animation: op-type-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: var(--op-type-stagger, 0ms);
}

html.op-type-reveal-enabled
	.site-content
	:is(h5, h6).op-type-reveal-pending.is-op-type-revealed:not(.is-op-type-revealed--instant) {
	animation: op-type-enter 0.42s var(--op-ease-smooth) both;
	animation-delay: var(--op-type-stagger, 0ms);
}

html.op-type-reveal-enabled
	.site-content
	p.op-type-reveal-pending.is-op-type-revealed:not(.is-op-type-revealed--instant) {
	animation: op-type-enter 0.48s var(--op-ease-smooth) both;
	animation-delay: var(--op-type-stagger, 0ms);
}

html.op-type-reveal-enabled
	.site-content
	:is(h1, h2, h3, h4, h5, h6, p).op-type-reveal-pending.is-op-type-revealed--instant {
	opacity: 1;
	transform: none;
	animation: none;
}

@media (prefers-reduced-motion: reduce) {
	html.op-type-reveal-enabled
		.site-content
		:is(h1, h2, h3, h4, h5, h6, p).op-type-reveal-pending {
		opacity: 1;
		transform: none;
		animation: none !important;
	}
}

/* H1/H2 cursor-proximity letters (see assets/js/text-cursor-proximity.js) */

html.op-text-cursor-proximity-enabled
	:is(.site-content, .editor-styles-wrapper)
	:is(h1, h2).op-text-cursor-proximity
	:is(
		.op-text-cursor-proximity__word,
		.op-text-cursor-proximity__letter,
		.op-text-cursor-proximity__space
	) {
	display: inline-block;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-transform: inherit;
}

html.op-text-cursor-proximity-enabled
	:is(.site-content, .editor-styles-wrapper)
	.op-text-cursor-proximity__word {
	white-space: nowrap;
}

html.op-text-cursor-proximity-enabled
	:is(.site-content, .editor-styles-wrapper)
	.op-text-cursor-proximity__letter {
	transform-origin: center center;
	will-change: transform, color;
}

@media (max-width: 767px) {
	/*
	 * nowrap keeps whole words on one line (desktop). On narrow viewports long
	 * words overflow and get clipped by overflow-x on html — allow wrapping.
	 */
	html.op-text-cursor-proximity-enabled
		:is(.site-content, .editor-styles-wrapper)
		:is(h1, h2).op-text-cursor-proximity {
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	html.op-text-cursor-proximity-enabled
		:is(.site-content, .editor-styles-wrapper)
		.op-text-cursor-proximity__word {
		display: inline;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.op-text-cursor-proximity-enabled
		:is(.site-content, .editor-styles-wrapper)
		.op-text-cursor-proximity__letter {
		transform: none !important;
		will-change: auto;
	}
}
/* ===== Core Table block (wp:block-table) — data / policy tables ===== */
:is(.site-content, .editor-styles-wrapper) .wp-block-table {
	--op-table-divider: var(--charcoal-100);
	--op-table-frame: var(--color-mint, var(--wp--preset--color--mint));
	width: 100%;
	max-width: 100%;
	margin-block: var(--op-space-8);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

:is(.site-content, .editor-styles-wrapper)
	.wp-block-table
	:is(table, .wp-block-table__scroll-container table) {
	width: 100%;
	min-width: 0;
	border-collapse: collapse;
	border-spacing: 0;
	border-top: 1px solid var(--op-table-frame);
	border-bottom: 1px solid var(--op-table-frame);
	border-left: none;
	border-right: none;
	background: var(--op-card-bg);
}

:is(.site-content, .editor-styles-wrapper)
	.wp-block-table
	:is(th, td) {
	padding: var(--op-space-4) var(--op-space-5);
	border-top: none;
	border-left: none;
	border-right: none;
	border-bottom: 1px solid var(--op-table-divider);
	text-align: start;
	vertical-align: top;
	background: var(--op-card-bg);
}

:is(.site-content, .editor-styles-wrapper) .wp-block-table th {
	font-weight: var(--op-fw-normal);
}

:is(.site-content, .editor-styles-wrapper) .wp-block-table thead {
	border-bottom: 1px solid var(--op-table-frame);
}

:is(.site-content, .editor-styles-wrapper) .wp-block-table thead :is(th, td) {
	border-bottom: none;
}

:is(.site-content, .editor-styles-wrapper)
	.wp-block-table
	:is(thead, tbody)
	> tr:last-child
	> :is(th, td) {
	border-bottom: none;
}

:is(.site-content, .editor-styles-wrapper)
	.wp-block-table
	:is(th, td)
	a {
	color: var(--color-mint, var(--wp--preset--color--mint));
	text-decoration: underline;
	text-underline-offset: 0.1em;
}

:is(.site-content, .editor-styles-wrapper)
	.wp-block-table
	:is(th, td)
	a:hover,
:is(.site-content, .editor-styles-wrapper)
	.wp-block-table
	:is(th, td)
	a:focus-visible {
	opacity: 0.85;
}

:is(.site-content, .editor-styles-wrapper)
	.wp-block-table
	:is(th, td)
	p {
	margin: 0;
	padding-bottom: 0;
}

:is(.site-content, .editor-styles-wrapper)
	.wp-block-table
	:is(th, td)
	p
	+ p {
	margin-top: var(--op-space-2);
}

:is(.site-content, .editor-styles-wrapper) .wp-block-table figcaption {
	margin-top: var(--op-space-3);
	font-size: var(--op-text-sm);
	line-height: var(--op-leading-normal);
	color: var(--op-color-text-muted);
	text-align: start;
}

@media (max-width: 767px) {
	:is(.site-content, .editor-styles-wrapper)
		.wp-block-table
		:is(th, td) {
		padding: var(--op-space-3) var(--op-space-4);
	}
}

/* Reusable inline alert styles â€“ available to any page element */
.onepoint-alert {
	padding: var(--op-space-4);
	border-radius: var(--op-radius-lg);
	margin-bottom: var(--op-space-4);
	font-size: var(--op-text-base);
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: var(--op-space-3);
}

.onepoint-alert--success {
	background: color-mix(in srgb, var(--op-color-success) 10%, transparent);
	color: var(--op-color-success);
	border: 1px solid color-mix(in srgb, var(--op-color-success) 30%, transparent);
}

.onepoint-alert--error {
	background: color-mix(in srgb, var(--op-color-error) 10%, transparent);
	color: var(--op-color-error);
	border: 1px solid color-mix(in srgb, var(--op-color-error) 30%, transparent);
}

.onepoint-alert__close {
	margin-left: auto;
	background: transparent;
	border: none;
	color: inherit;
	cursor: pointer;
	font-size: var(--op-text-sm);
	line-height: var(--op-leading-none);
	padding: 0;
}

.onepoint-text-small-muted {
	margin-top: var(--op-space-4);
	font-size: var(--op-text-sm);
	line-height: var(--op-leading-normal);
	color: var(--op-color-text-muted);
}

.onepoint-text-small-success {
	margin-top: var(--op-space-4);
	font-size: var(--op-text-base);
	line-height: var(--op-leading-normal);
	color: var(--op-color-success);
}
/* Core Quote — Testimonial style (quote text + decorative SVG only). */
.op-featured-quote {
	box-sizing: border-box;
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding-inline: var(--op-space-6);
	color: var(--op-color-text);
	border: none;
}

.has-charcoal-background-color .op-featured-quote,
.editor-styles-wrapper .has-charcoal-background-color .op-featured-quote {
	color: var(--vanilla-500, var(--wp--preset--color--vanilla, #fafffe));
}

.op-featured-quote__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--op-space-20);
	width: 100%;
	min-width: 0;
}

.op-featured-quote__visual {
	position: relative;
	flex-shrink: 0;
	width: 11.25rem;
	min-height: 8.5rem;
	margin-inline: auto;
}

.op-featured-quote__quote-mark {
	position: absolute;
	top: 0;
	left: 0;
	width: 8.5rem;
	height: 8.5rem;
	color: var(--op-color-accent);
	pointer-events: none;
}

.op-featured-quote__quote-mark svg {
	display: block;
	width: 100%;
	height: 100%;
}

.op-featured-quote__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	min-width: 0;
}

.op-featured-quote__quote {
	margin: 0;
	padding: 0;
	border: none;
}

.op-featured-quote__quote p {
	margin: 0;
}

.op-featured-quote__quote p + p {
	margin-top: var(--op-space-4);
}

@media (min-width: 768px) {
	.op-featured-quote {
		padding-inline: var(--op-space-12);
	}

	.op-featured-quote__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.op-featured-quote__visual {
		width: 10.869375rem;
		min-height: 10.8358125rem;
		margin-inline: 0;
	}

	.op-featured-quote__quote-mark {
		width: 10.869375rem;
		height: 10.8358125rem;
	}
}
