/* Khaemenes Academy Student Rooms: one scoped contrast blueprint for Grades 09–12.
   Applies only when the three approved classes are attached to dashboard cards. */
html body main .grid > section.student-rooms-contrast{
 background:#254237!important;color:#fff8e9!important;border:1px solid #b48b45!important;
 border-radius:7px!important;padding:24px!important;box-shadow:0 9px 24px rgba(25,43,33,.17)!important}
html body main .student-rooms-contrast:not([data-student-section-color-override]) > h2{
 color:#fff8e9!important;-webkit-text-fill-color:#fff8e9!important;
 font:400 30px/1.3 Cinzel,Georgia,serif!important;margin:0 0 9px!important}
html body main .student-rooms-contrast:not([data-student-section-color-override]) > p{
 color:#f0e6d5!important;-webkit-text-fill-color:#f0e6d5!important;
 font:400 16px/1.55 "Brandon Grotesque",Nunito,Arial,sans-serif!important}
html body main .student-rooms-contrast .door-grid{gap:13px!important;margin-top:18px!important}
html body main .student-rooms-contrast .door-grid > a.door{
 min-width:0;min-height:190px!important;padding:18px!important;border-radius:7px!important;
 border:1px solid #d3c2a5!important;border-top:4px solid #b48b45!important;
 background:#fffdf8!important;color:#243038!important;box-shadow:0 3px 12px rgba(0,0,0,.1)!important}
html body main .student-rooms-contrast .door-grid > a.door:nth-child(2){border-top-color:#3c688c!important}
html body main .student-rooms-contrast .door-grid > a.door:nth-child(3){border-top-color:#417b5b!important}
html body main .student-rooms-contrast .door-grid > a.door:nth-child(4){border-top-color:#852f46!important}
html body main .student-rooms-contrast .door b{
 color:#243038!important;-webkit-text-fill-color:#243038!important;
 font:400 22px/1.35 Cinzel,Georgia,serif!important}
html body main .student-rooms-contrast .door span span{
 color:#405449!important;-webkit-text-fill-color:#405449!important;
 font:400 16px/1.55 "Brandon Grotesque",Nunito,Arial,sans-serif!important}
html body main .student-rooms-contrast .door small{
 color:#21543a!important;-webkit-text-fill-color:#21543a!important;
 font:400 16px/1.4 "Brandon Grotesque",Nunito,Arial,sans-serif!important;
 text-transform:none!important;letter-spacing:0!important}
html body main .student-rooms-contrast .door:is(:hover,:focus-visible){background:#f7eedb!important}
html body main .grid > section:is(.student-access-contrast,.student-campus-contrast){
 display:flex;flex-direction:column;min-height:210px;min-width:0;
 border:1px solid #b48b45!important;border-top:4px solid #b48b45!important;
 border-radius:7px!important;background:#243038!important;background-image:none!important;
 padding:23px!important;color:#fff8e9!important;box-shadow:0 8px 20px rgba(24,38,30,.12)!important}
html body main .grid > section:is(.student-access-contrast,.student-campus-contrast):not([data-student-section-color-override]) > h2{
 color:#fff8e9!important;-webkit-text-fill-color:#fff8e9!important;
 font:400 24px/1.35 Cinzel,Georgia,serif!important;margin:0 0 10px!important}
html body main .grid > section:is(.student-access-contrast,.student-campus-contrast):not([data-student-section-color-override]) > p{
 color:#eee3d0!important;-webkit-text-fill-color:#eee3d0!important;
 font:400 16px/1.55 "Brandon Grotesque",Nunito,Arial,sans-serif!important;margin:0 0 16px!important}
html body main .grid > section:is(.student-access-contrast,.student-campus-contrast) > .actions{
 margin-top:auto!important;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:10px}
html body main .grid > section:is(.student-access-contrast,.student-campus-contrast) > .actions > a.btn{
 min-height:44px!important;padding:10px 13px!important;border-radius:7px!important;
 border:1px solid #e2cb9e!important;background:#fff8e9!important;
 color:#243038!important;-webkit-text-fill-color:#243038!important;
 font:400 16px/1.35 "Brandon Grotesque",Nunito,Arial,sans-serif!important;
 text-transform:none!important;letter-spacing:0!important}
html body main .grid > section:is(.student-access-contrast,.student-campus-contrast) > .actions > a.btn.secondary{
 background:transparent!important;color:#fff8e9!important;-webkit-text-fill-color:#fff8e9!important;border-color:#c8b080!important}
/* Learner-owned custom section color (Background Studio) is authoritative.
   Do not leave cream text on an intentionally light panel. Auto-contrast is
   supplied by the studio, including the otherwise transparent secondary buttons. */
html body main .grid > section:is(.student-access-contrast,.student-campus-contrast)[data-student-section-color-override] > .actions > a.btn.secondary{
 background:transparent!important;
 color:var(--student-section-ink,#243038)!important;
 -webkit-text-fill-color:var(--student-section-ink,#243038)!important;
 border-color:var(--student-section-ink,#243038)!important;
}
html body main .grid > section:is(.student-access-contrast,.student-campus-contrast) > .actions > a.btn:is(:hover,:focus-visible){
 background:#ead6a4!important;color:#243038!important;-webkit-text-fill-color:#243038!important}
html body main .grid > section:is(.student-rooms-contrast,.student-access-contrast,.student-campus-contrast) a:focus-visible{
 outline:3px solid #e3c68a!important;outline-offset:3px!important}
@media(max-width:600px){
 html body main .grid > section:is(.student-rooms-contrast,.student-access-contrast,.student-campus-contrast){padding:18px!important}
}
@media(max-width:420px){
 html body main .student-rooms-contrast .door-grid{grid-template-columns:1fr!important}
 html body main .student-rooms-contrast .door-grid > a.door{min-height:0!important}
}

/* Student Rooms placement — portfolio-adjacent, Grades 09–12.
   Keep a single original .grid so the approved forest/charcoal panel rules
   still apply. The class has no effect until the shared placement script runs. */
html body main > .student-rooms-placement{
  box-sizing:border-box;
  width:min(calc(100% - 33px),1100px);
  max-width:1100px;
  margin:16px auto 24px;
  padding:0;
}
html body main > .student-rooms-placement > .student-rooms-placement-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  align-items:stretch;
  gap:12px;
}
html body main > .student-rooms-placement .student-rooms-contrast{grid-column:span 12}
html body main > .student-rooms-placement .student-access-contrast,
html body main > .student-rooms-placement .student-campus-contrast{grid-column:span 6}
@media(max-width:690px){
 html body main > .student-rooms-placement{
  width:calc(100% - 22px);
  margin:12px auto 20px;
 }
 html body main > .student-rooms-placement :is(.student-access-contrast,.student-campus-contrast){
  grid-column:span 12;
 }
}
/* Once all original cards have been relocated, suppress only the empty
   original grid's surrounding padding (not any other learning content). */
html body main > .section:has(> .shell.grid:empty){display:none}

/* Source-level verified vacated Student Rooms wrapper across Grades 09–12.
   Only a genuinely empty original section receives this marker. */
html:root:root body main > section.section[data-student-rooms-vacated="true"]{
 display:none!important;padding:0!important;margin:0!important;
 background:transparent!important;
}
