/*
Theme Name: Fuel6
Theme URI: https://fuelmedical.com
Author: Fuel Medical
Description: A Fuel Medical block theme (2024)
Requires at least: 6.5
Tested up to: 6.7.1
Requires PHP: 8.0
Version: 6.3.8
Text Domain: fuel6
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Custom Properties
# Fuel Normalize
# Helper Classes
# WordPress Blocks
# Forms - Moved to css/gravity-forms.css
# Header
# Content
# Footer
# Animations
# print
# Safari 15.3 fallbacks
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Custom Properties
  Note: WordPress declares its variables in the body, so do the same to avoid scope issues.
--------------------------------------------------------------*/
body {
	/* Structure - 1100px - for use outside of contain class */
	--contain-padding: clamp(1rem, calc(50vw - 29.93rem), 19rem);

	/* Design - Change in theme.json */
	--primary-color: var(--wp--preset--color--primary);
	--accent-color: var(--wp--preset--color--accent);
	--accent-gold: var(--wp--preset--color--body);

	--semi-blue: var(--wp--preset--color--semi-blue);
	--light-blue: var(--wp--preset--color--light-blue);
	--white: var(--wp--preset--color--white);
	--grey: var(--wp--preset--color--grey);
	--black: var(--wp--preset--color--black);

	/* Top Level Primary Menu Colors - now managed on the block level */
	--wp--preset--color--menu-background: inherit;
	--wp--preset--color--menu-color: currentColor;
	--wp--preset--color--menu-hover-color: var(--white);
	--wp--preset--color--menu-hover-bg: var(--wp--preset--color--color-3);

	/* Sub Menu Colors */
	--wp--preset--color--sub-menu-background: var(--primary-color);
	--wp--preset--color--sub-menu-color: var(--white);
	--wp--preset--color--sub-menu-hover-color: var(--white);
	--wp--preset--color--sub-menu-hover-bg: var(--wp--preset--color--color-3);

	/* Text */
	--title-font: var(--wp--preset--font-family--content);
	--title-color: var(--primary-color);

	--content-font: var(--wp--preset--font-family--content), sans-serif;
	--content-color: var(--wp--preset--color--content);

	/* padding */
	--contain-padding: var(--wp--style--root--padding-right);

}

/*--------------------------------------------------------------
# Fuel Normalize
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html {
	font-size: clamp(125%, 1vw, 240%);
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
	min-width: 18rem;
}

iframe,
img,
svg,
audio,
video,
embed {
	vertical-align: middle;
	max-width: 100%;
}

img {
	object-fit: cover;
}

img:not([src*=".png"],
	[src*=".gif"], [src*=".svg"]) {
	background: var(--grey);
}

a {
	text-decoration: none;
	color: var(--light-blue);
	transition: color 300ms, background-color 300ms;
}

a[href^="tel:"] {
	white-space: nowrap;
}

a:hover {
	color: var(--light-blue);
}

[hidden] {
	display: none;
}

@media only screen and (min-width: 68.5em) {
	*[id] {
		scroll-margin-top: 3rem;
	}
}

/*--------------------------------------------------------------
# Helper Classes
--------------------------------------------------------------*/
.contain {
	--contain-padding: clamp(var(--mobile-padding, 1rem), calc(50vw - 29.93rem), var(--desktop-padding, 19rem));
	display: block;
	position: relative;
	margin: auto;
	padding-right: var(--contain-padding);
	padding-left: var(--contain-padding);
	width: 100%;
}

.icon-item {
	display: block;
	position: relative;
	margin: 1em 0;
	padding: 0 0 0 1.8em;
}

.icon-item svg {
	position: absolute;
	top: 0.15em;
	left: 0;
	width: 1.2em;
	height: 1.2em;
}

.bold,
strong {
	font-weight: 600;
}

.semibold {
	font-weight: 500;
}

@media (min-width: 68.5em) {
	.mobile-only {
		display: none !important;
	}
}

@media (max-width: 68.49em) {
	.desktop-only {
		display: none !important;
	}

	body {
		--center-on-mobile: center;
	}

	.text-center-on-mobile {
		text-align: var(--center-on-mobile);
	}

	.center-on-mobile {
		justify-content: var(--center-on-mobile);
	}
}

.zebra>*:not(tbody):nth-child(odd) {
	background-color: var(--zebra, var(--grey));
}

