#top > .container { position:relative }
#yh-search .yh-search-toggle { min-width:44px; text-align:center }
#yh-search-panel { z-index:1010; color:#24292c }
#yh-search-panel[hidden], .yh-search-hits[hidden] { display:none }
#yh-search-panel form { display:flex; align-items:stretch; height:44px; margin:0; border:1px solid #15513f; background:white; border-radius:12px; overflow:hidden }
#yh-search-panel input[type=search] { flex:1; min-width:0; padding:0 16px; border:0; outline:0; font:inherit; background:white; color:#24292c }
#yh-search-panel form:focus-within { box-shadow:0 0 0 3px rgba(21,81,63,.12) }
#yh-search-panel button { width:46px; border:0; color:white; background:#15513f }
#yh-search-panel .yh-search-close { background:#fffdf9; color:#323b37 }
#yh-search-panel button:focus-visible, .yh-search-hits a:focus-visible { outline:2px solid #af7656; outline-offset:-3px }
.yh-search-hits { margin-top:5px; background:white; border:1px solid #e9e4dc; border-radius:12px; overflow:auto; max-height:min(50vh,360px); box-shadow:0 12px 25px rgba(36,41,44,.12) }
.yh-search-hits a { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:10px 14px; color:#24292c }
.yh-search-hits a:hover, .yh-search-hits a:focus { background:#f6f3ee }
.yh-search-hits small { color:#56635c }
@media (min-width:768px) {
  #yh-search-panel { position:absolute; opacity:0; visibility:hidden; transform-origin:right center; clip-path:inset(-5px 0 -500px 100%); transition:clip-path 260ms ease, opacity 180ms ease, visibility 0s linear 260ms }
  #yh-search-panel.is-open { opacity:1; visibility:visible; clip-path:inset(-5px -5px -500px -5px); transition-delay:0s }
  #top .navbar-top-collapse { transition:opacity 180ms ease }
  #top .navbar-top-collapse.yh-search-covered { opacity:0; pointer-events:none }
}
@media (max-width:767px) {
  #yh-search .yh-search-toggle { text-align:left }
  #yh-search .yh-search-toggle::after { content:attr(aria-label); margin-left:6px }
  #yh-search-panel { padding:4px 0 8px }
}
@media (prefers-reduced-motion:reduce) {
  #top #yh-search-panel, #top .navbar-top-collapse { transition:none }
}

/* Warm glass, with an emerald reflection following the insertion point. */
.yh-search-status:not(:empty) {
  display:flex; align-items:center; gap:9px; width:fit-content; max-width:100%;
  margin:8px 0 0; padding:9px 14px; border:1px solid rgba(255,255,255,.92);
  border-radius:18px; color:#335346; background:#f6f7ef;
  box-shadow:0 3px 12px #43352118; font-size:13px; line-height:1.35;
}
.yh-search-status.is-loading::before {
  content:""; flex:0 0 13px; height:13px; border:2px solid #c1d9cc;
  border-top-color:#266c4f; border-radius:50%; animation:yh-search-wait .8s linear infinite;
}
@keyframes yh-search-wait { to { transform:rotate(360deg) } }
@media (prefers-reduced-motion:reduce) { .yh-search-status.is-loading::before { animation:none } }
#yh-search-panel form {
  position:relative; isolation:isolate; align-items:center; gap:3px; padding:3px 4px;
  border-radius:24px; border:1px solid rgba(255,255,255,.92);
  background:linear-gradient(112deg,rgba(255,253,246,.92),rgba(240,247,237,.85) 64%,rgba(255,246,227,.9));
  box-shadow:inset 0 -1px 2px #cfcbb780,0 1px 5px #40392822;
  -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px)
}
#yh-search-panel form:focus-within { box-shadow:inset 0 1px 2px white,0 0 0 1px #45735e60,0 2px 8px #58523d24 }
#yh-search-panel form::before {
  content:""; position:absolute; pointer-events:none; z-index:-1; top:0; bottom:0;
  left:var(--caret-x,20px); width:110px; transform:translateX(-50%); opacity:0;
  background:radial-gradient(ellipse at center,rgba(53,150,117,.45),rgba(101,179,141,.22) 35%,transparent 72%);
}
#yh-search-panel form:has(input:focus)::before { opacity:1 }
#yh-search-panel input[type=search] { height:100%; background:transparent; color:#21372f; caret-color:#137552 }
#yh-search-panel button { flex:0 0 36px; width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#346e59,#164c3c); box-shadow:inset 0 1px 1px #ffffff42 }
#yh-search-panel .yh-search-close { background:transparent; color:#4e6258; box-shadow:none }
#yh-search-panel .yh-search-close:hover { background:#dedfcf }
.yh-search-hits {
  display:grid; gap:3px; padding:6px; margin-top:8px;
  background:linear-gradient(130deg,rgba(255,253,247,.96),rgba(242,246,236,.93));
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,.95); border-radius:20px;
  box-shadow:0 12px 30px #43352126,inset 0 1px 0 white
}
.yh-search-hits a { display:grid; grid-template-columns:58px minmax(0,1fr) auto; gap:12px; padding:6px 12px 6px 6px; border-radius:14px; color:#23382e; line-height:1.28 }
.yh-search-hits a:hover,.yh-search-hits a:focus { background:#dce8dc; color:#143f2c; text-decoration:none }
.yh-search-hits img { display:block; width:58px; height:62px; object-fit:cover; background:#ece7df; border-radius:10px }
.yh-hit-detail { min-width:0; font-size:14px; font-weight:500; overflow-wrap:anywhere }
.yh-hit-detail small { display:block; margin-top:4px; font-size:11px; font-weight:400; color:#657168 }
.yh-search-hits strong { color:#164e3c; font-size:14px; white-space:nowrap; font-variant-numeric:tabular-nums }
@media (min-width:1200px) { .yh-search-hits { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media (max-width:767px) {
  .yh-search-hits { max-height:44vh }
  .yh-search-hits a { grid-template-columns:48px minmax(0,1fr) auto; gap:8px; padding-right:6px }
  .yh-search-hits img { width:48px; height:54px }
  .yh-hit-detail,.yh-search-hits strong { font-size:13px }
}
