/*
  The ladder and the leaders (phase 4, P4.4, BOARD H1-P4-Standings-Phone). Loaded by the public Standings
  page after results.css, and by the admin Standings page, which draws the same table on paper. Every color
  is a surface variable (--h1-*), so the table reads on night and on paper without a second set of rules.
  Same rules as h1.css: square, nothing under 12px, no blur, 44px targets.
*/

.h1-st-band > * {
  max-width: 880px;
}

.h1-st-band {
  padding-top: 20px;
  padding-bottom: 32px;
}

.h1-st-title {
  margin-top: 8px;
}

.h1-st-rule {
  margin: 12px 0 0;
  font-family: var(--gzs-font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--h1-fg-2);
}

/* ---------- The table ---------- */

.h1-st-scroll {
  margin-top: 16px;
  overflow-x: auto;
}

.h1-st-table {
  width: 100%;
  min-width: 340px;
  border-collapse: collapse;
  table-layout: fixed;
}

.h1-st-table-byes {
  min-width: 364px;
}

.h1-st-c-pos {
  width: 26px;
}

.h1-st-c-n {
  width: 24px;
}

.h1-st-c-pf {
  width: 32px;
}

.h1-st-c-diff {
  width: 38px;
}

.h1-st-c-pts {
  width: 34px;
}

.h1-st-table thead th {
  height: 36px;
  padding: 0;
  text-align: center;
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--h1-fg-2);
  border-bottom: 1px solid var(--h1-line-strong);
}

.h1-st-table thead .h1-st-th-team {
  text-align: left;
}

.h1-st-row {
  height: 64px;
}

.h1-st-row > * {
  padding: 0;
  border-bottom: 1px solid var(--h1-line);
}

.h1-st-row:last-child > * {
  border-bottom: 0;
}

.h1-st-pos {
  text-align: left;
  font-family: var(--gzs-font-display);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--h1-fg-strong);
}

.h1-st-teamcell {
  text-align: left;
  font-weight: inherit;
}

.h1-st-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 0;
  text-decoration: none;
  color: var(--h1-fg-strong);
  font-family: var(--gzs-font-display);
  font-size: 15px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
}

a.h1-st-team:hover .h1-st-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.h1-st-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* The badge is 20px here, a tile beside the name (BOARD), not the 36px of a score line. */
.h1-st-team .h1-res-badge {
  width: 20px;
  height: 20px;
  font-size: 12px;
  letter-spacing: 0;
}

.h1-st-num {
  text-align: center;
  font-family: var(--gzs-font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--h1-fg-bright);
}

.h1-st-points {
  text-align: center;
  font-family: var(--gzs-font-display);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--h1-fg-strong);
}

/* "Top 2 play the Grand Final" sits under the last position that plays it. */
.h1-st-cut > td {
  height: 36px;
  padding: 0;
  border-top: 2px solid var(--h1-outline);
  border-bottom: 1px solid var(--h1-line);
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h1-fg-strong);
}

.h1-st-cut > td > span {
  display: flex;
  align-items: center;
  height: 34px;
}

.h1-st-legend {
  margin: 12px 0 0;
  font-family: var(--gzs-font-body);
  font-size: 13px;
  line-height: 18px;
  color: var(--h1-fg-2);
}

.h1-st-tie {
  margin-top: 16px;
  padding: 2px 0 2px 14px;
  border-left: 4px solid var(--h1-outline);
}

.h1-st-tie p {
  margin: 0;
  font-family: var(--gzs-font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--h1-fg-bright);
}

.h1-st-tie p + p {
  margin-top: 8px;
}

.h1-st-tie strong {
  color: var(--h1-fg-strong);
}

/* ---------- The leaders ---------- */

.h1-st-leaders {
  margin-top: 24px;
}

.h1-st-leaders-title {
  margin: 0;
  font-family: var(--gzs-font-display);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--h1-fg-strong);
}

.h1-st-leaders-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--h1-outline);
}

.h1-st-leader {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 8px 0;
  border-bottom: 1px solid var(--h1-line);
}

.h1-st-rank {
  flex: none;
  width: 28px;
  font-family: var(--gzs-font-display);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--h1-fg-strong);
}

.h1-st-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.h1-st-person {
  font-family: var(--gzs-font-display);
  font-size: 18px;
  line-height: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--h1-fg-strong);
  overflow-wrap: anywhere;
}

.h1-st-who .h1-st-team {
  min-height: 24px;
  font-family: var(--gzs-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--h1-fg-2);
}

.h1-st-count {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.h1-st-count-n {
  font-family: var(--gzs-font-display);
  font-size: 40px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--h1-fg-strong);
}

.h1-st-count-unit {
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h1-fg-2);
}

.h1-st-band .h1-mono-link {
  margin-top: 20px;
}

/* ---------- The foot: presented by, and the way on ---------- */

.h1-st-foot {
  padding: 8px 0 0;
}

.h1-st-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  padding: 8px var(--gzs-gutter-public) 24px;
}

/* ---------- On the admin page ---------- */

.h1-st-admin {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.h1-st-panel {
  box-sizing: border-box;
  padding: 4px 12px 16px;
  background: var(--h1-card-bg);
  border: 1px solid var(--h1-card-border);
}

.h1-st-panel .h1-st-scroll {
  margin-top: 8px;
}

.h1-st-panel-title {
  margin: 12px 0 0;
  font-family: var(--gzs-font-display);
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--h1-fg-strong);
}

.h1-st-fill {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h1-st-fill p {
  margin: 0;
}

.h1-st-togo {
  margin: 0;
  color: var(--h1-fg-2);
}

@media (min-width: 640px) {
  .h1-st-table {
    min-width: 0;
  }

  .h1-st-c-pos {
    width: 48px;
  }

  .h1-st-c-n {
    width: 56px;
  }

  .h1-st-c-pf {
    width: 64px;
  }

  .h1-st-c-diff {
    width: 72px;
  }

  .h1-st-c-pts {
    width: 64px;
  }

  .h1-st-team {
    font-size: 17px;
  }

  .h1-st-num {
    font-size: 14px;
  }
}
