/* Boulevard Pádel — módulo público de Torneos. Estilos aislados. */
.public-tournaments {
  padding: 95px 0;
  background: var(--color-bg);
  /* Ocupa la altura visible debajo del encabezado fijo.
     min-height permite que los resultados/tablas crezcan sin recortarse. */
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
}
.public-tournaments h2,
.public-tournament-dialog h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}
.public-tournaments__intro {
  /* Mismo ancho que la grilla de torneos; sin límite de 660px. */
  max-width: none;
  margin: 16px 0 30px;
  color: var(--color-muted);
}
@media (min-width: 1150px) {
  .public-tournaments__intro {
    white-space: nowrap;
  }
}
.public-tournaments__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start; /* Evita que una tarjeta se estire al expandirse otra. */
  gap: 16px;
}
.public-tournament-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}
.public-tournament-card h3 {
  font-size: 1.28rem;
  line-height: 1.25;
}
.public-tournament-card p {
  color: var(--color-muted);
  font-size: 0.93rem;
}
.public-tournament-card .button {
  margin-top: auto;
  font-size: 0.84rem;
  padding: 13px 18px;
  cursor: pointer;
}
.public-tournaments__feedback {
  margin-top: 15px;
  font-size: 0.91rem;
}
.public-tournament-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(93vw, 510px);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 20px 75px rgba(0, 0, 0, 0.27);
  background: var(--color-surface);
  color: var(--color-text);
}
.public-tournament-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}
.public-tournament-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 4vw, 34px);
}
.public-tournament-name {
  margin-bottom: 12px;
  color: var(--color-muted);
}
.public-tournament-form label {
  font-size: 0.87rem;
  font-weight: 600;
  margin-top: 5px;
}
.public-tournament-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: #fafaf8;
  color: var(--color-text);
}
.public-tournament-form input:focus-visible {
  outline: 2px solid var(--color-olive);
  outline-offset: 2px;
}
.public-tournament-form .cf-turnstile {
  margin: 12px 0 2px;
  max-width: 100%;
  overflow: hidden;
}
.public-tournament-notice {
  font-size: 0.84rem;
  color: var(--color-muted);
}
.public-tournament-error {
  font-size: 0.9rem;
  color: #ad2525;
  min-height: 1em;
}
.public-tournament-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
  flex-wrap: wrap;
}
.public-tournament-actions .button {
  cursor: pointer;
  padding: 12px 20px;
}
.public-tournament-back {
  background: #ebeee4;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.public-tournaments__tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--color-border);
}
.public-tournaments__tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 14px 19px;
  font: inherit;
  font-weight: 800;
  color: var(--color-muted);
  cursor: pointer;
}
.public-tournaments__tab.is-active {
  border-bottom-color: var(--color-olive);
  color: var(--color-text);
}
.public-tournaments__tab:focus-visible,
.public-tournament-more__summary:focus-visible {
  outline: 2px solid var(--color-olive);
  outline-offset: 3px;
}
.public-tournaments__count {
  display: inline-block;
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 12px;
  background: #e9ecdf;
  font-size: 0.78rem;
  margin-left: 5px;
  text-align: center;
}
.public-tournaments__empty {
  padding: 32px;
  border: 1px dashed var(--color-border);
  border-radius: 15px;
  background: var(--color-surface);
  color: var(--color-muted);
}
.public-tournament-card__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.public-tournament-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.public-tournament-card__state,
.public-tournament-card__demo {
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 30px;
  padding: 5px 10px;
}
.public-tournament-card__state {
  background: #e9ecdf;
  color: #536742;
}
.public-tournament-card__demo {
  background: #151515;
  color: #f3f3ef;
}
.public-tournament-card__format {
  font-size: 0.78rem;
  color: var(--color-muted);
}
.public-tournament-card .public-tournament-card__category {
  color: var(--color-text);
  font-weight: 700;
}
.public-tournament-card .public-tournament-card__dates {
  font-size: 0.85rem;
}
.public-tournament-card .public-tournament-card__registration {
  color: #567044;
  font-weight: 700;
  font-size: 0.84rem;
}
.public-tournament-card__demo-text {
  font-size: 0.84rem;
  color: var(--color-muted);
}
.public-tournament-card__winner {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f5ee;
  border: 1px solid var(--color-border);
  font-size: 0.86rem;
  color: var(--color-text);
}
.public-tournament-card__winner strong {
  display: inline-block;
  margin-left: 4px;
}
.public-tournament-more {
  width: 100%;
  margin-top: 10px;
  border-top: 1px solid var(--color-border);
}
.public-tournament-more[open] {
  padding-bottom: 2px;
}
.public-tournament-more__summary {
  cursor: pointer;
  padding: 15px 0 5px;
  font-size: 0.89rem;
  font-weight: 800;
}
.public-tournament-more__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}
.public-tournament-data {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #f8f8f5;
  padding: 15px;
  min-width: 0;
}
.public-tournament-data h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
}
.public-tournament-data__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.public-tournament-card .public-tournament-data__empty,
.public-tournament-data__note {
  font-size: 0.81rem;
  line-height: 1.5;
  color: var(--color-muted);
}
.public-tournament-data__note {
  margin-top: 2px;
  margin-bottom: 10px;
}
.public-tournament-results {
  display: grid;
  gap: 10px;
}
.public-tournament-result {
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: #ffffff;
  padding: 12px;
}
.public-tournament-result__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.public-tournament-result__teams {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-text);
}
.public-tournament-result__score {
  display: inline-block;
  margin-top: 6px;
  font-weight: 800;
  color: var(--color-text);
}
.public-tournament-result__winner {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: #567044;
  font-weight: 700;
}
.public-tournament-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.public-tournament-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.77rem;
  text-align: left;
}
.public-tournament-table caption {
  text-align: left;
  font-size: 0.73rem;
  color: var(--color-muted);
  padding-bottom: 9px;
}
.public-tournament-table th,
.public-tournament-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.public-tournament-table__pending {
  font-style: italic;
  color: var(--color-muted);
}
.public-tournament-table__pos {
  color: var(--color-muted);
  width: 40px;
}
.public-tournament-highlight {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.public-tournament-highlight__item {
  border-radius: 11px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  padding: 12px;
}
.public-tournament-highlight__label {
  display: block;
  font-size: 0.74rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.public-tournament-highlight__value {
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 700;
}

@media (max-width: 480px) {
  .public-tournaments {
    padding: 72px 0;
  }
  .public-tournaments__tab {
    padding: 12px 11px;
    font-size: 0.87rem;
  }
  .public-tournament-actions .button {
    flex: 1 1 auto;
    text-align: center;
  }
  .public-tournament-card {
    padding: 17px;
  }
}

/* BVPadel parche 28: visualizacion publica de grupos. */
.public-tournament-groups {
  width: 100%;
  min-width: 0;
  border-top: 1px solid var(--color-border);
  margin-top: 10px;
}
.public-tournament-groups__summary {
  cursor: pointer;
  padding: 15px 0 5px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-text);
}
.public-tournament-groups__summary:focus-visible {
  outline: 2px solid var(--color-olive);
  outline-offset: 3px;
}
.public-tournament-groups__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
  margin-top: 12px;
}
.public-tournament-group {
  min-width: 0;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #f7f9f4;
}
.public-tournament-group__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--color-text);
}
.public-tournament-card .public-tournament-group__count {
  margin: 3px 0 10px;
  color: var(--color-muted);
  font-size: 0.77rem;
}
.public-tournament-group__pairs {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.public-tournament-group__pair {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.public-tournament-group__player {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
}
.public-tournament-group__player + .public-tournament-group__player {
  margin-top: 2px;
}

/* BVPadel parche 36: grupos publicos en hasta cuatro columnas. */
/* El diseno auto-fit anterior permanece para tabletas y celulares. */
@media (min-width: 1100px) {
  .public-tournament-groups__grid:has(
    > .public-tournament-group:nth-child(n + 4)
  ) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* BVPadel parche 41: lectura publica del fixture (sin horarios ni resultados). */
.public-tournament-fixture {
  width: 100%;
  min-width: 0;
  margin-top: 10px;
  border-top: 1px solid var(--color-border);
}
.public-tournament-fixture__summary {
  cursor: pointer;
  padding: 15px 0 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 800;
  color: var(--color-text);
}
.public-tournament-fixture__summary:focus-visible {
  outline: 2px solid var(--color-olive);
  outline-offset: 3px;
}
.public-tournament-fixture__body {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  min-width: 0;
}
.public-tournament-card .public-tournament-fixture__notice {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--color-muted);
}
.public-tournament-fixture__round {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #f7f9f5;
}
.public-tournament-fixture__round-title {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 11px;
  color: var(--color-text);
}
.public-tournament-fixture__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: 11px;
  min-width: 0;
}
.public-tournament-fixture__group {
  min-width: 0;
}
.public-tournament-fixture__group-title {
  margin: 0 0 7px;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}
.public-tournament-fixture__match {
  min-width: 0;
  margin: 0 0 7px;
  padding: 9px 8px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-surface);
}
.public-tournament-card .public-tournament-fixture__number {
  margin: 0 0 6px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-muted);
}
.public-tournament-fixture__versus-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
}
.public-tournament-fixture__pair {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.77rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-text);
}
.public-tournament-fixture__pair--first {
  text-align: right;
  align-items: flex-end;
}
.public-tournament-fixture__pair--second {
  text-align: left;
  align-items: flex-start;
}
.public-tournament-fixture__player {
  display: block;
}
.public-tournament-fixture__vs {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-muted);
}
@media (max-width: 390px) {
  .public-tournament-fixture__round {
    padding: 9px;
  }
  .public-tournament-fixture__match {
    padding: 8px 5px;
  }
  .public-tournament-fixture__versus-row {
    gap: 3px;
  }
  .public-tournament-fixture__pair {
    font-size: 0.73rem;
  }
}


