/* Reusable native block styles shared by the frontend and editor canvas. */

/* A text-link button stays a text link even under shared CTA button sizing. */
body .wp-block-buttons .wp-block-button.is-style-text-link .wp-block-button__link {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	box-sizing: border-box;
	color: inherit;
	display: inline-flex;
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	height: auto;
	line-height: inherit;
	min-height: 0;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 160ms ease, text-decoration-color 160ms ease;
	width: auto;
}

body .wp-block-buttons .wp-block-button.is-style-text-link .wp-block-button__link:is(:hover, :focus-visible) {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: inherit;
	text-decoration-thickness: 2px;
}

.wp-block-button.is-style-text-link .wp-block-button__link::after {
	background-color: currentColor;
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	height: 0.75em;
	margin-inline-start: 0.55em;
	mask-image: url("../icons/fontawesome/arrow-right-long.svg");
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	-webkit-mask-image: url("../icons/fontawesome/arrow-right-long.svg");
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	width: 1.1em;
}

/* The group style keeps its saved name while using Aura's olive/cloud palette. */
.wp-block-group.is-style-cta-block-row {
	align-items: center;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: clamp(16px, 2vw, 28px);
	padding: clamp(24px, 3vw, 40px);
	text-align: left;
}

.wp-block-group.is-style-cta-block-row:not(.has-background) {
	background-color: var(--wp--preset--color--olive-dark);
}

.wp-block-group.is-style-cta-block-row:not(.has-background):not(.has-text-color) {
	color: var(--wp--preset--color--cloud);
}

@media (max-width: 781px) {
	.wp-block-group.is-style-cta-block-row {
		align-items: flex-start;
		flex-direction: column;
		text-align: left;
	}
}

/* The icon row is a real spaced row when it contains an icon and text. */
.wp-block-group.is-style-icon-row {
	column-gap: clamp(12px, 1.5vw, 20px);
}

/* Native Image radius styles remain defaults that block controls can override. */
.wp-block-image.is-style-rounded-1,
.wp-block-image.is-style-rounded-1 img,
:is(.aura-homepage, .aura-about-page, .aura-team-page, .aura-treatments-page, .aura-movement-page) .wp-block-image.is-style-rounded-1 img {
	border-bottom-left-radius: 90px;
	border-bottom-right-radius: 12px;
	border-top-left-radius: 12px;
	border-top-right-radius: 90px;
}

.wp-block-image.is-style-rounded-2,
.wp-block-image.is-style-rounded-2 img,
:is(.aura-homepage, .aura-about-page, .aura-team-page, .aura-treatments-page, .aura-movement-page) .wp-block-image.is-style-rounded-2 img {
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 90px;
	border-top-left-radius: 90px;
	border-top-right-radius: 12px;
}

/* Baserio ships as a regular font; keep the style aligned with that file. */
.wp-block-heading.is-style-aura-display,
.wp-block-paragraph.is-style-aura-display,
p.is-style-aura-display,
:is(.aura-homepage, .aura-about-page, .aura-team-page, .aura-treatments-page, .aura-movement-page) :is(p, .wp-block-paragraph).is-style-aura-display,
:is(.aura-homepage, .aura-about-page, .aura-team-page, .aura-treatments-page, .aura-movement-page) .wp-block-heading.is-style-aura-display {
	font-family: var(--wp--preset--font-family--baserio, serif);
	font-size: clamp(32px, 2.9vw, 42px);
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.18;
	text-transform: uppercase;
}

/* An actual SVG mask gives the List style a visible, editable checkmark treatment. */
.wp-block-list.is-style-checkmark-list {
	list-style: none;
	padding-inline-start: 0;
}

.wp-block-list.is-style-checkmark-list > li {
	list-style: none;
	padding-inline-start: 1.55em;
	position: relative;
}

