/* ==========================================================================
   H5 Publishing theme styles
   Design source: Figma "H5 - Website Mock Oct 2026", Concept B + inner pages
   Breakpoints follow Baseline: base, 640 (@s), 960 (@m), 1200 (@l)
   ========================================================================== */

:root {
	--h5-ink: #141414;
	--h5-paper: #F4EEE3;
	--h5-brick: #9E2B1F;
	--h5-brick-dark: #74200F;
	--h5-sky: #2F5D7C;
	--h5-sky-dark: #20435A;
	--h5-white: #FFFFFF;
	--h5-stone: #E4DACB;
	--h5-grey: #5E5850;
	--h5-charcoal: #1F1D1A;

	--h5-font-head: "Libre Caslon Text", Georgia, "Times New Roman", serif;
	--h5-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

	--h5-container: 1360px;
	--h5-gutter: 24px;
	--h5-grid-gap: 24px;
	--h5-section-pad: 56px;
	--h5-section-pad-small: 40px;
	--h5-radius: 4px;
	--h5-radius-image: 2px;
	--h5-header-height: 70px;

	--h5-display: 3rem;
	--h5-h1: 2.5rem;
	--h5-h2: 2.25rem;
	--h5-h3: 1.625rem;
	--h5-h4: 1.125rem;
	--h5-lead: 1.125rem;
}

@media (min-width: 640px) {
	:root { --h5-gutter: 30px; --h5-grid-gap: 40px; --h5-section-pad: 60px; }
}
@media (min-width: 960px) {
	:root {
		--h5-gutter: 50px; --h5-grid-gap: 50px; --h5-header-height: 96px;
		--h5-display: 4rem; --h5-h1: 3rem; --h5-h2: 2.875rem; --h5-h3: 1.75rem; --h5-lead: 1.25rem;
	}
}
@media (min-width: 1200px) {
	:root {
		--h5-section-pad: 100px; --h5-section-pad-small: 50px;
		--h5-display: 5.25rem; --h5-h1: 4rem; --h5-h2: 3.5rem; --h5-h3: 2rem; --h5-h4: 1.25rem;
	}
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	font-family: var(--h5-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.01rem;
	color: var(--h5-ink);
	background: var(--h5-white);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--h5-brick); text-underline-offset: 3px; }
a:hover { color: var(--h5-brick-dark); }
:focus-visible { outline: 2px solid var(--h5-brick); outline-offset: 3px; }
strong, b { font-weight: 600; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--h5-font-head);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--h5-ink);
	margin: 0 0 0.5em;
}
h1 { font-size: var(--h5-h1); line-height: 1.12; }
h2 { font-size: var(--h5-h2); }
h3 { font-size: var(--h5-h3); line-height: 1.25; }
h4 { font-family: var(--h5-font-body); font-weight: 600; font-size: var(--h5-h4); line-height: 1.35; letter-spacing: 0; }
p { margin: 0 0 1em; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.h5-skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 1000;
	top: 12px; left: 12px; padding: 12px 18px; background: var(--h5-ink); color: var(--h5-white);
}

.h5-container { width: 100%; max-width: calc(var(--h5-container) + (var(--h5-gutter) * 2)); margin: 0 auto; padding: 0 var(--h5-gutter); }
.h5-container--small { max-width: calc(1040px + (var(--h5-gutter) * 2)); }
.h5-container--tiny { max-width: calc(880px + (var(--h5-gutter) * 2)); }

/* Shared text utilities (used by PHP templates and Elementor widgets) */
.h5-eyebrow, .h5-eyebrow .elementor-heading-title {
	font-family: var(--h5-font-body) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase;
	color: var(--h5-brick);
	margin: 0;
}
.h5-eyebrow--sky, .h5-eyebrow--sky .elementor-heading-title { color: var(--h5-sky) !important; }
.h5-lead, .h5-lead p { font-size: var(--h5-lead); line-height: 1.5; color: var(--h5-grey); }

/* --------------------------------------------------------------------------
   Buttons (52px, matches Baseline spec)
   -------------------------------------------------------------------------- */
