/* One bottom clearance for navigation, without a second blank page spacer. */
body.student-mode #view { padding-bottom:16px; }
.student-mode .student-v2 { min-height:0; }
.student-mode .site-footer { margin-top:12px; padding-top:18px; padding-bottom:calc(104px + env(safe-area-inset-bottom)); }
.footer-actions { gap:6px 12px; }
.footer-actions button { white-space:nowrap; }
.student-mode .resource-grid .resource-card { min-height:0; padding:20px; }
.resource-card-top { margin-bottom:12px; }
.resource-icon { width:44px; height:44px; border-radius:14px; }
.resource-icon svg { width:25px; height:25px; }
.student-mode .resource-grid .resource-description { margin:7px 0 12px; font-size:13px; }
.student-mode .resource-grid .resource-card>b { font-size:19px; }
.resource-card-foot i { width:26px; height:26px; font-size:18px; }
.knowledge-analysis { grid-column:1/-1; }
.knowledge-analysis p,.practice-sheet>p { font-size:13px; line-height:1.8; color:#53698b; }
.knowledge-summary { font-weight:600; color:#31425b!important; }
.knowledge-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; }
.knowledge-point { padding:18px; border:1px solid #d7dfea; border-radius:16px; background:#f3f6fa; min-width:0; }
.knowledge-title { display:flex; justify-content:space-between; gap:10px; font-size:12px; color:#566d90; }
.knowledge-point h3 { font-size:16px; line-height:1.7; margin:10px 0; overflow-wrap:anywhere; }
.knowledge-point>.secondary { margin-top:16px; font-size:12px; }
.sample-note { font-size:11px!important; line-height:1.8; color:#6981a5; }
.knowledge-evidence { font-size:12px; margin-top:12px; padding-top:12px; border-top:1px solid #d5ddea; }
.knowledge-evidence summary,.knowledge-more>summary { cursor:pointer; line-height:1.8; color:#3f4f68; }
.knowledge-evidence>div { white-space:pre-wrap; line-height:1.9; overflow-wrap:anywhere; }
.knowledge-more { margin-top:18px; }
.practice-sheet h2 { font-size:24px; line-height:1.6; }
.practice-sheet>small { color:#4e6383; }
.practice-sheet .primary { margin-top:24px; }
.practice-status { padding:24px 0; line-height:1.8; }
.about-sheet p { font-size:14px; line-height:1.9; color:#516787; }
.about-sheet h2 { margin-top:14px; }
@media(max-width:600px){
 .student-mode .resource-grid { gap:12px; }
 .student-mode .resource-grid .resource-card { display:grid; grid-template-columns:44px minmax(0,1fr) 26px; grid-template-rows:auto auto; gap:4px 14px; padding:18px; border-radius:22px; }
 .resource-card-top { display:contents; }
 .resource-icon { grid-column:1; grid-row:1/3; align-self:center; }
 .student-mode .resource-grid .resource-label { display:none; }
 .student-mode .resource-grid .resource-card>b { grid-column:2; grid-row:1; font-size:17px; }
 .student-mode .resource-grid .resource-description { grid-column:2; grid-row:2; margin:0; font-size:12px; }
 .resource-card-foot { grid-column:3; grid-row:1/3; align-self:center; margin:0; }
 .resource-card-foot small { display:none; }
 .knowledge-grid { grid-template-columns:1fr; }
 .student-mode .site-footer { gap:8px; }
 .site-footer .footer-actions { gap:4px; width:100%; }
 .site-footer .footer-actions button { padding:8px 6px; font-size:11px; }
}
@media(min-width:1024px){
 .student-mode .site-footer { padding-bottom:28px; }
 .cm-modal-card:has(.practice-sheet) { width:min(960px,100%); }
}
