.oet .contents a[aria-current="page"] {
  color: #fff;
  background: #ffffff22;
  font-weight: 700;
  padding-inline: 10px;
}

.oet .note, .oet-section, .exercise-panel {
  margin-block: 24px;
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.oet .note { border-inline-start: 4px solid var(--gold); background: var(--wash); }
.oet .note h2 { font-size: 22px; }
.oet .note p:last-child, .source-text p:last-child { margin-bottom: 0; }
.oet-section li + li { margin-top: .8rem; }
.oet-section a { overflow-wrap: anywhere; }
.oet .lead { max-width: 66ch; }

.exercise-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.exercise-panel { margin: 0; min-width: 0; }
.text-links, .lesson-nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.lesson-nav { margin-top: 25px; }
.text-links a { padding: .3rem 0; font-weight: 600; }
.source-text { border-top: 1px solid var(--line); margin-top: 16px; scroll-margin-top: 12px; }
.source-text h3 { font-size: 20px; }
.lookup dt { font-weight: 700; }
.lookup dd { margin: 0 0 .65rem; }
.questions fieldset { margin: 0 0 20px; min-inline-size: 0; border: 0; padding: 0; }
.questions legend { font-weight: 700; padding: 0; }
.questions fieldset > p { margin-top: .2rem; font-size: 1rem; color: var(--muted); }
.question { display: grid; gap: .4rem; margin: .8rem 0; }
.question input, .question select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.oet button.linkbutton { border: 0; min-height: 44px; font: inherit; font-weight: 700; }
.oet button.linkbutton:disabled { opacity: .6; cursor: default; }
.form-message:empty { display: none; }
.form-message { margin: .6rem 0 0; }
.answer { border-top: 1px solid var(--line); padding-block: 12px; }
.answer h3 { margin: .35rem 0; font-size: 20px; }
.answer p { margin: .4rem 0; }
.answer .answer-status { font-weight: 700; }
.result-summary { font-weight: 700; }
.transcript { margin-bottom: 22px; }
.transcript summary { cursor: pointer; color: var(--link); font-weight: 700; padding-block: .45rem; }
.listening-player { display: block; width: 100%; margin-block: 12px; }
.listening-extract h3 { font-size: 21px; margin: 16px 0 4px; scroll-margin-top: 16px; }
.listening-extract > .small { margin: 0 0 16px; }
.listening-extract + .listening-extract { border-top: 1px solid var(--line); padding-top: 12px; }
.oet [hidden] { display: none !important; }
.oet-mobile-nav { display: none; }

.mock-part { margin-block: 28px; }
.mock-part :is([id], h2) { scroll-margin-top: 110px; }
.mock-item { margin-block: 16px; }
.mock-item article h3, .mock-article-layout h3 { margin: 0 0 .65rem; }
.mock-article-layout + .mock-article-layout { margin-top: 22px; }
.mock-question {
  border: 0;
  border-top: 1px solid var(--line);
  min-inline-size: 0;
  margin: 22px 0 0;
  padding: 0;
}
.mock-question legend { float: left; width: 100%; margin: .75rem 0 .4rem; padding: 0; font-weight: 700; }
.mock-choice {
  clear: both;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem .65rem;
  margin-block: .4rem;
  cursor: pointer;
}
.mock-choice:has(input:checked) { background: var(--wash); border-color: var(--link); }
.mock-choice input { margin: .45em 0 0; accent-color: var(--link); }
.choice-letter { font-weight: 700; }
.mock-actions { margin-block: 22px; }
.mock-review-part { margin-block: 18px; }
.mock-review-part > h3 { padding: 10px 14px; border-radius: 8px; background: var(--wash); }
.mock-review-part .answer h4 { margin: .35rem 0; font-size: 18px; }
[data-timed-label] { margin-right: .45rem; }

.timed-controls { position: sticky; top: 0; z-index: 1; margin-bottom: 14px; }
.timed-controls:has([data-timed-status][hidden]):has([data-start][hidden]) { display: none; }
.timed-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 14px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.timed-status [role="timer"] { font-weight: 700; font-variant-numeric: tabular-nums; }
.oet form[data-duration-seconds] :is(#texts, #task, .source-text) { scroll-margin-top: 90px; }
.reference-table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.reference-table caption { text-align: left; margin-bottom: 6px; }
.reference-table th, .reference-table td {
  padding: .55rem;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}
.reference-table thead { background: var(--wash); }

@media (min-width: 961px) {
  .exercise-panel:has(.source-text) { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
  .oet:has(.timed-status:not([hidden])) .exercise-panel:has(.source-text) { top: 68px; max-height: calc(100vh - 80px); }
}

@media (max-width: 960px) {
  .exercise-layout { grid-template-columns: 1fr; }
  .oet-mobile-nav { display: flex; gap: 16px; flex-wrap: wrap; }
}

@media (max-width: 500px) {
  .reference-table tr > :first-child { width: 40%; }
}