a.h5-btn, button.h5-btn,
.elementor-widget-button.h5-btn .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 15px 30px;
	border: 0;
	border-radius: var(--h5-radius);
	font-family: var(--h5-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
	letter-spacing: 0;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
	background: var(--h5-brick);
	color: var(--h5-white);
	fill: currentColor;
}
a.h5-btn:hover, button.h5-btn:hover, .elementor-widget-button.h5-btn .elementor-button:hover { background: var(--h5-brick-dark); color: var(--h5-white); }
a.h5-btn svg, button.h5-btn svg { width: 14px; height: 14px; fill: currentColor; }
.elementor-widget-button .elementor-button svg { width: 14px; height: 14px; fill: currentColor; }

.h5-btn.h5-btn--dark:not(.elementor-widget), .elementor-widget-button.h5-btn--dark .elementor-button { background: var(--h5-ink); color: var(--h5-white); }
.h5-btn.h5-btn--dark:not(.elementor-widget):hover, .elementor-widget-button.h5-btn--dark .elementor-button:hover { background: #000; color: var(--h5-white); }

.h5-btn.h5-btn--outline-dark:not(.elementor-widget), .elementor-widget-button.h5-btn--outline-dark .elementor-button {
	background: transparent; color: var(--h5-ink); box-shadow: inset 0 0 0 2px var(--h5-ink);
}
.h5-btn.h5-btn--outline-dark:not(.elementor-widget):hover, .elementor-widget-button.h5-btn--outline-dark .elementor-button:hover { background: var(--h5-ink); color: var(--h5-white); }

.h5-btn.h5-btn--outline-light:not(.elementor-widget), .elementor-widget-button.h5-btn--outline-light .elementor-button {
	background: transparent; color: var(--h5-white); box-shadow: inset 0 0 0 2px var(--h5-white);
}
.h5-btn.h5-btn--outline-light:not(.elementor-widget):hover, .elementor-widget-button.h5-btn--outline-light .elementor-button:hover { background: var(--h5-white); color: var(--h5-ink); }

.elementor-widget-button.h5-btn--block .elementor-button { width: 100%; }
.elementor-widget-button.h5-btn { margin-right: 12px; }
.elementor-widget-button.h5-btn:last-child { margin-right: 0; }

/* Text link with arrow */
a.h5-link,
.elementor-widget-button.h5-link .elementor-button {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 0; min-height: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
	font-family: var(--h5-font-body); font-size: 16px; font-weight: 600; line-height: 1.5;
	color: var(--h5-brick); text-decoration: underline; text-underline-offset: 4px;
}
a.h5-link:hover, .elementor-widget-button.h5-link .elementor-button:hover { background: none; color: var(--h5-brick-dark); }
.elementor-widget-button.h5-link .elementor-button i, .elementor-widget-button.h5-link .elementor-button svg { font-size: 13px; width: 13px; }
.elementor-widget-button.h5-link--ink .elementor-button { color: var(--h5-ink); }
.elementor-widget-button.h5-link--light .elementor-button, a.h5-link--light { color: var(--h5-white); }
a.h5-link svg { width: 13px; height: 13px; fill: currentColor; flex: 0 0 13px; }
.elementor-widget-button.h5-link { margin-right: 32px; }

@media (max-width: 767px) {
	.elementor-widget-button.h5-btn { width: 100% !important; margin-right: 0; margin-bottom: 12px; }
	.elementor-widget-button.h5-btn .elementor-button { width: 100%; }
}

/* --------------------------------------------------------------------------
   Elementor integration
   -------------------------------------------------------------------------- */
body .elementor-widget-heading .elementor-heading-title {
	font-family: var(--h5-font-head);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--h5-ink);
}
body .elementor-widget-heading h1.elementor-heading-title { font-size: var(--h5-h1); line-height: 1.12; }
body .elementor-widget-heading h2.elementor-heading-title { font-size: var(--h5-h2); }
body .elementor-widget-heading h3.elementor-heading-title { font-size: var(--h5-h3); line-height: 1.25; }
body .elementor-widget-heading h4.elementor-heading-title,
body .elementor-widget-heading.h5-card-title .elementor-heading-title {
	font-family: var(--h5-font-body); font-weight: 600; font-size: var(--h5-h4); line-height: 1.35; letter-spacing: 0;
}
body .elementor-widget-heading.h5-display .elementor-heading-title { font-size: var(--h5-display); line-height: 1.1; }
body .elementor-widget-heading.h5-page-title .elementor-heading-title { font-size: var(--h5-h1); line-height: 1.12; }
body .elementor-widget-heading.h5-step .elementor-heading-title { color: var(--h5-sky); font-size: 2.5rem; }

