/* Official-style OET online practice test delivery UI */

.main-content.exam-active.oet-practice-active {
  padding: 0;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
}

.main-content.exam-active.oet-practice-active #site-footer,
.main-content.exam-active.oet-practice-active ~ .site-footer {
  display: none;
}

/* OET delivery UI uses official light chrome; break screen uses fixed brand colors in any site theme */
.oet-practice {
  color-scheme: light;
  --oet-body-bg: #e8eef5;
  --oet-panel-bg: #ffffff;
  --oet-panel-text: #000000;
  --oet-panel-border: #b8c4d4;
  --oet-input-bg: #ffffff;
  --oet-input-text: #000000;
  --oet-input-border: #9aa8bc;
  --oet-break-bg: #0086c1;
  --oet-break-fg: #ffffff;
  --oet-break-border: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #000000;
  background: var(--oet-body-bg);
}

/* Keep exam delivery readable when the site is in dark mode */
[data-theme="dark"] .oet-practice:not(.oet-layout-break) {
  color-scheme: light;
  --oet-body-bg: #e8eef5;
  --oet-panel-bg: #ffffff;
  --oet-panel-text: #000000;
  --oet-panel-border: #b8c4d4;
  background: var(--oet-body-bg);
  color: #000000;
}

.oet-practice-header {
  flex-shrink: 0;
  color: #fff;
}

.oet-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  background: #4a7fc1;
  font-size: 0.9rem;
}

.oet-header-meta {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
}

.oet-header-timer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  justify-content: center;
  font-size: 0.88rem;
}

.oet-clock-icon {
  font-size: 1.1rem;
  opacity: 0.95;
}

.oet-timer-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
}

.oet-timer-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.oet-finish-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 4px;
  padding: 0.45rem 1rem;
  background: #6cb86c;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.oet-finish-btn:hover {
  background: #5aa85a;
}

.oet-finish-section {
  background: #c5e84a;
  color: #1a2a1a;
}

.oet-finish-section:hover {
  background: #b5d83a;
}

.oet-header-sub {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 1.25rem;
  background: #1e3a6e;
  font-size: 0.85rem;
}

.oet-practice-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.oet-sidebar {
  flex-shrink: 0;
  width: 56px;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--oet-body-bg);
}

.oet-layout-listening .oet-sidebar {
  width: 96px;
  padding: 0.5rem 0.35rem;
}

.oet-sidebar-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 6px;
  background: #1e3a6e;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
}

.oet-sidebar-btn.is-active {
  background: #4a7fc1;
}

.oet-sidebar-btn.is-active::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: #4a7fc1;
}

.oet-sidebar-btn.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.oet-sidebar-btn:not(:disabled):hover {
  filter: brightness(1.08);
}

.oet-content-wrap {
  flex: 1;
  padding: 0.75rem 0.75rem 0.75rem 0;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.oet-content-panel {
  flex: 1;
  min-height: 0;
  background: #ffffff;
  border: 1px solid #b8c4d4;
  border-radius: 4px;
  overflow: auto;
  overflow-anchor: none;
  padding: 1.25rem 1.5rem 2rem;
  line-height: 1.55;
  color: #000000;
}

.oet-practice:has(.oet-reading-layout--single-page),
.oet-practice:has(.oet-reading-bc-workspace--split) {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

.oet-practice:has(.oet-reading-layout--single-page) .oet-practice-body,
.oet-practice:has(.oet-reading-bc-workspace--split) .oet-practice-body {
  overflow: hidden;
}

.oet-content-panel:has(.oet-reading-layout--single-page),
.oet-content-panel:has(.oet-reading-bc-workspace--split) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.oet-header-meta-question {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.35;
}

.oet-header-timer-inline {
  font-size: 0.88rem;
}

.oet-header-timer-inline strong {
  font-variant-numeric: tabular-nums;
}

/* Listening list sidebar */
.oet-listening-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 280px;
  gap: 0.35rem;
}

.oet-sidebar-scroll {
  border: none;
  background: transparent;
  color: #1e3a6e;
  cursor: pointer;
  font-size: 0.65rem;
  padding: 0.2rem;
  line-height: 1;
}

.oet-list-badge-wrap {
  flex-shrink: 0;
}

.oet-list-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1e3a6e;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.oet-sidebar-list {
  flex: 1;
  overflow-y: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 0;
}

.oet-list-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.15rem 0;
  text-align: left;
  color: #1e3a6e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
}

.oet-list-item.is-active .oet-list-bar {
  background: #4a7fc1;
}

.oet-list-item.is-active .oet-list-label {
  font-weight: 700;
}

.oet-list-item.is-solved .oet-list-bar {
  background: #6cb86c;
}

.oet-list-item.is-solved .oet-list-label {
  color: #1a5c1a;
}

.oet-list-item.is-solved.is-active .oet-list-bar {
  background: #4a9a4a;
}

