/* W3-H: "My result" (public/learner-result.js), shared by the v1 and v2 player pages. Colours are inherited from the page's own card / theme
 * (so it follows light, dark and a custom organization theme without a second palette); every signal is also a word or a symbol, never colour alone. */
.lr-root {
  text-align: left;
  max-width: 46rem;
  margin: 0 auto;
  overflow-wrap: anywhere;
}
.lr-status:empty {
  display: none;
}
.lr-status {
  margin: 0.5rem 0;
  font-weight: 600;
}
.lr-card {
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  border-radius: 12px;
  padding: 1rem;
  margin: 0.75rem 0;
}
.lr-session {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}
.lr-meta,
.lr-who {
  margin: 0.15rem 0;
}
.lr-section {
  margin-top: 1rem;
}
.lr-section > h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.lr-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.5rem 1rem;
  margin: 0.4rem 0;
}
.lr-fact dt {
  font-size: 0.85rem;
  opacity: 0.9;
}
.lr-fact dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.lr-note {
  margin: 0.3rem 0;
}
.lr-late {
  font-weight: 700;
}
.lr-questions {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  gap: 0.8rem;
}
.lr-q {
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  break-inside: avoid;
}
.lr-qhead {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  opacity: 0.9;
}
.lr-qtext {
  margin: 0.2rem 0 0.4rem;
  font-weight: 600;
}
.lr-outcome {
  margin: 0.2rem 0;
}
.lr-sym {
  display: inline-block;
  min-width: 1.2em;
  text-align: center;
  font-weight: 700;
}
.lr-sub {
  margin: 0.4rem 0 0.1rem;
  font-weight: 600;
}
.lr-options,
.lr-order {
  margin: 0.3rem 0 0;
  padding-left: 0;
  list-style: none;
}
.lr-order {
  padding-left: 1.4rem;
  list-style: decimal;
}
.lr-opt {
  padding: 0.25rem 0.5rem;
  margin: 0.2rem 0;
  border-left: 4px solid transparent;
}
.lr-opt-yours {
  border-left-style: solid;
  border-left-color: currentColor;
}
.lr-opt-correct {
  border-left-style: double;
  border-left-width: 6px;
  border-left-color: currentColor;
}
.lr-tag {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 0.55em;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.lr-tag-correct {
  border-style: double;
  border-width: 3px;
}
.lr-switch ul {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0;
  display: grid;
  gap: 0.4rem;
}
.lr-find-wrap {
  margin: 1rem 0;
  padding: 0.2rem 1rem;
  border: 1px dashed color-mix(in srgb, currentColor 40%, transparent);
  border-radius: 10px;
}
.lr-find-wrap > summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.lr-find {
  margin: 0 0 0.8rem;
}
.lr-find .field {
  margin: 0.5rem 0;
}
.lr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.lr-actions .btn,
.lr-actions .q-btn,
.lr-switch .btn,
.lr-switch .q-btn {
  min-height: 44px;
}

@media print {
  html.lr-open,
  html.lr-open body,
  html.lr-open * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-color: #000 !important;
  }
  html.lr-open body {
    background: #fff !important;
  }
  /* the page chrome around the result: brand bar, score strip, language switcher, the actions and the find-form */
  html.lr-open #header,
  html.lr-open .qp-bar,
  html.lr-open .qp-strips,
  html.lr-open #scoreStrip,
  html.lr-open .lr-actions,
  html.lr-open .lr-find-wrap,
  html.lr-open .lr-switch,
  html.lr-open .lr-status,
  html.lr-open .lang-switcher,
  html.lr-open #soundMount {
    display: none !important;
  }
  html.lr-open .lr-card {
    border: 1px solid #000 !important;
  }
  html.lr-open .lr-q {
    break-inside: avoid;
  }
  html.lr-open .lr-root {
    max-width: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lr-card {
    scroll-margin-top: 1rem;
  }
}