body .elementor-widget-text-editor { font-family: var(--h5-font-body); font-size: 16px; line-height: 1.5; color: var(--h5-grey); }
body .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
body .elementor-widget-text-editor.h5-lead { font-size: var(--h5-lead); }
body .elementor-widget-text-editor.h5-small { font-size: 14px; }

.elementor-widget-image.h5-image img, .h5-image img { border-radius: var(--h5-radius-image); }

/* Sections */
.elementor-section.h5-section { padding-top: var(--h5-section-pad); padding-bottom: var(--h5-section-pad); padding-left: var(--h5-gutter); padding-right: var(--h5-gutter); }
.elementor-section.h5-section--small { padding-top: var(--h5-section-pad-small); padding-bottom: var(--h5-section-pad-small); }
.elementor-section.h5-section--flush-top { padding-top: 0; }
.elementor-section.h5-bg-paper { background-color: var(--h5-paper); }
.elementor-section.h5-bg-white { background-color: var(--h5-white); }
.elementor-section.h5-bg-sky { background-color: var(--h5-sky); }
.elementor-section.h5-bg-ink { background-color: var(--h5-ink); }
.elementor-section.h5-banner { padding-top: 28px; }
@media (min-width: 960px) { .elementor-section.h5-banner { padding-top: var(--h5-section-pad); } }

/* Widget spacing inside columns */
.elementor-section.h5-section .elementor-widget:not(:last-child) { margin-bottom: 20px; }
.elementor-section.h5-section .elementor-widget.h5-eyebrow:not(:last-child) { margin-bottom: 12px; }
.elementor-section.h5-section .elementor-widget-button.h5-btn,
.elementor-section.h5-section .elementor-widget-button.h5-link { margin-top: 8px; }
.elementor-section.h5-section .elementor-inner-section { margin-top: 30px; }
@media (min-width: 960px) { .elementor-section.h5-section .elementor-inner-section { margin-top: 50px; } }

/* Gutters between columns (Baseline grid gutters) */
.elementor-section.h5-gutter > .elementor-container { gap: var(--h5-grid-gap); }
.elementor-section.h5-gutter-loose > .elementor-container { gap: 48px; }
.elementor-section.h5-gutter-tight > .elementor-container { gap: 12px; }
@media (min-width: 960px) {
	.elementor-section.h5-gutter-loose > .elementor-container { gap: 100px; }
	.elementor-section.h5-gutter-tight > .elementor-container { gap: 25px; }
}
@media (max-width: 767px) {
	.elementor-section.h5-gutter > .elementor-container,
	.elementor-section.h5-gutter-loose > .elementor-container { gap: 28px; }
}
.elementor-section .elementor-column > .elementor-widget-wrap { padding: 0; }

/* Dark sections: sky, ink */
.h5-on-dark .elementor-heading-title, .h5-on-dark h1, .h5-on-dark h2, .h5-on-dark h3, .h5-on-dark h4 { color: var(--h5-white) !important; }
.h5-on-dark .elementor-widget-text-editor, .h5-on-dark p { color: var(--h5-stone); }
.h5-on-dark .h5-eyebrow .elementor-heading-title, .h5-on-dark .h5-eyebrow { color: var(--h5-stone) !important; }

.h5-center .elementor-heading-title, .h5-center .elementor-widget-text-editor { text-align: center; }

/* Script H5 mark behind banners (signature device) */
.elementor-section.h5-mark { position: relative; overflow: hidden; }
.elementor-section.h5-mark::after {
	content: ""; position: absolute; right: 6%; top: 50%; width: 560px; height: 427px; transform: translateY(-50%);
	background: url("../images/logo.svg") no-repeat center / contain; opacity: .07; pointer-events: none;
}
@media (max-width: 959px) { .elementor-section.h5-mark::after { width: 280px; height: 214px; right: -40px; } }

