/* Category menu in the header: a sliding tile, hopping letters, a dropdown that pops in. */
.forest-header .cats{display:flex;align-items:center;gap:2px;font:600 15px var(--body,'DM Sans',system-ui,sans-serif);position:relative;isolation:isolate;margin-left:10px;flex:none}
.forest-header .cats>a,.forest-header .cats .more>button{position:relative;z-index:1;display:inline-block;text-decoration:none;padding:8px 10px;border:0;border-radius:999px;background:none;color:var(--muted);font:inherit;cursor:pointer;white-space:nowrap;box-shadow:none;transition:color .2s}
.forest-header .cats>a:hover,.forest-header .cats>a:focus-visible,.forest-header .cats>a.cur,.forest-header .cats .more>button:hover,.forest-header .cats .more>button[aria-expanded=true]{color:var(--text);background:none;transform:none;box-shadow:none}
.forest-header .cats>a.cur{font-weight:800}
.forest-header .cats .ink{position:absolute;left:0;top:0;width:0;height:0;border-radius:999px;z-index:0;opacity:0;pointer-events:none;background:linear-gradient(145deg,color-mix(in srgb,var(--surface,#fffdf7) 55%,var(--mode-soft,#f3dfae)),var(--mode-soft,#f3dfae));box-shadow:0 3px 0 var(--mode-rim,#c9b88f),0 8px 12px var(--mode-shade,#5c3f1c26);transition:transform .5s cubic-bezier(.34,1.56,.64,1),width .5s cubic-bezier(.34,1.56,.64,1),height .3s,opacity .3s}
.forest-header .cats .ch{display:inline-block}
.forest-header .cats a:hover .ch,.forest-header .cats a:focus-visible .ch{animation:hdr-hop .5s calc(var(--i)*35ms) both}
@keyframes hdr-hop{0%,100%{transform:none}40%{transform:translateY(-6px) rotate(-5deg)}70%{transform:translateY(1px)}}
.forest-header .cats .more{position:relative}
.forest-header .cats .more>button{display:inline-flex;align-items:center}
.forest-header .cats .more>button svg{margin-left:5px;flex:none;transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.forest-header .cats .more>button[aria-expanded=true] svg{transform:rotate(180deg)}
.forest-header .cats .menu{position:absolute;top:calc(100% + 10px);left:0;z-index:40;min-width:200px;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 14px 30px #0b1c1633;transform-origin:top left}
.forest-header .cats .menu:not([hidden]){animation:hdr-menu .3s cubic-bezier(.34,1.56,.64,1)}
.forest-header .cats .menu a{display:block;padding:9px 12px;border-radius:10px;color:var(--text);text-decoration:none;font-weight:600;animation:hdr-tile .45s cubic-bezier(.34,1.56,.64,1) both}
.forest-header .cats .menu a:nth-child(2){animation-delay:.05s}.forest-header .cats .menu a:nth-child(3){animation-delay:.1s}.forest-header .cats .menu a:nth-child(4){animation-delay:.15s}.forest-header .cats .menu a:nth-child(5){animation-delay:.2s}.forest-header .cats .menu a:nth-child(6){animation-delay:.25s}
.forest-header .cats .menu a:hover,.forest-header .cats .menu a:focus-visible{background:var(--mode-soft,#f3dfae)}
.forest-header .cats .menu a .soon{font-size:12px;color:var(--muted);margin-left:6px}
@keyframes hdr-menu{from{transform:scale(.9) translateY(-6px)}to{transform:none}}
@keyframes hdr-tile{from{transform:translateY(-14px) rotate(-4deg) scale(.9);opacity:0}to{transform:none;opacity:1}}
@media(min-width:1181px){.forest-header .wrap:first-child{flex-wrap:nowrap!important}.forest-header .hdr-search{flex:0 1 200px;min-width:150px;margin-left:12px}}
@media(max-width:1180px){
  .forest-header .wrap:first-child{flex-wrap:wrap!important}
  .forest-header .cats{order:3;width:100%;margin-left:0;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .forest-header .cats::-webkit-scrollbar{display:none}
  .forest-header .cats .more{display:none}
  .forest-header .cats .xtra{display:inline-block}
}
@media(min-width:1181px){.forest-header .cats .xtra{display:none}}
@media(prefers-reduced-motion:reduce){.forest-header .cats .ink,.forest-header .cats .menu,.forest-header .cats .menu a{animation:none!important;transition:none!important}.forest-header .cats a:hover .ch{animation:none}}

/* search as an icon that opens on click, and the My list heart */
.forest-header .hdr-search{flex:none!important;width:44px;height:44px;max-width:none;min-width:0!important;margin-left:auto!important;position:relative;z-index:35}
.forest-header .hdr-search .search-box{position:absolute;right:0;top:0;width:44px;min-height:44px;height:44px;padding:0;gap:0;justify-content:center;overflow:hidden;cursor:pointer;transition:width .35s cubic-bezier(.34,1.2,.5,1),padding .25s}
.forest-header .hdr-search .search-box input{flex:0 0 0;width:0!important;min-width:0!important;padding:0!important;margin:0!important;border:0;opacity:0;transition:opacity .2s}
.forest-header .hdr-search .search-box svg{flex:none;transition:transform .35s cubic-bezier(.34,1.56,.64,1)}
.forest-header .hdr-search .search-box:hover svg{transform:rotate(-14deg) scale(1.12)}
.forest-header .hdr-search:focus-within .search-box,.forest-header .hdr-search.has-q .search-box{width:min(280px,calc(100vw - 40px));padding:0 14px;gap:8px;justify-content:flex-start;cursor:text}
.forest-header .hdr-search:focus-within .search-box input,.forest-header .hdr-search.has-q .search-box input{flex:1 1 auto;width:auto!important;opacity:1}
.forest-header .hdr-search .search-results{left:auto;right:0;width:min(340px,calc(100vw - 40px))}
.forest-header .hdr-list{position:relative;flex:none;width:44px;height:44px;margin-left:10px;border:1px solid var(--control-border,var(--line));border-radius:50%;background:var(--surface);color:var(--text);display:grid;place-items:center;text-decoration:none;transition:transform .2s cubic-bezier(.34,1.56,.64,1)}
.forest-header .hdr-list:hover,.forest-header .hdr-list:focus-visible{transform:translateY(-2px) scale(1.06)}
.forest-header .hdr-list svg{transition:transform .3s}
.forest-header .hdr-list.has svg{color:#d7364a}.forest-header .hdr-list.has svg path{fill:currentColor}
.forest-header .hdr-list.bump svg{animation:hdr-beat .6s cubic-bezier(.34,1.56,.64,1)}
@keyframes hdr-beat{0%{transform:scale(1)}35%{transform:scale(1.45) rotate(-8deg)}100%{transform:none}}
.forest-header .hdr-count{position:absolute;top:-4px;right:-4px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d7364a;color:#fff;font:800 11px/19px var(--body,system-ui);text-align:center}
.forest-header .hdr-count[hidden]{display:none}
@media(hover:none){.forest-header .hdr-list{display:none}}
@media(max-width:1180px){.forest-header .hdr-search{order:2}.forest-header .hdr-list{order:2}}
