/* Applied from CourseFrame when the blockchain tutorial is shown inside
   the site chrome. Keeps the HTML file untouched; matches WAD embed scale. */
html.course-embed .hero-art,
html.course-embed .rail,
html.course-embed .journey {
  display: none !important;
}

html.course-embed .hero {
  display: block;
  padding: 8px 0 4px;
  gap: 0;
}

html.course-embed .hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-block: 6px 8px;
}

html.course-embed .hero .lead {
  font-size: 1.02rem;
}

html.course-embed,
html.course-embed body {
  background: #fff !important;
  color-scheme: light;
  overflow-x: hidden;
}

html.course-embed body {
  margin: 0;
  padding: 0 0 28px !important;
  font-size: 17px;
  line-height: 1.65;
}

html.course-embed .wrap {
  max-width: 830px;
  margin: 0 auto;
  padding: 0 16px;
}

html.course-embed .rail {
  position: sticky;
  top: 0;
  margin-inline: 0;
  padding: 8px 16px;
  background: #fff;
  overflow-x: hidden;
}

html.course-embed .rail ol {
  max-width: 830px;
  flex-wrap: wrap;
}

html.course-embed .rail a {
  font-size: 12px;
  padding: 4px 9px;
}

html.course-embed .parthead {
  padding-top: 28px;
}

html.course-embed .parthead h2,
html.course-embed section.part h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
}

html.course-embed .lead,
html.course-embed .lead2 {
  font-size: 1.05rem;
}

html.course-embed section.part {
  padding-top: 28px;
  gap: 14px;
}

html.course-embed .story {
  border-radius: 10px;
}

html.course-embed .story header {
  padding: 8px 12px;
}

html.course-embed .story header h4 {
  font-size: 14px;
}

html.course-embed .stage {
  display: flex;
  justify-content: center;
  max-height: 128px;
  overflow: hidden !important;
}

html.course-embed .stage svg {
  min-width: 0 !important;
  width: auto !important;
  max-width: 100%;
  height: 128px !important;
  margin-inline: auto;
}

html.course-embed .cap {
  padding: 6px 12px 0 !important;
  min-height: 0 !important;
  font-size: 14px;
}

html.course-embed .ctrl {
  padding: 8px 12px 10px;
}

html.course-embed .map {
  padding: 0 12px 10px;
  font-size: 12px;
}