/* Cards */
.elementor-column.h5-card > .elementor-widget-wrap {
	background: var(--h5-paper); border-radius: var(--h5-radius); padding: 24px !important; align-content: flex-start;
}
.elementor-column.h5-card--white > .elementor-widget-wrap { background: var(--h5-white); }
@media (min-width: 960px) { .elementor-column.h5-card > .elementor-widget-wrap { padding: 40px !important; } }
.elementor-column.h5-card .elementor-widget.h5-push { margin-top: auto !important; width: 100%; }

/* Book cards */
.elementor-widget-image.h5-cover .elementor-widget-container {
	background: var(--h5-paper); border-radius: var(--h5-radius); padding: 30px 20px; display: flex; align-items: center; justify-content: center; min-height: 260px;
}
.elementor-widget-image.h5-cover img { max-height: 220px; width: auto; object-fit: contain; }
.elementor-widget-image.h5-cover--sky .elementor-widget-container { background: var(--h5-sky); }

/* Image tiles with overlay */
.elementor-column.h5-tile > .elementor-widget-wrap {
	min-height: 260px; align-content: flex-end; padding: 24px !important; border-radius: var(--h5-radius); overflow: hidden;
}
@media (min-width: 960px) { .elementor-column.h5-tile > .elementor-widget-wrap { min-height: 400px; padding: 50px !important; } }
.elementor-column.h5-tile .elementor-widget:not(:last-child) { margin-bottom: 12px !important; }

/* Pull quote / endorsement */
.h5-quote-card {
	margin: 0; padding: 24px; background: var(--h5-white); border-radius: var(--h5-radius);
}
.h5-bg-white .h5-quote-card { background: var(--h5-paper); }
@media (min-width: 960px) { .h5-quote-card { padding: 50px; } }
.h5-quote-card__mark { display: block; width: 32px; height: 32px; color: var(--h5-brick); margin-bottom: 24px; }
.h5-quote-card blockquote { margin: 0 0 24px; }
.h5-quote-card blockquote p { font-family: var(--h5-font-head); font-style: italic; font-size: 1.125rem; line-height: 1.45; color: var(--h5-ink); letter-spacing: -0.005em; }
@media (min-width: 960px) { .h5-quote-card blockquote p { font-size: 1.5rem; } .h5-quote-card--compact blockquote p { font-size: 1.1875rem; } }
.h5-quote-card cite { font-style: normal; display: block; }
.h5-quote-card cite strong { display: block; color: var(--h5-ink); }
.h5-quote-card cite span { font-size: 14px; color: var(--h5-grey); }

/* Checklist */
.elementor-widget-icon-list.h5-checklist .elementor-icon-list-item { padding-bottom: 10px; }
.elementor-widget-icon-list.h5-checklist .elementor-icon-list-icon i,
.elementor-widget-icon-list.h5-checklist .elementor-icon-list-icon svg { color: var(--h5-brick); fill: var(--h5-brick); font-size: 14px; width: 14px; }
.elementor-widget-icon-list.h5-checklist .elementor-icon-list-text { color: var(--h5-ink); font-size: 16px; padding-left: 12px; }

