/* v31-css - How dense a class's marks table is, the room-to-grow step above it, and the
   safety squeeze below it. */

/* 10 to 13 subjects: roomier rows, using the spare space below the notice */
.rs.rp.d1 table.rt td{font-size:11.5px;padding:3.5px 6px}.rs.rp.d1 table.rt th{padding:4px 5px}
/* 14 to 15 subjects: the same size as the roomy row, set to a tighter leading so the two
   extra rows come out of the leading rather than out of the type */
.rs.rp.d1b table.rt td{font-size:11.5px;padding:2px 6px;line-height:1.22}.rs.rp.d1b table.rt th{padding:3px 5px}
/* automatic safety squeeze so a report always stays on one page.
   The written boxes are the last thing to shrink, not the first: the remark and the
   notice are what a parent reads, while Class Performance and the Grade Key are lookups
   that can be scanned at a smaller size. f1 therefore draws the remark at 14px and the
   notice at 13px - a point above the card body - and pays for it out of the reference
   boxes (no vertical padding, 10px and 9.5px type), the band spacing in
   02-report-card.css, and the marks table's leading - never its type. f2 keeps the written
   boxes and the table's type exactly as f1 drew them and closes the rows further, which
   carries a remark or a notice one line longer than f1 can hold. f3 is the emergency rung:
   it hides the comparison chart and only then steps the text down. */
/* The marks table is the one block a parent scans row by row, so its rows are set to a
   tight leading instead of the card's 1.45: at 1.18 leading an 11.5px row is exactly as
   tall as the 10px row the old sheet drew, so the type grows and the page does not. */
.rs.rp.f1 table.rt td{padding-top:1.2px;padding-bottom:1.2px;font-size:11.5px;line-height:1.18}.rs.rp.f1 table.rt th{padding:3.5px 5px;font-size:11px;line-height:1.2}.rs.rp.f1 .tb{font-size:14px;line-height:1.25}.rs.rp.f1 .tb.nt{font-size:13px;line-height:1.25}.rs.rp.f1 .two{margin-bottom:4px}.rs.rp.f1 .bx h5{padding:2px 8px;margin-bottom:2px;font-size:10px}.rs.rp.f1 .bx table.kv td{padding-top:0;padding-bottom:0;font-size:10px;line-height:1.15}.rs.rp.f1 .bx table.kv th{padding-top:2px;padding-bottom:2px}.rs.rp.f1 .bx table.kv.key td{padding-top:0;padding-bottom:0;font-size:9.5px}.rs.rp.f1 .bx table.kv.perf td{padding-top:2px;padding-bottom:2px;font-size:11.5px}.rs.rp.f1 .bx table.kv.perf td:first-child{font-size:11.5px}.rs.rp.f1 .bx table.kv.perf .tsub{font-size:11.5px}
/* f2 keeps the marks table's type exactly and takes its room out of the leading instead:
   the rows close up to 1.12, so a long remark still fits at 14px and the table a parent
   reads is never the block that gave the type back. */
.rs.rp.f2 table.rt td{padding-top:.4px;padding-bottom:.4px;font-size:11.5px;line-height:1.12}.rs.rp.f2 .bx table.kv td{padding-top:0;padding-bottom:0;font-size:9.5px;line-height:1.1}.rs.rp.f2 .bx table.kv.key td{font-size:9px}.rs.rp.f2 .tb.nt{min-height:30px}.rs.rp.f2 .sb{height:38px}
.rs.rp.f3 table.rt td{padding-top:1px;padding-bottom:1px;font-size:10.5px;line-height:1.15}.rs.rp.f3 .tb{font-size:10px}.rs.rp.f3 .rule{margin:4px 0}
/* Sixteen subjects and up is past what one page holds at reading size, so that table
   keeps its own tight measure and every rung is spelled out for it; without this the
   rung's 11.5px would reach a seventeen-row table and cost a page. */
