/* Shared MHB chrome. Page colours may vary; geometry and navigation do not. */
.mhb-site-header.site-header{--mhb-header-ink:#52664f;--mhb-header-bg:#fff;--mhb-menu-bg:#f3f7f1;--mhb-menu-line:#d4dfd1;position:relative;z-index:50;display:block;width:100%;max-width:none;height:120px;margin:0;padding:0;border:0;border-image:none;box-shadow:none;background:var(--mhb-header-bg);color:var(--mhb-header-ink);font:400 13px/1.4 Arial,Helvetica,sans-serif;letter-spacing:normal;backdrop-filter:none;-webkit-backdrop-filter:none}
.mhb-site-header.site-header[data-mhb-theme=overlay]{--mhb-header-bg:transparent}
.mhb-site-header.site-header[data-mhb-theme=dark]{--mhb-header-ink:#f0f4f4;--mhb-header-bg:#050607;--mhb-menu-bg:#101719;--mhb-menu-line:#364447}
.mhb-site-header.site-header .wrap{width:90%;max-width:1420px;margin-inline:auto;padding-inline:0}
.mhb-site-header.site-header .header-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:28px;min-height:0;height:120px;padding-block:32px 14px;grid-template-columns:none}
.mhb-site-header.site-header .brand{position:relative;display:block;flex:none;min-width:0;max-width:none;width:220.8px;margin:0;padding:0;line-height:1;grid-column:auto;grid-row:auto}
.mhb-site-header.site-header .brand img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.mhb-site-header.site-header .brand .mhb-white-wordmark{display:none}
.mhb-site-header.site-header[data-mhb-theme=dark] .brand>img:first-child{clip-path:inset(0 70% 0 0)}
.mhb-site-header.site-header[data-mhb-theme=dark] .brand .mhb-white-wordmark{position:absolute;inset:0;display:block;width:100%;height:100%;clip-path:inset(0 0 0 30%);filter:brightness(0) invert(1) drop-shadow(0 0 0 #fff) drop-shadow(0 0 0 #fff);pointer-events:none}
.mhb-site-header.site-header .mhb-primary-nav{display:flex;flex:0 1 auto;align-items:center;justify-content:flex-end;gap:20px;margin:0;padding:0;grid-column:auto;grid-row:auto;min-width:0}
.mhb-site-header.site-header :is(.mhb-primary-nav a,.mhb-nav-menu>summary){display:inline-flex;align-items:center;gap:6px;padding:8px 0;border:0;border-bottom:1px solid transparent;border-radius:0;background:none;color:inherit;font:400 12px/1.4 Arial,Helvetica,sans-serif;letter-spacing:0;white-space:nowrap;text-decoration:none;cursor:pointer}
.mhb-site-header.site-header :is(.mhb-primary-nav a,.mhb-nav-menu>summary):hover{color:inherit;border-bottom-color:currentColor}
.mhb-site-header.site-header a[aria-current=page],.mhb-site-header.site-header a[data-current-group=true]{font-weight:700}
.mhb-site-header.site-header .mhb-nav-menu:has(a[aria-current=page],a[data-current-group=true])>summary{font-weight:700}
.mhb-site-header.site-header .mhb-nav-menu{position:relative}
.mhb-site-header.site-header .mhb-nav-menu>summary{list-style:none}
.mhb-site-header.site-header summary::-webkit-details-marker{display:none}
.mhb-site-header.site-header .mhb-chevron{display:inline-block;width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin-top:-3px}
.mhb-site-header.site-header .mhb-submenu{position:absolute;z-index:70;inset-inline-start:0;top:calc(100% + 8px);display:flex;flex-direction:column;align-items:stretch;width:240px;margin:0;padding:13px 19px;border:1px solid var(--mhb-menu-line);border-radius:8px;background:var(--mhb-menu-bg);box-shadow:0 14px 30px #172d2114}
.mhb-site-header.site-header .mhb-primary-nav>.mhb-nav-menu:last-child .mhb-submenu{inset-inline-start:auto;inset-inline-end:0}
.mhb-site-header.site-header .mhb-submenu a{padding:10px 0;white-space:normal;color:inherit}
.mhb-site-header.site-header .header-tools{position:absolute;inset-inline-end:max(5%,calc((100% - 1420px)/2));top:10px;bottom:auto;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;width:auto;max-width:none;gap:12px;margin:0;padding:0}
.mhb-site-header.site-header :is(.home-client-login,.language-switch a){padding:2px 3px;background:none;color:inherit;border:0;border-radius:0;font:400 10px/1.4 Arial,Helvetica,sans-serif;text-decoration:none}
.mhb-site-header.site-header .home-client-login:hover{text-decoration:underline;text-underline-offset:4px}
.mhb-site-header.site-header .language-switch{display:inline-flex;align-items:center;gap:4px;font-size:10px;white-space:nowrap}
.mhb-site-header.site-header .language-switch a[aria-current=page]{font-weight:700;text-decoration:underline;text-underline-offset:4px}
.mhb-site-header.site-header .ai-control{position:relative;display:inline-flex;flex:none;padding:0}
.mhb-site-header.site-header .ai-disclosure{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;aspect-ratio:1;padding:0;border:1px solid #aabca6;border-radius:50%;background:transparent;color:inherit;font:700 9px/1 Arial,Helvetica,sans-serif;cursor:pointer}
.mhb-site-header.site-header .ai-tooltip{top:calc(100% + 9px);color:#343e43;line-height:1.45}
.mhb-site-header.site-header .mhb-mobile-menu{display:none;margin:0}
.mhb-site-header.site-header :is(a,summary,button):focus-visible{outline:2px solid currentColor;outline-offset:4px}

/* Current section: retain the shared ink, with a fine line in its topic colour.
   Text decoration follows the label width in both horizontal and mobile menus. */
.mhb-site-header.site-header [data-mhb-nav-theme=company]{--mhb-nav-accent:#0070f3}
.mhb-site-header.site-header [data-mhb-nav-theme=key-person]{--mhb-nav-accent:#5b3cc4}
.mhb-site-header.site-header [data-mhb-nav-theme=employees]{--mhb-nav-accent:#00c27a}
.mhb-site-header.site-header [data-mhb-nav-theme=personal]{--mhb-nav-accent:#f7a600}
.mhb-site-header.site-header :is(.mhb-primary-nav,.mhb-mobile-menu) a:is([aria-current=page],[data-current-group=true]),
.mhb-site-header.site-header .mhb-nav-menu:has(a[aria-current=page],a[data-current-group=true])>summary{
 font-weight:700;
 text-decoration-line:underline;
 text-decoration-color:color-mix(in srgb,var(--mhb-nav-accent,#42a99b) 75%,transparent);
 text-decoration-thickness:1px;
 text-underline-offset:8px;
 border-bottom-color:transparent;
}

/* Native chapter scrolling: long content remains fully readable and scrollable. */
html:has(.mhb-consistent){scroll-behavior:smooth;scroll-snap-type:y mandatory;scroll-padding-top:var(--mhb-sticky-height,0px)}
.mhb-consistent [data-mhb-chapter]{position:relative;box-sizing:border-box;min-width:0;min-height:calc(100svh - var(--mhb-sticky-height,0px));scroll-snap-align:start;scroll-snap-stop:always;scroll-margin-top:0;padding-bottom:max(88px,var(--mhb-original-bottom,0px))}
.mhb-consistent [data-mhb-first]{min-height:calc(100svh - var(--mhb-first-offset,120px));scroll-margin-top:var(--mhb-first-offset,120px);scroll-snap-align:none}
.mhb-consistent .masthead[data-mhb-first]{--mhb-first-offset:0px;min-height:100svh;padding-bottom:66px}
.mhb-consistent [data-mhb-footer]{min-height:calc(100svh - var(--mhb-sticky-height,0px));scroll-snap-align:start;scroll-snap-stop:always;scroll-margin-top:0}
.mhb-consistent [data-mhb-chapter]:focus,.mhb-consistent [data-mhb-footer]:focus{outline:none}
.mhb-consistent .mhb-section-arrow{position:absolute;z-index:6;left:calc(50% - 24px);bottom:max(14px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;width:48px;height:52px;margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;text-decoration:none;pointer-events:auto;transform:none}
.mhb-consistent .mhb-section-arrow svg{display:block;width:22px;height:38px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.mhb-consistent .mhb-section-arrow:hover svg{transform:translateY(4px)}
.mhb-consistent .mhb-section-arrow:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.mhb-consistent .mhb-section-arrow[hidden]{display:none}
.mhb-consistent .rf-hero{grid-template-rows:auto minmax(0,1fr)}
.mhb-consistent .site-header{scroll-snap-align:start;scroll-snap-stop:always}
.mhb-consistent .mf-act--one{--mf-screen:calc(100svh - var(--mhb-first-offset,120px))}
.mhb-consistent .mf-act--four{gap:0}
.mhb-consistent .reference-band[data-mhb-chapter]{display:flex;flex-direction:column;justify-content:center}
.mhb-consistent .paths[data-mhb-chapter]{display:flex;flex-direction:column;justify-content:center}
.mhb-consistent .reference-band[data-mhb-chapter]>.wrap{width:90%;max-width:1420px}
.mhb-consistent .mhb-chapter-group{display:flex;flex-direction:column;justify-content:center}
.mhb-consistent .mhb-centered-chapter{display:flex;flex-direction:column;justify-content:center}
.mhb-consistent[data-mhb-calculator] .mhb-calculator-bar{z-index:30}
.mhb-consistent[data-mhb-calculator] .mhb-section-arrow{max-width:none}
@media(min-width:701px){
 .mhb-consistent:is(.company-image-page,.employee-image-page,.family-image-page,.key-person-image-page) .page-hero{--company-top-space:var(--mhb-first-offset);--employee-top-space:var(--mhb-first-offset);--family-top-space:var(--mhb-first-offset);--key-person-top-space:var(--mhb-first-offset)}
 .mhb-consistent:is(.company-image-page,.employee-image-page,.family-image-page,.key-person-image-page) .page-hero figure img{height:calc(100svh - 88px);max-height:calc(100svh - 88px);object-fit:contain}
 .mhb-consistent[data-mhb-calculator] .hero[data-mhb-first]{padding-top:24px}
 .mhb-consistent[data-mhb-calculator] .hero-calculator{padding-top:20px;padding-bottom:18px}
 .mhb-consistent[data-mhb-calculator] .poster-title{margin-block:18px}
 .mhb-consistent[data-mhb-calculator] .poster-number{margin-top:18px}
 .mhb-consistent[data-mhb-calculator] .poster-caption{margin-bottom:14px}
}
@media(max-width:1280px){
 .mhb-site-header.site-header .mhb-primary-nav{display:none}
 .mhb-site-header.site-header .mhb-mobile-menu{position:relative;display:block;flex:none}
 .mhb-site-header.site-header .mhb-mobile-menu>summary{display:flex;align-items:center;gap:10px;padding:12px 0;border:0;border-radius:0;background:none;color:inherit;list-style:none;font:400 12px/1.4 Arial,Helvetica,sans-serif;cursor:pointer}
 .mhb-site-header.site-header .mhb-menu-icon{display:inline-block;width:18px;height:11px;border-top:1px solid currentColor;border-bottom:1px solid currentColor}
 .mhb-site-header.site-header .mhb-mobile-menu>nav{position:absolute;z-index:80;inset-inline-end:0;inset-inline-start:auto;top:calc(100% + 10px);display:flex;flex-direction:column;align-items:stretch;width:min(320px,90vw);max-height:calc(100svh - 126px);overflow-y:auto;overscroll-behavior:contain;margin:0;padding:17px 22px;border:1px solid var(--mhb-menu-line);border-radius:8px;background:var(--mhb-menu-bg);color:inherit;box-shadow:0 14px 30px #172d2114;backdrop-filter:none}
 .mhb-site-header.site-header .mhb-mobile-menu>nav>a,.mhb-site-header.site-header .mhb-mobile-menu .mhb-nav-menu>summary{display:flex;align-items:center;justify-content:space-between;width:100%;padding:11px 0;border:0;color:inherit;font:400 14px/1.4 Arial,Helvetica,sans-serif;text-decoration:none}
 .mhb-site-header.site-header .mhb-mobile-menu .mhb-submenu{position:static;width:auto;margin:0;padding:0 0 10px 15px;border:0;border-radius:0;box-shadow:none;background:none}
 .mhb-site-header.site-header .mhb-mobile-menu .mhb-submenu a{font:400 13px/1.5 Arial,Helvetica,sans-serif;text-decoration:none;padding:8px 0}
}
@media(max-width:700px){
 .mhb-site-header.site-header,.mhb-site-header.site-header .header-inner{height:112px}
 .mhb-site-header.site-header .header-inner{gap:20px;padding-block:32px 10px}
 .mhb-site-header.site-header .brand,.mhb-site-header.site-header .brand img{width:184px;max-width:100%}
 .mhb-site-header.site-header .header-tools{top:8px;gap:9px}
 .mhb-site-header.site-header .mhb-mobile-menu>nav{max-height:calc(100svh - 116px)}
 .mhb-consistent [data-mhb-first]{--mhb-first-offset:112px}
 .mhb-consistent .masthead[data-mhb-first]{--mhb-first-offset:0px}
}
@media(prefers-reduced-motion:reduce){
 html:has(.mhb-consistent){scroll-behavior:auto;scroll-snap-type:none}
 .mhb-consistent .mhb-section-arrow svg{transition:none}
 .mhb-consistent .mhb-section-arrow:hover svg{transform:none}
}
@media(max-width:700px) and (max-height:720px){
 .mhb-consistent .masthead[data-mhb-first]{padding-bottom:52px}
 .mhb-consistent .masthead .hero{padding-top:16px}
 .mhb-consistent .masthead .hero-footer{gap:12px;padding-block:12px 10px}
 .mhb-consistent .masthead .hero-footer>span{font-size:9px;max-width:165px}
 .mhb-consistent .masthead .hero-footer .text-link{font-size:9px}
}
@media(min-width:701px) and (max-height:550px){
 .mhb-consistent [data-mhb-chapter]{padding-bottom:66px}
}
@media print{
 .mhb-site-header.site-header,.mhb-consistent .mhb-section-arrow{display:none}
 html:has(.mhb-consistent){scroll-snap-type:none}
 .mhb-consistent [data-mhb-chapter],.mhb-consistent [data-mhb-footer]{min-height:0;scroll-snap-align:none}
}

/* Emphasize topic labels on hover/focus and keep the selected section bold. */
body.home-motion .masthead .mhb-topic-nav .mhb-topic-trigger:is(:hover,:focus-visible,[aria-current=page],[data-current-group=true]),
body.palette-concept .palette-tabs .palette-topic .palette-tab:is(:hover,:focus-visible,[aria-current=page],[data-current-group=true]){font-weight:700}
body .mhb-site-header.site-header :is(.mhb-primary-nav,.mhb-mobile-menu) a:is([aria-current=page],[data-current-group=true]),
body .mhb-site-header.site-header .mhb-nav-menu:has(a[aria-current=page],a[data-current-group=true])>summary{font-weight:700}

/* Match topic hover emphasis in the global desktop and mobile navigation. */
body .mhb-site-header.site-header :is(.mhb-primary-nav,.mhb-mobile-menu) a:is(:hover,:focus-visible),
body .mhb-site-header.site-header .mhb-nav-menu>summary:is(:hover,:focus-visible){font-weight:700}
