.subject-card.maths .subject-icon { background:#e1f2fc; color:#125787; }
[data-theme="dark"] .subject-card.maths .subject-icon { background:#1c3652; color:#c4e7ff; }
.maths-content .maths-actions { margin:0 0 24px; align-items:center; }
.maths-content .maths-actions .form-actions { margin:0; }
.maths-hero .hero-aside strong { display:block; }
.maths-unit-card .form-actions { margin-top:16px; }
.maths-reader .reader-toc { max-height:72vh; overflow:auto; }
.maths-reader .reader-toc button {
  background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer;
  border:0; border-radius:6px; width:100%; padding:7px 5px;
}
.maths-reader .reader-toc button:is(:hover,:focus-visible) { background:var(--surface-2, #efecfb); color:var(--accent, #3a29a8); }
.maths-reader .business-section, .maths-reader #maths-checklist { scroll-margin-top:110px; }
.maths-notes .panel { margin:18px 0; }
.maths-content .notice.maths-note { margin:14px 0; }
.maths-figure { max-width:700px; margin:18px 0; background:#fff; padding:8px; border:1px solid #d8ddea; border-radius:10px; }
.maths-figure img { display:block; width:100%; height:auto; }
.maths-equation { overflow-x:auto; margin:14px 0; }
.maths-equation img { display:block; max-width:none; }
[data-theme="dark"] .maths-equation img { filter:brightness(0) invert(1); }
.maths-content .table-wrap { overflow-x:auto; margin:12px 0; }
.maths-progress th { text-align:left; }
.maths-practice-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; }
.maths-practice-toolbar strong { display:block; margin-top:4px; }
.maths-practice-list { display:grid; gap:18px; }
.maths-practice-card textarea { width:100%; resize:vertical; }
.maths-solution { margin-top:16px; border-top:1px solid var(--line, #d8ddea); padding-top:14px; }
.maths-content summary { cursor:pointer; font-weight:650; }
.maths-content .section-status { flex-wrap:wrap; }
@media(max-width:720px) {
  .maths-reader .reader-toc { position:static; max-height:225px; }
  .maths-reader .business-section { scroll-margin-top:85px; }
}
@media(min-width:920px) {
  [data-subject-home="true"] .subject-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
