/* SAT exam screen (D107). Loaded after the other stylesheets; everything is inside .sx.
   It uses its own colours on purpose: exam screens don't take the institute's colour. */
.sx { --sx-ink: #1A1A1A; --sx-tint: #EAF0F8; --sx-tint2: #DCE5F2; --sx-blue: #1F3A8A; --sx-rule: #D5D8DE; --sx-grey: #EEF0F3; --sx-mute: #4B4F58; --sx-flag: #C8102E; --sx-gold: #F2B705;
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #fff; color: var(--sx-ink); font: 15px/1.45 Inter, Arial, sans-serif; }
.sx *, .sx *::before, .sx *::after { box-sizing: border-box; }
.sx button { font: inherit; color: inherit; }
.sx :focus-visible { outline: 3px solid var(--sx-gold); outline-offset: 2px; }
.sx-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 8px 24px; background: var(--sx-tint); }
.sx-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-band { flex: none; height: 3px; background: repeating-linear-gradient(90deg, #1F3A8A 0 22px, #F2B705 22px 30px, #1F3A8A 30px 52px, #2E9E8F 52px 60px); }
.sx .sx-tool { min-height: 40px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 8px; background: none; font-weight: 500; cursor: pointer; white-space: nowrap; }
.sx .sx-tool:hover { background: var(--sx-tint2); }
.sx .sx-tool.on { background: var(--sx-blue); color: #fff; }
.sx .sx-dir { padding-left: 0; min-height: 26px; font-size: 14px; }
.sx .sx-dir:hover { background: none; text-decoration: underline; }
.sx-tools { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.sx-time { text-align: center; }
.sx-clock { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.sx-clock.low { color: var(--sx-flag); }
.sx .sx-hide { display: block; margin: 1px auto 0; padding: 0 12px; min-height: 22px; border: 1px solid var(--sx-ink); border-radius: 999px; background: #fff; font-size: 12px; cursor: pointer; }
.sx-main { position: relative; flex: 1; min-height: 0; display: flex; }
.sx-pane { flex: 1 1 0; min-width: 0; overflow: auto; padding: 28px 40px; }
.sx-div { flex: none; width: 6px; background: var(--sx-rule); cursor: col-resize; touch-action: none; }
.sx-one { max-width: 760px; margin: 0 auto; }
.sx-read, .sx-stem { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.55; max-width: 62ch; }
.sx-read { margin-bottom: 18px; }
.sx-read table, .sx-rules table, .sx-stem table { border-collapse: collapse; margin: 10px 0; font-size: 15px; }
.sx-read th, .sx-read td, .sx-stem th, .sx-stem td, .sx-rules th, .sx-rules td { border: 1px solid #6B7280; padding: 5px 10px; text-align: left; }
.sx-hlable { user-select: text; -webkit-user-select: text; }
.sx mark { background: #FFE98A; color: inherit; padding: 0 1px; cursor: pointer; }
.sx mark.noted { border-bottom: 2px solid var(--sx-blue); }
.sx-qh { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 18px; padding-right: 8px; background: var(--sx-grey); border-bottom: 2px dashed #6B7280; }
.sx-qn { flex: none; min-width: 40px; height: 44px; padding: 0 6px; display: grid; place-items: center; background: var(--sx-ink); color: #fff; font-weight: 700; }
.sx .sx-mark { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; border: 0; background: none; cursor: pointer; }
.sx .sx-abc { margin-left: auto; min-width: 46px; min-height: 34px; border: 1.5px solid var(--sx-ink); border-radius: 6px; background: #fff; font-size: 12px; font-weight: 700; text-decoration: line-through; cursor: pointer; }
.sx .sx-abc.on { background: var(--sx-blue); border-color: var(--sx-blue); color: #fff; }
.sx-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sx .sx-opt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 6px 14px; border: 1.5px solid var(--sx-ink); border-radius: 10px; background: #fff; font-family: "Source Serif 4", Georgia, serif; font-size: 17px; text-align: left; cursor: pointer; }
.sx-let { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font: 600 13px Inter, Arial, sans-serif; }
.sx .sx-opt.sel { border-color: var(--sx-blue); box-shadow: inset 0 0 0 2px var(--sx-blue); }
.sx .sx-opt.sel .sx-let { background: var(--sx-blue); border-color: var(--sx-blue); color: #fff; }
.sx .sx-opt.out { color: #666A72; border-color: #A6A9B0; text-decoration: line-through; }
.sx .sx-x { flex: none; min-width: 56px; min-height: 40px; border: 0; background: none; font-size: 13px; text-decoration: underline; cursor: pointer; }
.sx-ans-l { display: block; font-weight: 600; margin-bottom: 6px; }
.sx .sx-ans { width: 170px; height: 48px; padding: 0 12px; border: 1.5px solid var(--sx-ink); border-radius: 8px; background: #fff; color: inherit; font: 20px Inter, Arial, sans-serif; user-select: text; -webkit-user-select: text; }
.sx-prev { margin-top: 14px; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.sx-prev .bad { color: #B42318; }
.sx-frac { display: inline-flex; flex-direction: column; align-items: center; font: 19px/1.15 "Source Serif 4", Georgia, serif; }
.sx-frac span:first-child { border-bottom: 1.5px solid var(--sx-ink); padding: 0 4px; }
.sx-rules .sx-h { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.sx-rules p { margin: 0 0 14px; line-height: 1.6; }
.sx-rules ul { margin: 0 0 14px; padding-left: 20px; line-height: 1.6; }
.sx details.sx-rules { margin-bottom: 16px; font-size: 14px; }
.sx details.sx-rules summary { min-height: 32px; font-weight: 600; cursor: pointer; }
.sx-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 8px 24px; border-top: 1px solid var(--sx-rule); background: var(--sx-tint); }
.sx-who { min-width: 0; }
.sx-who b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-save { font-size: 12px; color: var(--sx-mute); min-height: 16px; }
.sx-save.bad { color: #B42318; font-weight: 600; }
.sx .sx-prog { min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--sx-ink); color: #fff; font-weight: 600; cursor: pointer; }
.sx-nav { justify-self: end; display: flex; gap: 8px; }
.sx .sx-go { min-height: 44px; min-width: 84px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--sx-blue); color: #fff; font-weight: 600; cursor: pointer; }
.sx .sx-go[disabled] { background: #9AA4BE; cursor: default; }
.sx .sx-go.alt { background: #fff; color: var(--sx-blue); box-shadow: inset 0 0 0 1.5px var(--sx-blue); }
.sx-page { flex: 1; min-height: 0; overflow: auto; padding: 28px 24px; display: flex; justify-content: center; }
.sx-page-in { width: min(760px, 100%); }
.sx-page h1 { font-size: 26px; margin: 0 0 8px; }
.sx-fact { margin: 0 0 18px; font-weight: 600; }
.sx-center { text-align: center; }
.sx-lead { margin: 0 auto 20px; line-height: 1.5; max-width: 60ch; }
.sx-card { padding: 18px 22px; border: 1.5px solid var(--sx-ink); border-radius: 12px; }
.sx-cardh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--sx-rule); }
.sx-cardh h2 { margin: 0; font-size: 17px; }
.sx-key { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.sx-key span { display: inline-flex; align-items: center; gap: 6px; }
.sx-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.sx .sx-q { position: relative; height: 44px; border: 1.5px dashed var(--sx-ink); border-radius: 4px; background: #fff; color: var(--sx-blue); font-weight: 600; cursor: pointer; }
.sx .sx-q.done { border: 1.5px solid var(--sx-blue); background: var(--sx-blue); color: #fff; }
.sx .sx-q.now { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sx-ink); }
.sx-q svg { position: absolute; top: -6px; right: -3px; }
.sx-pop { position: absolute; z-index: 6; background: #fff; border: 1.5px solid var(--sx-ink); border-radius: 12px; box-shadow: 0 8px 28px rgba(26, 26, 26, .28); }
.sx-navpop { left: 50%; bottom: 72px; transform: translateX(-50%); width: min(580px, calc(100% - 32px)); max-height: calc(100% - 100px); overflow: auto; padding: 16px 22px 20px; }
.sx-poph { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.sx-poph h2 { margin: 0; font-size: 18px; }
.sx .sx-close { flex: none; min-width: 44px; min-height: 44px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.sx-navpop .sx-key { padding: 10px 0; margin-bottom: 14px; border-top: 1px solid var(--sx-rule); border-bottom: 1px solid var(--sx-rule); }
.sx .sx-check { display: block; margin: 16px auto 0; min-height: 44px; padding: 0 24px; border: 1.5px solid var(--sx-blue); border-radius: 999px; background: #fff; color: var(--sx-blue); font-weight: 600; cursor: pointer; }
.sx-menu { top: 60px; right: 24px; width: 290px; padding: 6px; border-radius: 10px; }
.sx .sx-mi { display: block; width: 100%; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer; }
.sx .sx-mi:hover { background: var(--sx-tint); }
.sx-mi small { display: block; font-size: 13px; color: var(--sx-mute); }
.sx-line { height: 1px; background: var(--sx-rule); margin: 6px; }
.sx-shade { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 16px; background: rgba(26, 26, 26, .5); }
.sx-dlg { width: min(560px, 100%); max-height: 90%; overflow: auto; padding: 20px 24px; background: #fff; border-radius: 12px; }
.sx-dlg > h2 { margin: 0 0 8px; font-size: 20px; }
.sx-dlg p { margin: 0 0 12px; line-height: 1.55; }
.sx-dlg ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; }
.sx-keys { width: 100%; border-collapse: collapse; }
.sx-keys td { padding: 7px 8px; border-bottom: 1px solid #E6E8EC; }
.sx kbd { font: inherit; font-weight: 600; padding: 2px 7px; border: 1px solid #6B7280; border-radius: 5px; background: #F4F5F7; white-space: nowrap; }
.sx-acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sx-sheet { top: 76px; right: 24px; width: 440px; max-width: calc(100% - 32px); max-height: calc(100% - 160px); overflow: auto; border-radius: 10px; }
.sx-sheeth { cursor: move; touch-action: none; position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 2px 14px; background: var(--sx-ink); color: #fff; font-weight: 600; }
.sx-sheet .sx-close { color: #fff; min-height: 36px; }
.sx-refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 14px; font-family: "Source Serif 4", Georgia, serif; font-size: 15px; }
.sx-ref { padding: 10px; border: 1px solid var(--sx-rule); border-radius: 8px; }
.sx-ref b { display: block; font: 600 13px Inter, Arial, sans-serif; margin-bottom: 3px; }
.sx-sheet p { margin: 0; padding: 0 14px 12px; font-size: 14px; line-height: 1.5; }
.sx-calc { flex: 1.15 1 0; min-width: 0; display: flex; flex-direction: column; }
.sx-calch { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 2px 14px; background: var(--sx-ink); color: #fff; font-weight: 600; font-size: 14px; }
.sx-calc .sx-close { color: #fff; min-height: 36px; }
.sx-calcb { flex: 1; min-height: 0; position: relative; }
.sx-calcmsg { padding: 24px; line-height: 1.5; }
.sx-tip { position: absolute; z-index: 7; display: flex; gap: 2px; padding: 3px; background: var(--sx-ink); border-radius: 8px; }
.sx .sx-tip button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.sx .sx-tip button:hover { background: #3A3D45; }
.sx-note { width: 100%; min-height: 90px; padding: 8px; border: 1.5px solid var(--sx-ink); border-radius: 8px; font: inherit; user-select: text; -webkit-user-select: text; }
.sx-notes li { margin-bottom: 10px; }
.sx-notes q { font-family: "Source Serif 4", Georgia, serif; }
.sx-dim { position: absolute; left: 0; right: 0; z-index: 4; background: rgba(26, 26, 26, .82); pointer-events: none; }
.sx-rctl { position: absolute; top: 8px; right: 12px; z-index: 5; display: flex; gap: 4px; padding: 3px; background: #fff; border: 1.5px solid var(--sx-blue); border-radius: 999px; }
.sx .sx-rctl button { min-width: 36px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--sx-blue); font-size: 13px; font-weight: 600; cursor: pointer; }
.sx-warn { position: absolute; top: 76px; left: 50%; transform: translateX(-50%); z-index: 7; padding: 8px 16px; border-radius: 8px; background: var(--sx-ink); color: #fff; font-weight: 600; }
.sr-only-sx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media print { .sx { display: none !important; } }
@media (max-width: 1000px) { .sx-top { grid-template-columns: minmax(0, 1fr) auto; } .sx-tools { grid-column: 1 / -1; justify-content: flex-start; } .sx-pane { padding: 20px; } .sx-menu { top: 110px; right: 16px; } }
.sx-sheet .sx-refs b { display: block; }
/* typed answers on the shared review pages */
.typed-answer p { margin: 0 0 6px; }
