.course-editor-preserved[hidden] {
  display: none !important;
}
.nexo-course-player {
  --course-ink: #18344e;
  --course-muted: #53667a;
  --course-line: #d7e1e9;
  color: var(--course-ink);
  background: #fff;
  border: 1px solid var(--course-line);
  min-width: 0;
}
.nexo-course-player [hidden] {
  display: none !important;
}
.nexo-course-player *,
.nexo-course-player *::before,
.nexo-course-player *::after {
  box-sizing: border-box;
}
.nexo-course-player h1,
.nexo-course-player h2,
.nexo-course-player h3,
.nexo-course-player p {
  overflow-wrap: anywhere;
}
.nexo-course-player button {
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nexo-course-player button:focus-visible,
.nexo-course-player summary:focus-visible,
.nexo-course-player a:focus-visible {
  outline: 3px solid #2268a8;
  outline-offset: 3px;
}
.nexo-course-player .course-preview-banner {
  padding: 12px 24px;
  background: #fff3d9;
  color: #574018;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e5d2a9;
}
.nexo-course-player .course-player-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--course-line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.nexo-course-player .course-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #426481;
}
.nexo-course-player .course-player-header h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.3;
  margin: 6px 0 8px;
}
.nexo-course-player .course-player-header p {
  margin: 0;
  color: var(--course-muted);
  font-size: 0.9rem;
}
.nexo-course-player .course-player-header .course-time {
  margin-bottom: 4px;
}
.nexo-course-player .course-header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.nexo-course-player .course-player-workspace {
  display: flex;
  min-width: 0;
}
.nexo-course-player .course-player-index {
  width: 270px;
  flex: 0 0 270px;
  padding: 24px 18px;
  background: #f4f7fa;
  border-right: 1px solid var(--course-line);
}
.nexo-course-player .course-player-index h2 {
  font-size: 1.1rem;
}
.nexo-course-player .course-player-index details {
  border-bottom: 1px solid var(--course-line);
  padding: 10px 0;
}
.nexo-course-player .course-player-index summary {
  cursor: pointer;
  line-height: 1.5;
  font-weight: 600;
}
.nexo-course-player .course-player-index button {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 5px;
  padding: 8px;
  background: transparent;
  border-color: transparent;
  font-size: 0.85rem;
}
.nexo-course-player .course-player-index [aria-current] {
  background: #e2ecf5;
  color: #123f64;
  border-left: 3px solid #236496;
}
.nexo-course-player .course-player-main {
  flex: 1;
  min-width: 0;
}
.nexo-course-player .course-slide-strip {
  display: flex;
  padding: 20px 30px 0;
  gap: 6px;
  flex-wrap: wrap;
}
.nexo-course-player .course-slide-dot {
  flex: 1;
  min-width: 18px;
  max-width: 80px;
  min-height: 24px;
  padding: 0;
  background: linear-gradient(
    transparent 10px,
    #dce5ed 10px,
    #dce5ed 14px,
    transparent 14px
  );
  border: 0;
  border-radius: 0;
}
.nexo-course-player .course-slide-dot.visited {
  background: linear-gradient(
    transparent 10px,
    #96b5cc 10px,
    #96b5cc 14px,
    transparent 14px
  );
}
.nexo-course-player .course-slide-dot.active {
  background: linear-gradient(
    transparent 9px,
    #185580 9px,
    #185580 15px,
    transparent 15px
  );
}
.nexo-course-player .course-player-stage {
  min-height: 440px;
  padding: 28px clamp(20px, 4vw, 64px) 32px;
  animation: course-slide-enter 0.16s ease-out;
}
.nexo-course-player .course-slide-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.nexo-course-player .course-slide-heading h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  margin: 6px 0 0;
}
.nexo-course-player .course-prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 82ch;
}
.nexo-course-player .course-context.with-image {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  gap: 36px;
}
.nexo-course-player .course-context-image,
.nexo-course-player .course-photo img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
}
.nexo-course-player .course-photo {
  margin: 0;
}
.nexo-course-player .course-photo figcaption {
  color: var(--course-muted);
  font-size: 0.8rem;
  margin-top: 8px;
}
.nexo-course-player .course-video {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  background: #102438;
  aspect-ratio: 16/9;
}
.nexo-course-player .course-video video,
.nexo-course-player .course-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border: 0;
}
.nexo-course-player .course-video:has(iframe) {
  min-height: 200px;
}
/* Steps a manager added: an image with its caption, a link to open. */
.nexo-course-player .course-step-image {
  margin: 0 auto;
  max-width: 1050px;
  text-align: center;
}
.nexo-course-player .course-step-image img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: 1px solid var(--course-line);
  background: #fff;
}
.nexo-course-player .course-step-image figcaption {
  color: var(--course-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 12px;
}
.nexo-course-player .course-step-link {
  margin: 28px 0 8px;
}
.nexo-course-player .course-link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  background: #0c305b;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.nexo-course-player .course-link-button:hover {
  background: #154a86;
}
.nexo-course-player .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nexo-course-player .course-media-note,
.nexo-course-player .course-response-note {
  color: var(--course-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
/* Who else reads the answer, said before it (shared/answer-notice.js). */
.nexo-course-player .course-answer-notice {
  max-width: 60rem;
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--course-ink);
  background: #eef5f8;
  color: var(--course-ink);
  font-size: 0.95rem;
  line-height: 1.5;
}
body.high-contrast .nexo-course-player .course-answer-notice {
  border-left-color: #fff;
  background: #242424;
  color: #fff;
}
/* A narrated lesson keeps the room of its tallest scene, measured in a
   hidden copy (narrated-lesson.js) where the notice of a question is never
   placed (lesson-player.js): the copy keeps the same room for it, so the
   page under the lesson does not move when a question comes. Its box is
   the notice's; in the row of buttons, a margin and the gap of the row stand
   for the margins of the notice, which there meet the buttons' own. */
.nexo-course-player
  .narrated-probe
  .narrated-answer-actions:has([data-narrated-answer])::before {
  content: var(--course-answer-notice, "");
  flex: 0 0 100%;
  box-sizing: border-box;
  max-width: 60rem;
  margin: 0 0 4px;
  padding: 10px 14px;
  border-left: 3px solid transparent;
  font-size: 0.95rem;
  line-height: 1.5;
}
.nexo-course-player [data-response] {
  width: 100%;
  min-height: 180px;
  max-width: 82ch;
  font: inherit;
  line-height: 1.65;
  padding: 16px;
  resize: vertical;
  border: 1px solid #8095a8;
}
.nexo-course-player [data-stage] > label {
  display: block;
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}
.nexo-course-player .course-formative-label {
  display: inline-block;
  background: #eef5f8;
  padding: 8px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.nexo-course-player .course-quiz {
  padding: 0;
  border: 0;
  min-width: 0;
  margin: 24px 0;
}
.nexo-course-player .course-quiz legend {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.nexo-course-player .quiz-option {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px;
  margin: 8px 0;
  border: 1px solid var(--course-line);
  line-height: 1.6;
}
.nexo-course-player .quiz-option input {
  flex: 0 0 auto;
  width: auto;
}
.nexo-course-player .quiz-option:has(input:checked) {
  background: #edf4f9;
  border-color: #2a678f;
}
.nexo-course-player .course-interaction label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1.65;
  border-bottom: 1px solid var(--course-line);
  padding: 12px 0;
}
.nexo-course-player .course-interaction input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
}
.nexo-course-player .course-interaction button {
  margin: 8px 8px 8px 0;
}
.nexo-course-player .course-interaction ol {
  padding-left: 24px;
}
.nexo-course-player .course-interaction li {
  line-height: 1.65;
  margin: 14px 0;
}
.nexo-course-player .course-interaction [role="status"],
.nexo-course-player .course-outcome {
  white-space: pre-wrap;
  line-height: 1.65;
  margin-top: 20px;
}
.nexo-course-player [data-validation] button {
  display: block;
  text-align: left;
  margin: 10px 0;
}
.nexo-course-player .course-brand-region {
  display: flex;
  justify-content: flex-end;
  padding: 0 30px;
}
.nexo-course-player .company-brand-signature {
  position: static;
  border: 0;
  padding: 10px 0 16px;
  margin: 0;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--course-muted);
}
.nexo-course-player .company-brand-signature img {
  max-width: 112px;
  max-height: 44px;
}
.nexo-course-player .course-brand-text {
  padding: 10px 0 16px;
  margin: 0;
  color: var(--course-muted);
  font-size: 0.8rem;
}
.nexo-course-player .course-player-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 30px;
  background: #f4f7fa;
  border-top: 1px solid var(--course-line);
}
.nexo-course-player .course-player-navigation button {
  justify-self: start;
}
.nexo-course-player .course-player-navigation [data-next] {
  justify-self: end;
}
.nexo-course-player [data-position] {
  font-size: 0.9rem;
  font-weight: 600;
}
.nexo-course-player .course-player-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 30px;
  border-top: 1px solid var(--course-line);
}
.nexo-course-player [data-save-status] {
  font-size: 0.8rem;
  flex: 1;
  color: var(--course-muted);
  min-width: 140px;
  overflow-wrap: anywhere;
}
.nexo-course-player .course-support,
.nexo-course-player .course-save-conflict {
  padding: 24px 30px;
  border-top: 1px solid var(--course-line);
}
.nexo-course-player .course-support p {
  line-height: 1.7;
}
.nexo-course-player .course-support form {
  max-width: 780px;
}
.nexo-course-player .course-save-conflict {
  background: #fff3d9;
}
.nexo-course-player .course-save-conflict button {
  margin: 6px 12px 6px 0;
}
@keyframes course-slide-enter {
  from {
    opacity: 0.5;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nexo-course-player .course-player-stage {
    animation: none;
  }
}
@media (max-width: 900px) {
  .nexo-course-player .course-player-header {
    flex-direction: column;
    align-items: stretch;
  }
  .nexo-course-player .course-player-workspace {
    flex-direction: column;
  }
  .nexo-course-player .course-player-index {
    width: 100%;
    flex: auto;
    border-right: 0;
    border-bottom: 1px solid var(--course-line);
  }
  .nexo-course-player .course-context.with-image {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .nexo-course-player .course-player-header,
  .nexo-course-player .course-preview-banner,
  .nexo-course-player .course-support,
  .nexo-course-player .course-save-conflict {
    padding: 16px;
  }
  .nexo-course-player .course-player-stage {
    padding: 24px 16px;
    min-height: 360px;
  }
  .nexo-course-player .course-slide-heading {
    flex-direction: column;
    align-items: start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .nexo-course-player .course-slide-strip {
    padding: 12px 16px 0;
    gap: 4px;
  }
  .nexo-course-player .course-prose {
    font-size: 1rem;
    line-height: 1.75;
  }
  .nexo-course-player .course-player-navigation {
    padding: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .nexo-course-player .course-player-navigation [data-position] {
    grid-row: 1;
    grid-column: 1 / -1;
    text-align: center;
  }
  .nexo-course-player .course-player-navigation button {
    width: 100%;
    padding: 10px 8px;
  }
  .nexo-course-player .course-player-tools {
    padding: 12px 16px;
    gap: 8px;
  }
  .nexo-course-player [data-save-status] {
    flex: 0 0 100%;
  }
  .nexo-course-player .course-brand-region {
    padding: 0 16px;
  }
  .nexo-course-player .course-interaction label {
    flex-wrap: wrap;
  }
  .nexo-course-player .course-interaction select {
    width: 100%;
  }
}
body.high-contrast .nexo-course-player {
  --course-ink: #fff;
  --course-muted: #e4e9ee;
  --course-line: #fff;
  background: #111;
}
body.high-contrast .nexo-course-player .course-player-navigation,
body.high-contrast .nexo-course-player .course-player-index,
body.high-contrast .nexo-course-player .quiz-option:has(input:checked) {
  background: #242424;
}
body.high-contrast .nexo-course-player .course-kicker {
  color: #d6eaff;
}

.course-progress-summary {
  padding: 18px 30px 16px;
  border-bottom: 1px solid var(--course-line, #d7e1e9);
}
.course-progress-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  margin-bottom: 9px;
}
.course-progress-summary [data-progress-percent] {
  color: #174e71;
  font-weight: 700;
}
.course-progress-summary progress {
  display: block;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e7edf3;
  accent-color: #1e6e50;
}
.course-progress-summary progress::-webkit-progress-bar {
  background: #e7edf3;
}
.course-progress-summary progress::-webkit-progress-value {
  background: #1e6e50;
  border-radius: 8px;
  transition: width 0.3s ease-out;
}
.course-progress-summary progress::-moz-progress-bar {
  background: #1e6e50;
}
.course-progress-summary p {
  font-size: 0.78rem;
  color: var(--course-muted, #53667a);
  margin: 8px 0 0;
}
.course-achievement {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 30px;
  color: #165739;
  background: #edf7f0;
  border-bottom: 1px solid #c9e6d2;
  font-size: 0.9rem;
  font-weight: 600;
}
.course-achievement-check {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: #1e6e50;
  font-size: 1.05rem;
}
.course-achievement.is-celebrating .course-achievement-check {
  animation: course-reward-pop 0.35s ease-out;
}
@keyframes course-reward-pop {
  0% {
    transform: scale(0.7);
    opacity: 0.3;
  }
  65% {
    transform: scale(1.14);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
.nexo-course-player .course-slide-dot.completed {
  background: #e6f2ea;
  color: #175d40;
  font-weight: 700;
  border-radius: 6px;
}
.nexo-course-player .course-slide-dot.completed.active {
  box-shadow: inset 0 0 0 2px #1e6e50;
}
.nexo-course-player .course-slide-dot:disabled {
  opacity: 0.55;
}
.nexo-course-player .course-slide-dot {
  min-height: 32px;
}
.course-step-message {
  color: #8f321b;
  margin: 0;
  padding: 0 30px 16px;
  font-size: 0.88rem;
}
.course-step-message:empty {
  display: none;
}
.course-completion {
  margin: 24px 30px 30px;
  padding: 30px;
  background: #f7fafc;
  border: 1px solid #d7e1e9;
  border-top: 4px solid #dd621c;
  text-align: center;
}
.course-completion-seal {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border: 6px solid #d5eadf;
  border-radius: 50%;
  color: #fff;
  background: #1e6e50;
  font-size: 1.9rem;
  font-weight: 700;
}
.course-completion h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.course-completion > p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--course-muted, #53667a);
  line-height: 1.6;
}
.course-certificate {
  margin: 24px 0 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #d7e1e9;
  color: #18344e;
  overflow-wrap: anywhere;
}
.course-certificate [hidden] {
  display: none !important;
}
.course-certificate h3 {
  margin: 0 0 10px;
}
.course-certificate p {
  line-height: 1.6;
}
.course-certificate [data-certificate-actions] {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.course-certificate a {
  color: #164c78;
}
.course-certificate .course-certificate-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff;
  background: #18344e;
  text-decoration: none;
  font-weight: 700;
}
.course-certificate .course-certificate-download:hover {
  background: #285c86;
}
.course-certificate a:focus-visible {
  outline: 3px solid #cf580f;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .course-progress-summary,
  .course-achievement {
    padding: 14px 16px;
  }
  .course-step-message {
    padding: 0 16px 14px;
  }
  .course-completion {
    margin: 16px;
    padding: 24px 16px;
  }
  .course-certificate {
    padding: 18px 14px;
  }
  .course-certificate .course-certificate-download {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .course-achievement.is-celebrating .course-achievement-check {
    animation: none;
  }
  .course-progress-summary progress::-webkit-progress-value {
    transition: none;
  }
}
body.high-contrast .course-progress-summary,
body.high-contrast .course-achievement,
body.high-contrast .course-completion,
body.high-contrast .course-certificate {
  color: #fff;
  background: #111;
  border-color: #fff;
}
body.high-contrast .course-progress-summary [data-progress-percent],
body.high-contrast .course-certificate a:not(.course-certificate-download) {
  color: #d6eaff;
}

/* Public authenticity lookup shares the certificate styling without inline CSS. */
.certificate-verification {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: #f4f7fa;
  color: #16324c;
}
.certificate-verification-card {
  box-sizing: border-box;
  width: min(100%, 720px);
  min-width: 0;
  padding: clamp(20px, 5vw, 44px);
  border: 1px solid #d9e3eb;
  border-top: 4px solid #df641d;
  background: #fff;
}
.certificate-verification-card .brand {
  margin-bottom: 24px;
}
.certificate-verification-card h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.2;
  margin: 0 0 24px;
}
.certificate-verification [hidden] {
  display: none !important;
}
.certificate-verification-valid,
.certificate-verification-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
  background: #ebf7f0;
  color: #166146;
  border: 1px solid #b7d9c9;
}
.certificate-verification-valid > span {
  font-size: 1.5rem;
}
.certificate-verification-error {
  display: block;
  background: #fff3f1;
  color: #982f25;
  border-color: #edc6bf;
}
.certificate-verification-error p {
  margin: 8px 0 0;
}
.certificate-verification-details {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 16px;
  margin: 0;
}
.certificate-verification-details dt {
  color: #50657a;
  font-weight: 600;
}
.certificate-verification-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.certificate-verification-details small {
  display: block;
  color: #50657a;
  margin-top: 4px;
}
.certificate-verification-details code {
  display: block;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  background: #f0f4f7;
  padding: 8px;
}
.certificate-verification-note {
  border-top: 1px solid #d9e3eb;
  padding-top: 20px;
  margin: 24px 0;
  color: #50657a;
  font-size: 0.9rem;
}
.certificate-verification-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.certificate-verification-actions > * {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
@media (max-width: 540px) {
  .certificate-verification {
    padding: 16px;
  }
  .certificate-verification-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .certificate-verification-details dd {
    margin-bottom: 12px;
  }
  .certificate-verification-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
.high-contrast .certificate-verification,
.high-contrast .certificate-verification-card {
  background: #000;
  color: #fff;
  border-color: #fff;
}
.high-contrast .certificate-verification-details :is(dt, small),
.high-contrast .certificate-verification-note {
  color: #fff;
}
.high-contrast .certificate-verification-details code {
  background: #222;
  color: #fff;
}

/* Lesson status: a completed lesson is green, with a check and its words. */
.nexo-course-player .course-lesson-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.nexo-course-player .course-lesson-status:empty {
  display: none;
}
.nexo-course-player .course-lesson-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef3f7;
  color: #2f4b63;
  font-size: 0.8rem;
  font-weight: 600;
}
.nexo-course-player .course-lesson-status.is-done {
  background: #1e6e50;
  color: #fff;
}
.course-progress-summary .course-progress-lessons {
  color: #165739;
  font-size: 0.85rem;
  font-weight: 700;
}
.course-progress-summary .course-certificate-hint {
  color: #2f4b63;
  font-size: 0.85rem;
}
.course-progress-summary .course-certificate-hint:empty {
  display: none;
}
.nexo-course-player .course-player-index summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 8px;
}
.nexo-course-player .course-index-done,
.nexo-course-player .course-index-steps {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.nexo-course-player .course-index-done {
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: #1e6e50;
}
.nexo-course-player .course-index-steps {
  color: var(--course-muted);
}
.nexo-course-player .course-player-index details.is-done {
  border-left: 3px solid #1e6e50;
  padding-left: 8px;
}

/* Opening question: the question first, then the lesson's challenge. */
.nexo-course-player .course-question {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 82ch;
  margin: 8px 0 24px;
  padding: 18px 20px;
  background: #f3f8fc;
  border-left: 4px solid #2a678f;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
}
.nexo-course-player .course-question-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: #2a678f;
  color: #fff;
  font-weight: 700;
}
.nexo-course-player .course-subheading {
  font-size: 1rem;
  margin: 0 0 6px;
  color: #2f4b63;
}

/* Lesson map: concepts on the left, application on the right, the theme in
   the middle. The same lists read as an outline in the text version. */
.nexo-course-player .course-summary-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}
.nexo-course-player .course-summary-toolbar [aria-pressed="true"] {
  background: #18344e;
  border-color: #18344e;
  color: #fff;
}
.nexo-course-player .course-summary-learned {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #edf7f0;
  border: 1px solid #c9e6d2;
}
.nexo-course-player .course-summary-learned h3,
.nexo-course-player .course-map-branch h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.nexo-course-player .course-summary-learned ul,
.nexo-course-player .course-map ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nexo-course-player .course-summary-learned li {
  position: relative;
  padding-left: 24px;
  margin: 6px 0;
  line-height: 1.5;
}
.nexo-course-player .course-summary-learned li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1e6e50;
  font-weight: 700;
}
.nexo-course-player .course-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) minmax(0, 1fr);
  grid-template-areas: "concepts center practice";
  align-items: center;
  gap: 0 34px;
}
.nexo-course-player .course-map:not(:has(.is-practice)) {
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  grid-template-areas: "center concepts";
}
.nexo-course-player .course-map-center {
  grid-area: center;
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 18px 16px;
  border-radius: 18px;
  background: #18344e;
  color: #fff;
  text-align: center;
  line-height: 1.35;
}
.nexo-course-player .course-map-center::before,
.nexo-course-player .course-map-center::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  border-top: 2px solid #9fb6c8;
}
.nexo-course-player .course-map-center::before {
  right: 100%;
}
.nexo-course-player .course-map-center::after {
  left: 100%;
}
.nexo-course-player
  .course-map:not(:has(.is-practice))
  .course-map-center::before {
  display: none;
}
.nexo-course-player .course-map-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.nexo-course-player .course-map-branch.is-concepts {
  grid-area: concepts;
}
.nexo-course-player .course-map-branch.is-practice {
  grid-area: practice;
}
.nexo-course-player .course-map-branch > ul {
  display: grid;
  gap: 12px;
  padding: 4px 0;
}
.nexo-course-player .course-map-branch.is-concepts > ul {
  border-right: 2px solid #9fb6c8;
  padding-right: 18px;
}
.nexo-course-player .course-map-branch.is-practice > ul {
  border-left: 2px solid #9fb6c8;
  padding-left: 18px;
}
.nexo-course-player .course-map:not(:has(.is-practice)) .is-concepts > ul {
  border-right: 0;
  border-left: 2px solid #9fb6c8;
  padding: 4px 0 4px 18px;
}
.nexo-course-player .course-map-node {
  position: relative;
  padding: 10px 14px;
  border: 1px solid var(--course-line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.45;
}
.nexo-course-player .course-map-node::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  border-top: 2px solid #9fb6c8;
}
.nexo-course-player .is-concepts .course-map-node {
  border-left: 4px solid #2a678f;
  background: #f6fafd;
}
.nexo-course-player .is-concepts .course-map-node::after {
  left: calc(100% + 1px);
}
.nexo-course-player .is-practice .course-map-node {
  border-left: 4px solid #dd621c;
  background: #fff8f3;
}
.nexo-course-player .is-practice .course-map-node::after,
.nexo-course-player
  .course-map:not(:has(.is-practice))
  .course-map-node::after {
  right: calc(100% + 1px);
  left: auto;
}
.nexo-course-player .course-map-node h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}
.nexo-course-player .course-map-node li {
  margin: 3px 0;
}
.nexo-course-player .is-concepts h3 {
  color: #1f5678;
}
.nexo-course-player .is-practice h3 {
  color: #a2440f;
}
.nexo-course-player .course-summary-remember {
  margin: 22px 0 0;
  padding: 12px 16px;
  background: #fff8f3;
  border-left: 4px solid #dd621c;
}
.nexo-course-player .course-summary-full {
  margin: 22px 0 0;
  border: 1px solid var(--course-line);
}
.nexo-course-player .course-summary-full summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 700;
  color: #1f5678;
}
.nexo-course-player .course-summary-full .course-prose {
  padding: 0 16px 16px;
}
.nexo-course-player .course-summary[data-summary-view="text"] .course-map {
  display: block;
}
.nexo-course-player
  .course-summary[data-summary-view="text"]
  .course-map-center {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  background: none;
  color: inherit;
  text-align: left;
  font-size: 1.15rem;
}
.nexo-course-player
  .course-summary[data-summary-view="text"]
  :is(.course-map-center, .course-map-node)::before,
