/* HSK exam compositions built on the canonical .lw-ui primitives. */
.hsk-exams h1,.hsk-exams h2{font-family:var(--lw-ds-font-editorial);font-weight:400;text-wrap:balance;letter-spacing:-.025em}
.hsk-exams h1{font-size:clamp(2.5rem,5.5vw,4rem);line-height:1.08;margin:24px 0}
.hsk-exams h2{font-size:clamp(1.75rem,3.5vw,2.25rem);line-height:1.2;margin:40px 0 16px}
.hsk-exams h3{font-size:1.25rem;line-height:1.35;margin:24px 0 12px}
.hsk-exams p{max-width:70ch;line-height:1.65;margin-block:12px}.hsk-exams a{text-underline-offset:.18em}.hsk-exams [hidden]{display:none!important}.hsk-exams .exam-editions,.hsk-exams .exam-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:24px 0}.hsk-exams .exam-editions a{padding:10px 16px;border-bottom:2px solid transparent;text-decoration:none}.hsk-exams .exam-editions a[aria-current]{border-color:var(--lw-ds-accent-text);font-weight:600}.hsk-exams .exam-opening{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(240px,.8fr);gap:40px;align-items:center;margin:24px 0 48px}.hsk-exams .exam-opening h1{margin-top:0}.hsk-exams .exam-opening img{display:block;width:100%;height:auto;border-radius:var(--lw-ds-radius-web-feature)}.hsk-exams .exam-muted{color:var(--lw-ds-muted);font-size:.9375rem}.hsk-exams .exam-levels{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0 48px}.hsk-exams .exam-levels .lw-cell{min-height:190px}.hsk-exams .exam-levels .lw-cell__body{min-width:0}.hsk-exams .exam-outline{width:100%;border-collapse:collapse;margin:24px 0;font-variant-numeric:tabular-nums}.hsk-exams .exam-outline th,.hsk-exams .exam-outline td{padding:14px 12px;border-bottom:1px solid var(--lw-ds-line);text-align:left}.hsk-exams .exam-outline th:first-child,.hsk-exams .exam-outline td:first-child{padding-left:0}.hsk-exams .exam-outline th{font-size:.9375rem;font-weight:600}.hsk-exams .exam-guidance{max-width:76ch;margin:40px 0}.hsk-exams .exam-guidance li{line-height:1.65;margin:10px 0}.hsk-exams .exam-related{border-top:1px solid var(--lw-ds-line);margin-top:48px;padding-top:24px;display:flex;gap:16px 24px;flex-wrap:wrap}.hsk-exams .exam-intro{max-width:800px}.hsk-exams .exam-mode{display:flex;flex-wrap:wrap;gap:12px 24px;margin:20px 0}.hsk-exams .exam-intro audio{width:min(100%,380px)}.hsk-exams .exam-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;border-bottom:1px solid var(--lw-ds-line);padding:16px 0;margin-bottom:24px}.hsk-exams .exam-toolbar h2{font-family:var(--lw-ds-font-interface);font-size:1.25rem;font-weight:600;margin:0}.hsk-exams .exam-timer{font-variant-numeric:tabular-nums;font-size:1.5rem;white-space:nowrap}.hsk-exams .exam-timer[data-low=true]{color:var(--lw-ds-danger)}.hsk-exams .exam-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:40px;align-items:start}.hsk-exams .exam-nav details{border-bottom:1px solid var(--lw-ds-line);padding-bottom:12px}.hsk-exams .exam-nav summary{min-height:44px;cursor:pointer;font-weight:600;display:list-item;padding-block:12px}.hsk-exams .exam-numbers{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.hsk-exams .exam-numbers button{min-width:44px;min-height:44px;border:1px solid var(--lw-ds-line);border-radius:var(--lw-ds-radius-web-control);background:var(--lw-ds-field);color:var(--lw-ds-ink);font:inherit;font-variant-numeric:tabular-nums}.hsk-exams .exam-numbers button[data-answered=true]{background:var(--lw-ds-gradient-pastel-sage);color:var(--lw-ds-gradient-pastel-sage-ink)}.hsk-exams .exam-numbers button[aria-current]{box-shadow:inset 0 0 0 2px var(--lw-ds-accent-text);font-weight:700}.hsk-exams .exam-numbers button[data-flagged=true]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.25em}.hsk-exams .exam-question{min-width:0;max-width:760px}.hsk-exams .exam-question h3{margin-top:0}.hsk-exams .exam-prompt,.hsk-exams .exam-stimulus{white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--lw-ds-font-hanzi);font-size:1.5rem;line-height:1.8;margin:16px 0}.hsk-exams .exam-stimulus{padding-bottom:20px;border-bottom:1px solid var(--lw-ds-line)}.hsk-exams .exam-pinyin{font-family:var(--lw-ds-font-editorial);line-height:1.65;color:var(--lw-ds-muted);font-size:1.0625rem;white-space:pre-wrap}.hsk-exams .exam-audio{margin:16px 0 24px}.hsk-exams .exam-audio audio,.hsk-exams .exam-recording audio{display:block;max-width:100%;width:100%;margin:8px 0}.hsk-exams .exam-audio-error{color:var(--lw-ds-danger)}.hsk-exams .exam-options{border:0;padding:0;margin:24px 0;min-width:0}.hsk-exams .exam-options legend{font-size:.9375rem;margin-bottom:12px}.hsk-exams .exam-option{display:flex;align-items:flex-start;gap:12px;min-height:52px;padding:14px 16px;margin-bottom:10px;border:1px solid var(--lw-ds-line);border-radius:var(--lw-ds-radius-web-control);background:var(--lw-ds-field);cursor:pointer}.hsk-exams .exam-option:has(input:checked){border-color:var(--lw-ds-accent-text);box-shadow:inset 0 0 0 1px var(--lw-ds-accent-text)}.hsk-exams .exam-option input{margin-top:8px;accent-color:var(--lw-ds-accent-text);width:20px;height:20px;flex:0 0 20px}.hsk-exams .exam-option .exam-choice-text{font-family:var(--lw-ds-font-hanzi);font-size:1.25rem;line-height:1.65}.hsk-exams .exam-option .exam-pinyin{display:block}.hsk-exams .exam-option img{display:block;width:100%;height:auto;border-radius:var(--lw-ds-radius-web-control);margin:8px 0}.hsk-exams .exam-picture-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hsk-exams .exam-picture-options .exam-option{margin:0;min-width:0;padding:12px;display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px}.hsk-exams .exam-picture-options .exam-option img{grid-column:1/-1;margin:0}.hsk-exams .exam-option-letter{font-size:1rem;font-weight:600}.hsk-exams .exam-pictures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}.hsk-exams .exam-pictures figure{margin:0}.hsk-exams .exam-pictures img{display:block;width:100%;height:auto;border-radius:var(--lw-ds-radius-image)}.hsk-exams .exam-pictures figcaption{font-size:.875rem;margin-top:4px;color:var(--lw-ds-muted)}.hsk-exams .exam-answer-label{display:block;font-size:.9375rem;font-weight:600;margin:16px 0 8px}.hsk-exams .exam-answer{display:block;width:100%;min-height:180px;resize:vertical;background:var(--lw-ds-field);border:1px solid var(--lw-ds-line);border-radius:var(--lw-ds-radius-web-control);color:var(--lw-ds-ink);padding:16px;font:1.25rem/1.8 var(--lw-ds-font-hanzi);caret-color:var(--lw-ds-accent-text)}.hsk-exams .exam-answer--short{min-height:58px}.hsk-exams .exam-answer-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:8px;color:var(--lw-ds-muted);font-size:.875rem}.hsk-exams .exam-question-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;margin:32px 0}.hsk-exams .exam-question-actions .exam-actions{margin:0}.hsk-exams .exam-notice{margin:16px 0;padding:16px 20px;background:var(--lw-ds-surface);border:1px solid var(--lw-ds-line);border-radius:var(--lw-ds-radius-web-control);line-height:1.6}.hsk-exams .exam-error{color:var(--lw-ds-danger)}.hsk-exams .exam-save-state{font-size:.875rem;color:var(--lw-ds-muted);min-height:1.5em}.hsk-exams .exam-status{min-height:1.5em;line-height:1.6;max-width:70ch}.hsk-exams .exam-review-summary{max-width:800px}.hsk-exams .exam-review-score{font:400 clamp(2rem,5vw,3rem)/1.2 var(--lw-ds-font-editorial);font-variant-numeric:tabular-nums;margin:20px 0}.hsk-exams .exam-review-filter{margin:24px 0}.hsk-exams .exam-review-item{max-width:72ch;border-top:1px solid var(--lw-ds-line);padding:24px 0;scroll-margin-top:24px}.hsk-exams .exam-review-item h3{margin:0 0 12px}.hsk-exams .exam-review-answer{white-space:pre-wrap;font-size:1.125rem;overflow-wrap:anywhere}.hsk-exams .exam-review-answer[lang=zh-Hans]{font-family:var(--lw-ds-font-hanzi);font-size:1.375rem}.hsk-exams .exam-review-item details{margin-top:16px}.hsk-exams .exam-review-item summary{cursor:pointer;min-height:44px;display:list-item;padding-block:12px;font-weight:600}.hsk-exams .exam-review-item .exam-stimulus{font-size:1.25rem}.hsk-exams .exam-word-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin:16px 0}.hsk-exams .exam-word-links a{font-family:var(--lw-ds-font-hanzi);font-size:1.25rem}.hsk-exams .exam-result-label{font-size:.9375rem;font-weight:600;color:var(--lw-ds-muted)}.hsk-exams .exam-sticky-status{position:static;background:var(--lw-ds-paper);border-top:1px solid var(--lw-ds-line);padding:12px 0;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}.hsk-exams .exam-recording{margin:20px 0}.hsk-exams .exam-recording .exam-actions{margin:12px 0}.hsk-exams .exam-recording-status{color:var(--lw-ds-danger);font-variant-numeric:tabular-nums}
@media(max-width:760px){.hsk-exams .exam-opening{grid-template-columns:1fr;gap:24px}.hsk-exams .exam-opening img{max-height:300px;object-fit:cover}.hsk-exams .exam-levels{grid-template-columns:1fr}.hsk-exams .exam-layout{grid-template-columns:1fr;gap:24px}.hsk-exams .exam-nav{order:0}.hsk-exams .exam-question{order:1}.hsk-exams .exam-nav details:not([open]) .exam-numbers{display:none}.hsk-exams .exam-prompt,.hsk-exams .exam-stimulus{font-size:1.375rem}.hsk-exams .exam-options{margin:20px 0}.hsk-exams .exam-toolbar{margin-bottom:16px}.hsk-exams .exam-outline th,.hsk-exams .exam-outline td{padding:12px 8px}}
@media(max-width:380px){.hsk-exams .exam-picture-options{grid-template-columns:1fr}.hsk-exams .exam-pictures{grid-template-columns:1fr}.hsk-exams .exam-question-actions{align-items:stretch}.hsk-exams .exam-question-actions .exam-actions{width:100%}.hsk-exams .exam-question-actions .lw-button{flex:1}}
@media(prefers-reduced-motion:no-preference){.hsk-exams .exam-review-summary{animation:exam-result .3s cubic-bezier(.16,1,.3,1)}@keyframes exam-result{from{clip-path:inset(0 0 5% 0)}to{clip-path:inset(0)}}}

