@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url('/toefl/fonts/open-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url('/toefl/fonts/open-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url('/toefl/fonts/open-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url('/toefl/fonts/open-sans-latin-700-normal.woff2') format('woff2'); }
.toefl-page { --bg: #f8f8f5; --text: #202b3b; --muted: #626b78; --line: #dce0e4; --brand: #294f85; background: var(--bg); font-family: "Open Sans", Arial, "PingFang SC", sans-serif; }
.toefl-page .site-wrap { width: min(1240px, calc(100% - 80px)); }
.toefl-page .site-header { background: var(--bg); }
.toefl-page .header-inner { min-height: 76px; }
.toefl-page .brand { font-size: 22px; }
.toefl-page .portal-main { padding-top: 24px; }
.toefl-page .breadcrumbs { font-size: 12px; margin-bottom: 22px; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 10; padding: 12px; background: #fff; }
.skip-link:focus { top: 12px; }
.practice-intro { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-bottom: 18px; }
.section-kicker { margin: 0 0 12px; color: var(--brand); font-size: 10px; font-weight: 650; letter-spacing: 1.6px; }
.toefl-page .page-title { font: 500 clamp(35px, 4.8vw, 52px)/1.12 "Open Sans", Arial, sans-serif; letter-spacing: -1.9px; }
.toefl-page .page-title span { display: block; margin: 15px 0 0; font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: .5px; color: var(--text); }
.toefl-page .page-description { margin: 12px 0 0; font-size: 14px; }
.edition { margin: 0; padding: 0 0 0 30px; border-left: 1px solid var(--line); font-size: 42px; line-height: 1; color: var(--brand); }
.edition span { display: block; margin-top: 13px; font-size: 12px; line-height: 1.4; color: var(--muted); letter-spacing: 2px; }
.toefl-page .practice-nav { margin: 0 0 28px; gap: 32px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.practice-nav a { position: relative; padding: 17px 0; text-decoration: none; transition: color .18s; }
.practice-nav a::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: -1px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.practice-nav a:hover, .practice-nav .nav-current { color: var(--brand); }
.practice-nav a:hover::after, .practice-nav .nav-current::after { transform: scaleX(1); }
.toefl-page .question-bank { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.bank-sidebar { position: sticky; top: 28px; padding-right: 27px; border-right: 1px solid var(--line); }
.sidebar-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sidebar-heading h2 { font-size: 15px; font-weight: 650; }
#bankReset { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 4px 0 4px 10px; cursor: pointer; }
#bankReset:hover { color: var(--brand); }
.toefl-page .bank-filters { grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 22px 0 20px; }
.toefl-page .bank-filters label { font-size: 12px; color: var(--muted); }
.toefl-page .bank-filters input, .toefl-page .bank-filters select { margin-top: 8px; border-radius: 4px; padding: 11px 9px; font-size: 12px; min-height: 44px; background: #fff; }
.bank-type-filter { min-width: 0; margin: 0; padding: 0; border: 0; }
.bank-type-filter legend { padding: 0; color: var(--muted); font-size: 12px; }
.bank-type-options { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bank-type-options button { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.5; text-align: left; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.bank-type-options button:hover { border-color: var(--brand); color: var(--brand); }
.bank-type-options button[aria-pressed="true"] { border-color: var(--brand); background: #edf2f7; color: var(--brand); }
.practice-guide { margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--line); }
.practice-guide h3 { margin: 0 0 12px; font-size: 12px; font-weight: 650; }
.practice-guide p, .practice-guide a { font-size: 11px; color: var(--muted); }
.practice-guide p { margin: 0 0 10px; }
.practice-guide a { display: inline-block; color: var(--brand); text-underline-offset: 4px; }
.bank-workspace { min-width: 0; }
.bank-heading .section-kicker { margin-bottom: 9px; }
.bank-heading h2 { font-size: 22px; letter-spacing: -.5px; }
.bank-heading .bank-summary { max-width: 700px; margin: 10px 0 22px; font-size: 12px; }
.bank-results-toolbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.bank-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.question-text-control { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 11px; cursor: pointer; }
.question-text-control input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.question-text-track { position: relative; width: 30px; height: 18px; flex-shrink: 0; border-radius: 10px; background: #7c8692; transition: background .18s; }
.question-text-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .18s; }
.question-text-control input:checked + .question-text-track { background: var(--brand); }
.question-text-control input:checked + .question-text-track::after { transform: translateX(12px); }
.question-text-control input:focus-visible + .question-text-track { outline: 2px solid var(--brand); outline-offset: 4px; }
.practice-timer { display: flex; align-items: center; gap: 4px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--brand); }
#timerDisplay { min-width: 50px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.practice-timer button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 3px; background: transparent; color: var(--brand); font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.practice-timer button:hover { background: #e9eef4; }
.practice-timer[data-state="running"] #timerDisplay { color: var(--text); }
.practice-timer[data-state="finished"] #timerDisplay { text-decoration: underline; text-underline-offset: 5px; }
#timerReset svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.timer-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#bankStatus { margin: 0; font-size: 12px; }
.toefl-page .speed-control { font-size: 11px; }
.toefl-page .speed-control select { border: 0; background: transparent; padding: 6px 4px; font-weight: 600; color: var(--brand); }
.toefl-page .bank-question { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 28px 0 30px; }
.toefl-page .bank-question > h3 { margin: 0; font-size: 24px; font-weight: 400; line-height: 1.2; color: var(--brand); }
.question-body { min-width: 0; }
.toefl-page .bank-question.has-question-image { grid-template-columns: 44px minmax(0, 1fr) minmax(180px, 28%); align-items: start; }
.question-image { display: block; width: 100%; height: auto; max-height: 280px; object-fit: contain; border-radius: 2px; }
.bank-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); align-items: center; gap: 32px; margin: 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scene-title { margin: 0 0 9px; color: var(--brand); font-size: 14px; font-weight: 600; }
.scene-context { margin: 0; color: var(--muted); font-size: 11px; }
.scene-image { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; border-radius: 2px; }
.toefl-page .question-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; margin: 0 0 14px; font-size: 10px; letter-spacing: .15px; }
.question-type { color: var(--brand); font-weight: 650; }
.question-context { color: var(--muted); }
.toefl-page .question-prompt { font-size: 22px; font-weight: 400; line-height: 1.55; letter-spacing: -.2px; margin: 0 0 20px; }
.toefl-page .prompt-play { display: block; width: 100%; padding: 0; border: 0; border-radius: 2px; background: transparent; color: var(--text); font-family: inherit; text-align: left; cursor: pointer; }
.prompt-word { display: inline-block; max-width: 100%; white-space: pre; background-image: linear-gradient(#dbe8f3, #dbe8f3); background-repeat: no-repeat; background-size: clamp(0%, calc((var(--audio-position, 0) - var(--word-start)) * 100% / var(--word-length)), 100%) 100%; }
.prompt-play:hover .prompt-word { color: var(--brand); }
.question-listen { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #c9d4e0; border-radius: 4px; background: transparent; color: var(--brand); font-family: inherit; cursor: pointer; }
.question-listen:hover, .question-listen[aria-pressed="true"] { background: #edf2f7; border-color: var(--brand); }
.question-listen svg { width: 16px; height: 16px; fill: currentColor; }
.question-listen .listen-pause { display: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.question-listen[aria-pressed="true"] .listen-play { display: none; }
.question-listen[aria-pressed="true"] .listen-pause { display: block; }
.question-audio { margin: 0 0 18px; padding: 12px 15px 10px; background: #eef1f3; border-radius: 5px; }
.question-audio-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.question-audio-heading span { font-size: 11px; color: var(--brand); font-weight: 600; }
.question-audio-heading .prompt-instruction { font-size: 10px; color: var(--muted); font-weight: 400; }
.question-audio audio { display: block; width: 100%; height: 40px; }
.audio-unavailable { margin: -5px 0 16px; color: var(--muted); font-size: 11px; }
.toefl-page .question-scenario { margin-bottom: 12px; font-size: 12px; }
.toefl-page .question-scenario summary { font-size: 11px; }
.question-scenario p { font-size: 13px; line-height: 1.7; }
.toefl-page .question-answer { padding: 12px 0 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.toefl-page .question-answer summary { font-size: 12px; }
.toefl-page .question-answer .answer-text { padding: 15px 18px; margin: 15px 0 12px; border-left: 2px solid var(--brand); background: #f0f3f6; font-size: 16px; line-height: 1.8; }
.speaking-hints { margin: 20px 0; padding: 17px 0; border-top: 1px solid var(--line); }
.speaking-hints > summary { font-size: 14px; font-weight: 600; cursor: pointer; }
.speaking-hints > summary, .toefl-page .question-answer > summary { color: var(--brand); }
.speaking-hints > summary:hover, .toefl-page .question-answer > summary:hover { color: #183861; }
.hint-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 14px; }
.hint-columns h5 { margin: 0 0 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.hint-columns ul { padding: 0 0 0 16px; margin: 0; }
.hint-columns li { margin: 5px 0; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.toefl-page .use-voice-text { padding: 8px 12px; font-size: 11px; background: transparent; border-color: #c9d4e0; transition: background .2s, color .2s; }
.toefl-page .use-voice-text:hover { background: var(--brand); color: #fff; }
.bank-question.is-playing > h3 { font-weight: 700; }
.bank-question.is-playing .question-audio { box-shadow: inset 3px 0 var(--brand); }
.toefl-page .bank-pagination { justify-content: space-between; border-top: 1px solid var(--line); font-size: 12px; }
.toefl-page .bank-pagination button { min-height: 40px; padding: 9px 17px; border-radius: 4px; font-size: 12px; transition: border-color .2s; }
.bank-pagination button:not(:disabled):hover { border-color: var(--brand); }
.toefl-page .bank-downloads { font-size: 12px; gap: 10px 22px; text-underline-offset: 4px; }
.toefl-page .bank-workspace > .bank-note { font-size: 11px; }
.toefl-page .voice-practice, .classroom-audio { padding-left: 308px; }
.toefl-page .voice-practice { padding-top: 35px; padding-bottom: 35px; margin-top: 44px; }
.toefl-page .voice-practice h2 { font-size: 23px; }
.toefl-page .voice-practice > p:not(.section-kicker) { font-size: 12px; }
.toefl-page .voice-practice .section-kicker { color: var(--brand); font-size: 10px; }
.toefl-page #voiceForm > label { font-size: 12px; }
.toefl-page .voice-practice textarea { padding: 16px; font: 16px/1.7 "Open Sans", Arial, sans-serif; border-radius: 4px; }
.toefl-page .voice-actions label, .toefl-page .voice-button { font-size: 12px; }
.toefl-page .voice-button:disabled { cursor: not-allowed; }
.toefl-page .audio-toolbar h2 { font-size: 23px; }
.toefl-page .audio-toolbar .bank-note { margin: 0; font-size: 11px; }
.toefl-page .audio-row { grid-template-columns: 24px 1fr; gap: 16px; }
.toefl-page .audio-heading h3 { font-size: 23px; font-weight: 400; line-height: 1.2; }
.toefl-page .audio-download { font-size: 11px; }
.toefl-page .site-footer { padding-top: 24px; border-top: 1px solid var(--line); }
.toefl-page input:focus-visible, .toefl-page a:focus-visible, .toefl-page button:focus-visible, .toefl-page select:focus-visible, .toefl-page textarea:focus-visible, .toefl-page summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .toefl-page .portal-main { animation: none; }
  .practice-intro { animation: practice-enter .45s ease-out both; }
  .practice-nav { animation: practice-enter .45s ease-out .06s both; }
  .question-body { animation: practice-enter .25s ease-out both; }
  .question-answer[open] .answer-text { animation: practice-enter .2s ease-out both; }
  @keyframes practice-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .bank-type-options button, .question-text-track, .question-text-track::after { transition: none; }
}
@media (max-width: 1000px) {
  .toefl-page .site-wrap { width: calc(100% - 48px); }
  .toefl-page .question-bank { grid-template-columns: 225px minmax(0, 1fr); gap: 30px; }
  .bank-sidebar { padding-right: 20px; }
  .toefl-page .bank-question.has-question-image { grid-template-columns: 44px minmax(0, 1fr); }
  .question-image { grid-column: 2; width: min(100%, 300px); }
  .bank-scene { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .scene-image { width: min(100%, 340px); }
  .toefl-page .voice-practice, .classroom-audio { padding-left: 255px; }
}
@media (max-width: 760px) {
  .toefl-page .site-wrap { width: calc(100% - 36px); }
  .toefl-page .header-inner { min-height: 66px; }
  .toefl-page .brand { font-size: 19px; }
  .toefl-page .breadcrumbs, .practice-intro .section-kicker, .edition { display: none; }
  .practice-intro { align-items: flex-start; gap: 15px; padding-bottom: 20px; }
  .toefl-page .page-title { font-size: clamp(32px, 5.7vw, 42px); letter-spacing: -1px; }
  .toefl-page .page-title span { margin-top: 12px; font-size: 15px; }
  .toefl-page .page-description { font-size: 12px; }
  .section-kicker { font-size: 9px; letter-spacing: 1px; }
  .toefl-page .practice-nav { gap: 24px; margin-bottom: 24px; font-size: 12px; }
  .toefl-page .question-bank { display: block; }
  .bank-sidebar { position: static; padding: 0 0 22px; border: 0; }
  .toefl-page .bank-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; margin-top: 14px; margin-bottom: 16px; }
  .bank-type-filter { grid-column: 1 / -1; }
  .bank-type-options { flex-direction: row; flex-wrap: wrap; }
  .bank-type-options button { flex: 1 1 auto; text-align: center; }
  .toefl-page .bank-filters input, .toefl-page .bank-filters select { font-size: 12px; padding-inline: 7px; }
  .practice-guide { display: none; }
  .bank-heading { border-top: 1px solid var(--line); padding-top: 24px; }
  .bank-heading h2 { font-size: 20px; }
  .bank-results-toolbar > #bankStatus { flex-basis: 100%; }
  .bank-tools { width: 100%; justify-content: space-between; gap: 8px; }
  .practice-timer { padding-left: 0; border-left: 0; }
  .toefl-page .bank-question { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .toefl-page .bank-question.has-question-image { grid-template-columns: 30px minmax(0, 1fr); }
  .toefl-page .bank-question > h3 { font-size: 20px; }
  .toefl-page .question-prompt { font-size: 21px; }
  .toefl-page .question-meta { gap: 5px 10px; font-size: 10px; }
  .question-audio { padding: 10px 9px 8px; }
  .toefl-page .question-answer .answer-text { font-size: 16px; padding: 12px 14px; }
  .hint-columns { grid-template-columns: 1fr; gap: 14px; }
  .toefl-page .voice-practice, .classroom-audio { padding-left: 0; }
  .toefl-page .voice-practice { margin-top: 30px; }
  .toefl-page .audio-toolbar { align-items: flex-start; flex-direction: column; gap: 7px; }
}
.question-audio.prompt-audio { background: transparent; padding: 0; }
.prompt-audio .question-audio-heading { justify-content: flex-start; }
.prompt-audio .question-audio-heading > span:first-child { display: none; }
.prompt-audio audio[hidden] { display: none; }
.bank-question.is-playing .prompt-audio { box-shadow: none; }
