/**
 * Hybrid Mode — site chrome & templates (front end only).
 *
 * Scope rules:
 *  - Element styles are kept minimal and low-specificity so page-builder
 *    widgets (Elementor, Beaver Builder) keep full control of their styling.
 *  - Long-form typography only applies inside .hm-prose (never on builder pages).
 *  - Desktop navigation rules are generated in inc/customizer.php
 *    (breakpoint is a Customizer setting).
 */

/* ==========================================================================
   1. Base
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 8rem; }
body {
	margin: 0;
	background-color: var(--hm-c-bg);
	color: var(--hm-c-text);
	font-family: var(--hm-font-body);
	font-size: var(--hm-font-size-base);
	line-height: var(--hm-line-height);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overscroll-behavior-y: none;
}
*, *::before, *::after { box-sizing: border-box; }
img, svg, video { max-width: 100%; height: auto; }
.hm-icon { flex: none; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 { text-transform: var(--hm-heading-transform); }

:focus-visible { outline: 2px solid var(--hm-c-primary); outline-offset: 2px; }

.hm-site { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.hm-main { flex: 1 0 auto; outline: 0; }

.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	left: 1rem;
	top: 1rem;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: var(--hm-c-primary);
	color: var(--hm-c-on-primary);
	font-weight: 700;
	text-decoration: none;
}

/* Containers */
.hm-container {
	width: 100%;
	max-width: calc(var(--hm-container) + 2 * var(--hm-gutter));
	margin-inline: auto;
	padding-inline: var(--hm-gutter);
}

/* ==========================================================================
   2. Header
   ========================================================================== */
.hm-header {
	position: relative;
	z-index: 50;
	width: 100%;
	background: color-mix(in srgb, var(--hm-c-lowest) 95%, transparent);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	border-bottom: 1px solid var(--hm-c-high);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.hm-sticky-header .hm-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
}
@media (max-width: 600px) {
	.admin-bar.hm-sticky-header .hm-header { top: 0; }
}

/* Breaking ticker */
.hm-ticker {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.375rem var(--hm-gutter);
	overflow: hidden;
	background: var(--hm-c-lowest);
	border-bottom: 1px solid color-mix(in srgb, var(--hm-c-high) 60%, transparent);
	font-size: 12px;
	line-height: 16px;
}
.hm-ticker__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	flex: none;
	padding: 2px 8px;
	border-radius: var(--hm-radius);
	background: var(--hm-c-primary);
	color: var(--hm-c-on-primary);
	font-size: 10px;
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.hm-ticker__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 3rem), transparent);
	mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 3rem), transparent);
}
.hm-ticker__track { display: flex; width: max-content; }
.hm-ticker__list {
	display: flex;
	flex: none;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--hm-c-muted);
}
.hm-ticker__item { padding-right: 0.75rem; }
.hm-ticker__item + .hm-ticker__item::before { content: "•"; padding-right: 0.75rem; }
.hm-ticker__item a { color: inherit; text-decoration: none; }
.hm-ticker__item a:hover { color: var(--hm-c-text); }
.hm-ticker__label { color: var(--hm-c-text); font-weight: 700; }
.hm-ticker__label.is-highlight { color: var(--hm-c-primary); }
.hm-ticker.is-animated .hm-ticker__list { padding-right: 3rem; }
.hm-ticker.is-animated .hm-ticker__track { animation: hm-marquee 60s linear infinite; }
.hm-ticker.is-animated:hover .hm-ticker__track,
.hm-ticker.is-animated:focus-within .hm-ticker__track { animation-play-state: paused; }
@keyframes hm-marquee {
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.hm-ticker.is-animated .hm-ticker__track { animation: none; }
	.hm-ticker__list[aria-hidden="true"] { display: none; }
}
.hm-ticker__meta {
	display: none;
	flex: none;
	align-items: center;
	gap: 0.75rem;
	font-size: 10px;
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hm-c-muted);
}
.hm-ticker__meta .is-accent { color: var(--hm-c-primary); }
.hm-ticker__sep { color: var(--hm-c-highest); }
@media (min-width: 768px) {
	.hm-ticker__meta { display: flex; }
}
@media (max-width: 479px) {
	.hm-ticker__badge { font-size: 9px; padding-inline: 6px; }
}

