.navbar-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.navbar-brand {
  flex-shrink: 1;
  min-width: 0;
  white-space: normal;
}

/* Inline paths may wrap; command output keeps its original whitespace. */
main :not(pre) > code {
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Preserve whole words when sizing columns; wider tables scroll in their region. */
.table-responsive {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: normal;
}

main .table-responsive a,
main .table-responsive :not(pre) > code {
  overflow-wrap: normal;
  word-break: normal;
}

/* Keep historical bookmarks in table rows below the fixed navigation bar. */
main .table-responsive span[id] {
  scroll-margin-top: 5rem;
}

main {
  overflow-wrap: anywhere;
}

.quarto-title-block .subtitle {
  color: var(--bs-secondary-color);
  font-size: 1.2rem;
  max-width: 42rem;
}

pre,
.callout {
  border-radius: 6px;
}

code {
  color: inherit;
}

/* Keep help inside its layout column; do not make the whole page scroll. */
.cli-help-page main.content,
.cli-help-transcript,
.cli-help-transcript > section {
  min-width: 0;
}

main .anchored {
  padding-right: 1.5em;
}

pre.cli-help {
  background-color: #f5f8f7;
  box-shadow: inset 0 0 0 1px var(--bs-border-color);
  box-sizing: border-box;
  color: var(--bs-body-color);
  font-family: var(--bs-font-monospace);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  white-space: pre;
}

pre.cli-help:focus-visible {
  outline: 2px solid var(--bs-link-color);
  outline-offset: 2px;
}

pre.cli-help code {
  background-color: transparent;
  color: inherit;
  font-size: inherit;
  white-space: inherit;
}

.cli-help-heading {
  color: #007f3b;
  font-weight: 700;
}

.quarto-dark pre.cli-help {
  background-color: #2e3a34;
}

.quarto-dark .cli-help-heading {
  color: var(--bs-link-color);
}

.cli-help-tabs .nav-link.active {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.home-links {
  margin: 1.5rem 0 2rem;
}

.home-links p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-guides > section {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
}

.home-guides h2 {
  margin-top: 0;
  font-size: 1.2rem;
  border-bottom: 0;
}

/* Generated Python reference uses the site's fonts, colors, and spacing. */
.doc-api-page main.content {
  min-width: 0;
}

.doc-object-name,
.doc-parameter-name,
.gd-summary-table td:first-child {
  font-family: var(--bs-font-monospace);
}

.doc-api-page h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.doc-signature pre code > span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.doc-signature pre {
  padding-right: 2.5rem;
}

.doc-usage-source {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.doc-usage-source p {
  margin-bottom: 0.35rem;
}

.doc-definition-items dt {
  margin-top: 1rem;
}

.doc-definition-items dd {
  margin: 0.5rem 0 1rem 1rem;
}

.doc-parameter-annotation,
.doc-parameter-default {
  font-weight: normal;
  color: var(--bs-secondary-color);
}

.gd-summary-table {
  width: 100%;
  table-layout: fixed;
  margin-bottom: 1.5rem;
}

.gd-summary-table th,
.gd-summary-table td {
  border-bottom: 1px solid var(--bs-border-color);
  padding: 0.65rem;
  vertical-align: top;
}

.gd-summary-table th:first-child {
  width: 35%;
}

.doc-api-page span[id] {
  scroll-margin-top: 5rem;
}
