/* v74 additive navigation support for Trade Search. */
@media(max-width:520px){
  .tt-primary-nav a:nth-child(4){font-size:0}
  .tt-primary-nav a:nth-child(4):after{content:"Search";font-size:10px}
  .tt-primary-nav a:nth-child(3){font-size:0}
  .tt-primary-nav a:nth-child(3):after{content:"Trades";font-size:10px}
}
.tt-team-hero a.tt-back{display:inline-flex;align-items:center;width:max-content;text-decoration:none;margin-top:3px}

/* v99 — Basketball Ideas shared shell, readable type, and touch system for Trade Search. */
body.ts-body{
  --bi-shell-max:1380px;
  --bi-gutter-desktop:42px;
  --bi-gutter-tablet:28px;
  --bi-gutter-mobile:18px;
  --bi-touch-min:44px;
}
body.ts-body .ts-main{
  width:min(var(--bi-shell-max),calc(100% - var(--bi-gutter-desktop)))!important;
  margin-inline:auto!important;
}
body.ts-body .tt-topbar{
  padding-left:max(calc(var(--bi-gutter-desktop)/2),calc((100vw - var(--bi-shell-max))/2))!important;
  padding-right:max(calc(var(--bi-gutter-desktop)/2),calc((100vw - var(--bi-shell-max))/2))!important;
}

body.ts-body .tt-kicker{font-size:11px!important;line-height:1.25}
body.ts-body .ts-archive-stamp span,
body.ts-body .ts-archive-stamp small{font-size:10.5px!important;line-height:1.25}
body.ts-body .ts-query>span,
body.ts-body .ts-primary-filters label>span,
body.ts-body .ts-filter-card label>span,
body.ts-body .ts-results-header label>span{font-size:11.5px!important;line-height:1.25}

body.ts-body .ts-search-shell input,
body.ts-body .ts-search-shell select,
body.ts-body .ts-results-header select{min-height:var(--bi-touch-min)!important}
body.ts-body .ts-query input{min-height:54px!important}
body.ts-body .ts-primary-action,
body.ts-body .ts-secondary-action,
body.ts-body .ts-pagination button,
body.ts-body .ts-result-link{min-height:var(--bi-touch-min)!important;font-size:12.5px!important;line-height:1.2}
body.ts-body .ts-filter-group summary{min-height:var(--bi-touch-min)!important}
body.ts-body .ts-filter-group summary small{font-size:11.5px!important;line-height:1.4}
body.ts-body .ts-filter-card p{font-size:12.5px!important;line-height:1.5}
body.ts-body .ts-check-grid label{min-height:var(--bi-touch-min)!important;font-size:13px!important}
body.ts-body .ts-check-grid input{width:20px!important;height:20px!important;flex:0 0 20px}
body.ts-body .ts-chip{font-size:11.5px!important;line-height:1.2}

body.ts-body .ts-result-date{font-size:11.5px!important;line-height:1.2}
body.ts-body .ts-team-pill{font-size:11.5px!important;line-height:1.2}
body.ts-body .ts-match-head span{font-size:11px!important;line-height:1.25}
body.ts-body .ts-perspective-select{min-height:var(--bi-touch-min)!important;font-size:12.5px!important}
body.ts-body .ts-package>span{font-size:10.5px!important;line-height:1.25}
body.ts-body .ts-package strong{font-size:13.5px!important;line-height:1.35}
body.ts-body .ts-package small{font-size:12px!important;line-height:1.45}
body.ts-body .ts-metric span{font-size:10.5px!important;line-height:1.3}
body.ts-body .ts-pagination span{font-size:12px!important;line-height:1.3}
body.ts-body .ts-team-logo b{font-size:8.5px!important}

@media(max-width:1080px){
  body.ts-body .ts-main{width:min(var(--bi-shell-max),calc(100% - var(--bi-gutter-tablet)))!important}
  body.ts-body .tt-topbar{padding-left:calc(var(--bi-gutter-tablet)/2)!important;padding-right:calc(var(--bi-gutter-tablet)/2)!important}
}

/* Mobile keeps full product names in a deliberate scrollable navigation row. */
@media(max-width:780px){
  body.ts-body .tt-topbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
    min-height:0!important;
    padding-top:9px!important;
    padding-bottom:9px!important;
  }
  body.ts-body .tt-brand{min-height:var(--bi-touch-min);min-width:0}
  body.ts-body .tt-brand strong{font-size:14px!important}
  body.ts-body .tt-brand small{font-size:10.5px!important}
  body.ts-body .tt-primary-nav{
    width:100%;
    gap:6px!important;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
    scroll-snap-type:x proximity;
    padding-bottom:1px;
  }
  body.ts-body .tt-primary-nav::-webkit-scrollbar{display:none}
  body.ts-body .tt-primary-nav a,
  body.ts-body .tt-primary-nav a.we-nav-link{
    display:flex;
    flex:0 0 auto;
    align-items:center;
    min-height:var(--bi-touch-min);
    padding:0 12px!important;
    font-size:11.5px!important;
    line-height:1.2;
    white-space:nowrap;
    scroll-snap-align:start;
  }
  body.ts-body .tt-primary-nav a:after,
  body.ts-body .tt-primary-nav a.we-nav-link:after{content:none!important;display:none!important}
  body.ts-body .ts-form-actions{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}
  body.ts-body .ts-form-actions button{width:100%}
}

@media(max-width:640px){
  body.ts-body .ts-main{width:min(var(--bi-shell-max),calc(100% - var(--bi-gutter-mobile)))!important}
  body.ts-body .tt-topbar{padding-left:calc(var(--bi-gutter-mobile)/2)!important;padding-right:calc(var(--bi-gutter-mobile)/2)!important}
  body.ts-body .ts-hero{padding:22px 18px!important}
  body.ts-body .ts-search-shell{padding:15px!important}
  body.ts-body .ts-filter-grid{padding:15px!important}
  body.ts-body .ts-filter-card{padding:14px!important}
  body.ts-body .ts-form-actions{grid-template-columns:1fr}
  body.ts-body .ts-result-body,
  body.ts-body .ts-result-top{padding-left:15px!important;padding-right:15px!important}
}
