/* ==========================================================================
   Mervin 2026 — design system
   ========================================================================== */

:root {
	--mh-bg: #0b1422;
	--mh-bg-raise: #111d30;
	--mh-bg-photo: #16243a;
	--mh-line: #1e2c42;
	--mh-line-2: #2c3d57;
	--mh-gold: #c8a45d;
	--mh-gold-hover: #d8b977;
	--mh-bronze: #8c6b2e;
	--mh-white: #ffffff;
	--mh-text-2: #c6cfdb;
	--mh-muted: #9aa8ba;
	--mh-dim: #5d6f88;
	--mh-link: #8fb3e3;
	--mh-light: #f4f6f8;
	--mh-ink: #0f1b2d;
	--mh-ink-2: #3d4a5c;
	--mh-ink-muted: #5a6778;
	--mh-rule-light: #d3d9e0;
	--mh-blue: #1f5aa6;
	--mh-slate: #3d4a5c;

	--mh-font: "Public Sans", Helvetica, Arial, sans-serif;
	--mh-display: "Trajan Pro 3", "Trajan Pro", Cinzel, Georgia, serif;
	--mh-gutter: clamp(20px, 5vw, 72px);
	--mh-max: 1280px;
	--mh-ease: cubic-bezier(.4, 0, .2, 1);
	--mh-header-top: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mh26 {
	margin: 0;
	background: var(--mh-bg);
	color: var(--mh-white);
	font-family: var(--mh-font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.mh26.admin-bar { --mh-header-top: 32px; }
@media (max-width: 782px) { body.mh26.admin-bar { --mh-header-top: 46px; } }
@media (max-width: 600px) { body.mh26.admin-bar { --mh-header-top: 0px; } }

.mh26 img { max-width: 100%; height: auto; }
.mh26 a { color: var(--mh-link); }
.mh26 a:hover { color: var(--mh-white); }
.mh26 ::selection { background: var(--mh-blue); color: var(--mh-white); }
.mh26 h1, .mh26 h2, .mh26 h3, .mh26 p { margin: 0; }
.mh26 ul { margin: 0; padding: 0; list-style: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mh26 :focus-visible { outline: 2px solid var(--mh-gold); outline-offset: 3px; }

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

.mh-skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	padding: 10px 16px; background: var(--mh-gold); color: var(--mh-bg) !important;
	font-weight: 700; text-decoration: none;
}
.mh-skip:focus { top: calc(var(--mh-header-top) + 12px); }

/* ---------- Layout primitives ---------- */
.mh-wrap { max-width: var(--mh-max); margin: 0 auto; padding-inline: var(--mh-gutter); }
.mh-section { padding-block: clamp(64px, 9vw, 104px); }
.mh-section--intro { padding-bottom: 48px; }
.mh-section--flush-top { padding-top: 0; }
.mh-rule-top { border-top: 1px solid var(--mh-line); }
.mh-rule-top .mh-section, .mh-light .mh-section { padding-block: clamp(64px, 8vw, 96px); }
.mh-home .mh-light .mh-section { padding-block: clamp(72px, 9vw, 104px); }

.mh-stack { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.mh-stack--xs { gap: 10px; }
.mh-stack--sm { gap: 14px; }
.mh-stack--md { gap: 22px; }
.mh-stack--lg { gap: 24px; }
.mh-measure-760 { max-width: 760px; }
.mh-measure-780 { max-width: 780px; }
.mh-mb-40 { margin-bottom: 40px !important; }

.mh-split { display: grid; gap: 40px 80px; }
.mh-split--360 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.mh-split--380 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px 80px; }
.mh-split--400 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 48px 80px; }
.mh-split--center { align-items: center; }
.mh-split--start { align-items: start; }

/* ---------- Type ---------- */
.mh-display {
	font-family: var(--mh-display); font-weight: 400;
	font-size: clamp(30px, 4.2vw, 50px); line-height: 1.14; letter-spacing: .01em;
	text-wrap: balance;
}
.mh-display--xl { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; }
.mh-h2 {
	font-weight: 700; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1;
	letter-spacing: -.02em; text-wrap: balance;
}
.mh-h2--sm { font-size: clamp(28px, 3.4vw, 38px); }
.mh-lede { font-size: 18px; color: var(--mh-text-2); text-wrap: pretty; }
.mh-hero .mh-lede { font-size: clamp(17px, 1.5vw, 19px); max-width: 30em; }
.mh-ink-2 { color: var(--mh-ink-2); text-wrap: pretty; }

.mh-eyebrow {
	display: flex; align-items: center; gap: 14px;
	font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--mh-gold);
}
.mh-eyebrow__rule { width: 36px; height: 2px; background: var(--mh-gold); flex: none; }

.mh-kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mh-muted); }
.mh-kicker--ink { color: var(--mh-ink-muted); }
.mh-kicker--gold { color: var(--mh-gold); }
.mh-kicker--bronze { color: var(--mh-bronze); }