/* Main bar */
.hm-header__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 80px;
	padding-inline: var(--hm-gutter);
}
.hm-header__brand { display: flex; align-items: center; flex: none; }
.hm-header__brand .custom-logo-link,
.hm-footer__logo .custom-logo-link { display: inline-flex; align-items: center; }
.hm-header__brand .custom-logo,
.hm-footer__logo .custom-logo {
	display: block;
	width: auto;
	height: var(--hm-logo-height);
	max-height: 64px;
	object-fit: contain;
}
.hm-logo__text {
	font-family: var(--hm-font-heading);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hm-c-text);
}
.hm-logo { text-decoration: none; }

/* Mobile toggle */
.hm-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--hm-c-highest);
	border-radius: var(--hm-btn-radius);
	background: var(--hm-c-high);
	color: var(--hm-c-text);
	cursor: pointer;
}
.hm-menu-toggle:hover { color: var(--hm-c-primary); }
.hm-menu-toggle__close,
.hm-menu-toggle[aria-expanded="true"] .hm-menu-toggle__open { display: none; }
.hm-menu-toggle[aria-expanded="true"] .hm-menu-toggle__close { display: block; }

/* Navigation — mobile first (desktop rules generated per breakpoint). */
.hm-primary-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc(100vh - 120px);
	max-height: calc(100dvh - 120px);
	overflow-y: auto;
	padding: 0.5rem var(--hm-gutter) 1.5rem;
	background: var(--hm-c-lowest);
	border-top: 1px solid var(--hm-c-high);
	border-bottom: 1px solid var(--hm-c-high);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
.hm-primary-nav.is-open { display: block; }
.hm-menu,
.hm-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.hm-menu { display: flex; flex-direction: column; }
.hm-menu li { position: relative; }
.hm-menu a {
	display: block;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--hm-c-high);
	color: var(--hm-c-muted);
	font-family: var(--hm-font-heading);
	font-size: 15px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--hm-radius);
	transition: color 0.2s, background-color 0.2s;
}
.hm-menu > li > a { font-size: 18px; line-height: 24px; }
.hm-menu a:hover,
.hm-menu a:focus-visible { color: var(--hm-c-text); }
.hm-menu .current-menu-item > a,
.hm-menu .current_page_item > a,
.hm-menu .current-menu-ancestor > a {
	color: var(--hm-c-primary);
}
.hm-menu .sub-menu,
.hm-menu .children { display: none; padding-left: 1rem; }
.hm-menu .is-sub-open > .sub-menu,
.hm-menu .is-sub-open > .children { display: block; }
.hm-menu .sub-menu a,
.hm-menu .children a { padding: 0.5rem 0.75rem; border-bottom: 0; }
.hm-submenu-toggle {
	position: absolute;
	top: 0.25rem;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--hm-c-muted);
	cursor: pointer;
}
.hm-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.hm-nav-panel__ctas { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 1rem; }
.hm-header__ctas { display: none; align-items: center; gap: 0.5rem; flex: none; }

/* Desktop link look (applies once the generated breakpoint rules kick in). */
.hm-menu > li > a { white-space: nowrap; }
@media (min-width: 600px) {
	.hm-menu .sub-menu .hm-submenu-toggle { display: none; }
}

/* Active pill for desktop items — scoped by the generated media query
   which makes .hm-menu a row. */
.hm-primary-nav:not(.is-open) .hm-menu > .current-menu-item > a,
.hm-primary-nav:not(.is-open) .hm-menu > .current_page_item > a {
	background: var(--hm-c-high);
}

/* ==========================================================================
   3. Content area & layouts
   ========================================================================== */
.hm-main--boxed { padding-block: var(--wp--preset--spacing--section); }
.hm-main--full { padding: 0; }
.hm-main--full .hm-content-area { max-width: none; padding: 0; }
.hm-main--full.hm-main--single,
.hm-main--full.hm-main--archive { padding-block: var(--wp--preset--spacing--section); }
.hm-main--full.hm-main--single .hm-single__header,
.hm-main--full.hm-main--single .hm-single__footer,
.hm-main--full.hm-main--single .hm-post-nav,
.hm-main--full.hm-main--single .hm-related,
.hm-main--full.hm-main--single .hm-comments { padding-inline: var(--hm-gutter); }

