/* School reuses preschool card geometry, palette and static illustration frames. */
.school-card-picture { width:100%; aspect-ratio:1.9; background:var(--sage,#DDEBDD); border-radius:20px; overflow:hidden; flex-shrink:0; }
.school-card-picture img { width:100%; height:100%; object-fit:contain; display:block; }
.subject-entry-grid article:nth-child(2) .school-card-picture,.subject-card:nth-child(2) .school-card-picture { background:#F4DECE; }
.subject-entry-grid article:nth-child(3) .school-card-picture,.subject-card:nth-child(3) .school-card-picture { background:#DDEBF5; }
.subject-entry-grid article,.subject-card,.route-card { min-width:0; display:flex; flex-direction:column; padding:20px; border:1px solid #D5DFDC; border-radius:24px; background:#fff; }
.subject-entry-grid article h4,.subject-card h2,.route-card h2 { min-height:2.7em; margin:18px 0 8px; line-height:1.35; }
.subject-entry-grid article>p,.subject-card>p:not(.note) { flex:1; }
.subject-entry-grid article>.button,.subject-card>.primary,.route-card>.primary { width:100%; min-height:52px; border-radius:16px; margin-top:auto; }
.school-route-picture { display:block; width:100%; height:112px; object-fit:contain; background:#E7EFE8; border-radius:20px; }
#school-quiz .school-task-picture { display:block; width:100%; height:112px; object-fit:contain; }
#school-quiz .answers { align-items:stretch; grid-auto-rows:1fr; }
#school-quiz .answer { border-radius:20px; min-height:112px; padding:16px 12px; align-self:stretch; box-sizing:border-box; }
#school-quiz .answer-choice { grid-template-rows:minmax(112px,1fr) auto; }
#school-quiz .answer-choice>.answer { align-self:stretch; }
:is(#school-quiz,#game-dialog) .answer.correct { border-width:2px; box-shadow:inset 0 0 0 1px #34733F; }
.subject-card .note { min-height:3.3em; }
@media (hover:hover) and (pointer:fine) { .subject-card:hover,.route-card:hover { transform:none; } }
@media (prefers-reduced-motion:no-preference) {
:is(#school-quiz,#game-dialog) .answer { transition:transform 120ms cubic-bezier(.23,1,.32,1); }
:is(#school-quiz,#game-dialog) .answer:active:not(:disabled) { transform:scale(.98); }
:is(#school-quiz,#game-dialog) .answer.correct { animation:school-answer-confirm 180ms cubic-bezier(.23,1,.32,1); }
@keyframes school-answer-confirm { from { opacity:.65; } to { opacity:1; } }
}
@media(max-width:560px) { .subject-entry-grid article,.subject-card,.route-card { padding:16px; } #school-quiz .answer { min-height:90px; padding:12px 8px; } #school-quiz .has-long-options .answer,#school-quiz .has-audio-options .answer { min-height:90px; } .school-route-picture,#school-quiz .school-task-picture { height:90px; } }

@media(max-width:560px) { #school-quiz .answer-choice { grid-template-rows:auto; } }
