body.plp-practice-page #sidebar {
  display: none !important;
}

body.plp-practice-page #left-area {
  float: none;
  width: 100%;
  padding-right: 0 !important;
}

body.plp-practice-page #main-content .container::before {
  display: none;
}

.plp-practice,
.plp-quiz {
  --plp-page: #f7f8fa;
  --plp-ink: #102a43;
  --plp-blue: #3778b8;
  --plp-blue-dark: #082d5d;
  --plp-blue-soft: #eef6ff;
  --plp-line: #d7dce2;
  width: min(790px, 100%);
  margin: 0 auto;
  color: var(--plp-ink);
  font-family: Arial, Helvetica, sans-serif;
  /* Divi's Code module can inherit white-space: pre and turn the
     shortcode's source indentation into large visible gaps. */
  white-space: normal;
}

.plp-practice,
.plp-practice *,
.plp-quiz,
.plp-quiz * {
  box-sizing: border-box;
}

/* Component display rules must not override the native hidden attribute. */
.plp-practice [hidden],
.plp-quiz [hidden] {
  display: none !important;
}

.plp-quiz {
  width: min(880px, 100%);
}

.plp-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.plp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--plp-blue);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.plp-eyebrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.plp-heading h2 {
  margin: 0;
  padding: 0;
  color: var(--plp-blue-dark);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.plp-topic {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #c9def4;
  border-radius: 999px;
  color: #235f99;
  background: var(--plp-blue-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.3;
}

.plp-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--plp-line);
  border-radius: 22px;
  background: #f8f8f6;
  box-shadow: 0 18px 55px rgba(8, 45, 93, 0.09);
}

.plp-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--plp-blue);
}

.plp-question {
  max-width: 670px;
  color: var(--plp-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: 'lnum' 1;
  font-size: clamp(19px, 2.5vw, 23px);
  line-height: 1.72;
}

.plp-question p,
.plp-feedback-copy p,
.plp-hint-content p {
  margin: 0;
}

.plp-question-media {
  display: grid;
  place-items: center;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.plp-question-media--medium {
  width: min(100%, 560px);
  margin-right: auto;
  margin-left: auto;
}

.plp-question-media--small {
  width: min(100%, 360px);
  margin-right: auto;
  margin-left: auto;
}

.plp-question-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
}

.plp-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #ccd8e2;
  border-radius: 13px;
  background: #fff;
}

.plp-comparison-column {
  min-width: 0;
}

.plp-comparison-column + .plp-comparison-column {
  border-left: 1px solid #ccd8e2;
}

.plp-comparison-column h4 {
  margin: 0;
  padding: 10px 13px;
  color: #34546e;
  background: #edf3f7;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plp-comparison-column > div {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 16px 14px;
  color: var(--plp-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.plp-comparison-column p {
  margin: 0;
}

.plp-question .katex,
.plp-option-content .katex,
.plp-feedback-copy .katex,
.plp-hint-content .katex,
.plp-quiz-explanation .katex {
  color: inherit;
  font-size: 1em;
  line-height: 1.2;
}

.plp-option-content .katex {
  font-size: 0.96em;
}

.plp-practice .katex-display,
.plp-quiz .katex-display {
  max-width: 100%;
  margin: 0.8em 0;
  padding: 0.15em 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.plp-frac {
  display: inline-grid;
  grid-template-rows: auto auto;
  min-width: 1.4em;
  margin: 0 0.16em;
  vertical-align: middle;
  color: inherit;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.88em;
  line-height: 1;
  text-align: center;
}

.plp-frac > span:first-child {
  padding: 0 0.16em 0.18em;
  border-bottom: 1.4px solid currentColor;
}

.plp-frac > span:last-child {
  padding: 0.15em 0.16em 0;
}

/* Treat a power as one typographic unit so coefficients and variables share a baseline. */
.plp-power {
  display: inline-block;
  color: inherit;
  font-family: 'STIX Two Math', 'Cambria Math', 'Times New Roman', serif;
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: 'lnum' 1;
  line-height: inherit;
  white-space: nowrap;
}

.plp-power-base {
  font: inherit;
}

/* Keep mathematical exponents compact and visually attached to their base. */
.plp-question sup,
.plp-option-content sup,
.plp-feedback sup,
.plp-quiz-explanation sup {
  position: relative;
  top: -0.58em;
  margin-left: -0.025em;
  vertical-align: baseline;
  font-size: 0.68em;
  line-height: 0;
  letter-spacing: 0;
}

.plp-form,
.plp-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.plp-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin-top: 31px;
}

.plp-options--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plp-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  margin: 0;
  padding: 12px 52px 12px 18px;
  border: 1.5px solid #dbe3ed;
  border-radius: 13px;
  color: var(--plp-ink);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.plp-option:hover {
  border-color: #8abce6;
  background: #f8fbff;
  transform: translateY(-1px);
}

.plp-option:focus-within {
  border-color: var(--plp-blue);
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.18);
}

.plp-option.is-selected {
  border-color: var(--plp-blue);
  background: var(--plp-blue-soft);
}

.plp-option.is-correct {
  border-color: #28a56a;
  background: #eefbf4;
}

.plp-option.is-wrong {
  border-color: #d44b43;
  background: #fff3f2;
}

.plp-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.plp-letter {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1.5px solid #b8c7d5;
  border-radius: 50%;
  color: #607386;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease;
}

.plp-option.is-selected .plp-letter {
  border-color: var(--plp-blue);
  color: var(--plp-blue-dark);
}

.plp-option.is-correct .plp-letter {
  border-color: #168452;
  color: #168452;
}

.plp-option.is-wrong .plp-letter {
  border-color: #b42318;
  color: #b42318;
}

.plp-option-content {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: 'lnum' 1;
  font-size: 18px;
  line-height: 1.45;
}

.plp-option-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.plp-option-media {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 0;
  padding: 9px;
  overflow: hidden;
  border: 1px solid #e1e6eb;
  border-radius: 9px;
  background: #f7f8f8;
}

.plp-option.has-image .plp-option-media {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.plp-option-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

.plp-numeric-response {
  margin-top: 31px;
}

.plp-numeric-entry-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.plp-numeric-standard {
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  gap: 7px;
  max-width: 390px;
  color: var(--plp-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.plp-numeric-standard[hidden],
.plp-fraction-entry[hidden] {
  display: none;
}

.plp-numeric-input,
.plp-fraction-entry input {
  box-sizing: border-box;
  min-height: 48px;
  border: 1.5px solid #cbd6e0;
  border-radius: 10px;
  color: var(--plp-ink);
  background: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.2;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.plp-numeric-input {
  width: 100%;
  padding: 10px 13px;
}

.plp-numeric-input:focus,
.plp-fraction-entry input:focus {
  border-color: var(--plp-blue);
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.18);
  outline: 0;
}

.plp-fraction-entry {
  display: grid;
  flex: 0 0 132px;
  grid-template-rows: 48px 2px 48px;
  gap: 5px;
  width: 132px;
}

.plp-fraction-entry label {
  display: block;
  margin: 0;
}

.plp-fraction-entry input {
  width: 100%;
  height: 48px;
  padding: 8px 10px;
  text-align: center;
}

.plp-fraction-line {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #536b80;
}

.plp-fraction-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid #b9c9d7;
  border-radius: 10px;
  color: #294f6e;
  background: #f5f8fa;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.plp-fraction-toggle:hover {
  border-color: #83a9c7;
  background: #edf5fa;
}

.plp-fraction-button-icon {
  display: grid;
  grid-template-rows: 1fr 1fr;
  width: 20px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.plp-fraction-button-icon span:first-child {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.plp-fraction-button-icon span:last-child {
  padding-top: 2px;
}

.plp-numeric-help,
.plp-numeric-error,
.plp-numeric-correct-answer {
  margin: 9px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.plp-numeric-help {
  color: #607386;
}

.plp-numeric-error {
  color: #a93630;
  font-weight: 650;
}

.plp-numeric-correct-answer {
  color: #176b48;
  font-weight: 750;
}

.plp-numeric-response.is-correct .plp-numeric-input,
.plp-numeric-response.is-correct .plp-fraction-entry input {
  border-color: #28a56a;
  background: #eefbf4;
}

.plp-numeric-response.is-wrong .plp-numeric-input,
.plp-numeric-response.is-wrong .plp-fraction-entry input {
  border-color: #d44b43;
  background: #fff3f2;
}

.plp-option-content .plp-frac {
  font-size: 0.9em;
}

.plp-correct-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  display: none;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #168452;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  transform: translateY(-50%);
}

.plp-option.is-correct .plp-correct-icon {
  display: block;
}

.plp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
}

.plp-check,
.plp-reset,
.plp-hint-trigger {
  appearance: none;
  font-family: Arial, Helvetica, sans-serif;
}

.plp-check {
  min-width: 210px;
  min-height: 48px;
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--plp-blue-dark);
  box-shadow: 0 8px 18px rgba(8, 45, 93, 0.16);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
  cursor: pointer;
}

.plp-check:hover {
  background: #12487f;
}

.plp-check:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.45;
}

.plp-reset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 13px;
  border: 0;
  border-radius: 9px;
  color: #526b80;
  background: transparent;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.plp-reset:hover {
  background: #edf1f5;
}

.plp-reset svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.plp-feedback {
  margin-top: 23px;
  padding: 19px 21px;
  border: 1px solid;
  border-radius: 14px;
  animation: plp-feedback-in 220ms ease-out;
}

.plp-feedback[data-state='correct'] {
  border-color: #a9dfc3;
  color: #155d3c;
  background: #eefbf4;
}

.plp-feedback[data-state='wrong'] {
  border-color: #f0b8b4;
  color: #8d2923;
  background: #fff5f4;
}

.plp-feedback-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  font-size: 17px;
  line-height: 1.4;
}

.plp-feedback-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.plp-feedback-copy {
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: 'lnum' 1;
  font-size: 16px;
  line-height: 1.65;
}

.plp-hint-content {
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: 'lnum' 1;
}

.plp-feedback-copy .plp-frac {
  vertical-align: middle;
}

.plp-try-again {
  margin: 5px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
}

.plp-hint {
  margin-top: 18px;
  color: #526b80;
  font-size: 15px;
}

.plp-hint-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 11px 6px 7px;
  border: 0;
  border-radius: 999px;
  color: #445f75;
  background: transparent;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  cursor: pointer;
}

