/* SpecPoint — end-of-section tests and teacher mark schemes (print first) */

.tp { padding: 28px 0 72px; }
.tp .wrap { max-width: 860px; }
.tp-head { border: 2px solid var(--ink); border-radius: 12px; padding: 18px 20px; display: grid; gap: 10px; background: #fff; margin-bottom: 18px; }
.tp-head h1 { font-size: clamp(1.6rem, 5.5vw, 2.3rem); }
.tp-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-fill { display: grid; gap: 10px; margin-top: 4px; }
.tp-fill div { display: flex; gap: 10px; align-items: flex-end; }
.tp-fill span { white-space: nowrap; font-weight: 600; }
.tp-fill i { flex: 1; border-bottom: 1.5px dotted var(--ink-3); height: 1.2em; }
.tp-instr { background: var(--paper-2); border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; }
.tp-instr ul { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }

.tq { border-top: 2px solid var(--ink); padding: 18px 0 8px; }
.tq > h2 { font-size: 1.3rem; margin-bottom: 8px; }
.tq-stem { margin-bottom: 12px; }
.tpart { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 4px 6px; margin: 14px 0; }
.tpart-label { font-weight: 700; }
.tpart-body { display: grid; gap: 8px; }
.marks { justify-self: end; font-weight: 600; white-space: nowrap; }
.lines { display: grid; gap: 0; }
.lines i { display: block; height: 2.1em; border-bottom: 1.5px dotted var(--ink-3); }
.ans-line { display: flex; gap: 8px; align-items: flex-end; justify-content: flex-end; }
.ans-line i { width: 180px; border-bottom: 1.5px dotted var(--ink-3); height: 1.4em; }
.mcq { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mcq li { display: flex; gap: 10px; align-items: baseline; }
.mcq .box { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 3px; transform: translateY(3px); }
.mcq b { width: 1.1em; }
table.data { border-collapse: collapse; margin: 6px 0; font-size: 0.95rem; }
table.data th, table.data td { border: 1px solid var(--line); padding: 6px 10px; text-align: center; }
table.data th { background: var(--paper-2); }
.qtotal { text-align: right; font-weight: 700; margin-top: 6px; }
.tp-total { border-top: 3px double var(--ink); margin-top: 16px; padding-top: 12px; text-align: right; font-weight: 700; font-size: 1.1rem; }

/* Mark scheme */
.ms-banner { background: var(--red-tint); border: 1px solid #e8b9ad; border-radius: 10px; padding: 12px 16px; color: #7a2617; font-weight: 600; margin-bottom: 18px; }
.ms-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 0.95rem; }
.ms-table th, .ms-table td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.ms-table th { background: var(--paper-2); }
.ms-table td:first-child { white-space: nowrap; font-weight: 700; }
.ms-table td:last-child { white-space: nowrap; text-align: center; }
.ms-table ol, .ms-table ul { margin: 0; padding-left: 1.1em; display: grid; gap: 3px; }
.ms-wrap { overflow-x: auto; }

@media print {
  .site-header, .site-footer, .lp-tools, .lp-note, .lp-crumb, .lp-end { display: none !important; }
  body { background: #fff; font-size: 11.5pt; }
  .tq { break-inside: avoid-page; }
  .tpart { break-inside: avoid; }
}

.tpart-body, .tpart-body > * { min-width: 0; }
.tpart-body { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 480px) { table.data { font-size: 0.82rem; } table.data th, table.data td { padding: 5px 6px; } }
.mcq-table .box { display: inline-block; width: 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 3px; vertical-align: -3px; }
.mcq-table td:first-child { white-space: nowrap; }
