/**
 * WYSIWYG HTML Editor Component Styles
 *
 * Mobile-first rich-text styling for TinyMCE content.
 */

.block-wysiwyg-html-editor {
	position: relative;
	padding-block: var(--spacing-6);
}

.blog-not-hero .block-wysiwyg-html-editor{
    padding-block: 0;
}

.block-wysiwyg-html-editor__headline {
	font-family: var(--font-heading-family);
	font-size: 1.75rem;
	font-weight: var(--font-heading-weight, 700);
	line-height: 1;
	margin: 0;
	 max-width: 62.5rem;
}

.block-wysiwyg-html-editor__content {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-text, inherit);
	word-wrap: break-word;
	max-width: 62.5rem;
	width: 100%;
}

.block-wysiwyg-html-editor__placeholder {
	background-color: var(--color-snow, #f8f9fa);
	border: 2px dashed var(--color-slate, #cbd5e1);
	border-radius: 0.5rem;
	padding: var(--spacing-8);
	text-align: center;
	color: var(--color-text-muted, currentColor);
}

.block-wysiwyg-html-editor__placeholder p {
	margin: 0;
}

.block-wysiwyg-html-editor__content > *:first-child {
	margin-block-start: 0;
}

.block-wysiwyg-html-editor__content > *:last-child {
	margin-block-end: 0;
}

.block-wysiwyg-html-editor__content h1,
.block-wysiwyg-html-editor__content h2,
.block-wysiwyg-html-editor__content h3,
.block-wysiwyg-html-editor__content h4,
.block-wysiwyg-html-editor__content h5,
.block-wysiwyg-html-editor__content h6 {
	font-family: var(--font-heading-family);
	font-weight: var(--font-heading-weight, 700);
	line-height: 1.25;
	margin-block: var(--spacing-8) var(--spacing-4);
	color: var(--color-text-dark, currentColor);
}

.block-wysiwyg-html-editor__content h1 {
	font-size: clamp(1.875rem, 5vw, 2.75rem);
}

.block-wysiwyg-html-editor__content h2 {
	font-size: clamp(1.625rem, 4.5vw, 2.25rem);
}

.block-wysiwyg-html-editor__content h3 {
	font-size: clamp(1.375rem, 4vw, 1.875rem);
}

.block-wysiwyg-html-editor__content h4 {
	font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.block-wysiwyg-html-editor__content h5 {
	font-size: clamp(1.125rem, 2.5vw, 1.25rem);
}

.block-wysiwyg-html-editor__content h6 {
	font-size: 1rem;
}

.block-wysiwyg-html-editor__content p {
	color: var(--color-text, inherit);
	font-size: 1rem;
	font-weight: var(--font-body-weight, 400);
	font-style:normal;
	font-family: var(--font-body-family);
	line-height: 1.75em;
	margin-bottom: 0;
	margin-top: 1.5rem;
}

.block-wysiwyg-html-editor__content b,
.block-wysiwyg-html-editor__content strong {
	color: #000;
	font-weight: 600;
	font-style:normal;
	text-decoration-skip-ink: none;
	text-decoration-thickness: auto;
	text-underline-offset: auto;
	text-underline-position: from-font;
}

.block-wysiwyg-html-editor__content em {
	font-style: italic;
}

.block-wysiwyg-html-editor__content sup,
.block-wysiwyg-html-editor__content sub {
	font-size: 0.75em;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

.block-wysiwyg-html-editor__content sup {
	top: -0.5em;
}

.block-wysiwyg-html-editor__content sub {
	bottom: -0.25em;
}

.block-wysiwyg-html-editor__content del {
	text-decoration: line-through;
}

.block-wysiwyg-html-editor__content ul,
.block-wysiwyg-html-editor__content ol {
	color: #4C4C4C;
	font-weight: var(--font-body-weight, 400);
	margin: 1.5rem 0 var(--spacing-5);
	padding-inline-start: 1.5rem;
}

.block-wysiwyg-html-editor__content ul ol,
.block-wysiwyg-html-editor__content ul ul,
.block-wysiwyg-html-editor__content ol ol,
.block-wysiwyg-html-editor__content ol ul {
	margin-top: .5rem;
}


.block-wysiwyg-html-editor__content li {
	margin-block-end: 0.5rem;
}
.block-wysiwyg-html-editor__content ul li::marker {
  color: #0F9ED5;
}

.block-wysiwyg-html-editor__content a {
	color: inherit;
	text-decoration: underline;
	transition: 0.25s;
}

.block-wysiwyg-html-editor__content a:hover,
.block-wysiwyg-html-editor__content a:focus-visible {
	color: var(--color-black, #000);
}

.block-wysiwyg-html-editor__content figure {
	margin: 0 0 var(--spacing-6);
}

.block-wysiwyg-html-editor__content img {
	height: auto;
    width: 100%;
	max-width: 100%;
    margin-top: 2.0625rem;
    border-radius: 0.5rem;
}

.block-wysiwyg-html-editor__content figcaption {
	font-size: 0.875rem;
	margin-top: var(--spacing-2);
	color: var(--color-text-muted, currentColor);
}

.block-wysiwyg-html-editor__content .wp-caption-text,
.block-wysiwyg-html-editor__content .wp-element-caption {
	font-size: 0.875rem;
	line-height: 1.5;
	margin-top: var(--spacing-2);
	color: var(--color-text-muted, currentColor);
}

.block-wysiwyg-html-editor__embed {
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	max-height: 33.75rem; /* 540px cap at large screens */
	min-height: 12rem; /* 192px floor on small screens */
	background-color: var(--color-surface-muted, #f8fafc);
	border-radius: 0.5rem;
	overflow: hidden;
}

.block-wysiwyg-html-editor__embed-figure {
	margin: 0 0 var(--spacing-6);
}

.block-wysiwyg-html-editor__embed-caption {
	font-size: 0.875rem;
	line-height: 1.5;
	margin-top: var(--spacing-2);
	color: var(--color-text-muted, currentColor);
}

.block-wysiwyg-html-editor__embed--resizable {
	resize: both;
	overflow: auto;
	min-width: 16rem;
	min-height: 10rem;
}

.block-wysiwyg-html-editor__embed-iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.block-wysiwyg-html-editor__content table {
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	display: block;
	overflow-x: auto;
	max-width: 100%;
	width: auto;
	width: max-content;
	margin: 0 0 var(--spacing-6);
	-webkit-overflow-scrolling: touch;
}

.block-wysiwyg-html-editor__content thead,
.block-wysiwyg-html-editor__content tbody {
	background: transparent;
}

.block-wysiwyg-html-editor__content th,
.block-wysiwyg-html-editor__content td {
	border: 1px solid var(--color-border, #d1d5db);
	padding: 0.625rem 0.75rem;
	text-align: left;
	vertical-align: top;
	white-space: nowrap;
}

.block-wysiwyg-html-editor__content th {
	font-weight: 700;
	background-color: var(--color-surface-muted, #f8fafc);
}

.block-wysiwyg-html-editor__content .primary-button,
.block-wysiwyg-html-editor__content .secondary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-full, 9999px);
	font-family: var(--font-family-base, inherit);
	font-size: var(--text-base, 1rem);
	font-weight: var(--font-weight-semibold, 600);
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	margin: 0.125rem 0.25rem 0.125rem 0;
	white-space: nowrap;
}

.block-wysiwyg-html-editor__content a.primary-button,
.block-wysiwyg-html-editor__content a.secondary-button,
.block-wysiwyg-html-editor__content a.primary-button:hover,
.block-wysiwyg-html-editor__content a.secondary-button:hover,
.block-wysiwyg-html-editor__content a.primary-button:focus-visible,
.block-wysiwyg-html-editor__content a.secondary-button:focus-visible {
	text-decoration: none;
}

.block-wysiwyg-html-editor__content .primary-button {
	background: linear-gradient(135deg, var(--color-primary, #0f9ed5) 0%, var(--color-primary-dark, #08526f) 100%);
	color: var(--color-white, #fff);
	border-color: transparent;
	text-shadow: 0 4px 10px rgb(0 0 0 / 0.25);
}

.block-wysiwyg-html-editor__content .primary-button a
{
	text-decoration: none;
	text-underline-offset:inherit;
    text-decoration-thickness: inherit;
}

.block-wysiwyg-html-editor__content .primary-button:hover,
.block-wysiwyg-html-editor__content .primary-button:focus-visible {
	background: var(--color-primary-dark, #08526f);
	border-color: transparent;
	color: var(--color-white, #fff);
	text-decoration: none;
}

.block-wysiwyg-html-editor__content .primary-button:active {
	background: var(--color-primary-dark, #08526f);
	border-color: transparent;
	filter: brightness(0.92);
}

/* Blog-details page: make WYSIWYG primary button hover match header CTA fade. */
body.page-id-179 .block-wysiwyg-html-editor__content .primary-button {
	background: var(--color-primary-dark, #08526f);
	overflow: hidden;
	position: relative;
	z-index: 0;
}

body.page-id-179 .block-wysiwyg-html-editor__content .primary-button::before {
	background: linear-gradient(100deg, var(--color-primary, #0f9ed5) 0%, var(--color-primary-dark, #08526f) 112.37%);
	border-radius: inherit;
	content: "";
	inset: 0;
	opacity: 1;
	position: absolute;
	transition: opacity 0.15s;
	z-index: -1;
}

body.page-id-179 .block-wysiwyg-html-editor__content .primary-button:hover::before,
body.page-id-179 .block-wysiwyg-html-editor__content .primary-button:focus-visible::before {
	opacity: 0;
}

.block-wysiwyg-html-editor__content .secondary-button {
	background-color: transparent;
	color: var(--color-black, #000);
	border-color: transparent;
	padding: 0;
	gap: var(--spacing-3, 0.75rem);
	font-family: var(--font-family-sans, var(--font-family-base, inherit));
	font-size: var(--font-size-base, 1rem);
	font-weight: var(--font-weight-medium, 500);
	line-height: var(--line-height-normal, 1.2);
	transition: color 0.25s ease;
}

/* Shared arrow pill — geometry from the global --arrow-pill-* tokens
   (theme app.css). Fixed at every breakpoint; never resize it in a media
   query. Editor content is authored as plain HTML, so the pill is a
   pseudo-element rather than real markup; the arrow is therefore a background
   image and its stroke is hard-coded white to match the brand-blue fill. */
.block-wysiwyg-html-editor__content .secondary-button::after {
	content: "";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: var(--arrow-pill-inline-size, 2.625rem);
	block-size: var(--arrow-pill-block-size, 1.9375rem);
	border-radius: var(--arrow-pill-radius, 999rem);
	background-color: var(--color-primary, #0f9ed5);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M1 7H13M13 7L7.5 1.5M13 7L7.5 12.5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: var(--arrow-pill-icon-size, 0.875rem) var(--arrow-pill-icon-size, 0.875rem);
	flex-shrink: 0;
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.block-wysiwyg-html-editor__content .secondary-button a
{
	text-decoration: none;
	text-underline-offset:inherit;
    text-decoration-thickness: inherit;
}

.block-wysiwyg-html-editor__content .secondary-button:hover,
.block-wysiwyg-html-editor__content .secondary-button:focus-visible {
	background-color: transparent;
	border-color: transparent;
	color: var(--color-black, #000);
	text-decoration: none;
}

.block-wysiwyg-html-editor__content .secondary-button:hover::after,
.block-wysiwyg-html-editor__content .secondary-button:focus-visible::after {
	transform: translateX(var(--arrow-pill-shift, 0.125rem));
	background-color: var(--color-primary-dark, #08526f);
}

.block-wysiwyg-html-editor__content blockquote {
    position: relative;
    margin: 0 0 var(--spacing-6);
    padding: 2.5rem 0 0 0;
    border: none;
    font-style: normal;
}

.block-wysiwyg-html-editor__content blockquote::before {
    content: "“";
    position: absolute;
    top: 0;
    left: 0;
    font-size: 2.875rem;
    line-height: 1.2;
    font-weight: var(--font-heading-weight, 700);
    color: var(--color-text-dark, currentColor);
    font-family: var(--font-heading-family);
    text-transform: uppercase;
}

.block-wysiwyg-html-editor__content blockquote p {
	margin: 0;
	margin-top: 1.3125rem;
	color: var(--color-text-dark, currentColor);
	font-family: var(--font-heading-family);
	font-size: 1.75rem;
	font-style: normal;
	font-weight: var(--font-semibold-weight, 600);
	line-height: 1; /* 100% */
}

.block-wysiwyg-html-editor__content hr {
	border: 0;
	border-top: 1px solid var(--color-border, #d1d5db);
}

@media (width <= 768px) {
	.block-wysiwyg-html-editor__content .primary-button,
	.block-wysiwyg-html-editor__content .secondary-button {
		width: 100%;
		max-width: 100%;
	}
}


@media (width >= 1025px) {

.block-wysiwyg-html-editor__headline {
		font-size: 4rem;
}

.block-wysiwyg-html-editor__content blockquote::before {	
	  font-size: 4.875rem;
}
.block-wysiwyg-html-editor__content blockquote p {
	font-size: 4rem;	
}
  
.block-wysiwyg-html-editor__content th,
.block-wysiwyg-html-editor__content td {
		white-space: normal;
	}
}