/* Use on query loops to help change the order every other column */
.stagger> :nth-child(odd) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Use to make link fill entire block - use when you can't wrap blocks with anchor tag */
.cover-link {
	position: absolute !important;
	inset: 0;
	width: 100%;
	z-index: 1;
	background: none !important;
}

:has(> .cover-link) {
	position: relative;
}

/*--------------------------------------------------------------
# WordPress Blocks
--------------------------------------------------------------*/
@media (min-width: 37.5em) {

	.alignleft,
	.alignright {
		max-width: 48%
	}
}

@media (min-width: 68.5em) {
	.is-position-sticky {
		top: 4rem;
	}
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
@media (max-width: 68.49em) {
	.header {
		position: relative;
		z-index: 998;
	}

	.header>.wp-block-group {
		padding: 0 3rem;
		border-bottom: 1px solid var(--white);
	}

	.header-logo {
		padding-right: unset !important;
		border: unset;
	}

	.header-cols {
		justify-content: center;
	}

	.header-cols a {
		margin: auto !important;
	}
}

@media (min-width: 68.5em) {
	.header:not(.block-editor-block-list__block) {
		position: sticky;
		top: -8.5rem;
		z-index: 999;
	}

	.menu-styling-wrapper {
		/*transition: all 350ms;*/
	}

	.is-pinned .menu-styling-wrapper {
		margin-top: -2rem !important;
	}

	.header-logo,
	.header-right {
		transition: transform 350ms;
	}

	.is-pinned .header-logo {
		border: unset;
	}

	.is-pinned .header-right,
	.is-pinned .header-logo {
		transform: translatey(-8rem);
	}

	.menu-styling-wrapper::after {
		content: '';
		width: 4rem;
		aspect-ratio: 82/21;
		background: url('./images/logo-small.svg');
		background-size: cover;
		position: absolute;
		bottom: 1rem;
		left: clamp(5rem, 13vw, 12rem);
		opacity: 0;
	}

	.is-pinned .menu-styling-wrapper::after {
		opacity: 1;
	}

	.header-cols {
		justify-content: space-between;
		padding-right: clamp(0rem, 3.1vw, 3rem) !important;
		padding-left: clamp(0rem, 3.1vw, 3rem) !important;
	}

	.header-number {
		font-family: var(--content-font);
		font-weight: 500;

	}

	.header-number:hover {
		color: var(--accent-gold);
	}

	.header-logo {
		flex-basis: clamp(12rem, 16.4vw, 15.5rem) !important;
		flex-basis: 24rem !important;
		flex-basis: calc(var(--contain-padding) + clamp(12rem, 22vw, 21rem)) !important;
		flex-basis: clamp(11rem, calc((100vw - 1096px) * 0.199 + 11rem), 19.2rem) !important;
	}

	.header-logo a {
		display: flex;
	}
}

.header-logo svg,
.footer-logo svg {
	width: auto;
	transition: transform 0.3s ease;
}

.header-logo a:is(:hover, :focus-visible) svg,
.footer-logo:is(:hover, :focus-visible) svg {
	transform: scale(1.05);
}

.header-quicklinks .wp-block-fuel-menu-item {
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
}

.header-quicklinks a {
	padding: 0.65rem 1.1rem;
}

.header-quicklinks .button a {
	background: transparent !important;
	border: 1px solid var(--white);
}

.header-quicklinks a:is(:hover, :focus-visible) {
	color: var(--accent-gold);
}

.header-quicklinks .button:is(:hover, :active, :focus-visible) a {
	background-color: var(--white) !important;
	color: var(--primary-color) !important;
}

.header-quicklinks svg {
	margin-right: 0.3rem;
	transform: translateY(-0.1rem);
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
.wp-site-blocks {
	margin: auto;
}

#main {
	margin: 0;
	font-size: var(--wp--preset--font-size--content);
}

.entry-content .wp-block-list li {
	margin: 1em 0 0 0;
}


/* Location card loop - Used in content, and menu */
/* If a grid has only one column, make it full width */
.location-cta .wp-block-post-template.is-layout-grid:not(:has(li:nth-child(2))) {
	grid-template-columns: 1fr
}

/* If a grid has three columns, make it flex */
.location-cta .wp-block-post-template.is-layout-grid:has(li:nth-child(3)) {
	display: flex;
	flex-wrap: wrap;

	& .wp-block-post {
		flex: 1 1 15rem;
	}
}

.location-card svg {
	vertical-align: bottom;
}

.sub-menu .location-card {
	background: none !important;
	padding-top: 0 !important;

	& .wp-block-post-title {
		padding-bottom: 0.5rem;
		font-size: var(--wp--preset--font-size--content);
		font-weight: bold;
	}

	&>.wp-block-group:first-of-type {
		margin-top: 1.3rem;
	}
}

.sub-menu .footer-hours {
	position: relative;
}

.sub-menu .footer-hours::before {
	content: '';
	width: 0.05rem;
	height: 100%;
	background-color: var(--white);
	position: absolute;
	top: 0;
	left: -1.5rem;
}

@media (max-width: 68.49em) {
	.sub-menu {
		& .location-cta svg {
			color: var(--white);
		}

		& .location-card {
			padding: 0 !important;
		}

		& .location-cta>ul {
			gap: 1rem;
		}

		& .location h3 {
			border-color: var(--white) !important;
		}
	}
}

/* Location Body */

#location_section {
	position: relative;
	overflow: hidden;
}

