﻿@font-face { font-family: Atkinson; src: url("fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Atkinson; src: url("fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Raleway; src: url("fonts/Raleway-Variable.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
:root { color-scheme: light; --font-body: Raleway, Atkinson, Arial, sans-serif; --leading: 1.375; --leading-heading: 1.3; --leading-text: 1.5; --tracking: normal; --word-spacing: normal;
    --ink: #22272b; --muted: #414141; --line: #d4e2e9; --control: #66788a; --brand: #054166; --brand-deep: #02273c; --brand-accent: #4fc6e0; --brand-soft: #e0f0fa; --on-brand: #fff;
    --green: #25604d; --green-light: #edf5ee; --warn-light: #fff3cd; --warn-line: #8a6a00; --error-light: #fdf0eb; --error-line: #ab3f29;
    --surface: #fff; --canvas: #e0f0fa; --header-bg: #054166; --header-ink: #fff; --header-accent: #4fc6e0; --header-rule: 12px; --focus: #0275bd; --table-line: #000; --hotspot: #0275bd; }
/* Colour themes from the NAPLAN accessibility features: black on white, blue, lilac, green, yellow and an optional dark mode (off-white on charcoal, not white on black). */
html[data-theme=white], html[data-theme=blue], html[data-theme=lilac], html[data-theme=green], html[data-theme=yellow] {
    --ink: #000; --muted: #000; --line: #000; --control: #000; --brand: #000; --brand-deep: #000; --brand-accent: #000; --on-brand: #fff; --green: #000; --warn-line: #000; --error-line: #000;
    --header-ink: #000; --header-accent: #000; --header-rule: 4px; --focus: #000; --table-line: #000; --hotspot: #000; }
html[data-theme=white] { --surface: #fff; --canvas: #fff; --header-bg: #fff; --brand-soft: #e6e6e6; --green-light: #e6e6e6; --warn-light: #e6e6e6; --error-light: #e6e6e6; }
html[data-theme=blue] { --surface: #d3e8f8; --canvas: #d3e8f8; --header-bg: #d3e8f8; --brand-soft: #a9d0ef; --green-light: #a9d0ef; --warn-light: #a9d0ef; --error-light: #a9d0ef; }
html[data-theme=lilac] { --surface: #e7dcf4; --canvas: #e7dcf4; --header-bg: #e7dcf4; --brand-soft: #cdb8e8; --green-light: #cdb8e8; --warn-light: #cdb8e8; --error-light: #cdb8e8; }
html[data-theme=green] { --surface: #d7eed2; --canvas: #d7eed2; --header-bg: #d7eed2; --brand-soft: #b3dcab; --green-light: #b3dcab; --warn-light: #b3dcab; --error-light: #b3dcab; }
html[data-theme=yellow] { --surface: #fbf4c0; --canvas: #fbf4c0; --header-bg: #fbf4c0; --brand-soft: #f0df78; --green-light: #f0df78; --warn-light: #f0df78; --error-light: #f0df78; }
html[data-theme=dark] { color-scheme: dark; --ink: #e8e8e8; --muted: #c9ced2; --line: #4f5961; --control: #9aa6ae; --brand: #9fd8ea; --brand-deep: #9fd8ea; --brand-accent: #9fd8ea; --brand-soft: #2c3d47; --on-brand: #11171a;
    --green: #a9dcc4; --green-light: #233a31; --warn-light: #3b3423; --warn-line: #d4b765; --error-light: #3d2a26; --error-line: #e0a596;
    --surface: #1f2427; --canvas: #161a1c; --header-bg: #161a1c; --header-ink: #e8e8e8; --header-accent: #9fd8ea; --header-rule: 4px; --focus: #9fd8ea; --table-line: #e8e8e8; --hotspot: #9fd8ea; }
html[data-font=atkinson] { --font-body: Atkinson, Arial, sans-serif; }
html[data-font=arial] { --font-body: Arial, Helvetica, sans-serif; }
html[data-spacing=wider] { --leading: 1.75; --leading-heading: 1.6; --leading-text: 1.85; }
html[data-spacing=widest] { --leading: 2; --leading-heading: 1.8; --leading-text: 2.1; }
html[data-letters=wider] { --tracking: .06em; --word-spacing: .16em; }
* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: var(--leading); letter-spacing: var(--tracking); word-spacing: var(--word-spacing); hyphens: none; -webkit-hyphens: none; font-variant-numeric: lining-nums; overflow-wrap: break-word; }
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.button:disabled, .tool-button:disabled, .order-move:disabled { background: var(--surface); color: var(--muted); border: 1px dashed var(--control); }
button[hidden] { display: none; }
button, a, input, select, textarea, summary, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--focus); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-body); line-height: var(--leading-heading); }
h1 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 600; margin-bottom: .65rem; }
h2 { font-size: 1.5rem; font-weight: 500; margin-bottom: .8rem; }
h3 { font-size: 1.25rem; font-weight: 500; }
small { font-size: 1rem; }
img { max-width: 100%; }
fieldset { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; background: var(--surface); color: var(--brand); padding: .8rem; z-index: 3000; }
.skip-link:focus { top: 1rem; }
.site-header { position: relative; background: var(--header-bg); color: var(--header-ink); border-bottom: var(--header-rule) solid var(--header-accent); }
.header-inner { max-width: 78.75rem; margin: auto; padding: 1rem 2rem; display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.45rem; font-weight: 700; color: var(--header-ink); max-width: 100%; min-width: 0; }
.brand > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.brand-light { color: var(--header-accent); font-weight: 400; }
.brand-mark { background: #fff; border: 1px solid var(--header-ink); display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border-radius: .5rem; }
.brand-mark img { width: 1.65rem; }
.header-inner nav { display: flex; gap: .9rem; flex-wrap: wrap; align-self: stretch; }
.header-inner nav a { color: var(--header-ink); text-decoration: none; padding: .65rem .1rem; font-size: 1rem; }
.header-inner nav a:hover, .header-inner nav a.active { color: var(--header-accent); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .35em; }
.account-tools { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.account-name { font-size: 1rem; }
.account-tools, .account-tools .text-button { color: var(--header-ink); }
.account-tools form { margin: 0; }
.text-tools { display: flex; gap: .3rem; }
.text-tools button, .display-toggle { min-width: 2.65rem; min-height: 44px; padding: .35rem .6rem; border: 1px solid var(--header-ink); border-radius: 4px; background: transparent; font-size: 1rem; font-weight: 700; color: var(--header-ink); }
.text-tools button:hover, .display-toggle:hover, .display-toggle[aria-expanded=true] { box-shadow: inset 0 0 0 2px var(--header-ink); }
.text-tools button:disabled, .display-toggle:disabled { background: transparent; color: var(--header-ink); border: 1px dashed var(--header-ink); }
.display-panel { position: absolute; z-index: 40; top: 100%; right: 1rem; width: min(38rem, calc(100vw - 2rem)); background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 1.4rem 1.5rem; text-align: left; }
.display-panel h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.display-zoom { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.display-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.display-options fieldset { border: 1px solid var(--control); border-radius: 6px; padding: .6rem .9rem .8rem; margin: 0; }
.display-options legend { padding: 0 .3rem; }
.display-choice { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 400; cursor: pointer; }
.display-choice:has(input:checked) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.swatch { display: inline-grid; place-items: center; width: 2.4rem; height: 2rem; border: 2px solid; border-radius: 4px; font-weight: 700; flex-shrink: 0; }
.display-panel .button-row { margin-top: 1.2rem; }
.page-shell { max-width: 73.75rem; margin: 0 auto; padding: 3.2rem 2rem 4rem; min-height: 70vh; background: var(--surface); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2.3rem; flex-wrap: wrap; }
.page-heading p:last-child { margin-bottom: 0; }
.eyebrow { font-size: 1rem; font-weight: 400; color: var(--muted); margin-bottom: .65rem; }
.intro { font-size: 1rem; line-height: var(--leading); color: var(--muted); }
.subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.subject-card { display: flex; flex-direction: column; background: var(--surface); padding: 2rem 2rem 0; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; color: var(--ink); text-decoration: none; }
.subject-card:hover { border-color: var(--brand); }
.subject-card.reading { border-top-color: var(--brand-accent); }
.subject-icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; background: var(--brand-soft); border-radius: 8px; margin-bottom: 1.3rem; }
.reading .subject-icon { background: var(--brand-soft); }
.subject-icon img { width: 2rem; height: 2rem; }
.subject-label { color: var(--brand); font-size: 1rem; font-weight: 600; }
.reading .subject-label { color: var(--brand-deep); }
.subject-card h2 { font-size: 1.8rem; margin-top: .4rem; margin-bottom: .6rem; }
.subject-card p { color: var(--muted); margin-bottom: 1.4rem; }
.subject-meta { display: flex; flex-direction: column; font-size: 1rem; color: var(--muted); gap: .15rem; }
.subject-action { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--brand); font-weight: 700; margin: auto -2rem 0; padding: 1rem 2rem; background: var(--brand-soft); border-radius: 0 0 8px 8px; }
.reading .subject-action { background: var(--brand-soft); color: var(--brand-deep); }
.subject-action img { width: 1.25rem; height: 1.25rem; }
.learning-note { display: flex; align-items: center; gap: 1rem; padding: 1.45rem .3rem; color: var(--muted); font-size: 1rem; }
.learning-note p { margin: 0; }
.learning-note img { width: 1.4rem; }
.section-block { margin-top: 2.8rem; }
.section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0 1rem; }
.section-heading h2 { margin: 0; }
.section-heading a { font-size: 1rem; }
.muted, .tool-status { color: var(--muted); }
.attempt-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); margin-bottom: .7rem; }
.attempt-row small, .workspace-link small { display: block; color: var(--muted); margin-top: .2rem; }
.subject-dot { height: .7rem; width: .7rem; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.subject-dot.reading { background: var(--brand-accent); }
.status-pill { display: inline-block; background: var(--brand-soft); border: 1px solid var(--control); border-radius: .4rem; font-size: 1rem; padding: .22rem .55rem; white-space: nowrap; }
.attempt-row .status-pill { margin-left: auto; }
.row-action { color: var(--brand); font-size: 1rem; margin-left: auto; }
.workspace-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.workspace-link { padding: 1.2rem; display: flex; align-items: start; gap: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; }
.workspace-link img { width: 1.5rem; }
.button, .tool-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--control); background: var(--surface); min-height: 44px; padding: .65rem 1.1rem; border-radius: 4px; text-decoration: none; line-height: 1.35; font-weight: 700; }
.button img, .tool-button img, .back-link img { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.button.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.reading .button.primary { background: var(--brand-deep); border-color: var(--brand-deep); }
.button.primary img { filter: invert(1); }
.button:hover, .tool-button:hover { box-shadow: inset 0 0 0 1px currentColor; }
.button.small { font-size: 1rem; padding: .45rem .75rem; }
.button.danger { color: var(--ink); border: 2px solid var(--error-line); }
.tool-button { font-weight: 400; background: transparent; border-color: transparent; font-size: 1rem; padding: .55rem .65rem; }
.text-button { border: 0; background: none; color: var(--brand); text-decoration: underline; text-underline-offset: .2em; min-height: 44px; padding: .5rem .2rem; }
.button-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.empty-state { padding: 3rem 1.5rem; text-align: left; background: var(--surface); border: 1px dashed var(--control); border-radius: .7rem; }
.empty-state.compact { padding: 1.8rem; }
.empty-state h3 { margin-bottom: .4rem; }
.empty-state p { color: var(--muted); }
.empty-state p:last-child { margin-bottom: 0; }
.notice { background: var(--brand-soft); padding: 1rem 1.2rem; border-left: 3px solid var(--brand); border-radius: 4px; margin: 1rem 0; overflow-wrap: anywhere; }
.notice.error { background: var(--error-light); border-left: 6px solid var(--error-line); }
.notice p { margin: .3rem 0; }
.error-text { color: var(--ink); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; min-height: 44px; font-size: 1rem; text-decoration: none; }
.start-panel { max-width: 47.5rem; margin: 0 auto; }
.practice-explainer { padding-left: 1.4rem; margin: 1.4rem 0 2rem; }
.practice-explainer li { margin-bottom: .65rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; margin-bottom: 1rem; }
label, legend { font-weight: 700; }
input:not([type=checkbox]):not([type=radio]), select, textarea { display: block; width: 100%; background: var(--surface); border: 1px solid var(--control); border-radius: 4px; padding: .65rem .8rem; min-height: 44px; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: 1.25rem; height: 1.25rem; accent-color: var(--brand); margin: .2rem 0; flex-shrink: 0; }
.timing-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; padding: 0; margin: 1.4rem 0 1rem; gap: 1rem; }
.timing-options legend { margin-bottom: .8rem; }
.timing-choice { display: flex; gap: .8rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; }
.timing-choice:has(input:checked) { border: 2px solid var(--brand); padding: calc(1.1rem - 1px); background: var(--brand-soft); }
.timing-choice small { display: block; font-weight: 400; margin-top: .4rem; color: var(--muted); }
.sign-in-panel { max-width: 50rem; margin: 0 auto; }
.demo-accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.demo-account { width: 100%; min-height: 90px; display: flex; flex-direction: column; gap: .4rem; align-items: start; background: var(--surface); border: 1px solid var(--control); border-radius: .6rem; padding: 1.2rem; text-align: left; }
.demo-account:hover { border-color: var(--brand); background: var(--brand-soft); }
.demo-account span { font-size: 1rem; color: var(--muted); }
.practice-heading { display: flex; justify-content: space-between; align-items: start; gap: 1.5rem; flex-wrap: wrap; }
.practice-heading h1 { font-size: 2rem; margin-bottom: .3rem; }
/* The practice page is kept compact so the question and its answers fit on screen together. */
.page-shell:has(.practice-workspace) { padding-top: 1.75rem; }
.timer-display { text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: .6rem 1rem; }
.timing-label { display: block; font-size: 1rem; color: var(--muted); }
.timer-value { font-size: 1.55rem; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.question-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: .9rem 0; margin-bottom: .2rem; scroll-margin-top: .5rem; }
.question-nav { display: flex; gap: .9rem; flex-wrap: wrap; padding-top: .5rem; }
.question-number { position: relative; min-width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--control); background: var(--surface); border-radius: 4px; font-weight: 700; padding: .4rem; }
.question-number.current { background: var(--brand); color: var(--on-brand); border: 2px solid var(--brand); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .2em; }
.reading .question-number.current { background: var(--brand-deep); border-color: var(--brand-deep); }
.nav-marker { position: absolute; right: -.7rem; top: -.75rem; display: grid; place-items: center; border-radius: 1rem; background: var(--surface); color: var(--ink); font-size: 1rem; line-height: 1.25; width: 1.5rem; height: 1.5rem; border: 2px solid var(--ink); text-decoration: none; }
.save-state { font-size: 1rem; color: var(--muted); }
.question-only { max-width: 50rem; margin: 0 auto; }
.reading-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.question-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 1.5rem 2rem 2rem; min-width: 0; scroll-margin-top: .5rem; }
.question-panel h2 { font-size: 1.5rem; line-height: var(--leading-heading); }
.question-kicker { display: flex; gap: .5rem; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: 1rem; }
.answers { border: 0; padding: 0; margin: 1.1rem 0; }
.answer-option { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--control); border-radius: 4px; margin-bottom: .6rem; font-weight: 400; min-height: 50px; cursor: pointer; }
.answer-option.selected { border: 2px solid var(--brand); padding: calc(.8rem - 1px) calc(1rem - 1px); background: var(--brand-soft); }
.reading .answer-option.selected { border-color: var(--brand-deep); background: var(--brand-soft); }
fieldset:disabled .answer-option { cursor: default; }
.numeric-answer { max-width: 15rem; margin: .6rem 0 .8rem; }
.check-answer { margin-bottom: 1.1rem; }
.question-actions { display: flex; justify-content: space-between; gap: .3rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .8rem; margin-top: 1.2rem; }
.learning-tools { display: flex; gap: .7rem; border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .5rem; }
.tool-status { font-size: 1rem; margin: .4rem 0 0; }
.feedback { border-radius: .5rem; padding: 1rem 1.1rem; margin: 1rem 0; border: 2px solid var(--green); background: var(--green-light); color: var(--ink); }
.feedback.learning { background: var(--error-light); border-color: var(--error-line); }
.feedback p { margin: .4rem 0; }
.feedback small { color: var(--ink); }
.passage-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.passage-panel summary { padding: 1rem 1.4rem; cursor: pointer; font-weight: 700; min-height: 44px; }
.passage-panel article { padding: .6rem 1.7rem 1.7rem; max-height: 70vh; overflow: auto; line-height: var(--leading-text); }
.passage-panel article h2 { font-size: 1.7rem; }
.passage-panel article .passage-heading { font-size: 1.25rem; line-height: var(--leading-heading); margin: 1.4rem 0 .4rem; }
.mobile-jump { display: none; }
.practice-footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.diagram { margin: 1rem 0; max-width: 100%; }
.diagram-canvas { overflow-x: auto; padding: .5rem 0; }
.diagram-canvas svg { display: block; max-width: none; height: auto; }
.diagram figcaption { font-size: 1rem; color: var(--muted); margin-top: .3rem; }
.stimulus-table { margin: 1rem 0; border: 0; border-radius: 0; background: transparent; }
.stimulus-table table { font-size: 1rem; width: auto; min-width: min(100%, 20rem); border: 2px solid var(--table-line); }
.stimulus-table th, .stimulus-table td { padding: .6rem .9rem; border: 2px solid var(--table-line); color: var(--ink); background: var(--surface); }
.stimulus-table thead th { background: var(--brand-soft); }
.stimulus-table caption { caption-side: top; text-align: left; font-weight: 700; padding: .6rem 0; }
.stimulus-table tbody th { font-weight: 700; }
.hotspot-image { position: relative; display: inline-block; max-width: 100%; margin: .5rem 0 1rem; line-height: 0; }
.hotspot-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: .5rem; }
.hotspot { position: absolute; display: block; min-width: 24px; min-height: 24px; border: 2px dashed var(--hotspot); border-radius: 4px; background: transparent; padding: 0; line-height: 1.25; }
button.hotspot:hover { border-style: solid; }
.hotspot.selected { border: 4px solid var(--brand); }
.hotspot.selected::after, .hotspot.correct::after { content: "\2713"; content: "\2713" / ""; position: absolute; top: .15rem; right: .15rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 1rem; line-height: 1; }
.hotspot.correct { border: 4px solid var(--green); background: transparent; }
.hotspot-label { position: absolute; left: .2rem; top: .2rem; background: var(--surface); color: var(--ink); border: 1px solid var(--ink); border-radius: .3rem; padding: 0 .3rem; font-size: 1rem; }
.unit-input { display: flex; align-items: center; gap: .5rem; margin: .6rem 0 .8rem; }
.unit-input .numeric-answer { margin: 0; }
.unit { font-size: 1.15rem; }
.text-answer { margin: .6rem 0 .8rem; }
.text-choices { display: flex; flex-wrap: wrap; gap: .6rem; margin: .6rem 0 1rem; }
.text-choice { min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--control); border-radius: 4px; background: var(--surface); line-height: var(--leading); text-align: left; }
.text-choice:hover { border-color: var(--brand); }
.text-choice.selected { border: 2px solid var(--brand); padding: calc(.5rem - 1px) calc(.9rem - 1px); background: var(--brand-soft); }
.text-choice.selected::before, .chip.sel::before { content: "\2713\00a0"; content: "\2713\00a0" / ""; }
.reading .text-choice.selected { border-color: var(--brand-deep); background: var(--brand-soft); }
.inline-select { display: inline-block; width: auto; min-width: 9rem; max-width: 100%; margin: 0 .3rem; font-size: 1.1rem; font-weight: 400; vertical-align: baseline; }
label .inline-select { display: block; margin: .5rem 0 0; }
.order-list { list-style: none; counter-reset: order; padding: 0; margin: .6rem 0 1rem; }
.order-list li { counter-increment: order; display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem .5rem .9rem; border: 2px solid var(--control); border-radius: 4px; background: var(--surface); margin-bottom: .6rem; }
.order-list li::before { content: counter(order) "."; color: var(--muted); min-width: 1.5rem; }
.order-text { flex: 1; min-width: 0; }
.order-move { min-width: 44px; min-height: 44px; border: 1px solid var(--control); border-radius: 4px; background: var(--surface); font-size: 1rem; }
.sort-pool { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 3.2rem; padding: .6rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--canvas); margin: .6rem 0 1rem; }
.sort-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .8rem; margin-bottom: 1rem; }
.cat { border: 2px dashed var(--brand-accent); border-radius: 8px; padding: .5rem; background: var(--surface); min-height: 7rem; }
.cat-target { width: 100%; min-height: 44px; border: 0; border-radius: 4px; background: var(--brand-soft); font-weight: 700; color: var(--brand-deep); text-align: left; padding: .5rem .8rem; }
.cat-target:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--brand); }
.cat-target:disabled { opacity: 1; cursor: default; }
.cat-cards { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .5rem; }
.chip { min-height: 44px; padding: .45rem .8rem; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); line-height: var(--leading); text-align: left; }
.chip.sel { border: 2px solid var(--brand); padding: calc(.45rem - 1px) calc(.8rem - 1px); background: var(--brand-soft); }
.part-label { font-weight: 700; margin: 1rem 0 .4rem; }
.part-stem { font-weight: 400; }
.feedback.near { background: var(--warn-light); border-color: var(--warn-line); }
.feedback.correct strong:first-child { color: var(--green); }
.result-percent { font-size: 3.2rem; font-weight: 700; line-height: 1.25; color: var(--brand); margin-bottom: .6rem; }
.reading .result-percent { color: var(--brand-deep); }
.journey { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.journey strong { margin-right: .3rem; }
.pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: var(--green-light); border: 1px solid var(--green); font-size: 1rem; white-space: nowrap; }
.how-you-went { margin: 1.5rem 0; }
.how-you-went ul { padding-left: 1.3rem; }
.set-break { max-width: 53.75rem; margin: 0 auto; }
.set-score { display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0 .4rem; }
.set-score strong { font-size: 2.6rem; color: var(--brand); line-height: 1.25; }
.next-level { font-size: 1.2rem; font-weight: 700; }
.set-review { margin: 1.8rem 0; }
.set-review h3 { font-size: 1.1rem; margin: 1.2rem 0 .5rem; }
.review-item { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--control); border-radius: .5rem; margin-bottom: .5rem; }
.review-item.correct { border-left-color: var(--green); }
.review-item.close { border-left-color: var(--warn-line); }
.review-item.incorrect { border-left-color: var(--error-line); }
.review-item summary { cursor: pointer; padding: .7rem 1rem; min-height: 44px; }
.review-mark { display: inline-block; width: 1.4rem; font-weight: 700; }
.review-item.correct .review-mark { color: var(--green); }
.review-body { padding: 0 1rem .8rem 2.4rem; }
.review-body p { margin: .3rem 0; }
.tool-overlay { position: fixed; left: 0; top: 0; z-index: 20; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.tool-overlay:active { cursor: grabbing; }
.tool-overlay svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tool-overlay > img { display: block; width: 100%; height: 100%; pointer-events: none; }
.protractor-tool.supplied-tool > img { opacity: .7; }
.tool-overlay:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rotate-handle { position: absolute; right: -17px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid #054166; color: #054166; font-size: 20px; line-height: 1; padding: 0; display: grid; place-items: center; cursor: alias; }
.ruler-tool .rotate-handle { top: 25px; }
.protractor-tool .rotate-handle { top: 235px; }
.supplied-tool .rotate-handle { top: auto; bottom: 0; }
.review-pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: 1rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; color: var(--ink); }
.review-pill.approved { background: var(--green-light); border-color: var(--green); }
.review-pill.pending { background: var(--warn-light); border-color: var(--warn-line); }
.review-pill.rejected { background: var(--error-light); border: 2px solid var(--error-line); }
.review-note { display: block; color: var(--muted); margin-top: .3rem; }
.current-row th, .current-row td { background: var(--brand-soft); }
.current-row th { box-shadow: inset 4px 0 var(--brand); }
.draft-preview { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.2rem; }
.review-decision { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.2rem; }
.review-decision .field { max-width: 40rem; }
.review-decision .inline-confirm { flex-wrap: wrap; }
.sort-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .8rem; margin: 1rem 0; }
.sort-key > div { border: 1px dashed var(--control); border-radius: .5rem; padding: .7rem .9rem; }
.sort-key ul { padding-left: 1.1rem; margin: .4rem 0 0; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 1000; background: #1b2a266b; display: grid; place-items: center; padding: 1rem; overflow: auto; }
.confirm-dialog { width: min(calc(100% - 2rem), 35rem); background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 2rem; max-height: 90vh; overflow: auto; }
.confirm-dialog::backdrop { background: #1b2a266b; }
.result-panel { max-width: 50rem; margin: 1rem auto; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; padding: 2.5rem; }
.result-panel.reading { border-top-color: var(--brand-accent); }
.result-numbers, .report-summary { display: flex; gap: 2rem; flex-wrap: wrap; margin: 1.8rem 0; }
.result-numbers div, .report-summary div { flex: 1; min-width: 8rem; }
.result-numbers strong, .report-summary strong { display: block; font-size: 2rem; color: var(--brand); line-height: 1.3; }
.result-numbers span, .report-summary span { font-size: 1rem; color: var(--muted); }
.result-details { border-top: 1px solid var(--line); padding-top: 1rem; }
.result-details div { display: flex; justify-content: space-between; gap: 1rem; margin: .5rem 0; flex-wrap: wrap; }
.result-details dt { font-weight: 700; }
.result-details dd { margin: 0; }
.filter-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .9rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); align-items: end; }
.filter-panel .field { margin: 0; }
.filter-panel label { font-size: 1rem; }
.table-scroll { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 1rem; border-bottom: 1px solid var(--line); }
th { background: var(--brand-soft); color: var(--brand-deep); font-size: 1rem; }
tbody th { background: transparent; font-size: inherit; }
td small { display: block; color: var(--muted); margin-top: .3rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
.pagination { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; font-size: 1rem; }
.notice.success { background: var(--green-light); border-color: var(--green); }
.button-row.centred { justify-content: flex-start; }
.plain-list { text-align: left; max-width: 42rem; margin: 1.2rem 0; padding-left: 1.4rem; }
.plain-list li { margin-bottom: .6rem; }
.focus-options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.timing-choice.unavailable { background: var(--surface); color: var(--muted); border-style: dashed; }
.availability-note { display: block; margin-top: .6rem; font-size: 1rem; color: var(--brand); font-weight: 600; }
.availability-note.unavailable { color: var(--ink); }
.question-image, .passage-image { display: block; max-width: 100%; height: auto; max-height: 26rem; margin: 1rem 0; border: 1px solid var(--line); border-radius: .5rem; background: #fff; }
.measurement-viewport { max-width: 100%; overflow-x: auto; }
.measurement-image { max-width: none; max-height: none; border: 0; border-radius: 0; }
.measurement-image img { border: 0; border-radius: 0; }
.ready-pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--green-light); color: var(--ink); border: 1px solid var(--green); font-size: 1rem; font-weight: 600; white-space: nowrap; }
.ready-pill::before { content: "\2713\00a0"; content: "\2713\00a0" / ""; }
.ready-pill.not-ready { background: var(--error-light); border: 2px dashed var(--error-line); }
.ready-pill.not-ready::before { content: "\2718\00a0"; content: "\2718\00a0" / ""; }
.file-picker { display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem; background: var(--surface); border: 2px dashed var(--brand-accent); border-radius: 8px; margin-bottom: 1rem; }
.file-picker input[type=file] { border: 0; padding: 0; min-height: 44px; }
.import-preview { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; margin-top: 1rem; }
.import-preview .table-scroll { margin: 1rem 0; }
.import-numbers div { min-width: 6.5rem; }
.issue-list { margin: .6rem 0 0; padding-left: 1.2rem; max-height: 22rem; overflow: auto; }
.issue-list li { margin-bottom: .35rem; }
.issue-location { font-weight: 700; margin-right: .35rem; }
.row-actions { white-space: nowrap; }
.row-actions .button + .button, .row-actions .button + .inline-confirm { margin-left: .4rem; }
.inline-confirm { display: inline-flex; align-items: center; gap: .4rem; }
.stem-cell { min-width: 16rem; }
.question-preview { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; }
.question-preview > .section-heading:first-child { margin-top: 0; }
.choice-key { list-style: none; padding: 0; margin: 1rem 0; }
.choice-key li { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: .4rem; margin-bottom: .4rem; }
.choice-key li.correct { border: 2px solid var(--green); background: var(--green-light); }
.choice-key li.correct::before { content: "\2713\00a0"; content: "\2713\00a0" / ""; }
.choice-id { font-weight: 700; margin-right: .5rem; }
.site-footer { max-width: 78.75rem; margin: auto; padding: 1.4rem 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.sign-in-note { text-align: left; margin-top: 2rem; color: var(--muted); }
.keyboard-help { margin-top: 1.5rem; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); }
.keyboard-help > summary { padding: .8rem 1.2rem; min-height: 44px; cursor: pointer; font-weight: 600; }
.keyboard-help > div { padding: 0 1.2rem 1.2rem; }
.shortcut-list { margin: 0; }
.shortcut-list div { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: .4rem 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.shortcut-list dt { font-weight: 600; }
.shortcut-list dd { margin: 0; }
kbd { font-family: inherit; font-size: 1rem; padding: 0 .35rem; border: 1px solid var(--ink); border-radius: 4px; background: var(--surface); white-space: nowrap; }
/* Icons are drawn in black, so the dark theme lightens them, apart from on light buttons and the white brand tile. */
html[data-theme=dark] img[src*="icons/"] { filter: invert(.92); }
html[data-theme=dark] .button.primary img, html[data-theme=dark] .brand-mark img { filter: none; }
@media (max-width: 950px) {
    .header-inner { gap: .8rem; }
    .header-inner nav { order: 3; width: 100%; }
    .reading-split { grid-template-columns: 1fr; }
    .passage-panel article { max-height: none; }
    .mobile-jump { display: inline-block; min-height: 44px; }
    .shortcut-list div { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .page-shell { padding: 1.8rem 1rem 2.5rem; }
    .header-inner { padding: .8rem 1rem; }
    .account-name { display: none; }
    .subject-grid, .workspace-links, .demo-accounts, .timing-options { grid-template-columns: 1fr; }
    .subject-card { padding: 1.5rem 1.5rem 0; }
    .subject-action { margin-left: -1.5rem; margin-right: -1.5rem; padding: 1rem 1.5rem; }
    .question-panel, .result-panel, .review-workspace { padding: 1.2rem; }
    .question-toolbar { align-items: start; }
    .practice-heading h1 { font-size: 1.7rem; }
    .result-numbers { gap: 1rem; }
    .result-numbers strong { font-size: 1.6rem; }
    .practice-footer { flex-direction: column-reverse; }
    .site-footer { padding: 1.2rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