/* FAQ on the sky band (Elementor accordion) */
.elementor-widget-accordion.h5-faq .elementor-accordion-item { border: 0 !important; border-bottom: 1px solid var(--h5-sky-dark) !important; }
.elementor-widget-accordion.h5-faq .elementor-tab-title {
	padding: 28px 0 14px !important; border: 0 !important; display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; gap: 24px;
}
.elementor-widget-accordion.h5-faq .elementor-tab-title .elementor-accordion-title {
	font-family: var(--h5-font-body); font-weight: 600; font-size: var(--h5-h4); line-height: 1.35; color: var(--h5-white); text-decoration: none;
}
.elementor-widget-accordion.h5-faq .elementor-accordion-icon { color: var(--h5-white); float: none !important; }
.elementor-widget-accordion.h5-faq .elementor-accordion-icon svg { fill: var(--h5-white); width: 16px; }
.elementor-widget-accordion.h5-faq .elementor-tab-content { padding: 0 0 28px !important; border: 0 !important; color: var(--h5-stone); font-size: 16px; line-height: 1.5; }
.h5-bg-white .elementor-widget-accordion.h5-faq .elementor-accordion-item,
.h5-bg-paper .elementor-widget-accordion.h5-faq .elementor-accordion-item { border-bottom-color: var(--h5-stone) !important; }
.h5-bg-white .elementor-widget-accordion.h5-faq .elementor-accordion-title,
.h5-bg-paper .elementor-widget-accordion.h5-faq .elementor-accordion-title { color: var(--h5-ink); }
.h5-bg-white .elementor-widget-accordion.h5-faq .elementor-tab-content,
.h5-bg-paper .elementor-widget-accordion.h5-faq .elementor-tab-content { color: var(--h5-grey); }

/* Mobile sliders (book rails) */
@media (max-width: 767px) {
	.elementor-section.h5-slider-mobile > .elementor-container {
		flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px !important;
		margin-right: calc(var(--h5-gutter) * -1); padding-right: var(--h5-gutter); scrollbar-width: none;
	}
	.elementor-section.h5-slider-mobile > .elementor-container::-webkit-scrollbar { display: none; }
	.elementor-section.h5-slider-mobile > .elementor-container > .elementor-column { width: 72% !important; flex: 0 0 72%; scroll-snap-align: start; }
	.elementor-section.h5-slider-mobile .h5-hide-mobile { display: none; }
}
.h5-slider-progress { height: 3px; background: var(--h5-stone); margin-top: 20px; position: relative; }
.h5-slider-progress span { position: absolute; left: 0; top: 0; height: 3px; background: var(--h5-brick); width: 30%; transition: width .2s ease; }
@media (min-width: 768px) { .h5-slider-progress { display: none; } }

/* Gallery */
.elementor-section.h5-gallery .elementor-widget-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--h5-radius-image); }

/* Breadcrumbs */
.h5-breadcrumbs { font-size: 14px; color: var(--h5-grey); margin: 0 0 24px; }
.h5-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.h5-breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--h5-grey); }
.h5-breadcrumbs a { color: var(--h5-grey); text-decoration: none; }
.h5-breadcrumbs a:hover { color: var(--h5-brick); text-decoration: underline; }
.h5-breadcrumbs [aria-current] { color: var(--h5-ink); }

/* --------------------------------------------------------------------------
   News cards ([h5_news])
   -------------------------------------------------------------------------- */
