/* Approved referrer layout: 24 October 2026. */
body.referrers #main {display:flow-root;}
body.referrers #main .referrer-layout {margin-top:48px;}
body.referrers #main .referrer-content {grid-template-columns:minmax(0,1fr);gap:28px;}
body.referrers #main .referrer-content>.referrer-welcome {margin:0!important;min-width:0;max-width:100%;box-sizing:border-box;}
body.referrers #main .ref-steps {grid-template-columns:repeat(3,minmax(0,1fr));}
body.referrers #main .ref-steps>li {min-width:0;}
@media(max-width:1000px){body.referrers #main .ref-steps {grid-template-columns:1fr;}}
body.referrers #main .referrer-content>section {min-width:0;max-width:100%;box-sizing:border-box;}
@media(max-width:850px){
 body.referrers #main .referrer-layout {margin-top:32px;}
 body.referrers #main .referrer-content {gap:24px;}
 body.referrers #main .referrer-content>.referrer-welcome {margin-top:24px!important;}
}
/* Keep the complete message in a real column, never around a float. */
body.referrers #main .referrer-welcome {
 display:grid!important;grid-template-columns:180px minmax(0,1fr);gap:24px;
 align-items:start;text-align:left;
}
body.referrers #main .referrer-welcome .ref-welcome-portrait {
 float:none!important;display:block;width:100%!important;height:auto!important;
 max-width:180px!important;margin:0!important;
}
body.referrers #main .ref-welcome-copy {min-width:0;}
body.referrers #main .ref-welcome-copy p {margin:0 0 14px;}
body.referrers #main .ref-welcome-copy .hc-welcome-title {margin:0 0 16px;}
body.referrers #main .ref-welcome-copy .referrer-signature {margin:18px 0 0;}
@media(min-width:851px) and (max-width:1100px){
 body.referrers #main .referrer-welcome {grid-template-columns:130px minmax(0,1fr);gap:20px;}
}
@media(max-width:600px){
 body.referrers #main .referrer-welcome {display:block!important;position:relative;}
 body.referrers #main .referrer-welcome .ref-welcome-portrait {
  position:absolute;right:20px;top:20px;width:88px!important;
 }
 body.referrers #main .ref-welcome-copy .hc-welcome-title {
  box-sizing:border-box;min-height:126px;padding-right:108px;margin-bottom:20px;
 }
}
/* Approved referrer heading scale. */
html.aes-editorial body.referrers #main .study-intro h1 {font-size:42px!important;line-height:1.12!important;}
html.aes-editorial body.referrers #main h2 {font-size:28px!important;line-height:1.2!important;}
html.aes-editorial body.referrers #main .ref-quick h2 {font-size:22px!important;line-height:1.35!important;}
html.aes-editorial body.referrers #main .hc-welcome-title {font-size:20px!important;line-height:1.4!important;}
@media(max-width:850px){html.aes-editorial body.referrers #main .study-intro h1 {font-size:36px!important;}}
@media(max-width:600px){html.aes-editorial body.referrers #main .study-intro h1 {font-size:32px!important;}}
