
/* Brampton 2026 approved cross-page header + quote-first mobile layout */
.site-header{position:relative;z-index:100;background:#fff}
.site-header .topbar{background:#0B1F3A}
.site-header .topbar-in{display:flex;align-items:center;justify-content:center;gap:clamp(12px,3vw,32px);min-height:43px;padding:5px 0;flex-wrap:nowrap}
.site-header .top-phone{display:inline-flex;align-items:center;gap:8px;color:#fff;font-weight:900;white-space:nowrap;text-decoration:none;min-width:0}
.site-header .top-phone strong{font-size:clamp(16px,2vw,21px);line-height:1.1;letter-spacing:.01em}
.site-header .top-call-intro{font-size:clamp(10px,1vw,13px);color:#e2eaf5;font-weight:700}
.site-header .top-wa{display:inline-flex;align-items:center;gap:6px;color:#fff!important;border:1px solid #637990;border-radius:22px;padding:5px 10px;line-height:1.1;font-size:12px;text-decoration:none;white-space:nowrap;min-height:32px;font-weight:800}
.site-header .top-wa:hover,.site-header .top-wa:focus-visible{background:#223d5a}
.site-header .top-wa [aria-hidden]{font-size:18px;color:#f0b4b4}
.site-header .nav-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:80px;padding:7px 0}
.site-header .brand{display:flex;flex:0 1 auto;min-width:0;max-width:365px;align-items:center}
.site-header .brand-image{display:block;width:min(30vw,325px);height:auto;object-fit:contain;object-position:left center;max-height:78px}
.site-header .nav-contacts{display:flex;align-items:center;gap:10px;min-width:0;margin-left:auto}
.site-header .nav-phone{font-size:clamp(15px,1.4vw,19px);padding:9px 16px;white-space:nowrap}
.site-header .nav-wa{display:none}
.site-header .menu-toggle{white-space:nowrap;align-items:center;gap:6px;min-width:44px;min-height:44px;justify-content:center}
.mobile-sticky small{line-height:1.08;text-align:center}
.mobile-sticky a{gap:3px;min-height:69px}
.public-page{padding-bottom:0}
@media(max-width:800px){
 .site-header .topbar .topbar-in{justify-content:center;min-height:43px}
 .site-header .top-phone{display:flex!important}
 .site-header .top-call-intro{display:none}
 .site-header .top-phone strong{font-size:clamp(16px,4.7vw,20px)}
 .site-header .top-wa{font-size:12px;padding:5px 9px}
 .site-header .top-wa span:last-child{font-size:0}
 .site-header .top-wa span:last-child:after{content:'WhatsApp';font-size:12px}
 .site-header .nav-row{min-height:65px;padding:6px 0}
 .site-header .brand{max-width:min(calc(100% - 54px),295px);min-width:0;flex:1 1 auto}
 .site-header .brand-image{width:100%;max-width:290px;max-height:67px;height:auto}
 .site-header .nav-contacts{order:initial;min-width:44px;flex:0 0 auto}
 .site-header .nav-phone{display:none}
 .site-header .menu-toggle{display:inline-flex;min-width:44px;min-height:43px;padding:6px 8px;font-size:18px}
 .site-header .menu-toggle span{display:none}
 .hero.hero-form .hero-cols{display:flex;flex-direction:column;gap:0;padding-top:8px;padding-bottom:24px}
 .hero.hero-form .hero-widget{order:0;width:100%}
 .hero.hero-form .hero-title{order:1;margin-top:22px;padding:0}
 .hero.hero-form .hero-title h1{font-size:clamp(1.9rem,6vw,2.5rem);line-height:1.16}
 .hero.hero-form .quote-widget{padding:12px 12px 14px;border-radius:14px}
 .hero.hero-form .quote-header .quote-status{font-size:10px;line-height:1.1}
 .hero.hero-form .quote-header h2{font-size:1.18rem!important;line-height:1.22!important;margin:5px 0 3px!important}
 .hero.hero-form .quote-header p{font-size:.78rem!important;line-height:1.3!important;margin:0 0 7px!important}
 .hero.hero-form .quote-under{font-size:.72rem;line-height:1.3}
 .hero.hero-form .widget-frame{min-height:0}
 .hero.hero-form .widget-frame>div{min-height:0}
 .mobile-sticky{z-index:250}
 .public-page{padding-bottom:calc(77px + env(safe-area-inset-bottom))}
 .mobile-sticky small{font-size:clamp(10px,2.4vw,12px)}
}
@media(max-width:380px){
 .site-header .brand{max-width:calc(100% - 52px)}
 .site-header .brand-image{max-width:235px}
 .site-header .nav-row{gap:7px}
 .site-header .topbar-in{gap:12px}
 .site-header .top-phone strong{font-size:16px}
 .site-header .top-wa{padding:4px 7px}
 .site-header .top-wa span:last-child:after{font-size:11px}
 .hero.hero-form .quote-widget{padding:10px}
 .mobile-sticky small{font-size:10px}
}
/* compact branded header on insurer comparison and results paths */
.technical-page .site-header .nav-main{display:none!important}
.technical-page .site-header .nav-row{min-height:59px}
.technical-page .site-header .brand-image{width:200px;max-height:52px}
.technical-page .mobile-sticky{display:none!important}
.technical-page{padding-bottom:0!important}
.technical-page .technical-main{padding-top:14px}
.technical-page .technical-main h1{font-size:clamp(1.4rem,3vw,2rem);margin-top:5px}
.technical-page .result-shell{overflow:visible;min-width:0}
@media(max-width:800px){
 .technical-page .site-header .topbar-in{min-height:35px}
 .technical-page .site-header .nav-row{min-height:54px}
 .technical-page .site-header .brand-image{width:172px;max-height:47px}
 .technical-page .tech-note{font-size:.83rem;margin:8px 0}
 .technical-page .technical-main{padding-top:10px}
 .technical-page .technical-main .breadcrumbs{margin-bottom:5px}
 .technical-page .result-shell{padding:3px;border:0}
}
/* proper focus states */
.site-header a:focus-visible,.site-header button:focus-visible,.mobile-sticky a:focus-visible{outline:3px solid #c62828;outline-offset:2px}
/* Explicit externally signaled comparison mode; restored automatically when signal closes */
body.yq-comparison-open .mobile-sticky{display:none!important}
body.yq-comparison-open.public-page{padding-bottom:0!important}
/* Ensure quote forms keep their own widgets; external Shadow DOM styles are configured separately. */
.product-quote-first{background:linear-gradient(125deg,#07182d,#173859);color:#fff;padding:16px 0 24px}
.product-quote-first .quote-widget{max-width:900px;margin:auto}
.product-quote-first .quote-widget h1{font-size:clamp(1.35rem,3vw,1.8rem);margin:6px 0 4px;line-height:1.2;color:#0B1F3A}
.product-quote-first .quote-header p{font-size:.9rem;line-height:1.4;margin-bottom:6px}
.product-quote-first .quote-widget .quote-under{font-size:.75rem}
@media(max-width:800px){.product-quote-first{padding:8px 0 17px}.product-quote-first .quote-widget{padding:12px 11px}.product-quote-first .quote-widget h1{font-size:1.23rem}}
.side-avatar.advisor-photo{display:block;width:80px;height:80px;border-radius:50%;object-fit:cover;object-position:center 20%;overflow:hidden;background:#e9ebf0}
/* Override older @media rule that hid all non-phone topbar links */
@media (max-width:800px){
 .site-header .topbar a.top-wa{display:inline-flex!important;visibility:visible!important}
 .site-header .topbar .topbar-in{gap:clamp(8px,3vw,18px)}
}
/* Reserve space before YourQuote loads, without introducing fake quote inputs. */
.widget-frame{position:relative}
.hero.hero-form .widget-frame>div[id^="frm"]{min-height:190px}
.widget-frame .widget-loading{position:absolute;z-index:0;inset:0;display:flex;align-items:center;justify-content:center;color:#596b80;font-size:14px;text-align:center;pointer-events:none;padding:24px;line-height:1.5;background:linear-gradient(90deg,rgba(242,246,250,.6),rgba(255,255,255,.3),rgba(242,246,250,.6));border-radius:9px}
.widget-frame.widget-ready .widget-loading{display:none}
.widget-frame>div[id^="frm"]{position:relative;z-index:1}
@media(max-width:800px){.hero.hero-form .widget-frame>div[id^="frm"]{min-height:180px}}
