.catalog-docs-hub {
  margin-top: .6rem;
  max-width: 25rem;
  padding: 0;
  position: relative;
  z-index: 2;
}

.catalog-docs-hub__panel {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid #91bb3033;
  box-shadow: none;
  display: flex;
  gap: .75rem;
  justify-content: flex-start;
  padding: .65rem 0 0;
  position: relative;
}

.catalog-docs-hub__panel::before {
  display: none;
}

.catalog-docs-hub__eyebrow {
  color: #91bb30;
  display: block;
  font-size: .58rem;
  font-weight: 950;
  letter-spacing: .16em;
  line-height: 1.2;
  margin: 0 0 .32rem;
  text-transform: uppercase;
}

.catalog-docs-hub__title,
.catalog-docs-hub__copy {
  display: none;
}

.catalog-docs-hub__button {
  align-items: center;
  background: transparent;
  border: 1px solid #91bb3052;
  border-radius: 999px;
  color: #003366;
  cursor: pointer;
  display: inline-flex;
  font-size: .7rem;
  font-weight: 950;
  gap: .42rem;
  justify-content: center;
  min-height: 2rem;
  padding: 0 .78rem;
  text-transform: uppercase;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
  white-space: nowrap;
}

.catalog-docs-hub__button:hover,
.catalog-docs-hub__button:focus-visible {
  background: #91bb3014;
  border-color: #91bb30;
  color: #6ea000;
  outline: none;
  transform: translateY(-1px);
}

.catalog-docs-hub + .docs-section:empty,
.docs-section:empty {
  display: none !important;
}

.catalog-docs-hub__button svg,
.catalog-docs-modal__close svg,
.catalog-docs-modal__icon svg {
  flex: 0 0 auto;
  height: 1.05rem;
  width: 1.05rem;
}

.catalog-docs-modal[hidden] {
  display: none;
}

.catalog-docs-modal {
  align-items: center;
  background: #001a33bf;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  position: fixed;
  z-index: 2600;
}

.catalog-docs-modal__dialog {
  background: #f8fbfc;
  border: 1px solid #ffffff70;
  border-radius: 1.25rem;
  box-shadow: 0 28px 90px #00000052;
  max-height: min(82vh, 680px);
  max-width: 820px;
  overflow: hidden;
  width: 100%;
}

.catalog-docs-modal__head {
  align-items: start;
  background:
    linear-gradient(90deg, #00336612 1px, transparent 1px),
    linear-gradient(180deg, #0033660d 1px, transparent 1px),
    #eef6f7;
  background-size: 54px 54px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.catalog-docs-modal__kicker {
  color: #6ea000;
  display: block;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .16em;
  margin-bottom: .45rem;
  text-transform: uppercase;
}

.catalog-docs-modal__head h2 {
  color: #003366;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: clamp(1.45rem, 4vw, 2.4rem);
  font-weight: 950;
  line-height: 1;
  margin: 0;
}

.catalog-docs-modal__head p {
  color: #4c5f73;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.55;
  margin: .7rem 0 0;
  max-width: 46rem;
}

.catalog-docs-modal__close {
  align-items: center;
  background: #fff;
  border: 1px solid #0033661f;
  border-radius: 999px;
  color: #003366;
  cursor: pointer;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.catalog-docs-modal__body {
  display: grid;
  gap: 1rem;
  max-height: calc(min(82vh, 680px) - 10rem);
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.catalog-docs-modal__tools {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.catalog-docs-modal__search {
  background: #fff;
  border: 1px solid #00336624;
  border-radius: .75rem;
  color: #003366;
  font: inherit;
  font-size: .95rem;
  min-height: 2.8rem;
  padding: 0 .95rem;
  width: 100%;
}

.catalog-docs-modal__count {
  align-items: center;
  background: #91bb301f;
  border: 1px solid #91bb3054;
  border-radius: 999px;
  color: #4a7000;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 900;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1rem;
  white-space: nowrap;
}

.catalog-docs-modal__grid {
  display: grid;
  gap: .65rem;
  grid-template-columns: 1fr;
}

.catalog-docs-modal__category {
  align-items: center;
  background: #fff;
  border: 1px solid #00336618;
  border-radius: .75rem;
  color: #003366;
  display: grid;
  gap: .8rem;
  grid-template-columns: auto 1fr auto;
  line-height: 1.25;
  min-height: 4.2rem;
  padding: .85rem 1rem;
  text-decoration: none;
}

.catalog-docs-modal__category:hover,
.catalog-docs-modal__category:focus-visible {
  background: #91bb3018;
  border-color: #91bb3061;
  outline: none;
}

.catalog-docs-modal__icon {
  align-items: center;
  background: #eef6f7;
  border: 1px solid #00336618;
  border-radius: .65rem;
  color: #003366;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.catalog-docs-modal__category-text {
  display: grid;
  gap: .18rem;
}

.catalog-docs-modal__category-text strong {
  color: #003366;
  font-size: .9rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.catalog-docs-modal__category-text span {
  color: #003366;
  font-size: .9rem;
  font-weight: 850;
}

.catalog-docs-modal__category-text small {
  color: #63778c;
  font-size: .78rem;
  font-weight: 650;
}

.catalog-docs-modal__type {
  color: #6ea000;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.catalog-docs-modal__empty {
  color: #4c5f73;
  display: none;
  font-weight: 800;
  margin: 0;
  padding: 1rem;
  text-align: center;
}

.catalog-docs-modal__empty.is-visible {
  display: block;
}

html.catalog-docs-lock {
  overflow: hidden;
}

[data-theme="dark"] .catalog-docs-hub__panel,
html.dark .catalog-docs-hub__panel {
  background: transparent;
  border-color: #91bb3045;
}

[data-theme="dark"] .catalog-docs-hub__title,
html.dark .catalog-docs-hub__title {
  color: #f4f8ff;
}

[data-theme="dark"] .catalog-docs-hub__copy,
html.dark .catalog-docs-hub__copy {
  color: #c8d4e3cf;
}

[data-theme="dark"] .catalog-docs-hub__button,
html.dark .catalog-docs-hub__button {
  background: transparent;
  border-color: #91bb305f;
  color: #fff;
}
@media (max-width: 720px) {
  .catalog-docs-hub__panel,
  .catalog-docs-modal__tools {
    grid-template-columns: 1fr;
  }

  .catalog-docs-hub__button {
    width: auto;
  }

  .catalog-docs-modal {
    align-items: stretch;
    padding: .75rem;
  }

  .catalog-docs-modal__dialog {
    max-height: 94vh;
  }

  .catalog-docs-modal__body {
    max-height: calc(94vh - 12rem);
  }

  .catalog-docs-modal__category {
    align-items: start;
    grid-template-columns: auto 1fr;
  }

  .catalog-docs-modal__type {
    grid-column: 2;
    justify-self: start;
  }
}
