.mrs-category-menu{position:fixed;z-index:1000;box-sizing:border-box;width:max-content;max-width:calc(100vw - 24px);padding:6px;background:linear-gradient(145deg,#20292f,#080c0f);border:1px solid #778086;border-radius:5px;box-shadow:0 12px 28px #000a}
.mrs-category-menu[hidden]{display:none}
.mrs-category-menu a,.mrs-category-menu .unavailable{display:block;padding:12px 14px;color:#fff;font-size:14px;line-height:1.4;text-decoration:none;white-space:normal;border-radius:3px}
.mrs-category-menu a:hover,.mrs-category-menu a:focus-visible{background:#421019;outline:1px solid var(--red)}
.mrs-category-menu .unavailable{color:#bfc3c6}.mrs-category-menu small{display:block;font-size:12px;color:#9da6ac}

.mrs-category-menu{max-height:calc(100dvh - 24px);overflow-y:auto}

body .hero-actions .product-category-links{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}body .hero-actions .product-category-links .pill{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:auto;max-width:none;min-width:0;min-height:60px;margin:0;padding:8px 6px;font-size:14px;line-height:1.25;text-align:center;letter-spacing:0;white-space:normal}body .hero-actions .product-category-links .pill:hover{border-color:var(--red)}

.mrs-nav-dropdown{display:inline-flex;align-items:center;position:relative;gap:2px;white-space:nowrap;grid-row:1}.mrs-nav-toggle{font:inherit;color:inherit;background:transparent;border:0;padding:0 2px;cursor:pointer;line-height:1;min-height:24px}.mrs-nav-toggle:focus-visible{outline:1px solid var(--red);outline-offset:2px}

@media(hover:hover) and (pointer:fine){.mrs-nav-toggle{display:none}}

@media(max-width:560px){body .site-header nav a[href="/#contact"],body .site-header nav a[href="#contact"]{grid-column:1/-1;justify-self:stretch;justify-content:center;margin-left:min(220px,calc(100% - 85px));margin-right:calc((100% - 100vw)/2)}}

/* Keep the shared top box identical across product and resource pages. */
@media(max-width:560px){body.inner-page main>.wrap>.mobile-page-hero,body.home-page main>.hero{height:clamp(510px,calc(670px - 40vw),550px);min-height:0}}
@media(min-width:561px){body.inner-page main>.wrap>.mobile-page-hero,body.home-page main>.hero{height:clamp(600px,calc(1000px - 40vw),780px);min-height:0}}

/* Nine equal category boxes in three symmetrical rows. */
body .hero-actions .product-category-links{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr}
body .hero-actions .product-category-links .pill{height:100%;grid-column:auto}

body.home-page main>.hero>.wrap{height:100%;min-height:0}

/* Anchor category navigation to the same bottom position on every product page. */
body.products-page .mobile-page-hero .reference-hero-inner{height:100%}
body.products-page .mobile-page-hero .reference-hero-copy{height:100%}
body.products-page .mobile-page-hero .reference-hero-copy>.hero-actions:has(.product-category-links){position:absolute;left:0;right:0;bottom:0;width:100%;margin-top:0}

/* Desktop categories retain the shared anchor with nine equal boxes. */
@media(min-width:561px){
 body.products-page .mobile-page-hero .reference-hero-copy{position:static}
 body.products-page .mobile-page-hero .reference-hero-copy>.hero-actions:has(.product-category-links){width:min(100%,900px);max-width:none;right:auto;bottom:0}
 body.products-page .mobile-page-hero .product-category-links{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,60px)}
 body.products-page .mobile-page-hero .product-category-links .pill{height:60px;min-height:60px;font-size:clamp(10px,1.1vw,14px);overflow-wrap:normal;word-break:normal}
}

/* Compact category buttons within the unchanged shared hero dimensions. */
body.products-page .mobile-page-hero .product-category-links{gap:4px;grid-template-rows:repeat(3,32px);grid-auto-rows:32px}
body.products-page .mobile-page-hero .product-category-links .pill{height:32px;min-height:32px;padding:3px 5px;font-size:11px;line-height:1.1;letter-spacing:0}
@media(max-width:560px){
 body.products-page .mobile-page-hero .product-category-links{grid-template-rows:repeat(3,38px);grid-auto-rows:38px}
 body.products-page .mobile-page-hero .product-category-links .pill{height:38px;min-height:38px;padding:2px 3px;font-size:10px;line-height:1.1}
}