.plp-hint-trigger:hover {
  color: var(--plp-blue-dark);
  background: #eef3f8;
}

.plp-hint-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #a86500;
  background: #fff4d6;
}

.plp-hint-icon svg,
.plp-chevron {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.plp-chevron {
  width: 18px;
  height: 18px;
  color: #7890a4;
  transition: transform 180ms ease;
}

.plp-hint-trigger[aria-expanded='true'] .plp-chevron {
  transform: rotate(180deg);
}

.plp-hint-content {
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0 7px;
  padding: 14px 17px;
  border: 1px solid #f0d99a;
  border-radius: 12px;
  color: #5e4a18;
  background: #fffaf0;
  line-height: 1.6;
}

.plp-practice button:focus-visible,
.plp-option:focus-within,
.plp-quiz button:focus-visible,
.plp-quiz-mode-card:focus-within {
  outline: 3px solid rgba(46, 163, 242, 0.25);
  outline-offset: 2px;
}

.plp-quiz-start,
.plp-quiz-question,
.plp-quiz-result-summary {
  position: relative;
  padding: clamp(25px, 5vw, 44px);
  border: 1px solid var(--plp-line);
  border-radius: 22px;
  background: #f8f8f6;
  box-shadow: 0 18px 55px rgba(8, 45, 93, 0.09);
}

.plp-quiz-start::before,
.plp-quiz-question::before,
.plp-quiz-result-summary::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 22px 22px 0 0;
  background: var(--plp-blue);
}

.plp-quiz-start h2,
.plp-quiz-result-heading {
  margin: 0;
  padding: 0;
  color: var(--plp-blue-dark);
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.plp-quiz-topic {
  margin: 10px 0 0;
  color: #607386;
  font-size: 15px;
  font-weight: 700;
}

.plp-quiz-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.plp-quiz-facts span {
  padding: 7px 11px;
  border: 1px solid #c9def4;
  border-radius: 999px;
  color: #235f99;
  background: var(--plp-blue-soft);
  font-size: 13px;
  font-weight: 750;
}

.plp-quiz-mode-form {
  margin-top: 29px;
}

.plp-quiz-filter-options,
.plp-quiz-mode-options,
.plp-quiz-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.plp-quiz-filter-options legend,
.plp-quiz-mode-options legend {
  margin-bottom: 12px;
  color: var(--plp-ink);
  font-size: 17px;
  font-weight: 800;
}

.plp-quiz-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.plp-quiz-filter-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1.5px solid #d7e0e9;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.plp-quiz-filter-card:has(input:checked) {
  border-color: var(--plp-blue);
  background: var(--plp-blue-soft);
}

.plp-quiz-filter-card input {
  flex: 0 0 auto;
  accent-color: var(--plp-blue-dark);
}

.plp-quiz-filter-card strong,
.plp-quiz-filter-card small {
  display: block;
}

.plp-quiz-filter-card strong {
  color: var(--plp-ink);
  font-size: 15px;
}

.plp-quiz-filter-card small {
  margin-top: 2px;
  color: #607386;
  font-size: 12.5px;
}

