:root { color-scheme: light; --ink: #182235; --muted: #485970; --accent: #4249a6; --line: #dce2f2; }
* { box-sizing: border-box; }
body { width: min(100% - 32px, 720px); margin: 0 auto; padding: 20px 0 40px; background: #f7f8fc; color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: .16em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.12; letter-spacing: -.025em; margin: 18px 0 12px; }
h2 { font-size: 1.2rem; margin: 0 0 10px; }
.intro, .source { color: var(--muted); }
.reference, fieldset { margin: 0 0 16px; padding: 12px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.reference p { margin: 0 0 12px; }
.reference p:last-child { margin: 12px 0 0; }
table { width: 100%; border-collapse: collapse; }
caption { font-weight: 700; text-align: left; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; }
thead th { background: #eeefff; }
fieldset { min-width: 0; }
legend { max-width: 100%; padding: 0 5px; font-weight: 700; overflow-wrap: break-word; }
label { display: block; margin-bottom: 4px; }
input { width: min(100%, 16rem); min-height: 44px; padding: 8px 10px; border: 1px solid #8791a8; border-radius: 8px; color: inherit; font: inherit; }
input[aria-invalid="true"] { border-color: #9c2436; }
summary { padding: 8px 0; color: var(--accent); font-weight: 650; cursor: pointer; }
details p { margin: 4px 0 0; }
.feedback { margin: 8px 0 0; font-weight: 700; }
.feedback:empty, #practice-score:empty { display: none; }
.feedback[data-correct="true"] { color: #19664a; }
.feedback[data-correct="false"] { color: #9c2436; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; }
[hidden] { display: none; }
.button-secondary { background: #fff; color: var(--accent); }
#practice-score { font-size: 1.2rem; font-weight: 750; }
.continue { margin-top: 24px; padding: 16px; border-radius: 14px; background: #eeefff; }
.continue-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.source { font-size: .9rem; }
