/* Header tools (Tools and Guidance links, language picker, search), as one
   tidy block instead of three browser-default controls stacked on top of
   each other. Loaded by inc/navigation.php. */

.page-header-top-right .float-md-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.page-header-top-right .float-md-right > .widget {
  margin: 0;
}
.page-header-top-right .float-md-right > .widget_nav_menu {
  flex-basis: 100%;
  text-align: right;
}

/* Language picker: same height, border and type as the search field. */
.page-header-top-right .widget_gtranslate select.gt_selector {
  -webkit-appearance: none;
  appearance: none;
  height: 38px;
  margin: 0;
  padding: 0 32px 0 12px;
  border: 1px solid #c5ced3;
  border-radius: 4px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2358707b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: #1f2a30;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
}

/* Search: one field with its button joined on. */
.page-header-top-right .widget_search .search-form .input-group {
  flex-wrap: nowrap;
}
.page-header-top-right .widget_search .search-form .form-control {
  width: 220px;
  height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #c5ced3;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  color: #1f2a30;
  font-size: 14px;
}
.page-header-top-right .widget_search .search-form .form-control:focus,
.page-header-top-right .widget_gtranslate select.gt_selector:focus {
  border-color: #58707b;
  outline: 2px solid rgba(88, 112, 123, .35);
  outline-offset: 0;
  box-shadow: none;
}
.page-header-top-right .widget_search .search-form .btn {
  height: 38px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #58707b;
  border-radius: 0 4px 4px 0;
  background: #58707b;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}
.page-header-top-right .widget_search .search-form .btn:hover,
.page-header-top-right .widget_search .search-form .btn:focus {
  border-color: #d60000;
  background: #d60000;
  color: #fff;
}

/* Below desktop width: language and search always share one row, the search
   field taking whatever room is left. */
@media only screen and (max-width: 991.98px) {
  .page-header-top-right .widget_gtranslate select.gt_selector {
    max-width: 120px;
    padding-right: 28px;
    background-position: right 10px center;
  }
  .page-header-top-right .float-md-right > .widget_search {
    flex: 1 1 140px;
    min-width: 0;
    max-width: 320px;
  }
  .page-header-top-right .widget_search .search-form .form-control {
    width: 100%;
    min-width: 0;
  }
  .page-header-top-right .widget_search .search-form .btn {
    padding: 0 12px;
  }
}

/* Phones: left-aligned under the logo. */
@media only screen and (max-width: 767.98px) {
  .page-header-top-right .float-md-right {
    justify-content: flex-start;
    margin: 4px 0 12px;
  }
  .page-header-top-right .float-md-right > .widget_nav_menu {
    text-align: left;
  }
  .page-header-top-right .float-md-right > .widget_search {
    flex: 1 1 0;
    min-width: 0;
  }
  .page-header-top-right .widget_search .search-form .form-control {
    width: 100%;
    min-width: 0;
  }
}