.plp-quiz-quantity-label {
  display: block;
  margin-bottom: 7px;
  color: var(--plp-ink);
  font-size: 14px;
  font-weight: 800;
}

.plp-quiz-quantity {
  width: min(100%, 240px);
  min-height: 44px;
  margin-bottom: 22px;
  padding: 8px 38px 8px 12px;
  border: 1px solid #cbd6e1;
  border-radius: 9px;
  color: var(--plp-ink);
  background: #fff;
  font: inherit;
}

.plp-quiz-configuration-error,
.plp-quiz-configuration-warning {
  margin: -11px 0 20px;
  color: #a33a32;
  font-size: 14px;
  font-weight: 700;
}

.plp-quiz-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plp-quiz-mode-options legend {
  grid-column: 1 / -1;
}

.plp-quiz-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 96px;
  padding: 16px;
  border: 1.5px solid #d7e0e9;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}

.plp-quiz-mode-card:has(input:checked) {
  border-color: var(--plp-blue);
  background: var(--plp-blue-soft);
}

.plp-quiz-mode-card input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--plp-blue-dark);
}

.plp-quiz-mode-card strong,
.plp-quiz-mode-card small {
  display: block;
}

.plp-quiz-mode-card strong {
  color: var(--plp-ink);
  font-size: 15.5px;
  line-height: 1.35;
}

.plp-quiz-mode-card small {
  margin-top: 5px;
  color: #607386;
  font-size: 13.5px;
  line-height: 1.45;
}

.plp-quiz-mode-copy {
  margin: 0;
  color: #526b80;
  line-height: 1.6;
}

.plp-quiz-start-button,
.plp-quiz-next,
.plp-quiz-finish,
.plp-quiz-restart {
  min-height: 48px;
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--plp-blue-dark);
  box-shadow: 0 8px 18px rgba(8, 45, 93, 0.16);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.3;
  cursor: pointer;
}

.plp-quiz-start-button {
  margin-top: 22px;
}

.plp-quiz-start-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.plp-quiz-status {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(190, 204, 218, 0.8);
  border-radius: 13px;
  background: rgba(248, 248, 246, 0.94);
  box-shadow: 0 8px 24px rgba(8, 45, 93, 0.1);
  backdrop-filter: blur(10px);
}

.plp-quiz-progress-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.plp-quiz-progress-label {
  display: block;
  margin-bottom: 7px;
  color: var(--plp-ink);
  font-size: 14px;
}

.plp-quiz-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #dfe6ed;
}

.plp-quiz-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--plp-blue);
  transition: width 180ms ease;
}

.plp-quiz-timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 94px;
  padding: 8px 11px;
  border: 1px solid #c9d7e4;
  border-radius: 999px;
  color: #294d6c;
  background: #eef4f9;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.plp-quiz-timer svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.plp-quiz-timer[data-urgency='low'] {
  border-color: #d9b968;
  color: #765709;
  background: #fff8e6;
}

.plp-quiz-timer[data-urgency='critical'] {
  border-color: #e2a09b;
  color: #9b2f28;
  background: #fff0ef;
}

.plp-quiz-question {
  box-shadow: 0 12px 34px rgba(8, 45, 93, 0.08);
}

.plp-quiz-question-number {
  margin: 0 0 19px;
  padding: 0;
  color: #7890a4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.plp-quiz-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0 clamp(44px, 6vw, 72px);
}

.plp-quiz-prev {
  justify-self: start;
}

.plp-quiz-next {
  justify-self: end;
}

.plp-quiz-finish {
  justify-self: center;
}

.plp-quiz-finish:not(.is-primary) {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #cbd6e0;
  color: #526b80;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.plp-quiz-finish:not(.is-primary):hover {
  border-color: #8fa9be;
  color: #274f70;
  background: #f3f6f8;
}

.plp-quiz-finish.is-primary {
  grid-column: 3;
  justify-self: end;
}

.plp-tables-finish-confirmation {
  width: min(430px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 1px solid var(--plp-line);
  border-radius: 18px;
  color: var(--plp-ink);
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 45, 93, 0.28);
}

.plp-tables-finish-confirmation::backdrop {
  background: rgba(8, 28, 48, 0.58);
}

.plp-tables-finish-confirmation__content {
  padding: 26px;
}

.plp-tables-finish-confirmation h3 {
  margin: 0 0 10px;
  color: var(--plp-blue-dark);
  font-size: 23px;
  line-height: 1.2;
}

.plp-tables-finish-confirmation p {
  margin: 0;
  color: #526b80;
  line-height: 1.55;
}

.plp-tables-finish-confirmation__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.plp-tables-finish-confirmation__actions .plp-quiz-prev,
.plp-tables-finish-confirmation__actions .plp-quiz-next {
  justify-self: auto;
}

html[data-lp-theme='dark'] .plp-tables-finish-confirmation {
  border-color: #40586c;
  color: #edf3f9;
  background: #182735;
}

html[data-lp-theme='dark'] .plp-tables-finish-confirmation h3 {
  color: #edf3f9;
}

html[data-lp-theme='dark'] .plp-tables-finish-confirmation p {
  color: #b9c9d6;
}

@media (max-width: 480px) {
  .plp-tables-finish-confirmation__actions {
    flex-direction: column-reverse;
  }

  .plp-tables-finish-confirmation__actions button {
    width: 100%;
  }
}