/* SQL 71 · Seguimiento real de torneos. Se conserva la estética verde/dorada. */
.public-tournament-standings-group + .public-tournament-standings-group,
.public-tournament-ko-stage + .public-tournament-ko-stage {
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
  margin-top: 13px;
}
.public-tournament-standings-group h5,
.public-tournament-ko-stage h5 {
  margin: 0 0 10px;
  font-size: 0.93rem;
  color: var(--color-text);
  font-weight: 800;
}
.public-tournament-table th {
  color: var(--color-text);
  font-weight: 800;
}
.public-tournament-table td:last-child,
.public-tournament-table th:last-child {
  text-align: right;
  font-weight: 800;
  color: #315b3a;
}
.public-tournament-result__score {
  color: #315b3a;
}
.public-tournament-ko-stage .public-tournament-results {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.public-tournament-card__winner {
  width: 100%;
  line-height: 1.5;
}
.public-tournament-card__winner strong {
  margin-left: 0;
}
.public-tournament-fixture__score {
  display: block;
  margin: 7px 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #315b3a;
}
.public-tournament-fixture__winner {
  display: block;
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.76rem;
  color: #315b3a;
}
@media (max-width: 480px) {
  .public-tournament-table {
    font-size: 0.74rem;
  }
  .public-tournament-table th,
  .public-tournament-table td {
    padding: 8px 5px;
  }
  .public-tournament-result__meta {
    gap: 5px;
  }
}


/* Parche 75 · Resultados de grupos organizados por fecha.
   Tres columnas como máximo en escritorio; las fechas y los horarios
   se toman en el huso horario argentino y nunca se inventan. */
.public-tournament-group-results {
  container-type: inline-size;
}
.public-tournament-group-results .public-tournament-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  min-width: 0;
}
.public-tournament-group-results .public-tournament-days--1 {
  grid-template-columns: minmax(0, 1fr);
}
.public-tournament-group-results .public-tournament-days--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.public-tournament-group-results .public-tournament-day {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 11px 9px;
  background: var(--color-surface);
}
.public-tournament-group-results .public-tournament-day__title {
  margin: 0 0 11px;
  padding: 0 0 9px;
  border-bottom: 2px solid #c7b16e;
  color: #315b3a;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.public-tournament-group-results .public-tournament-day .public-tournament-results {
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}
.public-tournament-group-results .public-tournament-result {
  min-width: 0;
  padding: 10px 9px;
}
.public-tournament-group-results .public-tournament-result__teams {
  overflow-wrap: anywhere;
}
.public-tournament-group-results .public-tournament-result__meta {
  gap: 7px;
}
@container (max-width: 810px) {
  .public-tournament-group-results .public-tournament-days:not(.public-tournament-days--1) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container (max-width: 530px) {
  .public-tournament-group-results .public-tournament-days {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* Parche 73 · Separar "Seguimiento" de "Eliminatorias" conservando
   los estilos de cada partido que ya estaban aprobados. */
.public-tournament-knockout {
  width: 100%;
  min-width: 0;
  margin-top: 10px;
  border-top: 1px solid var(--color-border);
}
.public-tournament-knockout .public-tournament-more__summary:focus-visible {
  outline: 2px solid var(--color-olive);
  outline-offset: 3px;
}

/* Podio: dos tarjetas grandes lado a lado, también en teléfono.
   Nunca se reestilizan las tarjetas de cuartos/semis/final. */
.public-tournament-knockout .public-tournament-highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 4px;
}
.public-tournament-knockout .public-tournament-highlight__item {
  min-width: 0;
  min-height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 10px;
  padding: 20px 12px;
  border-radius: 14px;
  border-width: 1px;
  border-style: solid;
  overflow-wrap: anywhere;
}
.public-tournament-knockout .public-tournament-highlight__item--gold {
  color: #9a6c0b;
  border-color: #d6b85b;
  background: linear-gradient(160deg, #fffdf4 0%, #f8edc7 100%);
}
.public-tournament-knockout .public-tournament-highlight__item--silver {
  color: #61717b;
  border-color: #adb8be;
  background: linear-gradient(160deg, #ffffff 0%, #e9eef1 100%);
}
.public-tournament-knockout .public-tournament-highlight__trophy {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}
.public-tournament-knockout .public-tournament-highlight__trophy--gold {
  color: #be921f;
}
.public-tournament-knockout .public-tournament-highlight__trophy--silver {
  color: #86969e;
}
.public-tournament-knockout .public-tournament-highlight__label {
  color: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}
.public-tournament-knockout .public-tournament-highlight__value {
  display: block;
  margin-top: 5px;
  color: var(--color-text);
  font-size: clamp(0.96rem, 1.8vw, 1.18rem);
  line-height: 1.3;
  font-weight: 800;
}
@media (max-width: 480px) {
  .public-tournament-knockout .public-tournament-highlight {
    gap: 8px;
  }
  .public-tournament-knockout .public-tournament-highlight__item {
    min-height: 132px;
    padding: 14px 7px;
    gap: 7px;
  }
  .public-tournament-knockout .public-tournament-highlight__trophy {
    width: 36px;
    height: 36px;
  }
  .public-tournament-knockout .public-tournament-highlight__label {
    font-size: 0.68rem;
    letter-spacing: 0.035em;
  }
  .public-tournament-knockout .public-tournament-highlight__value {
    font-size: clamp(0.77rem, 3.3vw, 0.96rem);
  }
}


/* Parche 74 · Tablas de posiciones: alineación consistente y diseño del Admin.
   El ancho de columnas deja de depender de los nombres de cada grupo.
   La grilla utiliza 2 columnas solamente cuando cada tabla puede leerse. */
.public-tournament-standings {
  container-type: inline-size;
}
.public-tournament-standings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 550px), 1fr));
  align-items: start;
  gap: 14px;
  min-width: 0;
  margin-top: 12px;
}
.public-tournament-standings-grid .public-tournament-standings-group {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}
.public-tournament-standings-grid .public-tournament-standings-group h5 {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c7b16e;
  color: #315b3a;
  font-size: 0.99rem;
  font-weight: 800;
}
.public-tournament-standings-grid .public-tournament-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 8px;
}
.public-tournament-standings-grid .public-tournament-table {
  width: 100%;
  min-width: 525px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.public-tournament-standings-grid .public-tournament-table caption {
  text-align: left;
  font-size: 0.76rem;
  padding: 2px 0 10px;
}
.public-tournament-standings-grid .public-tournament-table th,
.public-tournament-standings-grid .public-tournament-table td {
  box-sizing: border-box;
  padding: 9px 4px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-border);
}
.public-tournament-standings-grid .public-tournament-table thead th {
  color: #315b3a;
  font-weight: 800;
  background: #eef1e9;
  border-bottom: 2px solid #c7b16e;
}
.public-tournament-standings-grid .public-tournament-table th:first-child,
.public-tournament-standings-grid .public-tournament-table td:first-child {
  width: 7%;
  font-weight: 800;
}
.public-tournament-standings-grid .public-tournament-table th:nth-child(2),
.public-tournament-standings-grid .public-tournament-table td:nth-child(2) {
  width: 35%;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.public-tournament-standings-grid .public-tournament-table tbody tr:nth-child(even) td {
  background: #f5f7f2;
}
.public-tournament-standings-grid .public-tournament-table tbody tr:first-child td:first-child {
  color: #9e7b25;
}
.public-tournament-standings-grid .public-tournament-table th:last-child,
.public-tournament-standings-grid .public-tournament-table td:last-child {
  color: #315b3a;
  font-weight: 800;
  text-align: center;
}
/* Con tres grupos, el último se centra en la segunda fila en lugar de
   dejar una tarjeta perdida a la izquierda cuando hay dos columnas. */
@container (min-width: 1120px) {
  .public-tournament-standings-grid > .public-tournament-standings-group:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 620px);
  }
}


