/* 最低限の装飾のみ。レイアウトは素のブロック要素に近い形にしている。 */

:root {
  color-scheme: light dark;
}

body {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  font-family: -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
}

.breadcrumb {
  font-size: 0.85rem;
  opacity: 0.75;
}

.category-badge {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 1rem;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.difficulty {
  font-size: 0.9rem;
}

section.category h2 {
  border-bottom: 1px solid #8888;
  padding-bottom: 0.3rem;
}

ul.article-list {
  list-style: none;
  padding-left: 0;
}

ul.article-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed #8884;
}

section.related ul,
section.next ul,
section.prerequisites ul {
  padding-left: 1.2rem;
}

/* 前提知識は本文の前に出るので、本文と区別できるよう薄い枠で囲う */
section.prerequisites {
  margin: 1.5rem 0;
  padding: 0.6rem 1.2rem;
  border: 1px solid #8886;
  border-radius: 0.5rem;
  background: #8881;
}

section.prerequisites h2,
section.next h2,
section.related h2 {
  font-size: 1.1rem;
  margin: 0.4rem 0;
}

section.prerequisites .lead {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.note {
  font-size: 0.9rem;
  opacity: 0.8;
}

pre code.hljs {
  border-radius: 0.4rem;
  padding: 1rem !important;
  font-size: 0.9rem;
  overflow-x: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
}
