/**
 * Hybrid Mode — components & block styles.
 * Loaded on the front end AND inside the block editor (add_editor_style).
 *
 * All colours/fonts reference theme.json presets
 * (--wp--preset--*), which the Customizer can override.
 */

/* ==========================================================================
   1. Design tokens (aliases + non-preset tokens)
   ========================================================================== */
:root {
	--hm-primary-rgb: 202, 243, 0;
	--hm-container: 1440px;
	--hm-content: 760px;
	--hm-gutter: var(--wp--preset--spacing--gutter, clamp(1rem, 3.75vw, 3rem));
	--hm-radius: 2px;
	--hm-btn-radius: 2px;
	--hm-btn-glow: 0 0 16px rgba(var(--hm-primary-rgb), 0.25);
	--hm-btn-transform: uppercase;
	--hm-font-size-base: 15px;
	--hm-line-height: 1.5;
	--hm-logo-height: 32px;
	--hm-heading-transform: uppercase;
	--hm-heading-weight: 700;

	--hm-c-primary: var(--wp--preset--color--primary, #caf300);
	--hm-c-primary-hover: var(--wp--preset--color--primary-hover, #b0d500);
	--hm-c-on-primary: var(--wp--preset--color--on-primary, #171e00);
	--hm-c-bg: var(--wp--preset--color--background, #131313);
	--hm-c-lowest: var(--wp--preset--color--surface-lowest, #0e0e0e);
	--hm-c-surface: var(--wp--preset--color--surface, #1c1b1b);
	--hm-c-high: var(--wp--preset--color--surface-high, #2a2a2a);
	--hm-c-highest: var(--wp--preset--color--surface-highest, #353534);
	--hm-c-border: var(--wp--preset--color--border, #2a2a2a);
	--hm-c-text: var(--wp--preset--color--foreground, #e5e2e1);
	--hm-c-muted: var(--wp--preset--color--muted, #c5c9ac);
	--hm-c-outline: var(--wp--preset--color--outline, #8f9378);
	--hm-c-alert: var(--wp--preset--color--error, #ffb4ab);

	--hm-font-heading: var(--wp--preset--font-family--heading, "Barlow Condensed", sans-serif);
	--hm-font-body: var(--wp--preset--font-family--body, "Space Grotesk", sans-serif);

	/* Icon masks (24px stroke icons, same set as inc/icons.php). */
	--hm-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--hm-i-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
	--hm-i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 8.5v7l6-3.5z'/%3E%3C/svg%3E");
	--hm-i-insights: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='m3 17 5-5 4 4 8-8'/%3E%3Cpath d='M15 8h5v5'/%3E%3C/svg%3E");
	--hm-i-schedule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	--hm-i-newspaper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='14' height='14' rx='1'/%3E%3Cpath d='M17 9h3v9a1.5 1.5 0 0 1-3 0M7 9h6M7 13h6M7 16h4'/%3E%3C/svg%3E");
	--hm-i-psychology: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 5a3 3 0 0 0-5.6-1.5A3 3 0 0 0 4 8a3 3 0 0 0 0 5 3 3 0 0 0 3 5 3 3 0 0 0 5 1zM12 5a3 3 0 0 1 5.6-1.5A3 3 0 0 1 20 8a3 3 0 0 1 0 5 3 3 0 0 1-3 5 3 3 0 0 1-5 1z'/%3E%3C/svg%3E");
	--hm-i-biotech: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M9 3h6M10 3v6L5 19.5a1 1 0 0 0 .9 1.5h12.2a1 1 0 0 0 .9-1.5L14 9V3M7.2 15h9.6'/%3E%3C/svg%3E");
	--hm-i-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='1'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
	--hm-i-camera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
	--hm-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. Shared helpers
   ========================================================================== */
.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;
}

/* Icon via CSS mask — add e.g. "hm-icon-newspaper" to any paragraph. */
[class*="hm-icon-"]::before,
.hm-btn-icon-play .wp-block-button__link::before,
.hm-btn-icon-insights .wp-block-button__link::before,
.hm-btn-icon-arrow .wp-block-button__link::after,
.hm-btn-icon-external .wp-block-button__link::after,
.is-style-hm-link-arrow a::after,
.hm-readmore::after,
.wp-block-read-more.hm-readmore::after {
	content: "";
	display: inline-block;
	flex: none;
	width: 1.2em;
	height: 1.2em;
	background-color: currentColor;
	-webkit-mask: var(--hm-mask) center / contain no-repeat;
	mask: var(--hm-mask) center / contain no-repeat;
	vertical-align: -0.2em;
}
.hm-icon-newspaper { --hm-mask: var(--hm-i-newspaper); }
.hm-icon-psychology { --hm-mask: var(--hm-i-psychology); }
.hm-icon-biotech { --hm-mask: var(--hm-i-biotech); }
.hm-icon-calendar { --hm-mask: var(--hm-i-calendar); }
.hm-icon-camera { --hm-mask: var(--hm-i-camera); }
.hm-icon-mail { --hm-mask: var(--hm-i-mail); }
.hm-icon-schedule { --hm-mask: var(--hm-i-schedule); }
.hm-btn-icon-play .wp-block-button__link { --hm-mask: var(--hm-i-play); }
.hm-btn-icon-insights .wp-block-button__link { --hm-mask: var(--hm-i-insights); }
.hm-btn-icon-arrow .wp-block-button__link,
.is-style-hm-link-arrow a,
.hm-readmore { --hm-mask: var(--hm-i-arrow); }
.hm-btn-icon-external .wp-block-button__link { --hm-mask: var(--hm-i-external); }
p[class*="hm-icon-"] {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.hm-upper { text-transform: uppercase; }
.hm-small-muted {
	color: var(--hm-c-muted);
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: 1.4;
}
.hm-small-muted.hm-upper { font-size: 12px; letter-spacing: 0.02em; }
.is-accent { color: var(--hm-c-primary) !important; }

/* ==========================================================================
   3. Sections & section headers
   ========================================================================== */
.hm-section {
	padding-top: var(--wp--preset--spacing--section);
	padding-bottom: var(--wp--preset--spacing--section);
	border-bottom: 1px solid var(--hm-c-border);
}
.hm-section > * + * { margin-block-start: var(--wp--preset--spacing--lg); }
/* Full-bleed sections sit flush against each other (no blockGap). */
.wp-block-group.hm-section,
.wp-block-cover.hm-hero { margin-block: 0; }

.hm-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--hm-c-border);
}
.hm-section-head > * { margin: 0; }
.hm-section-head > :first-child { flex: 1 1 20rem; }
.hm-section-head__aside { gap: 1rem; align-items: center; }

.is-style-hm-eyebrow,
.hm-eyebrow {
	margin: 0;
	font-family: var(--hm-font-body);
	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-primary);
}
.hm-section-title,
h1.hm-section-title,
h2.hm-section-title {
	margin: 0.25rem 0 0;
	font-size: var(--wp--preset--font-size--headline-lg);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: 0.03em;
}
.hm-section-desc {
	max-width: 28rem;
	margin: 0;
	color: var(--hm-c-muted);
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: 18px;
}
.hm-section-desc p { margin: 0; }

/* ==========================================================================
   4. Badges, chips, labels, links
   ========================================================================== */
.is-style-hm-badge,
.is-style-hm-badge-dark,
.is-style-hm-badge-live,
.hm-badge,
.hm-terms-badge a {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	width: max-content;
	max-width: 100%;
	margin: 0;
	padding: 2px 8px;
	border-radius: var(--hm-radius);
	font-family: var(--hm-font-body);
	font-size: var(--wp--preset--font-size--label-sm);
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	background: var(--hm-c-highest);
	color: var(--hm-c-text);
}
.is-style-hm-badge,
.hm-badge--primary,
.hm-terms-badge.is-primary a {
	background: var(--hm-c-primary);
	color: var(--hm-c-on-primary);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.is-style-hm-badge-dark {
	background: color-mix(in srgb, var(--hm-c-lowest) 90%, transparent);
	border: 1px solid var(--hm-c-high);
	padding: 3px 10px;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.is-style-hm-badge-live {
	background: color-mix(in srgb, var(--hm-c-high) 90%, transparent);
	border: 1px solid rgba(var(--hm-primary-rgb), 0.4);
	color: var(--hm-c-primary);
	padding: 3px 10px;
}
.is-style-hm-badge-live::before,
.hm-pulse {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	animation: hm-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
a.hm-badge:hover { color: inherit; filter: brightness(1.1); }
.hm-badge--primary:hover { color: var(--hm-c-on-primary); }

@keyframes hm-pulse {
	50% { opacity: 0.4; }
}

.hm-chip {
	display: inline-block;
	margin: 0;
	padding: 2px 8px;
	border-radius: var(--hm-radius);
	background: var(--hm-c-highest);
	color: var(--hm-c-text);
	font-family: var(--hm-font-body);
	font-size: 11px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.hm-chip--accent { color: var(--hm-c-primary); }

.is-style-hm-label,
.hm-label,
.hm-meta {
	margin: 0;
	font-family: var(--hm-font-body);
	font-size: var(--wp--preset--font-size--label-sm);
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hm-c-muted);
}

.is-style-hm-link-arrow {
	margin: 0;
	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;
}
.is-style-hm-link-arrow a,
.hm-readmore,
.wp-block-read-more.hm-readmore {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--hm-c-primary);
	text-decoration: none;
}
.is-style-hm-link-arrow a::after { width: 0.85em; height: 0.85em; vertical-align: 0; }
.is-style-hm-link-arrow a:hover,
.hm-readmore:hover { color: var(--hm-c-primary); text-decoration: underline; }
.is-style-hm-link-arrow.hm-link-sm { font-size: 13px; line-height: 16px; }

.hm-readmore,
.wp-block-read-more.hm-readmore {
	font-family: var(--hm-font-heading);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}
.hm-readmore::after { width: 14px; height: 14px; vertical-align: 0; }
.hm-readmore .hm-icon { display: none; } /* PHP cards print an SVG; mask icon used instead. */

.hm-byline,
.wp-block-post-author-name.hm-byline {
	margin: 0;
	font-family: var(--hm-font-body);
	font-size: var(--wp--preset--font-size--label-sm);
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hm-c-text);
}
.wp-block-post-author-name.hm-byline::before { content: "By "; }

/* ==========================================================================
   5. Buttons (block styles)
   ========================================================================== */
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}
.wp-block-button:not([class*="is-style-hm-"]):not(.is-style-outline) .wp-block-button__link {
	box-shadow: var(--hm-btn-glow);
}
.wp-block-button .wp-block-button__link:active { transform: scale(0.98); }
.wp-block-button .wp-block-button__link::before,
.wp-block-button .wp-block-button__link::after { width: 18px; height: 18px; vertical-align: 0; }

.is-style-hm-ghost .wp-block-button__link {
	background: color-mix(in srgb, var(--hm-c-lowest) 80%, transparent);
	color: var(--hm-c-text);
	border: 1px solid var(--hm-c-high);
	font-weight: 600;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.is-style-hm-ghost.hm-btn-muted .wp-block-button__link { color: var(--hm-c-muted); }
.is-style-hm-ghost .wp-block-button__link:hover,
.is-style-hm-ghost .wp-block-button__link:focus-visible {
	background: color-mix(in srgb, var(--hm-c-lowest) 80%, transparent);
	border-color: var(--hm-c-primary);
	color: var(--hm-c-primary);
}
.is-style-hm-ghost.hm-btn-muted .wp-block-button__link:hover { color: var(--hm-c-text); }

.is-style-hm-secondary .wp-block-button__link {
	background: var(--hm-c-high);
	color: var(--hm-c-text);
	border: 1px solid var(--hm-c-highest);
}
.is-style-hm-secondary .wp-block-button__link:hover,
.is-style-hm-secondary .wp-block-button__link:focus-visible {
	background: var(--hm-c-highest);
	color: var(--hm-c-text);
}
.hm-btn-accent-text .wp-block-button__link,
.hm-btn-accent-text .wp-block-button__link:hover { color: var(--hm-c-primary); border-color: transparent; }

.is-style-hm-outline .wp-block-button__link {
	background: transparent;
	color: var(--hm-c-primary);
	border: 1px solid var(--hm-c-primary);
}
.is-style-hm-outline .wp-block-button__link:hover,
.is-style-hm-outline .wp-block-button__link:focus-visible {
	background: var(--hm-c-primary);
	color: var(--hm-c-on-primary);
}

.is-style-hm-chip .wp-block-button__link {
	padding: 0.25rem 0.75rem;
	background: var(--hm-c-high);
	color: var(--hm-c-muted);
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	white-space: nowrap;
}
.is-style-hm-chip .wp-block-button__link:hover { background: var(--hm-c-high); color: var(--hm-c-text); }
.is-style-hm-chip.hm-is-active .wp-block-button__link,
.is-style-hm-chip.hm-is-active .wp-block-button__link:hover {
	background: var(--hm-c-primary);
	color: var(--hm-c-on-primary);
	font-weight: 700;
}
.hm-filter-chips.wp-block-buttons {
	gap: 0.5rem;
	flex-wrap: nowrap;
	overflow-x: auto;
	padding-bottom: 0.25rem;
	scrollbar-width: none;
	max-width: 100%;
}
.hm-filter-chips::-webkit-scrollbar { display: none; }

.hm-btn-compact .wp-block-button__link {
	padding: 0.5rem 1.5rem;
	font-size: var(--wp--preset--font-size--headline-sm);
	line-height: 24px;
}
.is-style-hm-outline.hm-btn-compact .wp-block-button__link { padding: 0.375rem 0.75rem; font-weight: 600; }

/* PHP-rendered buttons (header, forms, 404) share the block button look. */
.hm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	padding: 0.375rem 0.75rem;
	border: 1px solid transparent;
	border-radius: var(--hm-btn-radius);
	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: var(--hm-btn-transform);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}
.hm-btn:active { transform: scale(0.98); }
.hm-btn--primary,
.hm-btn--primary:visited {
	background: var(--hm-c-primary);
	color: var(--hm-c-on-primary);
	font-weight: 700;
	box-shadow: var(--hm-btn-glow);
}
.hm-btn--primary:hover,
.hm-btn--primary:focus-visible { background: var(--hm-c-primary-hover); color: var(--hm-c-on-primary); }
.hm-btn--secondary,
.hm-btn--secondary:visited {
	background: var(--hm-c-high);
	color: var(--hm-c-text);
	border-color: var(--hm-c-highest);
}
.hm-btn--secondary:hover,
.hm-btn--secondary:focus-visible { background: var(--hm-c-highest); color: var(--hm-c-text); }
.hm-btn--lg { padding: 0.75rem 2.5rem; }

/* ==========================================================================
   6. Cards
   ========================================================================== */
.is-style-hm-card,
.hm-card {
	position: relative;
	background: var(--hm-c-surface);
	border: 1px solid var(--hm-c-border);
	border-radius: var(--hm-radius);
	transition: border-color 0.2s, background-color 0.2s;
}
.is-style-hm-card:hover,
.hm-card:hover { border-color: var(--hm-c-outline); }
.is-style-hm-card-glow {
	background: var(--hm-c-surface);
	border: 1px solid rgba(var(--hm-primary-rgb), 0.3);
	border-radius: var(--hm-radius);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
.hm-card-top { gap: 0.5rem; align-items: center; justify-content: space-between; display: flex; flex-wrap: wrap; }
.hm-card-top > * { margin: 0; }
.hm-card-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--hm-c-border);
}
.hm-card-footer > * { margin: 0; }
.hm-card-footer--tight { padding-top: 0.75rem; }
.hm-hover-accent a { color: inherit; text-decoration: none; }
.hm-card:hover .hm-hover-accent,
.is-style-hm-card:hover .hm-hover-accent,
.hm-hover-accent a:hover { color: var(--hm-c-primary); }
.hm-hover-accent { transition: color 0.2s; }

/* Query Loop news cards. */
.hm-news-query .wp-block-post-template {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.hm-news-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.hm-news-query .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hm-news-query .wp-block-post { margin: 0; display: flex; }
.hm-query-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	margin: 0;
}
.hm-query-card:hover .wp-block-post-title a { color: var(--hm-c-primary); }
.hm-query-card__body { padding: 1rem 1rem 0; }
.hm-query-card__body > * + * { margin-top: 0.5rem; }
.hm-query-card__top { gap: 0.5rem; align-items: flex-start; justify-content: space-between; }
.hm-query-card__date {
	font-size: var(--wp--preset--font-size--label-sm);
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hm-c-muted);
	white-space: nowrap;
}
.hm-terms-badge { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.hm-terms-badge .wp-block-post-terms__separator { display: none; }
.hm-news-query .wp-block-post:first-child .hm-terms-badge a {
	background: var(--hm-c-primary);
	color: var(--hm-c-on-primary);
}
.hm-query-card__title,
.hm-post-card__title {
	margin: 0.5rem 0 0;
	font-size: var(--wp--preset--font-size--headline-md);
	line-height: 30px;
	letter-spacing: 0.04em;
}
.hm-query-card__title a,
.hm-post-card__title a { color: var(--hm-c-text); text-decoration: none; transition: color 0.2s; }
.hm-query-card__title a:hover,
.hm-post-card__title a:hover { color: var(--hm-c-primary); }
.hm-query-card__excerpt,
.hm-post-card__excerpt {
	color: var(--hm-c-muted);
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: 1.625;
}
.hm-query-card__excerpt p,
.hm-post-card__excerpt p { margin: 0; }
.hm-query-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.hm-query-card__footer {
	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);
	justify-content: space-between;
	align-items: center;
}
.hm-empty-note { color: var(--hm-c-muted); }

/* ==========================================================================
   7. Hero
   ========================================================================== */
.wp-block-cover.hm-hero {
	align-items: flex-end;
	padding: clamp(1.5rem, 5vw, 4rem) var(--hm-gutter) clamp(1.5rem, 3vw, 2.5rem);
	border-bottom: 1px solid var(--hm-c-high);
	background: var(--hm-c-lowest);
	overflow: hidden;
}
.hm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to top, var(--hm-c-lowest) 0%, color-mix(in srgb, var(--hm-c-lowest) 70%, transparent) 50%, color-mix(in srgb, var(--hm-c-lowest) 30%, transparent) 100%);
}
.hm-hero .wp-block-cover__image-background {
	filter: brightness(0.75);
	transition: transform 0.7s;
}
.hm-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1440px);
	margin-inline: auto;
	padding: clamp(0rem, 4vw, 4rem) var(--hm-gutter) 0;
	color: var(--hm-c-text);
}
.hm-hero__content > * { margin: 0; }
.hm-hero__content > * + * { margin-top: 1rem; }
.hm-badge-row { gap: 0.5rem; }
.hm-badge-row > * { margin: 0; }
.hm-hero__title,
h1.hm-hero__title {
	font-size: clamp(38px, 4.7vw, 60px);
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--hm-c-text);
}
.hm-hero__dek {
	max-width: 48rem;
	font-size: var(--wp--preset--font-size--body-lg);
	line-height: 1.625;
	color: var(--hm-c-text);
}
.hm-hero__actions.wp-block-buttons { gap: 0.75rem; padding-top: 0.5rem; }
.hm-hero__actions .wp-block-button__link { padding: 0.875rem 1.25rem; }
.hm-hero__actions .wp-block-button:first-child .wp-block-button__link { padding-inline: 1.5rem; box-shadow: 0 0 20px rgba(var(--hm-primary-rgb), 0.35); }

.hm-meta-strip {
	gap: 0.5rem 1rem;
	align-items: center;
	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-meta-strip > p { margin: 0; }
.hm-meta-strip > p + p::before {
	content: "•";
	display: inline-block;
	margin-right: 1rem;
	-webkit-mask: none;
	mask: none;
	background: none;
	width: auto;
	height: auto;
	color: var(--hm-c-muted);
}
.hm-meta-strip > p.hm-icon-schedule { gap: 0.25rem; }
/* Keep "•" separator AND clock icon on the read-time item. */
.hm-meta-strip > p.hm-icon-schedule::after {
	content: "";
	order: -1;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--hm-i-schedule) center / contain no-repeat;
	mask: var(--hm-i-schedule) center / contain no-repeat;
}
.hm-meta-strip > p.hm-icon-schedule::before { order: -2; }
.hm-meta-strip__author { color: var(--hm-c-primary); }
.hm-meta-strip__strong { color: var(--hm-c-text); }
.hm-meta-strip__chips { gap: 0.5rem; margin-left: 0; }
.hm-meta-strip > .hm-meta-strip__chips::before { content: none; }
@media (min-width: 1024px) {
	.hm-meta-strip__chips { margin-left: auto !important; }
}

/* ==========================================================================
   8. Profiles, stats, quotes
   ========================================================================== */
.hm-columns-lg.wp-block-columns { gap: 1.5rem; }
.hm-columns-md.wp-block-columns { gap: 1rem; }
.hm-columns-xl.wp-block-columns { gap: 2.5rem; }
.hm-profile-card.wp-block-column {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	overflow: hidden;
}
.hm-profile-card > * { margin: 0; }
.hm-profile-card > * + * { margin-top: 1rem; }
.hm-profile-card > .hm-card-footer { margin-top: auto; padding-top: 1rem; }
.hm-profile-card > .is-style-hm-stat-strip { margin-bottom: 1rem; }

.is-style-hm-display,
h3.is-style-hm-display {
	font-size: clamp(34px, 3.4vw, 44px);
	line-height: 1.09;
	font-weight: 800;
	letter-spacing: 0.02em;
}
.hm-pullquote {
	padding-left: 1rem;
	border-left: 2px solid var(--hm-c-primary);
	color: var(--hm-c-muted);
	font-style: italic;
	font-size: var(--wp--preset--font-size--body-md);
	line-height: 22px;
}

.is-style-hm-stat-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	padding: 0.75rem;
	border-radius: var(--hm-radius);
	background: var(--hm-c-high);
	text-align: center;
}
.hm-stat > * { margin: 0; }
.hm-stat__label {
	font-size: 10px;
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hm-c-muted);
}
.hm-stat__value {
	margin-top: 0.125rem !important;
	font-family: var(--hm-font-heading);
	font-size: var(--wp--preset--font-size--headline-sm);
	line-height: 24px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--hm-c-text);
}

/* ==========================================================================
   9. Science lab
   ========================================================================== */
.hm-benchmark-card.wp-block-column {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
}
.hm-benchmark-card > * { margin: 0; }
.hm-benchmark-card > .hm-small-muted { margin: 1rem 0 1.5rem; }
.hm-benchmark-card__title {
	font-size: var(--wp--preset--font-size--headline-sm);
	line-height: 24px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--hm-c-primary);
	margin: 0;
}
.hm-meters > * + * { margin-top: 1rem; }
.hm-meter-row > * { margin: 0; }
.hm-meter-row__labels {
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.25rem !important;
	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-text);
}
.hm-meter-row__labels > p { margin: 0; }
.hm-meter-row__value { white-space: nowrap; }
.hm-meter {
	display: flex;
	gap: 0 !important;
	width: 100%;
	height: 8px;
	border-radius: var(--hm-radius);
	overflow: hidden;
	background: var(--hm-c-highest);
	margin-top: 0.25rem !important;
}
.hm-meter__fill {
	height: 8px;
	min-height: 8px;
	background: var(--hm-c-primary);
}
.hm-benchmark-card__cta {
	margin-top: auto !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--hm-c-border);
}
.hm-meters { margin-bottom: 2rem !important; }
.hm-benchmark-card__cta .wp-block-button__link { padding: 0.5rem 1rem; font-weight: 600; }

