/* ThinkFoundry Sec 1 Maths readiness check (/readiness). Builds on styles.css. */
.rc-page .site-footer { padding-bottom: 32px; }
.rc-main { background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 420px); padding: 28px 0 56px; }
.rc-container { max-width: 760px; }
.rc-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; margin-bottom: 18px; }
.rc-card[hidden], .rc-results[hidden] { display: none; }
.rc-intro h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; margin-bottom: .35em; }
.rc-intro .lead { color: var(--ink-soft); font-size: 1.08rem; }
.rc-areas { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.rc-areas li { display: inline-flex; align-items: center; gap: 6px; background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 10px; font-size: .95rem; font-weight: 600; color: var(--ink); }
.rc-areas .ti { width: 1em; height: 1em; }
.rc-how { display: grid; gap: 10px; margin: 0 0 22px; }
.rc-how li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.rc-how .ti { margin-top: .15em; }
.rc-start { width: 100%; }
.rc-fineprint { margin: 14px 0 0; font-size: .9rem; color: var(--muted); text-align: center; }

/* Quiz */
.rc-quiz-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rc-progress { margin: 0; font-family: var(--serif); font-weight: 700; font-size: .95rem; color: var(--ink-soft); }
.rc-progress:focus { outline: none; }
.rc-topic { font-family: var(--serif); font-weight: 700; text-transform: uppercase; }
.rc-bar { height: 6px; border-radius: 999px; background: var(--sand); overflow: hidden; margin-bottom: 20px; }
.rc-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s; }
.rc-question { font-family: var(--sans); font-size: 1.22rem; font-weight: 600; line-height: 1.45; letter-spacing: 0; margin: 0 0 18px; color: var(--ink); }
.rc-options { display: grid; gap: 10px; }
.rc-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; text-align: left; font: inherit; font-size: 1.08rem; color: var(--ink); background: var(--white); border: 1.5px solid #dccbb9; border-radius: var(--radius-sm); padding: 10px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.rc-option:hover:not([disabled]) { border-color: var(--accent); background: var(--ivory); }
.rc-option[disabled] { cursor: default; opacity: 1; }
.rc-letter { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sand); font-family: var(--serif); font-weight: 700; font-size: .95rem; color: var(--ink); }
.rc-opt-text { flex: 1 1 auto; }
.rc-mark { flex: 0 0 auto; display: inline-flex; }
.rc-mark .ti { width: 1.4em; height: 1.4em; stroke-width: 2.4; }
.rc-option.is-correct { border-color: #4f7a4a; background: #f1f6ee; }
.rc-option.is-correct .rc-letter { background: #4f7a4a; color: var(--white); }
.rc-option.is-correct .ti { stroke: #3f6a3a; }
.rc-option.is-wrong { border-color: var(--accent); background: #fbefe9; }
.rc-option.is-wrong .rc-letter { background: var(--accent); color: var(--white); }
.rc-feedback { margin-top: 16px; border-radius: var(--radius-sm); padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--ivory); }
.rc-feedback.is-correct { border-left-color: #4f7a4a; }
.rc-verdict { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.rc-feedback.is-correct .rc-verdict .ti { stroke: #3f6a3a; stroke-width: 2.4; }
.rc-feedback.is-wrong .rc-verdict .ti { stroke-width: 2.4; }
.rc-explain { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.rc-next { width: 100%; margin-top: 18px; }

/* Fractions */
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; font-size: .88em; line-height: 1.05; margin: 0 .12em; }
.frac-n { border-bottom: 1.5px solid currentColor; padding: 0 .15em .05em; }
.frac-d { padding: .05em .15em 0; }
.mixed { white-space: nowrap; }
.mixed .frac { margin-left: .08em; }

/* Results */
.rc-score-card h2 { margin: 0; }
.rc-score { font-family: var(--serif); font-weight: 800; font-size: clamp(3.4rem, 16vw, 4.6rem); line-height: 1; color: var(--accent); letter-spacing: -0.03em; }
.rc-score-of { font-size: .45em; color: var(--ink-soft); font-weight: 700; letter-spacing: 0; }
.rc-score-note { margin: 8px 0 16px; color: var(--ink-soft); font-weight: 600; }
.rc-topic-list { border-top: 1px solid var(--line); }
.rc-topic-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rc-topic-name { font-weight: 600; line-height: 1.3; }
.rc-topic-score { color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-badge { font-family: var(--serif); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: .35em .8em; white-space: nowrap; }
.is-strong .rc-badge { background: #e6efe2; color: #2f5130; }
.is-weak .rc-badge { background: var(--blush); color: var(--accent-dark); }
.rc-key { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.rc-h { font-size: 1.3rem; font-weight: 700; margin-bottom: .4em; }
.rc-gate .enquiry-form { box-shadow: none; border: 0; padding: 4px 0 0; background: transparent; display: block; }
.rc-optional { font-weight: 400; color: var(--muted); }
.field.rc-consent { display: flex; gap: 12px; align-items: flex-start; }
.field.rc-consent input { width: 22px; height: 22px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); border: 0; padding: 0; }
.field.rc-consent label { font-weight: 400; font-size: .95rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.field.rc-consent label::after { content: none; }
.field.rc-consent .field-error { flex-basis: 100%; }
.field.rc-consent.has-error { flex-wrap: wrap; }
.rc-consent:has(input:invalid) label::after { content: none; }

/* Breakdown */
.rc-tips { display: grid; gap: 12px; margin-bottom: 26px; }
.rc-tip { border-left: 4px solid var(--clay); background: var(--ivory); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 14px; }
.rc-tip h4 { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; display: flex; justify-content: space-between; gap: 8px; }
.rc-tip-score { color: var(--muted); font-weight: 600; }
.rc-tip p, .rc-tip-none { margin: 0; color: var(--ink-soft); }
.rc-review { display: grid; gap: 12px; }
.rc-review-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--white); }
.rc-review-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--serif); font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.rc-review-item.is-correct .rc-review-head .ti { stroke: #3f6a3a; stroke-width: 2.4; }
.rc-review-item.is-wrong .rc-review-head .ti { stroke-width: 2.4; }
.rc-review-q { font-weight: 600; margin: 0 0 6px; }
.rc-review-a { margin: 0 0 6px; font-size: .98rem; }
.rc-review-x { margin: 0; color: var(--muted); font-size: .96rem; }

/* CTA */
.rc-cta { background: var(--ink); color: #e9ddd2; border-radius: var(--radius); padding: 24px 20px; margin-top: 6px; }
.rc-cta-icon { width: 1.8em; height: 1.8em; stroke: #d0714f; margin-bottom: 8px; }
.rc-cta-title { color: var(--white); font-size: clamp(1.35rem, 5vw, 1.7rem); font-weight: 700; line-height: 1.2; }
.rc-cta p { color: #cdbfb3; }
.rc-cta-actions { display: grid; gap: 10px; }
.rc-cta .btn-outline { color: #e9ddd2; border-color: #8f7d70; }
.rc-cta .btn-outline:hover { color: var(--white); border-color: var(--white); }

@media (min-width: 640px) {
  .rc-main { padding: 48px 0 80px; }
  .rc-card { padding: 32px; }
  .rc-start, .rc-next { width: auto; }
  .rc-cta { padding: 32px; }
  .rc-cta-actions { display: flex; flex-wrap: wrap; }
  .rc-gate .enquiry-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .rc-gate .enquiry-form > * { grid-column: 1 / -1; }
  .rc-gate .enquiry-form > .field:has(#parent_email), .rc-gate .enquiry-form > .field:has(#school) { grid-column: auto; }
}
.rc-option .frac, .rc-question .frac { font-size: .95em; }
