/* Homepage discovery toolbar */
.home-template .main-wrapper,
.paged-template .main-wrapper {
  padding-top: 28px;
}

.unitlab-discovery-toolbar {
  align-items: center;
  display: grid;
  font-family: "Plus Jakarta Sans", sans-serif;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  margin: 0 0 34px;
  width: 100%;
}

.unitlab-discovery-keywords,
.unitlab-keyword-list {
  align-items: center;
  display: flex;
  min-width: 0;
}

.unitlab-discovery-keywords {
  gap: 22px;
}

.unitlab-discovery-label {
  color: #121435;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 22px;
  white-space: nowrap;
}

.unitlab-keyword-list {
  gap: 8px;
}

.unitlab-keyword-pill,
.unitlab-article-search {
  appearance: none;
  -webkit-appearance: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  text-decoration: none;
}

.unitlab-keyword-pill {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(18, 20, 53, 0.14);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(18, 20, 53, 0.025);
  color: #121435;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  height: 42px;
  justify-content: center;
  line-height: 20px;
  padding: 10px 11px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.unitlab-keyword-pill:hover,
.unitlab-keyword-pill:focus-visible {
  background: #fffaf0;
  border-color: rgba(255, 179, 25, 0.72);
  box-shadow: 0 5px 14px rgba(18, 20, 53, 0.08);
  color: #121435;
  outline: none;
  transform: translateY(-1px);
}

.unitlab-keyword-pill.unitlab-all-topics {
  background: #121435;
  border-color: #121435;
  box-shadow: 0 7px 16px rgba(18, 20, 53, 0.16);
  color: #fff;
  cursor: pointer;
  gap: 9px;
  padding-left: 14px;
  padding-right: 12px;
}

.unitlab-keyword-pill.unitlab-all-topics:hover,
.unitlab-keyword-pill.unitlab-all-topics:focus-visible {
  background: #24274f;
  border-color: #24274f;
  color: #fff;
}

.unitlab-all-topics svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 17px;
}

.unitlab-article-search {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(18, 20, 53, 0.16);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(18, 20, 53, 0.025);
  color: rgba(18, 20, 53, 0.5);
  cursor: text;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 13px;
  height: 52px;
  justify-content: flex-start;
  line-height: 22px;
  padding: 0 18px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
  width: 100%;
}

.unitlab-article-search:hover,
.unitlab-article-search:focus-visible {
  border-color: rgba(18, 20, 53, 0.42);
  box-shadow: 0 0 0 3px rgba(18, 20, 53, 0.055);
  color: rgba(18, 20, 53, 0.68);
  outline: none;
}

.unitlab-article-search svg {
  fill: none;
  flex: 0 0 auto;
  height: 22px;
  stroke: #3e4267;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

@media only screen and (max-width: 1530px) {
  .unitlab-discovery-toolbar {
    align-items: stretch;
    gap: 20px;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .unitlab-article-search {
    max-width: none;
  }
}

@media only screen and (max-width: 991px) {
  .home-template .main-wrapper,
  .paged-template .main-wrapper {
    padding-top: 24px;
  }

  .unitlab-discovery-keywords {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .unitlab-keyword-list {
    max-width: 100%;
    overflow-x: auto;
    padding: 1px 1px 6px;
    scrollbar-width: none;
  }

  .unitlab-keyword-list::-webkit-scrollbar {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  .unitlab-discovery-toolbar {
    gap: 14px;
    margin-bottom: 26px;
  }

  .unitlab-discovery-label {
    font-size: 14px;
  }

  .unitlab-keyword-list {
    gap: 8px;
    margin-left: -1px;
    margin-right: -1px;
    width: calc(100% + 2px);
  }

  .unitlab-keyword-pill {
    font-size: 12px;
    height: 38px;
    padding: 8px 14px;
  }

  .unitlab-keyword-pill.unitlab-all-topics {
    padding-left: 16px;
    padding-right: 13px;
  }

  .unitlab-article-search {
    font-size: 13px;
    height: 48px;
    padding: 0 15px;
  }

  .unitlab-article-search svg {
    height: 20px;
    width: 20px;
  }
}