.oet-list-item-static {
  display: flex;
  align-items: stretch;
  cursor: default;
  opacity: 1;
}

.oet-list-divider {
  font-size: 0.65rem;
  font-weight: 700;
  color: #1e3a6e;
  text-align: center;
  padding: 0.35rem 0.1rem 0.15rem;
  line-height: 1.2;
  white-space: normal;
}

.oet-list-bar {
  width: 5px;
  flex-shrink: 0;
  background: #b8cfe8;
  border-radius: 2px;
}

.oet-list-label {
  padding: 0.2rem 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 5.5rem;
}

/* Listening notes content */
.oet-listening-prep {
  margin: 0 0 1.25rem;
  color: #000000;
}

.oet-listening-phase-hidden {
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.oet-notes-body {
  color: #000000;
  line-height: 1.85;
}

.oet-notes-line,
.oet-notes-heading {
  margin: 0.75rem 0;
  line-height: 1.85;
  color: #000000;
}

.oet-notes-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.85rem;
}

.oet-notes-bullet {
  font-weight: 700;
}

.oet-notes-bullet-line {
  padding-left: 0.35rem;
  margin: 0.65rem 0;
  line-height: 1.85;
}

.oet-gap-wrap {
  white-space: nowrap;
}

.oet-gap-num {
  font-weight: 700;
  margin-right: 0.1rem;
}

.oet-gap-input {
  width: 12rem;
  max-width: 55vw;
  min-height: 2.1rem;
  border: 1px solid var(--oet-input-border);
  background: var(--oet-input-bg);
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  padding: 0.35rem 0.55rem;
  margin: 0 0.15rem;
  vertical-align: baseline;
  pointer-events: auto;
}

.oet-notes-body .oet-gap-input:not(:disabled):not(.is-disabled) {
  cursor: text;
}

.oet-gap-input-narrow {
  width: 8.5rem;
}

.oet-gap-input:disabled,
.oet-gap-input.is-disabled {
  background: #f3f5f8;
  color: #555555;
}

.oet-mcq-group {
  border: none;
  margin: 0;
  padding: 0;
}

.oet-mcq-legend {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #000000;
}

.oet-mcq-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
  color: #000000;
}

.oet-mcq-option input {
  margin-top: 0.2rem;
  accent-color: #4a7fc1;
}

.oet-listening-read-q {
  margin: 1rem 0 0.75rem;
  font-weight: 600;
  color: #000000;
}

.oet-listening-qrange {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #000000;
}

.oet-listening-q-block {
  scroll-margin-top: 0.5rem;
  margin: 0 0 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.oet-listening-q-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.oet-mcq-omit-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #444444;
}

.oet-listening-hl-hint {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: #555555;
}

.oet-listening-highlight-zone {
  margin-bottom: 0.75rem;
}

.oet-listening-hl-mode {
  cursor: text;
}

.oet-listening-hl-mode ::selection {
  background: rgba(250, 204, 21, 0.45);
}

.oet-mcq-question-text {
  margin: 0.5rem 0 0.75rem;
  line-height: 1.55;
  color: #000000;
  user-select: text;
  cursor: text;
}

.oet-no-highlight,
.oet-no-highlight * {
  user-select: none;
}

.oet-listening-highlight-zone mark.hl-yellow {
  background: rgba(250, 204, 21, 0.55);
  color: #000000;
}

/* Rectangular MCQ options (Listening B, like Reading B) */
.oet-mcq-rect-group {
  margin: 0.5rem 0 0;
  border: none;
  padding: 0;
}

.oet-mcq-rect-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
  margin-bottom: 0.6rem;
  border: 1px solid #888888;
  border-radius: 3px;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 3.25rem;
}

.oet-mcq-rect-option:hover:not(.is-omitted) {
  border-color: #4a7fc1;
  background: #f5f9fd;
}

.oet-mcq-rect-option:has(input:checked):not(.is-omitted) {
  border-color: #1e3a6e;
  background: #e8f0fa;
  box-shadow: inset 0 0 0 1px #1e3a6e;
}

.oet-mcq-rect-option.is-correct,
.oet-mcq-rect-option.is-correct:has(input:checked) {
  border-color: #16a34a;
  background: #ecfdf5;
  box-shadow: inset 0 0 0 1px #16a34a;
  cursor: default;
}

.oet-mcq-rect-option.is-wrong,
.oet-mcq-rect-option.is-wrong:has(input:checked) {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: inset 0 0 0 1px #dc2626;
  cursor: default;
}

.oet-mcq-rect-option.is-selected:not(.is-correct):not(.is-wrong) {
  border-color: #1e3a6e;
  background: #e8f0fa;
  cursor: default;
}

.oet-mcq-rect-option.is-correct input {
  accent-color: #16a34a;
}