.plp-quiz-prev {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #cbd6e0;
  border-radius: 10px;
  color: #3d5d77;
  background: #f5f7f9;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

.plp-quiz-prev:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.plp-quiz-explanation {
  margin-top: 21px;
  padding: 17px 19px;
  border: 1px solid #cbdde9;
  border-radius: 12px;
  color: #284d68;
  background: #f0f7fb;
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: 'lnum' 1;
  line-height: 1.65;
}

.plp-quiz-explanation > strong {
  display: block;
  margin-bottom: 5px;
}

.plp-quiz-explanation p {
  margin: 0;
}

.plp-quiz-result-summary {
  margin-bottom: 22px;
}

.plp-quiz-score {
  margin: 18px 0 0;
  color: var(--plp-ink);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 750;
  line-height: 1.4;
}

.plp-quiz-finish-reason {
  margin: 9px 0 0;
  color: #8d2923;
  line-height: 1.55;
}

.plp-quiz-restart {
  margin-top: 21px;
}

.plp-quiz-review {
  display: grid;
  gap: 18px;
}

.plp-quiz-question.is-review .plp-options {
  margin-top: 23px;
}

.plp-quiz-question.is-review .plp-option {
  cursor: default;
  transform: none;
}

.plp-quiz-answer-status {
  width: fit-content;
  margin: -10px 0 19px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
}

.plp-quiz-answer-status[data-state='correct'] {
  color: #155d3c;
  background: #dff5e9;
}

.plp-quiz-answer-status[data-state='wrong'] {
  color: #8d2923;
  background: #ffe6e3;
}

.plp-quiz-answer-status[data-state='unanswered'] {
  color: #5d6570;
  background: #e9edf1;
}


/* Hierarchical arithmetic practice. Scoped so existing PAA, PAEP and PIENSE II quizzes keep their styles. */
.plp-quiz--operations {
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

.plp-quiz--operations button,
.plp-quiz--operations select,
.plp-quiz--operations input {
  font-family: inherit;
}

.plp-operations-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.plp-operations-step + .plp-operations-step {
  margin-top: 26px;
}

.plp-operations-step legend {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--plp-ink);
  font-size: 17px;
  font-weight: 800;
}

.plp-operations-step legend > span {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #fff;
  background: var(--plp-blue-dark);
  font-size: 13px;
}

.plp-operations-level-grid,
.plp-operations-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.plp-operations-choice,
.plp-operations-quantity-choice {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  margin: 0;
  padding: 15px 16px;
  border: 1.5px solid var(--plp-line);
  border-radius: 13px;
  color: var(--plp-ink);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.plp-operations-choice:hover,
.plp-operations-quantity-choice:hover {
  border-color: #8abce6;
  background: #f8fbff;
  transform: translateY(-1px);
}

.plp-operations-choice:focus-within,
.plp-operations-quantity-choice:focus-within {
  border-color: var(--plp-blue);
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.18);
}

.plp-operations-choice:has(input:checked),
.plp-operations-quantity-choice:has(input:checked) {
  border-color: var(--plp-blue);
  background: var(--plp-blue-soft);
  box-shadow: inset 0 0 0 1px var(--plp-blue);
}

.plp-operations-choice input,
.plp-operations-quantity-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.plp-operations-choice strong,
.plp-operations-choice small {
  display: block;
}

.plp-operations-choice strong {
  color: var(--plp-ink);
  font-size: 15.5px;
  line-height: 1.4;
}

.plp-operations-choice small {
  margin-top: 4px;
  color: #607386;
  font-size: 13px;
  line-height: 1.45;
}

.plp-operations-quantity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plp-operations-quantity-choice {
  justify-content: center;
  min-height: 52px;
  padding: 11px 8px;
  text-align: center;
}

.plp-operations-quantity-choice span {
  font-size: 14px;
  font-weight: 800;
}

.plp-operations-choice:has(input:disabled),
.plp-operations-quantity-choice:has(input:disabled) {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.plp-quiz--operations .plp-quiz-start h2 {
  font-size: clamp(29px, 4.5vw, 42px);
}

.plp-quiz--operations .plp-quiz-question {
  padding: clamp(24px, 4vw, 38px);
}

.plp-quiz--operations .plp-question {
  max-width: none;
  color: var(--plp-ink);
  font-family: 'STIX Two Math', 'Cambria Math', Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.plp-quiz--operations .plp-question .katex {
  font-size: 1em;
}

.plp-quiz--operations .plp-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 27px;
}

.plp-quiz--operations .plp-option {
  min-height: 68px;
}

.plp-quiz--operations .plp-option-content {
  font-size: 18px;
}

.plp-quiz--operations .plp-quiz-explanation {
  margin-top: 17px;
}

html[data-lp-theme='dark'] .plp-operations-step legend,
html[data-lp-theme='dark'] .plp-operations-choice strong {
  color: #edf3f9;
}

html[data-lp-theme='dark'] .plp-operations-step legend > span {
  color: #102a43;
  background: #dce9f7;
}

html[data-lp-theme='dark'] .plp-operations-choice,
html[data-lp-theme='dark'] .plp-operations-quantity-choice {
  border-color: #354b5e;
  color: #edf3f9;
  background: #182735;
}

html[data-lp-theme='dark'] .plp-operations-choice small {
  color: #aebfce;
}

html[data-lp-theme='dark'] .plp-operations-choice:hover,
html[data-lp-theme='dark'] .plp-operations-quantity-choice:hover {
  border-color: #6aafe8;
  background: #1d3144;
}

html[data-lp-theme='dark'] .plp-operations-choice:has(input:checked),
html[data-lp-theme='dark'] .plp-operations-quantity-choice:has(input:checked) {
  border-color: #69afe8;
  background: #183650;
  box-shadow: inset 0 0 0 1px #69afe8;
}

@media (max-width: 640px) {
  .plp-operations-level-grid,
  .plp-operations-type-grid,
  .plp-quiz--operations .plp-options {
    grid-template-columns: 1fr;
  }

  .plp-operations-choice {
    min-height: 64px;
  }

  .plp-quiz--operations .plp-question {
    font-size: clamp(34px, 11vw, 46px);
  }

  .plp-quiz--operations .plp-option {
    min-height: 62px;
  }
}

/* Dark appearance used by the site header selector. */
html[data-lp-theme='dark'] .plp-practice,
html[data-lp-theme='dark'] .plp-quiz {
  --plp-ink: #e6edf5;
  --plp-blue: #477da8;
  --plp-blue-dark: #dce9f7;
  --plp-blue-soft: #18324a;
  --plp-line: #34485b;
  color-scheme: dark;
  color: var(--plp-ink);
}

html[data-lp-theme='dark'] .plp-eyebrow {
  color: #75b4e8;
}

html[data-lp-theme='dark'] .plp-heading h2 {
  color: #edf3f9;
}

html[data-lp-theme='dark'] .plp-topic {
  border-color: #365570;
  color: #b9d8f2;
  background: #142a3d;
}

html[data-lp-theme='dark'] .plp-card {
  border-color: var(--plp-line);
  background: #111d29;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
}

html[data-lp-theme='dark'] .plp-option-media {
  border-color: #526474;
  background: #e9edf0;
}

html[data-lp-theme='dark'] .plp-comparison {
  border-color: #40586c;
  background: #182735;
}

html[data-lp-theme='dark'] .plp-comparison-column + .plp-comparison-column {
  border-color: #40586c;
}

html[data-lp-theme='dark'] .plp-comparison-column h4 {
  color: #c5dced;
  background: #1e3447;
}

html[data-lp-theme='dark'] .plp-comparison-column > div {
  color: var(--plp-ink);
}

html[data-lp-theme='dark'] .plp-question,
html[data-lp-theme='dark'] .plp-option,
html[data-lp-theme='dark'] .plp-option-content {
  color: var(--plp-ink);
}

html[data-lp-theme='dark'] .plp-option {
  border-color: #354b5e;
  background: #182735;
}

html[data-lp-theme='dark'] .plp-numeric-input,
html[data-lp-theme='dark'] .plp-fraction-entry input {
  border-color: #526474;
  color: #edf5fb;
  background: #172634;
}

html[data-lp-theme='dark'] .plp-fraction-line {
  background: #a9bac8;
}

html[data-lp-theme='dark'] .plp-fraction-toggle {
  border-color: #526b80;
  color: #c7def0;
  background: #172b3c;
}

html[data-lp-theme='dark'] .plp-fraction-toggle:hover {
  background: #1d3549;
}

html[data-lp-theme='dark'] .plp-numeric-help {
  color: #aabac8;
}

html[data-lp-theme='dark'] .plp-numeric-response.is-correct .plp-numeric-input,
html[data-lp-theme='dark'] .plp-numeric-response.is-correct .plp-fraction-entry input {
  border-color: #4cb985;
  background: #123326;
}

html[data-lp-theme='dark'] .plp-numeric-response.is-wrong .plp-numeric-input,
html[data-lp-theme='dark'] .plp-numeric-response.is-wrong .plp-fraction-entry input {
  border-color: #dc6d66;
  background: #3a2021;
}

html[data-lp-theme='dark'] .plp-option:hover {
  border-color: #6aafe8;
  background: #1d3144;
}

html[data-lp-theme='dark'] .plp-option.is-selected {
  border-color: #69afe8;
  background: #183650;
}

html[data-lp-theme='dark'] .plp-letter {
  border-color: #70869a;
  color: #bdcad6;
}

html[data-lp-theme='dark'] .plp-option.is-selected .plp-letter {
  border-color: #7fc1f5;
  color: #e6f3ff;
}

html[data-lp-theme='dark'] .plp-check {
  color: #ffffff;
  background: #356f9e;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

html[data-lp-theme='dark'] .plp-check:hover {
  background: #4180b1;
}

html[data-lp-theme='dark'] .plp-check:disabled {
  color: #b8c6d3;
  background: #34495d;
  opacity: 0.7;
}

html[data-lp-theme='dark'] .plp-reset,
html[data-lp-theme='dark'] .plp-hint,
html[data-lp-theme='dark'] .plp-hint-trigger {
  color: #b9c9d8;
}

html[data-lp-theme='dark'] .plp-reset:hover,
html[data-lp-theme='dark'] .plp-hint-trigger:hover {
  color: #edf5fc;
  background: #172b3e;
}

html[data-lp-theme='dark'] .plp-hint-icon {
  color: #f0c66a;
  background: #3b3018;
}

html[data-lp-theme='dark'] .plp-chevron {
  color: #8fa5b8;
}

html[data-lp-theme='dark'] .plp-hint-content {
  border-color: #66552b;
  color: #f1dfad;
  background: #292414;
}

html[data-lp-theme='dark'] .plp-option.is-correct {
  border-color: #42b77d;
  color: #dff8eb;
  background: #153528;
}

html[data-lp-theme='dark'] .plp-option.is-wrong {
  border-color: #df746d;
  color: #ffe8e6;
  background: #3b2021;
}

html[data-lp-theme='dark'] .plp-feedback[data-state='correct'] {
  border-color: #397d5b;
  color: #d9f4e6;
  background: #163326;
}

html[data-lp-theme='dark'] .plp-feedback[data-state='wrong'] {
  border-color: #8f4b48;
  color: #ffe3e1;
  background: #3a2021;
}

html[data-lp-theme='dark'] .plp-practice button:focus-visible,
html[data-lp-theme='dark'] .plp-option:focus-within,
html[data-lp-theme='dark'] .plp-quiz button:focus-visible,
html[data-lp-theme='dark'] .plp-quiz-mode-card:focus-within {
  outline-color: rgba(126, 193, 245, 0.48);
}

html[data-lp-theme='dark'] .plp-quiz-start,
html[data-lp-theme='dark'] .plp-quiz-question,
html[data-lp-theme='dark'] .plp-quiz-result-summary {
  border-color: var(--plp-line);
  background: #111d29;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
}

html[data-lp-theme='dark'] .plp-quiz-start h2,
html[data-lp-theme='dark'] .plp-quiz-result-heading,
html[data-lp-theme='dark'] .plp-quiz-filter-options legend,
html[data-lp-theme='dark'] .plp-quiz-filter-card strong,
html[data-lp-theme='dark'] .plp-quiz-quantity-label,
html[data-lp-theme='dark'] .plp-quiz-mode-options legend,
html[data-lp-theme='dark'] .plp-quiz-mode-card strong,
html[data-lp-theme='dark'] .plp-quiz-progress-label,
html[data-lp-theme='dark'] .plp-quiz-score {
  color: #edf3f9;
}

html[data-lp-theme='dark'] .plp-quiz-topic,
html[data-lp-theme='dark'] .plp-quiz-filter-card small,
html[data-lp-theme='dark'] .plp-quiz-mode-card small,
html[data-lp-theme='dark'] .plp-quiz-mode-copy {
  color: #aebfce;
}

html[data-lp-theme='dark'] .plp-quiz-facts span {
  border-color: #365570;
  color: #b9d8f2;
  background: #142a3d;
}

html[data-lp-theme='dark'] .plp-quiz-mode-card {
  border-color: #354b5e;
  background: #182735;
}

html[data-lp-theme='dark'] .plp-quiz-filter-card,
html[data-lp-theme='dark'] .plp-quiz-quantity {
  border-color: #354b5e;
  color: #edf3f9;
  background: #182735;
}

html[data-lp-theme='dark'] .plp-quiz-filter-card:has(input:checked) {
  border-color: #5e91ba;
  background: #183650;
}

html[data-lp-theme='dark'] .plp-quiz-mode-card:has(input:checked) {
  border-color: #5e91ba;
  background: #183650;
}

html[data-lp-theme='dark'] .plp-quiz-start-button,
html[data-lp-theme='dark'] .plp-quiz-next,
html[data-lp-theme='dark'] .plp-quiz-finish.is-primary,
html[data-lp-theme='dark'] .plp-quiz-restart {
  color: #fff;
  background: #356f9e;
}

html[data-lp-theme='dark'] .plp-quiz-finish:not(.is-primary) {
  border-color: #40586c;
  color: #aebfce;
  background: transparent;
  box-shadow: none;
}

html[data-lp-theme='dark'] .plp-quiz-finish:not(.is-primary):hover {
  border-color: #5f7e98;
  color: #edf5fc;
  background: #172b3e;
}

html[data-lp-theme='dark'] .plp-quiz-status {
  border-color: rgba(64, 86, 105, 0.9);
  background: rgba(17, 29, 41, 0.94);
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.3);
}

html[data-lp-theme='dark'] .plp-quiz-progress {
  background: #304456;
}

html[data-lp-theme='dark'] .plp-quiz-timer {
  border-color: #405d75;
  color: #c6d9e9;
  background: #192d40;
}

html[data-lp-theme='dark'] .plp-quiz-timer[data-urgency='low'] {
  border-color: #806c35;
  color: #f0d38c;
  background: #302a18;
}

html[data-lp-theme='dark'] .plp-quiz-timer[data-urgency='critical'] {
  border-color: #8f4b48;
  color: #ffc1bd;
  background: #3a2021;
}

html[data-lp-theme='dark'] .plp-quiz-prev {
  border-color: #40586c;
  color: #c2d2df;
  background: #172735;
}

html[data-lp-theme='dark'] .plp-quiz-explanation {
  border-color: #365a70;
  color: #cbe2f1;
  background: #152c3b;
}

html[data-lp-theme='dark'] .plp-quiz-finish-reason {
  color: #ffc1bd;
}

html[data-lp-theme='dark'] .plp-quiz-answer-status[data-state='correct'] {
  color: #c7f0da;
  background: #1b4935;
}

html[data-lp-theme='dark'] .plp-quiz-answer-status[data-state='wrong'] {
  color: #ffd0cd;
  background: #512729;
}

html[data-lp-theme='dark'] .plp-quiz-answer-status[data-state='unanswered'] {
  color: #c5d0da;
  background: #334251;
}

@keyframes plp-feedback-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .plp-options--two {
    grid-template-columns: 1fr;
  }

  .plp-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .plp-card {
    border-radius: 17px;
  }

  .plp-question {
    line-height: 1.62;
  }

  .plp-question-media {
    margin-bottom: 19px;
  }

  .plp-question-image {
    max-height: 300px;
  }

  .plp-comparison {
    gap: 0;
  }

  .plp-comparison-column h4 {
    padding: 9px 7px;
    font-size: 12px;
  }

  .plp-comparison-column > div {
    min-height: 78px;
    padding: 12px 8px;
    font-size: 16px;
  }

  .plp-option {
    min-height: 58px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .plp-option-image {
    max-height: 150px;
  }

  .plp-numeric-entry-row {
    align-items: stretch;
    flex-direction: column;
  }

  .plp-numeric-standard {
    flex-basis: auto;
    max-width: none;
  }

  .plp-fraction-entry {
    align-self: center;
  }

  .plp-fraction-toggle {
    width: 100%;
  }

  .plp-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .plp-check,
  .plp-reset {
    width: 100%;
    justify-content: center;
  }

  .plp-quiz-start,
  .plp-quiz-question,
  .plp-quiz-result-summary {
    border-radius: 17px;
  }

  .plp-quiz-mode-options {
    grid-template-columns: 1fr;
  }

  .plp-quiz-filter-grid {
    grid-template-columns: 1fr;
  }

  .plp-quiz-mode-options legend {
    grid-column: auto;
  }

  .plp-quiz-mode-card {
    min-height: 0;
  }

  .plp-quiz-status {
    top: 8px;
    gap: 12px;
    padding: 11px 12px;
  }

  .plp-quiz-timer {
    min-width: 84px;
    padding: 7px 9px;
    font-size: 14px;
  }

  .plp-quiz-navigation {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 48px;
  }

  .plp-quiz-prev {
    grid-column: 1;
  }

  .plp-quiz-next,
  .plp-quiz-finish.is-primary {
    grid-column: 2;
  }

  .plp-quiz-finish:not(.is-primary) {
    grid-row: 2;
    grid-column: 1 / -1;
    width: auto;
  }

  .plp-quiz-prev,
  .plp-quiz-next,
  .plp-quiz-finish.is-primary,
  .plp-quiz-start-button,
  .plp-quiz-restart {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plp-practice *,
  .plp-practice *::before,
  .plp-practice *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Stable operations quiz geometry: reserve space so questions do not jump. */
.plp-quiz--operations .plp-quiz-question-number {
  margin-bottom: 52px;
}

.plp-quiz--operations .plp-quiz-answer-status {
  position: absolute;
  z-index: 1;
  top: calc(clamp(24px, 4vw, 38px) + 25px);
  left: clamp(24px, 4vw, 38px);
  margin: 0;
}

.plp-quiz--operations .plp-question {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  overflow: visible;
}

.plp-quiz--operations .plp-quiz-explanation {
  box-sizing: border-box;
  height: 120px;
  overflow: auto;
}

.plp-quiz--operations .plp-quiz-explanation[hidden] {
  display: block;
  visibility: hidden;
}

@media (max-width: 640px) {
  .plp-quiz--operations .plp-quiz-explanation {
    height: 170px;
  }
}



/* Trinomial factorization: a compatible signed-pair question type. */
.plp-quiz--factorization .plp-quiz-topic {
  max-width: 680px;
}

.plp-quiz--factorization .plp-quiz-status {
  align-items: center;
}

.plp-factor-correct-count {
  display: block;
  margin-top: 3px;
  color: var(--plp-muted);
  font-size: 13px;
  font-weight: 500;
}

.plp-quiz--factorization .plp-quiz-question {
  min-height: 500px;
}

.plp-quiz--factorization .plp-quiz-question-number {
  margin-bottom: 18px;
}

.plp-quiz--factorization .plp-question {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 112px;
  margin: 0;
  overflow: visible;
  font-size: clamp(28px, 5vw, 42px);
  text-align: center;
}

.plp-signed-pair-response {
  text-align: center;
}

.plp-factorize-label {
  margin: 0 0 12px;
  color: var(--plp-muted);
  font-size: 15px;
  font-weight: 600;
}

.plp-factor-expression {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 70px;
  color: var(--plp-ink);
  font-family: KaTeX_Main, Georgia, serif;
  font-size: clamp(27px, 5vw, 38px);
  line-height: 1;
}

.plp-factor-expression label {
  display: inline-flex;
}

.plp-signed-term {
  box-sizing: border-box;
  width: 58px;
  height: 52px;
  padding: 3px 5px;
  border: 1px solid var(--plp-line);
  border-radius: 9px;
  color: var(--plp-ink);
  background: var(--plp-surface);
  font: 600 24px/1 Roboto, Arial, sans-serif;
  text-align: center;
  appearance: none;
}

.plp-signed-term:focus {
  border-color: var(--plp-blue);
  outline: 3px solid rgba(37, 105, 151, 0.16);
}

.plp-signed-pair-response.is-correct .plp-signed-term {
  border-color: #27875d;
  background: #eff9f4;
}

.plp-signed-pair-response.is-wrong .plp-signed-term {
  border-color: #b64d48;
  background: #fff5f4;
}

.plp-factor-feedback {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 122px;
  padding-top: 14px;
}

.plp-factor-message {
  min-height: 24px;
  margin: 0;
  color: var(--plp-ink);
  font-size: 16px;
  font-weight: 700;
}

.plp-factor-solution {
  margin-top: 8px;
  color: var(--plp-ink);
  font-size: 24px;
}

.plp-factor-reveal {
  margin-top: 8px;
  padding: 7px 12px;
  border: 1px solid var(--plp-line);
  border-radius: 8px;
  color: var(--plp-blue);
  background: transparent;
  font: 600 14px/1.2 Roboto, Arial, sans-serif;
  cursor: pointer;
}

.plp-factor-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.plp-factor-actions .plp-check,
.plp-factor-actions .plp-factor-next {
  min-width: 190px;
}

.plp-quiz--factorization > .plp-quiz-session > .plp-quiz-navigation {
  display: none;
}

html[data-lp-theme='dark'] .plp-factor-expression,
html[data-lp-theme='dark'] .plp-factor-message,
html[data-lp-theme='dark'] .plp-factor-solution {
  color: #edf3f9;
}

html[data-lp-theme='dark'] .plp-signed-term {
  border-color: #40586c;
  color: #edf3f9;
  background: #182735;
}

html[data-lp-theme='dark'] .plp-signed-pair-response.is-correct .plp-signed-term {
  border-color: #42b77d;
  background: #153528;
}

html[data-lp-theme='dark'] .plp-signed-pair-response.is-wrong .plp-signed-term {
  border-color: #df746d;
  background: #3b2021;
}

html[data-lp-theme='dark'] .plp-factor-reveal {
  border-color: #40586c;
  color: #b9d8f2;
}

@media (max-width: 640px) {
  .plp-quiz--factorization .plp-quiz-question {
    min-height: 470px;
  }

  .plp-quiz--factorization .plp-question {
    height: 100px;
    font-size: 30px;
  }

  .plp-factor-expression {
    font-size: 28px;
  }

  .plp-signed-term {
    width: 54px;
    height: 50px;
    font-size: 22px;
  }

  .plp-factor-actions .plp-check,
  .plp-factor-actions .plp-factor-next {
    width: 100%;
  }
}

.plp-factor-page-heading {
  max-width: 860px;
  margin: 0 auto clamp(28px, 5vw, 46px);
}

.plp-factor-page-heading .plp-eyebrow {
  margin-bottom: 12px;
}

.plp-factor-page-heading h1 {
  margin: 0;
  color: var(--plp-ink);
  font: 700 clamp(30px, 5vw, 48px)/1.14 Roboto, Arial, sans-serif;
  letter-spacing: -0.025em;
}

.plp-factor-page-heading p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--plp-muted);
  font-size: 17px;
  line-height: 1.65;
}

.plp-trinomial-practice-page .entry-title.main_title {
  display: none;
}

html[data-lp-theme='dark'] .plp-factor-page-heading h1 { color: #edf3f9; }
html[data-lp-theme='dark'] .plp-factor-page-heading p { color: #aebfce; }

@media (max-width: 640px) {
  .plp-factor-page-heading h1 { font-size: 31px; }
  .plp-factor-page-heading p { font-size: 16px; }
}


.plp-tables-time-options .plp-operations-level-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 641px) {
  .plp-tables-time-options .plp-operations-choice {
    justify-content: center;
    min-height: 56px;
    padding: 9px 7px;
    text-align: center;
  }

  .plp-tables-time-options .plp-operations-choice strong {
    font-size: 13px;
    line-height: 1.25;
  }
}

@media (max-width: 640px) {
  .plp-tables-time-options .plp-operations-level-grid {
    grid-template-columns: 1fr;
  }
}

/* Selector compacto de tablas de multiplicar. */
.plp-tables-number-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.plp-tables-number-choice {
  min-height: 52px;
  padding: 10px 6px;
}

.plp-tables-number-choice span {
  font-size: 16px;
}

/* Evita que el puntero o el foco de un clic dejen una marca tenue. */
.plp-quiz[data-setup="multiplication-tables"] .plp-option:focus-within,
.plp-quiz[data-setup="multiplication-tables"] .plp-tables-number-choice:focus-within {
  outline: 0;
  box-shadow: none;
}

.plp-quiz[data-setup="multiplication-tables"] .plp-option:has(input:focus-visible),
.plp-quiz[data-setup="multiplication-tables"] .plp-tables-number-choice:has(input:focus-visible) {
  border-color: var(--plp-blue);
  outline: 3px solid rgba(46, 163, 242, 0.25);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.18);
}

.plp-quiz[data-setup="multiplication-tables"].is-hover-suppressed .plp-option:hover:not(.is-selected):not(.is-correct):not(.is-wrong) {
  border-color: #dbe3ed;
  background: #fff;
  transform: none;
}

.plp-quiz[data-setup="multiplication-tables"].is-hover-suppressed .plp-tables-number-choice:hover:not(:has(input:checked)) {
  border-color: var(--plp-line);
  background: #fff;
  transform: none;
}

html[data-lp-theme='dark'] .plp-quiz[data-setup="multiplication-tables"].is-hover-suppressed .plp-option:hover:not(.is-selected):not(.is-correct):not(.is-wrong),
html[data-lp-theme='dark'] .plp-quiz[data-setup="multiplication-tables"].is-hover-suppressed .plp-tables-number-choice:hover:not(:has(input:checked)) {
  border-color: #354b5e;
  background: #182735;
}

.plp-tables-selection-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.plp-tables-action {
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--plp-line);
  border-radius: 12px;
  color: var(--plp-ink);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.plp-tables-action:hover {
  border-color: #8abce6;
  background: #f8fbff;
  transform: translateY(-1px);
}

.plp-tables-action:focus-visible {
  border-color: var(--plp-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.18);
}

html[data-lp-theme='dark'] .plp-tables-action {
  border-color: #354b5e;
  color: #edf3f9;
  background: #182735;
}

html[data-lp-theme='dark'] .plp-tables-action:hover {
  border-color: #6aafe8;
  background: #1d3144;
}

@media (max-width: 480px) {
  .plp-tables-number-grid,
  .plp-tables-selection-actions {
    gap: 7px;
  }

  .plp-tables-number-choice {
    min-height: 46px;
  }

  .plp-tables-action {
    padding-inline: 8px;
    font-size: 13px;
  }
}


.plp-tables-result-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin: 28px 0;
  text-align: left;
}

.plp-tables-result-group {
  padding: 20px;
  border: 1px solid var(--plp-line);
  border-radius: 14px;
  background: var(--plp-surface);
}

.plp-tables-result-group h3 {
  margin: 0 0 14px;
  color: var(--plp-ink);
  font-size: 20px;
}

.plp-tables-result-group ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plp-tables-result-group li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--plp-ink);
  font-weight: 650;
}

