.maths-content { padding-block: .5rem 2rem; scroll-margin-top: 95px; }
.maths-collection-back { display: inline-block; margin-bottom: .6rem; font-size: .85rem; }
.workspace-subview:focus { outline: none; }
.maths-content h3 { font: 500 1.9rem/1.2 var(--serif); margin: .3rem 0 .65rem; }
.maths-intro { max-width: 78ch; color: #52665c; line-height: 1.7; }
.maths-note-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; margin-top: .9rem; }
#teaching-notes .maths-note-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.maths-note-card { display: flex; flex-direction: column; gap: .3rem; min-width: 0; border: 1px solid #cbdcd6; border-radius: 8px; padding: .8rem .9rem; color: #203a3a; background: #fff; text-decoration: none; }
.maths-note-card:hover,.maths-note-card:focus-visible { background: #edf5ee; border-color: #155b59; }
.maths-note-card:focus-visible { outline: 2px solid #155b59; outline-offset: 3px; }
.maths-note-card h4 { margin: 0; font-size: .96rem; line-height: 1.35; }
.maths-note-card p { margin: 0; color: #52665c; font-size: .84rem; line-height: 1.45; }
.maths-note-card span { font-size: .72rem; font-weight: 650; color: #155b59; margin-top: auto; padding-top: .2rem; }
.maths-reader-top { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; margin-block: .5rem 1.5rem; }
.maths-reader-top select { max-width: 350px; }
.maths-content select,.maths-content textarea { font: inherit; color: #203a3a; background: #fff; border: 1px solid #b9cdc2; border-radius: 6px; padding: .7rem; width: 100%; }
.maths-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 660px; margin-block: 1.25rem; }
.maths-filter label,.maths-section label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: .45rem; }
.maths-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.maths-include { display: flex; gap: .5rem; align-items: center; margin: .9rem 0 1.6rem; font-size: .8rem; color: #52665c; }
.maths-section { margin-block: 1.3rem; max-width: 85ch; }
.maths-section h4 { font-size: 1.07rem; margin: 0 0 .6rem; }
.maths-section p,.maths-section li,.maths-disclosure-body p,.maths-disclosure-body li { font-size: .94rem; line-height: 1.8; }
.maths-section ol,.maths-disclosure ul { padding-left: 1.4rem; }
.maths-section li { padding-left: .2rem; margin-block: .55rem; }
.maths-disclosure { border-block-start: 1px solid #d9e1dc; margin-block: .9rem; max-width: 85ch; }
.maths-disclosure summary { padding-block: 1rem; font-weight: 650; cursor: pointer; font-size: .9rem; }
.maths-disclosure-body { padding: 0 .2rem .75rem; }
.maths-disclosure h5 { font-size: .9rem; margin: 1rem 0 .35rem; }
.maths-worked { background: #f0f6f2; border: 1px solid #cbdcd6; border-radius: 10px; padding: 1.35rem; }
.maths-example-problem { font-weight: 600; }
.maths-teacher-cue { border-left: 3px solid #80a98d; padding-left: .8rem; }
.maths-small,.maths-status { font-size: .82rem; color: #52665c; line-height: 1.6; }
.maths-status:empty { display: none; }
.maths-status { padding: .7rem 1rem; background: #edf5ee; border-radius: 6px; position: sticky; top: 80px; z-index: 2; }
.maths-graph { margin: 1rem 0 0; background: #fff; border-radius: 8px; padding: .8rem; }
.maths-graph svg { display: block; width: 100%; max-width: 600px; height: auto; font: 11px Arial,sans-serif; fill: #234a45; }
.maths-graph figcaption { font-size: .75rem; color: #52665c; line-height: 1.5; }
@media(max-width:1000px){.maths-note-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.maths-reader-top {align-items:flex-start;flex-direction:column}.maths-reader-top select {max-width:none}.maths-filters {grid-template-columns:1fr}.maths-worked {padding:1rem}}
@media(max-width:600px){.maths-note-grid,#teaching-notes .maths-note-grid {grid-template-columns:1fr}}