#location_section::before {
	content: '';
	width: 50%;
	aspect-ratio: 946/479;
	background-color: var(--accent-gold);
	position: absolute;
	bottom: 0;
	right: 0;
	z-index: 1;
}

#location_section>.wp-block-columns {
	z-index: 1;
}

#location_section svg {
	color: var(--accent-gold);
}

#location_section h2 {
	position: relative;
	margin-bottom: 1.9rem;
}

#location_section h2::before {
	content: '';
	width: 5.8rem;
	height: 0.1rem;
	background-color: var(--white);
	position: absolute;
	bottom: 0;
	left: calc(50% - 2.9rem);
}

.wp-block-group:has(>.body-loc-row) {
	z-index: 1;
}

.body-loc-row a.address:not(.icon-item) {
	margin-left: 1.8rem;
	margin-top: 1rem;
	padding: 0.2rem 1.4rem;
	border: 1px solid var(--white);
	border-radius: 5px;
	display: block;
	width: fit-content;
}

.delay-350 {
	--delay: 350ms;
}

.body-loc-row>ul {
	width: 100%;
}

.loc-image-col .wp-block-columns {
	position: absolute;
	bottom: 1.7rem;
	margin-left: 4rem;
	z-index: 1;
}

.loc-image-col .wp-block-columns .wp-block-column:last-of-type {
	margin-bottom: -2rem;
	margin-right: 1rem;
	align-self: end;
}

.loc-shape {
	position: absolute;
	bottom: 0;
	right: 0;
}

.loc-image-col figure {
	filter: drop-shadow(0px 0px 12px rgba(0, 0, 0, 0.25));
}

.body-hours>.wp-block-group {
	gap: 0.8rem;
}

#location_section .hours {
	margin-top: 0.5rem;
}

.loc-phone-fax .is-vertical {
	gap: 0.5rem;
}

.loc-phone-fax .is-vertical>div {
	gap: 0.7rem;
}

.loc-phone-fax {
	align-self: start;
}