.plp-tables-result-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.plp-tables-result-group li[data-state='correct'] .plp-tables-result-icon {
  background: #27875d;
}

.plp-tables-result-group li[data-state='wrong'] .plp-tables-result-icon {
  background: #b64d48;
}

html[data-lp-theme='dark'] .plp-tables-result-group {
  border-color: #40586c;
  background: #182735;
}

html[data-lp-theme='dark'] .plp-tables-result-group h3,
html[data-lp-theme='dark'] .plp-tables-result-group li {
  color: #edf3f9;
}

@media (max-width: 600px) {
  .plp-tables-result-group ul {
    grid-template-columns: 1fr;
  }
}


/* Página de tablas: alinea su presentación con la práctica de operaciones. */
body.plp-tables-page #main-content {
  background: #f5f7fa;
}

body.plp-tables-page .lp-operations-hub {
  width: 92%;
  margin-inline: auto;
  background: var(--lp-soft);
}

body.plp-tables-page .lp-operations-wrap {
  width: calc(100% - 40px);
  max-width: none;
}

body.plp-tables-page .lp-operations-hero {
  padding: 28px 0 42px;
  background: var(--lp-soft);
}

body.plp-tables-page .lp-operations-hero__inner {
  max-width: none;
}

body.plp-tables-page .lp-operations-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
}

