@import url('./sitewide-search.css');
[data-sitewide-search-trigger]{display:inline-flex;flex:0 0 auto}
.sitewide-search-trigger{display:inline-flex;align-items:center;justify-content:center;width:44px;min-height:44px;border:1px solid #718198;border-radius:8px;background:#152a48;color:#fff;cursor:pointer}
.sitewide-search-trigger svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.sitewide-search-trigger:focus-visible,.sitewide-search-close:focus-visible{outline:3px solid #82d5ff;outline-offset:3px}
.sitewide-search-dialog{width:min(800px,calc(100% - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;overflow:auto;border:1px solid #718198;border-radius:14px;background:#fff;color:#17243b;padding:18px}
.sitewide-search-dialog::backdrop{background:rgb(8 16 32 / 65%)}
.sitewide-search-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.sitewide-search-dialog-header h2{font:700 22px/1.3 system-ui,sans-serif;margin:0}
.sitewide-search-close{flex:0 0 auto;min-height:44px;padding:8px 12px;border:1px solid #718198;border-radius:6px;background:#fff;color:#17243b;font:600 16px/1.2 system-ui,sans-serif;cursor:pointer}
.sitewide-search-public-toolbar{display:flex;justify-content:flex-end;max-width:800px;margin:auto;padding:16px 24px 0;box-sizing:border-box}
@media(max-width:520px){.sitewide-search-dialog{padding:12px}.sitewide-search-dialog-header h2{font-size:19px}}
.sitewide-search-player-content{overflow-wrap:anywhere}
.public-player-profile{width:min(1100px,calc(100% - 32px))}
.public-player-profile-content{font:15px/1.5 system-ui;min-width:0;overflow-wrap:anywhere}
.public-player-profile-content section+section{margin-top:24px;border-top:1px solid #d1d9e5;padding-top:12px}
.public-player-profile-content h3{margin:0 0 8px}.public-player-profile-content p{margin:8px 0}
.public-player-profile-content dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 20px}
.public-player-profile-content dd{margin:0}.public-player-profile-content dt{font-weight:600}
.public-profile-table{max-width:100%;overflow-x:auto}.public-profile-table table{border-collapse:collapse;width:100%;font-size:13px}
.public-profile-table th,.public-profile-table td{padding:9px 10px;border-bottom:1px solid #d1d9e5;text-align:right;white-space:nowrap}
.public-profile-table th:first-child,.public-profile-table td:first-child{text-align:left}
.public-player-profile-content nav{display:flex;justify-content:space-between;margin-top:12px;gap:12px}
.public-player-profile-content button{min-height:44px;cursor:pointer}.public-player-profile-content a{color:#115b99;font-weight:600}
.public-player-profile-content article{padding:12px 0}.public-profile-table:focus-visible{outline:2px solid #115b99;outline-offset:-2px}
.public-profile-hero{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:start;gap:20px}
.public-profile-portrait{display:contents}.public-profile-portrait-media{grid-column:1;grid-row:1;width:112px;height:140px;display:grid;place-items:center;overflow:hidden;border:1px solid #bdcada;border-radius:10px;background:#e8eef6;color:#445c7a;font:700 28px/1 system-ui;box-sizing:border-box}
.public-profile-portrait-media img{display:block;width:100%;height:100%;object-fit:contain}
.public-profile-portrait figcaption{grid-column:1 / -1;grid-row:2;min-height:44px;margin-top:6px;font:11px/1.4 system-ui;overflow-wrap:anywhere;color:#40506a}.public-profile-portrait summary{display:flex;align-items:center;min-height:44px;cursor:pointer;text-decoration:underline}
.public-profile-bio{grid-column:2;grid-row:1;min-width:0}.public-profile-bio dl{grid-template-columns:minmax(0,max-content) minmax(0,1fr)}
@media(max-width:520px){.public-profile-hero{grid-template-columns:80px minmax(0,1fr);gap:12px}.public-profile-portrait-media{width:80px;height:100px;font-size:23px}.public-profile-bio dl{display:block}.public-profile-bio dt{margin-top:6px}}

[data-sitewide-search-trigger]{min-width:0;flex:0 1 240px}
.header-player-search{display:flex;align-items:center;min-width:0;width:100%;border:1px solid #718198;border-radius:8px;background:#152a48;overflow:hidden}
.header-player-search input{min-width:0;width:100%;height:40px;padding:8px 10px;border:0;background:transparent;color:#fff;font:14px/1.3 system-ui}
.header-player-search input::placeholder{color:#c3d2e7}
.header-player-search button{height:40px;width:40px;flex:0 0 40px;border:0;border-left:1px solid #718198;background:transparent;color:white;cursor:pointer}
.header-player-search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.header-player-search:focus-within{outline:2px solid #82d5ff;outline-offset:2px}
.player-search-results{font:15px/1.5 system-ui}.player-search-table-wrap{overflow-x:auto}
.player-search-results table{width:100%;border-collapse:collapse;text-align:left}
.player-search-results th,.player-search-results td{padding:12px 10px;border-bottom:1px solid #d1d9e5;overflow-wrap:anywhere}
.player-search-results a{color:#115b99;font-weight:700}.player-search-results a:focus-visible{outline:3px solid #1261a0;outline-offset:3px}
.search-metadata-note{font-size:12px;color:#40506a}
@media(max-width:700px){.topbar [data-sitewide-search-trigger]{flex:1 1 140px}.header-player-search input{font-size:16px}.sitewide-search-dialog-header{flex-wrap:wrap}.player-search-results th,.player-search-results td{padding:10px 6px}}

/* Reserve usable search space before the full sports/account row becomes tight. */
.topbar [data-sitewide-search-trigger]{min-width:160px}
.landing-mode .topbar .brand{flex-shrink:0}
.landing-mode .topbar .account-controls{flex-shrink:0}
@media(max-width:1280px){
  .landing-mode .topbar{height:auto;min-height:64px;flex-wrap:wrap;gap:12px;padding-block:10px}
  .landing-mode .topbar .league-context{order:3;flex:1 0 100%;margin:0;overflow-x:auto}
  .landing-mode .topbar .landing-header-nav{min-width:max-content}
}
@media(max-width:700px){.topbar [data-sitewide-search-trigger]{min-width:140px}}
