@import url('./highlights.css');
.practice-page { background:#f8faff; }
.practice-hero { max-width:1320px; padding:62px 40px 44px; margin:auto; }
.practice-hero h1 { font:800 clamp(36px,4.5vw,60px)/1.08 Manrope,sans-serif; letter-spacing:-2px; margin:14px 0 18px; }
.practice-hero>p:not(.learn-kicker) { max-width:680px; color:#606b78; line-height:1.75; font-size:17px; }
.practice-facts { display:flex; gap:28px; margin-top:28px; color:#606b78; font-size:14px; }
.practice-facts strong { color:#171d22; margin-right:5px; font-weight:800; }
.practice-layout { display:grid; grid-template-columns:280px minmax(0,1fr); max-width:1320px; margin:0 auto 80px; padding:0 40px; gap:30px; align-items:start; scroll-margin-top:100px; }
.category-sidebar { border:1px solid #ccd4e4; background:white; border-radius:16px; padding:20px 14px; }
.category-heading { padding:0 8px 18px; border-bottom:1px solid #e1e6f0; }
.category-heading h2 { font-size:19px; margin:0 0 8px; }
.category-heading a { font-size:12px; color:#5d6777; }
.category-sidebar button { width:100%; text-align:left; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; border-radius:8px; font:inherit; }
.category-all { padding:14px 10px; font-weight:700!important; margin-top:12px; }
.category-all>span,.category-domain>span { color:#6a7483; font-size:11px; font-weight:500; }
.category-group { margin-top:18px; }
.category-domain { padding:8px 10px; font-size:12px!important; font-weight:800!important; line-height:1.45; color:#35445c; }
.category-skill { padding:10px 12px; margin:3px 0; font-size:13px!important; line-height:1.4; color:#586273; }
.category-skill small { color:#697587; font-size:11px; }
.category-sidebar button:hover { background:#f1f5ff; }
.category-sidebar button.selected { background:#e8eeff; color:#204bc2; }
.practice-main { min-width:0; }
#selectionTitle { font:800 clamp(26px,3vw,38px)/1.17 Manrope,sans-serif; letter-spacing:-1px; margin:12px 0 28px; }
.practice-filters { display:grid; grid-template-columns:1fr 1fr 1.1fr; gap:14px; padding:20px; background:white; border:1px solid #ccd4e4; border-radius:14px; }
.practice-filters label,.set-size { font-size:12px; color:#526078; font-weight:700; display:flex; flex-direction:column; gap:8px; }
.practice-filters select,.practice-filters input,.set-size select { width:100%; border:1px solid #bcc6d8; border-radius:7px; background:#fff; color:#1c2532; font:400 14px Inter,sans-serif; padding:11px 10px; min-height:42px; }
.practice-filters :disabled { background:#f2f4f8; color:#7c8491; }
.practice-start { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:22px; margin:28px 0 16px; }
.practice-start strong { font-size:20px; font-weight:800; }
.practice-start p { font-size:13px; color:#697483; line-height:1.6; margin:8px 0 0; max-width:310px; }
.start-controls { display:flex; gap:12px; align-items:flex-end; }
.start-controls .button { min-height:44px; font-size:13px; padding:0 18px; }
.set-size { max-width:150px; }
.practice-status { color:#687586; font-size:13px; line-height:1.6; }
.practice-empty { background:white; border:1px solid #d2dae7; border-radius:14px; padding:38px 28px; margin:22px 0; }
.practice-empty strong { font:800 24px Manrope,sans-serif; }
.practice-empty p { font-size:15px; color:#697483; line-height:1.7; }
.practice-empty a { display:inline-block; color:#2852c4; font-size:14px; font-weight:700; margin-top:14px; }
.question-table-wrap { overflow:auto; border:1px solid #d2dae7; border-radius:12px; margin-top:22px; background:white; }
.question-table { width:100%; border-collapse:collapse; font-size:13px; }
.question-table th { text-align:left; font-size:11px; color:#667487; font-weight:700; background:#f0f4fb; padding:15px 12px; }
.question-table td { border-top:1px solid #e3e8f1; padding:16px 12px; line-height:1.4; }
.question-table code { font-size:12px; }
.question-table .text-button { font-size:12px; white-space:nowrap; }
.difficulty-badge { display:inline-block; padding:4px 9px; border-radius:6px; font:700 11px Inter,sans-serif; white-space:nowrap; }
.level-E { background:#e7f3ec; color:#276847; }.level-M { background:#fff0d6; color:#865c19; }.level-H { background:#f1e8fa; color:#724799; }
.marked-label { display:block; color:#3c58a8; font-size:10px; margin-top:5px; }
.list-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:18px; font-size:12px; color:#647083; }
.source-note { font-size:11px; line-height:1.7; color:#707b89; margin:24px 0; }
#resumeSet { margin:12px 0; }
.session-active { overflow-anchor:none; }
.session-active .practice-layout { display:block; max-width:1480px; margin:0 auto 80px; padding:36px clamp(24px,4vw,62px) 58px; overflow-anchor:none; }
.session-active .category-sidebar,.session-active .practice-hero { display:none; }
.rw-session .practice-head h2 { font-family:Manrope,system-ui,sans-serif; font-size:clamp(32px,3vw,48px); font-weight:800; letter-spacing:-.045em; line-height:1.05; margin:6px 0 16px; }
.rw-session .practice-tools { align-items:center; }
.rw-session .review-control { border:0; background:transparent; }
.rw-session .review-control[aria-pressed="true"] .bookmark-icon path { fill:var(--primary); stroke:#174ea6; }
.rw-session .practice-footer { position:static; padding:0; margin-top:16px; border:0; box-shadow:none; flex-wrap:wrap; }
.rw-session .practice-footer [data-action="back"] { margin-right:auto; }
.practice-results h2 { font:800 clamp(28px,3vw,42px)/1.15 Manrope,sans-serif; letter-spacing:-1px; margin:12px 0; }
.rw-session fieldset.choices { border:0; padding:0; min-width:0; }
.rw-session .choices legend,.sr-only { position:absolute!important; width:1px!important; height:1px!important; margin:-1px!important; padding:0!important; border:0!important; overflow:hidden!important; clip-path:inset(50%)!important; white-space:nowrap!important; }
.rw-session label.choice { position:relative; }.rw-session label.choice input { position:absolute; opacity:0; width:1px; height:1px; }
.rw-session label.choice:has(input:checked) { border-color:#174ea6; background:#edf4ff; }.rw-session label.choice:has(input:checked) .choice-letter { background:#174ea6; border-color:#174ea6; color:#fff; }
.rw-session label.choice:has(input:focus-visible) { outline:3px solid #2671ff; outline-offset:3px; }
.rw-session label.choice.correct,.rw-session label.choice.correct:has(input:checked) { border-color:var(--green); background:var(--mint); }.rw-session label.choice.correct .choice-letter { background:var(--green); border-color:var(--green); color:white; }
.rw-session label.choice.wrong,.rw-session label.choice.wrong:has(input:checked) { border-color:var(--red); background:#fff0ed; }.rw-session label.choice.wrong .choice-letter { background:var(--red); border-color:var(--red); color:white; }
.rw-session .choice p { margin:0; }.rw-session .feedback { margin-top:25px; }.rw-session .feedback p+p { margin-top:12px; }
.source-html { overflow-wrap:break-word; }.source-html p:first-child { margin-top:0; }.source-html p:last-child { margin-bottom:0; }
.source-html ul,.source-html ol { padding-left:1.4em; }.source-html li { margin:10px 0; }.source-html blockquote { margin:18px 10px; }
.source-html figure { margin:0 0 24px; max-width:100%; overflow-x:auto; }.source-html svg { max-width:100%; height:auto; display:block; margin:0 auto; }.source-html table { width:100%; border-collapse:collapse; font-size:14px; line-height:1.45; }.source-html caption { font-weight:700; margin-bottom:12px; }.source-html th,.source-html td { border:1px solid #8d98a7; padding:9px 8px; }.source-html .paired_passage { font-weight:700; }.source-html .dap_copyright { font-size:11px; }.source-html u { text-underline-offset:3px; }
.rw-session-bottom { display:flex; justify-content:space-between; gap:20px; align-items:center; }.rw-session-bottom>.text-button { white-space:nowrap; font-size:13px; }
.practice-results { background:white; border:1px solid #cbd4e1; border-radius:18px; padding:45px; text-align:center; }.practice-results .result-review { margin:32px auto 0; max-width:700px; }.practice-results>p { color:#6b7482; }
@media(max-width:1050px){.practice-layout{padding:0 24px;gap:20px;grid-template-columns:240px minmax(0,1fr)}.practice-hero{padding:45px 24px 35px}.practice-filters{grid-template-columns:1fr 1fr}.practice-filters label:last-child{grid-column:1/-1}.question-table th:nth-child(2),.question-table td:nth-child(2){display:none}}
@media(max-width:700px){.practice-layout{display:block;padding:0 18px;scroll-margin-top:160px}.category-sidebar{margin-bottom:28px}.category-heading{display:flex;justify-content:space-between;align-items:center}.category-heading h2{margin:0}.category-group{margin-top:12px}.practice-hero{padding:35px 18px 25px}.practice-hero h1{font-size:38px}.practice-facts{gap:18px;font-size:12px}.practice-filters{padding:14px;gap:12px}.practice-start{align-items:flex-start}.start-controls{width:100%}.start-controls>.button{flex:1}.question-table th,.question-table td{padding:12px 8px}.question-table th:nth-child(4),.question-table td:nth-child(4){display:none}.practice-results{padding:30px 18px}.rw-session .passage-pane{padding:22px 18px}.rw-session .answer-pane{padding:22px 18px}.rw-session .practice-footer .button{padding:0 13px;font-size:12px}.rw-session-bottom{align-items:flex-start}.session-active .practice-layout{margin-top:0;padding:30px 14px 110px}}

.category-sidebar .category-toggle{display:none}@media(max-width:700px){.category-sidebar .category-toggle{display:inline-flex;width:auto;padding:8px;font-size:12px}.category-lessons{display:none}.category-sidebar #categoryNav{display:none}.category-sidebar.categories-open #categoryNav{display:block}.category-heading{padding:0;border:0}.category-sidebar{padding:14px}.category-sidebar.categories-open .category-heading{padding-bottom:12px;border-bottom:1px solid #e1e6f0}}

@media(max-width:700px){.category-sidebar .category-toggle{background:#edf2ff;border:1px solid #c2cde1;border-radius:8px;color:#28467d}}
.category-sidebar button { appearance:none; border:0; background:transparent; }
.category-sidebar button:focus-visible { outline:3px solid #315dec; outline-offset:2px; }
.category-sidebar button.selected { background:#e8eeff; }
.category-sidebar button:hover { background:#f1f5ff; }
@media(max-width:700px){.category-sidebar .category-toggle{background:#edf2ff;border:1px solid #c2cde1}}

@media(max-width:1050px){.rw-session .practice-footer{position:fixed;bottom:0;left:0;right:0;z-index:25;margin:0;padding:12px 18px;background:var(--paper);border-top:1px solid var(--line)}.session-active .practice-layout{padding-bottom:110px}}

/* Multiple difficulty filters. */
.practice-filters { grid-template-columns:minmax(250px,1.3fr) 1fr 1fr; align-items:start; }
.difficulty-filter { border:0; padding:0; margin:0; min-width:0; }
.difficulty-filter legend { padding:0; margin-bottom:8px; font-size:12px; font-weight:700; color:#526078; }
.difficulty-options { display:flex; gap:7px; flex-wrap:wrap; }
.difficulty-options label { flex-direction:row; align-items:center; gap:6px; padding:10px 8px; min-height:42px; border:1px solid #bcc6d8; border-radius:7px; cursor:pointer; color:#35445c; }
.difficulty-options label:has(:checked) { background:#e8eeff; border-color:#315dec; color:#204bc2; }
.difficulty-options input { appearance:auto; width:15px; height:15px; min-height:0; margin:0; padding:0; accent-color:#315dec; }
.difficulty-options label:has(:focus-visible) { outline:3px solid #315dec; outline-offset:2px; }
.difficulty-filter p { font-size:11px; color:#697483; margin:8px 0 0; line-height:1.5; }
/* Keep full-length practice tests fresh while building a question-bank set. */
.practice-test-filter { grid-column:1/-1; border-top:1px solid #e1e6f0; padding-top:16px; }
.practice-filters .practice-test-toggle { position:relative; display:flex; flex-direction:row; align-items:center; gap:12px; cursor:pointer; min-height:44px; }
.practice-test-toggle input { position:absolute; width:1px; height:1px; min-height:0; padding:0; border:0; overflow:hidden; clip-path:inset(50%); }
.switch-track { flex:0 0 44px; width:44px; height:26px; border:1px solid #7c8aa3; border-radius:20px; background:#dce3ef; position:relative; transition:background .15s; }
.switch-track::after { content:""; position:absolute; width:18px; height:18px; top:3px; left:3px; background:#fff; border-radius:50%; box-shadow:0 1px 3px #1c253233; transition:transform .15s; }
.practice-test-toggle input:checked+.switch-track { background:#315dec; border-color:#315dec; }
.practice-test-toggle input:checked+.switch-track::after { transform:translateX(18px); }
.practice-test-toggle input:focus-visible+.switch-track { outline:3px solid #315dec; outline-offset:3px; }
.practice-test-copy { display:flex; flex-direction:column; gap:4px; line-height:1.5; }
.practice-test-copy strong { font-size:14px; color:#35445c; }
.practice-test-copy>span { font-size:13px; font-weight:400; color:#606b78; }
@media(prefers-reduced-motion:reduce){.switch-track,.switch-track::after{transition:none}}
@media(max-width:1150px){.practice-filters{grid-template-columns:1fr 1fr}.difficulty-filter{grid-column:1/-1}.practice-filters>label:last-child{grid-column:auto}}
@media(max-width:700px){.difficulty-options label{padding:10px 12px}}

.subject-nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.subject-nav a{padding:10px 16px;border:1px solid #c7d6ea;border-radius:8px;color:#294c76;font-size:15px;font-weight:700;text-decoration:none;background:#fff}
.subject-nav a[aria-current="page"]{background:#173e73;color:#fff;border-color:#173e73}
.subject-nav a:hover{border-color:#2462b5}

/* Keep navigation in one predictable place with stationary click targets. */
.rw-session .practice-footer { position:fixed;bottom:0;left:0;right:0;z-index:25;margin:0;padding:12px max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -4px 16px #0000000a; }
.rw-session .practice-footer button { min-height:48px;touch-action:manipulation; }
.rw-session .practice-footer button:hover,.rw-session .practice-footer button:active { transform:none; }
.rw-session .practice-footer [data-action="next"] { min-width:140px; }
.session-active .practice-layout { padding-bottom:120px; }
