/* /style.css owns site typography, colors, cards, containers and CTAs.
   Keep this sheet limited to assessment layout and interaction states. */
.content-lab [hidden] { display: none !important; }
.lab-title-break { display: none; }
.content-lab .btn { min-height: 44px; }
.content-lab button:disabled { opacity: .4; cursor: not-allowed; }
.content-lab button:focus-visible,
.content-lab a:focus-visible,
.content-lab summary:focus-visible { outline: 3px solid #3b82f6; outline-offset: 4px; }
.content-lab [tabindex="-1"]:focus { outline: none; }

.lab-quiz { scroll-margin-top: 100px; }
.lab-quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.lab-completion { display: flex; gap: 8px; font-size: .875rem; color: #64748b; }
.lab-progress { display: block; appearance: none; border: 0; border-radius: 9999px; overflow: hidden; background: #f1f5f9; width: 100%; height: 6px; }
.lab-progress::-webkit-progress-bar { background: #f1f5f9; }
.lab-progress::-webkit-progress-value { background: #3b82f6; transition: width .15s; }
.lab-progress::-moz-progress-bar { background: #3b82f6; }
.lab-question-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 32px; align-items: start; }
.lab-question-aside .lab-kicker { margin: 16px 0 8px; }
.lab-dimension-dot { display: block; width: 32px; height: 32px; border-radius: 50%; background: #3b82f6; }
.lab-topic { display: inline-block; }
.lab-choices { padding: 0; margin: 0; border: 0; display: grid; gap: 12px; min-width: 0; }
.lab-option { position: relative; display: flex; align-items: center; gap: 16px; border: 1px solid #e2e8f0; border-radius: 12px; min-height: 66px; padding: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.lab-option:hover { border-color: #93c5fd; background: #f8fafc; }
.lab-option.is-selected { border-color: #3b82f6; background: #eff6ff; box-shadow: inset 0 0 0 1px #3b82f6; }
.lab-option input { position: absolute; width: 1px; height: 1px; opacity: 0; left: 16px; top: 24px; }
.lab-option:has(input:focus-visible) { outline: 3px solid #3b82f6; outline-offset: 3px; }
.lab-choice-letter { flex: 0 0 32px; height: 32px; display: grid; place-items: center; font-size: .875rem; border-radius: 50%; color: #64748b; background: #f1f5f9; }
.is-selected .lab-choice-letter { color: #fff; background: #3b82f6; }
.lab-choice-text { line-height: 1.75; flex: 1; }
.lab-choice-check { color: #3b82f6; opacity: 0; }
.is-selected .lab-choice-check { opacity: 1; }
.lab-note p { line-height: 1.75; margin-top: 8px; }
.lab-note a { display: inline-flex; align-items: center; font-size: .875rem; color: #3b82f6; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }
.lab-navigation { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; }
.lab-previous { gap: 8px; }
.lab-local-note { border-top: 1px solid #e2e8f0; padding-top: 24px; margin-top: 32px; line-height: 1.75; }

.lab-result-intro { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 32px; align-items: center; padding: 8px 0 24px; }
.lab-score-seal { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; min-height: 180px; font-size: .875rem; }
.lab-score-seal small, .lab-score-card small { font-size: .875rem; font-weight: 400; margin-left: 4px; }
.lab-score-note { padding-bottom: 24px; margin: 0; border-bottom: 1px solid #e2e8f0; line-height: 1.75; }
.lab-score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 32px 0; }
.lab-score-card > div:first-child { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.lab-score-card > div > span { font-weight: 600; }
.lab-score-card p { font-size: .875rem; line-height: 1.75; margin: 12px 0 4px; color: #64748b; }
.lab-score-track { height: 6px; border-radius: 9999px; background: #e2e8f0; margin-top: 16px; overflow: hidden; }
.lab-score-track i { display: block; height: 100%; background: #3b82f6; }
.lab-raw-score { font-size: .75rem; color: #64748b; }
.lab-next-heading { padding-top: 24px; border-top: 1px solid #e2e8f0; }
.lab-action-list { list-style: none; padding: 0; margin: 8px 0 24px; }
.lab-action-list li { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid #e2e8f0; }
.lab-action-number { font-size: 1.5rem; min-width: 36px; }
.lab-breakdown summary, .lab-method summary { font-weight: 600; cursor: pointer; }
.lab-breakdown ol { list-style: none; padding: 16px 0 0; margin: 0; }
.lab-breakdown li { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 0; border-top: 1px solid #e2e8f0; font-size: .875rem; }
.lab-breakdown li p { line-height: 1.75; color: #64748b; margin-top: 4px; }
.lab-breakdown li > span { flex-shrink: 0; display: flex; flex-direction: column; }
.lab-result-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.lab-text-link { display: inline-flex; align-items: center; font-size: .875rem; color: #3b82f6; text-decoration: underline; text-underline-offset: 4px; }

.lab-source-card { display: flex; flex-direction: column; transition: box-shadow .15s; }
.lab-source-card:hover { box-shadow: 0 10px 15px -3px rgb(15 23 42 / .08); }
.lab-source-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.lab-method { scroll-margin-top: 100px; margin-top: 40px; border-top: 1px solid #e2e8f0; padding-top: 24px; }
.lab-method summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; list-style: none; }
.lab-method summary::-webkit-details-marker { display: none; }
.lab-method summary::after { content: "+"; font-size: 1.5rem; color: #64748b; }
.lab-method[open] > summary::after { content: "−"; }
.lab-method-content { max-width: 840px; padding-top: 16px; color: #64748b; line-height: 1.75; }
.lab-method-content p { margin: 12px 0; }
.lab-method-content ol { list-style: decimal; padding-left: 24px; }
.lab-method-content li { padding: 8px 0; }
.lab-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 767px) {
  /* Match the site's text-4xl scale so the longer title fits narrow screens. */
  .content-lab h1.h1 { font-size: 2.25rem; line-height: 1.277; }
  .lab-quiz, .lab-method { scroll-margin-top: 80px; }
  .lab-question-layout { display: block; padding-top: 24px; }
  .lab-question-aside { display: none; }
  .lab-quiz-top { gap: 8px; }
  .lab-quiz-top .lab-kicker, .lab-completion { font-size: .75rem; }
  .lab-option { padding: 14px 12px; gap: 12px; }
  .lab-choice-letter { flex-basis: 28px; height: 28px; }
  .lab-choice-text { font-size: .875rem; }
  .lab-navigation { gap: 8px; }
  .lab-navigation .btn { white-space: normal; text-align: center; }
  .lab-result-intro { grid-template-columns: 1fr; gap: 24px; }
  .lab-score-seal { width: 160px; min-height: 160px; }
  .lab-score-grid { grid-template-columns: 1fr; gap: 16px; }
  .lab-score-card > div:first-child { flex-wrap: nowrap; }
  .lab-action-list li { gap: 16px; }
  .lab-action-number { min-width: 28px; }
}
@media (max-width: 359px) {
  .content-lab h1.h1 { font-size: 1.875rem; line-height: 1.333; }
}
@media (prefers-reduced-motion: reduce) {
  .content-lab * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .site-header, footer, .lab-navigation, .lab-result-footer, .content-lab .btn { display: none !important; }
  .lab-quiz { box-shadow: none; break-inside: avoid; }
}
