/* =====================================
   Chapter pages styling (chapter-2, 3, 4, etc.)
   Only affects pages that link this file.
   ===================================== */

/* Wrap chapter content in a card-like area */
main {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 16px;
  padding: 1.5rem 1.25rem 2rem 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
  margin-top: 1rem;
}

/* Slightly refine headings on chapter pages */
h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  margin-top: 0.75rem;
  font-size: 1.4rem;
}

/* Paragraphs inside chapters slightly narrower for readability */
main p {
  max-width: 60rem;
}

/* Optional: code & pre formatting if you use them in chapters */
pre,
code {
  font-family: "Fira Code", "Source Code Pro", Menlo, Monaco, Consolas,
    "Courier New", monospace;
}

pre {
  background: #020617;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  overflow-x: auto;
  border: 1px solid #1f2937;
}

/* Tables inside chapters – slightly more spacing */
main table {
  margin: 1rem 0;
}