.wp-block-list.is-style-checkmark-list > li::before {
	background-color: currentColor;
	content: "";
	height: 0.95em;
	left: 0;
	mask-image: url("../icons/fontawesome/check.svg");
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	position: absolute;
	top: 0.28em;
	-webkit-mask-image: url("../icons/fontawesome/check.svg");
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	width: 0.95em;
}

/* Reusable legacy heading glyphs use real Font Awesome SVG masks in Aura too. */
.wp-block-heading.is-style-jfact-icon-bullhorn::before,
.wp-block-heading.is-style-jfact-icon-shield::before,
.wp-block-heading.is-style-jfact-icon-house::before,
.wp-block-heading.is-style-jfact-icon-graduation-cap::before,
.wp-block-heading.is-style-jfact-icon-book-open::before {
	background-color: currentColor;
	content: "";
	display: block;
	height: 32px;
	margin: 0 0 18px;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	width: 32px;
}

.wp-block-heading.is-style-jfact-icon-bullhorn::before {
	mask-image: url("../icons/fontawesome/bullhorn.svg");
	-webkit-mask-image: url("../icons/fontawesome/bullhorn.svg");
}

.wp-block-heading.is-style-jfact-icon-shield::before {
	mask-image: url("../icons/fontawesome/shield.svg");
	-webkit-mask-image: url("../icons/fontawesome/shield.svg");
}

.wp-block-heading.is-style-jfact-icon-house::before {
	mask-image: url("../icons/fontawesome/house.svg");
	-webkit-mask-image: url("../icons/fontawesome/house.svg");
}

.wp-block-heading.is-style-jfact-icon-graduation-cap::before {
	mask-image: url("../icons/fontawesome/graduation-cap.svg");
	-webkit-mask-image: url("../icons/fontawesome/graduation-cap.svg");
}

.wp-block-heading.is-style-jfact-icon-book-open::before {
	mask-image: url("../icons/fontawesome/book-open.svg");
	-webkit-mask-image: url("../icons/fontawesome/book-open.svg");
}
.wp-block-button.is-style-text-link { color:inherit; text-align:left; }

/* A wrapped download row keeps filenames left aligned on phones. */
@media (max-width:600px) { .wp-block-file.is-style-full-width { justify-content:flex-start; text-align:left; } }

/* The image owns its curve; its frame must not clip an editable radius. */
.wp-block-image:is(.is-style-rounded-1, .is-style-rounded-2),
:is(.aura-homepage, .aura-about-page, .aura-team-page, .aura-treatments-page, .aura-movement-page) .wp-block-image:is(.is-style-rounded-1, .is-style-rounded-2),
:is(.aura-homepage, .aura-about-page, .aura-team-page, .aura-treatments-page, .aura-movement-page) .wp-block-image:has(> img[style*='-radius']) { overflow:visible; }

/* Explicit reusable typography styles take precedence over section defaults. */
:is(.aura-homepage, .aura-about-page, .aura-team-page, .aura-treatments-page, .aura-movement-page) .is-style-eyebrow { color:var(--ct-gold); font-size:15px; font-weight:700; letter-spacing:.08em; line-height:1.4; text-transform:uppercase; }
@media (max-width:600px) { .editor-styles-wrapper .wp-block-file.is-style-full-width .wp-block-file__content-wrapper { justify-content:flex-start; text-align:left; } }