.nexo-course-player
  .course-summary[data-summary-view="text"]
  :is(.course-map-center, .course-map-node)::after {
  display: none;
}
.nexo-course-player
  .course-summary[data-summary-view="text"]
  .course-map-branch {
  margin: 0 0 18px;
}
.nexo-course-player
  .course-summary[data-summary-view="text"]
  .course-map-branch
  > ul {
  display: block;
  border: 0;
  padding: 0;
}
.nexo-course-player .course-summary[data-summary-view="text"] .course-map-node {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0 0 10px;
  font-size: 1rem;
}
.nexo-course-player
  .course-summary[data-summary-view="text"]
  .course-map-node
  ul {
  list-style: disc;
  padding-left: 22px;
}
@media (max-width: 760px) {
  .nexo-course-player .course-map,
  .nexo-course-player .course-map:not(:has(.is-practice)) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "center" "concepts" "practice";
    gap: 18px;
  }
  .nexo-course-player .course-map-center::before,
  .nexo-course-player .course-map-center::after {
    display: none;
  }
  .nexo-course-player .course-map-branch.is-concepts > ul,
  .nexo-course-player .course-map-branch.is-practice > ul {
    border-right: 0;
    border-left: 2px solid #9fb6c8;
    padding: 4px 0 4px 14px;
  }
  .nexo-course-player .course-map-node::after,
  .nexo-course-player .is-concepts .course-map-node::after {
    right: calc(100% + 1px);
    left: auto;
    width: 14px;
  }
  .nexo-course-player .course-question {
    font-size: 1.1rem;
    padding: 14px;
  }
}

