.lp-example, .lp-quiz, .lp-apply { margin-block: 32px; padding: 28px; border: 1px solid var(--line); background: var(--white); scroll-margin-top: 20px; }
.lp-example { border-top: 5px solid var(--yellow); }
.lp-example h2, .lp-quiz h2, .lp-apply h2 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.3; margin: 10px 0 18px; }
.lp-note { color: var(--ink-soft); font-size: .9rem; line-height: 1.65; }
.lp-table-scroll { overflow-x: auto; max-width: 100%; margin-block: 22px; }
.lp-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.6; }
.lp-table caption { text-align: left; font-weight: 700; padding-bottom: 12px; }
.lp-table th, .lp-table td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.lp-table thead { background: var(--paper-2); }
.lp-table th { min-width: 80px; }
.lp-scroll-hint { display: none; }
.lp-reasoning > section { scroll-margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.lp-reasoning h3 { font-size: 1.15rem; line-height: 1.4; margin-bottom: 10px; }
.lp-reasoning p:last-child { margin-bottom: 0; }
.lp-quiz { background: var(--paper-2); }
.lp-form fieldset { min-width: 0; border: 0; border-top: 1px solid var(--line); padding: 22px 0; margin: 0; }
.lp-form legend { float: left; width: 100%; font-size: 1.02rem; font-weight: 700; line-height: 1.65; padding: 0; margin-bottom: 14px; }
.lp-form legend + .lp-option { clear: both; }
.lp-form legend > span { color: var(--red); margin-right: 4px; }
.lp-option { display: flex; gap: 12px; align-items: flex-start; margin: 9px 0; padding: 13px; border: 1px solid var(--line); background: var(--white); cursor: pointer; min-height: 48px; line-height: 1.65; }
.lp-option input { flex: 0 0 19px; width: 19px; height: 19px; margin-top: 4px; accent-color: var(--ink); }
.lp-option:hover, .lp-option:focus-within { border-color: var(--ink); }
.lp-option:has(input:checked) { border-color: var(--ink); background: #fff6cc; }
.lp-form fieldset[aria-invalid="true"] { border-top-color: var(--red); }
.lp-error { padding: 12px; border-left: 4px solid var(--red); background: var(--white); }
.lp-form > .button, .lp-actions .button, .lp-apply > .button { white-space: normal; text-align: center; max-width: 100%; line-height: 1.5; }
.lp-result > h3 { font-size: 1.45rem; line-height: 1.35; }
.lp-feedback { list-style: none; padding: 0; display: grid; gap: 18px; }
.lp-feedback > li { padding: 20px; background: var(--white); border-left: 4px solid var(--yellow-deep); }
.lp-feedback > .lp-feedback-correct { border-left-color: var(--green); }
.lp-feedback h4 { margin-bottom: 14px; font-size: 1.02rem; line-height: 1.6; }
.lp-feedback .lp-verdict, .lp-answer { font-weight: 700; }
.lp-feedback p { margin-bottom: 12px; }
.lp-feedback a, .lp-next a { text-underline-offset: 4px; line-height: 1.7; }
.lp-next { padding: 18px 0; }
.lp-next h4 { font-size: 1.05rem; margin-bottom: 10px; }
.lp-next ul { padding-left: 22px; }
.lp-next li { padding-block: 5px; }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-block: 16px; }
.lp-actions .text-link { background: none; border: 0; padding: 12px 0; cursor: pointer; text-align: left; }
.lp-apply { border-left: 5px solid var(--green); }
.lp-apply dl { margin-block: 22px; }
.lp-apply dt { font-weight: 700; margin-top: 18px; }
.lp-apply dd { margin: 6px 0 0; line-height: 1.8; }
.lp-apply > .lp-note { margin-top: 16px; }
.lp-static-solutions summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 700; line-height: 1.6; }
.lp-static-solutions > ol { padding-left: 22px; }
.lp-static-solutions h3 { font-size: 1.05rem; line-height: 1.6; }
.lp-static-solutions details { margin-block: 15px; }
.lp-example :focus-visible, .lp-quiz :focus-visible, .lp-apply :focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.lp-example [hidden], .lp-quiz [hidden], .lp-apply [hidden] { display: none !important; }
@media (max-width: 600px) {
    .lp-scroll-hint { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 18px; margin-bottom: 0; }
    .lp-example, .lp-quiz, .lp-apply { padding: 19px 16px; }
    .lp-feedback > li { padding: 16px; }
    .lp-actions { align-items: stretch; flex-direction: column; }
    .lp-table th, .lp-table td { padding: 9px; }
}
@media print {
    .lp-example, .lp-quiz, .lp-apply { background: white; border-color: #bbb; padding: 12pt; }
    .lp-form, .lp-actions, .lp-apply > .button, .lp-scroll-hint, [data-lp-export-status] { display: none !important; }
    .lp-table-scroll { overflow: visible; }
    .lp-table { font-size: 9pt; }
    .lp-table th { min-width: 0; }
    .lp-table th, .lp-table td { padding: 6pt; }
    .lp-reasoning h3, .lp-feedback h4 { break-after: avoid; }
    .lp-feedback > li { background: white; }
}

.lp-question-error {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-left: 3px solid var(--red);
  background: rgba(173, 29, 29, .06);
  font-weight: 800;
}

.lp-form fieldset.lp-question-revisit {
  box-shadow: inset 4px 0 0 var(--yellow);
}

.lp-back-to-result {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
  text-underline-offset: 3px;
}
