.site-header { z-index: 20; }
.site-header .wrap { max-width: 1520px; gap: 24px; }
.docs-search-trigger { display: flex; align-items: center; gap: 10px; padding: 9px 14px; margin-left: auto; width: 320px; max-width: 40%; border: 1px solid #dce2e8; border-radius: 6px; background: #f6f8fa; color: #526273; text-align: left; font-size: 13px; cursor: pointer; }
.docs-search-trigger:hover { border-color: #8daecb; background: #eef4fa; }
.docs-search-trigger i { flex-shrink: 0; }
.docs-search-open { overflow: hidden; scrollbar-gutter: stable; }
.docs-search-dialog { width: min(700px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: 7vh auto auto; padding: 0; overflow: hidden; border: 1px solid #dce2e8; border-radius: 8px; background: #fff; color: #293847; box-shadow: 0 24px 80px #182b4538; }
.docs-search-dialog[open] { display: flex; flex-direction: column; }
.docs-search-dialog::backdrop { background: #14202e80; }
.docs-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 8px; }
.docs-search-heading h2 { margin: 0; font-size: 16px; font-weight: 650; }
.docs-icon-button { width: 34px; aspect-ratio: 1; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #536579; cursor: pointer; font-size: 13px; }
.docs-icon-button:hover { background: #eaf0f6; color: #163f66; }
.docs-icon-button[hidden], .docs-search-retry[hidden] { display: none; }
.docs-search-field { display: flex; align-items: center; gap: 12px; margin: 8px 20px 0; padding: 6px 10px 6px 14px; border: 1px solid #aabaca; border-radius: 6px; }
.docs-search-field:focus-within { border-color: #1769c2; outline: 3px solid #1769c21a; }
.docs-search-field input { width: 100%; min-width: 0; padding: 10px 0; border: 0; outline: none; color: #263c50; background: transparent; font-size: 16px; }
.docs-search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.docs-search-status { margin: 0; padding: 12px 20px; font-size: 13px; color: #5b6a78; }
.docs-search-results { overflow-y: auto; overscroll-behavior: contain; max-height: 60dvh; padding: 0 10px 10px; scrollbar-width: thin; }
.docs-search-results a { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid transparent; border-radius: 6px; color: #293847; line-height: 1.5; }
.docs-search-results a + a { margin-top: 3px; }
.docs-search-results a:hover, .docs-search-results [aria-selected="true"] { background: #edf4fc; border-color: #d5e5f6; color: #164e86; }
.docs-search-result-title { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.docs-search-result-section { font-size: 12px; color: #326887; overflow-wrap: anywhere; }
.docs-search-result-preview { font-size: 13px; color: #62717f; overflow-wrap: anywhere; }
.docs-search-results mark { background: #fff0b8; color: inherit; border-radius: 2px; }
.docs-search-retry { align-self: start; display: inline-flex; align-items: center; gap: 8px; margin: 0 20px 16px; padding: 8px 12px; border: 1px solid #c6d5e4; border-radius: 5px; background: #f0f5fa; color: #174d81; cursor: pointer; }
.docs-visually-hidden { position: absolute; width: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.docs-search-dialog :is(button, a):focus-visible, .docs-search-trigger:focus-visible, .docs-toc :is(a, summary):focus-visible { outline: 2px solid #1769c2; outline-offset: 2px; }
.content-right :is(h1, h2, h3, h4) { scroll-margin-top: calc(var(--docs-header-height) + 80px); }
.docs-toc { min-width: 0; font-size: 13px; }
.docs-toc details { border-block: 1px solid #e1e7ee; background: #fff; }
.docs-toc summary { padding: 12px 0; font-size: 13px; font-weight: 650; color: #344c61; cursor: pointer; }
.docs-toc nav { max-height: 45dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 4px 12px 0; }
.docs-toc ul { list-style: none; }
.docs-toc a { display: block; padding: 6px 10px; border: 0; border-left: 2px solid #e5eaf0; color: #5a6c7e; line-height: 1.5; overflow-wrap: anywhere; }
.docs-toc a:hover { background: #f4f7fa; color: #145794; }
.docs-toc a[aria-current] { border-left-color: #1769c2; color: #075eb5; background: #eff5fc; font-weight: 600; }
.docs-toc .docs-toc-h3 a { padding-left: 20px; }
.docs-toc .docs-toc-h4 a { padding-left: 30px; }
.content-right > .docs-toc { position: sticky; top: var(--docs-header-height); z-index: 5; margin-bottom: 20px; background: #fff; }
@media (min-width: 1280px) {
  .cols-2.docs-with-toc { max-width: 1520px; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 24px; }
  .docs-with-toc > .content-right { padding-inline: 16px; }
  .docs-with-toc > .docs-toc { position: sticky; top: calc(var(--docs-header-height) + 24px); padding-block: 8px; }
  .docs-toc details { border: 0; }
  .docs-toc nav { max-height: calc(100dvh - var(--docs-header-height) - 100px); }
  .docs-toc summary { padding: 0 0 14px 12px; }
}
@media (max-width: 620px) {
  .site-header .wrap { gap: 12px; padding-inline: 16px; }
  .site-title a { font-size: 17px; }
  .docs-search-trigger { width: 36px; max-width: none; padding: 10px; justify-content: center; }
  .docs-search-trigger span { display: none; }
  .docs-search-dialog { margin-top: 16px; max-height: calc(100dvh - 32px); }
  .docs-search-heading { padding-inline: 14px; }
  .docs-search-field { margin-inline: 14px; gap: 8px; }
  .docs-search-status { padding-inline: 14px; }
  .docs-search-results { max-height: 65dvh; }
}
