/* All pages in the tests section also load the school's older link styles. */
a:any-link {
  text-decoration: none !important;
}
.nav__link:any-link {background-image:none;}
.nav__link:is(:hover, :focus-visible, [aria-current="page"]) {color:var(--c-green-700);}

:where(.tests-page, .menu-page, .consent, .cookie) :where(p, li, figcaption) a:any-link {
  font-weight: 600;
}

:where(.tests-page, .menu-page) p a:not([class]) {
  color: var(--c-green-700);
}

.practice-skip {
  position: fixed;
  z-index: 1000;
  inset: 12px auto auto 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  color: #222;
  transform: translateY(-150%);
}

.practice-skip:focus {
  transform: none;
}

.practice-card {
  min-height: 100%;
}

.practice-card small {
  line-height: 1.5;
  text-transform: none;
}

.practice-hero .page-hero__text {
  max-width: 820px;
}

.practice-stage {
  padding-bottom: 64px;
}

.practice-settings {
  padding: 0;
  border: 0;
  margin: 20px 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.practice-settings legend, .practice-step legend {font-weight: 700; margin-bottom: 8px;}
.practice-settings label {position: relative; cursor: pointer;}
.practice-settings input {position: absolute; opacity: 0; width: 1px; height: 1px;}
.practice-settings span {
  display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px;
  border: 1px solid #91aba4; border-radius: 999px; padding: 8px 16px; background: #fff;
}
.practice-settings input:checked + span {background: #0f625b; color: #fff; border-color: #0f625b;}
.practice-settings input:focus-visible + span {outline: 3px solid #976113; outline-offset: 3px;}
.time-option {display: flex; align-items: center; gap: 8px;}
.time-option input {width: 18px; height: 18px; accent-color: #0f625b;}
.practice-figure {
  padding: 16px; margin: 16px 0; border-radius: 16px; background: #eff8f4;
  border: 1px solid #bfd7ce; color: #183f36; text-align: center;
}
.practice-figure img,.practice-figure svg {display: block; width: 100%; max-width: 540px; max-height: 290px; margin: auto;}
.practice-figure img {object-fit:contain;}
.practice-panel[data-illustrated] .practice-figure,
body:has(.practice-panel[data-illustrated]) .practice-sample .practice-figure {
  background:#faf8f0;border-color:#c6d5c6;color:#21483f;
}
.practice-panel[data-illustrated] .practice-figure figcaption {text-wrap:pretty;}
.practice-source-figure {margin:12px 0 0;border-top:1px solid #bfd0c5;padding-top:8px;text-align:left;}
.practice-source-figure summary {cursor:pointer;font-weight:600;color:#22564d;padding:6px 0;}
.practice-source-figure .practice-figure {background:#fffdf6;margin:6px 0 0;}
.practice-figure img[width] {height:auto;}
.practice-picture-marks {position:relative; width:min(100%,540px,calc(290px * var(--picture-ratio))); margin-inline:auto;}
.practice-picture-marks img {width:100%; max-width:none; max-height:none; height:auto;}
.practice-picture-mark {position:absolute; margin:0; padding:0; min-width:0; min-height:0; cursor:pointer; border:2px solid transparent; border-radius:6px; background:transparent;}
.practice-picture-mark:focus-visible {outline:3px solid #154c73; outline-offset:-2px;}
.practice-picture-mark[aria-pressed="true"] {border-color:#186449; background:rgba(48,137,101,.22);}
.practice-figure figcaption {font-size: .875rem; line-height: 1.5; margin-top: 8px;}
.practice-tokens {
  font-family: 'Onest', 'Segoe UI Emoji', sans-serif; line-height: 1.6; white-space: pre-wrap;
  font-size: clamp(1rem, 4vw, 1.5rem); overflow-wrap: anywhere;
}
.practice-token {font: inherit; min-width: 40px; min-height: 40px; cursor: pointer; border: 1px solid #9eb8ac; border-radius: 10px; background: white;}
.practice-token[aria-pressed="true"] {background: #b6ddbc; outline: 2px solid #367356;}
.practice-marker-help {font-size: .875rem; margin-top: 12px;}
.practice-step,.practice-probe {background: #f2f6ef; border: 1px solid #cad9c4; border-radius: 12px; padding: 16px; margin-top: 16px;}
.learning-note {border: 1px solid #b9d2c6; border-radius: 16px; background: #eff6f2; padding: 20px; margin-top: 16px;}
.learning-note h3 {font-size: 1.5rem;}
.learning-note h4 {margin: 16px 0 4px;}
.practice-invite {margin-top: 32px; color: #365349;}
.practice-invite summary, .practice-sample summary {cursor: pointer;}
.practice-invite a,.learning-note a,.practice-source a,.practice-parent-guide a {color:var(--c-green-700);font-weight:600;}
.practice-source {max-width: 900px; margin: 24px auto 48px;}
.practice-sample .tests-example,.practice-parent-guide p {max-width: 820px;}
.practice-example {white-space: pre-line;}
.iva-scene {width: min(38%, 380px); height: auto; object-fit: cover; border-radius: 24px; align-self: center;}
.tests-hero:has(.iva-scene) .page-hero__inner {display:flex; justify-content:space-between; align-items:center; gap:24px;}
@media(max-width: 700px) {
  .tests-hero:has(.iva-scene) .page-hero__inner {flex-direction: column; align-items: flex-start;}
  .iva-scene {width: min(100%, 320px); align-self: flex-start;}
}

.practice-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 40px);
  border: 1px solid #d9d2be;
  border-radius: 24px;
  background: #fffdfa;
  color: #22261e;
}

.practice-panel h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  line-height: 1.1;
  margin: 0 0 16px;
  scroll-margin-top: 128px;
  text-wrap: balance;
}

.practice-panel h2:focus {
  outline: none;
}

.practice-panel p {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.practice-kicker {
  font-weight: 700;
  font-size: 0.875rem;
  color: #4a503d;
}

.practice-panel progress {
  display: block;
  width: 100%;
  height: 12px;
  accent-color: #5c6c30;
  margin-bottom: 24px;
}

.practice-example {
  background: #f5efdd;
  border: 1px solid #e0d6b8;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.125rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.practice-options {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.practice-options.practice-step {
  margin-top: 24px;
  padding: 12px 16px 16px;
  border: 1px solid #cad9c4;
}
.practice-step[hidden] {display:none;}
.practice-step-responses {display:grid;gap:8px;align-content:start;}
.practice-scene-question {
  display:grid;
  grid-template-columns:minmax(128px, 32%) minmax(0, 1fr);
  align-items:start;
  gap:clamp(12px, 2.5vw, 24px);
}
.practice-panel[data-illustrated] .practice-figure.practice-scene,
.practice-figure.practice-scene,
body:has(.practice-panel[data-illustrated]) .practice-sample .practice-figure.practice-scene {
  margin:0; padding:0; border:0; background:transparent;
}
.practice-figure.practice-scene img,.practice-figure.practice-scene svg {
  width:auto; max-width:100%; height:auto; max-height:196px; margin-inline:auto; border-radius:8px;
}
.practice-sample .practice-figure.practice-scene {max-width:300px;margin-block:12px;}
.practice-scene figcaption {font-size:.875rem;line-height:1.35;}
.practice-transcript {margin:8px 0 16px;}
.practice-transcript summary {color:var(--c-green-700);font-weight:600;cursor:pointer;}
.practice-figure.practice-material :is(img,svg) {width:100%;height:auto;max-width:720px;max-height:none;}
@media (max-width:620px) {
  .practice-scene-question {grid-template-columns:1fr;}
  .practice-figure.practice-scene img,.practice-figure.practice-scene svg {max-height:146px;}
  .practice-scene-question .practice-scene:has(figcaption) {
    display:flex; align-items:center; gap:12px; text-align:left;
  }
  .practice-scene-question .practice-scene:has(figcaption) img {max-width:45%;margin:0;}
  .practice-scene-question .practice-scene figcaption {margin:0;max-width:26ch;}
}

.practice-option {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #d9d2be;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.practice-option:hover {
  background: #faf6e9;
}

.practice-option:has(:checked) {
  background: #f7edcb;
  border-color: #846325;
}

.practice-option input {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: #5c6c30;
}

.practice-option:has(input:disabled) {
  cursor: default;
}

.practice-number {
  display: block;
  width: min(100%, 320px);
  margin: 8px 0;
  padding: 12px 16px;
  min-height: 48px;
  background: #fff;
  border: 1px solid #7c796e;
  border-radius: 8px;
  color: inherit;
  font: inherit;
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 24px;
}

.practice-button {
  min-height: 44px;
  max-width: 100%;
  padding: 8px 16px;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  color: #303221;
  background: #fffdfa;
  border: 1px solid #7c796e;
  border-radius: 999px;
  cursor: pointer;
}

.practice-button:hover:not(:disabled) {
  background: #f5efdd;
}

.practice-button--primary {
  background: #eac150;
  border-color: #a37a24;
}

.practice-button--primary:hover:not(:disabled) {
  background: #f3d173;
}

.practice-button:disabled {
  color: #656255;
  background: #f0ede4;
  border-color: #d9d2be;
  cursor: default;
}

.practice-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: #393b22;
  font-weight: 600;
}

.practice-option:focus-within,
.practice-button:focus-visible,
.practice-number:focus-visible,
.practice-back:focus-visible,
.practice-card:focus-visible {
  outline: 3px solid #685516;
  outline-offset: 3px;
}

.practice-feedback,
.practice-review li {
  padding: 16px;
  border: 1px solid #d9d2be;
  border-radius: 12px;
  background: #fff;
}

.practice-feedback {
  margin-top: 16px;
  background: #f5efdd;
}

.practice-feedback p:last-child,
.practice-review li > p:last-child {
  margin-bottom: 0;
}

.practice-review-heading {
  margin: 24px 0 12px;
  font-size: 1.5rem;
}

.practice-review {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.practice-review li strong {
  display: block;
  margin-bottom: 8px;
}

.practice-review-status {
  font-size: 0.875rem;
  font-weight: 700;
}

.practice-panel [data-result="correct"] {
  background: #eef3dd;
  border-color: #88975b;
}

.practice-panel [data-result="wrong"] {
  background: #fff0e6;
  border-color: #bd805a;
}

.practice-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .practice-panel {
    border-radius: 16px;
  }

  .practice-actions {
    gap: 8px;
  }
}
