/* ============================================================
   project-style.css — shared styles for all project pages
   ============================================================ */

/* ── Layout ── */
#title-block-header.quarto-title-block.default .quarto-title-meta {
  display: grid;
  grid-column: page-start/body-content-end;
}
#quarto-document-content {
  margin-top: 0;
  padding-top: 0;
}
#quarto-margin-sidebar {
  padding-top: 0;
}

/* ── Section headings (h1 = top-level sections in project body) ── */
#quarto-document-content h1 {
  margin-top: 2.4rem;
  margin-bottom: 0;
  padding-bottom: 0.4rem;
  border-bottom: 2.5px solid #EE6A24;
  font-size: 1.05rem;
  font-weight: 700;
  color: #212529;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hide the <hr> that appears after # headings written as "# Title\n---" */
#quarto-document-content h1 + hr {
  display: none;
}
#quarto-document-content h2 + hr {
  display: none;
}

/* ── Subsection headings ── */
#quarto-document-content h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: #373a3c;
}
#quarto-document-content h3 {
  margin-top: 1.3rem;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#quarto-document-content h4 {
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #868e96;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Body text ── */
#quarto-document-content p {
  line-height: 1.8;
  color: #373a3c;
  margin-bottom: 0.9rem;
}

/* ── Images ── */
#quarto-document-content img {
  border-radius: 4px;
  display: block;
  margin-top: 0.8rem;
}

/* ── Image captions
     Handles both:
     - <em> on its own line after an image (written as *caption text*)
     - Quarto figure captions (<figcaption>)
   ── */
#quarto-document-content p > em:only-child,
#quarto-document-content figcaption {
  display: block;
  font-size: 0.82rem;
  font-style: normal;
  color: #868e96;
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  line-height: 1.55;
  border-left: 3px solid #dee2e6;
  padding-left: 0.6rem;
}

/* ── Tables ── */
#quarto-document-content table {
  font-size: 0.88rem;
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}
#quarto-document-content th {
  background: #f8f9fa;
  font-weight: 700;
  color: #212529;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#quarto-document-content td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  color: #495057;
}
#quarto-document-content tr:last-child td {
  border-bottom: none;
}

/* ── Callout (PROJECT BRIEF) ── */
.callout-tip {
  border-radius: 6px;
  margin-bottom: 1.8rem;
}
.callout-tip .callout-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ── Blockquote (used for pull-quotes / paper citations) ── */
#quarto-document-content blockquote {
  border-left: 3px solid #EE6A24;
  padding: 0.6rem 1rem;
  margin: 1.2rem 0;
  background: #fff8f4;
  border-radius: 0 4px 4px 0;
  font-size: 0.92rem;
  color: #495057;
}
#quarto-document-content blockquote p {
  margin: 0;
  line-height: 1.7;
}
