.md-section {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

.md-panel-header {
  margin-bottom: 1rem;
  text-align: center;
}

.md-panel-header .title {
  margin-bottom: 0;
}

.md-render {
  color: #243042;
  font-size: 1.03rem;
  line-height: 1.82;
}

.md-render > :first-child {
  margin-top: 0;
}

.md-render > :last-child {
  margin-bottom: 0;
}

.md-render h1,
.md-render h2,
.md-render h3,
.md-render h4 {
  color: #0f172a;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}

.md-render h1 {
  font-size: 1.85rem;
}

.md-render h2 {
  font-size: 1.5rem;
}

.md-render h3 {
  font-size: 1.2rem;
}

.md-render p {
  margin: 0.9rem 0;
}

.md-render ul,
.md-render ol {
  margin: 0.85rem 0;
  padding-left: 1.35rem;
}

.md-render li {
  margin: 0.4rem 0;
}

.md-render blockquote {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid #4f46e5;
  background: #f8fafc;
  color: #475569;
  border-radius: 0 12px 12px 0;
}

.md-render strong {
  color: #0f172a;
}

.md-render code {
  background: #f1f5f9;
  color: #1e293b;
  padding: 0.15rem 0.4rem;
  border-radius: 0.45rem;
  font-size: 0.95em;
}

.md-render pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  overflow-x: auto;
}

.md-render pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.md-render hr {
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin: 1.4rem 0;
}

.md-render a {
  color: #2563eb;
  word-break: break-word;
}

.md-render mjx-container[jax="CHTML"][display="true"] {
  margin: 1rem 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
}

.md-loading,
.md-error {
  margin: 0;
  color: #64748b;
}

.md-error {
  color: #b91c1c;
}

.md-section .container {
  width: 100%;
  max-width: 1152px;
}

@media (max-width: 768px) {
  .md-render {
    font-size: 1rem;
    line-height: 1.75;
  }
}