.oet-mcq-rect-option.is-wrong input {
  accent-color: #dc2626;
}

.oet-section-review-banner {
  flex-shrink: 0;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #86efac;
  border-radius: 4px;
  background: #f0fdf4;
  color: #14532d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.oet-section-review-banner strong {
  margin-right: 0.25rem;
}

.oet-inline-answer-key {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  background: #ecfdf5;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}

.oet-inline-answer-key--jump {
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
}

.oet-inline-answer-key--jump .lpa-goto-transcript {
  vertical-align: middle;
}

.oet-answer-verdict {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.oet-answer-verdict--correct {
  background: #dcfce7;
  color: #166534;
}

.oet-answer-verdict--wrong {
  background: #fee2e2;
  color: #991b1b;
}

.oet-answer-verdict--na {
  background: #f3f4f6;
  color: #4b5563;
}

.oet-mcq-rect-option .oet-answer-verdict {
  align-self: center;
}

.oet-inline-answer-verdict {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.oet-inline-answer-verdict.oet-answer-verdict--correct {
  background: #dcfce7;
  color: #166534;
}

.oet-inline-answer-verdict.oet-answer-verdict--wrong {
  background: #fee2e2;
  color: #991b1b;
}

.oet-inline-answer-verdict.oet-answer-verdict--na {
  background: #f3f4f6;
  color: #4b5563;
}

.oet-reading-gap-input.is-correct,
.oet-reading-letter-input.is-correct,
.oet-gap-input.is-correct {
  border-color: #16a34a;
  background: #ecfdf5;
  color: #14532d;
}

.oet-reading-gap-input.is-wrong,
.oet-reading-letter-input.is-wrong,
.oet-gap-input.is-wrong,
.oet-gap-input.is-wrong:disabled,
.oet-gap-input.is-wrong.is-disabled {
  border-color: #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
}

.oet-reading-gap-input.is-correct:disabled,
.oet-reading-letter-input.is-correct:disabled,
.oet-gap-input.is-correct:disabled,
.oet-gap-input.is-correct.is-disabled {
  border-color: #16a34a;
  background: #ecfdf5;
  color: #14532d;
}

.oet-mcq-rect-option.is-omitted {
  opacity: 0.65;
  background: #f3f3f3;
  border-color: #aaaaaa;
  cursor: not-allowed;
}

.oet-mcq-rect-option.is-omitted .oet-mcq-rect-label {
  text-decoration: line-through;
  color: #555555;
}

.oet-mcq-rect-option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #1e3a6e;
}

.oet-mcq-rect-label {
  flex: 1;
}

.oet-intro-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #000000;
}

.oet-intro-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}

.oet-intro-lead {
  margin: 1rem 0 0.5rem;
}

.oet-intro-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.35rem;
}

.oet-intro-list li {
  margin-bottom: 0.5rem;
}

.oet-structure-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
}

.oet-structure-table th,
.oet-structure-table td {
  border: 1px solid #9eb4cc;
  padding: 0.5rem 0.65rem;
  vertical-align: top;
  text-align: left;
}

.oet-structure-table thead th {
  background: #b8d4eb;
  font-weight: 700;
  color: #1a1a1a;
}

.oet-structure-table tr.oet-structure-break td {
  background: #b8d4eb;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
}

.oet-practice-footer {
  flex-shrink: 0;
  background: #4a7fc1;
  padding: 0.65rem 1.25rem;
}

.oet-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.oet-footer-btn {
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.1rem;
  background: #1e3a6e;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.oet-footer-btn:hover:not(:disabled) {
  background: #2a4a7e;
}

.oet-footer-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.oet-footer-start {
  min-width: 10rem;
}

/* Exam workspace inside OET panel */
.oet-content-panel .exam-panel {
  box-shadow: none;
  border: none;
  padding: 0;
  margin-bottom: 1rem;
  animation: none;
}

.oet-content-panel h1,
.oet-content-panel h2 {
  font-family: Arial, Helvetica, sans-serif;
}

/* Exam section nav sidebar (Rea..., Wri..., etc.) */
.oet-nav-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.oet-nav-btn {
  border: none;
  background: #d4dde8;
  color: #1e3a6e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.45rem 0.25rem;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
}

.oet-nav-btn.is-active {
  background: #1e3a6e;
  color: #ffffff;
}

.oet-nav-btn.is-locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.oet-layout-section .oet-sidebar {
  width: 64px;
}

/* Reading Part A — texts + questions 1–20 on one page */
.oet-reading-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  min-height: 0;
  align-items: stretch;
}

.oet-reading-layout--single-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.oet-reading-hl-toolbar {
  flex-shrink: 0;
  margin-bottom: 0.5rem;
}