.hm-primary-column { min-width: 0; }

.hm-has-sidebar { display: grid; gap: var(--wp--preset--spacing--xl); }
@media (min-width: 1024px) {
	.hm-has-sidebar--right { grid-template-columns: minmax(0, 1fr) 320px; }
	.hm-has-sidebar--left { grid-template-columns: 320px minmax(0, 1fr); }
	.hm-has-sidebar--left .hm-primary-column { order: 2; }
	.hm-sidebar { position: sticky; top: 9rem; align-self: start; }
}

/* Block content alignment inside boxed pages is handled by core's
   .is-layout-constrained rules. Builder content gets no constraints. */
.hm-builder-content { width: 100%; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.hm-main--full .entry-content.is-layout-constrained > .alignfull:first-child { margin-top: 0; }

/* ==========================================================================
   4. Long-form typography (posts & default pages only)
   ========================================================================== */
.hm-prose { font-size: 17px; line-height: 1.7; }
.hm-prose > * { margin-block: 0 1.25em; }
.hm-prose > h2, .hm-prose > h3, .hm-prose > h4 { margin-top: 2em; margin-bottom: 0.6em; }
:where(.hm-prose) > :where(p, ul, ol, dl, blockquote, .wp-block-quote, .wp-block-table, .wp-block-list) a:where(:not(.wp-element-button)) {
	color: var(--hm-c-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
:where(.hm-prose) > :where(p, ul, ol, dl, blockquote, .wp-block-quote, .wp-block-table, .wp-block-list) a:where(:not(.wp-element-button)):hover { color: var(--hm-c-text); }
.hm-prose ul, .hm-prose ol { padding-left: 1.25em; }
.hm-prose li + li { margin-top: 0.35em; }
.hm-prose li::marker { color: var(--hm-c-primary); }
.hm-prose blockquote:not(.wp-block-pullquote blockquote) {
	margin-inline: 0;
	padding-left: 1rem;
	border-left: 2px solid var(--hm-c-primary);
	color: var(--hm-c-muted);
	font-style: italic;
}
.hm-prose img { border-radius: var(--hm-radius); }
.hm-prose figcaption { color: var(--hm-c-muted); font-size: 13px; }
.hm-prose hr { border: 0; border-top: 1px solid var(--hm-c-border); }
.hm-prose code:not(pre code) {
	padding: 0.1em 0.35em;
	border-radius: var(--hm-radius);
	background: var(--hm-c-high);
	font-size: 0.9em;
}
/* Pattern sections placed inside a post/page keep their own sizing. */
.hm-prose .hm-section { font-size: var(--hm-font-size-base); line-height: var(--hm-line-height); }

/* ==========================================================================
   5. Archive / blog
   ========================================================================== */
.hm-archive-header { margin-bottom: var(--wp--preset--spacing--lg); }
.hm-archive-header h1.hm-section-title { font-size: var(--wp--preset--font-size--headline-lg); }
.hm-search-again { margin-bottom: var(--wp--preset--spacing--lg); max-width: 40rem; }

.hm-post-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
	.hm-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.hm-post-grid { grid-template-columns: repeat(var(--hm-cols, 3), minmax(0, 1fr)); }
	.hm-has-sidebar .hm-post-grid { grid-template-columns: repeat(min(var(--hm-cols, 3), 2), minmax(0, 1fr)); }
}
.hm-post-list { display: grid; gap: 1rem; }

.hm-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.hm-post-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--hm-c-lowest);
}
.hm-post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s;
}
.hm-post-card:hover .hm-post-card__media img { transform: scale(1.04); }
.hm-post-card__inner {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
}
.hm-post-card__body { padding: 1rem 1rem 0; }
.hm-post-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
}
.hm-post-card__top .hm-meta { white-space: nowrap; }
.hm-post-card__excerpt { margin-top: 0.5rem; }
.hm-post-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 1rem 1rem 0;
	padding: 0.75rem 0 1rem;
	border-top: 1px solid color-mix(in srgb, var(--hm-c-border) 60%, transparent);
}
.hm-post-list .hm-post-card.has-thumb { display: grid; }
@media (min-width: 768px) {
	.hm-post-list .hm-post-card.has-thumb { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
	.hm-post-list .hm-post-card__media { aspect-ratio: auto; min-height: 100%; }
}

/* Pagination */
.navigation.pagination { margin-top: var(--wp--preset--spacing--xl); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--hm-c-border);
	border-radius: var(--hm-radius);
	background: var(--hm-c-surface);
	color: var(--hm-c-text);
	font-family: var(--hm-font-heading);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--hm-c-outline); color: var(--hm-c-primary); }
