/* Explicit section themes and source order replace positional color rules. */
.hp-community.hp-community-v2>.hp-inner{display:block}
.hp-community.hp-community-v2 .hp-inner>section{order:0;padding-block:72px;scroll-margin-top:100px}
.hp-community.hp-community-v2 .hp-inner>section h2{font-size:clamp(24px,2.2vw,30px);line-height:1.25}
.hp-community.hp-community-v2 .hp-inner>section h3{font-size:19px;line-height:1.4}
.hp-community.hp-community-v2 .hp-inner>section p{font-size:17px;line-height:1.75}
.hp-community.hp-community-v2 .hp-inner>.ophthalmology-resource,
.hp-community.hp-community-v2 .hp-inner>.collaboration-panel,
.hp-community.hp-community-v2 .hp-inner>.hp-legacy{background:#eef0f8;color:#1e315e}
.hp-community.hp-community-v2 .hp-inner>.aao-isrs-collaboration{background:#fff;color:#1e315e}
.hp-community.hp-community-v2 .hp-inner>section h2,
.hp-community.hp-community-v2 .hp-inner>section h3,
.hp-community.hp-community-v2 .hp-inner>section a{color:#1e315e}
.hp-community.hp-community-v2 .hp-inner>section p,
.hp-community.hp-community-v2 .hp-inner>section figcaption{color:#536580}
.hp-community.hp-community-v2 .hp-inner>section .eyebrow{color:#806a3e}
.hp-community.hp-community-v2 .hp-inner>section .button{background:#1e315e;border-color:#1e315e;color:#fff}
.hp-community.hp-community-v2 .hp-inner>section .button:hover{background:#2c4477;border-color:#2c4477}
.hp-community.hp-community-v2 .hp-inner>section a:focus-visible{outline-color:#1e315e}
.hp-community.hp-community-v2 .hp-inner>#home-alumni{background:#293e68;color:#d5dbea}
.hp-community.hp-community-v2 .hp-inner>#home-alumni h2{color:#fff}
.hp-community.hp-community-v2 .hp-inner>#home-alumni p{color:#d5dbea;max-width:780px;margin-inline:auto}
.hp-community.hp-community-v2 .hp-inner>#home-alumni .eyebrow{color:#d8bc6b}
.hp-community.hp-community-v2 .hp-inner>#home-alumni .button{background:#c6a442;border-color:#c6a442;color:#182c57}
.hp-community.hp-community-v2 .hp-inner>#home-alumni .button:hover{background:#dcc06c;border-color:#dcc06c}
.hp-community.hp-community-v2 .hp-inner>#home-alumni a:focus-visible{outline-color:#fff}
.hp-community.hp-community-v2 .collaboration-logo-link,
.hp-community.hp-community-v2 .ophthalmology-resource-logo{max-width:280px}
.hp-community.hp-community-v2 .aao-isrs-collaboration>p{max-width:940px;margin-inline:auto}
.hp-community.hp-community-v2 .hp-legacy>p{max-width:900px;margin-inline:auto}
@media(max-width:900px){.hp-community.hp-community-v2 .hp-inner>section{padding-block:52px}}
@media(max-width:560px){.hp-community.hp-community-v2 .hp-inner>section{padding-block:40px}.hp-community.hp-community-v2 .hp-inner>section p{font-size:16px}}
/* Mobile partner logos sit beside the section introduction, not below the text. */
@media screen and (max-width:700px){
 .hp-community.hp-community-v2 .hp-inner>.ophthalmology-resource,
 .hp-community.hp-community-v2 .hp-inner>.collaboration-panel{display:block;position:relative}
 .hp-community.hp-community-v2 .hp-inner>.ophthalmology-resource>.ophthalmology-resource-logo,
 .hp-community.hp-community-v2 .hp-inner>.collaboration-panel>.collaboration-logo-link{position:absolute;top:24px;right:24px;display:flex;width:88px;height:88px;max-width:88px;margin:0;padding:5px;background:transparent;border-radius:0;box-shadow:none;aspect-ratio:auto}
 .hp-community.hp-community-v2 .ophthalmology-resource-logo img,
 .hp-community.hp-community-v2 .collaboration-logo-link img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
 .hp-community.hp-community-v2 .ophthalmology-resource-content>.eyebrow,
 .hp-community.hp-community-v2 .collaboration-panel>div>.eyebrow{display:block;min-height:52px;padding-right:106px;box-sizing:border-box}
}
@media screen and (max-width:560px){
 .hp-community.hp-community-v2 .hp-inner>.ophthalmology-resource>.ophthalmology-resource-logo,
 .hp-community.hp-community-v2 .hp-inner>.collaboration-panel>.collaboration-logo-link{right:20px}
}

/* Shared English/Arabic content uses the same sections and responsive logo placement. */
.hp-community[dir=rtl] .hp-inner>.ophthalmology-resource,
.hp-community[dir=rtl] .hp-inner>.collaboration-panel{text-align:right}
.hp-community[dir=rtl] .hp-inner>section h2,
.hp-community[dir=rtl] .hp-inner>section h3{font-family:Tahoma,Arial,sans-serif;line-height:1.5;letter-spacing:normal}
.hp-community[dir=rtl] .eyebrow{letter-spacing:normal}
.hp-community[dir=rtl] bdi{unicode-bidi:isolate}
