/* MGS R8.1 isolated navigation and knowledge architecture */
.mgs-r81-header{z-index:1000}.mgs-r81-wrap{display:grid!important;grid-template-columns:minmax(230px,290px) minmax(0,1fr) auto;gap:18px;align-items:center}.mgs-r81-nav{min-width:0}.mgs-r81-primary{display:flex;align-items:center;justify-content:flex-end;gap:clamp(10px,1vw,18px)}.mgs-r81-primary>a,.mgs-r81-menu-group>a{white-space:nowrap}.mgs-r81-menu-group{display:contents}.mgs-r81-group-label{display:none}.mgs-r81-study{display:none}.mgs-r81-utilities{display:flex;align-items:center;gap:9px}.mgs-r81-utilities>a,.mgs-r81-utilities button{min-width:44px;min-height:44px;display:inline-flex!important;align-items:center;justify-content:center}.mgs-r81-utilities .mgs-ask-entry{font-size:.8rem}.mgs-r81-utilities .language-switch{font-weight:800}.mgs-r81-header .menu-toggle{display:none!important}.mgs-r81-compact-only{display:none!important}.mgs-r81-breadcrumb-wrap{width:min(calc(100% - 40px),1180px);margin:0 auto;padding:18px 0 0}.mgs-r81-breadcrumbs{display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-size:.82rem}.mgs-r81-breadcrumbs a{color:inherit}.mgs-r81-breadcrumbs span[aria-hidden]{opacity:.55}.mgs-r81-hub{padding:clamp(54px,8vw,100px) 0}.mgs-r81-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:36px}.mgs-r81-hub-card{display:flex;min-height:210px;flex-direction:column;padding:26px;border:1px solid rgba(201,168,106,.4);background:#fff;color:#171717;text-decoration:none}.mgs-r81-hub-card h2{font-size:clamp(1.35rem,2vw,1.8rem)}.mgs-r81-hub-card p{line-height:1.55}.mgs-r81-hub-card small{margin-top:auto;font-weight:800;color:#725820}.mgs-r81-hub-card.is-developing{background:#f3eee4}.mgs-nav-locked{overflow:hidden!important;position:fixed!important;width:100%!important}
@media(max-width:1679px){.mgs-r81-wrap{grid-template-columns:minmax(0,1fr) auto auto!important;gap:8px!important}.mgs-r81-header .brand{min-width:0!important;max-width:none!important}.mgs-r81-header .menu-toggle{display:block!important;min-width:44px;min-height:44px}.mgs-r81-utilities{gap:4px}.mgs-r81-utilities .search-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}.mgs-r81-utilities .mgs-ask-entry{font-size:.72rem;padding-inline:7px}.mgs-r81-nav{display:none!important;position:fixed!important;z-index:999!important;top:calc(var(--header-h,86px) + env(safe-area-inset-top))!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:none!important;max-height:none!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:18px max(20px,env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))!important;background:#151515!important;color:#fff!important}.mgs-r81-nav.open{display:block!important}.mgs-r81-study{display:block}.mgs-r81-study>p{margin:0 0 8px;color:#c9a86a;font-size:.72rem;font-weight:800;letter-spacing:.15em}.mgs-r81-knowledge{display:block!important;padding:13px 0!important;font-size:1.08rem;font-weight:800}.mgs-r81-pillars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:4px 0 18px}.mgs-r81-pillar{display:flex!important;min-height:48px!important;flex-direction:column;justify-content:center;padding:9px 12px!important;border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.04)}.mgs-r81-pillar small{color:#c9a86a}.mgs-r81-primary{display:flex;flex-direction:column;align-items:stretch;gap:0;border-top:1px solid rgba(255,255,255,.2);padding-top:8px}.mgs-r81-primary>a{display:block!important;min-height:46px;padding:12px 4px!important}.mgs-r81-knowledge-primary{display:none!important}.mgs-r81-compact-only{display:block!important}.mgs-r81-breadcrumb-wrap{padding-top:14px}}
@media(max-width:620px){.mgs-r81-header .brand-copy{display:none}.mgs-r81-wrap{grid-template-columns:minmax(56px,1fr) auto auto!important}.mgs-r81-pillars{grid-template-columns:1fr}.mgs-r81-hub-grid{grid-template-columns:1fr}.mgs-r81-hub-card{min-height:0}.mgs-r81-utilities .language-switch{padding-inline:5px}.mgs-r81-breadcrumb-wrap{width:min(calc(100% - 32px),1180px)}}
@media(min-width:1680px){.mgs-r81-nav{display:block!important;position:static!important;width:auto!important;max-width:none!important;overflow:visible!important}.mgs-r81-header .menu-toggle{display:none!important}}

/* R8 Master P1: isolated mobile header hit areas */
@media(max-width:1679px){
  .site-header.mgs-r81-header .nav-wrap.mgs-r81-wrap{
    display:grid!important;
    grid-template-columns:minmax(44px,1fr) auto 48px!important;
    gap:8px!important;
    align-items:center!important;
  }
  .mgs-r81-header .brand{grid-column:1;min-width:0!important;max-width:100%!important}
  .site-header.mgs-r81-header .mgs-r81-nav{
    grid-column:1/-1;
    position:fixed!important;
    z-index:1001!important;
    top:calc(var(--header-h,86px) + env(safe-area-inset-top))!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    height:calc(100dvh - var(--header-h,86px) - env(safe-area-inset-top))!important;
    max-height:calc(100dvh - var(--header-h,86px) - env(safe-area-inset-top))!important;
    justify-content:flex-start!important;
  }
  .mgs-r81-header .mgs-r81-utilities{
    grid-column:2;
    position:relative;
    z-index:1002;
    min-width:0;
    justify-self:end;
    isolation:isolate;
  }
  .mgs-r81-header .mgs-r81-utilities>a,
  .mgs-r81-header .mgs-r81-utilities>button{
    position:relative;
    pointer-events:auto;
  }
  .mgs-r81-header .mgs-r81-utilities>.search-toggle{
    flex:0 0 44px!important;
    width:44px!important;
    min-width:44px!important;
    padding:0!important;
    text-align:center!important;
  }
  .mgs-r81-header .menu-toggle{
    grid-column:3;
    position:relative;
    z-index:1003;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    min-height:48px!important;
    margin:0!important;
    justify-self:end;
    pointer-events:auto;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
}
@media(max-width:620px){
  .site-header.mgs-r81-header .nav-wrap.mgs-r81-wrap{
    grid-template-columns:minmax(44px,1fr) minmax(0,auto) 48px!important;
  }
  .mgs-r81-header .mgs-r81-utilities{gap:2px!important}
  .mgs-r81-header .mgs-r81-utilities .mgs-ask-entry{
    max-width:92px;
    padding-inline:4px!important;
    line-height:1.15;
    text-align:center;
    white-space:normal;
  }
  .mgs-r81-header .mgs-r81-utilities .language-switch{
    width:44px;
    min-width:44px;
    padding-inline:0!important;
  }
}

/* iPhone physical QA: retain a 44px target while reducing the visual dominance of the microphone. */
@media(max-width:620px){.mgs-r81-header .mgs-voice-orb{width:36px;height:36px;flex-basis:36px}}
/* R8 Master iPad HF4: explicit five-zone tablet header */
@media(min-width:621px) and (max-width:1679px){
  .site-header.mgs-r81-header .nav-wrap.mgs-r81-wrap{
    grid-template-columns:minmax(180px,1fr) max-content max-content 44px 48px!important;
    gap:clamp(4px,1vw,10px)!important;
  }
  .mgs-r81-header .brand{
    grid-column:1;
    width:auto!important;
    overflow:hidden;
  }
  .mgs-r81-header .mgs-r81-utilities{display:contents!important}
  .mgs-r81-header .mgs-r81-utilities>.search-toggle{
    grid-column:2;
    width:auto!important;
    min-width:70px!important;
    padding:0 8px!important;
    gap:5px!important;
    justify-self:end;
  }
  .mgs-r81-header .mgs-r81-utilities>.search-toggle .search-label{
    position:static!important;
    width:auto!important;
    height:auto!important;
    overflow:visible!important;
    clip:auto!important;
    white-space:nowrap!important;
  }
  .mgs-r81-header .mgs-r81-utilities>.mgs-ask-entry{
    grid-column:3;
    min-width:0!important;
    padding-inline:6px!important;
    white-space:nowrap!important;
    justify-self:end;
  }
  .mgs-r81-header .mgs-r81-utilities>.language-switch{
    grid-column:4;
    width:44px!important;
    min-width:44px!important;
    padding-inline:0!important;
    justify-self:end;
  }
  .mgs-r81-header .menu-toggle{grid-column:5}
}
body[data-mgs-ask-page] .mgs-sticky-decision,
.site-search[open]~.mgs-sticky-decision,
body:has(.site-search[open]) .mgs-sticky-decision,
body:has(.privacy-banner) .mgs-sticky-decision,
body:has(.privacy-dialog[open]) .mgs-sticky-decision{display:none!important}
@media(min-width:1680px){
  .site-header.mgs-r81-header .nav-wrap.mgs-r81-wrap{
    grid-template-columns:minmax(250px,300px) minmax(0,1fr) auto!important;
    align-items:center!important;
  }
  .mgs-r81-header .mgs-r81-nav{grid-column:2}
  .mgs-r81-header .mgs-r81-utilities{grid-column:3;justify-self:end}
}
@media(prefers-reduced-motion:reduce){.mgs-r81-header *{scroll-behavior:auto!important;transition:none!important}}

/* R8 final physical delta: deterministic iOS header clearance and glossary targets. */
@media(max-width:780px){
  html{scroll-padding-top:calc(var(--mgs-header-box-h,calc(var(--header-h,82px) + env(safe-area-inset-top))) + 8px)!important}
  body:has(>.site-header.mgs-r81-header){padding-top:var(--mgs-header-box-h,calc(var(--header-h,82px) + env(safe-area-inset-top)))}
  .site-header.mgs-r81-header{position:fixed!important;top:0!important;right:0!important;left:0!important;width:100%!important;transform:none!important}
  body.mgs-r81-knowledge-page .mgs-r81-breadcrumb-wrap{margin-top:0}
  .glossary-letter[id]{scroll-margin-top:calc(var(--mgs-header-box-h,calc(var(--header-h,82px) + env(safe-area-inset-top))) + 8px)!important}
}

/* Wide-header intrinsic-fit fallback: preserve every critical utility when full navigation cannot fit. */
@media(min-width:1680px){
  .site-header.mgs-r81-header.mgs-r81-compact .nav-wrap.mgs-r81-wrap{grid-template-columns:minmax(180px,1fr) max-content max-content 44px 48px!important;gap:clamp(4px,1vw,10px)!important;align-items:center!important}
  .mgs-r81-header.mgs-r81-compact .brand{grid-column:1;min-width:0!important;max-width:100%!important;width:auto!important;overflow:hidden}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-utilities{display:contents!important}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-utilities>.search-toggle{grid-column:2;width:auto!important;min-width:70px!important;padding:0 8px!important;gap:5px!important;justify-self:end}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-utilities>.search-toggle .search-label{position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important;white-space:nowrap!important}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-utilities>.mgs-ask-entry{grid-column:3;min-width:0!important;padding-inline:6px!important;white-space:nowrap!important;justify-self:end}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-utilities>.language-switch{grid-column:4;display:inline-flex!important;width:44px!important;min-width:44px!important;padding-inline:0!important;justify-self:end}
  .mgs-r81-header.mgs-r81-compact .menu-toggle{display:block!important;grid-column:5;position:relative;z-index:1003;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;margin:0!important;justify-self:end;pointer-events:auto}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-nav{display:none!important;grid-column:1/-1;position:fixed!important;z-index:1001!important;top:calc(var(--header-h,86px) + env(safe-area-inset-top))!important;right:0!important;bottom:0!important;left:0!important;width:100%!important;height:calc(100dvh - var(--header-h,86px) - env(safe-area-inset-top))!important;max-height:calc(100dvh - var(--header-h,86px) - env(safe-area-inset-top))!important;overflow-y:auto!important;padding:18px max(20px,env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))!important;background:#151515!important;color:#fff!important}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-nav.open{display:block!important}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-study{display:block}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-pillars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:4px 0 18px}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-primary{display:flex;flex-direction:column;align-items:stretch;gap:0;border-top:1px solid rgba(255,255,255,.2);padding-top:8px}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-primary>a{display:block!important;min-height:46px;padding:12px 4px!important}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-knowledge-primary{display:none!important}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-compact-only{display:block!important}
}

/* HF4 Knowledge Centre: keep developing status visually distinct from titles */
.mgs-r81-pillar>span{display:block}
.mgs-r81-pillar>small{display:block;margin-top:6px;line-height:1.35}
.mgs-r81-hub-card.is-developing>h2{margin-bottom:12px}
.mgs-r81-hub-card.is-developing>small{display:block;padding-top:14px;line-height:1.35}

/* HF5: one voice/search control using the existing MGS speech path */
.mgs-r81-header .mgs-voice-search-toggle{gap:7px!important;border:0;background:transparent;color:inherit;cursor:pointer}
.mgs-r81-header .mgs-voice-orb{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:50%;background:#72c64b;color:#0b0b0b;box-shadow:0 0 0 1px rgba(0,0,0,.16)}
.mgs-r81-header .mgs-voice-orb svg{display:block;width:23px;height:23px;fill:currentColor}
.mgs-r81-header .mgs-voice-search-toggle:hover .mgs-voice-orb,.mgs-r81-header .mgs-voice-search-toggle:focus-visible .mgs-voice-orb{box-shadow:0 0 0 3px rgba(114,198,75,.3)}
.mgs-r81-header .mgs-voice-search-toggle[data-voice-state="listening"] .mgs-voice-orb{animation:mgs-header-voice-pulse 1.2s ease-in-out infinite;box-shadow:0 0 0 4px rgba(114,198,75,.28)}
.mgs-r81-header .mgs-voice-search-toggle[data-voice-state="insecure"] .mgs-voice-orb,.mgs-r81-header .mgs-voice-search-toggle[data-voice-state="unavailable"] .mgs-voice-orb{background:#d5d5d2;color:#555;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
@keyframes mgs-header-voice-pulse{50%{transform:scale(1.06)}}
@media(min-width:621px){.mgs-r81-header .mgs-voice-search-toggle{width:auto!important;min-width:70px!important;padding-inline:0!important}.mgs-r81-header .mgs-voice-search-toggle .search-label{position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important;white-space:nowrap!important}}
@media(max-width:620px){.mgs-r81-header .mgs-voice-search-toggle .search-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}.mgs-r81-header .mgs-voice-search-toggle{width:46px!important;min-width:46px!important;padding:0!important}}
@media(prefers-reduced-motion:reduce){.mgs-r81-header .mgs-voice-search-toggle[data-voice-state="listening"] .mgs-voice-orb{animation:none}}

/* R8.7: distinguish specialist centres from focused hub views and preserve every indexed field. */
.mgs-r81-pillar>small{font-size:.68rem;font-weight:750;letter-spacing:.02em}
body.mgs-knowledge-focused .mgs-r81-focus-panel{scroll-margin-top:calc(var(--mgs-header-box-h,var(--header-h,86px)) + 14px);margin:0 0 34px;padding:18px;border:2px solid #8f6c28;background:#f6f2ea}
.mgs-r81-focus-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px}
.mgs-r81-focus-kicker{margin:0;color:#725820;font-size:.78rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.mgs-r81-focus-all{display:inline-flex;min-height:44px;align-items:center;padding:8px 12px;border:1px solid #725820;color:#171717;font-size:.82rem;font-weight:800;text-decoration:none}
.mgs-r81-focus-all:focus-visible{outline:3px solid #171717;outline-offset:3px}
.mgs-r81-focus-panel>.mgs-r81-hub-card{min-height:0;margin:0;border-color:#8f6c28;box-shadow:0 10px 24px rgba(18,18,18,.08)}
.mgs-r81-other-fields-title{margin:0 0 14px;font-size:clamp(1.25rem,2vw,1.65rem)}
.mgs-r81-hub-card>.mgs-r81-destination-type{margin:0 0 8px;color:#725820;font-size:.72rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
@media(max-width:620px){body.mgs-knowledge-focused .mgs-r81-focus-panel{margin-bottom:26px;padding:12px}.mgs-r81-focus-controls{align-items:flex-start;flex-direction:column;gap:9px}.mgs-r81-focus-all{width:100%;justify-content:center;text-align:center}}

/* R8 canonical shell: help is a first-class utility; all controls retain independent hit areas. */
.mgs-r81-header .mgs-help-entry{width:44px;min-width:44px!important;padding:0!important;border:1px solid currentColor;border-radius:50%;font-size:1rem;font-weight:850;line-height:1;text-decoration:none}
@media(min-width:621px) and (max-width:1679px){
  .site-header.mgs-r81-header .nav-wrap.mgs-r81-wrap{grid-template-columns:minmax(150px,1fr) max-content 44px max-content 44px 48px!important}
  .mgs-r81-header .mgs-r81-utilities>.search-toggle{grid-column:2}
  .mgs-r81-header .mgs-r81-utilities>.mgs-help-entry{grid-column:3;justify-self:end}
  .mgs-r81-header .mgs-r81-utilities>.mgs-ask-entry{grid-column:4}
  .mgs-r81-header .mgs-r81-utilities>.language-switch{grid-column:5}
  .mgs-r81-header .menu-toggle{grid-column:6}
}
@media(min-width:1680px){
  .site-header.mgs-r81-header.mgs-r81-compact .nav-wrap.mgs-r81-wrap{grid-template-columns:minmax(150px,1fr) max-content 44px max-content 44px 48px!important}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-utilities>.search-toggle{grid-column:2}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-utilities>.mgs-help-entry{grid-column:3;justify-self:end}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-utilities>.mgs-ask-entry{grid-column:4}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-utilities>.language-switch{grid-column:5}
  .mgs-r81-header.mgs-r81-compact .menu-toggle{grid-column:6}
}
@media(max-width:620px){
  .site-header.mgs-r81-header .nav-wrap.mgs-r81-wrap{grid-template-columns:44px minmax(0,1fr) 44px!important;gap:4px!important}
  .mgs-r81-header .brand{width:44px!important;overflow:visible!important}
  .mgs-r81-header .mgs-r81-utilities{width:100%;gap:2px!important;justify-content:space-between}
  .mgs-r81-header .mgs-r81-utilities>.search-toggle{flex:0 0 42px!important;width:42px!important;min-width:42px!important}
  .mgs-r81-header .mgs-voice-orb{width:42px;height:42px;flex-basis:42px}
  .mgs-r81-header .mgs-help-entry{width:36px;min-width:36px!important;min-height:42px!important;border:0}
  .mgs-r81-header .mgs-r81-utilities .mgs-ask-entry{max-width:74px;min-width:64px!important;padding-inline:2px!important;font-size:.67rem}
  .mgs-r81-header .mgs-r81-utilities .language-switch{width:38px;min-width:38px!important;padding:0!important}
  .mgs-r81-header .menu-toggle{width:44px!important;min-width:44px!important}
}

/* R8 physical-QA remediation: compact premium six-pillar Knowledge Centre. */
body.mgs-r81-knowledge-page .mgs-r81-breadcrumb-wrap{margin-top:var(--header-h,86px);padding-top:14px}
body.mgs-r81-knowledge-page .page-hero{padding:clamp(34px,4vw,58px) 0 clamp(30px,3.5vw,48px)}
body.mgs-r81-knowledge-page .page-hero h1{margin:.2rem 0 .7rem;font-size:clamp(42px,5vw,68px)}
body.mgs-r81-knowledge-page .page-hero .hero-lead{max-width:820px;margin-top:16px;font-size:clamp(17px,1.35vw,21px)}
body.mgs-r81-knowledge-page .mgs-r81-hub{padding:clamp(34px,4vw,56px) 0 clamp(46px,5vw,70px)}
body.mgs-r81-knowledge-page .mgs-r81-hub-grid{gap:12px;margin-top:22px}
body.mgs-r81-knowledge-page .mgs-r81-hub-card{min-height:184px;padding:22px 22px 20px;border-color:rgba(185,151,91,.34);background:#fff}
body.mgs-r81-knowledge-page .mgs-r81-hub-card h2{margin:0 0 10px;font-size:clamp(1.22rem,1.55vw,1.58rem);line-height:1.12}
body.mgs-r81-knowledge-page .mgs-r81-hub-card p{margin:0;color:#4d4841;font-size:.94rem;line-height:1.48}
body.mgs-r81-knowledge-page .mgs-r81-card-links{display:flex;flex-wrap:wrap;gap:7px 14px;margin-top:auto;padding-top:16px;border-top:1px solid rgba(18,18,18,.11)}
body.mgs-r81-knowledge-page .mgs-r81-card-links a{color:#725820;font-size:.78rem;font-weight:750;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
body.mgs-r81-knowledge-page .mgs-r8-relations{margin-top:28px;padding-top:22px;border-top:1px solid rgba(18,18,18,.16)}
body.mgs-r81-knowledge-page .mgs-r8-relations h2{margin:0 0 9px;font-size:clamp(1.35rem,2vw,1.8rem)}
body.mgs-r81-knowledge-page .mgs-r8-relations p{margin:0;line-height:1.7}
body.mgs-r81-knowledge-page .mgs-r8-relations + p{margin:22px 0 0}
@media(max-width:1080px){body.mgs-r81-knowledge-page .mgs-r81-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body.mgs-r81-knowledge-page .mgs-r81-breadcrumb-wrap{padding-top:10px}body.mgs-r81-knowledge-page .page-hero{padding:28px 0 30px}body.mgs-r81-knowledge-page .page-hero h1{font-size:38px}body.mgs-r81-knowledge-page .mgs-r81-hub{padding:30px 0 48px}body.mgs-r81-knowledge-page .mgs-r81-hub-grid{grid-template-columns:1fr;gap:10px;margin-top:18px}body.mgs-r81-knowledge-page .mgs-r81-hub-card{min-height:0;padding:19px}body.mgs-r81-knowledge-page .mgs-r81-card-links{margin-top:16px}}

/* R8 system closure: the canonical header owns its foreground on every route. */
.site-header.mgs-r81-header{color:#f3ede2}
.site-header.mgs-r81-header a,
.site-header.mgs-r81-header button{color:inherit}

/* Services: expose the choose/request path without removing indexed service copy. */
.mgs-services-quick-nav{display:flex;flex-wrap:wrap;gap:10px;margin:0 auto clamp(30px,5vw,56px);padding:16px;border:1px solid rgba(201,168,106,.35);background:#f6f2ea}
.mgs-services-quick-nav a{display:inline-flex;min-height:44px;align-items:center;padding:9px 14px;border:1px solid rgba(18,18,18,.18);color:#171717;font-weight:750;text-decoration:none}
.mgs-services-quick-nav a:focus-visible{outline:3px solid #8f6c28;outline-offset:3px}
.mgs-services-shell section[id],.lead-form[id]{scroll-margin-top:calc(var(--header-h,86px) + 20px)}
@media(max-width:620px){.mgs-services-quick-nav{position:sticky;z-index:20;top:var(--header-h,77px);display:grid;grid-template-columns:1fr 1fr;padding:10px}.mgs-services-quick-nav a:last-child{grid-column:1/-1}.mgs-services-quick-nav a{justify-content:center;text-align:center}}

/* Release gate: every mobile header target remains at least 44 x 44 CSS px. */
@media(max-width:620px){
  .mgs-r81-header .mgs-r81-utilities>.search-toggle{flex-basis:44px!important;width:44px!important;min-width:44px!important;min-height:44px!important}
  .mgs-r81-header .mgs-voice-orb{width:36px;height:36px;flex-basis:36px}
  .mgs-r81-header .mgs-help-entry{width:44px;min-width:44px!important;min-height:44px!important}
  .mgs-r81-header .mgs-r81-utilities .language-switch{width:44px;min-width:44px!important;min-height:44px!important}
}

/* R8 final physical delta: logo left; one compact functional group on the right. */
@media(max-width:620px){
  .site-header.mgs-r81-header .nav-wrap.mgs-r81-wrap{grid-template-columns:44px minmax(0,1fr) 44px!important;gap:4px!important}
  .mgs-r81-header .brand{grid-column:1;width:44px!important}
  .mgs-r81-header .mgs-r81-utilities{grid-column:2;display:flex!important;width:auto!important;min-width:0;justify-self:end;justify-content:flex-end!important;gap:2px!important}
  .mgs-r81-header .mgs-r81-utilities>.mgs-ask-entry{order:1;max-width:none;min-width:72px!important;padding-inline:4px!important;font-size:.69rem;line-height:1.08;text-align:center}
  .mgs-r81-header .mgs-r81-utilities>.mgs-ask-entry::before{content:'?';flex:0 0 22px}
  .mgs-r81-header .mgs-r81-utilities>.search-toggle{order:2;flex:0 0 44px!important;width:44px!important;min-width:44px!important;padding:0!important}
  .mgs-r81-header .mgs-r81-utilities>.language-switch{order:3;flex:0 0 44px!important;width:44px!important;min-width:44px!important;padding:0!important}
  .mgs-r81-header .menu-toggle{grid-column:3;width:44px!important;min-width:44px!important}
  .mgs-r81-header .mgs-voice-orb{width:30px!important;height:30px!important;flex-basis:30px!important;background:#8ebd75;box-shadow:0 0 0 1px rgba(0,0,0,.14)}
  .mgs-r81-header .mgs-voice-orb svg{width:17px;height:17px}
}

/* R8 final physical closure: three explicit compact-navigation groups. */
@media(max-width:1679px){
  .mgs-r81-header .mgs-r81-primary{border-top:0;padding-top:0}
  .mgs-r81-header .mgs-r81-menu-group{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .mgs-r81-header .mgs-r81-group-label{display:block;margin:0;padding:12px 0 7px;border-top:1px solid rgba(255,255,255,.2);color:#c9a86a;font-size:.72rem;font-weight:800;letter-spacing:.12em;line-height:1.35}
  .mgs-r81-header .mgs-r81-menu-group>a{display:block!important;min-height:44px;padding:11px 4px!important;white-space:normal}
  .mgs-r81-header .mgs-r81-primary .mgs-r81-knowledge-primary{display:block!important}
  .mgs-r81-header .mgs-r81-utility-group{margin-top:4px}
}
@media(min-width:1680px){
  .mgs-r81-header.mgs-r81-compact .mgs-r81-menu-group{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-group-label{display:block;margin:0;padding:12px 0 7px;border-top:1px solid rgba(255,255,255,.2);color:#c9a86a;font-size:.72rem;font-weight:800;letter-spacing:.12em;line-height:1.35}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-menu-group>a{display:block!important;min-height:44px;padding:11px 4px!important;white-space:normal}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-primary .mgs-r81-knowledge-primary{display:block!important}
  .mgs-r81-header.mgs-r81-compact .mgs-r81-utility-group{margin-top:4px}
}
.mgs-long-page-nav[hidden],.mgs-page-position-indicator[hidden]{display:none!important}
body.mgs-nav-locked .mgs-long-page-nav,body.mgs-nav-locked .mgs-page-position-indicator{display:none!important}
.mgs-page-position-indicator{position:fixed;z-index:189;top:calc(var(--mgs-header-box-h,74px) + 10px);bottom:max(10px,env(safe-area-inset-bottom));left:max(2px,env(safe-area-inset-left));width:3px;border-radius:999px;background:rgba(22,120,181,.24);pointer-events:none}
.mgs-page-position-indicator-thumb{position:absolute;top:0;left:0;width:3px;min-height:18px;border-radius:999px;background:#1678b5;box-shadow:0 0 0 1px rgba(255,255,255,.55);will-change:height,transform}
.mgs-long-page-nav{position:fixed;z-index:190;top:calc(var(--mgs-header-box-h,74px) + 10px);right:max(4px,env(safe-area-inset-right));left:auto;display:grid;gap:6px;width:30px;margin:0;transform:none;pointer-events:none;color:#f5f0e7;font:inherit}
.mgs-long-page-rail{position:relative;width:30px;height:156px;border:1px solid rgba(185,151,91,.75);border-radius:16px;background:rgba(17,17,15,.9);box-shadow:-2px 6px 16px rgba(0,0,0,.18);cursor:ns-resize;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.mgs-long-page-track{position:absolute;top:9px;bottom:9px;left:50%;width:3px;transform:translateX(-50%);border-radius:99px;background:rgba(245,240,231,.58)}
.mgs-long-page-thumb{position:absolute;z-index:1;top:9px;left:50%;display:grid;place-items:center;width:18px;height:38px;border:1px solid #f5f0e7;border-radius:11px;background:#b9975b;color:#121212;box-shadow:0 3px 8px rgba(0,0,0,.28);will-change:transform}
.mgs-long-page-percent{font-size:7px;font-weight:900;line-height:1;letter-spacing:-.02em}
.mgs-long-page-top{display:grid;place-items:center;width:30px;height:30px;margin:0;padding:0;border:1px solid rgba(185,151,91,.75);border-radius:50%;background:#121212;color:#f5f0e7;font-size:15px;font-weight:900;line-height:1;box-shadow:-2px 4px 12px rgba(0,0,0,.18);cursor:pointer;pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mgs-long-page-rail:focus-visible,.mgs-long-page-top:focus-visible{outline:3px solid #c9aa70;outline-offset:2px}
@media(min-width:621px){.mgs-r81-header .mgs-voice-search-toggle[data-voice-state="insecure"] .mgs-voice-orb,.mgs-r81-header .mgs-voice-search-toggle[data-voice-state="unavailable"] .mgs-voice-orb{background:#72c64b;color:#0b0b0b;box-shadow:0 0 0 1px rgba(0,0,0,.16)}}
@media(max-width:620px){.mgs-r81-header .mgs-voice-search-toggle[data-voice-state="insecure"] .mgs-voice-orb,.mgs-r81-header .mgs-voice-search-toggle[data-voice-state="unavailable"] .mgs-voice-orb{background:#8ebd75;color:#0b0b0b;box-shadow:0 0 0 1px rgba(0,0,0,.14)}}

/* Keep long-page progress controls outside reading columns and safe areas. */
@media(min-width:621px){.mgs-long-page-nav{right:max(10px,calc(env(safe-area-inset-right) + 8px))}}

/* R8.7 physical-QA correction: text-only site-version metadata. */
.mgs-site-version{
  box-sizing:border-box;
  display:block;
  width:auto;
  max-width:100%;
  margin:0 0 .62rem;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#2f6f91;
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.01em;
  line-height:1.3;
  text-align:left;
}
.mgs-site-version time{color:inherit;font:inherit}
.hero .mgs-site-version,.page-hero .mgs-site-version,.inner-hero .mgs-site-version,.ih-hero .mgs-site-version,.mgs-hero .mgs-site-version,.section-dark .mgs-site-version{color:#8fd3f4}
@media(max-width:780px){body.mgs-r81-knowledge-page .mgs-r81-breadcrumb-wrap{margin-top:0}}
@media(max-width:560px){.mgs-site-version{margin:0 0 .5rem;font-size:.66rem;line-height:1.25}}

/* R8.7 systemic physical-QA closure: one deterministic intro stack. */
.mgs-intro-meta{display:grid;grid-column:1/-1;width:100%;min-width:0;max-width:100%;gap:.42rem;margin:0 0 clamp(16px,2.2vw,24px);padding:0;color:inherit}
.mgs-intro-meta>*{min-width:0;max-width:100%}
.mgs-intro-meta>.mgs-r81-breadcrumb-wrap{width:100%;margin:0!important;padding:0}
.mgs-intro-meta .mgs-r81-breadcrumbs,.mgs-intro-meta>.breadcrumbs{margin:0;color:inherit;font-size:.78rem;line-height:1.4}
.mgs-intro-meta .mgs-r81-breadcrumbs a,.mgs-intro-meta>.breadcrumbs a{color:#d4b77b}
.mgs-intro-meta>.mgs-site-version{margin:0!important;padding:0!important;color:#8fd3f4!important;font-size:.7rem!important;font-weight:600!important;letter-spacing:.01em!important;line-height:1.3!important;white-space:normal;overflow-wrap:break-word}
@media(min-width:781px){
  body.mgs-intro-normalized:not(.resource-product) .page-hero.mgs-intro-hero,
  body.mgs-intro-normalized:not(.resource-product) .mgs-hero.mgs-intro-hero,
  body.mgs-intro-normalized:not(.resource-product) .ih-case.mgs-intro-hero{padding-top:calc(var(--header-h,86px) + 24px)!important}
}
@media(max-width:780px){
  body.mgs-intro-normalized:not(.resource-product) .mgs-intro-hero{padding-top:24px!important}
  body.mgs-intro-normalized:not(.resource-product) .mgs-intro-hero h1{max-width:100%!important;font-size:clamp(32px,9.4vw,42px)!important;line-height:1.07!important;letter-spacing:-.025em!important;overflow-wrap:anywhere}
  .mgs-intro-meta{gap:.34rem;margin-bottom:16px}
  .mgs-intro-meta .mgs-r81-breadcrumbs,.mgs-intro-meta>.breadcrumbs{gap:4px 6px;font-size:.72rem;line-height:1.35}
  .mgs-intro-meta>.mgs-site-version{font-size:.68rem!important;line-height:1.3!important}
}

/* R8.7 systemic physical-QA closure: explicit mobile utility controls. */
@media(max-width:620px){
  .mgs-r81-header .mgs-r81-utilities>.search-toggle{order:1}
  .mgs-r81-header .mgs-r81-utilities>.mgs-help-entry{order:2;display:inline-flex!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;min-height:44px!important;border:1px solid currentColor!important;border-radius:50%!important}
  .mgs-r81-header .mgs-r81-utilities>.mgs-ask-entry{order:3;min-width:72px!important;max-width:none!important;white-space:nowrap!important}
  .mgs-r81-header .mgs-r81-utilities>.mgs-ask-entry::before{content:none!important;display:none!important}
  .mgs-r81-header .mgs-r81-utilities>.language-switch{order:4}
}

/* R8.7 consolidated physical-QA delta: mobile intro order, wrapping and compact affected families. */
@media(max-width:780px){
  body.mgs-intro-normalized:not(.resource-product) .mgs-intro-hero{margin-top:0!important;padding-top:10px!important}
  .mgs-intro-meta{gap:.28rem;margin-bottom:12px}
  .mgs-intro-meta>.mgs-site-version{order:1}
  .mgs-intro-meta>.mgs-r81-breadcrumb-wrap,
  .mgs-intro-meta>.breadcrumbs{order:2}
  .mgs-intro-meta .mgs-r81-breadcrumbs,
  .mgs-intro-meta>.breadcrumbs{display:flex!important;min-width:0;max-width:100%;flex-wrap:wrap!important;align-items:center}
  .mgs-intro-meta .mgs-r81-breadcrumbs>*,
  .mgs-intro-meta>.breadcrumbs>*{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal}
  body:has(.mgs-long-page-nav) .mgs-intro-meta .mgs-r81-breadcrumbs,
  body:has(.mgs-long-page-nav) .mgs-intro-meta>.breadcrumbs{padding-inline-end:40px}
  body.mgs-r81-knowledge-short .page-hero{padding:12px 0 18px!important}
  body.mgs-r81-knowledge-short .mgs-intro-meta{margin-bottom:10px}
  body.mgs-r81-knowledge-short .page-hero .eyebrow{margin-bottom:12px}
  body.mgs-r81-knowledge-short .page-hero h1{margin:.1rem 0 .45rem;font-size:34px!important;line-height:1.04!important}
  body.mgs-r81-knowledge-short .page-hero .hero-lead{margin-top:9px;font-size:16px;line-height:1.42}
  body.mgs-r81-knowledge-short .mgs-r81-hub{padding:14px 0 30px!important;background:#121212;color:#f5f0e7}
  body.mgs-r81-knowledge-short .mgs-r81-hub-card{min-height:0;padding:0!important;border:0!important;background:transparent!important;color:inherit}
  body.mgs-r81-knowledge-short .mgs-r81-card-links{display:flex;margin:0!important;padding:0!important;border:0!important;gap:8px!important}
  body.mgs-r81-knowledge-short .mgs-r81-card-links a{display:inline-flex;min-height:38px;align-items:center;padding:7px 10px;border:1px solid rgba(201,168,106,.58);background:rgba(201,168,106,.08);color:#d4b77b;font-size:.76rem;line-height:1.25;text-decoration:none}
  body.mgs-r81-knowledge-short .mgs-r8-relations{margin-top:18px;padding-top:16px;border-color:rgba(245,240,231,.18)}
  body.mgs-r81-knowledge-short .mgs-r8-relations a{color:#f5f0e7}
  body.mgs-compact-inner-hero .inner-hero{padding-bottom:38px!important}
  body.mgs-compact-inner-hero .inner-hero h1{font-size:34px!important;line-height:1.04!important}
  body.mgs-compact-inner-hero .inner-hero>div>p:last-child{margin-top:18px;font-size:16px;line-height:1.45}
}