.hm-stack.wp-block-column { display: flex; flex-direction: column; gap: 1rem; }
.hm-stack > * { margin: 0 !important; }
.hm-lab-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1 1 auto;
	padding: 1rem;
}
.hm-lab-card > * { margin: 0; }
.hm-lab-card__top { gap: 0.5rem; align-items: center; margin-bottom: 0.5rem !important; }
.hm-lab-card__top > * { margin: 0; }
.hm-lab-card__title {
	font-size: var(--wp--preset--font-size--headline-md);
	line-height: 30px;
	letter-spacing: 0.04em;
}
.hm-lab-card > .hm-small-muted { margin-top: 0.5rem; line-height: 1.625; }

/* ==========================================================================
   10. Calendar / events
   ========================================================================== */
.hm-event-list > * + * { margin-top: 0.5rem; }
.hm-event {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem;
}
.hm-event:hover { background: color-mix(in srgb, var(--hm-c-surface) 70%, var(--hm-c-high)); }
.hm-event > * { margin: 0; }
.hm-event__main { gap: 1rem; align-items: center; flex-wrap: nowrap; }
.hm-event__main > * { margin: 0; }
.hm-date-tile {
	flex: none;
	min-width: 75px;
	padding: 0.25rem 1rem;
	border-radius: var(--hm-radius);
	background: var(--hm-c-highest);
	text-align: center;
}
.hm-date-tile > * { margin: 0; }
.hm-date-tile__month {
	font-family: var(--hm-font-heading);
	font-size: var(--wp--preset--font-size--headline-sm);
	line-height: 24px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--hm-c-primary);
}
.hm-date-tile__day {
	font-family: var(--hm-font-heading);
	font-size: var(--wp--preset--font-size--stat);
	line-height: 1;
	font-weight: 800;
	color: var(--hm-c-text);
	font-variant-numeric: tabular-nums;
}
.hm-event__info > * { margin: 0; }
.hm-event__badges { gap: 0.5rem; align-items: center; }
.hm-event__badges > * { margin: 0; }
.hm-status {
	font-size: 11px;
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hm-c-muted);
}
.hm-status--alert { color: var(--hm-c-alert); }
.hm-status--accent { color: var(--hm-c-primary); }
.hm-event__title {
	margin-top: 0.25rem !important;
	font-size: var(--wp--preset--font-size--headline-md);
	line-height: 30px;
	letter-spacing: 0.04em;
}
.hm-event__side { gap: 1rem; align-items: center; }
.hm-event__side > * { margin: 0; }
.hm-event__person { display: none; text-align: right; }
.hm-event__person > * { margin: 0; }
.hm-event__name {
	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-text);
}
@media (min-width: 640px) {
	.hm-event__person { display: block; }
}
@media (min-width: 1024px) {
	.hm-event { flex-direction: row; align-items: center; justify-content: space-between; }
	.hm-event__side { justify-content: flex-end; flex-wrap: nowrap; }
}

