/**
 * Shared WordPress block styles for the front end and iframed editor.
 */

/* WordPress Core owns the block class names below. */
/* stylelint-disable selector-class-pattern */

.wp-block-group.is-style-myh-card {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--wp--preset--color--white, #fff);
	border: 1px solid #dedbd3;
	border-radius: 14px;
	box-shadow: var(--wp--preset--shadow--soft);
}

.wp-block-group.is-style-myh-dark-section {
	padding: clamp(2rem, 5vw, 4rem);
	color: var(--wp--preset--color--white, #fff);
	background: var(--wp--preset--gradient--navy-depth);
	border-radius: 14px;
}

.wp-block-group.is-style-myh-dark-section :where(h1, h2, h3, h4, h5, h6) {
	color: inherit;
}

.wp-block-group.is-style-myh-dark-section a:not(.wp-element-button) {
	color: var(--wp--preset--color--gold-light, #e1c789);
}

.wp-block-quote.is-style-myh-legal-note {
	padding: 1.25rem 1.5rem;
	color: var(--wp--preset--color--navy, #0b1d33);
	background: var(--wp--preset--color--cream, #f5f1e8);
	border: 0;
	border-left: 4px solid var(--wp--preset--color--gold, #c8a460);
	border-radius: 0 10px 10px 0;
}

.wp-block-quote.is-style-myh-legal-note cite {
	color: #69727c;
	font-size: 0.8125rem;
}

.wp-block-button__link {
	transition:
		color 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button__link:active {
	transform: none;
}

.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img {
	height: auto;
}

.entry-content :where(.wp-element-caption, .wp-block-image figcaption) {
	margin-top: 0.65rem;
	color: #69727c;
	font-size: 0.8125rem;
	line-height: 1.55;
	text-align: center;
}

.entry-content .wp-block-gallery {
	margin-block: 1.75rem;
}

.entry-content .wp-block-cover {
	min-height: min(520px, 70vh);
	border-radius: 14px;
	overflow: hidden;
}

.entry-content .wp-block-columns {
	align-items: stretch;
}

.entry-content .wp-block-column {
	min-width: 0;
}

.entry-content .wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.entry-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content .wp-block-table :where(th, td) {
	padding: 0.8rem 0.9rem;
	border: 1px solid #dedbd3;
	text-align: left;
}

.entry-content .wp-block-table th {
	color: var(--wp--preset--color--navy, #0b1d33);
	background: var(--wp--preset--color--cream, #f5f1e8);
}

.entry-content .wp-block-separator {
	width: 100%;
	height: 1px;
	margin-block: 2rem;
	background: #dedbd3;
	border: 0;
}

.entry-content .wp-block-embed__wrapper {
	max-width: 100%;
}

.entry-content .wp-block-embed iframe {
	max-width: 100%;
}

.entry-content .wp-block-breadcrumbs {
	margin-bottom: 1rem;
}

.entry-content .wp-block-breadcrumbs a {
	text-decoration: none;
}

.entry-content .wp-block-icon {
	color: var(--wp--preset--color--gold, #c8a460);
}

.entry-content .wp-block-accordion {
	margin-block: 1.75rem;
}

.entry-content .wp-block-accordion-item {
	padding-inline: 1.15rem;
	overflow: clip;
}

.entry-content .wp-block-accordion-heading__toggle {
	min-height: 54px;
	color: var(--wp--preset--color--navy, #0b1d33);
	font-family: var(--wp--preset--font-family--jakarta, sans-serif);
	font-weight: 700;
	text-decoration: none;
}

.entry-content .wp-block-accordion-heading__toggle:hover {
	color: #7d5c1f;
}

.entry-content .wp-block-accordion-panel {
	padding: 0 0 1.15rem;
	color: #44515d;
}

.modern-page-content.has-expanded-layout {
	display: grid;
	gap: 1.5rem;
}

.modern-page-content.has-expanded-layout > * {
	width: min(900px, 100%);
	margin-block: 0;
	margin-inline: auto;
}

.modern-page-content.has-expanded-layout > .alignwide {
	width: min(1180px, 100%) !important;
	max-width: none !important;
}

.modern-page-content.has-expanded-layout > .alignfull {
	width: 100vw !important;
	max-width: none !important;
	margin-right: calc(50% - 50vw) !important;
	margin-left: calc(50% - 50vw) !important;
}

.modern-page-content.has-standard-layout :where(.alignwide, .alignfull),
.modern-page-content.has-uagb-layout :where(.alignwide, .alignfull) {
	width: 100% !important;
	max-width: 100% !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

@media (max-width: 782px) {

	.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) {
		gap: 1rem;
	}

	.wp-block-group.is-style-myh-card,
	.wp-block-group.is-style-myh-dark-section {
		padding: 1.35rem;
		border-radius: 11px;
	}

	.entry-content .wp-block-cover {
		min-height: min(430px, 65vh);
		border-radius: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.wp-block-button__link {
		transition: none;
	}
}

/* stylelint-enable selector-class-pattern */
