/* Sidebar: a step off the page background in each theme */
body.quarto-light #quarto-sidebar.sidebar-navigation:not(.rollup) {
  background-color: #e9ecef;
}
body.quarto-dark #quarto-sidebar.sidebar-navigation:not(.rollup) {
  background-color: #2b3035;
}

/* "Last update" moved to the bottom of the page (see date-footer.html) */
.quarto-title-meta.page-date-footer {
  margin-top: 3em;
  padding-top: 0.75em;
  border-top: 1px solid rgba(128, 128, 128, 0.35);
  font-size: 0.85em;
  opacity: 0.75;
}

/* No underline beneath h2 headings (Overview, Installation, Running Chains, ...) */
main.content h2 {
  border-bottom: none;
  padding-bottom: 0;
}

/* Section list on the overview page: terms in a fixed first column so the
   descriptions line up and wrapped lines stay under the description. */
main.content .section-list dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  margin-bottom: 0;
}
main.content .section-list dl > dt {
  grid-column: 1;
  font-weight: 600;
}
main.content .section-list dl > dd {
  grid-column: 2;
  margin: 0;
  line-height: 1.3;   /* tighter within a description; row-gap keeps entries apart */
}

@media (max-width: 575.98px) {
  main.content .section-list dl { display: block; }
  main.content .section-list dl > dd { margin: 0 0 0.75rem 1rem; }
}

/* Dark-mode rules below are inert while the site is single-theme (cosmo);
   they take effect again as soon as the dark theme is re-enabled. */

/* Dark mode: the darkly theme keeps the light inline-code chip (near-white
   background) and pure-white body text, both of which read as harsh. */
body.quarto-dark {
  --bs-body-color: #d7dade;
}
body.quarto-dark code:not(.sourceCode) {
  background-color: rgba(255, 255, 255, 0.08);
  color: #c9a7e8;
}

/* Tables that should shrink to their content instead of filling the column */
main.content .table-fit table {
  width: auto;
}

/* One typography for both themes, so toggling only changes colour and never
   reflows the page. (cosmo ships Source Sans Pro @ heading weight 400,
   darkly ships Lato @ 500 — without this, text shifts on toggle.) */
body {
  --bs-body-font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
main.content h1,
main.content h2,
main.content h3,
main.content h4,
main.content h5,
main.content h6 {
  font-weight: 600;
}

/* Accent colour: content links and the active item in the left sidebar */
body {
  --bs-link-color: #3c7085;
  --bs-link-color-rgb: 60, 112, 133;
  --bs-link-hover-color: #2f5a6b;
  --bs-link-hover-color-rgb: 47, 90, 107;
}
div.sidebar-item-container .active,
div.sidebar-item-container .show > .nav-link,
div.sidebar-item-container .sidebar-link > code {
  color: #3c7085;
}
div.sidebar-item-container:hover,
div.sidebar-item-container:focus {
  color: rgba(60, 112, 133, 0.8);
}

/* Tables: heavier rule at the top and bottom (Bootstrap's are 1px #d6d8d9) */
main.content .table {
  border-top: 2px solid #495057;
  border-bottom: 2px solid #495057;
}
/* ...and under the header row (Bootstrap's is 1px #9a9da0) */
main.content .table > thead,
main.content .table > thead > tr > th,
main.content .table > thead > tr > td {
  border-bottom: 2px solid #495057;
}

/* Token line and label list nested under a description line */
main.content .indented {
  margin-left: 1.5rem;
}
main.content .indented-2 {
  margin-left: 3rem;
}

/* Datablock entries: tight vertical rhythm */
main.content p:has(+ .indented) {
  margin-bottom: 0.1rem;
}
main.content .indented > p {
  margin-bottom: 0.1rem;
}
main.content .section-list.indented-2 {
  margin-top: 0.1rem;
  margin-bottom: 1.1rem;
}
main.content .section-list.indented-2 dl {
  row-gap: 0;
  /* fixed first column so descriptions line up across every block
     (longest tag is `desy3_3x2pt_gmv_maglim`) */
  grid-template-columns: 12.5em 1fr;
}

/* Title block: tighter gap between the title and its subtitle */
main.content .quarto-title h1.title {
  margin-bottom: 0.1rem;
}
main.content .quarto-title p.subtitle {
  margin-top: 0;
}

/* Model list: same tight rhythm as the datablock lists, but not indented */
main.content .section-list.tight dl {
  row-gap: 0;
  grid-template-columns: 12.5em 1fr;
}

/* Indent subsections so the section/subsection hierarchy reads at a glance */
main.content section.level3 {
  margin-left: 1.25rem;
}

/* Long URLs shown as link text should wrap rather than overflow */
main.content a {
  overflow-wrap: break-word;
}