.h5-news { display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.h5-news::-webkit-scrollbar { display: none; }
.h5-news > * { scroll-snap-align: start; }
@media (min-width: 768px) {
	.h5-news { grid-auto-flow: row; grid-template-columns: repeat(var(--h5-news-cols, 2), minmax(0, 1fr)); gap: var(--h5-grid-gap); overflow: visible; }
}
.h5-news-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.h5-news-card__image { aspect-ratio: 3 / 2; background: var(--h5-stone); border-radius: var(--h5-radius-image); overflow: hidden; }
.h5-news-card__image img { width: 100%; height: 100%; object-fit: cover; }
.h5-news-card__meta { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--h5-sky); }
.h5-news-card--fyt .h5-news-card__meta { color: var(--h5-brick); }
.h5-news-card__title { font-family: var(--h5-font-body); font-size: var(--h5-h4); font-weight: 600; line-height: 1.35; margin: 0; color: var(--h5-ink); }
.h5-news-card__excerpt { font-size: 14px; color: var(--h5-grey); margin: 0; }
.h5-news-card .h5-link { margin-top: auto; }
.h5-news-controls { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.h5-news-controls .h5-slider-progress { flex: 1; margin: 0; }
.h5-news-next {
	flex: 0 0 44px; height: 44px; border-radius: 50%; border: 0; background: var(--h5-ink); color: var(--h5-white);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.h5-news-next svg { width: 14px; height: 14px; fill: currentColor; }
@media (min-width: 768px) { .h5-news-controls { display: none; } }
.h5-news-empty { padding: 24px; background: var(--h5-paper); border-radius: var(--h5-radius); color: var(--h5-grey); margin: 0; }

/* --------------------------------------------------------------------------
   Forms ([h5_contact_form], [h5_newsletter])
   -------------------------------------------------------------------------- */
.h5-form { display: grid; gap: 16px; }
.h5-form__row { display: grid; gap: 16px; }
@media (min-width: 768px) { .h5-form__row--2 { grid-template-columns: 1fr 1fr; } .h5-form--inline { grid-template-columns: 1fr auto; align-items: end; } }
.h5-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--h5-ink); }
.h5-form input[type="text"], .h5-form input[type="email"], .h5-form select, .h5-form textarea {
	width: 100%; min-height: 52px; padding: 0 18px; border: 1px solid var(--h5-stone); border-radius: var(--h5-radius);
	background: var(--h5-white); font: inherit; color: var(--h5-ink);
}
.h5-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%235E5850' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 14px; padding-right: 44px; }
.h5-form textarea { min-height: 160px; padding: 16px 18px; resize: vertical; }
.h5-form input:focus, .h5-form select:focus, .h5-form textarea:focus { outline: 2px solid var(--h5-sky); outline-offset: 0; border-color: var(--h5-sky); }
.h5-form__hp { position: absolute; left: -9999px; }
.h5-form__notice { padding: 14px 18px; border-radius: var(--h5-radius); margin: 0 0 16px; }
.h5-form__notice--ok { background: #E6F0E8; color: #1E4D2B; }
.h5-form__notice--error { background: #F6E3E0; color: var(--h5-brick-dark); }
.h5-form-panel { background: var(--h5-paper); border-radius: var(--h5-radius); padding: 24px; }
@media (min-width: 960px) { .h5-form-panel { padding: 50px; } }
.h5-form-panel h3 { margin-bottom: 20px; }
.h5-contact-line { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; font-size: 16px; color: var(--h5-ink); }
.h5-contact-line svg { width: 22px; height: 22px; fill: var(--h5-brick); flex: 0 0 22px; }
.h5-contact-line a { font-family: var(--h5-font-body); font-weight: 600; font-size: var(--h5-h4); color: var(--h5-ink); text-decoration: none; }
.h5-admin-note { padding: 12px 16px; border: 1px dashed #E0218A; color: #E0218A; font-size: 14px; border-radius: var(--h5-radius); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.h5-header { position: relative; z-index: 50; }
.h5-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: var(--h5-header-height); padding: 0 var(--h5-gutter);
}
@media (min-width: 960px) { .h5-header__inner { padding: 0 50px; } }
.h5-header--light { background: var(--h5-white); border-bottom: 1px solid var(--h5-stone); position: sticky; top: 0; }
.admin-bar .h5-header--light { top: 32px; }
@media (max-width: 782px) { .admin-bar .h5-header--light { top: 0; } }
.h5-header--dark { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.admin-bar .h5-header--dark { top: 32px; }
@media (max-width: 782px) { .admin-bar .h5-header--dark { top: 46px; } }
.h5-header--dark.is-solid { position: fixed; background: var(--h5-ink); }

.h5-logo { display: inline-flex; flex: 0 0 auto; }
.h5-logo img, .h5-logo svg { height: 44px; width: auto; }
@media (min-width: 960px) { .h5-logo img, .h5-logo svg { height: 56px; } }

.h5-nav { display: none; }
@media (min-width: 1024px) { .h5-nav { display: block; } }
.h5-nav ul { list-style: none; margin: 0; padding: 0; }
.h5-nav > ul { display: flex; gap: 40px; align-items: center; }
.h5-nav li { position: relative; }
.h5-nav a {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 0;
	font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--h5-ink); text-decoration: none;
}
.h5-header--dark .h5-nav a { color: var(--h5-white); }
.h5-nav a:hover, .h5-nav .current-menu-item > a, .h5-nav .current-menu-ancestor > a, .h5-nav .current_page_item > a { color: var(--h5-brick); }
.h5-header--dark .h5-nav a:hover, .h5-header--dark .h5-nav .current-menu-item > a { color: var(--h5-stone); }
.h5-nav .menu-item-has-children > a::after {
	content: ""; width: 10px; height: 10px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.h5-nav .sub-menu {
	position: absolute; top: 100%; left: -18px; min-width: 200px; padding: 8px 0; background: var(--h5-white);
	border: 1px solid var(--h5-stone); border-radius: var(--h5-radius); box-shadow: 0 8px 24px rgba(20,20,20,.08);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.h5-nav li:hover > .sub-menu, .h5-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.h5-nav .sub-menu a { display: block; padding: 8px 18px; color: var(--h5-ink) !important; }
.h5-nav .sub-menu a:hover { background: var(--h5-paper); }

.h5-header__actions { display: flex; align-items: center; gap: 20px; }
.h5-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
	background: none; border: 0; color: var(--h5-ink); cursor: pointer;
}
.h5-header--dark .h5-icon-btn { color: var(--h5-white); }
.h5-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.h5-header__cta { display: none !important; }
@media (min-width: 1024px) { .h5-header__cta { display: inline-flex !important; } .h5-burger { display: none; } }

/* Search panel */
.h5-search-panel { background: var(--h5-paper); border-bottom: 1px solid var(--h5-stone); padding: 20px var(--h5-gutter); }
.h5-search-panel[hidden] { display: none; }
.h5-search-form { display: flex; gap: 12px; max-width: 880px; margin: 0 auto; }
.h5-search-form input[type="search"] { flex: 1; min-height: 52px; padding: 0 18px; border: 1px solid var(--h5-stone); border-radius: var(--h5-radius); font: inherit; background: var(--h5-white); }

/* Off-canvas menu (Baseline offcanvas_width 270 / 350@s) */
.h5-offcanvas { position: fixed; inset: 0; z-index: 100; }
.h5-offcanvas[hidden] { display: none; }
.h5-offcanvas__backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.5); }
.h5-offcanvas__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(350px, 86vw); background: var(--h5-white);
	padding: 24px 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px;
}
.h5-offcanvas__close { align-self: flex-end; }
.h5-offcanvas ul { list-style: none; margin: 0; padding: 0; }
.h5-offcanvas li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--h5-stone); font-size: 18px; font-weight: 500; color: var(--h5-ink); text-decoration: none; }
.h5-offcanvas .sub-menu a { padding-left: 18px; font-size: 16px; color: var(--h5-grey); }
.h5-offcanvas .h5-btn { width: 100%; }
body.h5-menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.h5-footer { padding: 48px var(--h5-gutter) 24px; }
@media (min-width: 640px) { .h5-footer { padding-top: 60px; } }
@media (min-width: 960px) { .h5-footer { padding: 80px var(--h5-gutter) 0; } }
.h5-footer--light { background: var(--h5-paper); color: var(--h5-grey); }
.h5-footer--dark { background: var(--h5-charcoal); color: var(--h5-stone); }
.h5-footer__inner { max-width: var(--h5-container); margin: 0 auto; }
.h5-footer__top { display: grid; gap: 0; }
@media (min-width: 960px) { .h5-footer__top { grid-template-columns: 300px 1fr repeat(3, 240px); gap: 50px; padding-bottom: 60px; } }
.h5-footer__brand { margin-bottom: 32px; }
.h5-footer__brand .h5-logo img, .h5-footer__brand .h5-logo svg { height: 56px; }
@media (min-width: 960px) { .h5-footer__brand .h5-logo img, .h5-footer__brand .h5-logo svg { height: 72px; } .h5-footer__brand { margin: 0; } }
.h5-footer__tagline { margin: 16px 0 0; font-size: 16px; line-height: 1.8; }
.h5-footer__spacer { display: none; }
@media (min-width: 960px) { .h5-footer__spacer { display: block; } }
.h5-footer__col { border-top: 1px solid var(--h5-stone); }
.h5-footer--dark .h5-footer__col { border-top-color: var(--h5-grey); }
@media (min-width: 960px) { .h5-footer__col { border: 0; } }
.h5-footer__col summary {
	list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer;
	font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--h5-ink);
}
.h5-footer--dark .h5-footer__col summary { color: var(--h5-white); }
.h5-footer__col summary::-webkit-details-marker { display: none; }
.h5-footer__col summary svg { width: 14px; height: 14px; fill: currentColor; transition: transform .15s ease; }
.h5-footer__col[open] summary svg { transform: rotate(45deg); }
@media (min-width: 960px) { .h5-footer__col summary { padding: 0 0 14px; cursor: default; pointer-events: none; } .h5-footer__col summary svg { display: none; } }
.h5-footer__col ul { list-style: none; margin: 0; padding: 0 0 18px; display: grid; gap: 8px; }
@media (min-width: 960px) { .h5-footer__col ul { padding: 0; } }
.h5-footer a { color: inherit; text-decoration: none; }
.h5-footer a:hover { color: var(--h5-brick); text-decoration: underline; }
.h5-footer--dark a:hover { color: var(--h5-white); }
.h5-footer__email { display: inline-flex; align-items: center; gap: 10px; }
.h5-footer__email svg { width: 14px; height: 14px; fill: var(--h5-brick); }
.h5-footer--dark .h5-footer__email svg { fill: var(--h5-stone); }
.h5-footer__base {
	display: flex; flex-direction: column; gap: 8px; padding: 24px 0 0; border-top: 1px solid var(--h5-stone); font-size: 14px;
}
.h5-footer--dark .h5-footer__base { border-top-color: var(--h5-grey); }
@media (min-width: 960px) { .h5-footer__base { flex-direction: row; justify-content: space-between; padding: 25px 0; font-size: 15px; } }
.h5-footer__base ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   Classic templates (blog, page.php, 404)
   -------------------------------------------------------------------------- */
