/* The SAT Math practice test: its home, the test itself, its result. */
.test-facts li { margin-bottom: 0.35rem; }
.test-history { list-style: none; padding: 0; margin: 0; }
.test-history li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.test-score { font-size: 1.15rem; color: var(--blue); }

/* the test: a bar on top, the question, the navigator below */
.test-bar { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--rule); }
.test-bar .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.test-bar .test-module { font-weight: 600; margin-right: auto; }
.test-clock { font-family: var(--mono); font-size: 1.1rem; font-weight: 500; min-width: 4.5rem; text-align: center; padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); background: var(--surface); }
.test-clock.low { background: var(--amber-dim); color: #8a5a00; }
.test-bar .btn { padding: 0.45rem 0.8rem; font-size: 0.9rem; }
.test-panel { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); padding: 1rem; margin: 1rem 0; }
.test-panel h2 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.test-reference { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.4rem 1.5rem; font-size: 0.95rem; }
.test-reference p { margin: 0.2rem 0; }
.test-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.2rem 0 0.4rem; }
.test-head h2 { margin: 0; font-size: 1.1rem; }
.test-mark { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; cursor: pointer; }
.test-question { min-height: 12rem; }
.test-question .apc-question { border: none; padding: 0; }
.test-saved { font-size: 0.85rem; color: var(--dim); min-height: 1.2rem; }
.test-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1.2rem 0; }
.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.6rem, 1fr)); gap: 0.4rem; margin: 1rem 0 2rem; }
.test-grid button { font: inherit; font-weight: 600; height: 2.6rem; border-radius: var(--radius-sm); border: 1px solid var(--rule); background: var(--white); cursor: pointer; position: relative; }
.test-grid button.answered { background: var(--blue); border-color: var(--blue); color: var(--white); }
.test-grid button.current { outline: 3px solid var(--blue-ring); outline-offset: 1px; }
.test-grid button.marked::after { content: ""; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.test-legend { font-size: 0.85rem; color: var(--dim); display: flex; gap: 1.2rem; flex-wrap: wrap; }
.test-review li { margin-bottom: 0.3rem; }

/* the result */
.test-result-score { font-family: var(--serif, 'Playfair Display', serif); font-size: clamp(3rem, 9vw, 4.5rem); line-height: 1; color: var(--blue); margin: 0.2rem 0 0.4rem; }
.test-domains { display: grid; gap: 0.8rem; margin: 1rem 0 2rem; }
.test-domain { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; align-items: center; }
.test-domain .bar { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--surface); border: 1px solid var(--rule); overflow: hidden; }
.test-domain .bar span { display: block; height: 100%; background: var(--blue); }
.test-answer { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.test-answer.right { border-left: 4px solid var(--green); }
.test-answer.wrong { border-left: 4px solid #b3261e; }
.test-answer .test-answer-head { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: var(--dim); margin-bottom: 0.5rem; flex-wrap: wrap; }
.test-answer .apc-question { border: none; padding: 0; }

/* the home: one card a test */
.test-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.test-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.test-card-head h2 { margin: 0; font-size: 1.15rem; }
.test-card .test-history { margin-top: 0.6rem; }
.test-card .test-history li:last-child { border-bottom: none; }

/* AP Biology: the student's own score of a written answer, against its rubric */
.test-self-score { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.75rem; }
.test-self-score .btn { min-width: 2.75rem; }
.test-self-score .btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.test-answer textarea.apc-question-answer-input { width: 100%; }
/* AP Physics 1 and AP Biology: the exam's equation or formula sheet under Reference (2026-10-30) */
.test-sheet { max-height: 60vh; overflow-y: auto; font-size: 0.92rem; }
.test-sheet table { display: block; overflow-x: auto; }
.test-sheet h2 { font-size: 1.05rem; }
.test-sheet h3 { font-size: 0.98rem; margin: 1rem 0 0.4rem; }