.pagination .page-numbers.current { background: var(--hm-c-primary); border-color: var(--hm-c-primary); color: var(--hm-c-on-primary); }

.hm-empty { padding: var(--wp--preset--spacing--xl); }
.hm-empty__title { margin-top: 0; font-size: var(--wp--preset--font-size--headline-md); }

/* ==========================================================================
   6. Single post & page
   ========================================================================== */
.hm-single__header,
.hm-page__header {
	max-width: var(--hm-content);
	margin: 0 auto var(--wp--preset--spacing--xl);
}
.hm-single__header > * { margin: 0; }
.hm-single__header > * + * { margin-top: 1rem; }
.hm-single__title,
.hm-page__title {
	margin: 0;
	font-size: clamp(38px, 4.7vw, 60px);
	line-height: 1;
	font-weight: 800;
}
.hm-single__dek { font-size: var(--wp--preset--font-size--body-lg); line-height: 1.6; color: var(--hm-c-text); }
.hm-entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	padding-top: 1rem;
	border-top: 1px solid color-mix(in srgb, var(--hm-c-high) 60%, transparent);
	font-size: var(--wp--preset--font-size--label-md);
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hm-c-muted);
}
.hm-entry-meta a { color: var(--hm-c-primary); text-decoration: none; }
.hm-entry-meta__read { display: inline-flex; align-items: center; gap: 0.25rem; }
.hm-entry-meta__updated { color: var(--hm-c-text); }
.hm-single__media,
.hm-page__media {
	max-width: var(--wp--style--global--wide-size, 1440px);
	margin: 0 auto var(--wp--preset--spacing--xl);
}
.hm-single__media img,
.hm-page__media img {
	display: block;
	width: 100%;
	max-height: 70vh;
	object-fit: cover;
	border-radius: var(--hm-radius);
}
.hm-single__footer {
	max-width: var(--hm-content);
	margin: var(--wp--preset--spacing--xl) auto 0;
}
.hm-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.hm-tags a {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: var(--hm-radius);
	background: var(--hm-c-high);
	color: var(--hm-c-muted);
	font-family: var(--hm-font-heading);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
}
.hm-tags a:hover { color: var(--hm-c-text); }
.hm-author-box {
	display: flex;
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid var(--hm-c-border);
	border-radius: var(--hm-radius);
	background: var(--hm-c-surface);
}
.hm-author-box img { border-radius: 50%; flex: none; }
.hm-author-box p { margin: 0; }
.hm-author-box__name { margin-top: 0.25rem !important; font-family: var(--hm-font-heading); font-size: 22px; font-weight: 700; text-transform: uppercase; }
.hm-author-box__name a { color: var(--hm-c-text); text-decoration: none; }
.hm-author-box__bio { margin-top: 0.5rem !important; color: var(--hm-c-muted); font-size: 14px; }