.oet-reading-layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 1rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.oet-reading-layout-texts,
.oet-reading-layout-questions {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  height: 100%;
  padding-right: 0.35rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.oet-reading-layout--pdf-booklet .oet-reading-layout-split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.oet-reading-layout-texts--pdf {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.oet-reading-texts--pdf {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.oet-reading-booklet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  padding: 0.35rem 0.5rem 0.5rem;
  border-bottom: 1px solid #000;
  background: #f5f5f5;
}

.pdf-booklet-zoom-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.pdf-booklet-zoom-btn {
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  border: 1px solid #999;
  border-radius: 3px;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.pdf-booklet-zoom-btn:hover {
  background: #eee;
}

.pdf-booklet-zoom-reset {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0 0.5rem;
}

.pdf-booklet-zoom-label {
  min-width: 2.75rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #333;
}

.oet-reading-booklet-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: #000;
}

.oet-reading-booklet-open {
  font-size: 0.8rem;
  color: #1a5fb4;
  text-decoration: underline;
  white-space: nowrap;
}

.oet-reading-booklet-pdf {
  flex: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  background: #fff;
}

.oet-reading-booklet-pages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.35rem 0.15rem 0.5rem;
  background: #e8e8e8;
}

.pdf-booklet-zoom-sizer {
  position: relative;
}

.pdf-booklet-pages-inner {
  min-width: min-content;
}

.oet-reading-booklet-loading {
  margin: 1rem;
  color: #444;
  font-size: 0.9rem;
}

.pdf-booklet-page {
  position: relative;
  margin: 0 auto 1rem;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  user-select: none;
  -webkit-user-select: none;
}

.pdf-booklet-page ::selection {
  background: transparent;
}

.oet-reading-layout--pdf-booklet .oet-reading-layout-questions ::selection,
.exam-panel--pdf-booklet .reading-part-a-pane--questions ::selection {
  background: rgba(255, 235, 59, 0.35);
}

.pdf-booklet-canvas {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.pdf-booklet-hl-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pdf-booklet-hl-layer .pdf-booklet-hl {
  pointer-events: auto;
  cursor: pointer;
}

.pdf-booklet-hl,
.pdf-booklet-hl-preview {
  position: absolute;
  background: rgba(255, 235, 59, 0.45);
  border-radius: 2px;
  mix-blend-mode: multiply;
}

.pdf-booklet-hl-preview {
  pointer-events: none;
  background: rgba(255, 235, 59, 0.3);
}

.pdf-booklet-embed-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  flex: 1;
}

.pdf-booklet-embed {
  width: 100%;
  min-height: min(72vh, 820px);
  flex: 1;
  border: 0;
  background: #fff;
}

.oet-reading-booklet-note {
  margin: 0.35rem 0.5rem 0;
  font-size: 0.82rem;
}

/* Part A topic heading shown above Text A (e.g. "Paracetamol Overdose: Texts") */
.oet-reading-topic-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #000000;
}

/* Figures inside passage boxes (flowcharts, nomograms) */
.oet-text-figure {
  position: relative;
  margin: 0.5rem 0;
}

.oet-text-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

.oet-text-img[data-zoomable="1"] {
  cursor: zoom-in;
  transition: box-shadow 0.15s ease;
}

.oet-text-img[data-zoomable="1"]:hover {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.55);
}

.oet-text-zoom-hint {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 4px;
  pointer-events: none;
}

/* Fullscreen image zoom lightbox */
.oet-img-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.88);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.oet-img-zoom-overlay.is-open {
  opacity: 1;
}

.oet-img-zoom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem;
  background: rgba(15, 23, 42, 0.6);
}

