.ros-ad{font-family:system-ui,sans-serif;min-width:0}
.ros-ad small{display:block;color:#495267;margin:0 0 5px;font-size:.8rem}
.ros-ad a{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:1rem;box-sizing:border-box;padding:clamp(1rem,3vw,2.1rem);background:var(--ad-color,#262161);color:white;text-decoration:none;border-radius:8px}
.ros-ad a:before,.ros-ad a:after{content:"";position:absolute;z-index:-1;border:clamp(15px,3vw,42px) solid #ffffff19;transform:rotate(-28deg);width:56%;height:155%;right:-23%;top:-42%}
.ros-ad a:after{right:-5%;top:55%;width:35%}
.ros-ad strong{font-size:clamp(1.5rem,3vw,2.7rem);line-height:1.04;letter-spacing:-.035em;max-width:13ch}
.ros-ad a span{font-size:.9rem;text-decoration:underline;text-underline-offset:.2em}
.ros-strip{margin-bottom:1.25rem}.ros-strip a{min-height:100px;flex-direction:row;align-items:center;justify-content:space-between}.ros-strip strong{max-width:none}
.ros-block a{aspect-ratio:1}.ros-ad[data-ad-slot=B1]{--ad-color:#284c55}.ros-ad[data-ad-slot=B2]{--ad-color:#624067}.ros-ad[data-ad-slot=B3]{--ad-color:#8c4035}.ros-ad[data-ad-slot=B4]{--ad-color:#25446c}
.ros-news{display:block;padding:clamp(18px,3vw,32px);background:white;border-radius:12px;margin:28px 0}.ros-news h2{margin:0}.ros-news ul{list-style:none;padding:0;margin:12px 0}.ros-news li{border-top:1px solid #d8dbe1}.ros-news li a{display:block;position:relative;padding:12px 0 12px 20px;text-decoration:none;color:#232250}.ros-news li a:before{position:absolute;left:2px;top:17px;content:"";width:7px;height:7px;border:solid #c02647;border-width:2px 2px 0 0;transform:rotate(45deg)}.ros-news a:hover strong{text-decoration:underline}.ros-news time{display:block;color:#535d6d;font-size:.875rem}.ros-news>a{color:#25265a}

.school-page main .ros-identity{display:flex;gap:16px;align-items:center;margin:12px 0}
.ros-identity h1{font-size:clamp(2rem,4vw,3.4rem);line-height:1.03;margin:0 0 5px}
.ros-identity p{margin:2px 0;line-height:1.35}
main .ros-identity img.school-badge{width:70px;height:78px}
.ros-tools{display:flex;align-items:center;gap:6px 20px;flex-wrap:wrap;font-size:.95rem}
.ros-tools details{position:relative;margin:0}
.ros-tools summary,.ros-tools>a{cursor:pointer;color:#262161;text-decoration:underline;padding:10px 0}
.ros-tools details[open] .ach-share{position:absolute;left:0;z-index:15;min-width:190px;background:white;border:1px solid #cacfdb;padding:12px;border-radius:8px;box-shadow:0 4px 12px #18264722}
.ros-tools select{font:inherit;padding:4px;color:#262161;background:white;border:1px solid #9aa1b3;border-radius:4px}
main .section-nav{margin:8px 0}
.ros-gallery-head{display:flex;align-items:center;justify-content:space-between;gap:10px 20px;flex-wrap:wrap;margin:16px 0 12px;scroll-margin-top:65px}
.ros-gallery-head h2{margin:0;font-size:clamp(1.6rem,3vw,2.35rem)}
#learner-finder{position:relative;max-width:100%;color:#17263d}
#learner-finder label{margin-right:8px;font-weight:650}
#learner-query{max-width:100%;font:inherit;border:1px solid #96a0b2;border-radius:7px;padding:9px 12px}
#learner-matches{position:absolute;z-index:8;right:0;width:min(290px,100%);max-height:245px;overflow:auto;background:white;list-style:none;margin:2px 0 0;padding:4px;border:1px solid #aeb7c9;border-radius:6px}
#learner-matches a{display:block;padding:10px;color:#24295a}
#finder-status{display:block;font-size:.875rem}#finder-status:empty{display:none}
figure figcaption .ros-result{display:block;color:#49536a;font-size:1rem;font-weight:500;line-height:1.4;margin-top:3px}
figure .ach-share button,.ros-tools .ach-share button{background:transparent;border:0;text-decoration:underline;text-underline-offset:3px;color:#404b61;font:inherit;min-height:44px}
#gallery figure{scroll-margin-top:70px}#gallery figure:focus{outline:3px solid #374c76;outline-offset:2px}
main aside.ros-ad[data-ad-slot] > a{display:flex;gap:1rem;line-height:1.15}
main aside.ros-strip > a{flex-direction:row;justify-content:space-between;align-items:center}
main aside.ros-block > a{flex-direction:column;align-items:flex-start;justify-content:center}
main aside.ros-ad > a span{display:block;flex:none}
@media(max-width:640px){
 .ros-tools{gap:0 14px}.ros-tools details[open] .ach-share{left:auto;right:0}
 main .section-nav{gap:12px}main .section-nav a{font-size:.875rem}
 .ros-gallery-head{display:grid;gap:8px}
 #learner-finder label{display:block;font-size:.875rem}#learner-query{width:100%}#learner-matches{width:100%}
 main aside.ros-strip > a{align-items:flex-start;flex-direction:column;gap:.4rem;padding:14px 16px;min-height:82px}
}
@media(max-width:640px){
 .ros-tools details[open] .ach-share{position:static;box-shadow:none}
}

/* Both current card links and older learner links align the portrait below the sticky navigation. */
#gallery figure[data-family-caption],
#gallery figure[data-family-caption] img[id^="learner-"] {
  scroll-margin-top: 70px;
}
#gallery figure:target,
#gallery figure:has(img:target) {
  animation: ros-landing 2.2s ease-out;
}
@keyframes ros-landing {
  0%, 65% { box-shadow: 0 0 0 3px #365a81; }
  100% { box-shadow: 0 0 0 3px transparent; }
}
@media(prefers-reduced-motion:reduce) {
  #gallery figure:target, #gallery figure:has(img:target) { animation:none; outline:2px solid #365a81; }
}

.ros-gallery-head h2{max-width:26ch;line-height:1.12}
main .ros-ad.ros-block strong{font-size:clamp(1.35rem,2.1vw,2rem);max-width:16ch;overflow-wrap:anywhere}
main .ros-ad.ros-strip strong{font-size:clamp(1.45rem,2.6vw,2.3rem);max-width:32ch}
