/* Final shared-state corrections; retain the approved blue/white brand palette. */
@media(min-width:1200px){
  /* Explicit state lets Escape close a menu even while its trigger retains focus/hover. */
  body.mgs-site #menu[data-mgs-navigation-ready] .mgs-main-menu>li.menu-item-has-children:not(.mgs-submenu-open)>.sub-menu{display:none!important}
  body.mgs-site #menu[data-mgs-navigation-ready] .mgs-main-menu>li.mgs-submenu-open>.sub-menu{display:block!important}
}
@media(max-width:1199px){
  body.mgs-site #menu .mgs-main-menu>li.menu-item-has-children:not(.mgs-submenu-open)>.sub-menu{display:none!important}
  body.mgs-site #menu .mgs-main-menu>li.mgs-submenu-open>.sub-menu{display:block!important}
}
.mgs-registration-consent label{display:flex;align-items:flex-start;gap:8px;line-height:1.5}
.mgs-registration-consent input[type=checkbox]{flex:none;width:16px;height:16px;margin-top:5px}

body.mgs-site #page .mgs-sitemap{max-width:66.4989378333em;width:calc(100% - 2.8315em);padding:20px 0 40px}
body.mgs-site #page .mgs-sitemap>.mgs-page-title{font:400 30px/1.214 Oswald,sans-serif!important;margin:0 0 16.224px;padding:0 0 8px!important}
body.mgs-site #page .mgs-sitemap-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;padding:60px 20px 0}
body.mgs-site #page .mgs-sitemap-columns h2{font:600 17px/1.618 Abel,sans-serif!important;text-transform:none;margin:0 0 24px;padding:0!important}
body.mgs-site #page .mgs-sitemap-pages{margin:0;padding-left:51px}
body.mgs-site #page .mgs-sitemap-pages li{padding:0;line-height:1.618}
body.mgs-site #page .mgs-sitemap-pages a{color:#111;text-decoration:underline}
body.mgs-site #page .mgs-sitemap-products{list-style:none;margin:0;padding:0}
body.mgs-site #page .mgs-sitemap-products li{margin:0;min-height:70px;padding:0;line-height:1.214}
body.mgs-site #page .mgs-sitemap-products a{font:400 16px/1.214 Oswald,sans-serif;text-transform:uppercase;color:#111;text-decoration:none}
body.mgs-site #page .mgs-sitemap-articles{list-style:none;margin:-24px 0 0;padding:0}
body.mgs-site #page .mgs-sitemap-articles li{margin:0 0 10px;padding:0}
body.mgs-site #page .mgs-sitemap-articles a{display:inline-block;background:var(--mgs-blue);color:#fff;border-radius:5px;padding:10px;line-height:1.618}
body.mgs-site #page .mgs-sitemap-articles svg{width:18px;height:18px;margin-right:6px;vertical-align:middle}
@media(max-width:767px){body.mgs-site #page .mgs-sitemap{padding-top:40px}body.mgs-site #page .mgs-sitemap>.mgs-page-title{font-size:24px!important}body.mgs-site #page .mgs-sitemap-columns{grid-template-columns:1fr;gap:40px;padding-top:60px}body.mgs-site #page .mgs-sitemap-products li{min-height:50px}}

body.mgs-site #menu .sub-menu>li:has(>a[href$='/catalog-downloads/']){display:none}
body.mgs-site #page .mgs-guide-directory,body.mgs-site #page .mgs-video-directory{padding-top:20px}
body.mgs-site #page .mgs-guide-directory .mgs-information-container,body.mgs-site #page .mgs-video-directory .mgs-information-container{width:calc(100% - 2.8315em);max-width:66.4989378333em;padding:0}
body.mgs-site #page .mgs-guide-directory .mgs-guide-links{padding:40px 10px 20px}
body.mgs-site #page .mgs-guide-links section{margin:0 0 30px}
body.mgs-site #page .mgs-guide-links img{width:80px;height:50px;object-fit:contain;margin:0 0 8px}
body.mgs-site #page .mgs-guide-links p{margin:0 0 27.5px}
body.mgs-site #page .mgs-video-directory .mgs-resource-search{width:309px;margin-bottom:16px}
body.mgs-site #page .mgs-video-topics>h2{text-align:center;font:400 24px/1.214 Oswald,sans-serif!important;margin:10px 0 20px;padding:0 0 8px}
body.mgs-site #page .mgs-video-availability{text-align:center;max-width:870px;margin:0 auto 20px;padding:0 15px}
body.mgs-site #page .mgs-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 68px;max-width:802px;margin:0 auto 40px}
body.mgs-site #page .mgs-video-topic{min-width:0;text-align:center;border-bottom:1px solid var(--mgs-blue)}
body.mgs-site #page .mgs-video-topic img{width:100%;aspect-ratio:1;object-fit:contain;background:#fff;border-radius:3px;margin:0 0 40px}
body.mgs-site #page .mgs-video-topic h3{font:400 24px/1.214 Oswald,sans-serif!important;margin:0 0 25px;padding:0 0 8px}
body.mgs-site #page .mgs-video-topic h3 a{color:#111}
body.mgs-site #page .mgs-video-topic p{font:400 17px/1.618 Abel,sans-serif;margin:0}
@media(max-width:767px){
 body.mgs-site #page .mgs-guide-directory,body.mgs-site #page .mgs-video-directory{padding-top:40px}
 body.mgs-site #page .mgs-video-directory .mgs-resource-search{width:calc(100% - 68px);margin-top:52px;margin-bottom:54px}
 body.mgs-site #page .mgs-video-grid{grid-template-columns:1fr;gap:40px;width:calc(100% - 92px);margin-left:34px;margin-right:58px}
}

/* Article archives follow the reference's keyword panel and compact text grid. */
body.mgs-site #page .mgs-resource-archive{padding-top:30px}
body.mgs-site #page .mgs-resource-archive .mgs-information-container{width:calc(100% - 2.8315em);max-width:66.4989378333em;padding:0}
body.mgs-site #page .mgs-resource-archive .mgs-page-title{margin:0 0 16.2237px;padding:0 0 8px;font:400 30px/1.214 Oswald,sans-serif!important;text-align:center}
body.mgs-site #page .mgs-resource-archive .mgs-resource-search{display:block;box-sizing:border-box;width:520.734px;max-width:calc(100% - 48px);height:162.531px;padding:0 20px 10px;margin:40.219px auto 56.516px;border:1px solid #ccc;border-radius:10px;background:#fafafa;text-align:center}
body.mgs-site #page .mgs-resource-archive .mgs-keyword-search-title{margin:0 0 8px;padding:10px 0 0;font:400 30px/1.618 Oswald,sans-serif;text-transform:uppercase;color:#111}
body.mgs-site #page .mgs-keyword-search-controls{display:flex;justify-content:center;align-items:center;gap:40px;padding-left:35px}
body.mgs-site #page .mgs-resource-archive .mgs-resource-search input[type=search]{width:178px;height:48.5px;flex:none;padding:10.5px;font:400 17px/1.618 Abel,sans-serif;border:0;border-radius:0;background:#f2f2f2;box-shadow:inset 0 1px 1px #0002}
body.mgs-site #page .mgs-resource-archive .mgs-resource-search button{width:auto;height:45.625px;min-width:85px;padding:10.5px 24px;border:0;border-radius:0;background:#eee;color:#333;font:600 17px/1.45 Abel,sans-serif}
body.mgs-site #page .mgs-resource-archive .mgs-resource-search input[type=search],body.mgs-site #page .mgs-resource-archive .mgs-resource-search button{box-sizing:border-box}
body.mgs-site #page .mgs-resource-archive .mgs-resource-search input[type=search]{height:48.5px!important;min-height:48.5px;border-radius:4px}
body.mgs-site #page .mgs-resource-archive .mgs-keyword-search-controls{height:56.5px;align-items:flex-start}
body.mgs-site #page .mgs-resource-archive .mgs-resource-search button{background:var(--mgs-blue);color:#fff;border-radius:3px;font-family:Oswald,sans-serif;font-size:16px;font-weight:600;padding:10px 20px;margin-top:2.625px}
body.mgs-site #page .mgs-resource-archive .mgs-article-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0}
body.mgs-site #page .mgs-resource-archive .mgs-article-card{height:400px;min-width:0;padding:20px 15% 30px;margin:0;border-bottom:1px solid var(--mgs-blue)!important;overflow:hidden}
body.mgs-site #page .mgs-resource-archive .mgs-article-card h2{height:89px;margin:0 0 11.8974px;padding:0 0 8px;font:400 22px/30px Oswald,sans-serif!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
body.mgs-site #page .mgs-resource-archive .mgs-article-card h2 a{color:#111!important;text-decoration:none}
body.mgs-site #page .mgs-resource-archive .mgs-article-card h2{border-bottom:1px solid #eee}
body.mgs-site #page .mgs-resource-archive .mgs-article-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;overflow:hidden;height:140px;min-height:140px;margin:0 0 27.5px;font:400 17px/1.618 Abel,sans-serif}
body.mgs-site #page .mgs-resource-archive .mgs-article-read-more{display:inline-block;padding:10px 0;font:400 17px/1.618 Abel,sans-serif}
@media(max-width:767px){
  body.mgs-site #page .mgs-resource-archive{padding-top:0}
  body.mgs-site #page .mgs-resource-archive .mgs-page-title{font-size:24px!important;margin-bottom:12.979px}
  body.mgs-site #page .mgs-resource-archive .mgs-resource-search{margin-top:36.969px;margin-bottom:17.094px;max-width:calc((100% - 2.8315em)*.92);height:152.828px;padding-left:20px;padding-right:20px}
  body.mgs-site #page .mgs-resource-archive .mgs-keyword-search-title{font-size:24px}
  body.mgs-site #page .mgs-keyword-search-controls{gap:4px;padding-left:0}
  body.mgs-site #page .mgs-resource-archive .mgs-article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.mgs-site #page .mgs-resource-archive .mgs-article-card{padding-left:10%;padding-right:10%}
}