.oet-img-zoom-btn {
  min-width: 40px;
  height: 36px;
  padding: 0 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.oet-img-zoom-btn:hover {
  background: #e2e8f0;
}

.oet-img-zoom-close {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.oet-img-zoom-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.oet-img-zoom-level {
  min-width: 56px;
  text-align: center;
  font-weight: 600;
  color: #ffffff;
}

.oet-img-zoom-stage {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.oet-img-zoom-img {
  max-width: 92vw;
  max-height: 100%;
  transform-origin: center center;
  transition: transform 0.05s linear;
  user-select: none;
  cursor: zoom-in;
  background: #ffffff;
}

.oet-img-zoom-hint {
  margin: 0;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Official passage card (Text A, B, C, D) */
.oet-text-card {
  margin-bottom: 1.5rem;
}

.oet-text-label {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0;
  line-height: 1.3;
}

.oet-text-box {
  border: 1px solid #000000;
  background: #ffffff;
  padding: 1rem 1.15rem 1.15rem;
  margin-top: 0;
}

.oet-text-box-title {
  text-align: center;
  font-weight: 700;
  text-decoration: underline;
  margin: 0 0 0.85rem;
  color: #000000;
  font-size: 1rem;
}

.oet-text-box-body {
  color: #000000;
  font-size: 0.9rem;
  line-height: 1.5;
}

.oet-text-para {
  margin: 0 0 0.65rem;
}

.oet-text-subhead {
  margin: 0.75rem 0 0.35rem;
}

.oet-text-ul {
  margin: 0.25rem 0 0.65rem;
  padding-left: 1.35rem;
  list-style-type: disc;
}

.oet-text-ul > li {
  margin-bottom: 0.35rem;
}

.oet-text-ul-nested {
  margin: 0.35rem 0 0.15rem;
  padding-left: 1.1rem;
  list-style-type: none;
}

.oet-text-ul-nested > li::before {
  content: "– ";
}

.oet-text-ol {
  margin: 0.35rem 0 0.65rem;
  padding-left: 1.5rem;
}

.oet-text-ol > li {
  margin-bottom: 0.35rem;
}

/* Generic bordered table embedded in a Part A text (e.g. analgesic guidelines) */
.oet-text-table-wrap {
  overflow-x: auto;
  margin: 0.6rem 0 0.9rem;
  -webkit-overflow-scrolling: touch;
}

.oet-text-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #000000;
}

.oet-text-table th,
.oet-text-table td {
  border: 1px solid #000000;
  padding: 0.4rem 0.45rem;
  vertical-align: top;
  text-align: left;
  overflow-wrap: break-word;
}

.oet-text-table th {
  background: #d9d9d9;
  font-weight: 700;
  text-align: center;
}

/* Five-column drug tables (e.g. Practice Test 5 Text D) */
.oet-text-table--drugs {
  min-width: 38rem;
  font-size: 0.74rem;
  line-height: 1.32;
}

.oet-text-table--drugs th {
  text-align: left;
}

.oet-text-table--drugs .oet-col-class {
  width: 13%;
}

.oet-text-table--drugs .oet-col-drug {
  width: 13%;
}

.oet-text-table--drugs .oet-col-dose {
  width: 22%;
}

.oet-text-table--drugs .oet-col-adv,
.oet-text-table--drugs .oet-col-cau {
  width: 26%;
}

/* Side-by-side columns inside a Part A text (e.g. PrEP indicator lists) */
.oet-text-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 0.85rem;
}

.oet-text-col {
  min-width: 0;
}

/* HTML flowchart for Part A texts (Kaplan Text D — not an image) */
.oet-flowchart-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.12rem;
  color: #6b2d91;
  margin: 0 0 0.45rem;
  line-height: 1.25;
}

.oet-flowchart-intro {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.oet-flowchart {
  container-type: inline-size;
  color: #000000;
  font-size: 0.78rem;
  line-height: 1.32;
}

.oet-flowchart-box {
  border: 1.5px solid #111111;
  background: #ffffff;
  padding: 0.4rem 0.5rem 0.45rem;
  break-inside: avoid;
}

.oet-flowchart-box-title {
  font-weight: 700;
  text-decoration: underline;
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  line-height: 1.25;
}

.oet-flowchart-box ol {
  margin: 0;
  padding-left: 1.2rem;
}

.oet-flowchart-box li {
  margin: 0 0 0.18rem;
}

.oet-flowchart-box ul {
  margin: 0.15rem 0 0;
  padding-left: 1.1rem;
  list-style-type: disc;
}

.oet-flowchart-note {
  margin: 0.35rem 0 0;
}

.oet-flowchart-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: stretch;
}

.oet-flowchart-top > .oet-flowchart-box:first-child {
  grid-column: 1;
  grid-row: 1;
}

.oet-flowchart-arrow--right {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: stretch;
  height: 0;
  border-top: 2px solid #111111;
  position: relative;
}

.oet-flowchart-arrow--right::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #111111;
}

.oet-flowchart-top > .oet-flowchart-box:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.oet-flowchart-arrow--from-treat {
  grid-column: 3;
  grid-row: 2;
}

.oet-flowchart-arrow--down {
  display: block;
  width: 0;
  height: 1.05rem;
  border-left: 2px solid #111111;
  position: relative;
  justify-self: center;
  margin: 0.12rem auto 0.2rem;
}

.oet-flowchart-arrow--down::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: -1px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #111111;
}

.oet-flowchart-mid {
  display: flex;
  justify-content: center;
}

.oet-flowchart-box--wide {
  width: min(100%, 34rem);
}

.oet-flowchart-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
}

.oet-flowchart-outcomes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

