.api-guide section { margin-top: 2rem; }
.api-guide pre { max-width: 100%; overflow-x: auto; padding: 1rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--surface); font-size: .875rem; line-height: 1.5; }
.api-guide code { overflow-wrap: anywhere; line-height: inherit; }
.api-related { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; }
.api-related li { margin: 0; }
.api-guide pre code { overflow-wrap: normal; }
.api-table { max-width: 100%; overflow-x: auto; }
.api-table table { width: 100%; border-collapse: collapse; }
.api-table th, .api-table td { padding: .65rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.api-table caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.api-table th, .api-table td { overflow-wrap: anywhere; }
.api-table code { white-space: nowrap; overflow-wrap: normal; }
.api-guide details { margin: .5rem 0; padding: .75rem; border: 1px solid var(--line); border-radius: .25rem; }
.api-guide summary { cursor: pointer; }
.api-fields { padding-left: 1.25rem; }
.api-fields li { margin: .35rem 0; overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
  .api-guide a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media print {
  .api-guide details::details-content { content-visibility: visible; display: block; height: auto; }
  .api-guide details > :not(summary) { display: block; }
  .api-guide details > summary { display: block; list-style: none; break-after: avoid; }
  .api-guide pre { max-width: none; overflow: visible; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
}
@media (max-width: 600px) {
  .api-guide #endpoints > p a code { font-size: .875rem; }
  .api-table code { font-size: .875rem; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; line-height: 1.4; }
  .api-table { overflow: visible; }
  .api-table caption { display: block; width: 100%; }
  .api-table table, .api-table tbody, .api-table tr { display: block; width: 100%; }
  .api-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .api-table thead tr, .api-table thead th { display: block; width: 1px; padding: 0; border: 0; }
  .api-table tr { margin: 0 0 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .api-table tbody th, .api-table tbody td { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 10px; width: 100%; min-width: 0; padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .api-table tbody th::before, .api-table tbody td::before { content: attr(data-label); color: var(--muted); font-weight: 400; font-size: .85rem; }
  .api-table tbody tr > :last-child { border-bottom: 0; }
  .api-table tbody th { font-weight: 600; }
  .api-table tbody th.dataset-card-heading { display: block; font-size: 1.05rem; }
  .api-table tbody th.dataset-card-heading::before { content: none; }
  .api-table tbody td a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Print: every Data Center page keeps the same inset as the issuer, bond and grid pages' named pages
   (.4in), so index pages never print flush to the paper's edge (g22 P3). */
@page { margin: .4in; }
