/* =========================================================
   GYGSA Standings – full-bleed + division tabs + mobile scroll
   Matches GYGSA Schedules styling tokens + embed pattern
   ========================================================= */

:root{
  --gygsa-navy: #0b1f3b;
  --gygsa-gold: #f6c400;
  --gygsa-text: #0c1424;
  --gygsa-muted: #54627a;
  --gygsa-border: rgba(12,20,36,.12);
  --gygsa-radius: 16px;
  --gygsa-shadow: 0 12px 30px rgba(11,31,59,.08);
}

/* Outer (full-bleed) */
.gygsa-stand {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 24px clamp(12px, 2vw, 32px);
  box-sizing: border-box;
}

.gygsa-stand__title {
  margin: 0 0 14px;
  color: var(--gygsa-navy);
  font-size: clamp(26px, 2.4vw, 40px);
  line-height: 1.1;
}

/* Tabs (horizontal scroll on mobile) */
.gygsa-stand__tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 2px 12px;
  margin-bottom: 14px;
}

.gygsa-stand__tab {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--gygsa-border);
  background: #fff;
  color: var(--gygsa-navy);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.gygsa-stand__tab.is-active {
  background: var(--gygsa-gold);
  color: #111;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(246,196,0,.25);
}

/* Embed-like scroll region */
.gygsa-stand__embed {
  border: 1px solid var(--gygsa-border);
  border-radius: var(--gygsa-radius);
  background: #fff;
  box-shadow: var(--gygsa-shadow);
  overflow: hidden;
}

.gygsa-stand__tablewrap {
  height: 100%;
  overflow-y: auto;
  overflow-x: auto; /* horizontal scroll when needed */
  -webkit-overflow-scrolling: touch;
}

.gygsa-stand__panel.hidden { display: none; }

/* Table */
.gygsa-stand__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px; /* forces horizontal scroll on narrow screens */
}

.gygsa-stand__table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--gygsa-navy);
  color: #fff;
  text-align: left;
  padding: 12px 12px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.gygsa-stand__table tbody td {
  padding: 12px 12px;
  border-top: 1px solid var(--gygsa-border);
  vertical-align: top;
  font-weight: 700;
  color: var(--gygsa-text);
}

.gygsa-stand__table tbody tr:nth-child(even) td {
  background: rgba(11,31,59,0.02);
}

.gygsa-stand__empty {
  padding: 14px;
  font-weight: 800;
  color: var(--gygsa-muted);
}

.gygsa-stand__hint {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gygsa-muted);
}

@media (max-width: 860px) {
  .gygsa-stand { padding: 18px; }
}
