/* --- Global Container & Base Layout --- */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
  margin: 0;
  padding: 2rem 1rem;
}

main {
  /* max-width: 800px; */
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Typography: Headings & Paragraphs --- */
h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.3rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

/* --- Blockquotes & Embedded Figures --- */
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background-color: #f9f9f9;
  border-left: 4px solid #ccc;
  font-size: 0.95rem;
}

/* Float figures inside blockquotes neatly (matching Drupal layouts) */
blockquote figure {
  float: right;
  margin: 0 0 1rem 1.25rem;
  max-width: 45%;
  text-align: right;
}

/* Clear floats so subsequent text doesn't wrap awkwardly */
blockquote::after {
  content: "";
  display: table;
  clear: both;
}

blockquote img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* --- Figcaptions --- */
figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.4rem;
  line-height: 1.4;
}
