/* TESSIRVE Theme 5.17.278 — Contraste Tessiliga sin modificar Comunidad/Core.
   Los estilos de Comunidad usan --ms-card-bg, variable que el Theme no definía.
   Paleta fija para legibilidad; las decisiones de color de marca se respetan en el CTA. */

body.tessirve-theme .tc-league {
  --ms-card-bg:#ffffff;
  --ms-ink:#1a293a;
  --ms-muted:#58687b;
  --ms-border:#d4dfe8;
  color:var(--ms-ink)!important;
  color-scheme:light;
}
body.tessirve-theme .tc-league .tc-league-body,
body.tessirve-theme .tc-league .tc-league-tabs {
  background:var(--ms-card-bg)!important;
  color:var(--ms-ink)!important;
  border-color:var(--ms-border)!important;
}
body.tessirve-theme .tc-league .tc-league-tabs button:not(.active),
body.tessirve-theme .tc-league .tc-league-filter,
body.tessirve-theme .tc-league .tc-league-filter strong,
body.tessirve-theme .tc-league .tc-league-filter label,
body.tessirve-theme .tc-league .tc-league-body h2,
body.tessirve-theme .tc-league .tc-league-body h3,
body.tessirve-theme .tc-league .tc-league-body p:not(.tc-league-status),
body.tessirve-theme .tc-league .tc-league-table,
body.tessirve-theme .tc-league .tc-league-table th,
body.tessirve-theme .tc-league .tc-league-table td,
body.tessirve-theme .tc-league .tc-league-item,
body.tessirve-theme .tc-league .tc-league-award,
body.tessirve-theme .tc-league .tc-league-tutorial summary {
  color:var(--ms-ink)!important;
}
body.tessirve-theme .tc-league .tc-league-tabs button.active,
body.tessirve-theme .tc-league .tc-league-filter-button.active {
  background:#237e40!important;
  color:#fff!important;
  border-color:#237e40!important;
}
body.tessirve-theme .tc-league .tc-league-filter select,
body.tessirve-theme .tc-league .tc-league-filter-button:not(.active),
body.tessirve-theme .tc-league .tc-league-body input:not([type=hidden]),
body.tessirve-theme .tc-league .tc-league-body select {
  background:var(--ms-card-bg)!important;
  border-color:var(--ms-border)!important;
  color:var(--ms-ink)!important;
  color-scheme:inherit;
}
body.tessirve-theme .tc-league .tc-league-status {color:#416a25!important;}
body.tessirve-theme .tc-league .tc-league-hint,
body.tessirve-theme .tc-league .tc-league-empty,
body.tessirve-theme .tc-league .tc-shop-where,
body.tessirve-theme .tc-league .tc-league-filter small {color:var(--ms-muted)!important;opacity:1!important;}
body.tessirve-theme .tc-league .tc-league-quota {
  background:#e8f4ed!important;
  color:var(--ms-ink)!important;
}
body.tessirve-theme .tc-league .tc-league-quota a {color:#075c37!important;text-decoration:underline;}
body.tessirve-theme .tc-league .tc-league-table th {
  background:#eff4f7!important;
  border-color:var(--ms-border)!important;
}
body.tessirve-theme .tc-league .tc-league-table td,
body.tessirve-theme .tc-league .tc-league-item,
body.tessirve-theme .tc-league .tc-league-award,
body.tessirve-theme .tc-league .tc-league-tutorial details,
body.tessirve-theme .tc-league .tc-shop-help-item {
  border-color:var(--ms-border)!important;
}
body.tessirve-theme .tc-league .tc-league-points {color:#136d38!important;}
body.tessirve-theme .tc-league :where(a,button,select,input,summary):focus-visible {
  outline:2px solid #f0b73a!important;
  outline-offset:3px;
}

html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league {
  --ms-card-bg:#192330;
  --ms-ink:#eef3f9;
  --ms-muted:#bdcad8;
  --ms-border:#374759;
  color-scheme:dark;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-league-tabs button:not(.active):hover,
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-league-filter-button:not(.active):hover {
  background:#273747!important;
  color:#fff!important;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-league-tabs button.active,
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-league-filter-button.active {
  background:#286e48!important;
  color:#ffffff!important;
  border-color:#41986b!important;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-league-status {color:#c9e89a!important;}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-league-quota {
  background:#203b32!important;
  color:var(--ms-ink)!important;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-league-quota a {color:#9bf0be!important;}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-league-table th {
  background:#263545!important;
  color:#edf3fc!important;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-league-points {color:#74dc9e!important;}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-league-item,
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-league-award,
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-shop-help-item,
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-shop-explained,
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-shop-equipped {
  background:#1d2a38!important;
  color:var(--ms-ink)!important;
  border-color:var(--ms-border)!important;
}
/* Las vistas previas ya tienen paletas propias (cartas, cancha, insignias):
   NO blanquear ni recolorear su interior. */
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-league .tc-shop-guide-button {
  background:#24493a!important;
  color:#e5ffec!important;
  border-color:#5d9875!important;
}

/* Main: invitación de registro sin efectos sobre el shortcode del Core. */
body.tessirve-theme .ms-home-app .tsv-join-invite-278 {
  --tsv-join-brand:color-mix(in srgb,var(--theme-primary,#175cd3) 44%,#213c48);
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  padding:11px 13px;
  min-width:0;
  border:1px solid color-mix(in srgb,var(--theme-primary,#175cd3) 18%,#cdd9e3);
  border-left:3px solid var(--tsv-join-brand);
  border-radius:12px;
  background:color-mix(in srgb,var(--theme-primary,#175cd3) 7%,#f4f8fa);
  box-shadow:0 2px 9px rgba(16,30,45,.055);
  color:#263746;
  box-sizing:border-box;
}
body.tessirve-theme .ms-home-app .tsv-join-icon-278 {
  flex:0 0 30px;
  height:30px;
  border-radius:9px;
  display:grid;
  place-items:center;
  font-size:17px;
  background:color-mix(in srgb,var(--theme-primary,#175cd3) 10%,#e7edf1);
}
body.tessirve-theme .ms-home-app .tsv-join-invite-278 p {
  flex:1 1 auto;
  min-width:0;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
  font-size:13px;
  line-height:1.4;
  font-weight:550;
}
body.tessirve-theme .ms-home-app .tsv-join-invite-278 strong {
  color:inherit!important;
  font-weight:900;
}
body.tessirve-theme .ms-home-app .tsv-join-link-278 {
  flex:none;
  white-space:nowrap;
  padding:8px 12px;
  border-radius:9px;
  background:var(--tsv-join-brand)!important;
  color:#fff!important;
  font-size:12px;
  font-weight:850;
  line-height:1.2;
  text-decoration:none!important;
}
body.tessirve-theme .ms-home-app .tsv-join-link-278:hover {filter:brightness(1.11);}
body.tessirve-theme .ms-home-app .tsv-join-link-278:focus-visible {outline:3px solid #e8b447;outline-offset:2px;}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-app .tsv-join-invite-278 {
  --tsv-join-brand:color-mix(in srgb,var(--theme-primary,#175cd3) 52%,#42677b);
  background:color-mix(in srgb,var(--theme-primary,#175cd3) 12%,#17212d);
  border-color:color-mix(in srgb,var(--theme-primary,#175cd3) 20%,#3d4b5d);
  border-left-color:var(--tsv-join-brand);
  color:#e8eef7!important;
  box-shadow:none;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-app .tsv-join-icon-278 {
  background:color-mix(in srgb,var(--theme-primary,#175cd3) 18%,#243448);
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-app .tsv-join-link-278 {
  background:color-mix(in srgb,var(--tsv-join-brand) 46%,#182b37)!important;
  border:1px solid color-mix(in srgb,var(--tsv-join-brand) 45%,#586c7b);
  color:#fff!important;
}
@media(max-width:620px) {
  body.tessirve-theme .ms-home-app .tsv-join-invite-278 {
    display:grid;
    grid-template-columns:26px minmax(0,1fr) auto;
    gap:7px 8px;
    padding:9px 10px;
    margin-bottom:10px;
    border-radius:11px;
  }
  body.tessirve-theme .ms-home-app .tsv-join-icon-278 {
    width:26px;height:26px;flex-basis:26px;font-size:15px;border-radius:8px;
  }
  body.tessirve-theme .ms-home-app .tsv-join-invite-278 p {font-size:11.5px;line-height:1.35;}
  body.tessirve-theme .ms-home-app .tsv-join-link-278 {font-size:11px;padding:8px 9px;}
}
@media(max-width:360px) {
  body.tessirve-theme .ms-home-app .tsv-join-invite-278 {
    grid-template-columns:26px minmax(0,1fr);
  }
  body.tessirve-theme .ms-home-app .tsv-join-link-278 {
    grid-column:2;
    justify-self:start;
    padding-inline:12px;
  }
}
@media(prefers-reduced-motion:reduce) {
  body.tessirve-theme .ms-home-app .tsv-join-link-278 {transition:none!important;}
}
