/* old .button.button--toggle-search .icon */
/* for menu svg element */
/*
.search-menu-item-link svg.icon {
  width: 1.5rem;
  height: 1.5rem;
  padding-top: 10px;
}
*/

/*
span.search-menu-item-link {
  color: #471E82;
  font-size: 1.5em;
  font-weight: 500;
}
*/

/*
.search-menu-item-link {
  display:inline-block;
}
*/

@media screen and (min-width: 800px) {
  .search-menu-item-title {
    padding-top: 10px;
    color: #471E82;
    font-size: 1.5em;
    font-weight: 500;
    display: inline-block;
    padding-left: 1em;
  }
}


@media screen and (max-width: 799px) {
  .search-menu-item-title {
    padding-top: 10px;
    color: #471E82;
    font-size: 1.2em;
    font-weight: 500;
    display: inline-block;
    padding-left: 1em;
  }
}

@media screen and (max-width: 799px) {
  .search-menu-item-title {
    padding-left: 0;
  }
}

@media screen and (max-width: 979px) {
  .search-menu-item-title {
    padding-left: 1em;
  }
}



.search-menu-item-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.search-menu-item-icon {
  display: inline-block;
}

/*
.search-menu-item-icon {
  display: flex;
  align-items: center;
}
*/

@media screen and (min-width: 980px) {
  .search-menu-item-title span {
    padding-left: 0.4em;
  }
}

/* Search icon in main menu */
.search-menu-icon {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.3em;
}





.search-block-form {
  /*width: 66em; */
  /*margin-top: 18px;*/
  /*display:inline-block; */
  /*padding-bottom:1em;*/
}

.search-block-form #search-block-form {
  /*
  border: 1px solid #471E82;
  height: 38px;
  position: relative;
  width: 100%;
  background: #fff !important;
  */
  /*
  -webkit-border-radius: 200px 200px 200px 200px;
  -moz-border-radius: 200px 200px 200px 200px;
  border-radius: 200px 200px 200px 200px;
  */
  overflow: hidden;
}

.search-block-form #search-block-form>.js-form-type-search {
  height: 36px;
  margin: 0;
}

.search-block-form input[type='search'] {
  border: medium none;
  height: 100%;
  width: 100%;
  /*padding: 1px 20px 0 40px;*/
  color: #818B8D;
  font-size: 12px;
  /*
  -webkit-border-radius: 200px 200px 200px 200px;
  -moz-border-radius: 200px 200px 200px 200px;
  border-radius: 200px 200px 200px 200px;
  */
}

.search-block-form input[type='search']:active,
.search-block-form input[type='search']:focus {
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  outline: none;
}

.search-block-form input[type='submit'] {
  border: medium none;
  opacity: 0;
}

.search-block-form i.search-action {
  padding: 0;
  position: absolute;
  left: 11px;
  top: 10px;
  cursor: pointer;
  color: #471E82;
}

.search-block-form .search-toggle {
  position: absolute;
  cursor: pointer;
  color: #471E82;
  width: 38px;
  height: 38px;
  border: solid 1px #E4E4E4;
  border-radius: 100%;
  top: 0px;
  text-align: center;
  padding-top: 10px;
  display: none;
}

.region-primary_menu div.block {
  float: right;
  margin-left: 10px;
}

@media (max-width: 1190px) {
  .search-block-form {
    /* width: 38px; */
  }

  .search-block-form input[type='submit'] {
    display: none;
  }

  .search-block-form .search-toggle {
    display: block;
  }
}

#search-form-container form {
  /*padding-top:1em;*/
  /* https://stackoverflow.com/a/67298059/227926 */
  display: flex;
  align-items: center;
  justify-content: center;
  /*padding-bottom: 1em;*/

}

#search-form-container .search-menu-item-icon {
  padding-left: 0.5em;

}

/*
.button.js-form-submit.form-submit {


<input data-drupal-selector="edit-submit" type="submit" id="edit-submit" value="Search" class="button js-form-submit form-submit">

}
*/

/*
admin/structure/block/manage/searchform_2
*/

@media screen and (max-width: 579px) {
  #search-form-container .search-input-wrapper {
    width: 85%;
  }
}

@media screen and (min-width: 580px) {
  #search-form-container .search-input-wrapper {
    width: 90%;
  }
}

@media screen and (min-width: 980px) {
  #search-form-container .search-input-wrapper {
    width: 62em;
  }
}

#search-form-container input[type="text"],
#search-page-form-container input[type="text"] {
  height: 2em;
  border: 2px solid var(--solent-blue);
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  font-size: 1rem;
}