/* ==========================================================================
   11. Social grid (gallery block style)
   ========================================================================== */
.wp-block-gallery.is-style-hm-social.has-nested-images {
	gap: 1rem;
}
.wp-block-gallery.is-style-hm-social.has-nested-images figure.wp-block-image {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	border: 1px solid var(--hm-c-high);
	border-radius: var(--hm-radius);
	background: var(--hm-c-lowest);
	transition: border-color 0.2s;
}
.wp-block-gallery.is-style-hm-social.has-nested-images figure.wp-block-image:hover { border-color: var(--hm-c-primary); }
.wp-block-gallery.is-style-hm-social.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.9);
	transition: transform 0.7s, filter 0.3s;
}
.wp-block-gallery.is-style-hm-social.has-nested-images figure.wp-block-image:hover img {
	transform: scale(1.05);
	filter: brightness(1);
}
.wp-block-gallery.is-style-hm-social.has-nested-images figure.wp-block-image figcaption {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.25rem;
	padding: 1rem;
	max-height: 100%;
	background: linear-gradient(to top, color-mix(in srgb, var(--hm-c-lowest) 90%, transparent), transparent 70%);
	color: var(--hm-c-primary);
	font-size: var(--wp--preset--font-size--label-sm);
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: left;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}
.wp-block-gallery.is-style-hm-social.has-nested-images figure.wp-block-image figcaption::after {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background-color: var(--hm-c-text);
	-webkit-mask: var(--hm-i-external) center / contain no-repeat;
	mask: var(--hm-i-external) center / contain no-repeat;
}
.wp-block-gallery.is-style-hm-social.has-nested-images figure.wp-block-image:hover figcaption,
.wp-block-gallery.is-style-hm-social.has-nested-images figure.wp-block-image:focus-within figcaption { opacity: 1; }
@media (max-width: 767px) {
	.wp-block-gallery.is-style-hm-social.has-nested-images figure.wp-block-image:not(#individual-image) {
		width: calc(50% - 0.5rem);
	}
}
@media (hover: none) {
	.wp-block-gallery.is-style-hm-social.has-nested-images figure.wp-block-image figcaption { opacity: 1; }
}