/* Answer feedback: right in green, wrong in red, always with an icon and
   words, so colour is never the only signal. */
.nexo-course-player .quiz-option-text {
  flex: 1 1 auto;
}
.nexo-course-player .quiz-mark,
.nexo-course-player .interaction-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}
.nexo-course-player .course-quiz .quiz-option.is-correct,
.nexo-course-player [data-review-item].is-correct,
.nexo-course-player [data-review-item].is-missed {
  background: #edf7f0;
  border-color: #1e6e50;
}
.nexo-course-player .course-quiz .quiz-option.is-incorrect,
.nexo-course-player [data-review-item].is-incorrect {
  background: #fdf0ee;
  border-color: #b3261e;
}
.nexo-course-player [data-review-item].is-missed {
  outline: 2px dashed #1e6e50;
  outline-offset: -2px;
}
.nexo-course-player .course-interaction [data-review-item] {
  border: 1px solid transparent;
  border-bottom-color: var(--course-line);
  padding: 12px 10px;
}
.nexo-course-player .course-interaction li[data-review-item] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  border-radius: 6px;
}
.nexo-course-player .course-interaction .interaction-option-text {
  flex: 1 1 220px;
}
.nexo-course-player
  :is(.is-correct, .is-missed)
  > :is(.quiz-mark, .interaction-mark) {
  color: #fff;
  background: #1e6e50;
}
.nexo-course-player .is-incorrect > :is(.quiz-mark, .interaction-mark) {
  color: #fff;
  background: #b3261e;
}
.nexo-course-player .course-quiz-result,
.nexo-course-player .interaction-summary {
  margin: 18px 0 8px;
  padding: 12px 16px;
  font-weight: 700;
  line-height: 1.55;
  white-space: normal;
}
.nexo-course-player :is(.course-quiz-result, .interaction-summary).is-correct {
  color: #165739;
  background: #edf7f0;
  border-left: 4px solid #1e6e50;
}
.nexo-course-player
  :is(.course-quiz-result, .interaction-summary).is-incorrect {
  color: #7a2418;
  background: #fdf0ee;
  border-left: 4px solid #b3261e;
}
.nexo-course-player .course-quiz-explanation,
.nexo-course-player .interaction-explanation {
  max-width: 82ch;
  margin: 8px 0 16px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.nexo-course-player .interaction-feedback {
  white-space: normal;
}
.nexo-course-player .interaction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nexo-course-player .interaction-reference {
  margin: 4px 0 12px;
  padding: 10px 14px 10px 34px;
  background: #edf7f0;
  border-left: 4px solid #1e6e50;
}
.nexo-course-player .course-lesson-done {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 16px 12px 8px 0;
  padding: 10px 18px;
  border-radius: 8px;
  color: #fff;
  background: #1e6e50;
  font-weight: 700;
}
.nexo-course-player .course-lesson-done-check {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #1e6e50;
}
@media (max-width: 640px) {
  .nexo-course-player .quiz-option,
  .nexo-course-player .course-interaction label {
    flex-wrap: wrap;
  }
  .nexo-course-player .quiz-mark,
  .nexo-course-player .interaction-mark {
    margin-left: 0;
  }
}
body.high-contrast
  .nexo-course-player
  :is(.course-quiz, .course-interaction)
  :is(.quiz-option, [data-review-item]):is(.is-correct, .is-missed),
body.high-contrast
  .nexo-course-player
  :is(.course-quiz-result, .interaction-summary).is-correct,
body.high-contrast .nexo-course-player .course-summary-learned {
  background: #0d2a1d;
  color: #fff;
  border-color: #7fe0b0;
}
body.high-contrast
  .nexo-course-player
  :is(.course-quiz, .course-interaction)
  :is(.quiz-option, [data-review-item]).is-incorrect,
body.high-contrast
  .nexo-course-player
  :is(.course-quiz-result, .interaction-summary).is-incorrect {
  background: #3a0d09;
  color: #fff;
  border-color: #ff9c8f;
}
body.high-contrast
  .nexo-course-player
  :is(
    .course-map-node,
    .course-question,
    .course-summary-remember,
    .course-summary-full
  ) {
  background: #1b1b1b;
  color: #fff;
}

/* OpenMAIC lesson: the classroom runs in a sandboxed frame sized like a
   video on wide screens and close to the full screen on phones. The frame is
   a little taller than the slide: the caption takes a strip below it. */
.nexo-course-player .course-openmaic-frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 11;
  min-height: 420px;
  max-height: 82vh;
  border: 1px solid var(--course-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.nexo-course-player .course-openmaic-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* The notice that the management reads the answers to the lesson's
   questions, above the classroom (openmaic-step.js): as wide as the frame. */
.nexo-course-player .course-openmaic > .course-answer-notice {
  max-width: 1100px;
  margin: 0 auto 10px;
}
.nexo-course-player .course-openmaic-status {
  margin: 10px auto 0;
  max-width: 1100px;
  color: var(--course-muted);
  font-size: 0.95rem;
}
.nexo-course-player .course-openmaic-progress {
  max-width: 1100px;
  margin: 8px auto 0;
  line-height: 1.6;
}
.nexo-course-player .course-openmaic-progress ul {
  margin: 6px 0 0;
  padding-left: 22px;
}
.nexo-course-player .course-openmaic-transcript {
  max-width: 1100px;
  margin: 14px auto 0;
  border-top: 1px solid var(--course-line);
  padding-top: 10px;
}
.nexo-course-player .course-openmaic-transcript summary {
  cursor: pointer;
  font-weight: 600;
}
.nexo-course-player .course-openmaic-transcript p {
  line-height: 1.7;
  max-width: 72ch;
}
@media (max-width: 640px) {
  .nexo-course-player .course-openmaic-frame {
    aspect-ratio: auto;
    height: 78vh;
    min-height: 460px;
    max-height: none;
    border-radius: 0;
    margin: 0 -16px;
    width: calc(100% + 32px);
  }
}
.nexo-course-player .course-openmaic-rotate,
.nexo-course-player .course-video-rotate {
  display: none;
}
@media (max-width: 640px) {
  .nexo-course-player
    .course-openmaic[data-scene-type="slide"]
    .course-openmaic-frame {
    height: calc(56.25vw + 190px);
    min-height: 0;
  }
  .nexo-course-player .course-openmaic-rotate,
  .nexo-course-player .course-video-rotate {
    display: block;
    margin: 8px 0 0;
    color: var(--course-muted);
    font-size: 0.9rem;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .nexo-course-player .course-openmaic-frame,
  .nexo-course-player
    .course-openmaic[data-scene-type="slide"]
    .course-openmaic-frame {
    height: 92vh;
  }
}
