/* v127: header overflow fix + larger slowly-rotating logo (21 Nov 2026)
   - Brain icon 60px on desktop (~1.5–2x the previous 40px), wordmark scaled to match
   - Slow rotation kept (28s), off when the user prefers reduced motion
   - Burger from 1200px so Black Friday + Academy never sit under search
   - Search collapses to an icon at mid widths; stays reachable to 320px
*/
:root{--hdr:96px}
header.top .nav3{
  max-width:1680px;
  width:100%;
  min-height:var(--hdr);
  padding:8px 20px;
  gap:12px;
  flex-wrap:nowrap;
  box-sizing:border-box;
  align-items:center;
}
header.top .brandlogo{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  min-width:0;
  text-decoration:none;
}
header.top .brandlogo img{
  width:60px;
  height:60px;
  flex:0 0 60px;
  filter:drop-shadow(0 0 8px rgba(60,220,140,.4));
  animation:tcpBrainSpin 28s linear infinite;
}
@keyframes tcpBrainSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  header.top .brandlogo img{animation:none}
}
header.top .bl-t{display:flex;flex-direction:column;line-height:1.05;min-width:0}
header.top .bl-n{
  font-size:1.45rem;
  font-weight:650;
  letter-spacing:-.03em;
  line-height:1.05;
}
header.top .bl-s{
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.04em;
  margin-top:2px;
}

/* Tight but readable desktop links */
header.top .pnav{
  display:flex;
  align-items:center;
  gap:0;
  flex:1 1 auto;
  min-width:0;
  flex-wrap:nowrap;
}
header.top .pnav>a,
header.top .pnav .dd>summary{
  font-size:.84rem;
  padding:8px 8px;
  min-height:40px;
  white-space:nowrap;
}
header.top .nav-r{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  flex:0 0 auto;
}

/* Burger earlier so the row never overflows once Black Friday is in the nav */
@media (max-width:1200px){
  header.top .pnav{display:none!important}
  header.top .mnav{display:block!important}
  :root{--hdr:88px}
  header.top .brandlogo img{width:56px;height:56px;flex-basis:56px}
  header.top .bl-n{font-size:1.32rem}
  header.top .bl-s{font-size:.72rem}
  header.top .nav3{gap:10px;padding:8px 16px}
}

/* Phone / small tablet: still clearly larger than the old 30–34px icon */
@media (max-width:760px){
  :root{--hdr:76px}
  header.top .nav3{gap:8px;padding:8px 12px}
  header.top .brandlogo{gap:8px}
  header.top .brandlogo img{width:48px;height:48px;flex-basis:48px}
  header.top .bl-n{font-size:1.12rem}
  header.top .bl-s{font-size:.62rem}
}
@media (max-width:380px){
  header.top .brandlogo img{width:44px;height:44px;flex-basis:44px}
  header.top .bl-n{font-size:1.02rem}
  header.top .bl-s{display:none}
}

/* Beat the m91 30px shrink so mobile is not tiny */
html.m91 header.top.m91-hdr .logo img{width:48px;height:48px}
html.m91 header.top.m91-hdr .logo .bl-n{font-size:17px!important;line-height:1.05}
html.m91 header.top.m91-hdr .nav3{min-height:76px!important;height:76px!important}

/* Search: injected by tcp-ui.js; these rules win if JS CSS is older */
.tcp-search{position:relative;margin-right:0;display:flex;align-items:center;flex:0 0 auto}
.tcp-search input{
  width:200px;
  min-height:36px;
  border-radius:999px;
  border:1px solid #2a3158;
  background:#0b0f1a;
  color:#e8eef8;
  padding:6px 12px;
  font:inherit;
  font-size:.9rem;
}
.tcp-search-btn{
  display:none;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border:1px solid #2a3158;
  border-radius:999px;
  background:#0b0f1a;
  color:#e8eef8;
  cursor:pointer;
  padding:0;
  flex:0 0 40px;
}
.tcp-search-btn svg{width:18px;height:18px;display:block}
@media (max-width:1440px){
  .tcp-search-btn{display:inline-flex}
  .tcp-search input{
    width:0;
    min-width:0;
    padding:0;
    border-width:0;
    opacity:0;
    pointer-events:none;
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
  }
  .tcp-search.is-open input,
  .tcp-search:focus-within input{
    width:min(220px,52vw);
    padding:6px 12px;
    border-width:1px;
    opacity:1;
    pointer-events:auto;
    position:absolute;
    z-index:45;
  }
}
/* On the m91 mobile header the fullscreen menu already has search */
html.m91 .tcp-search{display:none}
