/* Practice guides (times tables check, number bonds, SATs, phonics check, Christmas maths). */
.landing .answer-first { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 14px 18px; margin: 12px 0 18px; font-size: 1.1rem; }
.landing .answer-first p { margin: 0; }
.landing h2 { margin-top: 1.6em; }
.landing .fact-table { border-collapse: collapse; width: 100%; max-width: 40em; margin: 12px 0; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.landing .fact-table th, .landing .fact-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.landing .fact-table th { background: #f4efe0; }
.landing .game-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; padding: 0; margin: 12px 0; }
.landing .challenge { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 14px 18px; margin: 12px 0; }
.landing .challenge h3 { margin: 0 0 4px; font-size: 1.1rem; }
.landing .challenge p { margin: .3em 0; }
.landing details.answer { margin: .4em 0 0; }
.landing details.answer summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); min-height: 44px; display: flex; align-items: center; }
.landing .ten-frame { display: inline-grid; grid-template-columns: repeat(5, 28px); gap: 4px; margin: 4px 12px 4px 0; vertical-align: middle; }
.landing .ten-frame i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: block; }
.landing .ten-frame i.on { background: var(--brand); }
.landing .ten-frame i.off { background: var(--sun); }
.landing .bond-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0; font-family: var(--font-kid); font-weight: 800; }
/* MTC simulator */
.mtc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 16px 0; text-align: center; }
.mtc-lead { font-size: 1.1rem; max-width: 34em; margin: .4em auto 1em; }
.mtc-small { font-size: .95rem; color: var(--ink-soft); }
.mtc-options { border: 2px solid var(--line); border-radius: var(--radius-sm); margin: 12px auto; max-width: 34em; padding: 8px 14px 12px; text-align: left; }
.mtc-options legend { font-weight: 800; padding: 0 6px; }
.mtc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mtc-chip, .mtc-radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.mtc-chip { border: 2px solid var(--ink); border-radius: 14px; padding: 0 12px; font-weight: 800; background: #fffdf5; }
.mtc-chip input, .mtc-radio input { width: 22px; height: 22px; }
.mtc-radio { display: flex; margin: 4px 0; }
.mtc-status { margin: 0; font-weight: 800; color: var(--ink-soft); }
.mtc-display { font-family: var(--font-kid); font-weight: 800; font-size: clamp(2.4rem, 9vw, 4rem); min-height: 1.3em; margin: 8px 0; }
.mtc-form { margin: 8px 0 12px; }
.mtc-input { width: 4.5em; }
.mtc-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 320px; margin: 0 auto 12px; }
.mtc-pad .btn { font-size: 1.5rem; min-height: 60px; }
.mtc-score { font-family: var(--font-kid); font-weight: 800; font-size: 3.4rem; margin: 0; }
.mtc-missed { columns: 2; max-width: 30em; margin: 0 auto; text-align: left; font-family: var(--font-kid); font-weight: 700; }
@media (max-width: 480px) { .mtc-missed { columns: 1; } }
/* phonics check practice */
.pcheck-word { font-family: var(--font-kid); font-weight: 800; font-size: clamp(3rem, 14vw, 6rem); margin: 6px 0; letter-spacing: .04em; }
.pcheck-tag { display: inline-block; padding: 2px 14px; border-radius: 99px; font-weight: 800; background: var(--sun); color: var(--ink); }
.pcheck-tag.real { background: var(--good-soft); }
.pcheck-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 12px 0; }
.word-grid li { background: var(--card); border: 3px solid var(--ink); border-radius: 16px; text-align: center; padding: 10px 6px; font-family: var(--font-kid); font-weight: 800; font-size: 1.6rem; }
.word-grid li small { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
@media print { .mtc, .site-header, .site-footer, .breadcrumbs, .no-print { display: none !important; } .landing .word-grid li { break-inside: avoid; } }
/* Multi-column fact tables stack on phones so nothing scrolls sideways */
@media (max-width: 600px) {
  .landing .fact-table:has(thead) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .landing .fact-table:has(thead) tr, .landing .fact-table:has(thead) th, .landing .fact-table:has(thead) td { display: block; }
  .landing .fact-table:has(thead) td { border-bottom: 0; padding-top: 2px; padding-bottom: 2px; }
  .landing .fact-table:has(thead) tr { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
  .landing .fact-table th, .landing .fact-table td { overflow-wrap: anywhere; }
}

/* Times tables pages */
.tt-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0; }
.tt-nav a, .tt-nav li > span { display: inline-block; min-width: 2.6em; padding: 6px 8px; text-align: center; border-radius: var(--radius-sm); border: 2px solid var(--line); font-weight: 800; text-decoration: none; }
.tt-nav [aria-current] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.tt-badge { font-weight: 900; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; }
.tt-table { max-width: 16em; }
.tt-table td { padding: 4px 10px; font-size: 1.15rem; }
.tt-div { line-height: 1.9; }
.tt-grid-wrap { overflow-x: auto; max-width: 100%; }
.tt-grid { border-collapse: collapse; font-size: .95rem; text-align: center; }
.tt-grid caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.tt-grid th, .tt-grid td { border: 1px solid var(--line); padding: 4px 6px; min-width: 2.2em; }
.tt-grid th { background: var(--card); font-weight: 800; }
