/* Page header (Refresh): blocks/page-header/render.php. Today's three headers, measured from the Greenshift
   versions at 1440 and 390. The tablet overlay and per-page photo crops stay in the site's own rules, which
   target page-header, page-header-bg and treatment-hero. */

.rc-ph { position: relative; margin: 0; box-sizing: border-box; }
.rc-ph *, .rc-ph *::before, .rc-ph *::after { box-sizing: border-box; }
.rc-ph h1 { margin: 0; }
.rc-ph__buttons { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 16px; }
.rc-ph__btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* Pages and hub pages: photo behind a dark veil, centred white text. */
.rc-ph--page { display: flex; flex-direction: column; justify-content: center; min-height: 700px; overflow: hidden;
	padding: clamp(5rem, 3.6456rem + 4.5147vw, 7.5rem) 0; color: #fff; text-align: center; }
.rc-ph--page .rc-ph__bg { position: absolute; inset: 0; }
.rc-ph--page .rc-ph__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rc-ph--page .rc-ph__row { position: relative; width: 100%; }
.rc-ph--page .rc-ph__inner { display: flex; flex-direction: column; row-gap: 24px; width: var(--theme-container-width, 90vw); max-width: var(--theme-normal-container-max-width, 1200px); margin: 0 auto; }
.rc-ph--page .rc-ph__title, .rc-ph--page .rc-ph__sub, .rc-ph--page .rc-ph__desc { color: #fff; text-align: center; margin: 0; }
.rc-ph--page .rc-ph__desc a { color: #fff; }
/* "Medically reviewed by … · Last reviewed …" under the description. */
.rc-ph__reviewed { margin: 16px 0 0; font-size: 14px; line-height: 1.5; letter-spacing: .3px; }
.rc-ph__reviewed a { color: inherit; text-underline-offset: 3px; }
.rc-ph--page .rc-ph__reviewed { color: #fff; text-align: center; }
.rc-ph--page .rc-ph__desc a:hover { color: var(--wp--preset--color--action-text, #a85f42); }
.rc-ph--page .rc-ph__buttons { justify-content: center; }
@media (max-width: 991.98px) { .rc-ph--page { min-height: 600px; } }
@media (max-width: 575.98px) {
	.rc-ph--page { min-height: 500px; }
	.rc-ph--page .rc-ph__buttons--list { flex-direction: column; }
	.rc-ph--page .rc-ph__buttons--list .rc-ph__btn { width: 100%; }
}
@media screen and (max-width: 465px) { .page-id-1290 .rc-ph__sub { max-width: 300px; margin-left: auto; margin-right: auto; } }

/* Conditions: photo on the left half, text on the right; on tablets and phones the photo fills the
   header under a veil (the site's treatment-hero rules) and the text sits on it. */
.rc-ph--condition .rc-ph__row { display: flex; flex-wrap: wrap; }
.rc-ph--condition .rc-ph__media { width: 50%; }
.rc-ph--condition .treatment-img { position: relative; height: 100%; }
.rc-ph--condition .treatment-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rc-ph--condition .rc-ph__text { position: relative; width: 50%; display: flex; flex-direction: column; justify-content: center; padding: 130px 100px; }
.rc-ph--condition .rc-ph__inner { display: flex; flex-direction: column; row-gap: 24px; }
.rc-ph--condition .rc-ph__buttons { margin-top: 30px; }
/* :root and .rc-ph outrank the site's ":root .wp-element-button" fill. */
:root .rc-ph .rc-ph__btn--outline { background-color: transparent; color: var(--gs-colorcolor1, #2f6971); border-color: var(--gs-colorcolor2, #d1896b); }
:root .rc-ph .rc-ph__btn--outline:hover, :root .rc-ph .rc-ph__btn--outline:focus-visible { background-color: var(--gs-colorcolor2, #d1896b); color: #fff; }
.rc-ph__arrow { width: 34px; height: 10px; min-width: 34px; margin-left: 13px; fill: currentColor; }
@media (max-width: 999.98px) {
	.rc-ph--condition .rc-ph__media { position: absolute; inset: 0; width: 100%; height: 100%; }
	.rc-ph--condition .rc-ph__text { width: 100%; padding: 120px 40px; }
}
@media (max-width: 575.98px) { .rc-ph--condition .rc-ph__text { padding: 120px 20px; } }

/* Landing pages (referrals, policies): the title on the peach band. */
.rc-ph--landing { padding: clamp(5rem, 3.6456rem + 4.5147vw, 7.5rem) 0; background-color: var(--gs-colorcolor2, #d1896b); }
.rc-ph--landing .rc-ph__inner { width: var(--theme-container-width, 90vw); max-width: var(--theme-normal-container-max-width, 1200px); margin: 0 auto; }
.rc-ph--landing h1 { color: #fff; text-align: center; }