.rs.rp.d2 table.rt td,.rs.rp.d2.f1 table.rt td{font-size:10px;padding-top:1px;padding-bottom:1px;line-height:1.2}
.rs.rp.d2.f2 table.rt td{font-size:9.5px}
.rs.rp.d2.f3 table.rt td{font-size:9px}
.rs.rp.d2 table.rt th{font-size:9.5px;padding:2px 4px}
/* g1 / g2 - room to read. A short table, a learner sitting their first exam and a school
   with no notice between them leave the lower third of the sheet empty at base size, so
   the form a parent is most likely to hold is the smallest one the app can print. The
   grow rungs set the whole sheet a step larger - not just the marks table - and the
   fitter picks one only after measuring that the card still has room left, so a full
   card (a comparison chart, a notice and eleven to fifteen subjects) never takes one.
   g2 is the reading size for a nine-subject report with nothing else on the page; g1 is
   the middle step for a card that is nearly full. */
.rs.rp.g1 table.rt td{font-size:13.5px;padding:5px 7px}.rs.rp.g1 table.rt th{font-size:11px;padding:6px 6px}
.rs.rp.g1 .hd h1{font-size:21px}.rs.rp.g1 .hd .s2{font-size:14px}.rs.rp.g1 .hd .s3{font-size:11px}
.rs.rp.g1 .who{padding:6px 9px}.rs.rp.g1 .who .lb{font-size:8.5px}.rs.rp.g1 .who b{font-size:19px}
.rs.rp.g1 .alg{font-size:8.5px}
.rs.rp.g1 .bx h5{font-size:11.5px;padding:6px 8px}
/* The perf box's label column is a fixed 42% share, so a grown label wraps mid-phrase
   ("Subject needing / improvement") while its value stays on one line. The value is the
   content - it grows with the rung - and the label stays at reading-minor size in a wider
   column, which is the hierarchy the box already has at base. */
.rs.rp.g1 table.kv.perf td,.rs.rp.g1 table.kv.perf td b,.rs.rp.g1 table.kv.perf .tsub{font-size:12.5px}
.rs.rp.g1 table.kv.perf td:first-child{font-size:11px;width:48%}
.rs.rp.g1 table.kv.key td{font-size:11.5px}.rs.rp.g1 table.kv.key th{font-size:11px}
.rs.rp.g1 h4.sh{font-size:12.5px}
.rs.rp.g1 .tb{font-size:15px;padding:7px 10px}.rs.rp.g1 .tb.nt{font-size:14px}
.rs.rp.g1 .xcmp{--xh:72px}.rs.rp.g1 .xcmp[data-n="3"]{--xh:60px}.rs.rp.g1 .xcmp[data-n="4"]{--xh:50px}
.rs.rp.g1 .sig .sn{font-size:12.5px}.rs.rp.g1 .sig .sl{font-size:10.5px}.rs.rp.g1 .ft{font-size:8px}
.rs.rp.g2 table.rt td{font-size:15px;padding:5px 8px}.rs.rp.g2 table.rt th{font-size:12px;padding:6px 6px}
.rs.rp.g2 .hd h1{font-size:22px}.rs.rp.g2 .hd .s2{font-size:15px}.rs.rp.g2 .hd .s3{font-size:11.5px}
.rs.rp.g2 .who{padding:7px 10px}.rs.rp.g2 .who .lb{font-size:9px}.rs.rp.g2 .who b{font-size:20px}
.rs.rp.g2 .alg{font-size:9px}
.rs.rp.g2 .bx h5{font-size:12px;padding:7px 9px}
.rs.rp.g2 table.kv.perf td,.rs.rp.g2 table.kv.perf td b,.rs.rp.g2 table.kv.perf .tsub{font-size:13.5px}
.rs.rp.g2 table.kv.perf td:first-child{font-size:11px;width:48%}
.rs.rp.g2 table.kv.key td{font-size:12.5px}.rs.rp.g2 table.kv.key th{font-size:12px}
.rs.rp.g2 h4.sh{font-size:13.5px}
.rs.rp.g2 .tb{font-size:16px;padding:8px 11px}.rs.rp.g2 .tb.nt{font-size:15px}
.rs.rp.g2 .xcmp{--xh:78px}.rs.rp.g2 .xcmp[data-n="3"]{--xh:64px}.rs.rp.g2 .xcmp[data-n="4"]{--xh:54px}
.rs.rp.g2 .sig .sn{font-size:13px}.rs.rp.g2 .sig .sl{font-size:11px}.rs.rp.g2 .ft{font-size:8.5px}
