/* TSO Theme 2.6.1 — Clubhouse presentation authority */
body.tso-clubhouse-active,
body.tso-clubhouse-page{
  --tso-ch-page:#031326;--tso-ch-page-top:#0b2d55;--tso-ch-navy:var(--tso-navy,#071d33);
  --tso-ch-blue:var(--tso-blue,#003087);--tso-ch-blue-bright:var(--tso-blue,#003087);
  --tso-ch-gold:var(--tso-gold,#ffd700);--tso-ch-white:#f4f7fb;--tso-ch-muted:#c9d5e5;
  background:radial-gradient(circle at 50% 0,#103862 0,#061b30 45%,#020e1b 100%)!important;
}
body.tso-clubhouse-active .tso-clubhouse-page{background:transparent!important;color:#f4f7fb!important}
body.tso-clubhouse-active :is(.tso-clubhouse-mini-hero,.tso-conversations-hero,.tso-matchday-page-hero,.tso-clubhouse-hero,.tso-nlc-hero){
  border:1px solid rgba(255,215,0,.34)!important;border-radius:22px!important;
  background:radial-gradient(circle at 85% 15%,rgba(255,215,0,.15),transparent 28%),linear-gradient(135deg,#071d33,#003087 68%,#071d33)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.24)!important;
}
body.tso-clubhouse-active :is(.tso-clubhouse-card,.tso-clubhouse-panel,.tso-dash-card,.tso-game-card,.tso-conversation-card,.tso-att-card,.tso-nlc-card,.tso-matchday-card,.tso-profile-card,.tso-preferences-card){
  border-color:rgba(255,215,0,.25)!important;background:linear-gradient(145deg,#0c2d50,#071d33)!important;color:#f4f7fb!important;
  box-shadow:0 12px 28px rgba(0,0,0,.18)!important;
}
body.tso-clubhouse-active :is(h1,h2,h3,.eyebrow,.kicker){text-wrap:balance}
body.tso-clubhouse-active :is(.eyebrow,.kicker,[class*="-eyebrow"],[class*="-kicker"]){color:#ffd700!important;font-weight:900!important;letter-spacing:.08em!important}
body.tso-clubhouse-active :is(input[type="text"],input[type="email"],input[type="password"],input[type="number"],input[type="search"],select,textarea){
  background:#f7f9fc!important;color:#071d33!important;border:2px solid rgba(255,215,0,.62)!important;border-radius:12px!important;
  box-shadow:none!important;outline:none!important;
}
body.tso-clubhouse-active :is(input,select,textarea):focus{border-color:#ffd700!important;box-shadow:0 0 0 3px rgba(255,215,0,.18)!important}
/* One button family across every Clubhouse module. */
body.tso-clubhouse-active :is(
  .tso-clubhouse-btn,.tso-nlc-btn,.tso-att-rules-link,.tso-poll-vote-button,.tso-poll-results-button,
  .tso-matchday-form button,.tso-matchday-signin a,button[type="submit"],input[type="submit"]
){
  appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.4rem!important;
  min-height:42px!important;padding:10px 18px!important;border:2px solid #ffd700!important;border-radius:999px!important;
  background:linear-gradient(180deg,#ffe65c,#ffd700)!important;color:#071d33!important;-webkit-text-fill-color:#071d33!important;
  text-decoration:none!important;text-shadow:none!important;font-weight:900!important;line-height:1.15!important;
  box-shadow:0 7px 16px rgba(0,0,0,.18)!important;cursor:pointer!important;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease,color .15s ease!important;
}
body.tso-clubhouse-active :is(
  .tso-clubhouse-btn,.tso-nlc-btn,.tso-att-rules-link,.tso-poll-vote-button,.tso-poll-results-button,
  .tso-matchday-form button,.tso-matchday-signin a,button[type="submit"],input[type="submit"]
):hover,
body.tso-clubhouse-active :is(
  .tso-clubhouse-btn,.tso-nlc-btn,.tso-att-rules-link,.tso-poll-vote-button,.tso-poll-results-button,
  .tso-matchday-form button,.tso-matchday-signin a,button[type="submit"],input[type="submit"]
):focus-visible{
  background:#071d33!important;color:#ffd700!important;-webkit-text-fill-color:#ffd700!important;
  transform:translateY(-1px)!important;box-shadow:0 9px 20px rgba(0,0,0,.24)!important;outline:2px solid #ffd700!important;outline-offset:2px!important;
}
body.tso-clubhouse-active :is(.tso-clubhouse-btn.secondary,.tso-nlc-secondary-btn,.tso-profile-tabs a,.tso-conversation-nav-pill,.tso-att-nav-pills a,.tso-att-match-pills a,.tso-nlc-tabs a){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;padding:8px 14px!important;
  border:1px solid #ffd700!important;border-radius:999px!important;background:#071d33!important;color:#ffd700!important;-webkit-text-fill-color:#ffd700!important;
  text-decoration:none!important;font-weight:850!important;
}
body.tso-clubhouse-active :is(.tso-clubhouse-btn.secondary,.tso-nlc-secondary-btn,.tso-profile-tabs a,.tso-conversation-nav-pill,.tso-att-nav-pills a,.tso-att-match-pills a,.tso-nlc-tabs a):is(:hover,:focus-visible,.active,.is-active,[aria-current="page"]){
  background:#ffd700!important;color:#071d33!important;-webkit-text-fill-color:#071d33!important;
}
body.tso-clubhouse-active :is(.tso-danger,.danger,[class*="danger"],button[name*="delete"],button[name*="remove"]){background:#cc0000!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#8f0000!important}
body.tso-clubhouse-active :is(button,input[type="submit"],[class*="btn"],[class*="button"]):disabled{opacity:.58!important;cursor:not-allowed!important;transform:none!important}
body.tso-clubhouse-active a:not([class*="btn"]):not([class*="button"]){text-underline-offset:3px}
@media(max-width:700px){body.tso-clubhouse-active :is(.tso-clubhouse-btn,.tso-nlc-btn,button[type="submit"],input[type="submit"]){max-width:100%}}
@media(prefers-reduced-motion:reduce){body.tso-clubhouse-active *{scroll-behavior:auto!important}body.tso-clubhouse-active :is([class*="btn"],[class*="button"],button){transition:none!important;transform:none!important}}


/* v2.6.2 — National League Challenge score controls.
   These are game controls, not generic white form fields. */
body.tso-clubhouse-active .tso-nlc-page input.tso-nlc-score-input{
  appearance:textfield!important;
  -moz-appearance:textfield!important;
  width:52px!important;
  min-width:52px!important;
  height:48px!important;
  padding:0 5px!important;
  border:2px solid #ffd700!important;
  border-radius:10px!important;
  background:#071d33!important;
  background-color:#071d33!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  caret-color:#ffd700!important;
  text-align:center!important;
  font-size:20px!important;
  line-height:48px!important;
  font-weight:950!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
body.tso-clubhouse-active .tso-nlc-page input.tso-nlc-score-input:focus{
  outline:none!important;
  border-color:#ffd700!important;
  background:#041426!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 0 0 3px rgba(255,215,0,.20)!important;
}
body.tso-clubhouse-active .tso-nlc-page input.tso-nlc-score-input::-webkit-inner-spin-button,
body.tso-clubhouse-active .tso-nlc-page input.tso-nlc-score-input::-webkit-outer-spin-button{
  -webkit-appearance:none!important;
  margin:0!important;
}
body.tso-clubhouse-active .tso-nlc-score-step{
  min-width:22px!important;
  width:22px!important;
  height:22px!important;
  padding:0!important;
  border:1px solid #ffd700!important;
  border-radius:6px!important;
  background:#071d33!important;
  color:#ffd700!important;
  line-height:18px!important;
  box-shadow:none!important;
}
body.tso-clubhouse-active .tso-nlc-score-step:hover,
body.tso-clubhouse-active .tso-nlc-score-step:focus{
  background:#ffd700!important;
  color:#071d33!important;
  transform:none!important;
}


/* v2.6.3 — Clubhouse leaderboard polish */
body.tso-clubhouse-active .tso-nlc-board-scoring{
  overflow-x:auto!important;border:1px solid rgba(255,215,0,.28)!important;border-radius:18px!important;
  background:linear-gradient(180deg,#0c2e50,#071d33)!important;box-shadow:0 16px 38px rgba(0,0,0,.18)!important;
}
body.tso-clubhouse-active .tso-nlc-board-scoring .score-groups,
body.tso-clubhouse-active .tso-nlc-board-scoring .head,
body.tso-clubhouse-active .tso-nlc-board-scoring .score-row{min-width:900px!important}
body.tso-clubhouse-active .tso-nlc-board-scoring .head{position:sticky!important;top:0!important;z-index:3!important;background:#071d33!important}
body.tso-clubhouse-active .tso-nlc-board-scoring .score-row{transition:background .16s ease,transform .16s ease!important}
body.tso-clubhouse-active .tso-nlc-board-scoring .score-row:hover{background:rgba(255,215,0,.055)!important}
body.tso-clubhouse-active .tso-nlc-board-scoring .score-row:nth-of-type(3){box-shadow:inset 4px 0 #ffd700!important;background:rgba(255,215,0,.07)!important}
body.tso-clubhouse-active .tso-nlc-board-scoring .score-row:nth-of-type(5){box-shadow:inset 4px 0 #c7d0da!important}
body.tso-clubhouse-active .tso-nlc-board-scoring .score-row:nth-of-type(7){box-shadow:inset 4px 0 #c98943!important}
body.tso-clubhouse-active .tso-nlc-board-scoring .player-name a{color:#ffd700!important;font-weight:950!important;text-decoration:none!important}
body.tso-clubhouse-active .tso-nlc-board-scoring .total-points{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:70px!important;padding:8px 10px!important;border-radius:999px!important;background:#ffd700!important;color:#071d33!important}
body.tso-clubhouse-active .tso-nlc-board-scoring .tso-nlc-score-breakdown b{font-size:1.15rem!important;color:#fff!important}
body.tso-clubhouse-active .tso-nlc-board-scoring .tso-nlc-score-breakdown small{color:#a9bdd3!important}
body.tso-clubhouse-active .tso-leaderboard-section{padding:28px!important}
body.tso-clubhouse-active .tso-leaderboard-grid{gap:16px!important}
body.tso-clubhouse-active .tso-leaderboard-card{background:linear-gradient(145deg,#0e3155,#071d33)!important;border:1px solid rgba(255,215,0,.22)!important;box-shadow:0 12px 28px rgba(0,0,0,.15)!important}
body.tso-clubhouse-active .tso-leaderboard-card li:first-child{background:rgba(255,215,0,.07)!important;border-radius:10px!important;padding-left:8px!important;padding-right:8px!important}


/* v2.6.4 — Scope the TSO button system to the public site.
   Never restyle WordPress admin-bar controls or data-only leaderboard values. */
#wpadminbar .ab-item,
#wpadminbar a,
#wpadminbar button,
#wpadminbar input,
#wpadminbar .button,
#wpadminbar .ab-icon,
#wpadminbar #wp-admin-bar-search .ab-item,
#wpadminbar #wp-admin-bar-search .adminbar-input,
#wpadminbar #adminbarsearch,
#wpadminbar #adminbarsearch input,
#wpadminbar #adminbarsearch button {
    all: revert-layer;
}

/* Explicitly restore the admin bar search to WordPress-sized controls even when
   a broader front-end button rule has already matched it. */
html #wpadminbar #wp-admin-bar-search .ab-item,
html #wpadminbar #wp-admin-bar-search input[type="text"],
html #wpadminbar #wp-admin-bar-search input[type="search"],
html #wpadminbar #wp-admin-bar-search button,
html #wpadminbar #adminbarsearch input,
html #wpadminbar #adminbarsearch button {
    min-width: 0 !important;
    width: auto !important;
    height: 26px !important;
    min-height: 0 !important;
    padding: 0 6px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    font-size: 13px !important;
    line-height: 26px !important;
}

/* Leaderboard totals are score badges, not buttons. */
body.tso-clubhouse-active .tso-nlc-leaderboard td:last-child,
body.tso-clubhouse-active .tso-leaderboard td:last-child,
body.tso-clubhouse-active .clubhouse-leaderboard td:last-child {
    text-align: center !important;
}
body.tso-clubhouse-active .tso-nlc-leaderboard td:last-child a,
body.tso-clubhouse-active .tso-nlc-leaderboard td:last-child button,
body.tso-clubhouse-active .tso-nlc-leaderboard td:last-child .button,
body.tso-clubhouse-active .tso-leaderboard td:last-child a,
body.tso-clubhouse-active .tso-leaderboard td:last-child button,
body.tso-clubhouse-active .tso-leaderboard td:last-child .button,
body.tso-clubhouse-active .clubhouse-leaderboard td:last-child a,
body.tso-clubhouse-active .clubhouse-leaderboard td:last-child button,
body.tso-clubhouse-active .clubhouse-leaderboard td:last-child .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 62px !important;
    width: auto !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 11px !important;
    margin: 0 !important;
    border: 1px solid rgba(255,215,0,.55) !important;
    border-radius: 999px !important;
    background: rgba(255,215,0,.10) !important;
    color: #FFD700 !important;
    -webkit-text-fill-color: #FFD700 !important;
    box-shadow: none !important;
    transform: none !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    pointer-events: none !important;
}
body.tso-clubhouse-active .tso-nlc-leaderboard tbody tr:first-child td:last-child a,
body.tso-clubhouse-active .tso-leaderboard tbody tr:first-child td:last-child a,
body.tso-clubhouse-active .clubhouse-leaderboard tbody tr:first-child td:last-child a {
    background: #FFD700 !important;
    color: #071d33 !important;
    -webkit-text-fill-color: #071d33 !important;
    border-color: #FFD700 !important;
}
