/* NISearch home page: logo, large search field, category chips. Mobile first. */

#main_index {
  display: flex;
  flex-direction: column;
}

.home {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16vh var(--nis-space-4) var(--nis-space-8);
}

@media (min-width: 720px) {
  .home {
    padding-top: 22vh;
  }
}

.home_logo {
  display: flex;
  align-items: center;
  gap: var(--nis-space-3);
  margin: 0 0 var(--nis-space-8);
  color: var(--nis-text);
  font-size: var(--nis-font-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.home_logo .logo_mark {
  width: 40px;
  height: 40px;
}

.home_logo .logo_word {
  font-size: var(--nis-font-3xl);
}

.home_search {
  width: 100%;
  max-width: var(--nis-content-width);
  margin: 0;
}

.home_search .search_box {
  height: var(--nis-search-height);
  border-radius: var(--nis-radius-lg);
}

.home_search .search_box input[type="text"] {
  padding-left: var(--nis-space-5);
  font-size: var(--nis-font-xl);
}

.home_search .send_button {
  height: calc(100% - 8px);
  padding: 0 var(--nis-space-6);
  font-size: var(--nis-font-lg);
}

.home_search .clear_button {
  width: 36px;
  height: 36px;
}

.home_search .autocomplete {
  top: calc(100% + 8px);
}

/* Category chips: select a category for the next search, never submit. */
.chips {
  width: 100%;
  margin-top: var(--nis-space-5);
}

.chips_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--nis-space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 var(--nis-space-3);
  border: 1px solid var(--nis-border-strong);
  border-radius: var(--nis-radius-full);
  background: var(--nis-surface-raised);
  color: var(--nis-text);
  font-size: var(--nis-font-md);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--nis-motion-fast) var(--nis-motion-easing),
              border-color var(--nis-motion-fast) var(--nis-motion-easing),
              color var(--nis-motion-fast) var(--nis-motion-easing);
}

.chip .sxng-icon-set-big {
  width: 16px;
  height: 16px;
  color: var(--nis-text-muted);
}

@media (hover: hover) {
  .chip:hover {
    background: var(--nis-surface-hover);
  }
}

.chip.selected {
  border-color: var(--nis-accent);
  background: var(--nis-accent-subtle);
  color: var(--nis-accent-text);
}

.chip.selected .sxng-icon-set-big {
  color: var(--nis-accent-text);
}

@media (max-width: 719px) {
  .home_logo {
    margin-bottom: var(--nis-space-6);
  }

  .home_logo .logo_mark {
    width: 36px;
    height: 36px;
  }

  .home_logo .logo_word {
    font-size: var(--nis-font-3xl);
  }

  .home_search .search_box input[type="text"] {
    font-size: var(--nis-font-lg);
    padding-left: var(--nis-space-4);
  }

  .home_search .send_button {
    padding: 0 var(--nis-space-4);
  }
}