body.plp-tables-page .lp-operations-tool {
  background: var(--lp-soft);
}

body.plp-tables-page .lp-operations-tool__inner {
  width: calc(100% - 40px);
  max-width: none;
}

body.plp-tables-page .plp-quiz--multiplication-tables {
  width: 100%;
}

html[data-lp-theme='dark'] body.plp-tables-page #main-content {
  background: #172638;
}

@media (max-width: 700px) {
  body.plp-tables-page .lp-operations-hub {
    width: 100%;
  }

  body.plp-tables-page .lp-operations-wrap {
    width: calc(100% - 38px);
  }

  body.plp-tables-page .lp-operations-hero {
    padding: 42px 0 34px;
  }

  body.plp-tables-page .lp-operations-tool__inner {
    width: 100%;
  }
}


/* Tipografía de tablas: iguala la referencia de práctica de operaciones sin afectar otros cuestionarios. */
body.plp-tables-page .lp-operations-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(39px, 5vw, 58.48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: normal;
}

body.plp-tables-page .lp-operations-eyebrow {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

body.plp-tables-page .lp-operations-lead {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

body.plp-tables-page .plp-quiz--multiplication-tables .plp-quiz-start h2 {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

body.plp-tables-page .plp-quiz--multiplication-tables .plp-quiz-topic {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

body.plp-tables-page .plp-quiz--multiplication-tables .plp-tables-practice-options .plp-operations-choice strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

body.plp-tables-page .plp-quiz--multiplication-tables .plp-tables-practice-options .plp-operations-choice small {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

/* En operaciones, KaTeX presenta pregunta y respuestas a 40 px; aquí se iguala el tamaño visible. */
body.plp-tables-page .plp-quiz--multiplication-tables .plp-question,
body.plp-tables-page .plp-quiz--multiplication-tables .plp-option-content {
  font-family: KaTeX_Main, 'Times New Roman', serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
}

body.plp-tables-page .plp-quiz--multiplication-tables .plp-quiz-start-button,
body.plp-tables-page .plp-quiz--multiplication-tables .plp-quiz-prev,
body.plp-tables-page .plp-quiz--multiplication-tables .plp-quiz-next {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
}

body.plp-tables-page .plp-quiz--multiplication-tables .plp-quiz-finish {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

body.plp-tables-page .plp-quiz--multiplication-tables .plp-quiz-question-number {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.08em;
}

@media (max-width: 760px) {
  body.plp-tables-page .lp-operations-eyebrow {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
  }
}

@media (max-width: 700px) {
  body.plp-tables-page .lp-operations-hero h1 {
    font-size: 35.1px;
    line-height: 1.1;
  }

  body.plp-tables-page .lp-operations-lead {
    font-size: 17px;
    line-height: 1.6;
  }

  body.plp-tables-page .plp-quiz--multiplication-tables .plp-quiz-start h2 {
    font-size: 28.47px;
    line-height: 1.15;
  }

  body.plp-tables-page .plp-quiz--multiplication-tables .plp-question,
  body.plp-tables-page .plp-quiz--multiplication-tables .plp-option-content {
    font-size: 20px;
    line-height: 1.2;
  }
}


/* Keep the custom footer below the tables practice content on this page. */
body.page-id-10008 #main-footer,
body.page-id-10008 .et-l--footer {
  clear: both !important;
  float: none !important;
  width: 100% !important;
}


/* Página 10008: iguala la presentación de Práctica de operaciones. */
body.page-id-10008 #main-content,
body.page-id-10008 #main-content .et_pb_section,
body.page-id-10008 #main-content .et_pb_row,
body.page-id-10008 #main-content .et_pb_column,
body.page-id-10008 #main-content .et_pb_code,
body.page-id-10008 #main-content .et_pb_code_inner {
  background-color: #f5f7fa !important;
}

body.page-id-10008 #main-content .et_pb_row {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-10008 .lp-operations-hub {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: #f5f7fa !important;
  font-family: Roboto, Arial, Helvetica, sans-serif !important;
}

body.page-id-10008 .lp-operations-wrap {
  width: calc(100% - 8vw) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

body.page-id-10008 .lp-operations-hero {
  padding: 54px 0 42px !important;
  background: #f5f7fa !important;
}

body.page-id-10008 .lp-operations-hero__inner {
  max-width: 790px !important;
}

body.page-id-10008 .lp-operations-hero h1 {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(39px, 5vw, 58.48px) !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: normal !important;
}

body.page-id-10008 .lp-operations-eyebrow {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  letter-spacing: 0.1em !important;
}

body.page-id-10008 .lp-operations-lead {
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

body.page-id-10008 .lp-operations-tool {
  padding: 42px 0 74px !important;
  background: #f5f7fa !important;
}

body.page-id-10008 .lp-operations-tool__inner {
  width: min(1100px, calc(100% - 8vw)) !important;
  max-width: 1100px !important;
  margin-inline: auto !important;
}

body.page-id-10008 .plp-quiz--multiplication-tables {
  width: 100% !important;
}

@media (max-width: 700px) {
  body.page-id-10008 .lp-operations-wrap,
  body.page-id-10008 .lp-operations-tool__inner {
    width: calc(100% - 38px) !important;
  }

  body.page-id-10008 .lp-operations-hero {
    padding: 42px 0 34px !important;
  }
}


/* La columna de Divi de esta página debe ocupar todo el ancho disponible. */
body.page-id-10008 #main-content .et_pb_column,
body.page-id-10008 #main-content .et_pb_text,
body.page-id-10008 #main-content .et_pb_text_inner {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}


/* El encabezado introductorio usa todo el ancho de la fila. */
body.page-id-10008 .lp-operations-hero__inner {
  width: 100% !important;
  max-width: none !important;
}

body.page-id-10008 .lp-operations-lead {
  max-width: none !important;
}
