.header-search{position:relative;overflow:visible!important;transition:box-shadow .2s;}
.header-search:focus-within{box-shadow:0 0 0 3px #b6834940;border-color:#96663b;}
.search-suggestions{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:100;background:#fffdf9;border:1px solid #ded2c2;border-radius:12px;box-shadow:0 12px 35px #23160f26;max-height:min(440px,60dvh);overflow-y:auto;padding:6px;animation:search-reveal .16s ease-out;}
.search-suggestions[hidden]{display:none;}
.search-suggestions a{display:flex;align-items:center;gap:12px;padding:10px;border-radius:8px;color:#30271f;text-decoration:none;min-height:52px;}
.search-suggestions a:hover,.search-suggestions a[aria-selected="true"]{background:#f1e8dd;}
.search-suggestions img{width:48px;height:48px;object-fit:contain;background:#f3eee7;border-radius:6px;flex-shrink:0;}
.search-suggestions strong{display:block;font-size:13px;line-height:1.4;font-weight:500;}
.search-suggestions small{display:block;font-size:12px;color:#85502e;margin-top:4px;}
.search-suggestions .search-all{border-top:1px solid #e8dfd4;font-size:13px;color:#754728;justify-content:center;margin-top:4px;}
.search-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
@keyframes search-reveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.search-suggestions{animation:none;}.header-search{transition:none;}}
/* A subtle moving highlight stays inside the search border. */
@property --search-border-angle { syntax:'<angle>';initial-value:0deg;inherits:false; }
.header-search {isolation:isolate;border-radius:32px;}
.header-search::before {content:"";position:absolute;inset:-3px;border-radius:inherit;padding:3px;pointer-events:none;background:conic-gradient(from var(--search-border-angle),#c9a17a45 0deg,#c9a17a45 195deg,#e9b76f 255deg,#fff5d9 290deg,#f4cd8c 315deg,#bb793c 340deg,#c9a17a45 360deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;animation:search-border-orbit 2.8s linear infinite;}
.header-search input {border-radius:32px 0 0 32px;}
.header-search button[type="submit"] {border-radius:0 32px 32px 0;transition:background .2s;}
.header-search:focus-within::before {padding:3px;filter:drop-shadow(0 0 4px #daa15d88);}
@keyframes search-border-orbit {to{--search-border-angle:360deg;}}
@media(prefers-reduced-motion:reduce){.header-search::before{animation:none;}}
/* Compact search proportions. */
.site-top .header-search {max-width:500px;height:42px;margin-left:20px;margin-right:20px;}
.header-search input {padding-left:16px;padding-right:12px;}
.header-search button[type="submit"] {width:52px;flex-shrink:0;font-size:16px;}
@media(max-width:850px){.site-top .header-search{max-width:none;width:calc(100% - 12px);flex-basis:calc(100% - 12px);height:40px;margin:0 6px;}.header-search input{font-size:16px;}}
.search-history-title{padding:10px;font-size:12px;color:#8b725a;font-weight:600;}
.header-search .search-history-clear{width:100%;min-height:40px;border-radius:6px;background:#f0e8df;color:#754728;font-size:12px;}