.hm-post-nav {
	max-width: var(--hm-content);
	margin: var(--wp--preset--spacing--xl) auto 0;
}
.hm-post-nav .nav-links { display: grid; gap: 1rem; }
@media (min-width: 640px) {
	.hm-post-nav .nav-links { grid-template-columns: 1fr 1fr; }
	.hm-post-nav .nav-next { grid-column: 2; text-align: right; }
}
.hm-post-nav a {
	display: block;
	height: 100%;
	padding: 1rem;
	border: 1px solid var(--hm-c-border);
	border-radius: var(--hm-radius);
	background: var(--hm-c-surface);
	text-decoration: none;
	transition: border-color 0.2s;
}
.hm-post-nav a:hover { border-color: var(--hm-c-outline); }
.hm-post-nav__label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hm-c-primary);
}
.hm-post-nav__title {
	display: block;
	margin-top: 0.25rem;
	font-family: var(--hm-font-heading);
	font-size: 20px;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--hm-c-text);
}
.hm-related { margin-top: var(--wp--preset--spacing--section); }
.hm-related .hm-section-head { margin-bottom: var(--wp--preset--spacing--lg); }
.hm-page-links { display: flex; gap: 0.5rem; margin-top: 2rem; }

/* ==========================================================================
   7. Comments, forms, search, widgets
   ========================================================================== */
.hm-comments {
	max-width: var(--hm-content);
	margin: var(--wp--preset--spacing--section) auto 0;
}
.hm-comments__title { font-size: var(--wp--preset--font-size--headline-md); }
.hm-comment-list, .hm-comment-list .children { list-style: none; padding: 0; }
.hm-comment-list .children { padding-left: 1.5rem; }
.hm-comment-list .comment-body {
	margin-bottom: 1rem;
	padding: 1rem;
	border: 1px solid var(--hm-c-border);
	border-radius: var(--hm-radius);
	background: var(--hm-c-surface);
}
.hm-comment-list .avatar { border-radius: 50%; float: left; margin-right: 0.75rem; }
.hm-comment-list .comment-meta { font-size: 12px; color: var(--hm-c-muted); }
.hm-comment-list .comment-meta a { color: inherit; }
.hm-comment-list .fn a, .hm-comment-list .fn { color: var(--hm-c-text); font-style: normal; font-weight: 700; }

:where(.hm-site) :where(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], textarea, select) {
	max-width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--hm-c-highest);
	border-radius: var(--hm-radius);
	background: var(--hm-c-high);
	color: var(--hm-c-text);
	font: inherit;
}
:where(.hm-site) :where(input, textarea, select):focus { outline: none; border-color: var(--hm-c-primary); }
.comment-form label { display: block; margin-bottom: 0.25rem; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-c-muted); }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; }
.comment-form-cookies-consent label { display: inline; text-transform: none; letter-spacing: 0; font-weight: 400; }

.hm-search-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hm-search-form__field { position: relative; flex: 1 1 14rem; }
.hm-search-form__field .hm-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--hm-c-muted); pointer-events: none; }
.hm-site .hm-search-form input[type="search"] { width: 100%; padding-left: 2.5rem; }
.hm-search-form .hm-btn { padding-inline: 1.5rem; }

.hm-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-content: start; min-width: 0; }
.hm-sidebar :where(input, select) { min-width: 0; }
.hm-widget {
	padding: 1.25rem;
	border: 1px solid var(--hm-c-border);
	border-radius: var(--hm-radius);
	background: var(--hm-c-surface);
	font-size: 14px;
}
.hm-widget__title,
.hm-widget :where(h2, h3).wp-block-heading,
.hm-footer .widget :where(h2, h3).wp-block-heading {
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--headline-sm);
	color: var(--hm-c-primary);
}
.hm-widget .wp-block-search__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-c-muted); }
.hm-widget .wp-block-search__button { margin-left: 0.5rem; border: 0; border-radius: var(--hm-btn-radius); background: var(--hm-c-primary); color: var(--hm-c-on-primary); font-family: var(--hm-font-heading); font-weight: 700; text-transform: uppercase; }
.hm-widget ul { margin: 0; padding: 0; list-style: none; }
.hm-widget li { padding: 0.4rem 0; border-bottom: 1px solid var(--hm-c-border); }
.hm-widget li:last-child { border-bottom: 0; }
.hm-widget a { color: var(--hm-c-text); text-decoration: none; }
.hm-widget a:hover { color: var(--hm-c-primary); }

/* ==========================================================================
   8. 404
   ========================================================================== */