@container (max-width: 28rem) {
  .oet-flowchart-top {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
  }

  .oet-flowchart-top > .oet-flowchart-box:first-child,
  .oet-flowchart-top > .oet-flowchart-box:nth-child(3),
  .oet-flowchart-arrow--from-treat {
    grid-column: 1;
  }

  .oet-flowchart-top > .oet-flowchart-box:first-child {
    grid-row: 1;
  }

  .oet-flowchart-arrow--right {
    grid-column: 1;
    grid-row: 2;
    width: 0;
    height: 1.05rem;
    border-top: 0;
    border-left: 2px solid #111111;
    justify-self: center;
    margin: 0.12rem auto 0.2rem;
  }

  .oet-flowchart-arrow--right::after {
    right: auto;
    left: -5px;
    top: auto;
    bottom: -1px;
    border-top: 7px solid #111111;
    border-bottom: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
  }

  .oet-flowchart-top > .oet-flowchart-box:nth-child(3) {
    grid-row: 3;
  }

  .oet-flowchart-arrow--from-treat {
    grid-row: 4;
  }

  .oet-flowchart-outcomes,
  .oet-flowchart-fork {
    grid-template-columns: minmax(0, 1fr);
  }

  .oet-flowchart-box--wide {
    width: 100%;
  }
}

.oet-protocol-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.oet-protocol-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #000000;
}

.oet-protocol-col-drug { width: 9%; }
.oet-protocol-col-form { width: 9%; }
.oet-protocol-col-strength { width: 10%; }
.oet-protocol-col-route { width: 16%; }
.oet-protocol-col-dose { width: 38%; }
.oet-protocol-col-duration { width: 18%; }

.oet-protocol-table th,
.oet-protocol-table td {
  border: 1px solid #000000;
  padding: 0.35rem 0.3rem;
  vertical-align: top;
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

.oet-protocol-table th {
  background: #d9d9d9;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  line-height: 1.2;
}

.oet-protocol-table td {
  background: #ffffff;
}

.oet-protocol-cell-center {
  text-align: center;
  vertical-align: middle;
}

.oet-protocol-cell-route {
  text-align: center;
  vertical-align: middle;
}

.oet-protocol-cell-dose {
  text-align: left;
  vertical-align: middle;
}

.oet-protocol-cell-duration {
  text-align: center;
  vertical-align: middle;
}

.oet-protocol-note {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.2;
}

.oet-reading-questions-all .oet-reading-gap-block,
.oet-reading-questions-all .oet-reading-match-block {
  margin-bottom: 1.75rem;
}

.oet-reading-qheading {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: #000000;
}

.oet-reading-qinstructions {
  margin: 0 0 1.25rem;
  color: #000000;
  line-height: 1.5;
}

.oet-reading-gap-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.oet-reading-gap-item {
  margin: 0;
  line-height: 1.65;
  color: #000000;
}

.oet-reading-gap-item .oet-inline-answer-key {
  white-space: normal;
}

.oet-reading-gap-input {
  display: inline-block;
  min-width: 10rem;
  width: auto;
  max-width: min(18rem, 55vw);
  height: 1.65rem;
  margin: 0 0.2rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid #888888;
  border-radius: 2px;
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  vertical-align: middle;
}

.oet-reading-gap-input:disabled {
  background: #f3f5f8;
  color: #555555;
}

.oet-reading-match-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.oet-reading-match-row .oet-inline-answer-verdict {
  align-self: center;
  margin-left: 0;
}

.oet-reading-match-row .oet-inline-answer-key {
  flex: 1 0 100%;
  margin-left: 0;
}

.oet-reading-match-label {
  flex: 1;
  margin: 0;
  line-height: 1.55;
  color: #000000;
}

.oet-reading-letter-input {
  flex-shrink: 0;
  width: 2.75rem;
  height: 1.65rem;
  margin: 0.1rem 0 0;
  padding: 0.1rem 0.25rem;
  border: 1px solid #888888;
  border-radius: 2px;
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
  vertical-align: middle;
}

.oet-reading-letter-input:disabled {
  background: #f3f5f8;
  color: #555555;
}

/* Reading highlighter — inline yellow (no padding = no layout shift) */
.oet-reading-hl {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  line-height: inherit;
  font: inherit;
  font-size: inherit;
  color: inherit;
  vertical-align: baseline;
  background: rgba(250, 204, 21, 0.55);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  cursor: text;
}

.oet-reading-layout-texts ::selection,
.oet-reading-hl-zone ::selection {
  background: rgba(250, 204, 21, 0.35);
}

@media (max-width: 900px) {
  .oet-reading-layout {
    grid-template-columns: 1fr;
  }

  .oet-reading-layout-split {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Listening information screens (intro / Part A / B / C) */
.oet-listening-info {
  max-width: 52rem;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #000000;
}

.oet-listening-info-heading,
.oet-listening-info-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.oet-listening-info-part {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.75rem;
}

.oet-listening-info p {
  margin: 0 0 0.85rem;
}

.oet-listening-info-list {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
}

.oet-listening-info-list li {
  margin-bottom: 0.5rem;
}

.oet-listening-beep {
  font-style: italic;
  color: #333333;
}

.oet-listening-info-audio {
  margin: 2rem auto 0;
  max-width: 28rem;
  border: 1px solid #b8c4d4;
  background: #f0f2f5;
  padding: 1rem 1rem 0.5rem;
}

.oet-listening-info-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  height: 3.5rem;
  margin-bottom: 0.75rem;
}

.oet-listening-info-wave span {
  display: block;
  width: 0.45rem;
  background: #9aa8bc;
  border-radius: 1px;
}

.oet-listening-info-wave span:nth-child(1) {
  height: 45%;
}
.oet-listening-info-wave span:nth-child(2) {
  height: 75%;
}
.oet-listening-info-wave span:nth-child(3) {
  height: 55%;
}
.oet-listening-info-wave span:nth-child(4) {
  height: 90%;
}

.oet-listening-info-audio-bar {
  height: 1.75rem;
  background: #4a4a4a;
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

.oet-listening-info-volume {
  color: #ffffff;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .oet-header-top {
    flex-wrap: wrap;
  }
  .oet-header-timer {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .oet-sidebar {
    width: 48px;
  }
  .oet-sidebar-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
}

/* Reading scheduled break (after Part A) — same in light and dark site theme */
.oet-layout-break.oet-practice {
  min-height: 100vh;
  background: var(--oet-break-bg);
  color: var(--oet-break-fg);
}

.oet-layout-break .oet-practice-header,
.oet-layout-break .oet-practice-footer,
.oet-layout-break .oet-sidebar {
  display: none;
}

.oet-layout-break .oet-practice-body {
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.oet-layout-break .oet-content-wrap,
.oet-layout-break .oet-content-panel {
  background: var(--oet-break-bg);
  min-height: 100vh;
}

[data-theme="dark"] .oet-layout-break.oet-practice,
[data-theme="dark"] .oet-layout-break .oet-content-wrap,
[data-theme="dark"] .oet-layout-break .oet-content-panel {
  background-color: var(--oet-break-bg);
  color: var(--oet-break-fg);
}

.oet-reading-break {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  color: var(--oet-break-fg);
  font-family: Arial, Helvetica, sans-serif;
}

.oet-reading-resume-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 11rem;
  min-height: 6.5rem;
  border: 2px solid var(--oet-break-border);
  background: transparent;
  color: var(--oet-break-fg);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.oet-reading-resume-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.oet-reading-resume-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--oet-break-border);
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--oet-break-fg);
}

.oet-reading-break-timer {
  margin: 0;
  font-size: 1rem;
  text-align: center;
  color: var(--oet-break-fg);
}

.oet-reading-break-timer strong {
  color: var(--oet-break-fg);
  font-weight: 700;
}

/* Reading Part B and C — numbered question nav + info (i) buttons */
.oet-layout-reading-bc .oet-sidebar,
.oet-layout-information.oet-practice:has(.oet-reading-bc-instruction) .oet-sidebar {
  width: 52px;
}

.oet-reading-qnav {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
  gap: 0.25rem;
}

.oet-reading-qnav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  overflow-y: auto;
  flex: 1;
  width: 100%;
  padding: 0.15rem 0;
  max-height: calc(100vh - 200px);
}

