/* Grade 09 photo-hero presentation parity for registered Grades 10–12.
 * Source of truth: Grade 09 student-profile.css and its photo/background/details modules.
 * Only spacing/control normalization; no enrollment, profile or course writes.
 */
body[data-grade] .grade09-profile-first > .card:first-child{overflow:visible}
body[data-grade] .grade09-profile-first .profile-row{
 display:grid!important;grid-template-columns:152px minmax(0,1fr)!important;
 gap:18px!important;align-items:center!important
}
body[data-grade] .grade09-profile-first #avatar.grade09-avatar-enhanced{
 width:146px!important;height:146px!important;min-width:146px!important;min-height:146px!important;
 font:400 38px/1.2 Cinzel,Georgia,serif!important;
 border:2px solid #b48b45!important;
 display:grid!important;place-items:center!important;
 background:linear-gradient(145deg,#fff7df,#d7b56f);
 color:#243c34
}
body[data-grade] .grade09-profile-first .grade09-identity-details{
 display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;min-width:0!important;gap:0!important
}
body[data-grade] .grade09-profile-first .grade09-identity-details>.profile-name{
 margin:0 0 2px!important;font:400 clamp(25px,3vw,36px)/1.2 Cinzel,Georgia,serif
}
body[data-grade] .grade09-profile-first .grade09-identity-details>.subline{
 margin:0 0 12px!important;padding:0 0 7px!important;
 min-height:28px!important;line-height:1.4!important
}
body[data-grade] .grade09-profile-first .grade09-profile-actions{display:none!important}
body[data-grade] #grade09BlueprintTools #khaeProfileToolRail>div{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px
}
body[data-grade] #grade09BlueprintTools #openGrade09BackgroundDialog{
 display:flex!important;width:100%!important;min-height:50px!important;
 border-radius:7px!important;border:1px solid #243038!important;
 background:#243038!important;color:#fff8e9!important;
 -webkit-text-fill-color:#fff8e9!important;
 font:400 16px/1.4 "Brandon Grotesque",Nunito,Arial,sans-serif!important;
 justify-content:center;text-align:center;padding:10px
}
body[data-grade] #grade09BlueprintTools #openGrade09BackgroundDialog:hover,
body[data-grade] #grade09BlueprintTools #openGrade09BackgroundDialog:focus-visible{
 background:#36504a!important;outline:2px solid #b48b45;outline-offset:2px
}
body[data-grade] .grade09-profile-first #grade09VisibleProfileDetails{
 color:#243038!important;min-width:0;width:100%;
}
@media(max-width:800px){
 body[data-grade] #grade09BlueprintTools #khaeProfileToolRail>div{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:690px){
 body[data-grade] .grade09-profile-first .profile-row{grid-template-columns:1fr!important;justify-items:center!important}
 body[data-grade] .grade09-profile-first .grade09-identity-details{align-items:center!important;text-align:center!important;width:100%!important}
}
@media(max-width:420px){
 body[data-grade] #grade09BlueprintTools #khaeProfileToolRail>div{grid-template-columns:1fr}
}