#search-form-container input[type="text"]:focus,
#search-page-form-container input[type="text"]:focus {
  border: 2px solid var(--solent-blue);
}

#search-form-container input[type="text"]::placeholder,
#search-page-form-container input[type="text"]::placeholder {
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
}

/* Clear button inside search input wrapper */
.search-input-wrapper {
  position: relative;
  display: inline-block;
}

.search-input-wrapper input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding-right: 2em;
}

.search-clear-btn {
  position: absolute;
  right: 0.4em;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-mid);
  padding: 0 0.2em;
  line-height: 1;
  display: none;
}

.search-clear-btn:hover {
  color: var(--text);
}

.search-input-wrapper input:not(:placeholder-shown) ~ .search-clear-btn {
  display: block;
}

button.search-menu-item-icon {
  border: none;
  background-color: transparent;
}

/* SVG icon stroke: solent blue on desktop */
@media screen and (min-width: 800px) {
  .search-menu-item-icon svg {
    stroke: var(--solent-blue);
  }
}

/* SVG icon stroke: white on mobile */
@media screen and (max-width: 799px) {
  .search-menu-item-icon svg {
    stroke: #fff;
  }
}

/* Desktop: position search form in submenu area like regular submenus */
@media screen and (min-width: 800px) {
  #search-form-container {
    position: absolute;
    width: 100%;
    right: 0px;
    top: -50px;
    z-index: -1;
    transition-property: opacity, top;
    transition-timing-function: ease;
    transition-duration: .5s;
    padding-top: 16px; /* submenu_padding_top in JS */
    padding-bottom: 16px;
  }

  #search-form-container.visible-2l {
    top: 48px !important;
    /* top: 96px !important; */
  }

  #search-form-container.hidden-2l {
    top: -50px !important;
    z-index: -1;
  }

  /* Full-width background like regular submenus */
  #search-form-container.visible-2l::before {
    content: '';
    position: absolute;
    width: 100vw;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: -1;
    background-color: var(--warm-grey);
  }

  /* Background for search button and its parent li when search is open */
  #search-in-menu.navigation__link--selected {
    background-color: var(--warm-grey);
  }

  .main-menu-item-container > li:has(#search-in-menu.navigation__link--selected) {
    background-color: var(--warm-grey);
  }

  /* Active search button text: solent blue, bold */
  #search-in-menu.navigation__link--selected > span {
    color: var(--solent-blue);
    font-weight: 700;
  }

  /* Active search chevron: solent blue */
  #search-in-menu.navigation__link--selected .navigation__link__down-icon {
    fill: var(--solent-blue);
    stroke: var(--solent-blue);
  }

  /* Active search icon: solent blue */
  #search-in-menu.navigation__link--selected .search-menu-icon {
    stroke: var(--solent-blue);
  }
}

/* Mobile: animate search form reveal/hide */
@media screen and (max-width: 800px) {
  #search-form-container {
    transition: max-height 0.5s ease, opacity 0.5s ease;
  }

  #search-form-container.hidden-2l {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }

  /* Left-align search form with chevron on button above */
  #search-form-container form {
    justify-content: flex-start;
    padding-left: 3em;
  }

  #search-form-container .search-input-wrapper {
    width: 70%;
  }
}

#search-in-menu {
  cursor: pointer;
}


#search-form-container h2,
body.search-results-page #block-slnt-content h2 {
  padding-left: 1.2em;
  color: var(--solent-blue);
}

.search-results h3 a {
  color: #029CDC;
  text-decoration: none;
}

@media screen and (max-width: 979px) {
  .search-menu-item-title {
    font-size: 1.7em;
    padding-left: 2em !important;
    font-weight: 400;
  }
}

/* ===========================
   Search results page layout
   =========================== */

/* Centre the results within a max-width container */
body.search-results-page .layout-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2em;
  padding-right: 2em;
}

/* "Search Results" page title */
body.search-results-page #block-slnt-content h2 {
  padding-left: 0;
  margin-bottom: 0.5em;
}

/* Results list: remove default ol indentation, balanced spacing */
.search-results-wrapper .search-results {
  list-style-position: inside;
  padding-left: 0;
  margin: 0;
}

/* Individual result items */
.search-results-wrapper .search-results li {
  padding: 1em 0;
  border-bottom: 1px solid #e0e0e0;
}

/* Result title link */
.search-results-wrapper .search-results h3 {
  margin: 0.2em 0 0.3em;
  display: inline;
}

/* Result snippet */
.search-results-wrapper .search-results p {
  margin: 0.3em 0 0;
  color: var(--text-mid);
}

/* Result meta info (type, date, etc.) */
.search-results-wrapper .search-results li > p:last-child {
  color: #888;
}