/* Shared reading and exercise surfaces; incumbent Wiki-AI palette. */
.wp-content { max-width: none; }
.intro { max-width: 75ch; margin-top: 16px !important; }
.terms { list-style: none; padding: 0 !important; margin: 20px 0 !important; }
.term { min-width: 0; background: var(--wp-card); border: 1px solid var(--wp-borderLight); border-inline-start-color: var(--wp-link); border-radius: 12px; padding: 20px 24px; margin: 0 0 18px !important; }
.term h2, legend { font-size: 23px; line-height: 1.45; font-weight: 700; }
.term h2 { margin: 0 0 12px; }
.term h3 { font-size: 16px; margin: 14px 0 4px; }
.term p { margin: 0 0 10px; }
.term ul { margin-bottom: 10px; }
.term .reading { margin-bottom: 0; font-size: 14px; }
.number-badge { display: inline-flex; justify-content: center; align-items: center; width: 34px; height: 34px; margin-inline-end: 6px; border-radius: 50%; background: var(--wp-link); color: var(--wp-card); font: 700 16px 'Heebo',sans-serif; vertical-align: middle; white-space: nowrap; font-variant-numeric: tabular-nums; }
.example { padding: 8px 12px; background: var(--wp-badge); color: var(--wp-ink); border-radius: 4px; }
.check-title { display: flex; gap: 12px; align-items: baseline; cursor: pointer; }
input { accent-color: var(--wp-link); }
input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; }
legend { padding: 0 8px; max-width: 100%; font-family: 'Frank Ruhl Libre','Heebo',serif; }
fieldset.term { margin-top: 24px !important; }
.options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.option { display: flex; gap: 10px; align-items: baseline; padding: 12px; border: 1px solid var(--wp-border); border-radius: 8px; cursor: pointer; line-height: 1.6; }
.option input { flex-shrink: 0; }
.option:hover, .option:has(input:checked) { background: var(--wp-badge); border-color: var(--wp-link); }
.option:has(input:focus-visible) { outline: 2px solid var(--wp-link); outline-offset: 3px; }
.option:has(input:disabled) { cursor: default; }
button { font: inherit; background: var(--wp-card); color: var(--wp-link); border: 1px solid var(--wp-border); border-radius: 6px; padding: 10px 18px; cursor: pointer; }
button:hover { background: var(--wp-badge); }
button:disabled { color: var(--wp-inkSoft); cursor: default; }
button:focus-visible { outline: 2px solid var(--wp-link); outline-offset: 3px; }
.question-actions { margin-top: 12px; }
.feedback:empty { display: none; }
.feedback { margin-top: 12px; padding: 12px 16px; border-radius: 6px; }
.feedback p { margin: 4px 0 0; }
.feedback[data-result=correct] { background: #edf8f0; color: #16582c; }
.feedback[data-result=incorrect] { background: #fff1ef; color: #922b21; }
.feedback a { color: inherit; }
.answer { margin-top: 12px; }
.score-card { padding: 20px 24px; background: var(--wp-badge); border-radius: 12px; margin-top: 24px; }
.score-card h2 { margin: 0 0 8px; font-size: 24px; }
#quiz-score { font-size: 20px; font-weight: 700; }
.kit-links { margin-top: 20px !important; }
[hidden] { display: none !important; }
a { overflow-wrap: anywhere; }
@media (max-width: 600px) {
 .wp-wrap { padding: 16px 16px 32px; }
 .wp-title { font-size: 28px; }
 .term { padding: 16px; }
 .term h2, legend { font-size: 21px; }
 .options { grid-template-columns: minmax(0,1fr); }
 .option { padding: 10px; }
}
@page { size: A4; margin: 12mm; }
@media print {
 :root, :root[data-theme], :root:not([data-theme="light"]) { --wp-bg:#fff; --wp-card:#fff; --wp-ink:#000; --wp-inkSoft:#000; --wp-link:#000; --wp-border:#777; --wp-borderLight:#aaa; --wp-badge:#fff; }
 html, body { min-height: 0; background: #fff !important; color: #000 !important; }
 body { font-family: Arial,sans-serif; }
 header, nav, footer, button, .wiki-skip, .screen-only, .sh-box, .feedback, #a11yWidgetPanel, #a11yWidgetStatus { display: none !important; }
 .wp-wrap { max-width: none; padding: 0; }
 .wp-title { font: bold 18pt Arial,sans-serif; padding-bottom: 2mm; margin: 0; }
 .wp-content { font-size: 9pt; line-height: 1.35; }
 .intro { margin: 2mm 0 !important; }
 .terms { margin: 2mm 0 !important; }
 .term, fieldset.term { break-inside: avoid; page-break-inside: avoid; border: 0; border-bottom: 1px solid #aaa; border-radius: 0; padding: 2mm 0; margin: 0 0 1mm !important; }
 .term h2, legend { font: bold 11pt Arial,sans-serif; margin: 0 0 1mm; }
 .number-badge { width: auto; height: auto; background: transparent; color: #000; font: bold 11pt Arial,sans-serif; }
 .term h3 { font-size: 9pt; margin: 1mm 0 0; }
 .term p, .term ul { margin: 0 0 1mm; }
 .term li { margin-bottom: 0; }
 .example { padding: 0; }
 .term .reading { font-size: 8pt; }
 .options { gap: 1mm 3mm; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .option { border: 0; padding: 0; line-height: 1.3; background: #fff !important; }
 .question-actions { display: none; }
 details.answer, details.answer[hidden], details.answer > p { display: block !important; }
 .answer { margin-top: 1mm; }
 .answer summary { display: none; }
 input[type=checkbox] { appearance: none; width: 3mm; height: 3mm; border: 1px solid #000; background: #fff; }
 .check-title { gap: 2mm; }
 a { color: #000 !important; text-decoration: none; }
}
.score-card.completed { border: 1px solid var(--wp-link); }
@media print {
 details.answer::details-content { content-visibility: visible !important; display: block !important; }
}
