:root {
  color-scheme: light; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #233e33; background: #f6f7f2; font-synthesis: none;
  --green: #2f654d; --muted: #65766c; --border: #dce5dc;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; font-size: 18px; line-height: 1.65; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
button, .button, select, .choice { touch-action: manipulation; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 3px solid #a77a19; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.25; }
[hidden] { display: none !important; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1248px; margin: auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; line-height: 1.2; font-size: 19px; letter-spacing: -.5px; }
.wordmark strong { font-weight: 750; }
.brand-mark { width: 48px; height: 48px; display: block; flex: 0 0 auto; }
.subject-picker { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.site-menu { position: relative; flex: 0 0 auto; }
.menu-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: var(--green); font-size: 14px; font-weight: 650; cursor: pointer; list-style: none; touch-action: manipulation; }
.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle:hover, .site-menu[open] .menu-toggle { background: #edf4ed; border-color: #a8c1ad; }
.menu-divider { color: #91a497; }
.menu-chevron { display: block; width: 16px; height: 16px; flex: 0 0 16px; transform-origin: center; }
.site-menu[open] .menu-chevron { transform: rotate(180deg); }
.menu-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; width: min(320px, calc(100vw - 32px)); max-height: calc(100dvh - 104px); overflow: auto; padding: 6px 18px; border: 1px solid var(--border); border-radius: 15px; background: #fff; box-shadow: 0 12px 36px #233e3326; }
.menu-section { padding: 14px 0; }
.menu-section + .menu-section { border-top: 1px solid var(--border); }
.menu-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
#practice-modes { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--green); }
#practice-modes a, .menu-sign-in { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
#practice-modes a:hover, .menu-sign-in:hover { background: #f4f7f1; }
#practice-modes a[aria-current] { background: #edf4ed; font-weight: 700; }
#account-control { display: flex; align-items: stretch; flex-direction: column; gap: 12px; min-width: 0; font-size: 14px; }
#account-email { overflow-wrap: anywhere; }
#sign-out { min-height: 44px; font-size: 14px; padding: 8px 14px; }
.menu-account-status { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.menu-sign-in { font-size: 14px; color: var(--green); }
.auth-view { max-width: 560px; }
.auth-card { padding: clamp(24px, 5vw, 48px); }
.auth-card h1 { font-size: clamp(27px, 4vw, 34px); letter-spacing: -.035em; margin: 0 0 16px; }
.auth-card .hero-copy { font-size: 16px; }
.auth-notice { border-left: 3px solid #a77a19; padding: 12px 16px; background: #fff8e9; font-size: 16px; }
.auth-card .back-link { display: flex; width: fit-content; margin-top: 18px; }
.google-sign-in { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 1px solid #747775; border-radius: 4px; color: #1f1f1f; background: #fff; font: 500 14px/1.4 Arial, sans-serif; letter-spacing: .25px; text-decoration: none; }
.google-sign-in:hover { background: #f2f2f2; box-shadow: 0 1px 2px #0002; }
.google-sign-in svg { width: 20px; height: 20px; flex: 0 0 auto; }
.subject-stats { font-size: 15px; margin: 18px 0 0; color: var(--muted); }
.type-stats { font-size: 12px; color: var(--muted); margin: 12px 0 0; line-height: 1.8; }
.previously-incorrect { display: inline-block; margin: 0 0 18px; padding: 3px 9px; font-size: 13px; color: #9b1c1c; background: #fbe4e4; border-radius: 6px; }
.subject-picker select { min-height: 44px; min-width: 110px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #233e33; font-weight: 650; }
.main { width: min(1200px, calc(100% - 48px)); margin: 40px auto 64px; min-height: 48vh; }
.main:focus { outline: none; }
.hero { padding: 25px 0 42px; max-width: 820px; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .13em; color: var(--green); margin: 0 0 15px; }
.hero h1 { margin: 0 0 22px; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.055em; line-height: 1.08; font-weight: 750; }
.green-text { color: var(--green); }
.hero-copy { max-width: 650px; color: var(--muted); margin: 0 0 22px; }
.practice-facts { display: flex; gap: 9px 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.practice-facts span + span::before { content: "·"; margin-right: 20px; color: #859589; }
.section-heading { margin: 0 0 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-heading h2 { font-size: 23px; letter-spacing: -.025em; margin: 0; }
.section-heading p { font-size: 14px; margin: 0; }
.muted { color: var(--muted); }
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.type-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 17px; padding: 24px; text-decoration: none; transition: border-color 120ms, transform 120ms, box-shadow 120ms; }
.type-card:hover { border-color: #6f9580; transform: translateY(-2px); box-shadow: 0 8px 24px #233e3308; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.type-number { font-size: 12px; font-weight: 700; color: var(--green); background: #edf4ed; border-radius: 8px; padding: 5px 9px; line-height: 1.4; }
.card-arrow { font-size: 21px; color: #6e8575; line-height: 1; }
.type-card h3 { font-size: 20px; letter-spacing: -.025em; margin: 0 0 10px; }
.card-description { font-size: 14px; color: var(--muted); margin: 0 0 22px; flex: 1; line-height: 1.6; }
.question-count { font-size: 12px; font-weight: 650; color: #526b5d; }
.site-footer { border-top: 1px solid var(--border); padding: 23px 24px 30px; text-align: center; color: var(--muted); font-size: 12px; }
.site-footer p { margin: 3px 0; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 24px; margin: 10px 0 6px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); text-underline-offset: 3px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 10px; text-decoration: none; font-size: 14px; color: var(--green); font-weight: 650; }
.practice-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.practice-header .eyebrow { margin-bottom: 9px; }
.practice-header h1 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; margin: 0; }
.progress-wrap { min-width: 150px; text-align: right; flex-shrink: 0; }
.progress-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.round-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
progress { display: block; height: 6px; width: 150px; border: 0; border-radius: 10px; overflow: hidden; accent-color: var(--green); background: #e2e9e0; }
progress::-webkit-progress-bar { background: #e2e9e0; }
progress::-webkit-progress-value { background: var(--green); border-radius: 10px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px; min-width: 0; }
.practice-layout { max-width: 780px; margin: auto; }
.practice-layout.with-material { max-width: none; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.how-to-answer { margin: 0 0 24px; padding: 16px 20px; background: #edf4ed; border: 1px solid #d5e3d5; border-radius: 12px; font-size: 16px; line-height: 1.6; }
.how-to-answer h2 { font-size: 16px; margin: 0 0 6px; }
.how-to-answer p { margin: 0; }
.reading-practice { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.reading-practice .practice-layout.with-material { max-width: 960px; grid-template-columns: minmax(0, 1fr); }
.reading-practice .how-to-answer { max-width: 960px; margin-inline: auto; }
.reading-practice .material-panel { padding: 24px 30px; background: #fffefb; }
.reading-body { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.58; color: #242c29; }
.reading-body .reading-paragraph { margin-bottom: .78em; }
.reading-body .line-number { font-family: ui-sans-serif, system-ui, sans-serif; }
.reading-back { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 5; min-height: 44px; width: max-content; max-width: calc(100% - 24px); font-size: 14px; box-shadow: 0 3px 14px #233e3326; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; --safe-left: env(safe-area-inset-left, 0px); --safe-right: env(safe-area-inset-right, 0px); --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); }
.reading-back.is-dragging { cursor: grabbing; }
.reading-back .drag-grip { font-size: 19px; line-height: 1; opacity: .8; }
.panel-title { font-size: 20px; margin: 0; letter-spacing: -.02em; }
.question-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jump-link { font-size: 13px; color: var(--green); display: inline-flex; align-items: center; min-height: 44px; }
.material-panel > .jump-link { margin-bottom: 15px; }
.source-label { color: var(--muted); font-size: 13px; margin: 10px 0 19px; }
.instructions { font-size: 13px; color: var(--muted); padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.instructions summary { cursor: pointer; min-height: 44px; }
.instructions p { margin: 10px 0 0; }
.source-paragraph, .reading-paragraph { margin: 0 0 18px; white-space: pre-wrap; }
.source-heading { font-size: 20px; margin: 20px 0 14px; }
.material-title { color: #526b5d; font-size: 14px; margin: 14px 0 17px; }
.source-material + .source-material { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 24px; }
.reading-line { display: grid; grid-template-columns: minmax(0, 1fr) 2ch; gap: 12px; align-items: baseline; }
.line-number { text-align: right; color: var(--muted); font-size: 12px; }
.line-text { min-width: 0; }
.mark-bold { font-weight: 700; }
.mark-underline { text-decoration: underline; text-underline-offset: 3px; }
.mark-italic { font-style: italic; }
.mark-superscript { vertical-align: super; font-size: .75em; }
.mark-subscript { vertical-align: sub; font-size: .75em; }
.blank { white-space: nowrap; display: inline-block; color: #526b5d; padding: 0 4px; }
.target-blank, .target-word { background: #edf4d9; outline: 1px solid #bdd08d; border-radius: 3px; padding: 1px 4px; }
.source-error { text-decoration: underline; text-underline-offset: 3px; }
.item-number { text-decoration: none; font-size: .7em; color: var(--muted); }
.source-figure { margin: 16px 0 24px; }
.source-image { display: block; width: 100%; height: auto; border-radius: 8px; }
.image-transcription { white-space: pre-wrap; font-size: 14px; line-height: 1.65; margin-top: 16px; padding: 16px; background: #f7f9f4; border-radius: 8px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 14px 0 20px; border-radius: 8px; }
.table-frame { min-width: 0; }
.table-hint { display: none; }
.can-scroll > .table-hint { display: block; font-size: 12px; color: var(--muted); margin: -10px 0 18px; }
.question-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.question-table th, .question-table td { border: 1px solid var(--border); padding: 12px; vertical-align: top; min-width: 90px; overflow-wrap: anywhere; }
.question-table th { background: #f1f5ed; text-align: left; }
.wide-answer-table { min-width: 480px; table-layout: fixed; }
.wide-answer-table th:nth-child(2), .wide-answer-table td:nth-child(2) { width: 120px; }
.question-table p { margin: 0; }
.word-bank-material .question-table { font-size: 14px; }
.word-bank-material .question-table td { min-width: 78px; padding: 8px; }
.word-bank-section { margin-bottom: 24px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.question-prompt { margin: 0 0 20px; }
.choices { border: 0; padding: 0; margin: 22px 0; display: grid; gap: 10px; min-width: 0; }
.choice { display: flex; align-items: start; gap: 12px; border: 1px solid var(--border); border-radius: 11px; padding: 14px; cursor: pointer; min-height: 56px; }
.choice:hover { background: #f8faf5; }
.choice:has(input:checked) { background: #edf5ed; border-color: #71977a; }
.choice input { accent-color: var(--green); width: 18px; height: 18px; margin: 5px 0 0; flex-shrink: 0; }
.choice-number { font-size: 13px; font-weight: 700; color: #637b69; margin-top: 2px; }
.choice-text { min-width: 0; }
.choice-text p { margin: 0; }
.answer-field { position: relative; display: inline-flex; flex-direction: column; width: 100%; min-width: 0; vertical-align: middle; margin: 7px 0; }
.standalone { display: flex; margin-bottom: 18px; }
.field-label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 7px; }
.answer-input { width: 100%; min-width: 0; min-height: 48px; color: #233e33; background: #fff; border: 1px solid #aebfb0; border-radius: 8px; padding: 11px 12px; line-height: 1.6; }
.answer-checkbox { width: 22px; height: 22px; accent-color: var(--green); cursor: pointer; margin: 10px 0; }
textarea.answer-input { resize: vertical; }
.answer-input:disabled { background: #f3f5f0; color: #4a6051; opacity: 1; -webkit-text-fill-color: #4a6051; }
.answer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; border: 1px solid var(--green); padding: 11px 19px; border-radius: 10px; background: var(--green); color: #fff; font-weight: 650; font-size: 15px; text-decoration: none; line-height: 1.5; cursor: pointer; }
.button:hover:not(:disabled) { background: #234f3b; }
.button.secondary { background: #fff; color: var(--green); border-color: #c4d3c4; }
.button.secondary:hover { background: #f2f6ee; }
.feedback { margin-top: 26px; padding: 22px; border: 1px solid #cddfc7; background: #f1f6ec; border-radius: 12px; }
.feedback.needs-review { border-color: #e5d5c1; background: #faf5ec; }
.feedback h3 { margin: 0 0 16px; font-size: 20px; }
.reference-entry + .reference-entry { border-top: 1px solid #dce5d6; padding-top: 13px; margin-top: 16px; }
.reference-entry h4 { font-size: 14px; margin: 0 0 8px; }
.reference-choice, .reference-text { margin: 0 0 12px; font-weight: 650; white-space: pre-wrap; }
.explanation { color: #4e6657; font-size: 15px; white-space: pre-wrap; margin: 0; }
.next-button { margin-top: 23px; }
.self-check-prompt { font-size: 14px; margin: 22px 0 10px; }
.retry-note { font-size: 14px; color: #9b1c1c; margin: 18px 0 0; }
.self-check-options { min-width: 0; border: 0; padding: 0; margin: 20px 0 0; }
.self-check-options legend { font-size: 15px; font-weight: 650; padding: 0; }
.self-check-hint { font-size: 13px; color: var(--muted); margin: 7px 0 10px; }
.self-check-option { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 0; cursor: pointer; font-size: 15px; }
.self-check-option input { flex: 0 0 auto; width: 19px; height: 19px; margin: 0; cursor: pointer; }
.self-check-option.correct { color: var(--green); }
.self-check-option.correct input { accent-color: var(--green); }
.self-check-option.incorrect { color: #9b1c1c; }
.self-check-option.incorrect input { accent-color: #b32626; }
.self-check-option:has(input:disabled) { opacity: .65; cursor: wait; }
.request-error { background: #fff4ed; border: 1px solid #e5cdb8; border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; color: #82442a; font-size: 15px; }
.request-error p { margin: 0 0 8px; }
.request-error p:last-child { margin: 0; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.complete-view { max-width: 760px; padding-top: 30px; }
.complete-card { text-align: center; padding: 52px 32px; border: 1px solid var(--border); background: #fff; border-radius: 22px; }
.complete-tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #e8f1e1; color: var(--green); font-size: 30px; margin: 0 auto 26px; }
.complete-card h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; margin: 12px 0 20px; }
.complete-copy { font-size: 20px; }
.complete-card .button { margin-top: 22px; }
.skip-link { position: absolute; left: 16px; top: -100px; background: #fff; color: var(--green); padding: 10px 16px; z-index: 10; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-script { padding: 24px; text-align: center; }
@media (max-width: 1023px) {
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-layout.with-material { grid-template-columns: minmax(0, 1fr); max-width: 800px; }
}
@media (max-width: 599px) {
  .header-inner { padding: 16px; gap: 10px; }
  .wordmark { font-size: 16px; gap: 8px; }
  .brand-mark { width: 40px; height: 40px; }
  .subject-picker select { min-width: 94px; font-size: 14px; padding: 8px 10px; }
  .main { width: calc(100% - 32px); margin-top: 24px; margin-bottom: 40px; }
  .hero { padding: 15px 0 30px; }
  .hero h1 { font-size: 43px; }
  .hero-copy { font-size: 16px; }
  .practice-facts { gap: 7px 13px; font-size: 12px; }
  .practice-facts span + span::before { margin-right: 11px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 22px; margin-bottom: 8px; }
  .type-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .type-card { padding: 20px; }
  .card-top { margin-bottom: 17px; }
  .card-description { margin-bottom: 16px; }
  .practice-header { align-items: start; flex-direction: column; gap: 17px; margin-bottom: 21px; }
  .practice-header h1 { font-size: 30px; }
  .progress-wrap { text-align: left; width: 100%; }
  progress { width: 100%; }
  .card { padding: 20px; border-radius: 14px; }
  .reading-practice .material-panel { padding: 20px 16px; }
  .practice-layout.with-material { gap: 16px; }
  .question-heading { flex-wrap: wrap; }
  .question-table th, .question-table td { min-width: 90px; padding: 9px; }
  .feedback { padding: 17px; }
  .answer-actions .button { flex: 1; padding-inline: 10px; white-space: nowrap; }
  .complete-view { padding-top: 10px; }
  .complete-card { padding: 34px 22px; }
  .complete-copy { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
