/* APB documentation: a plain reading surface within the shared site shell. */
.docs-page { background: #fafaf8; color: #253247; }
.docs-page .site-header, .docs-page .site-footer { background: var(--navy); color: var(--bone); }
.docs-layout { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
.docs-sidebar { align-self: start; position: sticky; top: 28px; padding: 42px 24px 40px 0; border-right: 1px solid #dce0e4; }
.docs-nav-title { margin: 0 0 16px; font-weight: 700; font-size: 14px; }
.docs-sidebar nav, .docs-mobile-nav nav { display: grid; gap: 4px; }
.docs-sidebar nav a, .docs-mobile-nav nav a { color: #46536a; font-size: 14px; line-height: 1.45; padding: 9px 10px; border-radius: 4px; }
.docs-sidebar nav a:hover, .docs-mobile-nav nav a:hover { background: #e9edf1; color: #173f73; }
.docs-sidebar .docs-return { display: block; color: #46536a; font-size: 13px; padding: 10px 0 0; }
.docs-sidebar nav + .docs-return { margin-top: 24px; padding-top: 24px; border-top: 1px solid #dce0e4; }
.docs-article { min-width: 0; max-width: 760px; padding: 44px 0 80px; font-size: 16px; line-height: 1.75; }
.docs-article :is(h1, h2, h3) { color: #15243b; font-family: var(--sans); line-height: 1.3; letter-spacing: -.02em; text-wrap: pretty; }
.docs-article h1 { font-size: clamp(30px, 3.3vw, 42px); margin: 12px 0 20px; }
.docs-article h2 { font-size: 27px; margin: 42px 0 18px; }
.docs-article h3 { font-size: 20px; margin: 30px 0 12px; }
.docs-article p { margin: 0 0 20px; }
.docs-article ul { padding-left: 22px; margin: 16px 0 24px; }
.docs-article li { padding-left: 3px; margin-bottom: 12px; }
.docs-article a { color: #20558a; text-decoration: underline; text-underline-offset: 3px; }
.docs-article a:hover { color: #133a61; }
.docs-article :is(a, summary, [tabindex]):focus-visible, .docs-sidebar a:focus-visible { outline: 2px solid #20558a; outline-offset: 3px; }
.docs-article [id] { scroll-margin-top: 28px; }
.docs-intro { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid #dce0e4; }
.docs-article .docs-breadcrumb { font-size: 13px; color: #526078; margin-bottom: 20px; }
.docs-article .docs-description { font-size: 19px; color: #526078; line-height: 1.6; }
.docs-article .docs-updated { font-size: 13px; color: #5a677a; margin: 0; }
.docs-article section { padding-top: 8px; margin-top: 38px; border-top: 1px solid #dce0e4; }
.docs-article .docs-anchor { font-size: .7em; font-weight: 400; text-decoration: none; color: #6b7d94; margin-left: 5px; }
.docs-note { margin: 28px 0; padding: 18px 22px; background: #edf2f7; border-left: 3px solid #6f89a8; border-radius: 0 4px 4px 0; }
.docs-note strong { display: inline; }
.docs-table-wrap { overflow-x: auto; max-width: 100%; margin: 22px 0; border: 1px solid #dce0e4; border-radius: 4px; }
.docs-article table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.docs-article th, .docs-article td { padding: 12px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid #dce0e4; }
.docs-article thead th { background: #f0f2f4; color: #253247; font-weight: 700; }
.docs-article tbody th { font-weight: 500; }
.docs-article tr:last-child :is(th, td) { border-bottom: 0; }
.docs-article .docs-formula { padding: 16px 20px; background: #f0f2f4; font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; border-radius: 4px; }
.docs-next { margin-top: 36px; padding-top: 24px; border-top: 1px solid #dce0e4; }
.docs-next a { display: flex; justify-content: space-between; gap: 20px; text-decoration: none; font-weight: 700; }
.docs-mobile-nav { display: none; }
@media (max-width: 1000px) { .docs-layout { gap: 36px; grid-template-columns: 210px minmax(0, 1fr); } }
@media (max-width: 760px) {
  /* The site gutter (32px above 640, 20px below) keeps the article on the header and footer edges. */
  .docs-layout { display: block; padding: 0 var(--gutter); }
  .docs-sidebar { display: none; }
  .docs-article { max-width: 100%; padding: 24px 0 64px; }
  .docs-mobile-nav { display: block; margin-bottom: 30px; border: 1px solid #dce0e4; border-radius: 4px; }
  .docs-mobile-nav summary { padding: 12px 16px; cursor: pointer; font-size: 14px; font-weight: 700; }
  .docs-mobile-nav nav { padding: 0 8px 10px; }
  .docs-article h2 { font-size: 25px; }
  .docs-article h3 { font-size: 19px; }
  .docs-article .docs-description { font-size: 18px; }
  .docs-article th, .docs-article td { padding: 10px; }
}
