/* PPF Squad Blocks — Performance Center, WordPress addendum.

   pp-performance-center.css is a byte-for-byte port of the mockup's sheet so
   the two can be diffed on the next revision. Everything WordPress needs that
   the standalone page did not lives here instead, scoped to
   `.page-performance-center` so no squad page is touched. */

/* ——— Type scale ———
   The plugin's pp-mockup.css is the WordPress build and sets the body at 18px;
   the mockup's copy of the same file sets 20px, which is what the refined
   Performance Center design was drawn against. Restoring the mockup's scale for
   this page only keeps both correct rather than forking the shared sheet. */
.page-performance-center {
	--pp-fs-body: 20px;
	--pp-fs-small: 16px;
}

body.page-performance-center {
	font-size: 20px;
}

/* (Hello Elementor's reset.css is undone for these pages in
   pp-center-theme-reset.css, which loads before the handover sheets.) */

/* ——— Page shell ———
   Hello Elementor wraps the content in <main class="site-main"> with its own
   padding, and the Elementor container adds a max-width. Both would inset the
   full-bleed sections, which draw their own edge-to-edge backgrounds. */
.page-performance-center .site-main,
.page-performance-center .site-main > .page-content,
.page-performance-center .elementor-section-wrap {
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Hello Elementor's reset gives every <section> no margin but the theme's own
   `.site-main > *` rhythm adds one; the mockup's sections butt straight up
   against each other. */
.page-performance-center .site-main > * {
	margin-block: 0;
}

/* ——— Header containing block ———
   `.center-site-header` is `position: absolute; top: 0` and in the mockup its
   parent is <body>, so it pins to the top of the document and the hero scrolls
   up behind it.

   In WordPress it arrives inside an HFE template: <header class="ehf-header">
   (which HFE makes `sticky`) wrapping an Elementor container and widget that
   are both `position: relative`. The nearest of those becomes the containing
   block, so the header anchored to the Elementor container and — because the
   HFE header is sticky — travelled down the page with the scroll, painting
   over every section.

   Making the whole wrapper chain static hands the containing block back to the
   document, which is the mockup's arrangement. The chain generates no box of
   its own here, because its only child is absolutely positioned, so the hero
   still starts at the top of the page.

   Note the selectors: `ehf-header` is a class HFE puts on <body>, not on the
   header element, so a `.ehf-header <descendant>` selector never matches. The
   theme's header is `<header id="masthead">`.

   The `!important` on #masthead is not decoration: the site prints an inline
   `#masthead { position: sticky !important }` on every page, and a sticky
   ancestor is what dragged the header down the page. This rule carries a class
   as well as the id, so it out-specifies that one while leaving every other
   page's sticky header alone. */
.page-performance-center #masthead {
	position: static !important;
}

.page-performance-center #masthead,
.page-performance-center #masthead .elementor,
.page-performance-center #masthead .e-con,
.page-performance-center #masthead .e-con-inner,
.page-performance-center .elementor-widget-ppf-pc-header,
.page-performance-center .elementor-widget-ppf-pc-header > .elementor-widget-container {
	position: static;
}

/* HFE prints the template inside its own wrappers; make them transparent so the
   header's full-width bar spans the viewport as it does standalone. */
.page-performance-center #masthead,
.page-performance-center #masthead .elementor,
.page-performance-center #masthead .e-con,
.page-performance-center #masthead .e-con-inner {
	max-width: none;
	padding: 0;
	margin: 0;
	gap: 0;
	--content-width: 100%;
}

/* ——— Theme resets the mockup never had to fight ———
   Hello Elementor's reset.css styles bare links and buttons sitewide. The
   mockup's buttons are <a> elements that set their own colour but not their
   radius, and the booking modal's controls are real <button>s, which the reset
   rounds and re-colours. */
.page-performance-center button.btn-blue,
.page-performance-center button.btn-blue--solid,
.page-performance-center button.btn-blue-outline,
.page-performance-center .center-booking button {
	border-radius: 0;
	font-family: inherit;
}