.mh-textlink { font-weight: 600; font-size: 15px; text-decoration: none; }
.mh26 .mh-textlink--blue { color: var(--mh-blue); }
.mh26 .mh-textlink--blue:hover { color: var(--mh-ink); }

/* ---------- Buttons ---------- */
.mh-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mh26 .mh-btn {
	display: inline-block; padding: 16px 28px; border-radius: 2px;
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1.6;
	text-decoration: none; cursor: pointer; border: 1px solid transparent;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.mh26 .mh-btn--gold { background: var(--mh-gold); color: var(--mh-bg); }
.mh26 .mh-btn--gold:hover { background: var(--mh-gold-hover); color: var(--mh-bg); }
.mh26 .mh-btn--ghost { border-color: var(--mh-dim); color: var(--mh-white); font-weight: 600; }
.mh26 .mh-btn--ghost:hover { border-color: var(--mh-white); color: var(--mh-white); }
.mh26 .mh-btn--outline { padding: 14px 24px; font-size: 15px; font-weight: 600; border-color: var(--mh-white); color: var(--mh-white); }
.mh26 .mh-btn--outline:hover { background: var(--mh-white); color: var(--mh-bg); }
.mh26 .mh-btn--lg { padding: 16px 30px; }
.mh26 .mh-light .mh-btn--gold, .mh26 .mh-speaking .mh-btn--gold { padding: 14px 24px; font-size: 15px; }

/* ---------- Gold shimmer (nav + venture names) ---------- */
.mh-shimmer {
	background-size: 300% 100%;
	background-position: 100% 0;
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	transition: background-position .9s var(--mh-ease);
}

/* ---------- Header ---------- */
.mh-header {
	position: sticky; top: var(--mh-header-top); z-index: 50;
	background: rgba(11, 20, 34, .94);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--mh-line);
}
.mh-header__inner {
	max-width: var(--mh-max); margin: 0 auto;
	padding: 18px var(--mh-gutter);
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px 24px; flex-wrap: wrap;
}
.mh26 .mh-brand { display: flex; align-items: center; gap: 14px; color: var(--mh-white); text-decoration: none; }
.mh-brand__mark {
	position: relative; width: 38px; height: 38px; flex: none;
	background: var(--mh-gold); display: flex; align-items: flex-end; padding: 5px;
}
.mh-brand__tick { position: absolute; top: 5px; left: 5px; width: 9px; height: 2px; background: var(--mh-bg); }
.mh-brand__initials { font-family: var(--mh-display); font-size: 15px; line-height: .78; color: var(--mh-bg); }
.mh-brand__name { font-family: var(--mh-display); font-size: 19px; letter-spacing: .06em; }