.hm-404 { max-width: 44rem; margin: 0 auto; padding-block: var(--wp--preset--spacing--section); text-align: center; }
.hm-404 > * { margin: 0 0 1.25rem; }
.hm-404__code {
	font-family: var(--hm-font-heading);
	font-size: clamp(120px, 22vw, 240px);
	line-height: 0.85;
	font-weight: 800;
	color: var(--hm-c-primary);
	text-shadow: 0 0 40px rgba(var(--hm-primary-rgb), 0.25);
}
.hm-404 .hm-eyebrow { display: block; }
.hm-404__title { font-size: var(--wp--preset--font-size--headline-lg); }
.hm-404__text { color: var(--hm-c-muted); }
.hm-404 .hm-search-form { margin-bottom: 1.5rem; text-align: left; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.hm-footer {
	padding: var(--wp--preset--spacing--xl) 0 var(--wp--preset--spacing--lg);
	background: var(--hm-c-lowest);
	border-top: 1px solid var(--hm-c-high);
}
.hm-footer__inner { padding-inline: var(--hm-gutter); }
.hm-footer__grid {
	display: grid;
	gap: var(--wp--preset--spacing--xl);
	padding-bottom: var(--wp--preset--spacing--xl);
}
@media (min-width: 768px) {
	.hm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.hm-footer__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.hm-footer__brand { grid-column: span 2; }
}
.hm-footer__brand > * { margin: 0; }
.hm-footer__brand > * + * { margin-top: 1rem; }
.hm-footer__logo { display: flex; align-items: center; gap: 0.5rem; }
.hm-footer__brand-name {
	font-family: var(--hm-font-heading);
	font-size: var(--wp--preset--font-size--headline-md);
	line-height: 30px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hm-c-text);
}
.hm-footer__about { max-width: 24rem; margin: 0; color: var(--hm-c-muted); font-size: 13px; line-height: 18px; }
.hm-footer__about a { color: var(--hm-c-primary); text-decoration: none; }
.hm-footer__about a:hover { text-decoration: underline; }
.hm-footer__tips { padding-top: 0.25rem; }
.hm-footer__tips-title {
	margin: 0 0 0.25rem;
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hm-c-text);
}
.hm-footer__title,
.hm-footer .widget-title {
	margin: 0 0 0.5rem;
	font-family: var(--hm-font-heading);
	font-size: var(--wp--preset--font-size--headline-sm);
	line-height: 24px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--hm-c-primary);
}
.hm-footer__menu,
.hm-footer .widget ul { margin: 0; padding: 0; list-style: none; }
.hm-footer__menu li + li,
.hm-footer .widget li + li { margin-top: 0.25rem; }
.hm-footer__menu a,
.hm-footer .widget a {
	color: var(--hm-c-muted);
	font-size: 13px;
	line-height: 18px;
	text-decoration: none;
	transition: color 0.2s;
}
.hm-footer__menu a:hover,
.hm-footer .widget a:hover { color: var(--hm-c-text); }
.hm-footer .widget { color: var(--hm-c-muted); font-size: 13px; }
.hm-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: var(--wp--preset--spacing--lg);
	border-top: 1px solid var(--hm-c-high);
	font-size: 10px;
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hm-c-muted);
	text-align: center;
}
@media (min-width: 640px) {
	.hm-footer__bottom { flex-direction: row; text-align: left; }
}
.hm-footer__copy a { color: inherit; }
.hm-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hm-footer__links a { color: var(--hm-c-muted); text-decoration: none; transition: color 0.2s; }
.hm-footer__links a:hover { color: var(--hm-c-text); }

/* ==========================================================================
   10. Builder compatibility
   ========================================================================== */
/* Blank canvas: nothing but content. */
.hm-canvas .hm-main--canvas { min-height: 100vh; }

/* Elementor/Beaver full-width sections should span the viewport. */
.hm-builder-page .hm-main--full .hm-content-area,
.hm-builder-template .hm-main { max-width: none; padding: 0; }

/* Don't let theme form styles leak into builder forms. */
.hm-builder-content :where(input, textarea, select) { font: inherit; }

/* ==========================================================================
   11. Print
   ========================================================================== */
@media print {
	.hm-header, .hm-footer, .hm-sidebar, .hm-post-nav, .hm-related, .hm-comments { display: none !important; }
	body { background: #fff; color: #000; }
}