.h5-page-banner { background: var(--h5-paper); padding: 28px 0 var(--h5-section-pad); }
@media (min-width: 960px) { .h5-page-banner { padding-top: var(--h5-section-pad); } }
.h5-page-banner h1 { margin: 0; }
.h5-page-banner .h5-lead { margin: 16px 0 0; max-width: 760px; }
.h5-content { padding: var(--h5-section-pad) 0; }
.h5-entry { max-width: 760px; }
.h5-entry > * + * { margin-top: 1em; }
.h5-entry img { border-radius: var(--h5-radius-image); }
.h5-entry blockquote { margin: 1.5em 0; padding-left: 24px; border-left: 3px solid var(--h5-brick); font-family: var(--h5-font-head); font-style: italic; font-size: 1.25rem; }
.h5-post-grid { display: grid; gap: var(--h5-grid-gap); }
@media (min-width: 768px) { .h5-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.h5-pagination { margin-top: 50px; display: flex; gap: 12px; flex-wrap: wrap; }
.h5-pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--h5-stone); border-radius: var(--h5-radius); text-decoration: none; color: var(--h5-ink); padding: 0 12px; }
.h5-pagination .current { background: var(--h5-ink); color: var(--h5-white); border-color: var(--h5-ink); }
.h5-404 { text-align: left; }

/* Elementor button icons always trail the label */
.elementor-widget-button.h5-btn .elementor-button-content-wrapper,
.elementor-widget-button.h5-link .elementor-button-content-wrapper { display: inline-flex; flex-direction: row-reverse !important; align-items: center; gap: 10px; }
.elementor-widget-button.h5-btn .elementor-button-icon,
.elementor-widget-button.h5-link .elementor-button-icon { order: 0 !important; margin: 0 !important; }
.elementor-widget-button.h5-link .elementor-button-icon svg { width: 13px; height: 13px; }

.h5-news-card__title a { color: inherit; text-decoration: none; }
.h5-news-card__title a:hover { color: var(--h5-brick); text-decoration: underline; }
.elementor-widget-button.h5-btn--block { width: 100% !important; margin-right: 0 !important; }
.elementor-widget-button.h5-btn--block .elementor-button { width: 100% !important; }
.elementor-column.h5-card .elementor-widget-button.h5-btn--block { margin-top: auto !important; }
.elementor-column.h5-card > .elementor-widget-wrap { align-content: flex-start; }
body.h5-no-newsletter .elementor-section.h5-newsletter { display: none; }