@media (max-width: 68.49em) {

	#location_section {
		padding-top: 1rem !important;
		font-size: 1rem !important;
	}

	#location_section::before {
		width: 100%;
		height: 16rem;
		z-index: 0;
	}

	#location_section .wp-block-query {
		padding-left: 1.2rem;
	}

	#location_section>.wp-block-columns {
		flex-direction: column;
	}

	.wp-block-group:has(>.body-loc-row) {
		padding-top: 0rem !important;
	}

	#location_section h3 {
		font-size: 1rem !important;
	}

	.loc-image-col .wp-block-columns {
		position: static;
		display: flex;
		flex-wrap: nowrap !important;
		margin-left: unset;
		justify-content: center;
	}

	.loc-image-col .wp-block-columns .wp-block-column:last-of-type {
		margin-right: unset;
		margin-bottom: 0;
	}

	.loc-image-col .wp-block-column:first-of-type {
		margin-top: -1.4rem;
	}

	#location_section a.address:not(.icon-item) {
		display: block;
		margin-left: 1.7rem;
		padding: 0.2rem 1.4rem;
		border: 1px solid var(--white);
		border-radius: 5px;
		width: fit-content;
		font-size: 0.8rem;
	}

	.locations-title {
		font-size: 2rem !important;
	}

	.location .wp-block-group:has(> svg) {
		gap: 1rem;
	}

	.type-location>div {
		padding-bottom: 2.5rem !important;
	}

	.body-hours .wp-block-group {
		gap: 0.8rem;
	}

	.loc-phone-fax {
		/* margin-top: 2rem !important; */
		row-gap: 2.7rem;
	}

	.loc-phone-fax .wp-block-group {
		gap: 0.8rem;
	}

	.loc-image-col>.wp-block-columns {
		column-gap: 0.4rem;
	}

	.loc-image-col {
		margin-top: 4.5rem !important;
	}

	.loc-shape {
		bottom: 16rem;
	}

	.loc-phone-fax {
		min-width: 14.3rem;
	}

	.loc-image-col .wp-block-column figure,
	.loc-image-col .wp-block-column {
		max-width: fit-content;
	}

	.body-loc-row {
		position: relative;
	}

	.body-loc-row>ul {
		row-gap: 0;
	}

	.body-loc-row::before {
		content: '';
		width: calc(100% + calc(calc(var(--wp--style--root--padding-right) * 2) + 1.5rem));
		height: 2px;
		background-color: var(--white);
		position: absolute;
		bottom: 0;
		left: calc(calc(var(--wp--style--root--padding-right) * -1) - 1.5rem);
	}

	.loc-shape {
		z-index: 1;
		width: 100vw;
		right: 0;
	}
}

/* Bio grid custom loop */
.bio-list .bio-box {
	display: grid;
	grid-template-areas:
		"img label";
	justify-content: start;
}

.bio-list .bio-image {
	grid-area: img;
	height: 4.5rem;
	aspect-ratio: 69/90;
	margin-right: 0.5rem;
	overflow: hidden;
}

.bio-list img {
	width: 100%;
	height: 100%;
}

.bio-list .bio-label {
	grid-area: label;
	line-height: normal;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	color: var(--content-color);
	margin-top: 0.5rem;
}

.primary-menu .bio-label {
	color: var(--white);
}

.bio-cred {
	white-space: pre;
}

@media (max-width: 68.49em) {
	#main .bio-list .bio-box {
		padding: 0.3rem 1rem;
		margin-left: -1rem;
		width: calc(100% + 2rem);
	}

	#main .bio-list .bio-box:nth-child(odd) {
		background: rgba(0, 0, 0, 0.1);
	}

	/* Menu styling */
	.sub-menu .bio-list .bio-box.bio-box {
		margin: 0;
		padding: 0;
	}

	.primary-menu .bio-label {
		color: var(--white);
		margin-top: 0;
		padding-top: 1rem;
		padding-bottom: 1.5rem;
	}

	.sub-menu .bio-box::after,
	#main .bio-box::after {
		content: '';
		clip-path: url(#menu_chevron);
		background-color: currentColor;
		position: absolute;
		inset: 0 8vw 0 auto;
		width: 0.9rem;
		height: 0.9rem;
		margin: auto;
		transition: background-color 0.3s ease;
	}

	.sub-menu .bio-list .bio-box:not(:hover, :focus-visible):nth-child(odd) {
		background: rgba(255, 255, 255, 0.1);
	}

	#providers_panel {
		padding: 0 0.6rem !important;
	}
}

@media (min-width: 68.5em) {
	.bio-list {
		display: flex;
		flex-wrap: wrap;
		gap: 2rem;
		align-items: flex-start;
		margin-top: 1rem;
	}

	.bio-list .bio-box {
		grid-template-areas:
			"img"
			"label";
		flex: 0 1 calc(25% - 1rem);
		min-width: 7.5rem;
		max-width: 10rem;
		/* Adjust to prevent names from wrapping */
		text-align: left;
	}

	.sub-menu .bio-list .bio-box {
		flex: 0 1 calc(20% - 1rem);
	}

	.bio-list.bio-list .bio-box:is(:hover, :focus-visible) {
		background: none;
	}

	.bio-list .bio-image {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1.3;
		margin-bottom: 0.8rem;
	}

	.bio-list .bio-image img {
		transition: transform 0.3s;
	}

	.bio-list .bio-box:is(:hover, :focus-visible) .bio-image img {
		transform: scale(1.1);
	}

	.sub-menu .bio-box::after,
	#main .bio-box::after {
		display: none;
	}

}

