/* v3.34.89.61 — unified essential search treatment.
   Visual-only: gives the site's high-intent discovery/search inputs the same
   restrained champagne-gold + forest-green language as Ask this result. */
:root{
  --niv-search-gold:#d8bc72;
  --niv-search-gold-strong:#caa54d;
  --niv-search-gold-soft:#fbf3dc;
  --niv-search-cream:#fffef9;
  --niv-search-green:#153f31;
  --niv-search-green-strong:#0f4a37;
  --niv-search-placeholder:#7d8981;
  --niv-search-ring:rgba(202,165,77,.14);
  --niv-search-shadow:0 8px 22px rgba(109,82,18,.075),inset 0 1px 0 rgba(255,255,255,.92);
}

/* Core public search inputs. Keep existing dimensions/radii/layout intact. */
.results-search input[type="search"],
.data-toolbar input[type="search"],
.what-changed-search input[type="search"],
.wb-search-box input[type="search"],
.trade-pulse-search input[type="search"],
.educate-searchbar input[type="search"]{
  border-color:var(--niv-search-gold)!important;
  background:linear-gradient(145deg,var(--niv-search-cream) 0%,var(--niv-search-gold-soft) 100%)!important;
  color:var(--niv-search-green)!important;
  box-shadow:var(--niv-search-shadow)!important;
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease!important;
}
.results-search input[type="search"]::placeholder,
.data-toolbar input[type="search"]::placeholder,
.what-changed-search input[type="search"]::placeholder,
.wb-search-box input[type="search"]::placeholder,
.trade-pulse-search input[type="search"]::placeholder,
.educate-searchbar input[type="search"]::placeholder{
  color:var(--niv-search-placeholder)!important;
  opacity:1!important;
}
.results-search input[type="search"]:focus,
.data-toolbar input[type="search"]:focus,
.what-changed-search input[type="search"]:focus,
.wb-search-box input[type="search"]:focus,
.trade-pulse-search input[type="search"]:focus,
.educate-searchbar input[type="search"]:focus{
  outline:0!important;
  border-color:var(--niv-search-gold-strong)!important;
  background:linear-gradient(145deg,#fffef9 0%,#fff6dd 100%)!important;
  box-shadow:0 0 0 3px var(--niv-search-ring),0 10px 26px rgba(18,63,50,.075)!important;
}

/* Education hero search places the border/background on the wrapper. */
.educate-hero-search{
  border-color:var(--niv-search-gold)!important;
  background:linear-gradient(145deg,var(--niv-search-cream) 0%,var(--niv-search-gold-soft) 100%)!important;
  box-shadow:var(--niv-search-shadow)!important;
}
.educate-hero-search:focus-within{
  border-color:var(--niv-search-gold-strong)!important;
  box-shadow:0 0 0 3px var(--niv-search-ring),0 10px 26px rgba(18,63,50,.075)!important;
}
.educate-hero-search input{
  color:var(--niv-search-green)!important;
}
.educate-hero-search input::placeholder{
  color:var(--niv-search-placeholder)!important;
  opacity:1!important;
}
.educate-hero-search label>i{
  color:#9b7f31!important;
}

/* Site-wide command search: keep the dark overlay, but make the high-intent
   input itself use the same premium search colour system. */
.nivata-site-search__field{
  border-color:var(--niv-search-gold)!important;
  background:linear-gradient(145deg,var(--niv-search-cream) 0%,var(--niv-search-gold-soft) 100%)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.13),inset 0 1px 0 rgba(255,255,255,.94)!important;
}
.nivata-site-search__field:focus-within{
  border-color:var(--niv-search-gold-strong)!important;
  background:linear-gradient(145deg,#fffef9 0%,#fff6dd 100%)!important;
  box-shadow:0 0 0 3px rgba(224,189,93,.16),0 12px 30px rgba(0,0,0,.16)!important;
}
.nivata-site-search__field>svg{
  stroke:#8e7229!important;
}
.nivata-site-search__field input{
  color:var(--niv-search-green)!important;
  background:transparent!important;
}
.nivata-site-search__field input::placeholder{
  color:var(--niv-search-placeholder)!important;
  opacity:1!important;
}
.nivata-site-search__field kbd{
  border-color:#dac58b!important;
  background:#fff9e8!important;
  color:#7d6a32!important;
}

/* Search action buttons use the same green/gold hierarchy as Ask this result. */
.results-search-submit,
.what-changed-search>button{
  border:1px solid rgba(205,164,55,.72)!important;
  background:linear-gradient(135deg,#0f5138 0%,#123f32 68%,#0d352a 100%)!important;
  color:#fff!important;
  box-shadow:0 7px 16px rgba(15,73,51,.14),inset 0 1px 0 rgba(255,255,255,.10)!important;
}
.results-search-submit:hover,
.what-changed-search>button:hover{
  background:linear-gradient(135deg,#0d4933 0%,#0f392d 72%,#0a3026 100%)!important;
}

/* Matching suggestion trays stay quiet, but visually belong to the search. */
.what-changed-suggestions,
.wb-suggestions,
.trade-pulse-suggestions{
  border-color:#decf9f!important;
  background:#fffdf7!important;
}
.what-changed-suggestion:hover,
.what-changed-suggestion.is-active,
.wb-suggestion:hover,
.wb-suggestion.is-active,
.wb-suggestion:focus-visible,
.trade-pulse-suggestion:hover,
.trade-pulse-suggestion.is-active,
.trade-pulse-suggestion[aria-selected="true"]{
  background:#fff8df!important;
}

/* Preserve the dedicated Ask this result styling, while locking it to the
   same palette tokens used everywhere else. */
body.nivata-result-single .result-brief__ask-field{
  border-color:var(--niv-search-gold)!important;
  background:linear-gradient(145deg,var(--niv-search-cream) 0%,var(--niv-search-gold-soft) 100%)!important;
}
body.nivata-result-single .result-brief__ask-field:focus-within{
  border-color:var(--niv-search-gold-strong)!important;
  box-shadow:0 0 0 3px var(--niv-search-ring),0 10px 26px rgba(18,63,50,.075)!important;
}
