/* Single fine rules: one A4 sheet shared by Moonward and Dawnfire. */
.rp-document{color:#111;font:10pt/1.2 Arial,Helvetica,sans-serif;text-align:left;letter-spacing:normal}
.rp-document *,.rp-document *::before,.rp-document *::after{box-sizing:border-box}
.rp-page{width:210mm;height:297mm;padding:10mm 11mm;margin:0 auto;background:#fff;color:#111;box-shadow:0 3px 20px #0002;display:flex;flex-direction:column;gap:2mm;overflow:hidden}
.rp-header{flex:none;position:relative}.rp-title{font:bold 12pt/1.2 Georgia,serif;margin:0 0 2mm;color:#111;letter-spacing:0;overflow-wrap:anywhere}.rp-sheet-type{font:8pt Arial,sans-serif}
.rp-name-row{display:flex;gap:7mm;font:9pt/1.2 Arial,sans-serif;margin:0}
.rp-name-field,.rp-date-field{border-bottom:1px solid #999;height:5mm}.rp-name-field{flex:1}.rp-date-field{width:40mm}
.rp-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7mm;flex:none;min-height:0}
.rp-column{min-width:0}.rp-team-title{font:bold 11pt/1.2 Georgia,serif;margin:0 0 1mm;padding:1mm 0;color:#111}.rp-team-title{display:flex;align-items:center;gap:1.6mm}.rp-crest{width:4.2mm;height:4.2mm;flex:none;fill:none;stroke:#111;stroke-width:1.6;stroke-linejoin:round}
.rp-task{display:grid;grid-template-columns:5mm minmax(0,1fr) 3mm;gap:1.3mm;align-items:center;min-height:calc(22px + var(--rp-row-extra,0px));padding:2px 0;break-inside:avoid}
.rp-number{font:normal 7.5pt/1.1 Arial,sans-serif;color:#555;font-variant-numeric:tabular-nums}.rp-task-body{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:center;gap:2mm}
.rp-task-content{font:9.5pt/1.15 Arial,sans-serif;color:#111;overflow-wrap:anywhere}
.rp-answer-fields{min-width:0;display:flex;flex-direction:column;align-self:center}
.rp-answer-line{display:block;width:100%;height:18px;overflow:visible;align-self:center}
.rp-check{width:2.7mm;height:2.7mm;border:.5pt solid #888}
.rp-solution{display:block;font:bold 9pt/1.2 Arial,sans-serif;overflow-wrap:anywhere}
.rp-solutions .rp-task{grid-template-columns:5mm minmax(0,1fr);min-height:6.3mm}.rp-solutions .rp-task-body{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.rp-solutions .rp-task-content{font-size:8pt;color:#444}
.rp-sentences,.rp-reflection{flex:none;break-inside:avoid;padding-top:1mm}
.rp-sentences h2,.rp-reflection h2{font:bold 10pt/1.2 Georgia,serif;margin:0 0 1mm;letter-spacing:0;color:#111}
.rp-small{font:8pt/1.25 Arial,sans-serif;margin:0 0 1mm;color:#444}
.rp-sentence{display:grid;grid-template-columns:5mm 1fr;gap:1mm;margin-top:1mm;break-inside:avoid}.rp-sentence-number{font:8pt Arial,sans-serif;align-self:center;color:#555}
.rp-writing-lines{display:flex;flex-direction:column}.rp-writing-lines .rp-writing-rule{display:block;width:100%;height:5.5mm;overflow:visible}
.rp-footer{display:flex;justify-content:space-between;gap:5mm;font:6pt/1.2 Arial,sans-serif;color:#666;margin-top:auto;flex:none}
.rp-measure{position:fixed;left:-30000px;top:0;visibility:hidden;pointer-events:none}
@page{size:A4 portrait;margin:0}
@media print{html,body{margin:0!important;padding:0!important;background:#fff!important;height:auto!important;overflow:visible!important}body.rp-print-mode>:not(#printArea){display:none!important}#printArea{display:block!important;padding:0!important;margin:0!important;position:static!important;width:auto!important}#printArea[hidden]{display:none!important}.rp-document{margin:0;padding:0}.rp-page{margin:0;box-shadow:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.rp-frame-before,.rp-frame-after{display:block;font:8.5pt/1.2 Arial,Helvetica,sans-serif;color:#333;overflow-wrap:anywhere}.rp-completion .rp-answer-line{height:18px}.rp-gap-key{display:block;font:7.5pt/1.2 Arial,Helvetica,sans-serif;color:#555;margin-top:1px}

/* Small carved line accents stay quiet in black-and-white copies. */
.rp-rune{display:inline-block;flex:none;width:3.3mm;height:3.3mm;fill:none;stroke:#555;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.5mm;margin-right:1.5mm}
.rp-reflection h2,.rp-self-check h2{display:flex;align-items:center}
.rp-reflection{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);column-gap:6mm;align-items:start}
.rp-corrections,.rp-reflection>.rp-sentences{min-width:0}
.rp-reflection>.rp-sentences{padding-top:0}
.rp-correction-lines{display:flex;flex-direction:column}
.rp-correction-lines>.rp-writing-rule{display:block;width:100%;height:5.5mm;overflow:visible}
.rp-reflection .rp-sentence{grid-template-columns:4mm minmax(0,1fr)}
.rp-free-sentences{margin-top:1mm}
.rp-repeat-note{margin:1mm 0 0}
.rp-self-check{flex:none;break-inside:avoid;padding-top:2mm;border-top:.5pt solid #aaa;margin-top:auto}
.rp-self-check-heading{display:flex;align-items:center;justify-content:space-between;gap:4mm;margin-bottom:1.2mm}
.rp-self-check h2{font:bold 10pt/1.2 Georgia,serif;margin:0;color:#111}
.rp-score{font:bold 11pt/1.2 Georgia,serif;white-space:nowrap;letter-spacing:.02em}
.rp-bands{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3mm;margin-top:2mm;color:#111}
.rp-rank{display:flex;gap:1.5mm;align-items:center;padding:0 0 0 2.5mm;border-left:.5pt solid #bbb;min-width:0}
.rp-rank:first-child{padding-left:0;border-left:0}
.rp-rank>.rp-rune{width:4.5mm;height:5mm;margin:0;stroke:#444;stroke-width:1.2}
.rp-rank-label{display:flex;flex-direction:column;gap:.5mm;min-width:0}
.rp-rank strong{font:bold 8.5pt/1.15 Georgia,serif;white-space:nowrap}
.rp-rank small{font:8pt/1.2 Arial,sans-serif;color:#555}
.rp-self-check+.rp-footer{margin-top:0}
.rp-teacher-note{margin-top:2mm}

/* Roomy rows (fewer words): word and check box sit on the writing line, the space above is for handwriting. */
.rp-document[data-roomy='true'] .rp-task{align-items:end;padding-bottom:3px}
