/* Shared finishing layer. No content, routes, menu items or approved layout geometry here. */
.ai-ui-refined .ai-site-header{background:#fff;box-shadow:0 4px 22px #143e5710}
.ai-ui-refined .ai-header-inner{display:grid;grid-template-columns:minmax(280px,1.05fr) minmax(360px,1.2fr) auto;align-items:center;gap:24px;padding-block:20px}
.ai-ui-refined .ai-header-brand{display:flex;align-items:center;gap:22px;min-width:0}
.ai-ui-refined .ai-brand{flex:0 0 148px}
.ai-ui-refined .ai-brand img{display:block;width:148px;height:auto}
.ai-ui-refined .ai-slogan{flex:initial;max-width:150px;margin:0;padding-left:19px;border-left:1px solid #dbe7ee;color:#536d7d;font-size:14px;line-height:1.55}
.ai-ui-refined .ai-header-contact{display:grid;grid-template-columns:auto auto;gap:22px;justify-content:center;min-width:0}
.ai-ui-refined .ai-header-contact a{display:flex;align-items:center;gap:10px;color:#184f70;text-decoration:none;font-size:13px;font-weight:400;line-height:1.45;min-width:0;text-align:left}
.ai-ui-refined .ai-header-contact a span:not(.ai-header-icon){min-width:0}
.ai-ui-refined .ai-header-contact a small{display:block;margin-bottom:3px;color:#70808d;font-size:11px;font-weight:400}
.ai-ui-refined .ai-header-contact a strong{display:block;font-size:13px;font-weight:650;white-space:nowrap}
.ai-header-icon{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border:1px solid #d6e5ee;border-radius:50%;background:#f7fafc;color:#236f9d;transition:background .2s,border-color .2s,color .2s}
.ai-header-icon svg{width:17px;height:17px}
.ai-ui-refined .ai-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.ai-ui-refined .ai-header-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 15px;border:1px solid #236f9d;border-radius:11px;background:linear-gradient(120deg,#175777,#236f9d);color:#fff;font:600 12px/1.4 Inter,Arial,sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap;box-shadow:0 4px 12px #14517414;transition:box-shadow .2s,transform .2s,background .2s}
.ai-header-cta-icon{display:flex;flex:0 0 18px}
.ai-header-cta-icon svg{width:18px;height:18px}
.ai-ui-refined .ai-language-toggle{min-width:82px;min-height:44px;border-radius:11px;background:#f7fafc}
.ai-ui-refined .ai-nav-wrap{position:sticky;top:0;z-index:29;border-top:1px solid #e1edf2;background:linear-gradient(110deg,#144e6d,#1a5a7a)}
.ai-ui-refined.admin-bar .ai-nav-wrap{top:32px}
.ai-ui-refined :is(main[id],main [id]){scroll-margin-top:80px}
.ai-ui-refined.admin-bar :is(main[id],main [id]){scroll-margin-top:112px}
@media(max-width:782px){.ai-ui-refined.admin-bar .ai-nav-wrap{top:46px}.ai-ui-refined.admin-bar :is(main[id],main [id]){scroll-margin-top:126px}}
@media(max-width:600px){.ai-ui-refined.admin-bar .ai-nav-wrap{top:0}.ai-ui-refined.admin-bar :is(main[id],main [id]){scroll-margin-top:80px}}
@media(prefers-reduced-motion:reduce){.ai-ui-refined .ai-nav-wrap *,.ai-ui-refined .ai-nav-wrap *::after{transition:none!important}}
.ai-ui-refined .ai-header-contact a:focus-visible,.ai-ui-refined .ai-header-cta:focus-visible{outline:3px solid #80b8d6;outline-offset:5px;border-radius:9px}

/* Centre the newsletter action against both the copy and its staging notice. */
.ai-ui-refined #main .ai-newsletter>.ai-button{grid-column:2;grid-row:1 / 3;align-self:center;justify-self:end;opacity:1}
.ai-ui-refined #main .ai-newsletter>.ai-form-test-note{grid-column:1;grid-row:2;line-height:1.5;margin:0}
.ai-ui-refined #main :is(.ai-section--accent,.ai-home) .ai-newsletter>.ai-button{background:#fff;border-color:#fff;color:#145174;box-shadow:0 3px 12px #092b3e12}
.ai-ui-refined #main .ai-publication-image--contained{background:#f3f8fb}
.ai-ui-refined #main .ai-publication-image--contained img{object-fit:contain}
.ai-ui-refined #main .ai-article-image figcaption.ai-editorial-credit{font-size:12px;color:#697a88;margin-top:9px}
.ai-ui-refined #main .ai-article{min-width:0;overflow-wrap:anywhere}
.ai-ui-refined #main :is(h1,h2,h3,h4){min-width:0;overflow-wrap:anywhere}
.ai-ui-refined #main .ai-countries>div{min-width:0;overflow-wrap:anywhere}
/* Keep the approved 280px grid minimum unless the phone is narrower than it. */
.ai-ui-refined #main.ai-approved-main [style*="minmax(280px"]{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important}
@media(max-width:600px){.ai-ui-refined #main .ai-newsletter>.ai-button{grid-column:1;grid-row:2;justify-self:start}.ai-ui-refined #main .ai-newsletter>.ai-form-test-note{grid-column:1;grid-row:3}}

/* Same restrained line weight as the homepage benefit icons. */
.ai-ui-refined #main .ai-ui-icon{display:grid;place-items:center;width:46px;height:46px;margin:0 0 17px;flex:0 0 46px;background:linear-gradient(135deg,#eef7fc,#e7f1f7);border:1px solid #d5e5ef;border-radius:14px;color:#236f9d;box-sizing:border-box;transition:background .22s,border-color .22s,color .22s,box-shadow .22s}
.ai-ui-refined #main .ai-ui-icon svg{display:block;width:24px;height:24px}
.ai-ui-refined #main .ai-card:has(>.ai-ui-icon)>.ai-card-number{display:none}
.ai-ui-refined #main :is(.ai-card,.ai-person,.ai-office,.ai-review,.ai-publication-card,.ai-testimonial,.ai-client-logo,.aic-person,.aic-benefit-panel,.maa-result-card,.maa-consult-card,.dca-benefit-main,.dca-benefit-grid>article,.dca-law-card,.sta-definition-card,.sta-role-card,.sta-service-card,.maa-tail__review,.maa-tail__service-grid>article,.ac-offices .item){transition:border-color .22s,box-shadow .22s,transform .22s}
.ai-ui-refined #main :is(.ai-card,.ai-person,.ai-office,.ai-review,.ai-publication-card,.ai-testimonial,.ai-client-logo,.aic-person,.maa-tail__review,.maa-tail__service-grid>article):focus-within{border-color:#88b6d1;box-shadow:0 8px 24px #14517414}
.ai-ui-refined #main .ai-text-link::after{content:'';display:inline-block;vertical-align:middle;width:15px;height:15px;margin-left:7px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .2s}
.ai-ui-refined #main :is(.ai-faq,.ai-step){transition:border-color .2s,box-shadow .2s,background .2s}
.ai-ui-refined #main :is(.ai-faq,.ai-step):focus-within{border-color:#88b6d1;box-shadow:0 0 0 3px #236f9d0d}
/* The restored HFCM styles use !important; these narrow rules leave their geometry intact. */
body.ai-ui-refined #main[id] .aic-why-card{transition:border-color .22s,box-shadow .22s,transform .22s!important}
@media (hover:hover) and (pointer:fine){
 .ai-ui-refined .ai-header-contact a:hover .ai-header-icon{background:#e5f1f8;border-color:#a8cadf}
 .ai-ui-refined .ai-header-contact a:hover strong{color:#287caa}
 .ai-ui-refined .ai-header-cta:hover{background:linear-gradient(120deg,#134762,#1e638b);box-shadow:0 7px 20px #14517426;transform:translateY(-1px)}
 .ai-ui-refined #main :is(.ai-card,.ai-person,.ai-office,.ai-review,.ai-publication-card,.ai-testimonial,.ai-client-logo,.aic-person,.aic-benefit-panel,.maa-result-card,.maa-consult-card,.dca-benefit-main,.dca-benefit-grid>article,.dca-law-card,.sta-definition-card,.sta-role-card,.sta-service-card,.maa-tail__review,.maa-tail__service-grid>article,.ac-offices .item):hover{border-color:#a6c9de;box-shadow:0 12px 28px #14517412;transform:translateY(-3px)}
 .ai-ui-refined #main :is(.ai-card,.ai-office):hover>.ai-ui-icon{background:#dceef8;border-color:#acd0e4;box-shadow:0 4px 12px #236f9d0b}
 .ai-ui-refined #main .ai-text-link:hover::after{transform:translateX(3px)}
 .ai-ui-refined #main :is(.ai-faq,.ai-step):hover{border-color:#b1cede;box-shadow:0 4px 14px #14517409}
 body.ai-ui-refined #main[id] .aic-why-card:hover{border-color:#a6c9de!important;box-shadow:0 12px 28px #14517412!important;transform:translateY(-3px)!important}
}
@media(max-width:1240px) and (min-width:1001px){
 .ai-ui-refined .ai-header-inner{grid-template-columns:minmax(250px,1fr) auto auto;gap:20px}
 .ai-ui-refined .ai-header-contact{grid-template-columns:1fr;gap:9px}
 .ai-ui-refined .ai-header-contact a small{display:none}
 .ai-ui-refined .ai-header-contact a strong{font-size:12px}
 .ai-ui-refined .ai-header-icon{width:29px;height:29px;flex-basis:29px}
 .ai-ui-refined .ai-header-brand{gap:16px}
 .ai-ui-refined .ai-slogan{font-size:13px;padding-left:15px;max-width:140px}
}
@media(max-width:1000px){
 .ai-ui-refined .ai-header-inner{grid-template-columns:minmax(0,1fr) auto;gap:18px 24px;padding-block:17px}
 .ai-ui-refined .ai-header-brand{grid-column:1;grid-row:1}
 .ai-ui-refined .ai-header-actions{grid-column:2;grid-row:1}
 .ai-ui-refined .ai-header-contact{grid-column:1/-1;grid-row:2;grid-template-columns:auto auto;justify-content:start;gap:35px;border-top:1px solid #e6eef3;padding-top:13px}
 .ai-ui-refined .ai-header-contact a small{display:none}
 .ai-ui-refined .ai-header-contact a strong{font-size:13px}
}
@media(max-width:600px){
 .ai-ui-refined .ai-header-inner{gap:13px;padding-block:13px}
 .ai-ui-refined .ai-header-brand{gap:12px}
 .ai-ui-refined .ai-brand{flex-basis:112px}
 .ai-ui-refined .ai-brand img{width:112px}
 .ai-ui-refined .ai-slogan{max-width:145px;font-size:11px;line-height:1.5;padding-left:11px}
 .ai-ui-refined .ai-header-actions{gap:0}
 .ai-ui-refined .ai-header-cta{display:none}
 .ai-ui-refined .ai-language-toggle{min-width:72px;padding:10px;gap:7px}
 .ai-ui-refined .ai-header-contact{justify-content:space-between;gap:8px;padding-top:11px}
 .ai-ui-refined .ai-header-contact a{gap:7px}
 .ai-ui-refined .ai-header-contact a strong{font-size:11px;letter-spacing:-.02em}
 .ai-ui-refined .ai-header-icon{width:25px;height:25px;flex-basis:25px}
 .ai-ui-refined .ai-header-icon svg{width:14px;height:14px}
}
@media(min-width:601px) and (max-width:800px){
 .ai-ui-refined .ai-header-cta{display:none}
 .ai-ui-refined .ai-slogan{display:block}
}
@media(max-width:390px){
 .ai-ui-refined .ai-slogan{display:none}
 .ai-ui-refined .ai-header-contact{gap:8px}
 .ai-ui-refined .ai-header-contact a{gap:5px}
 .ai-ui-refined .ai-header-contact a strong{font-size:11px}
 .ai-ui-refined .ai-header-icon{width:22px;height:22px;flex-basis:22px}
}
@media(max-width:360px){
 .ai-ui-refined .ai-header-contact{grid-template-columns:1fr;gap:8px}
 .ai-ui-refined .ai-header-contact a strong{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 .ai-ui-refined #main .ai-text-link::after{transition:none!important;transform:none!important}
 .ai-ui-refined #main :is(.ai-card,.ai-person,.ai-office,.ai-review,.ai-publication-card,.ai-testimonial,.ai-client-logo,.aic-person,.aic-benefit-panel,.maa-result-card,.maa-consult-card,.dca-benefit-main,.dca-benefit-grid>article,.dca-law-card,.sta-definition-card,.sta-role-card,.sta-service-card,.maa-tail__review,.maa-tail__service-grid>article,.ac-offices .item,.ai-faq,.ai-step,.ai-ui-icon,.ai-button),.ai-ui-refined .ai-header-cta{transition:none!important;transform:none!important}
 body.ai-ui-refined #main[id] :is(.aic-person,.aic-service,.aic-why-card,.maa-result-card,.maa-consult-card,.dca-benefit-main,.dca-benefit-grid>article,.dca-law-card,.sta-definition-card,.sta-info-card,.sta-role-card,.sta-service-card),body.ai-ui-refined #main[id] :is(.aic-person,.aic-service,.aic-why-card,.maa-result-card,.maa-consult-card,.dca-benefit-main,.dca-benefit-grid>article,.dca-law-card,.sta-definition-card,.sta-info-card,.sta-role-card,.sta-service-card):hover{transition:none!important;transform:none!important}
}
