/* HTML layout/TOC overrides for holocaust-denial Quarto HTML. See py_config/quarto_format_html.yml. */
.quarto-title-block .title,
.quarto-title .title,
.quarto-title h1.title,
header .title {
  font-weight: 700;
  color: #1a1a1a;
}
/* Quarto appends "Other Formats" after the TOC list; move PDF link under the TOC heading */
#TOC {
  display: flex;
  flex-direction: column;
}
/* Align with TOC links (theme padding on h2 was pushing the TOC heading right) */
#TOC #toc-title {
  order: 1;
  margin-left: 0;
  padding-left: 0;
}
/* Match first-level TOC link inset (nav-link padding / blue rule column) */
#TOC .quarto-alternate-formats {
  order: 2;
  padding-left: 1rem;
}
#TOC .quarto-alternate-formats > h2 {
  margin-left: 0;
  padding-left: 0;
}
#TOC > ul {
  order: 3;
}
/* In-column TOC (#TOC-body): no list bullets (margin sidebar uses #TOC) */
#TOC ul,
#TOC-body ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
#TOC ul ul,
#TOC-body ul ul {
  padding-left: 1.1rem;
}
/*
  After moveCreditBlock(): #title-block-header → .credit-ai → #TOC-body → first section.level2.
  Single gap before Section I: put all “after body TOC” space on #TOC-body + section.level2 so
  spacing matches whether #TOC-body is visible or not laid out (same adjacent-sibling selector).
*/
#quarto-document-content {
  --first-section-pad-after: 3rem;
  --first-section-margin-after: 1.5rem;
  --first-section-margin-top: 1.25rem;
  --first-section-gap-after-toc: calc(
    var(--first-section-pad-after) + var(--first-section-margin-after) + var(--first-section-margin-top)
  );
}
#quarto-document-content > #TOC-body {
  padding-bottom: 0;
  margin-bottom: 0;
}
#quarto-document-content > #TOC-body + section.level2 {
  margin-top: var(--first-section-gap-after-toc);
}
/* Space between major sections (II onward); TOC → Section I uses rules above */
#quarto-document-content > section.level2 + section.level2 {
  margin-top: 5rem;
}
/* After DOM fix: title block (abstract + keywords) then .credit-ai disclaimers */
#quarto-document-content > #title-block-header + .credit-ai {
  margin-top: 2.5rem;
}
/* HTML TOC flex order only. Responsive overflow, gutters, FAB: mobile-toc.html via _metadata.yml. */