.mh-nav__list { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.mh-nav__list > li { margin: 0; }
.mh26 .mh-nav__link {
	display: inline-block; padding: 6px 0; text-decoration: none;
	border-bottom: 2px solid transparent; transition: border-color .3s ease;
}
.mh-nav__link .mh-shimmer {
	--mh-base: var(--mh-text-2);
	background-image: linear-gradient(100deg, #c8a45d 0%, #c8a45d 36%, #fbeec4 48%, #e6c887 52%, var(--mh-base) 64%, var(--mh-base) 100%);
}
.mh-nav__link:hover .mh-shimmer, .mh-nav__link:focus-visible .mh-shimmer { background-position: 0 0; }
.current-menu-item > .mh-nav__link, .current_page_item > .mh-nav__link { border-bottom-color: var(--mh-gold); }
.current-menu-item > .mh-nav__link .mh-shimmer, .current_page_item > .mh-nav__link .mh-shimmer { --mh-base: var(--mh-white); }

.mh26 .mh-nav__cta {
	display: inline-block; padding: 9px 18px; border: 1px solid var(--mh-gold); border-radius: 2px;
	color: var(--mh-gold); font-weight: 700; text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.mh26 .mh-nav__cta:hover, .mh26 .current-menu-item > .mh-nav__cta { background: var(--mh-gold); color: var(--mh-bg); }

/* Hamburger: phones and tablets (same 1024px line as the footer). Without JS the
   toggle stays hidden and the nav shows as a wrapped row, so it is never unreachable. */
.mh-menu-toggle { display: none; }
@media (max-width: 1024px) {
	.js .mh-menu-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; margin-right: -10px; padding: 0;
		background: none; border: 0; color: var(--mh-white); cursor: pointer;
	}
	.mh-menu-toggle__bars { position: relative; width: 22px; height: 14px; }
	.mh-menu-toggle__bars span {
		position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
		transition: transform .3s var(--mh-ease), opacity .2s ease, top .3s var(--mh-ease);
	}
	.mh-menu-toggle__bars span:nth-child(1) { top: 0; }
	.mh-menu-toggle__bars span:nth-child(2) { top: 6px; }
	.mh-menu-toggle__bars span:nth-child(3) { top: 12px; }
	.mh-menu-toggle[aria-expanded="true"] .mh-menu-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
	.mh-menu-toggle[aria-expanded="true"] .mh-menu-toggle__bars span:nth-child(2) { opacity: 0; }
	.mh-menu-toggle[aria-expanded="true"] .mh-menu-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
	.mh26 .mh-menu-toggle:hover { color: var(--mh-gold); }

	.js .mh-nav { display: none; flex-basis: 100%; }
	.js .mh-nav.is-open { display: block; }
	.js .mh-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 6px; font-size: 18px; }
	.js .mh-nav__list > li { border-top: 1px solid var(--mh-line); }
	.js .mh26 .mh-nav__link { display: block; padding: 14px 0; border-bottom: 0; }
	.js .mh-nav__list > .menu-cta { padding-top: 16px; }
	.js .mh26 .mh-nav__cta { display: block; text-align: center; padding: 13px 18px; }
}

/* ---------- Hero ---------- */
.mh-hero { position: relative; min-height: min(720px, 88vh); overflow: hidden; display: flex; align-items: center; }
.mh-hero__img {
	position: absolute; inset: 0; width: 100%; height: 100% !important;
	object-fit: cover; object-position: 50% 22%;
	transform: translateX(24%);
}
.mh-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(11,20,34,.96) 0%, rgba(11,20,34,.88) 38%, rgba(11,20,34,0) 66%);
}
.mh-hero__inner { position: relative; width: 100%; max-width: var(--mh-max); margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--mh-gutter); }
.mh-hero__copy { max-width: 640px; display: flex; flex-direction: column; gap: 26px; }
@media (max-width: 819px) {
	.mh-hero__img { transform: none; }
	.mh-hero__overlay { background: linear-gradient(180deg, rgba(11,20,34,.55) 0%, rgba(11,20,34,.92) 55%, rgba(11,20,34,.97) 100%); }
}

/* ---------- Stats ---------- */
.mh-stats { border-top: 1px solid var(--mh-line); border-bottom: 1px solid var(--mh-line); }
.mh-stats__grid { max-width: var(--mh-max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.mh-stats__item {
	padding: 34px var(--mh-gutter) 34px clamp(20px, 3vw, 40px);
	border-right: 1px solid var(--mh-line);
	display: flex; flex-direction: column; gap: 6px;
}
.mh-stats__value { font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.mh-stats__label { font-size: 14px; color: var(--mh-muted); line-height: 1.45; }

/* ---------- Section head ---------- */
.mh-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 44px; }
.mh-home .mh-section { padding-block: clamp(72px, 9vw, 104px); }

/* ---------- Venture rows (home) ---------- */
.mh-vlist { border-top: 1px solid var(--mh-line-2); }
.mh26 .mh-vrow {
	position: relative; display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 12px 40px; align-items: center;
	padding: 32px 24px 32px 28px;
	border-bottom: 1px solid var(--mh-line-2);
	color: var(--mh-white); text-decoration: none;
	transition: background-color .35s ease;
}
.mh26 .mh-vrow:hover { background: var(--mh-bg-raise); color: var(--mh-white); }
.mh-vrow__bar {
	position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mh-gold);
	transform: scaleY(0); transform-origin: top; transition: transform .5s var(--mh-ease);
}
.mh-vrow:hover .mh-vrow__bar, .mh-vrow:focus-visible .mh-vrow__bar { transform: scaleY(1); }
.mh-vrow__id { display: flex; flex-direction: column; gap: 6px; transition: transform .45s var(--mh-ease); }
.mh-vrow:hover .mh-vrow__id, .mh-vrow:focus-visible .mh-vrow__id { transform: translateX(8px); }
.mh-vrow__id:has(.mh-vrow__logo) {
	display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; row-gap: 6px; align-items: center;
}
.mh-vrow__logo { grid-row: span 2; width: 56px; height: 56px; object-fit: contain; }
.mh-vrow__name {
	align-self: flex-start; font-weight: 700; font-size: 28px; letter-spacing: -.02em; line-height: 1.1;
	background-image: linear-gradient(100deg, #fff 0%, #fff 36%, #f5e2ac 45%, #c8a45d 50%, #f5e2ac 55%, #fff 64%, #fff 100%);
	background-size: 300% 100%; background-position: 100% 0;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	transition: background-position 1.2s var(--mh-ease) 0s;
}
/* Once JS flips the list, resting rows sweep to 0%; hovered rows sweep back. */
.mh-vlist.is-flipped .mh-vrow__name { background-position: 0 0; }
.mh-vlist.is-flipped .mh-vrow:hover .mh-vrow__name,
.mh-vlist.is-flipped .mh-vrow:focus-visible .mh-vrow__name { background-position: 100% 0; }
.mh-vlist.is-intro .mh-vrow__name { transition-delay: var(--mh-delay, 0s); }
.mh-vrow__role { font-size: 14px; font-weight: 600; color: var(--mh-link); transition: color .35s ease; }
.mh-vrow:hover .mh-vrow__role { color: var(--mh-gold); }
.mh-vrow__body { color: var(--mh-text-2); font-size: 17px; text-wrap: pretty; }
.mh-vrow__domain { font-weight: 600; font-size: 15px; }

/* ---------- Light sections ---------- */
.mh-light { background: var(--mh-light); color: var(--mh-ink); }

.mh-tl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); column-gap: 40px; }
.mh-tl-mini { padding: 18px 0; border-top: 1px solid var(--mh-rule-light); display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: baseline; }
.mh-tl-mini__year { font-weight: 700; color: var(--mh-blue); }
.mh-tl-mini__text { display: flex; flex-direction: column; }
.mh-tl-mini__role { font-weight: 600; line-height: 1.35; }
.mh-tl-mini__org { color: var(--mh-ink-muted); font-size: 15px; }

