body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  line-height: 1.6;
}

/* navbar stays the same */
nav {
  background-color: #3c0b45;
  padding: 20px;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 20px;
  text-decoration: none;
  font-size: 24px;
}

nav a.active {
  background-color: white;
  color: #c956f0;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: bold;
}

.page {
  background-color: white;
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-radius: 8px;
}

.page h1 {
  text-align: center;
  font-size: 2em;
  color: #000;
}

/* Consistent typography across all pages.
   Higher specificity than report-styles.css's class-only selectors,
   so these win over the Google-Docs export rules. */
.page p,
.page li,
.page span,
.page a,
.page td,
.page th {
  font-size: 16px;
  line-height: 1.6;
  font-family: Arial, sans-serif;
  color: #000;
}

.page p {
  margin: 0 0 1em 0;
  text-align: left;
}

.page ul,
.page ol {
  margin: 0 0 1em 0;
  padding-left: 1.5em;
}

.page li {
  margin-bottom: 0.25em;
}

.page h1,
.page h2,
.page h3,
.page h4 {
  font-family: Arial, sans-serif;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

.page h2 { font-size: 1.4em; }
.page h3 { font-size: 1.2em; }

/* Inline code (span.c6 is Google-Doc inline code, span.c0 is code-line text) */
.page code,
.page .c0,
.page .c6 {
  font-family: Consolas, monospace;
  font-size: 14px;
}

/* .c2 is a single line of a code block in the Google-Doc export.
   Multiple consecutive .c2 paragraphs form one logical block, so we
   stack them flush together with no inter-line gap and treat them as
   one continuous shaded block. .c10 acts as the empty separator after. */
.page .c2 {
  background-color: #f4f4f4;
  border-left: 3px solid #888;
  padding: 4px 12px;
  margin: 0;
  font-family: Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  color: #1a1a1a;
}

/* First .c2 in a block: round top corners + a little extra top padding */
.page p:not(.c2) + .c2 {
  padding-top: 10px;
  border-top-right-radius: 4px;
}

/* Last .c2 in a block (followed by something other than another .c2):
   round bottom corners + a little extra bottom padding + breathing room */
.page .c2:has(+ p:not(.c2)),
.page .c2:last-child {
  padding-bottom: 10px;
  border-bottom-right-radius: 4px;
  margin-bottom: 1em;
}

/* The empty .c10 separator paragraphs between code blocks: collapse them
   so they don't add a second gap on top of .c2's bottom margin. */
.page .c10 {
  margin: 0;
  height: 0;
}

.page img {
  max-width: 100%;
  height: auto;
}
