@import url('https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css');

:root {
  --color-accent: #efefef;
  --color-active-menu-item: #f8f8f8;
  --code-background: #fafafa;
  --color-background-secondary: #fafafa;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tsd-navigation.settings {
  display: none;
}

.tsd-returns-title-content {
  padding: 18px;
  border: 1px solid #e3e8ff;
  margin-top: 20px;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
    'Helvetica Neue', sans-serif;
  background-color: white;
  font-size: 16px;
}

.tsd-navigation > a {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.tsd-navigation a,
.tsd-page-navigation a {
  padding: 0.3rem 0.3rem 0.3rem 0.5rem;
  border-left: 2px solid transparent;
}

.tsd-navigation a.current,
.tsd-page-navigation a.current {
  border-left: 2px solid #0070e0;
}

.tsd-nested-navigation {
  margin-left: 40px;
}

.tsd-kind-icon {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
}

.tsd-signature,
pre,
.tsd-hierarchy-item,
.tsd-returns-title-content {
  border-radius: 0.25rem;
  font-size: 13px;
  line-height: 1.7;
  padding: 0.5rem;
  font-weight: 400;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
}

.tsd-hierarchy-item {
  padding: 0;
}

.tsd-signature {
  background-color: var(--code-background);
}

.tsd-parameter h5 {
  font-size: 16px;
  line-height: 1.5;
}

.tsd-index-link {
  font-size: 16px;
}

pre {
  color: #383a42;
}

pre,
code,
.tsd-signature {
  font-size: 14px;
}

.tsd-signatures .tsd-signature {
  border-width: 1px;
}

.col-content .tsd-anchor-link:not(.tsd-signature):not(#deprecated) {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.tsd-tag-throws p {
  background: #fff0f0;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ffdbdb;
}

.col-content .tsd-member {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

h1 {
  margin: 1.67rem 0;
  font-weight: 500;
}

a.external[target='_blank'] {
  background-position: center right;
  padding-right: 13px;
  margin-right: 4px;
}

.tsd-signature-type {
  font-style: unset;
}

.tsd-accordion-summary:not([data-key]) {
  display: none;
}

.site-menu summary svg {
  height: 16px;
  width: 16px;
  min-width: none;
  min-height: none;
}

.tsd-comment h4 {
  margin: 1.33rem 0;
}

.tsd-description h4 {
  font-weight: 600;
  color: #363636;
}

.tsd-tag-deprecated {
  background-color: #ffecd4;
  padding: 12px;
  border-radius: 4px;

  h4 {
    display: inline-block;
    margin: 0;
    font-size: 16px;
    min-width: 0;
    margin-right: 4px;
  }

  a {
    display: none;
  }

  code {
    font-size: 16px;
    padding-inline: 8px;
  }

  p {
    display: inline;
  }
}

ul,
p {
  line-height: 1.6;
}

.tsd-index-list:has([aria-label='Enumeration Member']) span {
  font-size: 16px;
}

table {
  width: 100%;
}

/* Style for custom tags that are rendered inline in headers */
.custom-tags-inline {
  display: inline-block;
  margin-left: 8px;
}

.tsd-tag {
  display: inline-block;
  margin: 0 8px;
  border-radius: 10px;
  padding: 1px 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  font-family: inherit;

  &[data-tag='Server'] {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
  }

  &[data-tag='Standalone'] {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
  }
}

.tsd-navigation .tsd-accordion-summary {
  gap: 8px;
}

.tsd-comment:has(.tsd-tag-replaceWith) {
  display: none;
}

.tsd-sources {
  display: none;
}

.tsd-accordion-summary[data-key='Default Export'],
.tsd-accordion-summary[data-key='Type Exports'] {
  svg {
    display: none;
  }

  pointer-events: none;
  font-weight: 500;
  margin-top: 8px;
}

.tsd-navigation > a {
  margin-left: 0;
  padding-left: 0;
}

/* API Search Input Styling */
.search-input {
  max-width: 400px;
  height: 30px;
  padding: 0 16px 0 40px;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px 16px;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #0070e0;
  box-shadow: 0 0 0 3px rgba(0, 112, 224, 0.1);
  background-color: #ffffff;
}

.search-input::placeholder {
  color: #6b7280;
  font-style: italic;
}
