body.new-site[data-page="home"] .new-header.new-home-header {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 430px;
  height: 52px;
  min-height: 52px;
  margin: 0 auto;
  padding: 0 10px;
  overflow: visible;
}

body.new-site[data-page="home"] .new-home-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

body.new-site[data-page="home"] .new-home-header-action {
  display: flex;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 2px 0;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #253657;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.new-site[data-page="home"] .new-home-header-action > img,
body.new-site[data-page="home"] .new-home-header-action > svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  object-fit: contain;
}

body.new-site[data-page="home"] .new-home-header-action > span {
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  white-space: nowrap;
}

/* Keep the title prominent with the existing font family and weight. */
body.new-site[data-page="home"] .new-home-header-title {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #17233d;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

body.new-site[data-page="home"] .new-home-header-search {
  position: static;
  width: 44px;
  flex: 0 0 44px;
}

body.new-site[data-page="home"] .new-home-header-search > summary {
  list-style: none;
}

body.new-site[data-page="home"] .new-home-header-search > summary::-webkit-details-marker {
  display: none;
}

body.new-site[data-page="home"] .new-home-search-form {
  position: absolute;
  top: calc(100% + 8px);
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 35, 61, .14);
}

body.new-site[data-page="home"] .new-home-header-search:not([open]) .new-home-search-form {
  display: none;
}

body.new-site[data-page="home"] .new-home-search-form input {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #dce0e8;
  border-radius: 8px;
  background: #f7f8fb;
  color: #17233d;
  font-size: 16px;
}

body.new-site[data-page="home"] .new-home-search-form button {
  height: 40px;
  padding: 0 14px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: #c72539;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

body.new-site[data-page="home"] .new-home-header-action:focus-visible,
body.new-site[data-page="home"] .new-home-header-title:focus-visible,
body.new-site[data-page="home"] .new-home-search-form input:focus-visible,
body.new-site[data-page="home"] .new-home-search-form button:focus-visible {
  outline: 2px solid #253657;
  outline-offset: 2px;
}

@media (max-width: 360px) {
  body.new-site[data-page="home"] .new-header.new-home-header {
    grid-template-columns: 80px minmax(0, 1fr) 80px;
    gap: 4px;
    padding: 0 8px;
  }

  body.new-site[data-page="home"] .new-home-header-actions {
    width: 80px;
  }

  body.new-site[data-page="home"] .new-home-header-action,
  body.new-site[data-page="home"] .new-home-header-search {
    width: 40px;
    flex-basis: 40px;
  }
}
