/* The phone has its own viewport layout while sharing course and progress data. */
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
 html[data-learning-layout=mobile] .geo-session {height:var(--learning-mobile-height,100dvh);min-height:0;overflow:hidden;}
 html[data-learning-layout=mobile] .geo-session>.teaching-content,
 html[data-learning-layout=mobile] .geo-session>.quiz-content {min-height:0;overflow-y:auto;overscroll-behavior:contain;}
 html[data-learning-layout=mobile] .geo-session .crust-guided .crust-models {flex:0 1 auto;height:min(235px,calc(var(--learning-mobile-height,100dvh) * .30));min-height:130px;}
 html[data-learning-layout=mobile] .geo-session .crust-guided .crust-visual {min-height:0;}
 /* The phone renders the full 1200×720 source viewBox; keep both layers aligned. */
 html[data-learning-layout=mobile] .geo-session .crust-guided .crust-graphics {width:min(100%,calc(100cqh * 1.666667));aspect-ratio:1200 / 720;}
 html[data-learning-layout=mobile] .geo-session .crust-guided .crust-inline-label {left:74.58%;top:12%;z-index:2;max-width:85%;white-space:nowrap;text-align:center;font-size:14px;text-shadow:0 1px 3px #fff,0 -1px 3px #fff,1px 0 3px #fff;}
 html[data-learning-layout=mobile] .geo-session .crust-guided .crust-focus {z-index:1;pointer-events:none;}
 html[data-learning-layout=mobile] .geo-session .geo-footer {padding-bottom:max(12px,env(safe-area-inset-bottom));}
}

/* Keep feedback visible on short phones and when the reteach action is present. */
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
 html[data-learning-layout=mobile] .geo-session .footer-inner,
 html[data-learning-layout=mobile] .geo-session .footer-inner:has(>.hint-toggle) {
  display:flex;flex-flow:row wrap;align-items:center;gap:8px;
 }
 html[data-learning-layout=mobile] .geo-session .footer-inner>.feedback:not(:empty),
 html[data-learning-layout=mobile] .geo-session .footer-inner:has(>.hint-toggle)>.feedback:not(:empty) {
  display:flex;flex:1 0 100%;min-width:0;max-height:min(23dvh,150px);overflow-y:auto;overscroll-behavior:contain;
 }
 html[data-learning-layout=mobile] .geo-session .footer-inner>.primary {flex:1 1 auto;min-width:0;width:auto}
 html[data-learning-layout=mobile] .geo-session .footer-inner>.hint-toggle {flex:0 1 auto;white-space:normal;color:var(--topic-accent,#007d8e)}
}
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
 html[data-learning-layout=mobile] .geo-session .geo-footer.incorrect .footer-inner>.hint-toggle {color:#713e32}
}