/* Parche 77: Tablas de posiciones públicas con el diseño visual del Admin.
   Ampliamos únicamente Torneos para mantener legibles tres tarjetas;
   cada torneo tiene su propia fila y no afecta el resto del sitio. */
.public-tournaments > .container {
  width: min(calc(100% - 32px), 1580px);
}
.public-tournaments__list {
  grid-template-columns: minmax(0, 1fr);
}
.public-tournament-standings-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
  gap: 14px;
}
.public-tournament-standings-grid .public-tournament-standings-group,
.public-tournament-standings-grid .public-tournament-standings-group + .public-tournament-standings-group {
  padding: 14px;
  margin: 0;
  border: 1px solid #b7a06f;
  border-radius: 12px;
  background: #fff;
}
.public-tournament-standings-grid .public-tournament-standings-group h5 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: #00432e;
  font-size: 1.03rem;
  font-weight: 800;
}
.public-tournament-standings-grid .public-tournament-table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  margin-top: 0;
}
.public-tournament-standings-grid .public-tournament-table {
  width: 100%;
  min-width: 425px;
  table-layout: fixed;
  font-size: 0.75rem;
  color: #1c2b20;
  border: 1px solid #c0b18f;
  font-variant-numeric: tabular-nums;
}
.public-tournament-standings-grid .public-tournament-table th,
.public-tournament-standings-grid .public-tournament-table td {
  border-bottom: 1px solid #c8d3c8;
  padding: 8px 3px;
  line-height: 1.32;
  text-align: center;
}
.public-tournament-standings-grid .public-tournament-table thead th {
  background: #00432e;
  color: #fff;
  border-bottom: 1px solid #b89b55;
  font-weight: 800;
}
.public-tournament-standings-grid .public-tournament-table th:first-child,
.public-tournament-standings-grid .public-tournament-table td:first-child {
  width: 9%;
  font-weight: 800;
}
.public-tournament-standings-grid .public-tournament-table th:nth-child(2),
.public-tournament-standings-grid .public-tournament-table td:nth-child(2) {
  width: 34%;
  min-width: 130px;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
}
.public-tournament-standings-grid .public-tournament-table td:nth-child(2) {
  font-weight: 600;
}
.public-tournament-standings-grid .public-tournament-table tbody tr:nth-child(even) td {
  background: #f8f7f1;
}
.public-tournament-standings-grid .public-tournament-table tbody tr:first-child td:first-child {
  color: #00432e;
}
.public-tournament-standings-grid .public-tournament-table thead th:last-child {
  background: #a48335;
  color: #fff;
}
.public-tournament-standings-grid .public-tournament-table tbody td:last-child {
  background: #f8f0db;
  color: #00432e;
  font-weight: 800;
}
.public-tournament-standings-grid .public-tournament-table th:last-child,
.public-tournament-standings-grid .public-tournament-table td:last-child {
  border-left: 2px solid #b89b55;
  text-align: center;
}
.public-tournament-standings-status {
  margin: 11px 0 0;
  color: #00683c !important;
  font-size: 0.81rem !important;
  font-weight: 800;
  line-height: 1.45;
}
/* Si las tarjetas son pocas, ocupan el ancho disponible sin columnas vacías.
   Las reglas antiguas que centraban el grupo impar no se aplican en esta visual. */
@container (min-width: 1120px) {
  .public-tournament-standings-grid > .public-tournament-standings-group:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}
@media (max-width: 600px) {
  .public-tournaments > .container {
    width: min(calc(100% - 28px), 1580px);
  }
  .public-tournament-standings-grid .public-tournament-standings-group {
    padding: 10px;
  }
}