.oet-reading-qnav-btn {
  width: 2.35rem;
  height: 2.35rem;
  border: none;
  border-radius: 2px;
  background: #4a7fc1;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.oet-reading-qnav-btn.is-active {
  background: #1e3a6e;
  box-shadow: 0 0 0 2px #ffffff;
}

.oet-reading-qnav-btn.is-answered:not(.is-active) {
  background: #6cb86c;
}

.oet-reading-qnav-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.oet-reading-qnav-info {
  width: 2.35rem;
  height: 2.35rem;
  border: none;
  border-radius: 2px;
  background: #4a7fc1;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.oet-reading-qnav-info.is-active {
  background: #1e3a6e;
  box-shadow: 0 0 0 2px #ffffff;
}

.oet-reading-qnav-info:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Reading Part B/C instruction screens (centered white panel) */
.oet-reading-bc-instruction {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.25rem 1rem 2rem;
  min-height: calc(100vh - 168px);
}

.oet-reading-bc-instruction-panel {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 2.25rem 2.25rem;
  background: var(--oet-panel-bg);
  border: 1px solid #888888;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.oet-reading-bc-instruction-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1.35rem;
  color: #000000;
}

.oet-reading-bc-instruction-p {
  margin: 0 0 1rem;
  color: #000000;
}

.oet-reading-bc-instruction-p:last-child {
  margin-bottom: 0;
}

[data-theme="dark"] .oet-reading-bc-instruction-panel {
  background: var(--oet-panel-bg);
  color: #000000;
  border-color: var(--oet-panel-border);
}

