/* HIA readable typography, compact rhythm and accessible controls. */
:root{--hia-quality-ink:#07516c;--hia-quality-muted:#354b5c}
html[data-hia-quality] body{font-size:16px;font-weight:400;line-height:1.55}
html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(p,li,figcaption,span){font-weight:400!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(p,li,figcaption){font-size:16px!important;line-height:1.55!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(h1,h2,h3,h4){font-weight:700!important;line-height:1.18!important;letter-spacing:-.015em}
html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(h1,h2,h3,h4) :is(span,strong){font-weight:inherit!important;font-size:inherit!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) h1{font-size:clamp(32px,3.2vw,48px)!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) h2{font-size:clamp(26px,2.3vw,34px)!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) h3{font-size:22px!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) strong{font-weight:600!important}
html[data-hia-quality] body :is(.topbar,.site-topbar){font-size:14px!important;font-weight:400!important;line-height:1.4!important}
html[data-hia-quality] body :is(.topbar,.site-topbar) :is(span,a){font-size:14px!important;font-weight:400!important}
html[data-hia-quality] body .site-header .nav :is(a,button){font-size:15px!important;font-weight:600!important}
html[data-hia-quality] body .site-header .nav-dropdown :is(span,small){font-size:14px!important;font-weight:400!important;line-height:1.45!important}
html[data-hia-quality] body .site-header .brand{flex-shrink:1;min-width:0}
html[data-hia-quality] body .site-header .brand :is(strong,span){font-weight:600!important}
html[data-hia-quality] body .site-header .brand :is(small,.brand__tag){font-size:14px!important;color:#07516c!important;font-weight:400!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(.pg-product-picker,.pg-trust,.pg-learn,.section,.hc-section,.mh-section,.partner-section,.hq-application,.hq-seo,.hq-legal,.hia-upgrade,.hia-blog-section,.hia-blog-cta,.cd-section,.hia-authority-section,.hia-resource-section,.hia-resource-cta,.hia2-section,.hia2-cta){padding-top:52px!important;padding-bottom:52px!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) .pg-ways{padding-top:24px!important;padding-bottom:24px!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) .pg-hero{min-height:560px!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(.pg-hero,.mh-hero) :is(p,span){font-weight:400!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(.pg-states,.pg-carriers,.pg-ways,.mh-story,.mh-section,.hc-section) :is(p,figcaption){color:var(--hia-quality-muted)!important}
html[data-hia-quality] body :is(h3,.kicker,.mh-kicker,.hc-kicker){color:var(--hia-quality-ink)!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(.kicker,.mh-kicker,.hc-kicker){font-size:14px!important;font-weight:600!important;letter-spacing:.08em!important}
html[data-hia-quality] body :is(.button--primary,.pg-primary,.nav__button,.hia-lead-bar__quote,.hc-btn,.mh-button){background:var(--hia-quality-ink)!important;color:#fff!important;border-color:var(--hia-quality-ink)!important}
html[data-hia-quality] body :is(.hc-btn--outline,.mh-button--outline,.button--outline){background:#fff!important;color:var(--hia-quality-ink)!important;border-color:var(--hia-quality-ink)!important}
html[data-hia-quality] body :is(button,.button,.hc-btn,.mh-button,.nav__button,.pg-primary){min-height:44px;min-width:44px;font-size:15px!important;font-weight:600!important}
html[data-hia-quality] body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){border-color:#526778!important;font-size:16px!important;font-weight:400!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) #quote :is(label,.hc-step-count){font-size:14px!important;font-weight:500!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) #quote :is(button,input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select){min-height:44px!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) #quote button{font-size:15px!important;font-weight:600!important}
html[data-hia-quality] body .hia-quality-heading{font-size:20px!important;line-height:1.3!important;margin:0 0 10px;font-weight:600!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) .mh-proof__grid strong{font-size:28px!important;color:#07516c!important;font-weight:700!important}
html[data-hia-quality] body:not(.wp-admin) footer.footer.hia-home-footer .hia-footer-legal{display:flex!important;justify-content:center!important;align-items:center;gap:24px;flex-wrap:wrap;width:100%;box-sizing:border-box;margin:24px 0 0!important;padding:8px 0!important;border-top:1px solid rgba(255,255,255,.2);text-align:center}
html[data-hia-quality] body:not(.wp-admin) footer.footer.hia-home-footer .hia-footer-legal a{display:inline-flex;align-items:center;min-height:44px}
html[data-hia-quality] body:not(.wp-admin) footer.footer.hia-home-footer .footer__copy{border-top:0!important;margin-top:0!important}
html[data-hia-quality] body .hia-footer-legal a{color:#fff!important;font-size:14px!important;text-decoration:underline}
html[data-hia-quality] body:not(.wp-admin) footer.footer.hia-home-footer :is(p,span,a,small){font-size:14px!important;font-weight:400!important;line-height:1.5!important}
html[data-hia-quality] body:not(.wp-admin) footer.footer.hia-home-footer .footer__brand-band .brand small,
html[data-hia-quality] body:not(.wp-admin) footer.footer.hia-home-footer .footer__coverage-disclaimer{font-size:14px!important;font-weight:400!important;line-height:1.5!important}
html[data-hia-quality] body:not(.wp-admin) footer.footer.hia-home-footer .hia-footer-social-inline a{height:44px!important;min-height:44px!important;max-height:none!important;width:44px!important}
html[data-hia-quality] body .hia-lead-bar :is(span,p){font-size:14px!important;font-weight:400!important}
html[data-hia-quality] body .hia-lead-bar :is(a,strong){font-size:15px!important;font-weight:600!important}
html[data-hia-quality] body .hia-smart-agent :is(p,span,label,input,select,textarea){font-size:15px!important;font-weight:400!important;line-height:1.5!important}
html[data-hia-quality] body :is(a,button,input,select,textarea):focus-visible{outline:3px solid #07516c;outline-offset:3px}
.hia-quality-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:700px){html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(.pg-product-picker,.pg-trust,.pg-learn,.section,.hc-section,.mh-section,.partner-section,.hq-application,.hq-seo,.hq-legal,.hia-upgrade,.hia-blog-section,.hia-blog-cta,.cd-section,.hia-authority-section,.hia-resource-section,.hia-resource-cta,.hia2-section,.hia2-cta){padding-top:36px!important;padding-bottom:36px!important}html[data-hia-quality] body .hia-lead-bar{flex-wrap:wrap}html[data-hia-quality] body .site-header .brand{max-width:calc(100% - 70px)}html[data-hia-quality] body :is(.hc-wrap,.shell){max-width:100%;box-sizing:border-box}}

/* Shared typography for quote, carrier, editorial and legal layouts. */
html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(label,label>span){font-size:14px!important;font-weight:500!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(.hq-kicker,.hq-step-label,.cd-kicker,.cd-eyebrow,.partner-eyebrow,.hia-eyebrow){font-size:14px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:.06em!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(.hq-steps li,.hq-step-count,.cd-breadcrumb){font-size:14px!important;font-weight:500!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) :is(.cd-chip,.partner-proof span,.hq-badges span){font-size:14px!important;font-weight:500!important}

/* Common primary actions across specialist page families. */
html[data-hia-quality] body :is(.hq-primary,.cd-button,.hia-button,.hia-resource-actions__primary,.partner-intro__cta),
html[data-hia-quality] body .partner-cta a[href="/quote-form/"]{background:#07516c!important;color:#fff!important;border-color:#07516c!important;min-height:44px;font-size:15px!important;font-weight:600!important}
html[data-hia-quality] body :is(.cd-button-outline,.hia-button--outline){background:transparent!important;color:inherit!important;border-color:currentColor!important}
html[data-hia-quality] body .hia-resource-actions a{font-size:15px!important;font-weight:600!important}
html[data-hia-quality] body :is(#content,#main,#main-content,main) .hia-resource-kicker{font-size:14px!important;font-weight:600!important;letter-spacing:.06em!important}

/* Published article hero titles sit above their main content wrapper. */
html[data-hia-quality] body h1{font-size:clamp(32px,3.2vw,48px)!important;font-weight:700!important;line-height:1.18!important;letter-spacing:-.015em!important}
html[data-hia-quality] body .hia2-hero :is(p,span){font-size:16px!important;font-weight:400!important;line-height:1.55!important}
html[data-hia-quality] body .hia2-hero :is(h1,h2) :is(span,strong){font-size:inherit!important;font-weight:inherit!important}

/* The remaining editorial and legacy action classes share the same treatment. */
html[data-hia-quality] body :is(.hia-btn,.hia2-btn,.hia-authority-btn,.hia-growth-btn,.hia-footer-btn,.hia-faq-btn,.hia-upgrade__button,.hia-quote-btn),
html[data-hia-quality] body :is(.hia-blog-cta,.hia-blog-lead-cta) a{background:#07516c!important;color:#fff!important;border-color:#07516c!important;min-height:44px;font-size:15px!important;font-weight:600!important}
html[data-hia-quality] body :is(.hia-btn,.hia2-btn,.hia-authority-btn).secondary,
html[data-hia-quality] body .hia-growth-btn-alt{background:#fff!important;color:#07516c!important;border-color:#07516c!important}

/* Lift the assistant above the footer legal divider and keep its panel in view. */
html[data-hia-quality] body:not(.wp-admin) #hiaSmartAgent.hia-smart-agent{bottom:calc(180px + env(safe-area-inset-bottom,0px))!important}
html[data-hia-quality] body:not(.wp-admin) #hiaSmartAgent .hia-agent-panel{max-height:min(640px,calc(100dvh - 290px))!important}
html[data-hia-quality] body:not(.wp-admin) #hiaSmartAgent.is-open .hia-agent-panel{grid-template-rows:auto minmax(0,1fr) auto}

/* Quote product heroes share the homepage scale and image treatment. */
html[data-hia-quality] body main #hq-dynamic-hero.hq-hero{box-sizing:border-box;width:100%;min-height:660px!important;padding:64px 0!important;display:flex;align-items:center;background-image:linear-gradient(90deg,rgba(7,40,64,.86),rgba(7,40,64,.64) 56%,rgba(7,40,64,.42)),var(--hq-photo);background-position:center;background-size:cover}
html[data-hia-quality] body main #hq-dynamic-hero.hq-hero .hq-wrap{width:min(1440px,calc(100% - 48px));padding:0!important;margin:0 auto}
html[data-hia-quality] body main #hq-dynamic-hero.hq-hero h1{max-width:1000px;margin:8px 0 18px}
html[data-hia-quality] body main #hq-dynamic-hero.hq-hero p:not(.hq-kicker){max-width:760px}
html[data-hia-quality] body main #hq-dynamic-hero.hq-hero .hq-kicker{color:#bdeeff!important}
@media(max-width:782px){html[data-hia-quality] body main #hq-dynamic-hero.hq-hero{min-height:560px!important;padding:44px 0!important}html[data-hia-quality] body main #hq-dynamic-hero.hq-hero .hq-wrap{width:calc(100% - 30px)}html[data-hia-quality] body main #hq-dynamic-hero.hq-hero .hq-trust{gap:10px}}