.page-performance-center a.btn-blue:hover,
.page-performance-center a.btn-blue:focus,
.page-performance-center a.btn-blue:active,
.page-performance-center a.btn-blue--solid:hover,
.page-performance-center a.btn-blue--solid:focus,
.page-performance-center a.btn-blue--solid:active {
	color: #fff;
}

/* The class flip cards and coach cards are links-in-cards; the reset's
   `a:hover { color:#336 }` would repaint their text navy mid-flip. */
.page-performance-center .class-flip a:hover,
.page-performance-center .class-flip a:focus,
.page-performance-center .coach-card a:hover,
.page-performance-center .coach-card a:focus,
.page-performance-center .footer-links-grid a:hover,
.page-performance-center .footer-links-grid a:focus {
	color: inherit;
}

/* ——— The theme's own footer ———
   Hello Elementor prints <footer id="site-footer" class="site-footer ...">
   with an "All rights reserved" line. The page already ends with the mockup's
   footer, so the theme's is a second one — and because it shares the
   `site-footer` class it also picked up the mockup's footer styling. Hidden by
   id, which the mockup's footer does not carry. */
.page-performance-center footer#site-footer {
	display: none;
}

/* ——— Site footer base ———
   pp-performance-center.css only overrides the footer (padding, logo width,
   legal gap) — it inherits the layout from `.page-refined .site-footer` in
   pp-mockup-refined.css. That block exists in the mockup's copy of the sheet
   but not in the plugin's WordPress build, so without it the legal line falls
   back to a bulleted list in the theme's link colour. Restated here, scoped to
   this page, rather than forking the shared sheet for every squad page.

   Keyed off `[data-pp-block="footer"]` rather than the class, so none of this
   can reach the theme's footer of the same name. */
.page-performance-center .site-footer[data-pp-block="footer"] {
	background: #fff;
	text-align: center;
}

/* Hello Elementor's theme.css boxes every `.site-footer:not(.dynamic-footer)`
   into its content width (600px on tablets, 1140px on desktop), which squeezed
   the legal line onto two rows at 768px. The handover's footer runs full
   width. */
.page-performance-center .site-footer[data-pp-block="footer"] {
	max-width: none;
	width: auto;
	margin-inline: 0;
}

.page-performance-center .site-footer[data-pp-block="footer"] img {
	height: auto;
	display: block;
}

.page-performance-center .site-footer[data-pp-block="footer"] .site-footer__legal {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: "Bornia-Medium", serif;
	font-size: var(--pp-fs-body, 20px);
	line-height: 1.2;
	color: var(--pp-ink);
}

.page-performance-center .site-footer[data-pp-block="footer"] .site-footer__legal a {
	font-family: "Bornia-Medium", serif;
	font-size: var(--pp-fs-body, 20px);
	line-height: 1.2;
	color: var(--pp-ink);
	text-decoration: none;
}

.page-performance-center .site-footer[data-pp-block="footer"] .site-footer__legal a:hover,
.page-performance-center .site-footer[data-pp-block="footer"] .site-footer__legal a:focus {
	color: var(--pp-gold);
}

/* ——— Pricing table, narrow viewports ———
   (Removed with the October 2026 handover sync. This block unpinned the
   feature column and shrank the plan names below 1025px; the handover now
   draws that breakpoint itself — sticky feature column, 20px names — and the
   site follows it.) */

/* ——— Elementor editor ———
   Inside the editor every widget is selectable and Elementor adds its own
   outline and hover affordances. The fixed header and the hidden booking modal
   would otherwise float over the canvas and block editing of the sections
   underneath. */
.elementor-editor-active .page-performance-center .center-site-header,
body.elementor-editor-active .center-site-header {
	position: relative;
}

.elementor-editor-active .center-booking[hidden] {
	display: none !important;
}

/* Contact form while it submits in place (assets/js/ppf-contact-form.js). */
.page-refined.page-performance-center .center-contact__form button:disabled {
	opacity: 0.6;
	cursor: progress;
}

