/* Student tablet layout, approved option B. Explanations never imitate choices. */
.student #expedition.space-active:has(.foundation-story){grid-template-rows:auto minmax(0,1fr)}
.student .space-active:has(.foundation-story)>.activity-heading,.student .space-active:has(.foundation-story)>.footer{display:none}
.student .space-active .workspace:has(>.foundation-story),.student .space-active .workspace:has(>.foundation-summary){grid-template-columns:minmax(0,1fr)}
.foundation-story{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:20px;min-height:0;height:100%}
.foundation-situation{margin:0;display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:0;gap:20px;background:#ede4f6;border-radius:24px;padding:16px}
.foundation-art{display:block;position:relative;isolation:isolate;width:100%;aspect-ratio:3/2;overflow:hidden;border-radius:16px;flex:none}
.foundation-art>img{position:absolute;width:200%;height:300%;max-width:none}
.foundation-situation figcaption{padding:12px 8px;line-height:1.35}
.foundation-situation figcaption>span{font-size:22px;color:#74528f}
.foundation-situation p{font-size:30px;font-weight:700;margin:12px 0 0;word-break:keep-all}
.foundation-decision{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;min-height:0}
.foundation-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:center;min-height:0}
.foundation-options>.foundation-choice{display:flex;flex-direction:column;gap:16px;padding:10px 10px 18px;margin:0;min-width:0;min-height:0;background:#fff;border:3px solid #b19ac9;box-shadow:0 5px 0 #d9cbe8;border-radius:22px;color:#38234d;text-align:left;overflow:hidden}
.foundation-choice>span:last-child{font-size:28px;line-height:1.3;font-weight:800;word-break:keep-all;padding:0 6px}
.foundation-choice:disabled{opacity:1;border-color:#adbbac;background:#f4faf4;color:#38234d}
.foundation-choice:hover:not(:disabled){border-color:#7850a8;background:#fbf6ff}
.foundation-choice:focus-visible{outline:4px solid #c38b22;outline-offset:2px}
.foundation-response{display:flex;align-items:center;gap:12px;min-height:0;line-height:1.35}
.foundation-response:has(p:empty){display:none}
.foundation-response p{font-size:28px;margin:0;flex:1;word-break:keep-all}
.foundation-response .primary{font-size:24px;min-height:60px;padding:10px 16px;max-width:48%;flex:none}
.foundation-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:16px;min-height:0}
.foundation-summary article{padding:12px;background:#fffaf0;border-radius:20px;min-width:0}
.foundation-summary strong{display:block;font-size:28px;line-height:1.3;margin:16px 4px;word-break:keep-all}
@media(orientation:portrait){.foundation-story{grid-template-columns:1fr;grid-template-rows:minmax(0,.85fr) minmax(0,1.15fr);gap:14px}.foundation-situation{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:center;gap:12px;padding:12px}.foundation-situation p{font-size:28px}.foundation-response{align-items:stretch;flex-direction:column}.foundation-response .primary{max-width:none;align-self:flex-end}.foundation-summary{grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(0,1fr))}.foundation-summary article{display:grid;grid-template-columns:40% minmax(0,1fr);align-items:center;gap:16px}}
/* B family: real square atlas panels, readable source and one visible question. */
.student .space-active .workspace:has(>.decision-flow),.student .space-active .workspace:has(>.decision-complete){grid-template-columns:minmax(0,1fr)}
.student .space-active:has(.decision-ready)>.footer{display:flex}
.student #expedition.space-active:has(.decision-ready){grid-template-rows:auto minmax(0,1fr) 76px}
.student .space-active:has(.decision-ready)>.footer .feedback,.student .space-active:has(.decision-ready)>.footer .feedback-dismiss{display:none}
.student .space-active .decision-choice>.card-art,.student .space-active .decision-complete article>.card-art{width:100%;height:auto;aspect-ratio:1;max-width:none;max-height:none;border-radius:14px}
.student .space-active .decision-choice>.card-art img{width:400%;height:300%;max-width:none}
.student .space-active .decision-complete article>.card-art{max-height:300px;max-width:300px;margin:auto}
.decision-context-image{display:block;width:100%;max-height:280px;min-height:0;object-fit:contain;border-radius:16px}
.decision-flow .foundation-situation{gap:12px}
.decision-flow .foundation-situation p{font-size:28px;white-space:pre-line}
.decision-flow .foundation-response p{font-size:28px;line-height:1.3}
.decision-flow .decision-explanation{align-self:center;flex-direction:column;align-items:flex-start;gap:24px}
.decision-explanation .primary{max-width:100%;font-size:28px}
.decision-source{min-height:0;width:100%;padding:0;background:transparent;display:flex;flex-direction:column;gap:12px}
.decision-source .decision-context-image{max-height:180px}
.decision-meta{font-size:22px;color:#74528f;line-height:1.3}
.decision-source blockquote{font-size:28px;font-weight:700;line-height:1.4;white-space:pre-line;margin:0;word-break:keep-all}
.decision-flow .foundation-situation figcaption:empty{display:none}
.decision-flow .foundation-options{align-content:center}
.decision-flow .foundation-response:has(p:empty):has(button){display:flex}
@media(orientation:portrait){.decision-source .decision-context-image{display:none}.decision-flow .decision-source{gap:6px}.decision-source blockquote{font-size:28px}.decision-flow .decision-context-image{max-height:240px}.student .space-active .decision-complete article>.card-art{max-height:210px;max-width:210px}.decision-flow .foundation-situation:has(.decision-source){display:flex}.decision-flow .foundation-situation p{margin-top:0}.decision-flow .decision-explanation{gap:16px}}
.decision-flow .foundation-response p{white-space:pre-line}
.decision-flow .foundation-situation>.card-art{width:min(100%,320px);height:auto;aspect-ratio:1;margin:auto;max-height:none}
.decision-single .foundation-options{grid-template-columns:1fr;justify-items:center}
.decision-single .decision-choice{max-width:360px;width:100%}
.decision-triple{grid-template-columns:1fr;grid-template-rows:110px minmax(0,1fr);gap:14px}
.decision-triple .foundation-situation{display:grid;grid-template-columns:160px minmax(0,1fr);padding:8px 14px}
.decision-triple .decision-context-image{height:94px;max-height:94px}
.decision-triple .foundation-situation figcaption{padding:0}
.decision-triple .foundation-situation p{margin:0}
.decision-triple .foundation-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.decision-triple .decision-choice>.card-art{max-width:270px;margin:auto}
@media(orientation:portrait){.decision-triple{grid-template-rows:130px minmax(0,1fr)}.decision-triple .foundation-options{grid-template-columns:repeat(3,minmax(0,1fr))}.decision-triple .foundation-situation{grid-template-columns:170px minmax(0,1fr)}.decision-triple .decision-context-image{height:114px;max-height:114px}.decision-triple .foundation-choice>span:last-child{font-size:28px}}
.decision-choice.selected{border-color:#7850a8;box-shadow:0 5px 0 #bda4d4;background:#f4ecff}
.decision-flow .decision-page{font-size:24px;min-height:56px;white-space:normal;line-height:1.3;margin-left:auto}
.decision-flow .foundation-options:has(>.decision-choice:only-child){grid-template-columns:1fr;justify-items:center}
.decision-flow .foundation-options>.decision-choice:only-child{max-width:360px}
/* Model controls remain manipulatives; read-only route status is a flat rail. */
.student .space-active .route-board .route-strip{background:#fffaf0;border-radius:16px;padding:8px;gap:8px}
.student .space-active .route-board .route-segment{border:0;border-right:1px solid #d8cbe4;background:transparent;border-radius:0;box-shadow:none}
.student .space-active .route-board .route-segment:last-child{border:0}
.student .space-active .sharing-board .person-card>.card-art{width:min(100%,220px);height:auto;aspect-ratio:1}
.student .space-active .sharing-board .person-card{gap:6px;padding:10px}
.student .space-active .sharing-board .person-card h2,.student .space-active .sharing-board .person-card p{margin:0}
.decision-flow .foundation-options{container-type:size}
.student .space-active .decision-choice>.card-art{width:min(100%,max(240px,calc(100cqh - 140px)));margin-inline:auto}
.decision-flow .decision-explanation{grid-row:1/-1}
.student .space-active .decision-complete:has(article:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:12px}
@media(orientation:portrait){.student .space-active .decision-complete:has(article:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.decision-complete:has(article:nth-child(4)) article{display:flex;flex-direction:column;justify-content:center;gap:4px}.decision-complete:has(article:nth-child(4)) strong{margin:4px;font-size:28px}.student .space-active .decision-complete:has(article:nth-child(4)) article>.card-art{width:min(100%,200px);height:auto;max-height:200px}}
.student .space-active .air-scale{font-size:28px;line-height:1.3}
.student .space-active .air-tools .air-reading{min-height:100px;padding:12px}
.student .space-active .decision-flow .decision-context-art{height:auto;max-height:280px;flex:none;margin-inline:auto}
.decision-context-art>img{width:400%;height:300%;max-width:none}