.hsk-exams .exam-review-item img{display:block;width:min(100%,20rem);max-width:100%;height:auto;border-radius:var(--lw-ds-radius-image)}

.hsk-exams .exam-mode{border:0;padding:0}.hsk-exams .exam-mode legend{font-size:.9375rem;font-weight:600;margin-bottom:8px}

.hsk-exams .exam-group-questions{border-block:1px solid var(--lw-ds-line);margin-block:16px;padding-block:4px}
.hsk-exams .exam-group-questions summary{cursor:pointer;font-weight:600;min-height:44px;align-content:center}
.hsk-exams .exam-group-questions>ol{padding-inline-start:24px;margin-block:8px 16px}
.hsk-exams .exam-group-questions>ol>li+li{margin-block-start:20px}
.hsk-exams .exam-group-questions p{margin-block:0 8px}
.hsk-exams .exam-group-options{padding-inline-start:24px;margin-block:0}

.hsk-exams .exam-playback-settings{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem 1rem;margin-block:.5rem 1rem;font-size:.875rem;color:var(--lw-ds-muted)}
.hsk-exams .exam-playback-settings label{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
.hsk-exams .exam-playback-settings select{width:auto;min-height:44px}

.hsk-exams .exam-audio-credit{font-size:.875rem;color:var(--lw-ds-muted);line-height:1.5}

/* Picture comprehension: readable evidence and an explicit larger view. */
.hsk-exams .exam-pictures--single{grid-template-columns:minmax(0,1fr);max-width:680px}
.hsk-exams .exam-picture-option{min-width:0}
.hsk-exams .exam-picture-zoom{font-size:.875rem;min-height:44px;padding:8px 12px;margin-top:8px}
.hsk-exams .exam-picture-option .exam-option{height:calc(100% - 60px)}
.hsk-exams .exam-picture-viewer{width:min(960px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--lw-ds-line);border-radius:var(--lw-ds-radius-web-card);padding:20px;background:var(--lw-ds-surface);color:var(--lw-ds-ink)}
.hsk-exams .exam-picture-viewer::backdrop{background:rgb(0 0 0/.64)}
.hsk-exams .exam-picture-viewer header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.hsk-exams .exam-picture-viewer h2{margin:0;font-size:1.375rem}
.hsk-exams .exam-picture-viewer img{display:block;width:100%;height:auto;max-height:65vh;max-height:65dvh;object-fit:contain}
.hsk-exams .exam-picture-viewer nav{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:16px}
.hsk-exams .exam-picture-viewer [data-picture-count]{color:var(--lw-ds-muted);font-size:.875rem}
@media(max-width:500px){.hsk-exams .exam-picture-viewer{padding:16px}.hsk-exams .exam-picture-viewer nav .lw-button{font-size:.875rem;padding:10px}}

/* Optional answer checking: a single continuation and direct question access. */
.hsk-exams .exam-answer-sheet{list-style:none;padding:0;margin:24px 0}
.hsk-exams .exam-answer-sheet li{border-bottom:1px solid var(--lw-ds-line)}
.hsk-exams .exam-answer-sheet .lw-button{display:block;text-align:left;width:100%;border:0;border-radius:0;background:transparent;padding:12px 0;white-space:normal}
.hsk-exams .exam-section-practice{margin:28px 0}
.hsk-exams .exam-section-practice h3{margin-bottom:8px}

.hsk-exams .exam-character-completion{margin:24px 0;color:var(--lw-ds-ink)}
.hsk-exams .exam-character-completion figcaption{font-size:1.125rem;margin-bottom:8px;text-align:center}
.hsk-exams .exam-character-completion>div{display:flex;justify-content:center;gap:8px}
.hsk-exams .exam-character-completion svg{display:block;width:min(36vw,144px);height:auto;aspect-ratio:1;background:var(--lw-ds-surface);border:1px solid var(--lw-ds-line);border-radius:4px}
.hsk-exams details.exam-review-item>summary{min-height:44px;font-weight:600;cursor:pointer}
.hsk-exams details.exam-review-item>div{padding-top:16px}

.hsk-exams .exam-component-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hsk-exams .exam-component-options legend{grid-column:1/-1}
.hsk-exams .exam-component-options .exam-option{min-width:0;margin:0;padding:12px;gap:8px}
.hsk-exams .exam-component-options .exam-choice-text{font-size:1.5rem}
.hsk-exams .exam-component-options .exam-pinyin{font-size:.9375rem}
@media(min-width:650px){.hsk-exams .exam-component-options{grid-template-columns:repeat(3,minmax(0,1fr))}}

.hsk-exams .exam-shared-player{position:sticky;top:var(--exam-header-offset,0px);z-index:4;background:var(--lw-ds-paper);border-bottom:1px solid var(--lw-ds-line);padding-block:8px}
.hsk-exams .exam-shared-player .exam-audio{margin:0}
.hsk-exams .exam-shared-player .exam-playback-settings{margin-block:.5rem 0}

.hsk-exams .exam-source-disclosure{margin-block:16px;border-block:1px solid var(--lw-ds-line)}
.hsk-exams .exam-source-disclosure>summary{cursor:pointer;font-weight:600;min-height:44px;align-content:center}
.hsk-exams .exam-source-disclosure[open]>.exam-stimulus{margin-top:12px}

.hsk-exams .exam-position{display:block;margin-top:4px;font:400 .875rem/1.5 var(--lw-ds-font-interface);color:var(--lw-ds-muted);font-variant-numeric:tabular-nums}
