/* Quran classroom v88: same reader/Urdu split behavior as Guest Reader. */
.ac-studio-shell .ac-quran-reading-split {
  display:flex;flex-direction:row;gap:12px;align-items:stretch;
  min-width:0;width:100%;max-width:100%;
}
.ac-studio-shell .ac-quran-reading-split > #ac-book-body {
  flex:1 1 100%;min-width:0;max-width:100%;width:100%;
}
.ac-studio-shell .ac-quran-reading-split > #ac-urdu-panel[hidden] {
  display:none!important;
}
@media(min-width:1024px) {
 .ac-studio-shell .ac-quran-reading-split:has(> #ac-urdu-panel:not([hidden])) > #ac-book-body,
 .ac-studio-shell .ac-quran-reading-split:has(> #ac-urdu-panel:not([hidden])) > #ac-urdu-panel {
   flex:1 1 calc(50% - 6px);width:calc(50% - 6px);max-width:calc(50% - 6px);
   min-width:0;box-sizing:border-box;
 }
 .ac-studio-shell .ac-quran-reading-split > #ac-urdu-panel:not([hidden]) {
   margin:0!important;max-height:min(85vh,980px)!important;
   overflow:auto!important;
 }
 html.ac-studio-fullscreen .ac-studio-shell .ac-quran-reading-split > #ac-urdu-panel:not([hidden]) {
   position:static!important;inset:auto!important;
   left:auto!important;bottom:auto!important;transform:none!important;
   width:calc(50% - 6px)!important;max-width:calc(50% - 6px)!important;
   max-height:min(85vh,980px)!important;z-index:auto!important;
   margin:0!important;
 }
}
@media(max-width:1023px){
 .ac-studio-shell .ac-quran-reading-split {
   flex-direction:column;gap:8px;
 }
 .ac-studio-shell .ac-quran-reading-split > #ac-book-body,
 .ac-studio-shell .ac-quran-reading-split > #ac-urdu-panel:not([hidden]) {
   width:100%!important;max-width:100%!important;min-width:0!important;
   flex:0 0 auto;
 }
 .ac-studio-shell .ac-quran-reading-split > #ac-urdu-panel:not([hidden]) {
   max-height:min(45vh,520px)!important;
   margin:0!important;
 }
 html.ac-studio-fullscreen .ac-studio-shell .ac-quran-reading-split > #ac-urdu-panel:not([hidden]) {
   position:static!important;inset:auto!important;transform:none!important;
   left:auto!important;bottom:auto!important;max-height:min(45vh,520px)!important;
 }
}
