/* Beta 7.17B – shared UI styling. Loaded after the historical stylesheet. */
:root{--wl-control-radius:13px;--wl-control-height:48px;--wl-focus:#7db4ff}
button,input,select,textarea{font-family:inherit}
button,.btn,select,input[type="checkbox"],input[type="radio"]{-webkit-tap-highlight-color:transparent}
.btn,button.primary,button.outline,button.darkbtn,button.ghost,.linkbtn{border-radius:var(--wl-control-radius);min-height:40px;transition:background-color .16s ease,border-color .16s ease,transform .12s ease,box-shadow .16s ease}
.btn{padding:11px 17px;font-weight:720;letter-spacing:-.01em}
.btn.primary,.primary{background:#347df0;color:#fff;border-color:transparent}
.btn.primary:hover,.primary:hover{background:#4c92fa}
.btn.outline,.outline{background:#20334c;color:#e7f0ff;border:1px solid #344b67}
.btn.outline:hover,.outline:hover{background:#2b4261}
.btn.ghost,.ghost{background:#1b2c42;border-color:transparent;color:#e8f1ff}
.btn.ghost:hover,.ghost:hover{background:#29415f}
input:not([type="checkbox"]):not([type="radio"]),select,textarea,.field input,.field select,.field textarea{min-height:var(--wl-control-height);border-radius:var(--wl-control-radius)!important;border:1px solid #344961!important;background:#14243a!important;color:#eef5ff!important;padding:11px 14px;box-shadow:none!important;max-width:100%}
input::placeholder,textarea::placeholder{color:#91a4bd!important}
:where(button,input,select,textarea,a):focus-visible{outline:2px solid var(--wl-focus)!important;outline-offset:2px}
select{appearance:none;-webkit-appearance:none;padding-right:37px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239eb9dc' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important}
textarea{min-height:110px;resize:vertical}
input[type="checkbox"],input[type="radio"]{accent-color:#448cff}
.wl-theme-control{margin-left:auto;flex-shrink:0}.wl-theme-control select{min-height:37px!important;max-width:125px;color:#e4f0ff!important;background-color:#1b2d44!important;border-radius:12px!important;font-size:12px;padding:7px 29px 7px 10px!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.home-search-row.wl-search-combined{display:flex;align-items:center;position:relative;gap:0;border:1px solid #3b5677;border-radius:16px;background:#13263d;overflow:hidden;width:100%;padding:4px}
.wl-search-combined .wl-search-leading{font-size:23px;color:#9cb9df;padding-left:12px;pointer-events:none}
.home-search-row.wl-search-combined input{flex:1;min-width:0;width:100%;border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;font-size:14px;padding:9px 11px}
.wl-search-submit{flex:0 0 43px;height:43px;min-width:43px;border:0;border-radius:12px;background:#347df0;color:#fff;display:grid;place-items:center;cursor:pointer}
.wl-search-submit:hover{background:#5596ff}.wl-search-submit svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.home-search-option{display:flex;gap:5px!important;flex-wrap:wrap}.home-search-option label{display:inline-flex;align-items:center;gap:7px;padding:10px 14px;border-radius:11px;background:#1a2b43;cursor:pointer;font-size:13px}
@media(max-width:620px){.wl-theme-control select{max-width:93px;font-size:11px}.nav{gap:7px}.wl-search-combined input{font-size:13px!important}.home-search{max-width:100%}}
/* Light palette deliberately targets all main surfaces, including profile forms and overlays. */
html[data-theme="light"]{color-scheme:light;--navy:#e9eef8;--navy2:#f0f4fb;--light:#f5f7fc;--text:#14253f;--muted:#5e7089;--border:#dce4ef;--blue:#286ee0;--green:#087b64}
html[data-theme="light"] body{background:#f5f7fc;color:#14253f}
html[data-theme="light"] .top{background:#fff;color:#14253f;border-color:#e0e7f0}
html[data-theme="light"] .top .brandword .mat{color:#14253f}
html[data-theme="light"] .links button{color:#4a5e7a}
html[data-theme="light"] .links button.active,html[data-theme="light"] .links button:hover{background:#edf3fd;color:#195bbd}
html[data-theme="light"] :is(.card,.panel,.feature-strip,.profile-main,.profile-side,.quick-card,.home-search,.modal,.modalshade .modal,.profile-box,.form-section,.setup-choice,.profile-preview-card){background:#fff!important;color:#14253f!important;border-color:#dce5f1!important;box-shadow:0 6px 26px #142c4e08}
html[data-theme="light"] :is(.sub,.muted,.heading p,.resultsnote,.metadata,.field label,.detailrows small,.stat span,.profile-note,.profile-box p){color:#60718a!important}
html[data-theme="light"] :is(.page-header,.profile-hero){background:#eaf1fc!important;color:#14253f!important;border-color:#dce5f1!important}
html[data-theme="light"] .page-header p,html[data-theme="light"] .profile-hero p{color:#5e7190!important}
html[data-theme="light"] :is(.stat,.metric,.detailrows>div,.notice,.empty,.demo-bar){background:#f0f5fb!important;color:#263e5c!important;border-color:#dce5f1!important}
html[data-theme="light"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.field input,.field select,.field textarea){background-color:#f8fafd!important;color:#14253f!important;border-color:#cedbea!important}
html[data-theme="light"] :is(input,textarea)::placeholder{color:#72859f!important}
html[data-theme="light"] :is(.btn.outline,.outline,.btn.ghost,.ghost,.darkbtn,.profile-tabs button){background:#edf3fc!important;color:#1d426e!important;border-color:#d5e1f1!important}
html[data-theme="light"] .btn.primary,html[data-theme="light"] button.primary{background:#286ee0!important;color:#fff!important}
html[data-theme="light"] .wl-theme-control select{background-color:#edf3fc!important;color:#173a62!important}
html[data-theme="light"] .home-search-row.wl-search-combined{background:#f8fafd;border-color:#cedbea}
html[data-theme="light"] .home-search-row.wl-search-combined input{background:transparent!important}
html[data-theme="light"] .home-search-option label{background:#edf3fc;color:#1d426e}
html[data-theme="light"] .bottom-nav{background:#fff!important;border-color:#dce5ef!important}
html[data-theme="light"] .bottom-nav a{color:#647995!important}
html[data-theme="light"] .bottom-nav a.active{background:#e8f1ff!important;color:#236bd1!important}
html[data-theme="light"] .foot{background:#eef3fa;color:#60738a;border-color:#dbe4ee}
html[data-theme="light"] .demo-banner{background:#eaf1fb;color:#355578;border-color:#d2e0f2}
html[data-theme="light"] :is(.tag.blue,.tag.gray){background:#edf3fc;color:#245b9f}
html[data-theme="light"] .hero{background:linear-gradient(145deg,#e6f1ff,#f5f8fd)!important;color:#14253f!important}
html[data-theme="light"] .hero p{color:#4e6785!important}
@media(prefers-reduced-motion:reduce){.btn,button{transition:none!important}}


/* Beta 7.17C fixes */
.wl56-listing,.wl57-transfer,.card,.wl52-career-card{transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .12s ease}
.wl56-listing:active,.wl57-transfer:active,.card:active,.wl52-career-card:active{transform:translateY(0);box-shadow:inset 0 0 0 9999px rgba(255,255,255,.035)}
.wl56-listing:hover,.wl56-listing:focus-visible{background:#17304a!important}
.wl56-listing:active{background:#1a3958!important}
.wl57-transfer:hover,.wl57-transfer:focus-visible{box-shadow:0 0 0 1px rgba(86,144,255,.24),0 12px 28px rgba(0,0,0,.18)!important}
.wl57-transfer:active{box-shadow:0 0 0 1px rgba(86,144,255,.34),0 12px 28px rgba(0,0,0,.22),inset 0 0 0 9999px rgba(255,255,255,.03)!important}
html[data-theme="light"] .wl75-language-button{background:#edf3fc;color:#173a62;border-color:#cedbea}
html[data-theme="light"] :is(.heading h2,.name,.card .name,.listing h3,.wl57-transfer h3,.wl56-list-main .name,.profile-box h2,.profile-box h3,.profile-hero h1,.profile-hero .w49-club,.w54-transfer-copy h3,.wl73-admin-item strong,.wl71-team-copy strong,.wl52-career-copy strong){color:#14253f!important}
html[data-theme="light"] :is(.name-link,.w49-club a,.profile-box a,.listing a,.wl57-transfer-link){color:#1f5fba!important}
html[data-theme="light"] .sub,html[data-theme="light"] .wl57-transfer-desc,html[data-theme="light"] .resultsnote{color:#60718a!important}
html[data-theme="light"] .wl56-listing{border-bottom-color:#d7e2ef!important;background:transparent!important}
html[data-theme="light"] .wl56-listing:hover,html[data-theme="light"] .wl56-listing:focus-visible{background:#eef4fb!important}
html[data-theme="light"] .wl56-listing:active{background:#e2ecfa!important;box-shadow:inset 0 0 0 1px #c7d7eb!important}
html[data-theme="light"] .wl57-transfer{background:#fff!important;border-color:#dce5f1!important}
html[data-theme="light"] .wl57-transfer:hover,html[data-theme="light"] .wl57-transfer:focus-visible{box-shadow:0 0 0 1px #d6e2f2,0 12px 28px rgba(20,44,78,.07)!important}
html[data-theme="light"] .wl57-transfer:active{box-shadow:0 0 0 1px #c6d8ed,0 8px 22px rgba(20,44,78,.09)!important;background:#fdfefe!important}
html[data-theme="light"] :is(.hero h1,.heading h2,.page-header h1,.profile-hero h1){text-shadow:none!important}

/* 7.17D: robust light palette for historical fixed dark-theme selectors */
html[data-theme="light"] .wrap{color:#14253f!important}
html[data-theme="light"] :is(h1,h2,h3,h4,h5,h6,strong,.name,.name-link,.wl56-listing .name,.wl57-transfer h3,.wl57-transfer .name-link,.wl52-career-copy strong,.wl71-team-copy strong,.wl73-admin-item strong,.wl56-profile .profile-box h2,.profile-box h2,.heading h2,.card .name,.w49-identity-text h1){color:#14253f!important}
html[data-theme="light"] :is(.hero h1,.page-header h1,.wl56-profile .w49-identity-text h1,.profile-hero h1){color:#14253f!important;opacity:1!important}
html[data-theme="light"] :is(.wl57-transfer-link,.w49-club a){color:#2167c8!important}
html[data-theme="light"] :is(.foot,.foot span,.foot .wrap){color:#526783!important}
html[data-theme="light"] :is(.foot strong,.foot h2){color:#14253f!important}
html[data-theme="light"] .wl56-listing{background:transparent!important;border-bottom-color:#d9e3f0!important}
html[data-theme="light"] .wl56-listing:is(:hover,:focus-visible){background:#e5eefb!important;box-shadow:inset 0 0 0 1px #b5d1f2!important}
html[data-theme="light"] .wl56-listing:active{background:#d5e6fc!important;box-shadow:inset 0 0 0 2px #88b6ed!important}
html[data-theme="light"] :is(.wl57-transfer,.grid3:not(.wl56-results) .card){background:#fff!important;color:#14253f!important}
html[data-theme="light"] .wl57-transfer:is(:hover,:focus-visible){background:#eff5ff!important;box-shadow:inset 0 0 0 1px #a6c7f0!important}
html[data-theme="light"] .wl57-transfer:active{background:#e0edff!important;box-shadow:inset 0 0 0 2px #84b4ef!important}
html[data-theme="light"] .wl56-profile .profile-hero,html[data-theme="light"] .wl56-profile .profile-box{color:#14253f!important}
html[data-theme="light"] :is(.wl56-profile .w50-description p,.card .sub,.wl57-transfer .sub,.wl57-transfer-desc){color:#60718a!important}
html[data-theme="light"] .wl75-language-button{background:#edf3fc!important;color:#173a62!important;border-color:#cedbea!important}
html[data-theme="light"] .wl-theme-control select{color:#173a62!important}

.wl75-language-button{display:inline-flex;align-items:center;justify-content:center;min-width:78px;white-space:nowrap;background:#132b47;color:#f1f6ff;border:1px solid #3b5476;border-radius:13px;padding:10px 11px;font-weight:750;font-size:12px;cursor:pointer}.wl75-language-button:focus-visible{outline:2px solid #76aaff;outline-offset:2px}

/* Beta 7.17F: filter surfaces, spacing and icons */
.wl51-home>.panel,.wrap>.panel:has(.filters),.wrap>.panel.wl58-search{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:22px 0 18px!important}
html[data-theme="light"] .wl51-home>.panel,html[data-theme="light"] .wrap>.panel:has(.filters),html[data-theme="light"] .wrap>.panel.wl58-search{background:transparent!important;border:0!important;box-shadow:none!important}
#athmorefilters,#marketmorefilters{border-top:1px solid var(--border)!important;margin-top:15px!important;padding-top:17px!important;background:transparent!important}
.wl55-filter-actions{align-items:center}.wl55-filter-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px}.wl-filter-chevron{font-size:18px;font-weight:600;line-height:1;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}
#athmorefilters>.filters,#marketmorefilters>.filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px!important}
#athmorefilters .field,#marketmorefilters .field{min-width:0!important;width:100%}
#athmorefilters .field select,#marketmorefilters .field select{width:100%}
@media(max-width:420px){#athmorefilters>.filters,#marketmorefilters>.filters{gap:12px 8px!important}.wl55-filter-actions .btn{min-height:44px;font-size:12px!important}}

/* Beta 7.17G: remove home search containers across both themes.
   Override historical .panel/.home-search rules without changing modal panels. */
.wl51-home > .panel,
html[data-theme="light"] .wl51-home > .panel,
html[data-theme="dark"] .wl51-home > .panel {
  background:transparent!important; background-image:none!important;
  border:0!important; box-shadow:none!important; border-radius:0!important;
  padding:0!important; margin:22px 0 18px!important;
}
.wl51-home > .panel > .home-search,
html[data-theme="light"] .wl51-home > .panel > .home-search,
html[data-theme="dark"] .wl51-home > .panel > .home-search {
  background:transparent!important; background-image:none!important;
  border:0!important; box-shadow:none!important; border-radius:0!important;
  padding:0!important; margin:0!important; max-width:none!important;
}
.wl51-home .home-search-row.wl-search-combined{margin:0!important}
.wl51-home .home-search-option{margin-top:12px!important}
/* Identical arrow icon in all filter buttons; rotate the SVG, not the glyph. */
.wl55-filter-actions .wl-filter-chevron{
  display:inline-block!important;flex:0 0 18px!important;width:18px!important;height:18px!important;
  vertical-align:middle;transform:rotate(0deg);transform-origin:center;transition:transform .18s ease;
}
.wl55-filter-actions button[aria-expanded="true"] .wl-filter-chevron{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){.wl55-filter-actions .wl-filter-chevron{transition:none}}


/* Beta 7.17H: shared search-field typography and dimensions.
   This class applies equally to Home, Wrestlers, Clubs and Transfers. */
:root { --wl-search-font-size: 16px; --wl-search-height: 52px; }
.wl-unified-search,
.home-search-row.wl-search-combined .wl-unified-search,
.wl51-home .home-search-row.wl-search-combined .wl-unified-search {
  font-size: var(--wl-search-font-size) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  min-height: var(--wl-search-height) !important;
  min-width: 0;
}
.wl-unified-search::placeholder {
  font-size: inherit !important;
  font-weight: 500 !important;
  opacity: 1;
}
.home-search-row.wl-search-combined {
  gap: 0 !important;
}
.wl51-home .home-search-row.wl-search-combined {
  gap: 0 !important;
}
.wl51-home .home-search-row.wl-search-combined .wl-unified-search {
  padding-left: 16px !important;
}
.wl-search-leading { display: none !important; }
@media (max-width: 620px) {
  .wl-unified-search,
  .home-search-row.wl-search-combined .wl-unified-search,
  .wl51-home .home-search-row.wl-search-combined .wl-unified-search {
    font-size: var(--wl-search-font-size) !important;
  }
}

/* Beta 7.17I: WRESTLINK navigation icon set. */
@media(max-width:620px){
 .bottom-nav a .tab-icon{width:30px!important;height:30px!important}
 .bottom-nav a .tab-icon img{width:30px!important;height:30px!important;object-fit:contain!important;display:block!important}
 .bottom-nav a[data-mobile-nav="athletes"] .tab-icon img{width:29px!important;height:29px!important}
}
