/* V53 Academy's built-in Rubik LESSON only; no Sudoku strategy changes. */
#academyRubikReader:not([hidden]) .academy-rubik-reader-content .academy-rubik-two-pane{
 display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);
 align-items:start;gap:clamp(14px,2vw,26px);width:100%;min-width:0}
#academyRubikReader .academy-rubik-explanation,#academyRubikReader .academy-rubik-application{
 min-width:0;max-width:100%}
#academyRubikReader .academy-rubik-explanation>.rubik-card{
 margin:0 0 14px;padding:clamp(14px,1.5vw,20px);
 border:1px solid #c9dcee;border-radius:14px;min-height:0;
 background:#fff}
#academyRubikReader .academy-rubik-application{
 border:1px solid #bdd8ec;border-radius:16px;background:#f2f9ff;
 padding:clamp(12px,1.4vw,19px)}
#academyRubikReader .academy-rubik-application>h3{margin:0 0 9px;
 font-size:clamp(16px,1.4vw,21px);color:#1d5587;line-height:1.4}
#academyRubikReader .academy-rubik-application-note{font-size:12px;line-height:1.8;
 margin:0 0 12px;color:#456b8c;background:#e5f2ff;
 padding:8px 12px;border-inline-start:3px solid #4c8bc8;border-radius:8px}
#academyRubikReader .academy-rubik-alg-pick{display:flex;flex-wrap:wrap;gap:8px;margin:9px 0}
#academyRubikReader .academy-rubik-alg-pick button{
 display:flex;flex-direction:column;align-items:flex-start;gap:3px;
 border:1px solid #b4d1e8;background:#fff;border-radius:10px;padding:9px 13px;
 color:#1c5584;font:750 12px/1.4 system-ui;cursor:pointer;min-width:0}
#academyRubikReader .academy-rubik-alg-pick button[aria-pressed=true]{
 border-color:#408cce;background:#dbedff}
#academyRubikReader .academy-rubik-alg-pick button code{
 font-size:11px;white-space:normal;overflow-wrap:anywhere;direction:ltr}
#academyRubikReader .academy-rubik-alg-stage>.rubik-algorithm{
 margin:0!important;max-width:100%;background:#fff;
 border:1px solid #d1e1ef;border-radius:12px;
 padding:clamp(9px,1.25vw,14px)!important}
#academyRubikReader .academy-rubik-alg-stage .rubik-dual-view{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 gap:9px;align-items:start;max-width:100%}
#academyRubikReader .academy-rubik-alg-stage .rubik-net-view,
#academyRubikReader .academy-rubik-alg-stage .rubik-full-view{
 min-width:0;padding:8px}
#academyRubikReader .academy-rubik-alg-stage .rubik-cube-3d{
 display:block;width:100%;max-width:100%;height:auto}
#academyRubikReader .academy-rubik-alg-stage .rubik-controls{display:flex;
 flex-wrap:wrap;justify-content:center;gap:5px}
#academyRubikReader .academy-rubik-reader-actions{margin-top:16px}
@media(max-width:1120px){
 #academyRubikReader:not([hidden]) .academy-rubik-reader-content .academy-rubik-two-pane{
  grid-template-columns:minmax(0,1fr)}
}
@media(max-width:650px){
 #academyRubikReader .academy-rubik-alg-stage .rubik-dual-view{
  grid-template-columns:minmax(0,1fr)}
 #academyRubikReader .academy-rubik-alg-pick button{flex:1 1 auto}
}
/* Only for the Rubik tab: restore the academy study area's modest-width container. */
@media(min-width:1101px){
 body:has(#academyRubikReader:not([hidden])) main.wrap{
  max-width:1700px!important;width:min(calc(100% - 64px),1700px)!important}
}
