.demo-slot,
.demo-panel {
  min-width: 0;
}
.demo-slot {
  margin-top: 18px;
}
.demo-tabs {
  display: flex;
  border-bottom: 1px solid #b9c9cf;
  margin-bottom: 20px;
  gap: 8px;
}
.demo-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #40505a;
  cursor: pointer;
}
.demo-tabs [aria-selected="true"] {
  border-bottom-color: #08796e;
  color: #155947;
}
.demo-panel h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}
.demo-description {
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #40505a;
}
.demo-offer {
  margin: 16px 0;
  padding: 18px 0;
  border-block: 2px solid #aacac0;
  color: #203c36;
  letter-spacing: 0;
}
.demo-offer-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #155947;
}
.demo-offer h4 {
  margin: 0;
  font-family: inherit;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.demo-offer-detail {
  margin: 12px 0 22px;
  font-size: 14px;
  line-height: 1.6;
}
.demo-offer-full,
.demo-offer-next {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.demo-offer-full {
  margin-top: 16px;
}
.demo-offer-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: #c2d4ce;
  border: 1px solid #c2d4ce;
}
.demo-offer-metrics > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: end;
  gap: 5px;
  padding: 14px 16px;
  min-width: 0;
  background: #f1f7f4;
}
.demo-offer-metrics > div:nth-child(even) {
  background: #f0f5fa;
}
.demo-offer-metrics dt {
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.demo-offer-metrics dd {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.demo-offer-skills {
  padding-left: 20px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
}
.demo-offer-skills li + li {
  margin-top: 8px;
}
.demo-offer-skills li::marker {
  color: #08796e;
}
.demo-offer-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.demo-offer-action .button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}
.demo-offer-action .button svg {
  flex-shrink: 0;
}
.demo-offer-action p {
  flex: 1 1 180px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.demo-offer-note {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: #526063;
}
.demo-offer-continuation {
  margin-top: 16px;
  border-block: 1px solid #c2d4ce;
  padding-block: 12px;
}
.demo-offer-continuation summary {
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}
.demo-player {
  border: 1px solid #b9c9cf;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  min-width: 0;
}
.demo-player .demo-toolbar {
  justify-content: space-between;
  padding: 8px 12px;
  background: #eaf0f4;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
}
.demo-course-label {
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.demo-tools {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.demo-player.has-demo-summary .demo-toolbar .demo-tools {
  display: none;
}
.demo-tools .icon-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 10px;
  color: #213946;
  border: 1px solid transparent;
  background: transparent;
}
.demo-tools .icon-button:hover:not(:disabled) {
  border-color: #b9c9cf;
  background: #fff;
}
.demo-tools .icon-button:disabled {
  opacity: .35;
  cursor: default;
}
.demo-launch {
  display: block;
}
.demo-poster {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #17362e;
  color: #fff;
  text-align: center;
  cursor: pointer;
}
.demo-poster:focus-visible {
  outline: 3px solid #7fdaca;
  outline-offset: -4px;
}
.demo-poster-screen {
  display: block;
  position: relative;
  min-height: 0;
  background: #e5eeea;
}
.demo-poster-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.demo-poster-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  background: #fff;
  color: #17362e;
  border: 1px solid #c2d3cc;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.demo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #155947;
  color: #fff;
  box-shadow: 0 4px 20px #102b2940;
  transition: background 0.15s;
}
.demo-play svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
  fill: currentColor;
}
.demo-poster:hover .demo-play {
  background: #0c4434;
}
.demo-poster-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 20px 16px;
}
.demo-poster-caption strong {
  font-size: 18px;
  line-height: 1.4;
}
.demo-poster-caption > span {
  color: #c4e1d7;
  font-size: 12px;
  line-height: 1.5;
}
.demo-poster-fallback {
  display: grid;
  height: 100%;
  place-items: center;
  color: #6d9b8b;
}
.demo-poster-fallback svg {
  width: 128px;
  height: 128px;
  stroke-width: 1;
}
.demo-player[data-demo-state="idle"],
.demo-player[data-demo-state="error"] {
  width: min(100%, 380px);
  margin: 18px auto 0;
  border: 1px solid #a9c2b8;
  background: #fff;
  box-shadow: 0 8px 24px #17362e1c;
}
.demo-player[data-demo-state="idle"] .demo-toolbar {
  display: none;
}
.demo-status {
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
}
.demo-viewport {
  height: 680px;
  max-height: 85dvh;
  min-height: 440px;
  background: #fff;
}
.demo-viewport iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.demo-boundary,
.demo-preview-note {
  font-size: 12px;
  line-height: 1.6;
  color: #526063;
  margin: 14px 0 0;
}
.main-demo-grid {
  align-items: start;
}
.course-entry-grid:not(:has(.course-demo)) {
  grid-template-columns: minmax(0, 680px);
}
.main-demo .demo-slot {
  margin-top: 0;
}
.demo-player:fullscreen,
.demo-player.is-expanded {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.demo-player.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
  height: 100dvh;
}
.demo-player:fullscreen .demo-viewport,
.demo-player.is-expanded .demo-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
}
.demo-player:fullscreen .demo-toolbar,
.demo-player.is-expanded .demo-toolbar {
  display: contents;
}
.demo-player:fullscreen .demo-course-label,
.demo-player.is-expanded .demo-course-label {
  display: none;
}
.demo-player[data-demo-state="loading"]:fullscreen .demo-status,
.demo-player[data-demo-state="loading"].is-expanded .demo-status {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.demo-player:fullscreen .demo-tools,
.demo-player.is-expanded .demo-tools {
  position: absolute;
  bottom: max(6px, env(safe-area-inset-bottom));
  left: max(6px, env(safe-area-inset-left));
  z-index: 2;
  opacity: .3;
  transition: opacity .15s;
}
.demo-player:fullscreen .demo-tools:hover,
.demo-player:fullscreen .demo-tools:focus-within,
.demo-player.is-expanded .demo-tools:hover,
.demo-player.is-expanded .demo-tools:focus-within {
  opacity: 1;
}
.demo-player:fullscreen .demo-tools .icon-button,
.demo-player.is-expanded .demo-tools .icon-button {
  background: rgba(255, 255, 255, .94);
  border: 1px solid #b9c9cf;
  border-radius: 4px;
  box-shadow: 0 1px 3px #0002;
}
.demo-player [hidden],
.demo-slot [hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .demo-player:fullscreen .demo-tools,
  .demo-player.is-expanded .demo-tools {
    bottom: calc(62px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 440px) {
  .demo-offer h4 {
    font-size: 21px;
  }
  .demo-offer-metrics > div {
    padding: 12px;
  }
  .demo-player:fullscreen .demo-tools,
  .demo-player.is-expanded .demo-tools {
    opacity: 1;
  }
  .demo-tabs {
    gap: 0;
  }
  .demo-tabs button {
    padding-inline: 8px;
    font-size: 12px;
  }
}
