body > header {
  align-items: center;
  background-color: #fcfbf8;
  border-bottom: 2px solid #ccc;
  color: #fff;
  display: flex;
  font-size: 1.5rem;
  font-weight: bold;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

body > header .header-container {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, max-content) max-content minmax(360px, 1fr);
  justify-content: center;
  position: relative;
  width: 100%;
}

body > header .logo {
  flex: 0 0 auto;
}

body > header .logo img,
body > header .site-logo {
  max-height: 90px;
  width: auto;
}

body > header .site-nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: center;
  margin: 0;
  white-space: nowrap;
}

body > header .site-nav a {
  border-radius: 4px;
  color: #263238;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 10px;
  text-decoration: none;
}

body > header .site-nav a:hover,
body > header .site-nav a:focus {
  background: rgba(184, 92, 50, 0.12);
  color: #b85c32;
  outline: none;
}

body > header .site-nav a.active {
  background: transparent;
  color: #263238;
  outline: none;
  text-decoration: underline;
  text-decoration-color: #263238;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

body > header .search-wrapper {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

body > header .search-container {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  margin: 0.1rem;
  width: 100%;
}

body > header .search-input-wrap {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  max-width: 590px;
  min-width: 220px;
  position: relative;
}

body > header .search-suggestions {
  background: #fff;
  border: 1px solid #d5d9de;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 5px 12px rgba(31, 41, 51, 0.14);
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  position: absolute;
  text-align: left !important;
  top: calc(100% - 1px);
  width: 100%;
  z-index: 20;
}

body > header .search-suggestions[hidden] {
  display: none;
}

body > header .search-suggestion {
  align-items: center;
  background: #fff;
  border: 0;
  color: #344054;
  cursor: pointer;
  display: flex;
  font: 12px/1.2 Arial, sans-serif;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 10px;
  text-align: left !important;
  width: 100%;
}

body > header .search-suggestion-count {
  color: #667085;
  flex: 0 0 auto;
  font-size: 0.92em;
}

body > header .search-suggestion:hover,
body > header .search-suggestion:focus {
  background: #eef4f8;
  outline: none;
}

body > header .search-container input,
body > header .search-container input[type="text"] {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-size: 12px;
  height: 30px;
  line-height: 1.2;
  margin: 0;
  padding: 5px 28px 5px 10px;
  text-align: left;
  width: 100%;
}

body > header .search-container button {
  -webkit-appearance: none;
  align-items: center;
  appearance: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid transparent;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  height: 30px;
  justify-content: center;
  line-height: 1.2;
  margin: 0;
  padding: 5px 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body > header .search-container .search-suggestion {
  justify-content: flex-start;
  text-align: left !important;
}

body > header .search-container .search-suggestion > span:first-child {
  text-align: left;
}

body > header .search-container .search-suggestion-count {
  margin-left: auto;
  text-align: right;
}

body > header .search-btn {
  background: rgba(52, 152, 219, 0.16);
  border-color: rgba(52, 152, 219, 0.46);
  color: #1f2933;
}

body > header .reset-btn {
  background: rgba(184, 92, 50, 0.16);
  border-color: rgba(184, 92, 50, 0.46);
  color: #5b2b1b;
}

body > header .search-btn:hover,
body > header .search-btn:focus {
  background: rgba(52, 152, 219, 0.28);
  outline: none;
}

body > header .reset-btn:hover,
body > header .reset-btn:focus {
  background: rgba(184, 92, 50, 0.28);
  outline: none;
}

body > header .clear-btn {
  color: #666;
  cursor: pointer;
  display: none;
  font-size: 16px;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
}

@media (max-width: 1180px) {
  body > header .header-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  body > header .logo {
    margin-bottom: 8px;
  }

  body > header .site-nav {
    margin: 0 0 10px;
  }

  body > header .search-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  body > header .search-container {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    max-width: 95%;
    width: 100%;
  }

  body > header .search-input-wrap,
  body > header .search-container input[type="text"] {
    flex: 1;
    min-width: 100px;
  }

  body > header .search-container input[type="text"] {
    padding: 5px 28px 5px 10px;
  }

  body > header .search-container button {
    flex-shrink: 0;
    padding: 5px 9px;
  }
}

@media (max-width: 520px) {
  body > header {
    padding: 0.5rem 0.6rem 0.65rem;
  }

  body > header .header-container {
    gap: 5px;
  }

  body > header .logo {
    margin-bottom: 0;
  }

  body > header .logo img,
  body > header .site-logo {
    max-height: 68px;
  }

  body > header .site-nav {
    flex-wrap: wrap;
    gap: 2px;
    margin: 0 0 4px;
  }

  body > header .site-nav a {
    font-size: 1.06rem;
    padding: 5px 7px;
  }

  body > header .search-container button {
    font-size: 14px;
  }

  body > header .search-suggestion {
    font-size: 14px !important;
  }

  body > header .search-container {
    margin: 0;
    max-width: 100%;
  }
}
