/* Scoped search styles; load after the site's existing header styles. */
.gps-search, .gps-search * { box-sizing: border-box; }
.gps-search { position: relative; z-index: 400; color: #243746; text-align: left; font-family: Arial, Helvetica, sans-serif; line-height: 1.45; }
.gps-search__control { position: relative; width: 100%; }
.gps-search__field { position: relative; display: flex; align-items: center; border: 1px solid #7e99a9; border-radius: 4px; background: #fff; }
.gps-search__field:focus-within { outline: 3px solid #98cbea; outline-offset: 2px; border-color: #005b8e; }
.gps-search__icon { flex: 0 0 18px; width: 18px; height: 18px; margin-left: 12px; color: #005b8e; }
.gps-search input[data-search-input] { display: block; min-width: 0; width: 100%; height: 42px; margin: 0; padding: 8px 37px 8px 10px; border: 0; border-radius: 4px; box-shadow: none; outline: none; background: transparent; color: #243746; font-family: inherit; font-size: 15px; line-height: 24px; }
.gps-search input::placeholder { color: #657a88; opacity: 1; }
.gps-search .gps-search__clear { position: absolute; right: 5px; top: 5px; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 3px; background: transparent; color: #486171; font: 24px/32px Arial, sans-serif; cursor: pointer; }
.gps-search button:focus-visible { outline: 3px solid #005b8e; outline-offset: 2px; }
.gps-search__panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1; width: min(540px, calc(100vw - 32px)); overflow: hidden; border: 1px solid #9db1bd; border-radius: 4px; background: white; box-shadow: 0 8px 24px #183c5529; }
.gps-search .gps-search__results { display: block; max-height: min(350px, 55vh); margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.gps-search .gps-search__option { display: block; margin: 0; padding: 11px 14px; border-bottom: 1px solid #e3ebef; background: #fff; list-style: none; cursor: pointer; line-height: 1.4; }
.gps-search .gps-search__option:last-child { border-bottom: 0; }
.gps-search .gps-search__option:hover, .gps-search .gps-search__option[aria-selected="true"] { background: #e7f2f8; box-shadow: inset 4px 0 0 #005b8e; }
.gps-search__result-title { display: block; color: #005b8e; font-size: 14px; font-weight: bold; }
.gps-search__category { display: inline-block; margin: 4px 0 3px; color: #507b16; font-size: 10px; font-weight: bold; letter-spacing: .035em; text-transform: uppercase; }
.gps-search__description { display: block; color: #4e6371; font-size: 12px; }
.gps-search__summary { margin: 0; padding: 10px 14px; border-top: 1px solid #d4dfe5; background: #f5f8fa; color: #455c6b; font-size: 12px; }
.gps-search__heading { padding: 10px 14px; border-bottom: 1px solid #d4dfe5; background: #f5f8fa; color: #243746; font-size: 12px; font-weight: bold; }
.gps-search .gps-search__retry { margin: 0 14px 12px; padding: 7px 12px; border: 1px solid #005b8e; border-radius: 3px; background: #fff; color: #005b8e; font-size: 13px; cursor: pointer; }
.gps-search .gps-search__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.gps-search [hidden] { display: none !important; }

/* The original #header hides overflow. Suggestions must be able to cover the nav/main. */
#header.gps-header { overflow: visible; }
#header .gps-header__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 18px; padding-right: 16px; }
/* Policy custom.oecd.css sets #header hgroup to width:100%; keep the branding intrinsic on desktop. */
#header .gps-header__top > hgroup { float: none; flex: 0 1 auto; width: auto; min-width: 0; }
#header .gps-search--header { flex: 0 1 330px; width: 330px; min-width: 250px; margin: 0 0 17px auto; padding: 0; border: 0; background: transparent; }
/* Temporary badge: removing its img from _Layout leaves no empty space. */
.gps-search--header .gps-search__control { display: flex; align-items: center; gap: 8px; }
.gps-search--header .gps-search__field { flex: 1; min-width: 0; }
#header .gps-search__new-badge { display: block; flex: 0 0 42px; width: 42px; height: 19px; max-width: none; margin: 0; padding: 0; border: 0; }
@media (max-width: 1000px) {
  #header .gps-header__top { column-gap: 12px; }
  #header .gps-search--header { flex-basis: 290px; width: 290px; }
}
@media (max-width: 760px) {
  #header .gps-header__top { padding-right: 0; }
  #header .gps-header__top > hgroup { display: flex; align-items: center; width: calc(100% - 20px); margin: 0 10px 14px; }
  #header .gps-header__top hgroup h1 { flex: 0 0 118px; float: none; margin: 0 12px 0 0; padding: 0; }
  #header .gps-header__top hgroup h1 img { width: 118px; height: auto; }
  #header .gps-header__top hgroup h2 { flex: 1; min-width: 0; float: none; margin: 0; font-size: 25px; line-height: 1.15; }
  #header .gps-header__top hgroup h2 .lolite { margin-top: 4px; font-size: 10px; line-height: 1.3; }
  #header .gps-search--header { flex: 1 1 calc(100% - 20px); width: calc(100% - 20px); min-width: 0; margin: 0 10px 14px; }
  .gps-search__panel { width: 100%; }
  .gps-search input[data-search-input] { font-size: 16px; }
}
@media print { .gps-search { display: none; } }
