/* Shared by the interactive practice pages (number bonds, angles, area, fractions, percentage, bar model, reading,
   sentence builder, colour mixing, money). Each page sets its own colours on :root:
   --hero, --accent, --accent-soft, --btn, --btn-hover, --related, --related-line
   and keeps in its own <style> only what is different. Made from the rules all ten pages had in common. */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #2c3e50; background: #f8f9fa; }
header { background: #1B2A4A; color: white; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
header a { color: #C9A84C; text-decoration: none; font-size: 14px; }
header a:hover { text-decoration: underline; }
.hero { background: var(--hero); color: white; text-align: center; padding: 44px 16px 36px; }
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }
#introLede { max-width: 900px; margin: 28px auto 0; padding: 0 16px; }
#introLede p { font-size: 16px; line-height: 1.75; color: #444; margin-bottom: 10px; }
.step-title { font-size: 19px; color: #1B2A4A; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.step-num { background: var(--accent); color: white; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.hint { font-size: 13px; color: #666; line-height: 1.5; }
.msg { font-size: 14px; color: #b9770e; min-height: 18px; margin-top: 6px; }
.btn { font: inherit; font-size: 15px; font-weight: 600; border: none; border-radius: 8px; padding: 10px 16px; cursor: pointer; background: var(--btn); color: #1B2A4A; }
.btn:hover { background: var(--btn-hover); }
.btn.go { background: #0C7B5F; color: white; }
.btn.go:hover { background: #0a6a52; }
.btn.big { font-size: 19px; padding: 14px 30px; }
.btn[hidden] { display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
select { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid #cdd5df; border-radius: 8px; background: white; color: #2c3e50; }
.levels button[aria-checked="true"] { border-color: var(--accent); background: var(--accent); color: white; }
#levelNote { margin-bottom: 18px; }
.acts button { font: inherit; text-align: left; border: 2px solid #cdd5df; border-radius: 12px; background: white; padding: 12px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; color: #2c3e50; }
.acts button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.acts .ico { font-size: 26px; line-height: 1; }
.acts strong { display: block; font-size: 15px; color: #1B2A4A; }
.acts small { font-size: 13px; color: #666; line-height: 1.4; }
#stage[hidden], #results[hidden] { display: none; }
#stage { background: #1B2A4A; border-radius: 14px; padding: 16px; margin: 24px 0 8px; display: flex; flex-direction: column; gap: 12px; }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; color: white; font-size: 15px; }
.stage-top .btn { padding: 7px 12px; font-size: 14px; }
.fb { width: 100%; border-radius: 12px; padding: 12px 14px; font-size: 17px; line-height: 1.7; }
.fb[hidden] { display: none; }
.fb.ok { background: #e3f6ee; color: #0a5c47; }
.fb.bad { background: #fdecea; color: #922; }
.fb.nudge { background: #fef5e7; color: #8a5a00; }
.fb .why { color: #2c3e50; font-size: 16px; margin-top: 6px; }
#results { background: white; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 24px; margin: 24px 0 8px; text-align: center; }
#results h2 { font-size: 26px; color: #1B2A4A; margin-bottom: 8px; }
.score { font-size: 46px; font-weight: 800; color: #0C7B5F; margin: 6px 0; }
.stats { color: #555; font-size: 15px; margin-bottom: 16px; }
#results .btn-row { justify-content: center; }
.content { max-width: 900px; margin: 0 auto; padding: 36px 16px 20px; }
.content h2 { font-size: 25px; color: var(--accent); margin: 34px 0 12px; }
.content h2:first-child { margin-top: 0; }
.content p { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 14px; }
.content ul, .content ol { margin: 8px 0 16px 24px; }
.content li { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; margin: 12px 0 22px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; background: white; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-radius: 8px; overflow: hidden; }
.info-table th { background: #1B2A4A; color: white; padding: 10px 12px; text-align: left; }
.related { margin-top: 36px; padding: 24px; background: var(--related); border-radius: 12px; }
.related h2 { font-size: 22px; margin: 0 0 14px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.related-grid a { display: block; background: white; border: 1px solid var(--related-line); border-radius: 10px; padding: 14px; text-decoration: none; color: var(--accent); font-weight: bold; font-size: 14px; text-align: center; }
.related-grid a span { display: block; font-size: 12px; color: #666; font-weight: normal; margin-top: 4px; }
.faq { background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); padding: 26px; margin-top: 32px; }
.faq h2 { margin-top: 0 !important; }
.faq-item { border-bottom: 1px solid #eee; padding: 14px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item strong { font-size: 15px; display: block; margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: #555; line-height: 1.7; margin: 0; }
footer { background: #1B2A4A; color: #aaa; text-align: center; padding: 20px 16px; font-size: 13px; margin-top: 50px; line-height: 1.8; }
footer a { color: #C9A84C; text-decoration: none; }
@media (max-width: 600px) {
  #stage { padding: 10px; }
}
