html[data-portfolio-polish] body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}html[data-portfolio-polish] :is(.header,.site-header,.mtm-site-header,.gqs-header,.trust-order-header){border-bottom:1px solid #18233312}html[data-portfolio-polish] :is(h1,h2,h3){text-wrap:balance}html[data-portfolio-polish] :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #007aff;outline-offset:4px}html[data-portfolio-polish] :is(#mobileMenu,#site-menu,.department-menu-panel){max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}html[data-portfolio-polish] :is(#mobileMenu a,#site-menu a,.department-menu-panel a){min-height:44px}html[data-portfolio-polish] :is(.product-card,.service-card,.project-card){border-radius:20px;box-shadow:0 5px 22px #17263808}html[data-portfolio-polish] .product-card{overflow:hidden}html[data-portfolio-polish] .product-card :is(h2,h3){letter-spacing:-.35px}html[data-portfolio-polish] :is(.gqs-card,.trust-card){border-radius:20px}.portfolio76-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px max(20px,calc((100% - 1180px)/2));background:#fff;border-bottom:1px solid #e8e8ed;position:relative;z-index:30}.portfolio76-brand{display:flex;align-items:center;gap:10px;color:#202631;text-decoration:none;font:650 18px system-ui}.portfolio76-brand img{width:44px;height:44px;object-fit:contain}.portfolio76-menu{position:relative;margin-left:auto;color:#252b34;font:500 14px/1.5 system-ui;z-index:70}.portfolio76-menu summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:center;gap:14px;min-height:44px;padding:8px 16px;border:1px solid #e0e3e8;border-radius:14px;background:#f8f9fb}.portfolio76-menu summary::-webkit-details-marker{display:none}.portfolio76-menu nav{position:absolute;right:0;top:calc(100% + 10px);width:300px;max-width:calc(100vw - 32px);max-height:70vh;max-height:70dvh;overflow:auto;overscroll-behavior:contain;padding:10px;border:1px solid #e1e4e9;border-radius:20px;background:#fff;box-shadow:0 20px 65px #17263820;display:grid;gap:3px}.portfolio76-menu a{display:flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:12px;color:#252b34;text-decoration:none}.portfolio76-menu a:hover,.portfolio76-menu a[aria-current=page]{background:#f1f4f8}.portfolio76-goal{max-width:1180px;margin:48px auto;padding:30px;border:1px solid #e3e6ec;border-radius:24px;display:flex;align-items:center;justify-content:space-between;gap:32px;background:#f7f8fa;color:#25303d;font-family:system-ui,-apple-system,sans-serif}.portfolio76-goal h2{margin:0 0 10px;font-size:clamp(23px,2.7vw,31px);line-height:1.2;letter-spacing:-.8px}.portfolio76-goal p{max-width:720px;margin:0;line-height:1.7;font-size:15px;color:#5a6370}.portfolio76-goal>div:last-child{display:flex;flex-direction:column;gap:12px;flex-shrink:0}.portfolio76-goal a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:inherit;text-underline-offset:4px;font-weight:600;font-size:14px}.portfolio76-goal .portfolio76-primary{padding:12px 20px;border-radius:14px;background:#254e7c;color:#fff;text-decoration:none}html[data-portfolio-brand="Glass-Rescue"] .portfolio76-primary{background:#a6401c}html[data-portfolio-brand="MTM"] .portfolio76-primary{background:#2c353c}@media(max-width:760px){.portfolio76-goal{margin:24px 16px;padding:24px;flex-direction:column;align-items:stretch;gap:22px}.portfolio76-goal>div:last-child{align-items:stretch}.portfolio76-menu summary{padding:8px 12px}.portfolio76-header{padding:12px 18px}.portfolio76-brand{font-size:16px}}@media(prefers-reduced-motion:reduce){html[data-portfolio-polish] :is(.product-card,.service-card,.project-card){transition:none}}

html[data-portfolio-polish] .portfolio76-legacy-toggle,html[data-portfolio-polish] #root header.header>nav[hidden]{display:none!important}.portfolio76-studio-header nav[data-project-controls]{display:flex;gap:8px;flex-wrap:wrap}.portfolio76-studio-header nav[data-project-controls] button{min-height:44px}@media(max-width:760px){.portfolio76-studio-header{flex-wrap:wrap;height:auto!important;padding:12px 16px}.portfolio76-studio-header nav[data-project-controls]{order:3;flex-basis:100%}}

html[data-portfolio-polish] body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}html[data-portfolio-polish] :is(.gqs-header,.trust-order-header,.site-header,.mtm-site-header){background-color:#fffffff5;backdrop-filter:blur(14px)}html[data-portfolio-polish] :is(.gqs-header,.trust-order-header,.site-header,.mtm-site-header) :is(a,button,summary){-webkit-tap-highlight-color:transparent}html[data-portfolio-polish] .portfolio76-goal p{font-weight:400}

/* Shared finishing rules. Storefront palettes, forms and menu semantics stay local. */
html[data-portfolio-polish] { -webkit-text-size-adjust:100%; }
html[data-portfolio-polish] body { margin:0; }
html[data-portfolio-polish] :is(main,section,article,form,fieldset,.header-tools,.brand-copy) { min-width:0; }
html[data-portfolio-polish] :is(input,select,textarea) { font-size:16px; max-width:100%; }
html[data-portfolio-polish] :is(button,a,summary) { touch-action:manipulation; }
html[data-portfolio-polish] :is(.portfolio76-brand,.gqs-brand,.original-brand) { min-width:0; }
html[data-portfolio-polish] :is(.portfolio76-brand img,.gqs-brand img,.original-gq-mark) { object-fit:contain; flex-shrink:0; }
html[data-portfolio-polish] :is(.portfolio76-menu,.department-menu) summary { box-sizing:border-box; }
html[data-portfolio-polish] :is(.portfolio76-menu nav,.department-menu-panel) { box-sizing:border-box; max-width:calc(100vw - 32px); }
html[data-portfolio-brand="GlassQuote"] #root>header.header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
html[data-portfolio-brand="GlassQuote"] #root>header.header>#departmentMenu { display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:10px 14px; border:1px solid #e0e3e8; border-radius:14px; background:#f8f9fb; color:#252b34; font:600 14px/1.5 system-ui,sans-serif; cursor:pointer; }
html[data-portfolio-brand="GlassQuote"] #root>header.header>#departmentMenu svg { width:20px; height:20px; }
html[data-portfolio-brand="GlassQuote"] #root>.unified-departments[hidden] { display:none!important; }
html[data-portfolio-brand="GlassQuote"] :is(.portfolio76-primary,.gqs .btn.primary) { background:#245db8; }
html[data-portfolio-brand="Glass-Rescue"] .portfolio76-primary { background:#c74416; }
html[data-portfolio-brand="MTM"] .portfolio76-primary { background:linear-gradient(120deg,#edf0f4,#b7c0cb,#e1e6ec); color:#202b37; border:1px solid #aeb9c6; }
html[data-portfolio-brand="MTM"] { --ink:#202831; --muted:#65707e; --paper:#f3f4f6; --lime:#d5dbe3; }
html[data-portfolio-brand="MTM"] :is(.page-hero,.career-form-section form,.project-guide,.mtm-area-panel) { background:#eef0f3; border-color:#d5dce5; }
html[data-portfolio-brand="MTM"] .page-hero { padding:0!important; }
html[data-portfolio-brand="MTM"] :is(.mtm-service-strip,.mtm-site-header,.mtm-detail-topic) { border-color:#d5dce5; }
html[data-portfolio-brand="MTM"] :is(.mtm-area-menu>summary,.mtm-service-strip nav a,.mtm-topic-number,.mtm-topic-plus,.mtm-reference-heading>p:last-child) { color:#586575; }
html[data-portfolio-brand="MTM"] #site-menu nav a:hover { background:#e9edf2; color:#202831; }
/* The shop shell is present on product/category/cart URLs, including direct loads. */
html body.retail-store.reference-shop>.header { box-sizing:border-box; }
html body.retail-store.reference-shop :is(.shop-brand-group,.header-tools,#searchForm) { min-width:0; }
html body.retail-store.reference-shop .header-tools .reference-call { cursor:pointer; }
html body.retail-store.reference-shop .department-menu-panel { right:0!important; left:auto!important; top:calc(100% + 8px)!important; max-height:calc(100dvh - 150px); overflow-y:auto; overscroll-behavior:contain; }
html body.retail-store.reference-shop .department-menu-panel[hidden] { display:none!important; }
html body.retail-store.reference-shop #main { scroll-margin-top:16px; }
html body.retail-store.reference-shop .shop-quote-dock { box-sizing:border-box; bottom:calc(12px + env(safe-area-inset-bottom,0px))!important; }
html body.retail-store.reference-shop.has-shop-quote-dock { padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))!important; }
html body.retail-store.reference-shop .product-layout>*,html body.retail-store.reference-shop .purchase-row>* { min-width:0; }
html[data-portfolio-polish] :is(.breadcrumbs,.gq-html-nav) { overflow-wrap:anywhere; }
@media(max-width:760px) {
 html body.retail-store.reference-shop .reference-trust { min-height:38px!important; padding:5px 16px!important; gap:8px!important; font:500 9px/1.25 system-ui,sans-serif!important; }
 html body.retail-store.reference-shop .reference-trust>span,html body.retail-store.reference-shop .reference-trust>button { flex:1; justify-content:center!important; flex-direction:row!important; gap:5px!important; min-width:0; text-align:left!important; }
 html body.retail-store.reference-shop .reference-trust svg { width:16px!important; height:16px!important; margin:0!important; }
 html body.retail-store.reference-shop .reference-trust .canada-flag { width:21px!important; height:14px!important; }
 html body.retail-store.reference-shop .reference-trust .trust-chevron { display:none!important; }
 html body.retail-store.reference-shop>.header { min-height:0!important; padding:10px 16px!important; gap:8px!important; grid-template-columns:minmax(0,1fr) auto!important; }
 html body.retail-store.reference-shop>.header .shop-brand-group { grid-row:1!important; grid-column:1!important; }
 html body.retail-store.reference-shop>.header .header-tools { grid-row:1!important; grid-column:2!important; gap:4px!important; }
 html body.retail-store.reference-shop>.header .shop-brand-group .brand-copy strong { font:700 18px/1.12 system-ui,sans-serif!important; letter-spacing:-.6px!important; }
 html body.retail-store.reference-shop.reference-mtm>.header .shop-brand-group .brand-copy strong { font-size:16px!important; }
 html body.retail-store.reference-shop>.header .shop-brand-group .gq-mark,html body.retail-store.reference-shop>.header .shop-brand-group .contractor-mark { width:34px!important; height:34px!important; flex-basis:34px!important; }
 html body.retail-store.reference-shop>.header .shop-brand-group .contractor-mark img { max-height:34px!important; }
 html body.retail-store.reference-shop>.header .brand-platform-link { margin-left:42px!important; font-size:9px!important; }
 html body.retail-store.reference-shop>.header .reference-call,html body.retail-store.reference-shop>.header .header-tools a.header-cart,html body.retail-store.reference-shop>.header .reference-menu { width:44px!important; min-width:44px!important; min-height:44px!important; height:44px!important; padding:0!important; border:0!important; box-shadow:none!important; background:transparent!important; }
 html body.retail-store.reference-shop>.header .reference-call { font-size:8px!important; }
 html body.retail-store.reference-shop>.header .reference-menu>summary { min-width:44px!important; min-height:44px!important; padding:3px!important; font-size:9px!important; }
 html body.retail-store.reference-shop>.header #searchForm { grid-column:1/-1!important; grid-row:2!important; margin:0!important; height:44px!important; min-height:44px!important; border-radius:12px!important; }
 html body.retail-store.reference-shop>.departments { min-height:42px!important; height:42px!important; padding:0 16px!important; gap:12px!important; }
 html body.retail-store.reference-shop>.departments>a { min-height:42px!important; display:inline-flex; align-items:center; font-size:13px!important; padding:0!important; }
 html body.retail-store.reference-shop #main { padding-inline:16px!important; }
 html body.retail-store.reference-shop #main>header h1,html body.retail-store.reference-shop #main .product-heading h1 { font-size:clamp(26px,7.5vw,32px)!important; line-height:1.15!important; margin-block:12px 16px; overflow-wrap:break-word; }
 html body.retail-store.reference-shop .shop-quote-dock { left:16px!important; right:16px!important; transform:none!important; width:auto!important; max-width:none!important; border-radius:14px!important; padding:4px!important; }
 html body.retail-store.reference-shop .shop-quote-dock button { min-height:46px!important; font-size:15px!important; padding:12px 16px!important; }
 html body.retail-store.reference-shop.cookie-choice-open .shop-quote-dock { display:none!important; }
 html body.retail-store.reference-shop.has-mobile-purchase .shop-quote-dock { display:none!important; }
 /* Recovered editorial/service pages use the same type scale and spacing. */
 html[data-portfolio-polish] :is(.page-heading,.page-hero,.inner-hero,.gqs-hero) { padding-block:32px!important; }
 html[data-portfolio-polish] :is(.page-heading,.page-hero,.inner-hero,.gqs-hero) h1 { font-size:clamp(30px,8vw,38px)!important; line-height:1.12!important; letter-spacing:-1.1px!important; overflow-wrap:break-word; }
 html[data-portfolio-brand="GlassQuote"] :is(.page-heading,.gqs-hero) h1 { font-weight:700!important; }
 html[data-portfolio-polish] :is(.page-heading,.page-hero,.inner-hero,.gqs-hero) p { font-size:16px; line-height:1.6; }
 html[data-portfolio-polish] .portfolio76-header,html[data-portfolio-polish] .gqs-header { display:flex!important; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px!important; min-height:68px; height:auto; }
 html[data-portfolio-polish] .gqs-header .portfolio76-menu { margin-top:0; }
 html[data-portfolio-polish] :is(.portfolio76-brand,.gqs-brand) { font-size:16px; gap:8px; }
 html[data-portfolio-polish] :is(.portfolio76-brand img,.gqs-brand img) { width:36px; height:36px; }
 html[data-portfolio-polish] .gqs-brand b { font-size:20px; }
 html[data-portfolio-polish] .gqs-header>nav { flex-wrap:wrap; }
 html[data-portfolio-polish] .portfolio76-goal { padding:24px; margin:28px 16px; border-radius:20px; }
 html[data-portfolio-polish] :is(.gqs-request,.contact-strip,.content-card) { box-sizing:border-box; min-width:0; }
 html[data-portfolio-polish] :is(.contact-strip,.hero-actions,.contact-actions) { flex-wrap:wrap; gap:10px; }
 html[data-portfolio-polish] :is(.page-heading,.page-hero,.gqs-hero) :is(.button,.btn) { min-height:44px; font-size:14px; padding:12px 16px; border-radius:12px; }
 html[data-portfolio-brand="Glass-Rescue"] .site-header .header-inner { min-height:64px; width:calc(100% - 32px); }
 html[data-portfolio-brand="MTM"] .mtm-header-main { padding-inline:16px!important; gap:8px; }
 html[data-portfolio-brand="MTM"] .mtm-header-main .header-actions { gap:6px; }
 html[data-portfolio-brand="MTM"] .page-hero-copy { padding:32px 16px!important; }
 html[data-portfolio-brand="MTM"] .page-hero h1 { font-weight:700; }
}
@media(max-width:389px) {
 html[data-portfolio-brand="Glass-Rescue"] .site-header .brand-wordmark strong { font-size:16px!important; letter-spacing:-.8px; }
 html[data-portfolio-brand="Glass-Rescue"] .site-header .brand img.brand-icon { width:28px!important; height:28px!important; flex-basis:28px!important; }
 html[data-portfolio-brand="Glass-Rescue"] .site-header .header-actions { gap:4px!important; }
 html[data-portfolio-brand="Glass-Rescue"] .site-header a.service-shop-link { padding-inline:8px!important; }
 html body.retail-store.reference-shop>.header .shop-brand-group .brand-copy strong { font-size:16px!important; }
 html body.retail-store.reference-shop.reference-mtm>.header .shop-brand-group .brand-copy strong { font-size:14px!important; }
 html body.retail-store.reference-shop>.header .header-tools { gap:0!important; }
}
@media(prefers-reduced-motion:reduce) { html[data-portfolio-polish] { scroll-behavior:auto; } }
