/* Local owner: examination selection and question practice only. */
.exam-main{padding-top:10px;padding-bottom:20px;min-width:0}
.exam-skip{position:absolute;left:12px;top:-100px;z-index:100;padding:10px;background:#fff;color:#111;border:1px solid #111}
.exam-skip:focus{top:12px}
.exam-intro{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:2px 8px;padding:0 0 10px;margin:0 0 12px;border-bottom:1px solid #cfd4dc}
.exam-intro .eyebrow{grid-column:2;grid-row:1;font-size:11px;line-height:1.3;letter-spacing:.06em;margin:0;white-space:nowrap;text-align:center}
.exam-intro h1{grid-column:2;grid-row:2;font-size:28px;line-height:1.3;letter-spacing:-.045em;white-space:nowrap;margin:0;text-align:center}
.exam-total{grid-column:3;grid-row:1 / 3;justify-self:end;margin-left:0;font-size:12px;white-space:nowrap;text-align:right}
#exam-app{min-width:0;scroll-margin-top:10px}
#exam-app:has(>.exam-field)>h2{text-align:center}
#exam-app h2{font-size:21px;line-height:1.4;letter-spacing:-.035em;margin:0 0 12px}
.exam-breadcrumb{display:flex;gap:7px;flex-wrap:wrap;align-items:baseline;font-size:12px;line-height:1.6;margin:0 0 10px}
.exam-breadcrumb a{text-decoration:underline;text-underline-offset:3px}
.exam-breadcrumb [aria-current]{font-weight:700}
.exam-field{margin:0 0 10px;text-align:center}
.exam-field>h3{font-size:13px;line-height:1.5;margin:0 0 4px;color:var(--accent)}
.exam-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.exam-choice{position:relative;display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;padding:12px 28px 12px 13px;border:1px solid #cfd4dc;border-radius:8px;color:#111;background:#fff;text-decoration:none;overflow-wrap:anywhere}
.exam-choice strong{font-size:16px;line-height:1.45;letter-spacing:-.035em}
.exam-choice>span:not(.exam-choice-arrow){font-size:12px;line-height:1.5}
.exam-choice-arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:13px}
.exam-choice:hover,.exam-choice:focus-visible{border-color:#326da8;background:#f7fafc}
/* Keep every exam, including LEET, in a close-fitting cell on one row per group. */
.exam-field>.exam-grid{display:flex;justify-content:center;gap:6px}
.exam-field .exam-choice{flex:0 0 auto;flex-direction:row;align-items:center;box-sizing:border-box;min-height:0;padding:3px 7px;border:1px solid #cfd4dc;border-radius:4px;overflow-wrap:normal;white-space:nowrap;background:linear-gradient(135deg,#eef6ff 0%,#f5f0ff 100%)}
.exam-field .exam-choice strong{font-size:clamp(13px,3.4vw,16px);line-height:1.35}
.exam-field .exam-choice>span{display:none}
.exam-field .exam-choice:focus-visible{outline:2px solid #326da8;outline-offset:2px}
.exam-note{font-size:12px;line-height:1.6;margin:0 0 12px}
.exam-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.exam-section-head>span{font-size:12px;white-space:nowrap}
.exam-filter{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}
.exam-filter input,.exam-filter select{font:inherit;font-size:12px;min-height:36px;min-width:0;padding:6px 9px;border:1px solid #cfd4dc;border-radius:5px;background:#fff;color:#111}
.exam-filter input{flex:1;min-width:130px}
.exam-filter select{max-width:100%}
.exam-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;font:inherit;font-size:12px;font-weight:750;line-height:1.5;padding:6px 13px;border:1px solid #aeb8c5;border-radius:5px;background:#fff;color:#111;cursor:pointer;text-decoration:none}
.exam-button:hover,.exam-button:focus-visible{border-color:#326da8;background:#f1f6fa}
.exam-text-button{font:inherit;font-size:12px;font-weight:650;line-height:1.6;padding:3px 0;border:0;border-bottom:1px solid #8c98a6;background:transparent;color:#111;cursor:pointer}
.exam-session-bar{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:3px 0 9px;border-bottom:1px solid #cfd4dc}
.exam-score,.exam-session-actions{display:flex;gap:8px 15px;flex-wrap:wrap;font-size:12px;line-height:1.5}
.exam-question{padding:15px 0;border-bottom:1px solid #cfd4dc;min-width:0}
.exam-question-form fieldset{min-inline-size:0;border:0;padding:0;margin:0}
.exam-question-form legend{width:100%;padding:0;margin:0 0 9px;font-size:16px;font-weight:750;line-height:1.65;letter-spacing:-.02em;white-space:pre-line;overflow-wrap:anywhere}
.exam-question-number{font-weight:850}
.exam-options{display:flex;flex-wrap:wrap;align-items:stretch;gap:5px}
/* Full-sentence choices flow naturally; only short choices share a row. */
.exam-option{display:flex;flex:0 0 100%;box-sizing:border-box;max-width:100%;min-width:0;align-items:flex-start;gap:8px;min-height:42px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:5px;background:#fff;font-size:14px;line-height:1.6;cursor:pointer;overflow-wrap:normal;word-break:keep-all}
.exam-option.is-compact{flex:0 1 auto;min-width:0;max-width:100%}
.exam-option>input{flex:0 0 auto;margin:4px 0 0;accent-color:#326da8}
.exam-option-copy{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:5px;flex:1;min-width:0}
.exam-option-number{font-weight:550;white-space:nowrap}
.exam-option-text{white-space:normal;word-break:keep-all;overflow-wrap:break-word}
.exam-option.is-compact .exam-option-text{white-space:normal}
.exam-option:has(input:checked){border-color:#326da8;background:#f7fafc}
.exam-option:focus-within{outline:2px solid #326da8;outline-offset:2px}
.exam-option.is-correct{border-color:#326da8;background:#eff6fb}
.exam-option.is-wrong{border-style:dashed;border-color:#666}
.exam-option-mark{font-size:11px;font-weight:800;white-space:nowrap}
.exam-submit-row{display:flex;align-items:center;gap:10px;margin-top:8px}
.exam-question-error{font-size:12px}
.exam-feedback{padding:9px 12px;margin-top:9px;border-left:3px solid #326da8;background:#f7fafc;outline-offset:3px}
.exam-feedback>p{font-size:13px;line-height:1.7;margin:0}
.exam-feedback>p+p{margin-top:4px}
.exam-feedback .exam-basis{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.exam-basis>a{text-decoration:underline;text-underline-offset:2px}
.exam-feedback>.exam-text-button{margin-top:4px;font-size:11px}
.exam-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;font-size:12px}
.exam-pagination .exam-button{min-width:75px}
.exam-empty{font-size:14px;line-height:1.7;padding:14px 0}
.exam-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.exam-attribution{border-top:1px solid #e5e7eb;padding-top:10px;margin:16px 0 0;font-size:11px;line-height:1.6}
.exam-attribution p{margin:0}
@media(max-width:700px){.exam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-intro h1{font-size:24px}.exam-question-form legend{font-size:15px}.exam-option{font-size:14px}}
@media(max-width:420px){.exam-intro{column-gap:7px}.exam-intro .eyebrow{font-size:10.5px;letter-spacing:0}.exam-intro h1{font-size:22px}.exam-total{font-size:11px}.exam-choice{padding:10px 22px 10px 10px}.exam-choice strong{font-size:15px}.exam-filter{gap:5px}.exam-filter input{flex-basis:100%}.exam-filter select{flex:1;padding-inline:5px}.exam-option{padding:8px}.exam-breadcrumb{font-size:11px}.exam-session-actions{gap:12px}}

/* Question stimuli retain their original paragraph, table and figure structure. */
.exam-question-form legend{white-space:pre-line}
.exam-passage{margin:0 0 10px;padding:12px 14px;border:1px solid #cfd4dc;background:#fcfdfe;font-size:15px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.exam-shared-passage{margin-top:15px}
.exam-figure{margin:0 0 10px;max-width:100%}
.exam-figure img{display:block;max-width:100%;height:auto}
.exam-figure figcaption{font-size:12px;line-height:1.6;margin-top:4px}
.exam-table-wrap{max-width:100%;overflow-x:auto;margin:0 0 10px;outline-offset:2px}
.exam-table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.6}
.exam-table caption{text-align:left;font-weight:700;padding:0 0 5px}
.exam-table th,.exam-table td{border:1px solid #cfd4dc;padding:6px 9px;white-space:pre-line;word-break:keep-all}
.exam-table th{background:#f5f7fa;font-weight:700}

@media(max-width:320px){.exam-option.is-compact{flex:0 1 100%}.exam-option.is-compact .exam-option-text{white-space:normal}}

/* Automatic wrapping keeps answer text continuous on desktop and mobile. */
.exam-option-text{min-width:0;white-space:normal;word-break:keep-all;overflow-wrap:break-word;line-break:auto}

/* US Bar & NextGen extend the existing quiz cards without changing the shared page shell. */
.exam-written textarea{box-sizing:border-box;width:100%;min-height:175px;padding:12px;border:1px solid #cfd4dc;border-radius:5px;background:#fff;color:#111;font:inherit;font-size:14px;line-height:1.7;resize:vertical}
.exam-written textarea:focus-visible{outline:2px solid #326da8;outline-offset:2px}
.exam-writing-label{display:block;font-size:13px;font-weight:700;margin:10px 0 6px}
.exam-rubric{font-size:13px;line-height:1.8;padding-left:22px;margin:8px 0}
.exam-written .exam-feedback .exam-note{margin-top:5px}