/* ——— Figure margins ———
   Elementor's frontend.css sets `figure { margin: 0 }` inside every widget
   (.elementor .elementor-widget:not(…):not(…) figure), which outranks the
   handover's own figure margins — on tablets the split photos lost their
   centring. These are the handover's figure-margin rules, verbatim, re-scoped
   inside the widget so they outrank it again. Regenerate them if the handover
   changes a figure margin. */

.page-refined .elementor .elementor-widget .center-founders figure {
	margin: 0;
}

.page-refined.page-performance-center .elementor .elementor-widget .center-banner__photo {
	margin: 0;
}

.page-refined.page-performance-center .elementor .elementor-widget .center-masonry__hero {
	margin: 0;
}

@media (max-width: 1024px) {
.page-refined.page-performance-center .elementor .elementor-widget .tb-photo-carousel__slide {
	margin: 0;
}
}

.page-pt-service .elementor .elementor-widget .pt-how__photo,
.page-pt-service .elementor .elementor-widget .pt-feature__photo {
	margin: 0;
}

.page-pt-service .elementor .elementor-widget .pt-renee__photo {
	margin: 0;
}

.page-refined.page-performance-center .elementor .elementor-widget .center-split__media {
	margin: 0;
}

@media (max-width: 1024px) {
.page-refined.page-performance-center .elementor .elementor-widget .center-split__media {
	margin: 0 auto;
}
}

.page-refined.page-performance-center .elementor .elementor-widget .center-tiles__item {
	margin:0;
}

.page-refined.page-performance-center .elementor .elementor-widget .center-split__media--stack>.center-split__media--captioned {
	margin:0;
}

/* Community sign-up status (Xplor), in place of the form: a spinner while
   sending, then a tick or a cross beside the message. Sits where the form
   does and keeps its 52px row so the band does not jump. */
.page-refined.page-performance-center .center-community .loader-container[hidden],
.page-refined.page-performance-center .center-community__form[hidden] {
	display: none;
}

.page-refined.page-performance-center .center-community__form.is-sending {
	display: none;
}

.page-refined.page-performance-center .center-community .loader-container {
	display: flex;
	justify-content: center;
	margin: 48px auto 0;
}

.page-refined.page-performance-center .center-community__form:not([hidden]):not(.is-sending) + .loader-container {
	margin-top: 16px;
}

.page-refined.page-performance-center .center-community .loader-content {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	min-height: 52px;
	max-width: 100%;
	text-align: left;
	color: #fff;
	font-family: "Bornia-Medium", serif;
	font-size: var(--pp-fs-body, 20px);
	line-height: 1.4;
}

.page-refined.page-performance-center .center-community .loader-status {
	position: relative;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: var(--pp-blue);
	border-radius: 50%;
	box-sizing: border-box;
	animation: ppc-signup-spin 0.8s linear infinite;
}

.page-refined.page-performance-center .center-community .loader-status.success,
.page-refined.page-performance-center .center-community .loader-status.error {
	animation: none;
	border-color: var(--pp-blue);
	background: var(--pp-blue);
}

.page-refined.page-performance-center .center-community .loader-status.error {
	border-color: #e5484d;
	background: #e5484d;
}

/* Tick */
.page-refined.page-performance-center .center-community .loader-status.success::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 45%;
	width: 8px;
	height: 15px;
	border: solid #151515;
	border-width: 0 3px 3px 0;
	transform: translate(-50%, -50%) rotate(45deg);
}

/* Cross */
.page-refined.page-performance-center .center-community .loader-status.error::before,
.page-refined.page-performance-center .center-community .loader-status.error::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 16px;
	height: 3px;
	background: #fff;
	transform: translate(-50%, -50%) rotate(45deg);
}

.page-refined.page-performance-center .center-community .loader-status.error::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

@keyframes ppc-signup-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.page-refined.page-performance-center .center-community .loader-status {
		animation-duration: 2.4s;
	}
}

@media (max-width: 767px) {
	.page-refined.page-performance-center .center-community .loader-content {
		font-size: 16px;
	}
}