/* ==========================================================================
   12. Newsletter
   ========================================================================== */
.hm-newsletter { position: relative; border-bottom: 0; }
.hm-newsletter::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(var(--hm-primary-rgb), 0.05);
	pointer-events: none;
}
.hm-newsletter > * { position: relative; z-index: 1; }
.hm-newsletter__card { padding: clamp(1.5rem, 3vw, 2.5rem); }
.hm-newsletter__copy > * { margin: 0; }
.hm-newsletter__copy > * + * { margin-top: 0.5rem; }
.hm-newsletter__title,
h2.hm-newsletter__title {
	font-size: clamp(30px, 3.6vw, 50px);
	line-height: 1;
	font-weight: 700;
}
.hm-newsletter__text {
	color: var(--hm-c-muted);
	font-size: var(--wp--preset--font-size--body-lg);
	line-height: 26px;
}
.hm-newsletter__form > * + * { margin-top: 0.5rem; }
@media (min-width: 782px) {
	.hm-newsletter__card .wp-block-columns { justify-content: space-between; }
	.hm-newsletter__copy.wp-block-column { flex: 1 1 24rem; max-width: 42rem; }
	.hm-newsletter__form.wp-block-column { flex: 0 1 34rem; }
}

.hm-subscribe {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
}
.hm-subscribe__field { position: relative; display: block; }
.hm-subscribe__field::before {
	content: "";
	position: absolute;
	left: 0.75rem;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	background-color: var(--hm-c-muted);
	-webkit-mask: var(--hm-i-mail) center / contain no-repeat;
	mask: var(--hm-i-mail) center / contain no-repeat;
	pointer-events: none;
}
.hm-subscribe input[type="email"],
.hm-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1rem 0.75rem 2.5rem;
	border: 1px solid var(--hm-c-highest);
	border-radius: var(--hm-radius);
	background: var(--hm-c-high);
	color: var(--hm-c-text);
	font-family: var(--hm-font-body);
	font-size: var(--wp--preset--font-size--body-md);
	line-height: 22px;
	transition: border-color 0.2s;
}
.hm-subscribe input::placeholder { color: color-mix(in srgb, var(--hm-c-muted) 60%, transparent); text-transform: uppercase; }
.hm-subscribe input:focus { outline: none; border-color: var(--hm-c-primary); }
.hm-subscribe .hm-btn--lg { box-shadow: 0 0 20px rgba(var(--hm-primary-rgb), 0.3); white-space: nowrap; flex: none; }
@media (min-width: 640px) {
	.hm-subscribe { flex-direction: row; align-items: center; }
	.hm-subscribe input[type="email"] { width: 20rem; }
}
.hm-fineprint {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--label-sm);
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hm-c-muted);
}
.hm-fineprint::before {
	content: "";
	width: 8px;
	height: 8px;
	flex: none;
	border-radius: 50%;
	background: var(--hm-c-primary);
}

/* ==========================================================================
   13. Core block refinements (scoped, low specificity)
   ========================================================================== */
:where(.wp-block-separator) { border-top-width: 1px; opacity: 1; }
:where(.wp-block-table) table { border-collapse: collapse; width: 100%; }
:where(.wp-block-table) th,
:where(.wp-block-table) td { border: 1px solid var(--hm-c-border); padding: 0.5rem 0.75rem; }
:where(.wp-block-table) thead { background: var(--hm-c-high); }
:where(.wp-block-code),
:where(.wp-block-preformatted) {
	background: var(--hm-c-lowest);
	border: 1px solid var(--hm-c-border);
	border-radius: var(--hm-radius);
	padding: 1rem;
	overflow-x: auto;
}
:where(.wp-block-pullquote) {
	border-top: 2px solid var(--hm-c-primary);
	border-bottom: 2px solid var(--hm-c-primary);
	font-family: var(--hm-font-heading);
	text-transform: uppercase;
}

/* Editor-only niceties (selectors only match inside the editor). */
.editor-styles-wrapper .hm-hero .wp-block-cover__inner-container { color: var(--hm-c-text); }
.editor-styles-wrapper .wp-block-post-template { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