.oet-reading-bc-workspace {
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.oet-reading-bc-workspace--single {
  max-width: 52rem;
}

.oet-reading-bc-extract {
  border: 1px solid #888888;
  background: #f8fafc;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  user-select: text;
  cursor: text;
}

.oet-reading-bc-extract-title {
  margin: 0 0 0.75rem;
  font-size: 1em;
  line-height: 1.45;
  color: #000000;
  font-weight: 700;
}

.oet-reading-bc-extract-title strong {
  font-weight: 700;
}

.oet-reading-bc-extract-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

/* Rich (pre-authored HTML) Part B extracts — bold headings, lists, emphasis */
.oet-reading-bc-extract-rich .oet-reading-bc-extract-title {
  margin: 0 0 0.75rem;
}

.oet-reading-bc-extract-rich .oet-reading-bc-para:last-child {
  margin-bottom: 0;
}

.oet-reading-bc-extract-rich ul.oet-text-ul {
  margin: 0 0 0.65rem;
  padding-left: 1.35rem;
}

.oet-reading-bc-extract-rich ul.oet-text-ul li {
  margin-bottom: 0.25rem;
}

/* "Paragraph N" headers inside rich Part C passages */
.oet-reading-bc-para-head {
  margin: 1rem 0 0.45rem;
  font-weight: 700;
}

.oet-reading-bc-para-head:first-child {
  margin-top: 0;
}

.oet-reading-bc-workspace--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 1rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

.oet-reading-bc-passage,
.oet-reading-bc-questions-pane {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.oet-reading-bc-passage {
  border: 1px solid #888888;
  background: var(--oet-panel-bg);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  user-select: text;
  cursor: text;
}

.oet-reading-bc-questions-pane {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 0.15rem 0.35rem 1.5rem 0.25rem;
  scroll-behavior: smooth;
}

.oet-reading-bc-question-block {
  scroll-margin-top: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.oet-reading-bc-question-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.oet-reading-bc-passage-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
}

.oet-reading-bc-para {
  margin: 0 0 0.65rem;
}

.oet-reading-bc-emphasis {
  font-weight: 700;
}

@media (max-width: 900px) {
  .oet-reading-bc-workspace--split {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Mobile / tablet exam delivery */
.oet-practice {
  min-height: 100vh;
  min-height: 100dvh;
}

.main-content.exam-active.oet-practice-active {
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 1023px) {
  .oet-reading-layout,
  .oet-reading-layout-split,
  .oet-reading-bc-workspace--split {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .oet-header-top {
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    padding: 0.45rem 0.75rem;
  }

  .oet-header-meta,
  .oet-header-timer {
    order: 0;
  }

  .oet-timer-label {
    max-width: none;
  }

  .oet-finish-btn {
    min-height: 2.5rem;
  }

  .oet-header-sub {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .oet-practice-body {
    flex-direction: column;
    overflow: auto;
  }

  .oet-sidebar,
  .oet-layout-listening .oet-sidebar,
  .oet-layout-section .oet-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.4rem 0.5rem;
    gap: 0.3rem;
    -webkit-overflow-scrolling: touch;
  }

  .oet-sidebar-btn {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
  }

  .oet-sidebar-btn.is-active::after {
    display: none;
  }

  .oet-listening-sidebar {
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 0;
    gap: 0.35rem;
  }

  .oet-sidebar-scroll {
    display: none;
  }

  .oet-sidebar-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    width: auto;
    flex: 1;
  }

  .oet-list-item,
  .oet-list-item-static {
    flex-shrink: 0;
    width: auto;
    min-width: 4.75rem;
    max-width: 7rem;
  }

  .oet-list-label {
    max-width: 6.5rem;
    font-size: 0.68rem;
  }

  .oet-content-wrap {
    padding: 0.5rem 0.5rem 0.75rem;
  }

  .oet-content-panel {
    padding: 0.85rem 0.85rem 1.5rem;
    overflow-wrap: anywhere;
  }

  .oet-reading-layout--single-page {
    flex: 1;
    min-height: 0;
    height: auto;
    max-height: none;
  }

  .oet-practice .exam-pane-tabs {
    flex-shrink: 0;
  }

  .oet-reading-layout-split,
  .oet-reading-bc-workspace--split {
    flex: 1;
    min-height: 0;
    height: auto;
    grid-template-rows: minmax(0, 1fr);
  }

  .oet-reading-layout-texts,
  .oet-reading-layout-questions,
  .oet-reading-bc-passage,
  .oet-reading-bc-questions-pane {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

  .oet-reading-layout-texts--pdf {
    overflow: hidden;
  }

  .oet-practice-footer {
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  }

  .oet-footer-actions {
    justify-content: stretch;
  }

  .oet-footer-btn {
    flex: 1 1 auto;
    min-height: 2.75rem;
  }

  .oet-footer-start {
    min-width: 0;
  }

  .oet-listening-info-audio {
    max-width: 100%;
  }

  .oet-layout-break .oet-practice-body,
  .oet-layout-break .oet-content-wrap,
  .oet-layout-break .oet-content-panel,
  .oet-reading-break {
    min-height: 100dvh;
  }
}
