/* v3.8.70 — unified essential search treatment.
   Visual-only: brings the high-intent search/discovery boxes and Ask this result
   into the same restrained champagne-gold + forest-green language used on .in.
   Existing dimensions, layout, search behaviour, suggestions and endpoints remain unchanged. */
: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);
}

/* High-intent public search inputs. Existing sizes/radii are intentionally retained. */
.results-search input[type="search"],
.ipo-controls input[type="search"],
.stock-search__field input[type="search"],
.trade-pulse-search input[type="search"],
.educate-searchbar input[type="search"],
.glossary-search input[type="search"],
.site-search__input 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,
.ipo-controls input[type="search"]::placeholder,
.stock-search__field input[type="search"]::placeholder,
.trade-pulse-search input[type="search"]::placeholder,
.educate-searchbar input[type="search"]::placeholder,
.glossary-search input[type="search"]::placeholder,
.site-search__input input[type="search"]::placeholder{
  color:var(--niv-search-placeholder)!important;
  opacity:1!important;
}
.results-search input[type="search"]:focus,
.ipo-controls input[type="search"]:focus,
.stock-search__field input[type="search"]:focus,
.trade-pulse-search input[type="search"]:focus,
.educate-searchbar input[type="search"]:focus,
.glossary-search input[type="search"]:focus,
.site-search__input 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 places its visual frame on the form 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;
  background:transparent!important;
}
.educate-hero-search input::placeholder{
  color:var(--niv-search-placeholder)!important;
  opacity:1!important;
}
.educate-hero-search label>i{color:#9b7f31!important;}

/* Search action button mirrors Ask this result. */
.results-search-submit{
  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{
  background:linear-gradient(135deg,#0d4933 0%,#0f392d 72%,#0a3026 100%)!important;
}

/* Suggestion surfaces stay quiet but clearly belong to the same search system. */
.stock-suggestions,
.trade-pulse-suggestions{
  border-color:#decf9f!important;
  background:#fffdf7!important;
}
.stock-suggestion:hover,
.stock-suggestion.is-active,
.stock-suggestion:focus-visible,
.trade-pulse-suggestion:hover,
.trade-pulse-suggestion.is-active,
.trade-pulse-suggestion[aria-selected="true"]{
  background:#fff8df!important;
}

/* Ask this result — same subtle premium treatment as .in. */
body.nivata-result-single .result-brief__ask{
  border-color:#d7b85f!important;
  background:
    radial-gradient(circle at 92% 8%,rgba(216,181,83,.22) 0,rgba(216,181,83,.08) 18%,rgba(216,181,83,0) 36%),
    linear-gradient(145deg,#fffdf8 0%,#fbf4df 46%,#fffaf0 100%)!important;
  box-shadow:0 16px 38px rgba(96,73,18,.10),0 4px 12px rgba(18,63,50,.045),inset 0 1px 0 rgba(255,255,255,.88)!important;
}
body.nivata-result-single .result-brief__ask-copy .overline{color:#7d6a32!important;}
body.nivata-result-single .result-brief__ask-copy h2{color:#0f4a37!important;}
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;
  box-shadow:var(--niv-search-shadow)!important;
}
body.nivata-result-single .result-brief__ask-field input{color:var(--niv-search-green)!important;}
body.nivata-result-single .result-brief__ask-field input::placeholder{color:var(--niv-search-placeholder)!important;}
body.nivata-result-single .result-brief__ask-field button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  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,.16),inset 0 1px 0 rgba(255,255,255,.10)!important;
}
body.nivata-result-single .result-brief__ask-field button::after{
  content:"→";
  color:#e0bd5d;
  font-size:1.18em;
  line-height:1;
  transform:translateY(-.5px);
}
body.nivata-result-single .result-brief__ask-field button:hover{
  background:linear-gradient(135deg,#0d4933 0%,#0f392d 72%,#0a3026 100%)!important;
}
body.nivata-result-single .result-brief__ask-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 var(--niv-search-ring),0 10px 26px rgba(18,63,50,.075)!important;
}
body.nivata-result-single .result-brief__ask-suggestions button{
  border-color:#dac58b!important;
  background:rgba(255,253,246,.88)!important;
  color:#365749!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88)!important;
}
body.nivata-result-single .result-brief__ask-suggestions button:hover{
  border-color:#c8a44d!important;
  background:#fff8df!important;
  color:#173f31!important;
}
body.nivata-result-single .result-brief__ask-status{color:#53665c!important;}
body.nivata-result-single .result-brief__ask-matches{border-top-color:#decf9f!important;}
body.nivata-result-single .result-brief__ask-match{
  border-color:#ded0a7!important;
  background:rgba(255,254,249,.92)!important;
}
body.nivata-result-single .result-brief__ask-match:hover{
  border-color:#cbae5e!important;
  background:#fff9e8!important;
}
@media(max-width:620px){
  body.nivata-result-single .result-brief__ask{
    box-shadow:0 14px 34px rgba(96,73,18,.105),0 4px 10px rgba(18,63,50,.04),inset 0 1px 0 rgba(255,255,255,.88)!important;
  }
}