/*Sitewide Contact*/
@media (min-width: 68.5em) {
	.contact_section .gform-body {
		max-width: 80%;
	}
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
	margin: 0;
	overflow: hidden;
}

.footer a {
	display: block;
	width: fit-content;
	background: linear-gradient(0deg, var(--white), var(--white)) no-repeat 0 bottom / 0 2px;
	transition: background-size 350ms;
}

.footer a.icon-item {
	background-position-x: 1.6rem;
}

.footer a:not(.footer-logo):is(:hover, :focus-visible) {
	background-size: 100% 2px;
	color: var(--white);
}

.footer-logo path {
	fill: var(--white);
}

.footer-socials a {
	transition: transform 0.3s ease;
}

.footer-socials a:is(:hover, :focus) {
	background: none;
	transform: scale(1.2);
}

.start {
	align-self: start !important;
	align-items: start;
}

.footer-logo svg {
	width: 100%;
}

.footer-loc-row svg {
	color: var(--accent-gold);
}

#footer-locations path {
	color: var(--accent-gold) !important;
}

.phone-wrap {
	gap: 0.8rem;
}

.footer-mtn {
	position: absolute;
	bottom: -2rem;
	right: -1rem;
}

@media (max-width: 68.49em) {
	.footer-loc-row {
		flex-wrap: wrap;
	}

	.footer-loc-row>* {
		width: 100%;
		margin: auto;
	}

	.footer-hours>* {
		max-width: unset !important;
	}

	.phone-fax-wrap {
		flex-direction: column;
	}

	.phone-fax-wrap>* {
		align-self: start;
	}

	.footer .location .wp-block-group:has(> svg) {
		gap: 0.8rem;
	}

	.loc-group-wrap>.wp-block-group:last-of-type {
		margin-top: 2.2rem;
	}
}

/* 850px - Mobile breakpoint for copyright section */
@media only screen and (max-width: 53.125em) {
	.copyright-wrapper {
		flex-direction: column;
		text-align: center;
	}

	.policy-menu {
		justify-content: center;
	}
}

/* Policy menu */
.policy-menu li:nth-child(n+1):not(:last-child)::before {
	content: '|';
	position: absolute;
	right: -0.6rem;
}

@media (min-width: 68.5em) {
	.footer-logo-column {
		margin-top: -1.5rem !important;
	}
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/

@keyframes scrollOver {
	from {
		transform: translateX(-3rem);
	}

	to {
		transform: translateX(50rem);
	}
}

@keyframes scrollOverRight {
	from {
		transform: translateX(60rem);
	}

	to {
		transform: translateX(-30rem);
	}
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(var(--spin-rotation, 360deg));
	}
}

@keyframes fadein {
	0% {
		opacity: var(--o1, 0);
		transform: translate(var(--x1, 0), var(--y1, 5rem));
	}

	100% {
		opacity: var(--o2, 1);
		transform: translate(var(--x2, 0), var(--y2, 0));
	}
}

@keyframes fadeout {
	0% {
		opacity: var(--o2, 1);
		transform: translate(var(--x2, 0), var(--y2, 0));
	}

	100% {
		opacity: var(--o1, 0);
		transform: translate(var(--x1, 0), var(--y1, 5rem));
	}
}

@keyframes point {
	0% {
		transform: translate(0, 0);
	}

	50% {
		transform: translate(var(--x, 1rem), var(--y, 0));
	}

	100% {
		transform: translate(0, 0);
	}
}

@keyframes ctaHover {
	0% {
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
	}

	100% {
		clip-path: polygon(11% 0, 100% 0, 100% 100%, 11% 100%);
	}
}

@keyframes ctaHoverOff {
	0% {
		clip-path: polygon(11% 0, 100% 0, 100% 100%, 11% 100%);
	}

	100% {
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
	}
}

/* popAnimation Example: https://jsfiddle.net/KTC_88/8xkLv520/ */
@keyframes popAnimation {
	0% {
		transform: scale(0.5);
		opacity: 0;
	}

	80% {
		transform: scale(1.1)
	}

	100% {
		transform: scale(1);
		opacity: 1
	}
}

