.course-avatar-picker {
  margin: 24px 0;
  border: 1px solid #dce1e7;
  border-radius: 0;
  padding: 20px;
}
.course-avatar-picker legend {
  color: var(--ink);
  font-weight: 700;
}
.course-avatar-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.course-avatar-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dce1e7;
  border-radius: 0;
  background: white;
  cursor: pointer;
  text-align: center;
}
.course-avatar-choice:has(input:checked) {
  border-color: #b84308;
  box-shadow: inset 0 0 0 1px #b84308;
  background: #fff5ee;
}
.course-avatar-choice:focus-within {
  outline: 3px solid #0c305b;
  outline-offset: 2px;
}
.course-avatar-choice input {
  position: absolute;
  top: 10px;
  left: 10px;
  width: auto;
}
.course-avatar-choice img,
.course-avatar-empty {
  width: 100%;
  height: 140px;
  object-fit: contain;
}
.course-avatar-empty {
  display: grid;
  place-items: center;
  font-size: 38px;
  color: var(--nexo-muted);
}
.course-avatar-choice small {
  color: var(--nexo-muted);
  font-weight: 400;
}
.avatar-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 30%);
  min-height: 340px;
  padding: clamp(18px, 3vw, 36px);
  gap: 24px;
  background: #f5f6f8;
  border: 1px solid #dce1e7;
  border-top: 4px solid #f36c21;
  border-radius: 0;
  color: var(--ink);
}
.avatar-material {
  min-width: 0;
  align-self: center;
}
.avatar-material p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.avatar-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #b84308;
  font-weight: 700;
}
.avatar-presenter {
  margin: 0;
  align-self: end;
  text-align: center;
}
.avatar-presenter img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}
.avatar-presenter figcaption {
  font-size: 15px;
  color: var(--nexo-muted);
}
.avatar-stage[data-layout="corner"] {
  grid-template-columns: minmax(0, 1fr) minmax(90px, 18%);
}
.avatar-stage[data-layout="full"] {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 55%);
}
.avatar-stage[data-layout="none"] {
  grid-template-columns: 1fr;
}
.avatar-support-image {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}
.avatar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.avatar-caption {
  color: var(--nexo-muted);
  font-size: 15px;
}
@font-face {
  font-family: NexoSlideInter;
  src: url("./assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: block;
}
.avatar-stage[data-layout="nexo"] {
  display: block;
  padding: 0;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #f5f7fa;
}
.nexo-slide-svg {
  width: 100%;
  height: auto;
  display: block;
}
.nexo-slide-text {
  font-optical-sizing: none;
}
@media (max-width: 600px) {
  .course-avatar-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .course-avatar-choice img,
  .course-avatar-empty {
    height: 110px;
  }
  .avatar-stage {
    gap: 12px;
    min-height: 280px;
    grid-template-columns: minmax(0, 1fr) 24%;
  }
  .avatar-stage[data-layout="full"] {
    grid-template-columns: 1fr;
  }
  .avatar-stage[data-layout="full"] .avatar-presenter img {
    max-height: 230px;
  }
  .avatar-stage h3 {
    font-size: 18px;
  }
  .avatar-material p {
    font-size: 15px;
  }
}

.avatar-stage[data-direction="right"]:not([data-layout="none"]) {
  grid-template-columns: minmax(130px, 30%) minmax(0, 1fr);
}
.avatar-stage[data-direction="right"][data-layout="corner"] {
  grid-template-columns: minmax(90px, 18%) minmax(0, 1fr);
}
.avatar-stage[data-direction="right"][data-layout="full"] {
  grid-template-columns: minmax(160px, 55%) minmax(0, 1fr);
}
.avatar-stage[data-direction="right"] .avatar-material {
  grid-column: 2;
  grid-row: 1;
}
.avatar-stage[data-direction="right"] .avatar-presenter {
  grid-column: 1;
  grid-row: 1;
}
.avatar-stage[data-layout="full"],
.avatar-stage[data-direction="right"][data-layout="full"] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
}
.avatar-stage[data-layout="full"] .avatar-presenter {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  width: 100%;
  max-width: 620px;
}
.avatar-stage[data-layout="full"] .avatar-presenter img {
  max-height: 520px;
}
.avatar-stage[data-layout="full"] .avatar-material {
  grid-column: 1;
  grid-row: 2;
  text-align: center;
}
@media (max-width: 600px) {
  .avatar-stage[data-layout="full"] .avatar-presenter img {
    max-height: 230px;
  }
  .avatar-stage[data-direction="right"][data-layout="full"] {
    grid-template-columns: 1fr;
  }
  .avatar-stage[data-direction="right"][data-layout="full"] .avatar-material {
    grid-column: 1;
    grid-row: 2;
  }
  .avatar-stage[data-direction="right"][data-layout="full"] .avatar-presenter {
    grid-column: 1;
    grid-row: 1;
  }
}
