:root {
  --theme-color: #2563a7;
  --sidebar-width: 19rem;
}

body {
  color: #263238;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.sidebar {
  background: #f7f9fc;
  border-right: 1px solid #dce3ec;
}

.sidebar > h1 img {
  height: auto;
  max-width: calc(100% - 2rem);
  width: 15rem;
}

.markdown-section {
  max-width: 62rem;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3 {
  color: #18324b;
}

.markdown-section table {
  display: table;
  width: 100%;
}

.markdown-section pre {
  border-radius: 0.35rem;
}

.markdown-section img {
  display: block;
  height: auto;
  margin: 1.25rem auto;
  max-width: 100%;
}

.markdown-section > p:first-of-type > img {
  max-height: 10rem;
  width: auto;
}

.course-hero {
  margin: 0 0 1.5rem;
  position: relative;
}

.course-hero-image {
  border: 1px solid #d7dde5;
  display: block;
  height: auto;
  margin: 0;
  width: 100%;
}

.course-hero-badge {
  background: #000;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
  height: 4.5rem;
  margin: 0;
  object-fit: contain;
  padding: 0.25rem;
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  width: 4.5rem;
}

.mermaid {
  margin: 1.5rem auto;
  overflow-x: auto;
  text-align: center;
}

@media (max-width: 768px) {
  .course-hero-badge {
    height: 3.25rem;
    right: 0.65rem;
    top: 0.55rem;
    width: 3.25rem;
  }

  .markdown-section table {
    display: block;
  }
}

@media print {
  .sidebar { display: none; }
}
