/* Use one home link for the package mark and its indented company wordmark. */
html[data-theme="light"] {
  --ltm-brand-ink: #000;
}

html[data-theme="dark"] {
  --ltm-brand-ink: #fff;
}

html .ltm-brand__title,
html .bd-sidebar .bd-sidenav__home-link a,
html #tabgeneval > h1 {
  color: var(--ltm-brand-ink);
}

.ltm-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0 0.85rem;
  color: var(--pst-color-text-base);
  text-decoration: none;
}

.ltm-brand:hover {
  color: var(--pst-color-text-base);
  text-decoration: none;
}

.ltm-brand__table {
  display: block;
  width: 54px;
  height: 48px;
  flex: 0 0 auto;
}

.ltm-brand__wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ltm-brand__company img {
  width: 56px;
  height: 18px;
}

html[data-theme="dark"] .ltm-brand__company img.only-dark {
  filter: brightness(0) invert(1);
}

.ltm-brand__title {
  font-size: 1.7rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

/* Keep search and the company destination together at the right of the header. */
.ltm-site-header {
  justify-content: flex-end;
  min-height: 3.5rem;
  padding-inline: 1.25rem;
}

.ltm-header-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.ltm-header-search {
  display: flex;
  align-items: center;
  width: clamp(10rem, 22vw, 15rem);
  margin: 0;
  border: 1px solid var(--pst-color-border);
  border-radius: 0.4rem;
  background: var(--pst-color-background);
}

.ltm-header-search:focus-within {
  outline: 2px solid var(--pst-color-primary);
  outline-offset: 2px;
}

.ltm-header-search input {
  min-width: 0;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: inherit;
  outline: none;
  background: transparent;
  color: var(--pst-color-text-base);
  font: inherit;
  font-size: 0.875rem;
}

.ltm-header-search button {
  padding: 0.4rem 0.65rem;
  border: 0;
  background: transparent;
  color: var(--pst-color-text-base);
}

.ltm-header-company {
  color: var(--pst-color-text-muted);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ltm-header-company:hover {
  color: var(--pst-color-text-base);
  text-decoration: underline;
}

html[data-theme="light"] .ltm-header-company {
  color: #60646c;
}

@media (max-width: 575px) {
  .ltm-header-actions {
    gap: 1.25rem;
  }

  .ltm-header-search {
    width: clamp(7rem, 33vw, 12rem);
  }

  .ltm-header-search input {
    padding-inline: 0.4rem;
  }

  .ltm-header-search button {
    padding-inline: 0.4rem;
  }
}