/* ——— Mariana Tek account pages ———
   /my-account/ splits Mariana's profile, reservations and purchases bindings
   into tabs, as the live Squarespace page does, with the logout button at the
   end of the row. The bindings style their own contents. */
.page-refined.page-performance-center .center-account__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 32px;
	border-bottom: 1px solid rgba(21, 21, 21, 0.14);
}

.page-refined.page-performance-center .center-account__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
}

.page-refined.page-performance-center .center-account__tab {
	margin: 0 0 -1px;
	padding: 12px 0;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: none;
	font-family: "Bornia-Bold", serif;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pp-muted);
	cursor: pointer;
}

.page-refined.page-performance-center .center-account__tab:hover,
.page-refined.page-performance-center .center-account__tab:focus-visible {
	background: none;
	color: var(--pp-ink);
}

.page-refined.page-performance-center .center-account__tab[aria-selected="true"] {
	border-bottom-color: var(--pp-blue);
	color: var(--pp-ink);
}

.page-refined.page-performance-center .center-account__logout {
	padding-bottom: 8px;
}

.page-refined.page-performance-center .center-account__panel {
	min-height: 480px;
}

/* ——— Legal pages (/waiver/) ———
   The Mariana pages' intro (.center-schedule) over a document column. The
   wording keeps the source's capitals, which a waiver uses on purpose, so the
   body is set a size down with open tracking to stay readable. */
.page-refined.page-performance-center .center-legal__print {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.page-refined.page-performance-center .center-legal__print:hover,
.page-refined.page-performance-center .center-legal__print:focus-visible {
	background: none;
	color: var(--pp-blue);
}

.page-refined.page-performance-center .center-legal__doc {
	max-width: 820px;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 72px);
	border: 1px solid rgba(21, 21, 21, 0.12);
	border-top: 4px solid var(--pp-blue);
	background: #fff;
	color: var(--pp-ink);
}

.page-refined.page-performance-center .center-legal__title {
	margin: 0 0 clamp(28px, 4vw, 44px);
	font-family: "Bornia-Black", serif;
	font-size: var(--pp-fs-title, 32px);
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: center;
	color: var(--pp-ink);
}

.page-refined.page-performance-center .center-legal__section + .center-legal__section {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid rgba(21, 21, 21, 0.1);
}

.page-refined.page-performance-center .center-legal__heading {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 14px;
	font-family: "Bornia-Bold", serif;
	font-size: 14px;
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pp-ink);
}

.page-refined.page-performance-center .center-legal__num {
	min-width: 2.2em;
	color: var(--pp-blue);
}

.page-refined.page-performance-center .center-legal__body {
	font-size: 15px;
	line-height: 1.75;
	letter-spacing: 0.02em;
}

.page-refined.page-performance-center .center-legal__body p {
	margin: 0 0 14px;
}

.page-refined.page-performance-center .center-legal__body p:last-child {
	margin-bottom: 0;
}

/* A blank to write on, inside a paragraph ("my initials here: ____"). */
.page-refined.page-performance-center .center-legal__blank {
	display: inline-block;
	width: 7em;
	border-bottom: 1px solid var(--pp-ink);
	vertical-align: baseline;
}

.page-refined.page-performance-center .center-legal__sign {
	display: grid;
	gap: 36px;
	margin-top: 40px;
	padding: clamp(24px, 4vw, 36px);
	background: #f5f5f3;
}

.page-refined.page-performance-center .center-legal__sign .center-legal__heading {
	margin-bottom: 8px;
}

.page-refined.page-performance-center .center-legal__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 32px;
}

.page-refined.page-performance-center .center-legal__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 36px;
}

.page-refined.page-performance-center .center-legal__line {
	display: block;
	border-bottom: 1px solid var(--pp-ink);
}

.page-refined.page-performance-center .center-legal__label {
	font-family: "Bornia-Medium", serif;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pp-muted);
}

