.search {
  padding-top: 60px;
  display: flex;
}

.search .sidebar {
  display: none;
  width: 41%;
  background-color: var(--primary-color);
}

.search .sidebar > div {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  top: 60px;
  bottom: 0;
  padding: 60px 40px 0 60px;
  overflow-y: auto;
}

.search .search-container {
  max-width: 400px;
  margin-top: 25px;
  position: relative;
  display: block;
  color: var(--neutral-color);
}

.search .search-container input {
  width: 100%;
  height: 50px;
  position: relative;
  top: 2px;
  outline: none;
  cursor: text;
  font-size: 22px;
  padding: 6px 40px 6px 45px;
  background: transparent;
}

.search .search-container::before,
.search .search-container::after {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  border-radius: 2px;
  bottom: 0;
}

.search .search-container::before {
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--neutral-color);
}

.search .search-container::after {
  left: 50%;
  right: 50%;
  width: 0;
  transition: all 0.2s ease;
  -moz-transition: 0.2s ease all;
  -webkit-transition: all 0.2s ease;
}

.search .search-container input::-webkit-input-placeholder {
  color: var(--neutral-color-2);
}

.search .search-container input::placeholder {
  color: var(--neutral-color-2);
}

.search .search-container input:valid + .search-erase-button {
  display: flex;
  cursor: pointer;
}

.search .search-container:focus-within {
  color: var(--neutral-color);
}

.search .search-container:focus-within::after {
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--neutral-color);
}

.search .search-container:focus-within .search-icon svg g {
  stroke: var(--neutral-color);
}

.search .search-icon {
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.2rem;
  align-items: center;
}

.search .search-icon svg {
  margin: auto;
  fill: var(--neutral-color);
  width: 25px;
}

.search .search-icon svg g {
  stroke: var(--neutral-color);
}

.search .search-erase-button {
  position: absolute;
  display: none;
  top: 1px;
  bottom: 0;
  right: 0.5rem;
  align-items: center;
}

.search .search-erase-button svg {
  width: 20px;
  height: 20px;
}

.search .search-erase-button use {
  fill: white;
}

.search .search-erase-button circle {
  fill: var(--neutral-color);
}

.search .links {
  display: flex;
  flex-direction: column;
  margin-top: 80px;
}

.search .link {
  font-family: MuseoSans;
  font-weight: 400;
  color: white;
  text-align: end;
  padding: 0 45px 15px 0;
  display: flex;
  margin-left: auto;
  cursor: pointer;
}

.search .links .disabled {
  font-weight: 400;
  color: var(--secondary-color-dark);
  pointer-events: none;
}

.search .links .active {
  font-weight: bold;
}

.search .links .active::after {
  content: "";
  opacity: 1;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #37e8d7;
  position: absolute;
  right: 35px;
  margin-top: 3px;
  transition: opacity 0.1s cubic-bezier(0.95, 0.1, 0.45, 0.94) 0.13s;
}

.search .content {
  padding: 40px;
  min-height: calc(100vh - 150px);
}

.search .search-count {
  margin-top: 20px;
}

.search .content h3 {
  color: var(--primary-color-2);
}

.search .results {
  max-width: 100%;
}

.search-result {
  padding: 30px 0 20px;
  border-bottom: 1px solid black;
}

.search-result > header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 10px;
}

.search-result > header > div {
  font-size: 20px;
  color: var(--primary-color-2);
  font-weight: 900;
  font-family: Mont;
}

.search-result > header > span {
  font-size: 16px;
  color: var(--neutral-color-2);
}

.search-result mark {
  background-color: var(--neutral-color-3);
}

header mark {
  background-color: var(--neutral-color-3);
  color: var(--primary-color-2);
}

.search-result > ul,
.search-result > ol {
  margin-bottom: 10px;
  font-size: 18px;
}

.search .redirect-link span > span {
  cursor: pointer;
  font-size: 19px;
  font-weight: bold;
  font-family: Mont Bold, sans-serif;
  vertical-align: middle;
}

.search .redirect-link span > img {
  width: 10px;
  margin-right: 20px;
  display: inline-block;
  filter: invert(30%) sepia(2%) saturate(0%) hue-rotate(238deg) brightness(92%) contrast(93%);
}

.result-links {
  margin-top: 20px;
}

.result-links .text-link {
  font-size: 19px;
  font-weight: bold;
  font-family: Mont Bold, sans-serif;
  margin-left: 50px;
  vertical-align: middle;
}

#search-results span > div {
  margin-top: 25px;
}

h6 mark {
  color: var(--primary-color-2);
}

@media only screen and (min-width: 768px) {
  .search .sidebar {
    display: block;
  }

  .search .content {
    width: 59%;
  }
}

@media only screen and (min-width: 992px) {
  .search .results {
    max-width: 60%;
  }

  .search .sidebar {
    width: 33%;
  }

  .search .content {
    width: 67%;
  }
}
