.knowledge-base {
  color: var(--navy);
  background: var(--white);
}

.knowledge-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--navy);
}

.knowledge-hero__media,
.knowledge-hero__media::after {
  position: absolute;
  inset: 0;
}

.knowledge-hero__media {
  z-index: -2;
}

.knowledge-hero__media::after {
  z-index: 1;
  content: "";
  background: rgb(0 51 102 / 72%);
}

.knowledge-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.002);
}

.knowledge-hero__inner {
  width: min(calc(100% - 64px), 1180px);
  padding-top: calc(var(--header-height) + 46px);
  padding-bottom: 72px;
}

.knowledge-hero__eyebrow {
  color: var(--red);
}

.knowledge-hero h1 {
  max-width: 870px;
  margin-bottom: 22px;
  font-size: clamp(52px, 6vw, 86px);
  letter-spacing: 0.015em;
  line-height: 0.98;
  text-wrap: balance;
}

.knowledge-hero__intro {
  max-width: 690px;
  margin-bottom: 34px;
  font-family: var(--intro);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  text-wrap: pretty;
}

.knowledge-search {
  width: min(100%, 860px);
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 2px solid var(--white);
  border-radius: 5px;
  background: var(--white);
  transition: border-color 180ms ease, opacity 180ms ease;
}

.knowledge-search:focus-within {
  border-color: var(--lime);
}

.knowledge-search.is-loading {
  opacity: 0.72;
}

.knowledge-search input {
  min-width: 0;
  padding: 16px 22px;
  border: 0;
  outline: 0;
  color: var(--navy);
  background: transparent;
  font-size: 18px;
}

.knowledge-search input::placeholder {
  color: rgb(0 51 102 / 72%);
  opacity: 1;
}

.knowledge-search button {
  min-width: 152px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 0;
  border-radius: 3px;
  color: var(--white);
  background: var(--red);
  font-family: var(--interface);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.knowledge-search button:hover,
.knowledge-search button:focus-visible {
  color: var(--navy);
  background: var(--lime);
}

.knowledge-search button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.knowledge-index {
  padding: clamp(76px, 9vw, 126px) 0;
  background: var(--white);
}

.knowledge-index__inner,
.knowledge-results__inner {
  width: min(calc(100% - 64px), 1276px);
}

.knowledge-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.knowledge-section-heading h2,
.knowledge-results__heading h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: 0.015em;
}

.knowledge-alphabet {
  display: grid;
  padding: 14px;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  grid-template-columns: repeat(13, minmax(32px, 1fr));
  gap: 6px;
}

.knowledge-alphabet a,
.knowledge-alphabet span {
  min-width: 32px;
  min-height: 40px;
  display: grid;
  border-radius: 5px;
  place-items: center;
  font-family: var(--interface);
  font-size: 17px;
  font-weight: 600;
}