@media (max-width: 600px) {
	.page-refined.page-performance-center .center-legal__fields {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Print only the document. */
@media print {
	body.page-pc-legal * {
		visibility: hidden;
	}

	body.page-pc-legal .center-legal__doc,
	body.page-pc-legal .center-legal__doc * {
		visibility: visible;
	}

	body.page-pc-legal .center-legal__doc {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		max-width: none;
		padding: 0;
		border: 0;
	}

	body.page-pc-legal .center-legal__sign {
		break-inside: avoid;
		background: none;
		padding: 0;
	}
}

/* Mariana renders each binding twice on a domain it hasn't allowlisted (its
   API refuses the origin, as on ppfcenter.local or a staging host); on the
   live domain there is only one. Hide any copy after the first. */
.page-performance-center [class^="mariana-"][class$="-binding"] > .MT_component ~ .MT_component {
	display: none;
}

/* ——— Full-page form (/schedule-a-visit/) ———
   The Mariana pages' intro, then the pop-up forms' floating-label fields in a
   card beside the location and a map. */
.page-refined.page-performance-center .center-visit__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	max-width: min(1120px, var(--pp-max));
	margin: 0 auto;
	align-items: start;
}

.page-refined.page-performance-center .center-visit__card {
	padding: clamp(24px, 4vw, 44px);
	border: 1px solid rgba(21, 21, 21, 0.12);
	border-top: 4px solid var(--pp-blue);
	background: #fff;
}

.page-refined.page-performance-center .center-visit__aside {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.page-refined.page-performance-center .center-visit__title {
	margin: 0;
	font-family: "Bornia-Black", serif;
	font-size: var(--pp-fs-title, 32px);
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: left;
	color: var(--pp-ink);
}

.page-refined.page-performance-center .center-visit__address {
	margin: 0;
	font-family: "Bornia-Medium", serif;
	line-height: 1.5;
	color: var(--pp-ink);
}

.page-refined.page-performance-center .center-visit__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	font-family: "Bornia-Bold", serif;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.page-refined.page-performance-center .center-visit__links a {
	color: var(--pp-ink);
	text-decoration: none;
	border-bottom: 2px solid var(--pp-blue);
	padding-bottom: 2px;
}

.page-refined.page-performance-center .center-visit__links a:hover {
	color: var(--pp-blue);
}

.page-refined.page-performance-center .center-visit__map {
	position: relative;
	margin-top: 8px;
	aspect-ratio: 4 / 3;
	border: 1px solid rgba(21, 21, 21, 0.12);
	background: #f5f5f3;
}

.page-refined.page-performance-center .center-visit__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 860px) {
	.page-refined.page-performance-center .center-visit__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ——— Service-page FAQ / therapist accordions ———
   performance-center-site.js wraps each answer and toggles `is-open`; the
   slide matches the PT page's accordion (row height 0.35s, text fading in).
   Without the script (no `is-animated`) the <details> open natively. */
.page-refined.page-performance-center .center-faq.is-animated .center-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	padding: 0;
	transition: grid-template-rows 0.35s ease;
}

.page-refined.page-performance-center .center-faq.is-animated details.is-open .center-faq__answer {
	grid-template-rows: 1fr;
}

.page-refined.page-performance-center .center-faq.is-animated .center-faq__inner {
	min-height: 0;
	overflow: hidden;
	padding-bottom: 0;
	opacity: 0;
	transition: padding-bottom 0.35s ease, opacity 0.28s ease;
}

.page-refined.page-performance-center .center-faq.is-animated details.is-open .center-faq__inner {
	padding-bottom: 20px;
	opacity: 1;
}

.page-refined.page-performance-center .center-faq.is-animated details summary::after {
	content: "+";
}

.page-refined.page-performance-center .center-faq.is-animated details.is-open summary::after {
	content: "\2013";
}

@media (prefers-reduced-motion: reduce) {
	.page-refined.page-performance-center .center-faq.is-animated .center-faq__answer,
	.page-refined.page-performance-center .center-faq.is-animated .center-faq__inner {
		transition: none;
	}
}