/* ---------- Community tiles ---------- */
.mh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; padding: 1px; align-self: start; }
.mh-tile { background: var(--mh-bg); box-shadow: 0 0 0 1px var(--mh-line); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.mh-tile__title { font-weight: 700; font-size: 18px; }
.mh-tile__body { color: var(--mh-muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.mh-cta { background: var(--mh-slate); color: var(--mh-white); }
.mh-cta__inner { padding-block: clamp(64px, 8vw, 88px); display: flex; justify-content: space-between; align-items: center; gap: 28px 48px; flex-wrap: wrap; }
.mh-cta__copy { gap: 12px; max-width: 640px; }
.mh-cta__text { color: #dce2ea; }

/* ---------- About ---------- */
.mh-portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--mh-bg-photo); }
.mh-portrait__img { display: block; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 30%; }

.mh-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--mh-line); border: 1px solid var(--mh-line); }
.mh-cell { background: var(--mh-bg); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.mh-cell__title { font-weight: 700; font-size: 20px; }
.mh-cell__body { color: var(--mh-muted); font-size: 16px; text-wrap: pretty; }

.mh-career { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.mh-career__side { flex: 1 1 280px; }
.mh-career__list { flex: 2 1 520px; min-width: 0; border-top: 2px solid var(--mh-ink); }
.mh-edu { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; align-self: stretch; }
.mh-edu__card { background: #fff; border: 1px solid #e3e6ea; padding: 16px; display: flex; align-items: center; gap: 16px; }
.mh-edu__mark {
	width: 64px; height: 64px; flex: none; border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	background: var(--mh-ink); color: var(--mh-gold);
	font-family: var(--mh-display); font-size: 18px; letter-spacing: .04em;
}
.mh-edu__logo { width: 64px; height: 64px; object-fit: contain; flex: none; border-radius: 8px; }
.mh-edu__text { display: flex; flex-direction: column; line-height: 1.3; }
.mh-edu__name { font-weight: 700; font-size: 16px; }
.mh-edu__detail { font-size: 14px; color: var(--mh-ink-muted); }

.mh-tl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--mh-rule-light); }
.mh-tl__year { font-weight: 700; color: var(--mh-blue); }
.mh-tl__main { display: flex; flex-direction: column; gap: 4px; }
.mh-tl__head { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; }
.mh-tl__role { font-weight: 700; font-size: 18px; }
.mh-tl__org { color: var(--mh-ink-muted); }
.mh-tl__detail { color: var(--mh-ink-2); font-size: 16px; text-wrap: pretty; }
.mh-badge { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; background: #dce6f3; color: #153f75; border-radius: 2px; }

/* ---------- Ventures page ---------- */
.mh-venture {
	border-top: 1px solid var(--mh-line-2); padding: 48px 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px 72px;
}
.mh-venture__logo { width: 72px; height: 72px; object-fit: contain; margin-bottom: 14px; }
.mh-venture__kind { font-weight: 700; font-size: 14px; color: var(--mh-gold); }
.mh-venture__name { font-weight: 700; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; letter-spacing: -.025em; }
.mh-venture__role { font-weight: 600; color: var(--mh-text-2); }
.mh-venture__detail { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.mh-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.mh-tag { font-size: 13px; font-weight: 600; padding: 5px 12px; border: 1px solid var(--mh-line-2); color: var(--mh-text-2); border-radius: 2px; }

/* ---------- Speaking page ---------- */
.mh-band { border-top: 1px solid var(--mh-line); border-bottom: 1px solid var(--mh-line); }
.mh-band__grid { max-width: var(--mh-max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.mh-band__item { padding: 40px clamp(20px, 3vw, 40px); border-right: 1px solid var(--mh-line); display: flex; flex-direction: column; gap: 10px; }
.mh-band__title { font-weight: 700; font-size: 22px; }
.mh-band__body { color: var(--mh-muted); text-wrap: pretty; }

.mh-talks { border-top: 2px solid var(--mh-ink); }
.mh-talk { padding: 22px 0; border-bottom: 1px solid var(--mh-rule-light); display: flex; flex-direction: column; gap: 4px; }
.mh-talk__title { font-weight: 700; font-size: 19px; }
.mh-talk__body { color: var(--mh-ink-2); font-size: 16px; }
.mh-talks--dark { border-top-color: var(--mh-line-2); align-self: stretch; }
.mh-talks--dark .mh-talk { border-bottom-color: var(--mh-line-2); color: var(--mh-white); text-decoration: none; }
.mh-talks--dark .mh-talk__body { color: var(--mh-muted); }

/* ---------- Contact ---------- */
.mh-links { display: flex; flex-direction: column; border-top: 1px solid var(--mh-line-2); margin-top: 8px; align-self: stretch; }
.mh26 .mh-links__row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--mh-line-2); color: var(--mh-white); text-decoration: none; font-weight: 600; }
.mh26 .mh-links__row:hover { color: var(--mh-link); }
.mh-links__meta { color: var(--mh-muted); font-weight: 500; }

.mh-formcard { background: #fff; color: var(--mh-ink); padding: clamp(24px, 4vw, 40px); scroll-margin-top: 120px; }
.mh-form { display: flex; flex-direction: column; gap: 18px; }
.mh-form__topics { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mh-form__label { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.mh-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.mh-pill { position: relative; cursor: pointer; }
.mh-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mh-pill span {
	display: inline-block; padding: 9px 14px; border: 1px solid #c9d1db; background: #fff; color: var(--mh-ink);
	font-size: 14px; font-weight: 600; border-radius: 2px; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.mh-pill input:checked + span { background: var(--mh-bg); color: #fff; border-color: var(--mh-bg); }
.mh-pill input:focus-visible + span { outline: 2px solid var(--mh-blue); outline-offset: 2px; }
.mh-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.mh-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.mh-field input, .mh-field textarea {
	font: inherit; font-weight: 400; font-size: 16px; padding: 13px 14px;
	border: 1px solid #c9d1db; color: var(--mh-ink); background: #fff; border-radius: 2px; width: 100%;
}
.mh-field textarea { resize: vertical; }
.mh-field input:focus, .mh-field textarea:focus { border-color: var(--mh-blue); outline: none; box-shadow: 0 0 0 1px var(--mh-blue); }
.mh26 .mh-btn--submit { align-self: flex-start; padding: 15px 28px; border: 0; }
.mh-form__error { margin: 0 0 18px !important; padding: 12px 14px; background: #fbeaea; color: #8a1f1f; font-size: 15px; font-weight: 600; border-left: 3px solid #b3261e; }
.mh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mh-sent { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; align-items: flex-start; }
.mh-sent__title { font-weight: 700; font-size: 26px; line-height: 1.2; }

/* ---------- Gravity Forms (contact) ---------- */
.mh-gform_wrapper { color: var(--mh-ink); }
.mh-gform_wrapper .gform_heading:empty,
.mh-gform_wrapper .gform_required_legend { display: none; }
.mh-gform_wrapper .gform_validation_container,
.mh-gform_wrapper .gform_ajax_spinner { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mh-gform_wrapper .gform_fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px 14px; }
.mh-gform_wrapper .gfield { grid-column: span 12; min-width: 0; margin: 0; padding: 0; border: 0; }
.mh-gform_wrapper .gfield--width-half { grid-column: span 6; }
@media (max-width: 520px) { .mh-gform_wrapper .gfield--width-half { grid-column: span 12; } }

.mh-gform_wrapper .gfield_label { display: block; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 600; color: var(--mh-ink); }
.mh-gform_wrapper legend.gfield_label { margin-bottom: 8px; }
.mh-gform_wrapper .gfield_required { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mh-gform_wrapper input[type="text"],
.mh-gform_wrapper input[type="email"],
.mh-gform_wrapper textarea {
	display: block; width: 100%; margin: 0;
	font: inherit; font-weight: 400; font-size: 16px; line-height: 1.5; padding: 13px 14px;
	border: 1px solid #c9d1db; border-radius: 2px; background: #fff; color: var(--mh-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.mh-gform_wrapper textarea { min-height: 150px; height: 150px; resize: vertical; }
.mh-gform_wrapper input[type="text"]:focus,
.mh-gform_wrapper input[type="email"]:focus,
.mh-gform_wrapper textarea:focus { border-color: var(--mh-blue); box-shadow: 0 0 0 1px var(--mh-blue); outline: none; }

/* Reason-for-contact pills */
.mh-gform_wrapper .gfield_radio { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-gform_wrapper .gchoice { position: relative; margin: 0; }
.mh-gform_wrapper .gchoice .gfield-choice-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.mh-gform_wrapper .gchoice label {
	display: inline-block; margin: 0; padding: 9px 14px; cursor: pointer;
	border: 1px solid #c9d1db; border-radius: 2px; background: #fff; color: var(--mh-ink);
	font-size: 14px; font-weight: 600; line-height: 1.4;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.mh-gform_wrapper .gchoice label:hover { border-color: var(--mh-ink); }
.mh-gform_wrapper .gchoice .gfield-choice-input:checked + label { background: var(--mh-bg); border-color: var(--mh-bg); color: #fff; }
.mh-gform_wrapper .gchoice .gfield-choice-input:focus-visible + label { outline: 2px solid var(--mh-blue); outline-offset: 2px; }

/* Submit */
.mh-gform_wrapper .gform_footer { margin: 18px 0 0; padding: 0; display: flex; align-items: center; gap: 14px; }
.mh26 .mh-gform_wrapper .gform_button {
	padding: 15px 28px; border: 0; border-radius: 2px; cursor: pointer;
	background: var(--mh-gold); color: var(--mh-bg);
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1.6;
	transition: background-color .2s ease, opacity .2s ease;
}
.mh26 .mh-gform_wrapper .gform_button:hover { background: var(--mh-gold-hover); }
.mh26 .mh-gform_wrapper .gform_button:disabled { opacity: .6; cursor: progress; }

/* Validation */
.mh-gform_wrapper .gform_validation_errors {
	margin: 0 0 18px; padding: 12px 14px; background: #fbeaea; border-left: 3px solid #b3261e;
	color: #8a1f1f; font-size: 15px; font-weight: 600;
}
.mh-gform_wrapper .gform_validation_errors h2 { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0; }
.mh-gform_wrapper .gform_validation_errors ol { margin: 6px 0 0; padding-left: 1.2em; font-weight: 500; }
.mh-gform_wrapper .gform_validation_errors a { color: inherit; }
.mh-gform_wrapper .gform-icon { display: none; }
.mh-gform_wrapper .gfield_error input,
.mh-gform_wrapper .gfield_error textarea { border-color: #b3261e; }
.mh-gform_wrapper .gfield_error .gchoice label { border-color: #e2a3a0; }
.mh-gform_wrapper .validation_message { margin-top: 6px; font-size: 13px; font-weight: 600; color: #b3261e; }

/* Confirmation */
.mh-formcard .gform_confirmation_message { color: var(--mh-ink); }

/* ---------- 404 ---------- */
.mh-404__links { border-top: 1px solid var(--mh-line-2); }
.mh26 .mh-404__row {
	position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 24px;
	padding: 24px 20px 24px 24px; border-bottom: 1px solid var(--mh-line-2);
	color: var(--mh-white); text-decoration: none; transition: background-color .35s ease;
}
.mh26 .mh-404__row::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mh-gold);
	transform: scaleY(0); transform-origin: top; transition: transform .5s var(--mh-ease);
}
.mh26 .mh-404__row:hover { background: var(--mh-bg-raise); color: var(--mh-white); }
.mh26 .mh-404__row:hover::before { transform: scaleY(1); }
.mh-404__title { font-weight: 700; font-size: 20px; }
.mh-404__body { grid-column: 1; color: var(--mh-muted); font-size: 15px; }
.mh-404__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--mh-gold); font-size: 20px; transition: transform .35s var(--mh-ease); }
.mh-404__row:hover .mh-404__arrow { transform: translateX(6px); }

/* ---------- Meet ---------- */
.mh-meet__lede { max-width: 34em; }
.mh-meet__grid { align-self: stretch; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 14px; }
.mh26 .mh-meet__card {
	display: flex; flex-direction: column; gap: 10px; padding: 36px 32px;
	border: 1px solid var(--mh-dim); border-radius: 2px; text-decoration: none;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.mh-meet__kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mh-meet__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mh-meet__title { font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.mh-meet__head .mh-arrow { width: 18px; height: 18px; transition: transform .25s var(--mh-ease); }
.mh-meet__card:hover .mh-arrow { transform: translate(3px, -3px); }
.mh-meet__body { font-size: 15px; line-height: 1.55; text-wrap: pretty; }

.mh26 .mh-meet__card--gold { background: var(--mh-gold); border-color: var(--mh-gold); color: var(--mh-bg); }
.mh26 .mh-meet__card--gold:hover { background: var(--mh-gold-hover); border-color: var(--mh-gold-hover); color: var(--mh-bg); }
.mh-meet__card--gold .mh-meet__body { color: var(--mh-ink-2); }

.mh26 .mh-meet__card--outline { color: var(--mh-white); }
.mh26 .mh-meet__card--outline:hover { background: var(--mh-bg-raise); border-color: var(--mh-gold); color: var(--mh-white); }
.mh-meet__card--outline .mh-meet__kicker, .mh-meet__card--outline .mh-arrow { color: var(--mh-gold); }
.mh-meet__card--outline .mh-meet__body { color: var(--mh-text-2); }

/* ---------- Prose (default pages / posts) ---------- */
.mh-prose { color: var(--mh-text-2); font-size: 18px; }
.mh-prose > * + * { margin-top: 1em !important; }
.mh-prose h2, .mh-prose h3 { color: var(--mh-white); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin-top: 1.6em !important; }
.mh-prose h2 { font-size: 28px; }
.mh-prose h3 { font-size: 22px; }
.mh-prose ul { list-style: disc; padding-left: 1.3em; }
.mh-prose ol { padding-left: 1.3em; }
.mh-prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.mh-footer { border-top: 1px solid var(--mh-line); }
.mh-footer__inner {
	max-width: var(--mh-max); margin: 0 auto; padding: 40px var(--mh-gutter);
	display: grid; grid-template-columns: 1fr; gap: 32px 48px;
	font-size: 15px;
}
@media (min-width: 600px) { .mh-footer__inner { grid-template-columns: repeat(2, 1fr); } }
/* Desktop: name takes the left third, the three link columns share the rest. */
@media (min-width: 1025px) { .mh-footer__inner { grid-template-columns: 3fr 2fr 2fr 2fr; } }
.mh-footer__col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mh-footer__name { font-family: var(--mh-display); letter-spacing: .06em; font-size: 18px; }
.mh-footer__meta { color: var(--mh-muted); }
.mh-footer__head { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mh-muted); }
.mh-footer__list { display: flex; flex-direction: column; gap: 12px; }
.mh26 .mh-footer__list a { color: var(--mh-text-2); text-decoration: none; }
.mh26 .mh-footer__list a:hover { color: var(--mh-white); }
.mh-footer__place { display: inline-flex; align-items: center; gap: 8px; color: var(--mh-text-2); }
.mh-footer__pin { color: var(--mh-gold); flex: none; }
.mh-footer__icon { display: inline-block; vertical-align: -2px; }
.mh-arrow { display: inline-block; width: .7em; height: .7em; vertical-align: .05em; flex: none; }
.mh-footer__arrow { color: var(--mh-gold); margin-left: 4px; display: inline-block; transition: transform .25s var(--mh-ease); }
.mh26 .mh-footer__list a:hover .mh-footer__arrow { transform: translate(2px, -2px); }
.mh-footer__bottom { border-top: 1px solid var(--mh-line); }
.mh-footer__bar {
	max-width: var(--mh-max); margin: 0 auto; padding: 24px var(--mh-gutter);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	color: var(--mh-dim); font-size: 14px;
}
.mh26 .mh-footer__bar .privacy-policy-link { color: var(--mh-dim); text-decoration: none; }
.mh26 .mh-footer__bar .privacy-policy-link:hover { color: var(--mh-white); }

/* ---------- News: post list ---------- */
.mh-post-list { border-top: 1px solid var(--mh-line-2); align-self: stretch; }
.mh-post-row {
	position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 40px;
	padding: 34px 0; border-bottom: 1px solid var(--mh-line-2);
}
.mh-post-row.has-thumb { grid-template-columns: 180px minmax(0, 1fr) 280px; }
.mh-post-row__date { padding-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mh-gold); }
.mh-post-row__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mh-post-row__title { font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
/* The title link stretches over the whole row, so the entire row is one click target. */
.mh26 .mh-post-row__title a { color: var(--mh-white); text-decoration: none; transition: color .25s ease; }
.mh-post-row__title a::after { content: ""; position: absolute; inset: 0; }
.mh26 .mh-post-row:hover .mh-post-row__title a { color: var(--mh-gold); }
.mh-post-row__excerpt { color: var(--mh-text-2); font-size: 17px; text-wrap: pretty; max-width: 62ch; }
.mh-post-row__more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--mh-gold); }
.mh-post-row__more .mh-arrow { transition: transform .25s var(--mh-ease); }
.mh-post-row:hover .mh-post-row__more .mh-arrow { transform: translateX(3px); }
.mh-post-row__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--mh-line-2); }
@media (max-width: 760px) {
	.mh-post-row, .mh-post-row.has-thumb { grid-template-columns: 1fr; padding: 28px 0; }
	.mh-post-row__date { padding-top: 0; }
	.mh-post-row__img { grid-row: 1; }
}
.mh-empty { padding: 40px 0; border-top: 1px solid var(--mh-line-2); border-bottom: 1px solid var(--mh-line-2); }

/* Pagination (the_posts_pagination) */
.mh26 .pagination { margin-top: 40px; }
.mh26 .pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mh26 .pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--mh-line-2); border-radius: 2px; color: var(--mh-text-2); font-weight: 600; font-size: 15px; text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
.mh26 .pagination a.page-numbers:hover { border-color: var(--mh-gold); color: var(--mh-gold); }
.mh26 .pagination .page-numbers.current { background: var(--mh-gold); border-color: var(--mh-gold); color: var(--mh-bg); }
.mh26 .pagination .page-numbers.dots { border-color: transparent; }

/* ---------- News: single post ---------- */
.mh26 .mh-backlink { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--mh-muted); text-decoration: none; }
.mh26 .mh-backlink:hover { color: var(--mh-gold); }
.mh-article__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--mh-muted); }
.mh26 .mh-article__meta a { color: var(--mh-text-2); text-decoration: none; }
.mh26 .mh-article__meta a:hover { color: var(--mh-gold); }
.mh-article__hero { margin: 0; }
.mh-article__hero img { display: block; width: 100%; max-height: 640px; object-fit: cover; border: 1px solid var(--mh-line-2); }
.mh-article__hero figcaption, .mh-prose figcaption { margin-top: 10px; font-size: 14px; color: var(--mh-muted); }
.mh-article__main { padding-top: clamp(48px, 6vw, 72px); }
.mh-article:not(:has(.mh-article__hero)) .mh-article__main { padding-top: 0; }
.mh-article__tags { margin-top: 48px; }
.mh-article__pages { margin-top: 32px; display: flex; gap: 10px; font-weight: 600; }

.mh-postnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--mh-line-2); }
.mh26 .mh-postnav__link {
	display: flex; flex-direction: column; gap: 6px; padding: 20px 22px;
	border: 1px solid var(--mh-line-2); border-radius: 2px; background: var(--mh-bg-raise);
	color: var(--mh-white); text-decoration: none; transition: border-color .2s ease;
}
.mh26 .mh-postnav__link:hover { border-color: var(--mh-gold); color: var(--mh-white); }
.mh-postnav__link--next { text-align: right; grid-column: -2; }
.mh-postnav__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mh-gold); }
.mh-postnav__title { font-weight: 700; font-size: 18px; line-height: 1.3; }

/* Post body elements beyond the basic prose set */
.mh-prose h4 { color: var(--mh-white); font-weight: 700; font-size: 19px; margin-top: 1.4em !important; }
.mh-prose strong { color: var(--mh-white); }
.mh-prose li + li { margin-top: .4em; }
.mh-prose blockquote {
	margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--mh-gold);
	font-size: 21px; line-height: 1.5; color: var(--mh-white);
}
.mh-prose blockquote cite { display: block; margin-top: 10px; font-size: 15px; font-style: normal; color: var(--mh-muted); }
.mh-prose figure { margin-left: 0; margin-right: 0; }
.mh-prose img { border: 1px solid var(--mh-line-2); }
.mh-prose hr { border: 0; border-top: 1px solid var(--mh-line-2); margin-block: 2em !important; }
.mh-prose code { padding: 2px 6px; background: var(--mh-bg-raise); border: 1px solid var(--mh-line); border-radius: 2px; font-size: .88em; color: var(--mh-white); }
.mh-prose pre { padding: 18px 20px; overflow-x: auto; background: var(--mh-bg-raise); border: 1px solid var(--mh-line-2); border-radius: 2px; font-size: 15px; line-height: 1.55; }
.mh-prose pre code { padding: 0; background: none; border: 0; }
.mh-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.mh-prose th, .mh-prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--mh-line-2); }
.mh-prose th { color: var(--mh-white); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.mh-prose .wp-block-image, .mh-prose .wp-block-embed { margin-block: 1.6em !important; }
.mh-prose .wp-block-embed iframe { max-width: 100%; }
.mh-prose .alignwide, .mh-prose .alignfull { max-width: 100%; }

/* ---------- Back to top ---------- */
/* Always usable without JS (plain #top link); main.js only fades it in after a scroll. */
.mh26 .mh-totop {
	position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 40;
	display: flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 2px;
	background: var(--mh-gold); color: var(--mh-bg); text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
	transition: background-color .2s ease, transform .3s var(--mh-ease), opacity .3s ease, visibility .3s;
}
.mh26 .mh-totop:hover { background: var(--mh-gold-hover); color: var(--mh-bg); transform: translateY(-2px); }
.mh26 .mh-totop:focus-visible { outline-color: var(--mh-white); }
.js .mh-totop:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mh26 *, .mh26 *::before { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