/* FAQ topic links visibly respond without changing their size or text-link style. */
body .aura-faq-page .wp-block-buttons .wp-block-button.is-style-text-link .wp-block-button__link {
    transition: color 160ms ease, text-decoration-color 160ms ease;
}
body .aura-faq-page .wp-block-buttons .wp-block-button.is-style-text-link .wp-block-button__link::after {
    transform: translateX(0);
    transition: transform 160ms ease, background-color 160ms ease;
}
body .aura-faq-page .wp-block-buttons .wp-block-button.is-style-text-link .wp-block-button__link:is(:hover, :focus-visible) {
    color: var(--wp--preset--color--pine);
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px !important;
}
body .aura-faq-page .wp-block-buttons .wp-block-button.is-style-text-link .wp-block-button__link:is(:hover, :focus-visible)::after {
    transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
    body .aura-faq-page .wp-block-buttons .wp-block-button.is-style-text-link .wp-block-button__link,
    body .aura-faq-page .wp-block-buttons .wp-block-button.is-style-text-link .wp-block-button__link::after {
        transition: none;
    }
    body .aura-faq-page .wp-block-buttons .wp-block-button.is-style-text-link .wp-block-button__link:is(:hover, :focus-visible)::after {
        transform: none;
    }
}

/* Telephone actions retain their native button style and a decorative, color-matched icon. */
body .wp-block-button.aura-phone-link .wp-block-button__link {
	align-items: center;
	display: inline-flex;
	gap: 10px;
}
body .wp-block-button.aura-phone-link .wp-block-button__link::before {
	background-color: currentColor;
	content: "";
	display: inline-block;
	flex: 0 0 1em;
	height: 1em;
	mask: url("../icons/fontawesome/phone.svg") center / contain no-repeat;
	-webkit-mask: url("../icons/fontawesome/phone.svg") center / contain no-repeat;
	pointer-events: none;
	width: 1em;
}
body .wp-block-button.aura-phone-link .wp-block-button__link::after { display: none; }

/* Shared hero geometry follows the Treatment Space reference. */
:is(.aura-homepage,.aura-about-page,.aura-team-page,.aura-treatments-page,.aura-movement-page) .aura-hero-section {
	padding-inline: 24px;
}
:is(.aura-homepage,.aura-about-page,.aura-team-page,.aura-treatments-page,.aura-movement-page) .wp-block-columns.aura-hero-layout {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: clamp(28px,4vw,48px) clamp(28px,4vw,60px);
	margin-inline: auto;
	max-width: 1440px;
	width: 100%;
}
:is(.aura-homepage,.aura-about-page,.aura-team-page,.aura-treatments-page,.aura-movement-page) .aura-hero-layout > .wp-block-column {
	flex: 1 1 0;
	max-width: none;
	min-width: 0;
	width: auto;
}
:is(.aura-homepage,.aura-about-page,.aura-team-page,.aura-treatments-page,.aura-movement-page) .aura-hero-frame {
	margin: 0;
	max-width: none;
	width: 100%;
}
:is(.aura-homepage,.aura-about-page,.aura-team-page,.aura-treatments-page,.aura-movement-page) .aura-hero-frame img {
	aspect-ratio: 4/3;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}
@media (max-width:1100px) {
	:is(.aura-homepage,.aura-about-page,.aura-team-page,.aura-treatments-page,.aura-movement-page) .aura-hero-section { padding-inline: 28px; }
}
@media (max-width:850px) {
	:is(.aura-homepage,.aura-about-page,.aura-team-page,.aura-treatments-page,.aura-movement-page) .aura-hero-section { padding-inline: 24px; }
	:is(.aura-homepage,.aura-about-page,.aura-team-page,.aura-treatments-page,.aura-movement-page) .wp-block-columns.aura-hero-layout {
		flex-direction: column;
		row-gap: 30px;
	}
	:is(.aura-homepage,.aura-about-page,.aura-team-page,.aura-treatments-page,.aura-movement-page) .aura-hero-layout > .wp-block-column {
		align-self: stretch;
		flex-basis: auto !important;
		width: 100%;
	}
}
@media (max-width:600px) {
	:is(.aura-homepage,.aura-about-page,.aura-team-page,.aura-treatments-page,.aura-movement-page) .aura-hero-section { padding-inline: 20px; }
	:is(.aura-homepage,.aura-about-page,.aura-team-page,.aura-treatments-page,.aura-movement-page) .wp-block-columns.aura-hero-layout { row-gap: 26px; }
}