/**
 * Animation helper classes.
 */
@media (prefers-reduced-motion:no-preference) {

	/* Add to wrappers to animate children */
	.popin>* {
		transform: scale(0.5);
		opacity: 0;
	}

	.popin.js-intersected>* {
		--delay: calc(var(--i, 0) * 200ms);
		animation: popAnimation 400ms ease var(--delay) forwards
	}

	.fadein-items>* {
		opacity: 0;
		transform: translateY(0);
	}

	.fadein-items.js-intersected>* {
		--delay: calc(var(--i, 0) * 200ms);
		animation: fadein var(--time, 400ms) ease var(--delay) forwards;
	}

	/* Add directly to element that will be affected */
	.fadein {
		opacity: 0;
		transform: translateY(0);
		--y1: 0;
	}

	.fadeup {
		opacity: 0;
		transform: translateY(5rem);
	}

	.fadedown {
		opacity: 0;
		transform: translateY(-5rem);
		--y1: -5rem;
	}

	.fadeleft {
		opacity: 0;
		transform: translateX(-5rem);
		--x1: -5rem;
		--y1: 0;
	}

	.faderight {
		opacity: 0;
		transform: translateX(5rem);
		--x1: 5rem;
		--y1: 0;
	}

	.from-left {
		animation-name: scrollOver;
		animation-duration: 1s;
		animation-timing-function: linear;
		animation-fill-mode: both;
		animation-timeline: scroll(root block);
		animation-range: entry 0% exit 100%;
	}

	.from-right {
		animation-name: scrollOverRight;
		animation-duration: 1s;
		animation-timing-function: linear;
		animation-fill-mode: both;
		animation-timeline: scroll(root block);
		animation-range: entry 0% exit 100%;
	}

	.js-intersected:is(.fadein, .fadeup, .fadedown, .fadeleft, .faderight) {
		animation: fadein var(--time, 300ms) var(--easing, ease) var(--delay, 0s) forwards
	}
}

/* Used to make images in links grow when link is hovered - simply add .hover-img-grow to link or image block */
figure.hover-img-grow,
.hover-img-grow figure {
	overflow: hidden;
}

.hover-img-grow img {
	transition: transform var(--time, 0.3s);
}

a:has(+ .hover-img-grow):is(:hover, :focus-visible)+figure img,
a:has(.hover-img-grow):is(:hover, :focus-visible) img,
a.hover-img-grow:is(:hover, :focus-visible) img {
	transform: scale(var(--scale, 1.1));
}

@media (max-width: 68.49em) {

	.from-left,
	.from-right {
		animation: unset;
	}
}

/*--------------------------------------------------------------
# Print
--------------------------------------------------------------*/
@media print {
	@page {
		margin: 0.5cm;
	}

	* {
		background: transparent !important;
		color: black !important;
		text-shadow: none !important;
		-webkit-filter: none !important;
		filter: none !important;
		-ms-filter: none !important;
	}

	a,
	a:visited {
		color: #444 !important;
		text-decoration: underline;
	}

	pre,
	blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	tr,
	img {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	p,
	h1,
	h2,
	h3 {
		orphans: 3;
		widows: 3;
	}

	h1,
	h2,
	h3 {
		page-break-after: avoid;
	}

	.main-header {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.main-title {
		margin: 0;
		padding-bottom: 1rem;
		border-bottom: 2px solid #000;
	}

	.primary-menu,
	#sidebar,
	.header,
	.footer,
	.page-navigation,
	.pagination,
	.wp-prev-next,
	.respond-form {
		display: none !important;
	}
}

/*--------------------------------------------------------------
# Safari 15.3 fallbacks
  Safari 15.3 and under bug fixes - welcome to the new IE
--------------------------------------------------------------*/
@media not all and (min-resolution: 0.001dpcm) {
	@supports (-webkit-appearance: none) {

		/* Hide Dialog (not supported) */
		dialog {
			display: none;
			background-color: var(--white);
			z-index: 9999;
		}

		dialog[open] {
			display: block;
		}

		/* menu fixes */
		.js-active .sub-menu-trigger[aria-expanded=true]+.sub-menu .sub-animate>* {
			background: var(--white);
		}

		.primary-menu .menu-label:hover {
			color: var(--white);
		}
	}
}