.knowledge-alphabet a {
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.knowledge-alphabet a:hover,
.knowledge-alphabet a:focus-visible {
  color: var(--white);
  background: var(--navy);
  transform: translateY(-2px);
}

.knowledge-alphabet span {
  color: rgb(0 51 102 / 34%);
}

.knowledge-terms {
  display: grid;
  margin-top: 72px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 62px 44px;
}

.knowledge-letter {
  scroll-margin-top: 120px;
}

.knowledge-letter h3 {
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 3px solid var(--red);
  color: var(--red);
  font-size: 48px;
  line-height: 1;
}

.knowledge-letter ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.knowledge-term-wrap {
  position: relative;
}

.knowledge-term {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px solid rgb(0 51 102 / 22%);
  color: var(--navy);
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  transition: color 180ms ease, padding-left 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.knowledge-term::after {
  flex: 0 0 auto;
  color: var(--red);
  content: "+";
  font-family: var(--interface);
  font-size: 20px;
}

.knowledge-term:hover,
.knowledge-term:focus-visible,
.knowledge-term.is-active {
  padding-left: 8px;
  color: var(--red);
}

html.has-knowledge-modal {
  overflow: hidden;
}

.knowledge-modal {
  width: min(calc(100% - 40px), 760px);
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 5px;
  color: var(--white);
  background: transparent;
}

.knowledge-modal::backdrop {
  background: rgb(0 25 51 / 78%);
  backdrop-filter: blur(4px);
  animation: knowledge-modal-backdrop-in 220ms ease-out both;
}

.knowledge-modal__panel {
  position: relative;
  max-height: calc(100dvh - 40px);
  padding: clamp(34px, 6vw, 64px);
  overflow: auto;
  border-top: 5px solid var(--red);
  border-radius: 5px;
  background: var(--navy);
  box-shadow: 0 8px 8px rgb(0 15 31 / 28%);
  overscroll-behavior: contain;
  animation: knowledge-modal-in 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.knowledge-modal.is-closing .knowledge-modal__panel {
  animation: knowledge-modal-out 180ms ease-in both;
}

.knowledge-modal.is-closing::backdrop {
  animation: knowledge-modal-backdrop-out 180ms ease-in both;
}

.knowledge-modal__close {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 20px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 44%);
  border-radius: 5px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  place-items: center;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.knowledge-modal__close:hover,
.knowledge-modal__close:focus-visible {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
  transform: translateY(-2px);
}

.knowledge-modal__close span,
.knowledge-modal__close span::before {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.knowledge-modal__close span::before {
  transform: rotate(90deg);
}

.knowledge-modal__header {
  padding-right: 56px;
  margin-bottom: 26px;
}

.knowledge-modal__header .eyebrow {
  margin-bottom: 16px;
}

.knowledge-modal__header h2 {
  max-width: 620px;
  margin: 0;
  color: var(--white);
  font-size: clamp(42px, 7vw, 64px);
  line-height: 0.96;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.knowledge-modal__description {
  max-width: 68ch;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.knowledge-modal__description p {
  margin: 0;
}

.knowledge-modal__description p + p,
.knowledge-modal__description ul,
.knowledge-modal__description ol,
.knowledge-modal__description blockquote {
  margin-top: 16px;
}

.knowledge-modal__description ul,
.knowledge-modal__description ol {
  padding-left: 22px;
  margin-bottom: 0;
}

.knowledge-modal__description a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.knowledge-modal__description a:hover,
.knowledge-modal__description a:focus-visible {
  color: var(--white);
}

.knowledge-modal__description strong {
  font-weight: 700;
}

.knowledge-modal__contact {
  padding-top: 22px;
  margin-top: 32px;
  border-top: 1px solid rgb(255 255 255 / 24%);
}

.knowledge-modal__contact p {
  margin: 0 0 16px;
  color: var(--white);
  font-family: var(--interface);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.knowledge-modal__actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.knowledge-modal__button {
  width: 100%;
  min-width: 0;
}

@keyframes knowledge-modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes knowledge-modal-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
}

@keyframes knowledge-modal-backdrop-in {
  from {
    opacity: 0;
  }
}

@keyframes knowledge-modal-backdrop-out {
  to {
    opacity: 0;
  }
}

.knowledge-terms-empty {
  padding: 42px 0 0;
  font-size: 18px;
}

.knowledge-terms-empty p {
  margin: 0;
}

.knowledge-results {
  scroll-margin-top: 90px;
  padding: clamp(76px, 9vw, 120px) 0 clamp(94px, 10vw, 142px);
  background: var(--mist);
}

.knowledge-results__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.knowledge-results__heading p {
  max-width: 380px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

.knowledge-results__message {
  padding: 16px 18px;
  margin: 0 0 28px;
  border-radius: 5px;
  color: var(--white);
  background: var(--red);
  font-weight: 700;
}

.knowledge-results__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 28px;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.knowledge-results__grid .library-card,
.knowledge-results__grid .library-card:nth-child(8n + 1),
.knowledge-results__grid .library-card:nth-child(8n + 4) {
  grid-column: auto;
}

.knowledge-results__grid .library-card__body {
  max-width: 100%;
  padding-left: 0;
}

.knowledge-results__grid .library-card h2 {
  font-size: 22px;
}

.knowledge-results__grid.is-loading {
  opacity: 0.45;
}

.knowledge-results__grid.is-transitioning-out {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(12px);
}

.knowledge-results__grid .library-card.is-entering {
  animation: knowledge-card-enter 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--knowledge-enter-index, 0) * 45ms);
}

@keyframes knowledge-card-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.knowledge-empty-state {
  grid-column: 1 / -1;
  padding: 64px 28px;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  text-align: center;
}

.knowledge-empty-state h3 {
  margin-bottom: 12px;
  font-size: 36px;
}

.knowledge-empty-state p {
  margin: 0;
  font-size: 18px;
}

@media (max-width: 900px) {
  .knowledge-terms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .knowledge-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 680px) {
  .knowledge-hero {
    min-height: 610px;
  }

  .knowledge-hero__inner,
  .knowledge-index__inner,
  .knowledge-results__inner {
    width: min(calc(100% - 32px), 1276px);
  }

  .knowledge-hero__inner {
    padding-top: 154px;
    padding-bottom: 56px;
  }

  .knowledge-hero h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  .knowledge-hero__intro {
    font-size: 20px;
  }

  .knowledge-search {
    min-height: 58px;
  }

  .knowledge-search input {
    padding: 14px 16px;
    font-size: 16px;
  }

  .knowledge-search button {
    min-width: 58px;
    padding: 12px;
  }

  .knowledge-search button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .knowledge-section-heading h2,
  .knowledge-results__heading h2 {
    font-size: 42px;
  }

  .knowledge-alphabet {
    grid-template-columns: repeat(7, minmax(32px, 1fr));
  }

  .knowledge-terms {
    margin-top: 54px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 24px;
  }

  .knowledge-modal {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  .knowledge-modal__panel {
    max-height: calc(100dvh - 24px);
    padding: 34px 24px 28px;
  }

  .knowledge-modal__close {
    top: 14px;
    right: 14px;
  }

  .knowledge-modal__header {
    padding-right: 0;
  }

  .knowledge-modal__header h2 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .knowledge-modal__description {
    font-size: 16px;
  }

  .knowledge-modal__actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .knowledge-results__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .knowledge-results__heading p {
    text-align: left;
  }

  .knowledge-results__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 430px) {
  .knowledge-terms {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  .knowledge-alphabet a,
  .knowledge-term,
  .knowledge-modal__panel,
  .knowledge-modal::backdrop,
  .knowledge-results__grid,
  .knowledge-results__grid .library-card.is-entering {
    animation: none;
    transition: none;
  }

  .knowledge-results__grid.is-transitioning-out {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
