/* Staging-only concept 02. Existing WordPress content and media remain the source. */
body.mh-modern {
  --navy:#071b38; --blue:#1853d8; --accent:#56adf2;
  --ink:#111f35; --rule:rgba(7,27,56,.20); --gutter:clamp(24px,5.15vw,84px);
  --sans:Montserrat,Arial,sans-serif; --serif:Montserrat,Arial,sans-serif;
  background:#fff; color:var(--navy);
}
.mh-modern h1,.mh-modern h2,.mh-modern h3 {
  font-family:var(--sans); font-weight:600; letter-spacing:-.055em;
}
.mh-modern h2 {font-size:clamp(39px,4.1vw,64px);line-height:1.08}
.mh-modern h3 {font-size:clamp(26px,2.5vw,38px);line-height:1.14}
.mh-modern p {line-height:1.7}
.mh-modern .container {max-width:1440px}
.mh-modern .eyebrow {color:#2364dd;letter-spacing:.15em}
.mh-modern .text-link {font-size:13px;color:#1853d8;border-color:#1853d8;letter-spacing:.01em}
.mh-modern .text-link a {color:inherit}
.mh-modern .wp-block-button__link {border-radius:0;font-weight:600;transition:background .2s,color .2s,border-color .2s}
.mh-modern .wp-block-button__link:hover {background:#1853d8;border-color:#1853d8;color:#fff}

/* Header and first-screen architectural canvas. */
.mh-modern .mh-header {background:#071b38;border-bottom:1px solid rgba(255,255,255,.16)}
.mh-modern .mh-header-inner {min-height:96px}
/* Keep Merritt's official, full-color WordPress logo intact against the dark header. */
.mh-modern .mh-header .wp-block-site-logo {display:inline-flex;align-items:center;background:#fff;padding:10px 14px}
.mh-modern .mh-header .wp-block-site-logo img {width:205px;filter:none}
.mh-modern .mh-navigation {font-size:12px;font-weight:500}
.mh-modern .mh-navigation a,.mh-modern .mh-navigation .wp-block-navigation__submenu-icon {color:#fff}
.mh-modern .mh-navigation .wp-block-navigation__submenu-container {background:#fff;border:1px solid #dbe4f0;box-shadow:0 16px 35px #00122d2b}
.mh-modern .mh-navigation .wp-block-navigation__submenu-container a {color:#071b38}
.mh-modern .mh-navigation .wp-block-navigation__responsive-container-open {color:#fff}
.mh-modern .wp-block-navigation__responsive-container.is-menu-open {background:#071b38;color:#fff}
.mh-modern .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {background:transparent}
.mh-modern .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a {color:#fff}
.mh-modern .wp-block-navigation__responsive-container-close {color:#fff}
.mh-modern .hero {width:100%;max-width:none;margin:0;padding:0;grid-template-columns:47% 53%;background:#071b38;color:#fff;align-items:stretch}
.mh-modern .hero-copy {padding:clamp(65px,7.2vw,115px) 10px clamp(64px,6.2vw,100px) var(--gutter);justify-content:center;max-width:760px}
.mh-modern .hero h1 {font:600 clamp(50px,5.2vw,83px)/.99 var(--sans);letter-spacing:-.065em;color:#fff;max-width:690px;margin:0 0 27px}
.mh-modern .hero-description {font-size:clamp(15px,1.2vw,18px);line-height:1.65;color:#c4d2e8;max-width:580px;margin-bottom:30px}
.mh-modern .hero .hero-actions .wp-block-button__link {min-width:202px;background:#fff;border:1px solid #fff;color:#071b38}
.mh-modern .hero .hero-actions .wp-block-button.is-style-outline .wp-block-button__link {background:transparent;border-color:#a5b7d0;color:#fff}
.mh-modern .hero .hero-actions .wp-block-button__link:hover {background:#72c5ff;border-color:#72c5ff;color:#071b38}
.mh-modern .hero-media {min-height:580px;margin:0}
.mh-modern .hero-media:before {display:none}
.mh-modern .hero-media:after {display:none}
.mh-modern .hero-image {clip-path:polygon(15% 0,100% 0,100% 100%,0 100%)}
.mh-modern .hero-image img {object-position:center;transform:none}
.mh-modern .hero-signature {inset:32px 0 auto auto;max-width:235px;background:#071b38;color:#fff;padding:18px 25px;border-left:1px solid #a3caff;font:500 13px/1.6 var(--sans)}
.mh-modern .proof-band {width:100%;max-width:none;border:0;margin:0;background:#0a2347;color:#fff;padding:40px var(--gutter) 46px}
.mh-modern .proof-inner {max-width:1440px;margin:auto;gap:0}
.mh-modern .proof-inner>div {padding:0 38px;border-left:1px solid #6c88ad}
.mh-modern .proof-inner>div:first-child {padding-left:0;border:0}
.mh-modern .proof-inner h2 {font:600 clamp(20px,1.8vw,27px)/1.22 var(--sans);letter-spacing:-.04em;color:#fff;margin:0 0 10px}
.mh-modern .proof-band p {font-size:13px;color:#cad7e9;max-width:330px;margin:0;line-height:1.7}

/* Partner logo slider stays tied to the existing editable partner records. */
.mh-modern .partner-network {padding-top:58px;padding-bottom:30px;border:0}
.mh-modern .partner-network-heading {margin-bottom:26px}
.mh-modern .partner-network-heading h2 {font-size:clamp(30px,3vw,44px);font-weight:600}
.mh-modern .mh-logo-viewport {border-color:#dbe2ec}
.mh-modern .mh-logo-slide {border-color:#dbe2ec}
.mh-modern .mh-logo-buttons button {border-radius:50%;border-color:#c9d6e7;color:#071b38}
.mh-modern .mh-logo-buttons button:hover {background:#071b38;color:white}

/* Two open editorial stories, not boxed cards. */
.mh-modern .partnerships {padding-top:70px;padding-bottom:110px}
.mh-modern .partnership-heading h2 {font-size:clamp(43px,4.6vw,70px);line-height:1.05;max-width:900px;margin-bottom:38px}
.mh-modern .audience-panels {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:35px}
.mh-modern .audience {display:flex;flex-direction:column;align-items:stretch;gap:0;margin:0;min-width:0}
.mh-modern .audience+.audience {margin:0}
.mh-modern .audience-photo {order:-1;aspect-ratio:1.75;overflow:hidden;margin-bottom:28px}
.mh-modern .audience-photo:after {display:none}
.mh-modern .audience-photo img {transition:transform .45s ease}
.mh-modern .audience:hover .audience-photo img {transform:scale(1.035)}
.mh-modern .audience-body {max-width:570px}
.mh-modern .audience h3 {font-size:clamp(28px,2.7vw,40px);margin-bottom:15px}
.mh-modern .audience-body>p {font-size:15px;color:#34445d}
.mh-modern .benefits {margin:20px 0 25px}
.mh-modern .benefits li {font-size:13px;padding:11px 0}
.mh-modern .benefits li:before {font:600 14px/1 var(--sans);color:#1853d8}

/* A luminous blue approach band and typographic service columns. */
.mh-modern .ownership-band {position:relative;isolation:isolate;overflow:hidden;background:#0b409f;color:#fff;padding:80px 0 72px}
.mh-modern .ownership-band:before {content:'';position:absolute;z-index:-1;inset:0 0 0 auto;width:48%;background:linear-gradient(90deg,#0b409f 0%,rgba(8,45,115,.38) 100%),url('assets/grok-glass.jpg') center/cover;opacity:.78;clip-path:polygon(20% 0,100% 0,100% 100%,0 100%)}
.mh-modern .ownership-band>.container:not(.approach-steps) {grid-template-columns:1.2fr 1fr;align-items:start}
.mh-modern .ownership-band h2 {font-size:clamp(42px,4.3vw,65px);line-height:1.08;color:#fff}
.mh-modern .ownership-band p {font-size:15px;color:#e7f0ff}
.mh-modern .ownership-band .text-link {color:#fff;border-color:#fff}
.mh-modern .approach-steps.container {margin-top:60px;border-color:#b2cbed;gap:32px}
.mh-modern .approach-steps .mh-list-item h3 {font-size:23px;color:#fff;letter-spacing:-.03em}
.mh-modern .approach-steps .mh-list-item p {font-size:13px;color:#e7f0ff}
.mh-modern #services {padding-block:110px}
.mh-modern .mh-services h2 {max-width:860px}
.mh-modern .mh-service-grid {gap:0;margin:60px 0 35px;border-top:1px solid #cbd8e7}
.mh-modern .mh-service-grid>div {padding:36px 55px 12px 0;border:0}
.mh-modern .mh-service-grid>div+div {border-left:1px solid #cbd8e7;padding-left:55px}
.mh-modern .mh-service-grid h3 {font-size:32px}
.mh-modern .mh-service-grid p {max-width:510px;color:#34445d}
.mh-modern .partnership-story {gap:65px;padding-block:50px 100px}
.mh-modern .story-photo img {height:500px}
.mh-modern .story-copy h2 {font-size:clamp(40px,4vw,60px);line-height:1.08}

/* Finish the same design language across the remainder and inside pages. */
.mh-modern .mh-card-copy h3,.mh-modern .mh-person h3 {font-family:var(--sans);font-weight:600}
.mh-modern .mh-home-leadership>h2,.mh-modern .mh-home-facilities>h2,.mh-modern .mh-home-insights>h2 {max-width:900px}
.mh-modern .mh-cta {background:#071b38;padding:clamp(40px,6vw,85px)!important}
.mh-modern .mh-cta h2,.mh-modern .mh-cta .eyebrow {color:#fff}
.mh-modern .mh-footer {background:#06162f}
.mh-modern .mh-footer .wp-block-site-logo {display:inline-flex;align-items:center;background:#fff;padding:12px 14px}
.mh-modern .mh-footer .wp-block-site-logo img {filter:none}
.mh-modern .mh-footer h3 {font-family:var(--sans);letter-spacing:.12em}
.mh-modern .page-hero {gap:clamp(35px,5vw,75px);padding-top:20px}
.mh-modern .page-hero h1 {font:600 clamp(48px,5.3vw,82px)/1.02 var(--sans);letter-spacing:-.06em;color:#071b38}
.mh-modern .page-hero-media:before {background:#1853d8}
.mh-modern .page-hero-media:after,.mh-modern .page-photo:after {display:none}
.mh-modern .page-hero-media {clip-path:polygon(10% 0,100% 0,100% 100%,0 100%)}
.mh-modern .page-blue-band,.mh-modern .page-cta,.mh-modern .footprint-copy {background:#071b38}
.mh-modern .page-blue-band .eyebrow,.mh-modern .page-blue-band h2,.mh-modern .page-blue-band h3,.mh-modern .page-cta h2 {color:#fff}
.mh-modern .wp-block-details summary {font-family:var(--sans);font-weight:600}

@media(max-width:1000px) {
  .mh-modern .mh-header-inner {min-height:88px}
  .mh-modern .hero {grid-template-columns:52% 48%}
  .mh-modern .hero h1 {font-size:clamp(46px,5.8vw,66px)}
  .mh-modern .hero-media {min-height:500px}
  .mh-modern .proof-inner>div {padding-inline:22px}
  .mh-modern .proof-inner h2 {font-size:20px}
  .mh-modern .ownership-band {padding-block:70px}
}
@media(max-width:700px) {
  .mh-modern .mh-header .wp-block-site-logo img {width:170px}
  .mh-modern .hero {display:flex;flex-direction:column}
  .mh-modern .hero-copy {padding:52px var(--gutter) 42px}
  .mh-modern .hero h1 {font-size:clamp(44px,11vw,68px);line-height:1.02;max-width:560px;overflow-wrap:normal}
  .mh-modern .hero-description {font-size:15px}
  .mh-modern .hero .hero-actions {width:100%;flex-direction:row}
  .mh-modern .hero .hero-actions .wp-block-button {width:auto;flex:1 1 150px}
  .mh-modern .hero .hero-actions .wp-block-button__link {min-width:0;width:100%;font-size:12px;padding:15px}
  .mh-modern .hero-media {min-height:300px;height:350px}
  .mh-modern .hero-image {clip-path:polygon(0 12%,100% 0,100% 100%,0 100%)}
  .mh-modern .hero-signature {inset:auto 0 0 auto;max-width:210px;padding:13px 18px;font-size:11px}
  .mh-modern .proof-band {padding:10px var(--gutter) 26px}
  .mh-modern .proof-inner {grid-template-columns:1fr;gap:0}
  .mh-modern .proof-inner>div,.mh-modern .proof-inner>div:first-child {padding:20px 0;border:0;border-bottom:1px solid #6c88ad}
  .mh-modern .proof-inner>div:last-child {border:0}
  .mh-modern .proof-inner h2 {font-size:21px}
  .mh-modern .partner-network {padding-top:48px}
  .mh-modern .partner-network-heading {align-items:flex-start;flex-direction:column;gap:12px}
  .mh-modern .partnerships {padding:58px 0 75px}
  .mh-modern .partnership-heading h2 {font-size:clamp(40px,10vw,58px)}
  .mh-modern .audience-panels {grid-template-columns:1fr;gap:50px}
  .mh-modern .audience-photo {aspect-ratio:1.6;margin-bottom:24px}
  .mh-modern .ownership-band {padding:60px 0}
  .mh-modern .ownership-band:before {width:80%;opacity:.32}
  .mh-modern .ownership-band>.container:not(.approach-steps) {display:block}
  .mh-modern .ownership-band h2 {font-size:40px;margin-bottom:24px}
  .mh-modern .ownership-band p {padding:0;border:0}
  .mh-modern .ownership-band .text-link {margin:20px 0 0}
  .mh-modern .approach-steps.container {grid-template-columns:1fr 1fr;gap:26px;margin-top:38px}
  .mh-modern .approach-steps .mh-list-item h3 {font-size:19px}
  .mh-modern #services {padding-block:70px}
  .mh-modern .mh-service-grid {grid-template-columns:1fr;margin-top:35px}
  .mh-modern .mh-service-grid>div,.mh-modern .mh-service-grid>div+div {padding:26px 0;border-left:0;border-bottom:1px solid #cbd8e7}
  .mh-modern .mh-service-grid h3 {font-size:27px}
  .mh-modern .partnership-story {padding-block:25px 65px}
  .mh-modern .story-photo img {height:310px}
  .mh-modern .story-copy h2 {font-size:38px}
  .mh-modern .page-hero {padding-top:0}
  .mh-modern .page-hero h1 {font-size:clamp(42px,10vw,58px)}
  .mh-modern .page-hero-media {clip-path:none;margin-left:0}
  .mh-modern .mh-cta {padding:32px!important}
}
@media(prefers-reduced-motion:reduce) {.mh-modern .audience-photo img {transition:none}}

/* Ensure contrast against WordPress navigation and correctly fill both image frames. */
.mh-modern .mh-header .mh-navigation a {color:#fff!important}
.mh-modern .mh-header .mh-navigation .wp-block-navigation__submenu-container a {color:#071b38!important}
.mh-modern .mh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a {color:#fff!important}
.mh-modern .audience-photo figure {width:100%;height:100%}
.mh-modern .audience-photo img {width:100%;height:100%;object-fit:cover}
.mh-modern .audience-body .wp-block-list {margin:22px 0 24px;padding:0;list-style:none;border-top:1px solid #d6e0eb}
.mh-modern .audience-body .wp-block-list li {font-size:13px;line-height:1.5;padding:11px 0;border-bottom:1px solid #d6e0eb}
.mh-modern .ownership-band .text-link {border-left:0;padding-left:0}
@media(max-width:900px) {
  .mh-modern .mh-header .wp-block-navigation__responsive-container.is-menu-open {background:#071b38!important;color:#fff!important}
  .mh-modern .mh-header .wp-block-navigation__responsive-container.is-menu-open a,
  .mh-modern .mh-header .wp-block-navigation__responsive-container.is-menu-open button {color:#fff!important}
  .mh-modern .mh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {background:transparent!important;box-shadow:none!important;border:0!important}
}
@media(max-width:900px) {
  .mh-modern .mh-header .is-menu-open .wp-block-navigation-item {align-items:flex-start!important}
  .mh-modern .mh-header .is-menu-open .wp-block-navigation__submenu-container {padding:12px 0 8px 18px!important;gap:10px}
}
/* Keep links and primary actions legible on the dark inside-page bands. */
.mh-modern .page-blue-band .text-link,
.mh-modern .page-blue-band .text-link a {color:#fff!important;border-color:#fff}
.mh-modern .page-cta .wp-block-button__link {background:#fff!important;border-color:#fff!important;color:#071b38!important}
.mh-modern .page-cta .wp-block-button__link:hover {background:#bce1ff!important;border-color:#bce1ff!important}

/* Editable white-paper excerpts end in a soft fade before the request form. */
.mh-modern .mh-paper-preview {position:relative;max-width:760px;margin:0 auto;padding:0 0 44px;color:#1b2b43}
.mh-modern .mh-paper-preview:after {content:"";position:absolute;inset:auto 0 0;height:138px;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.90) 75%,#fff);pointer-events:none}
.mh-modern .mh-paper-preview .eyebrow {margin:0 0 28px;color:#1853d8;font-weight:700}
.mh-modern .mh-paper-preview p:not(.eyebrow) {font-size:17px;line-height:1.85;letter-spacing:0;margin:0 0 24px;color:#27364d}
.mh-modern .mh-paper-preview h2 {font-size:clamp(30px,3.2vw,42px);line-height:1.14;letter-spacing:-.045em;margin:52px 0 22px;color:#071b38}
.mh-modern .mh-paper-preview h3 {font-size:19px;line-height:1.3;letter-spacing:-.02em;margin:32px 0 16px;color:#071b38}
.mh-modern .mh-paper-gate {position:relative;max-width:760px;margin:-5px auto 0;padding:clamp(28px,5vw,52px);background:#f1f5fb;border-top:3px solid #1853d8}
.mh-modern .mh-paper-gate h2 {font-size:clamp(28px,3vw,40px);line-height:1.12;letter-spacing:-.045em;margin:0 0 24px;color:#071b38}
.mh-modern .mh-paper-gate .mh-preview-note {background:#fff}
@media(max-width:600px) {
  .mh-modern .mh-paper-preview p:not(.eyebrow) {font-size:16px;line-height:1.8}
  .mh-modern .mh-paper-preview h2 {margin-top:38px}
  .mh-modern .mh-paper-gate .mh-form-row {grid-template-columns:1fr;gap:0}
}

/* Render the original transparent brand mark in white on the dark chrome. */
.mh-modern .mh-header .wp-block-site-logo,.mh-modern .mh-footer .wp-block-site-logo {background:transparent;padding:0}
.mh-modern .mh-header .wp-block-site-logo img,.mh-modern .mh-footer .wp-block-site-logo img {filter:brightness(0) invert(1)}

/* Podcast guest information and links migrated from the original articles. */
.mh-modern .mh-podcast-guest {display:grid;grid-template-columns:140px minmax(0,1fr);gap:24px;align-items:start;margin:28px 0 34px}
.mh-modern .mh-podcast-guest .wp-block-image img {width:100%;height:auto;display:block}
.mh-modern .mh-podcast-guest p {margin:0;line-height:1.8}
.mh-modern .mh-listen-on {margin:4px 0 44px;padding:4px 0 30px;border-bottom:1px solid #d9e2ed}
.mh-modern .mh-listen-on .eyebrow {margin:0 0 18px;color:#1853d8;font-weight:700}
.mh-modern .mh-listen-on .wp-block-buttons {gap:10px}
.mh-modern .mh-listen-on .wp-block-button__link {min-height:44px;padding:10px 16px;font-size:12px}
@media(max-width:600px) {.mh-modern .mh-podcast-guest {grid-template-columns:90px minmax(0,1fr);gap:18px}}

/* Keep default filled buttons readable in imported content sections. */
.mh-modern .source-section .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  color: #fff;
}
.mh-modern .source-section .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  color: #fff;
}
/* Keep the return link aligned with its biography and remove double section spacing. */
.mh-modern .page-section:has(> .mh-biography) {
  padding-bottom: 48px;
}
.mh-modern .page-section:has(> .mh-biography) + .page-section {
  padding-top: 0;
}
.mh-modern .page-section:has(> .mh-biography) + .page-section > .source-section {
  max-width: 850px;
}

.mh-modern .mh-organization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.mh-modern .mh-organization-card {
  border: 1px solid #d7e0ef;
  padding: 28px;
}
.mh-modern .mh-organization-card .wp-block-image {
  display: flex;
  align-items: center;
  height: 92px;
  margin: 0 0 24px;
}
.mh-modern .mh-organization-card img {
  width: auto;
  max-width: 220px;
  max-height: 88px;
  object-fit: contain;
}
.mh-modern .mh-organization-card h5 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.mh-modern .mh-organization-card p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 700px) {
  .mh-modern .mh-organization-grid { grid-template-columns: 1fr; }
}

.mh-modern .mh-organization-card h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 12px;
}

/* Services review page: prevent hero overflow on tablets and small phones. */
.mh-modern.page-id-139 .page-hero-copy,
.mh-modern.page-id-139 .page-hero-media { min-width: 0; }
.mh-modern.page-id-139 .page-hero + .page-section { padding-top: clamp(32px, 4vw, 52px); }
@media (min-width: 641px) and (max-width: 999px) {
  .mh-modern.page-id-139 .page-hero h1 { font-size: clamp(34px, 5.3vw, 48px); }
  .mh-modern.page-id-139 .page-hero-media { min-height: 0; }
}
@media (max-width: 340px) {
  .mh-modern.page-id-139 .page-hero h1 { font-size: 36px; }
}

/* Keep shared footer columns within narrow phone screens. */
@media (max-width: 600px) {
  .mh-modern .mh-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-modern .mh-footer-grid > * { min-width: 0; }
}

/* Footer headings are navigation labels, not page-section titles. */
.mh-modern .mh-footer h3 { font-size: 14px; line-height: 1.4; }

/* The image should follow its column size at intermediate desktop widths. */
@media (min-width: 641px) { .mh-modern.page-id-139 .page-hero-media { min-height: 0; } }

/* Facility page contrast and responsive sizing. */
.mh-modern.single-mh_facility .page-hero-copy,.mh-modern.single-mh_facility .page-hero-media {min-width:0}
.mh-modern.single-mh_facility .source-section a.button,.mh-modern.single-mh_facility .source-section a.button:hover,.mh-modern.single-mh_facility .source-section a.button:focus-visible {color:#fff}
@media (min-width:641px){.mh-modern.single-mh_facility .page-hero-media{min-height:0}}
@media (min-width:641px) and (max-width:999px){.mh-modern.single-mh_facility .page-hero h1{font-size:clamp(34px,5.3vw,48px)}}
