.division-reference {
  margin: 42px 0 34px;
  padding: 28px;
  border: 1px solid #d7ddd4;
  border-radius: 26px;
  background: #f7f9f5;
}

.division-reference-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
}

.division-reference-heading h3 {
  margin: 5px 0 0;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.division-reference-heading h3 span { color: #69736b; }
.division-reference-heading > p { margin: 0; color: #5f6961; max-width: 560px; }

.division-table-card {
  border: 1px solid #cbd2c8;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(14, 19, 15, .08);
}

.division-table-card + .division-table-card { margin-top: 22px; }

.division-table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: #fff;
  background: #151816;
  border-left: 7px solid #c7ff2e;
}

.division-table-card-doubles .division-table-title {
  background: #21332a;
  border-left-color: #55c2ff;
}

.division-table-title span {
  display: block;
  margin-bottom: 2px;
  color: #b7c0b9;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.division-table-title h4 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.division-table-title small {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.table-swipe-hint { display: none; }

.division-table-scroll {
  overflow-x: auto;
  border-top: 1px solid #e0e4de;
  overscroll-behavior-inline: contain;
}

.division-table-scroll:focus-visible { outline: 3px solid #8bb800; outline-offset: -3px; }

.division-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: .82rem;
}

.doubles-table { min-width: 1000px; }

.division-table th,
.division-table td {
  padding: 13px 14px;
  border-right: 1px solid #e5e8e2;
  border-bottom: 1px solid #e5e8e2;
  text-align: left;
  white-space: nowrap;
}

.division-table thead th {
  background: #151816;
  color: #fff;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.division-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  font-weight: 850;
}

.division-table tbody th b {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: 8px;
  border-radius: 50%;
  background: #c7ff2e;
  font-size: .65rem;
}

.division-table tbody tr:nth-child(even) th,
.division-table tbody tr:nth-child(even) td { background: #f4f6f2; }
.division-table tr:last-child th,
.division-table tr:last-child td { border-bottom: 0; }

.division-table thead th:nth-child(2) { background: #39413b; }
.division-table tbody td:nth-child(2) { background: #edf0ec; font-weight: 850; }

.solo-table thead th:nth-child(3),
.doubles-table thead th:nth-child(3) { background: #ff9667; color: #19120e; }
.solo-table tbody td:nth-child(3),
.doubles-table tbody td:nth-child(3) { background: #fff0e9; }

.solo-table thead th:nth-child(4),
.doubles-table thead th:nth-child(4) { background: #c493ff; color: #170f20; }
.solo-table tbody td:nth-child(4),
.doubles-table tbody td:nth-child(4) { background: #f5edff; }

.doubles-table thead th:nth-child(5) { background: #ffd166; color: #1c1709; }
.doubles-table tbody td:nth-child(5) { background: #fff7df; }

.solo-table thead th:nth-child(5),
.doubles-table thead th:nth-child(6) { background: #65c4ff; color: #0a1820; }
.solo-table tbody td:nth-child(5),
.doubles-table tbody td:nth-child(6) { background: #eaf7ff; }

.solo-table thead th:nth-child(6),
.doubles-table thead th:nth-child(7) { background: #c7ff2e; color: #10150a; }
.solo-table tbody td:nth-child(6),
.doubles-table tbody td:nth-child(7) { background: #f1ffd0; font-weight: 850; }

.division-reference-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  font-size: .75rem;
  color: #69736b;
}

.division-reference-note p { margin: 0; max-width: 760px; }
.division-reference-note a { flex: 0 0 auto; font-weight: 850; color: #27300f; }

@media (max-width: 980px) {
  .division-reference-heading { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .division-reference { margin: 28px 0 24px; padding: 17px; border-radius: 20px; }
  .division-reference-heading { gap: 12px; }
  .division-reference-heading h3 { font-size: 2.25rem; }
  .division-table-title { padding: 17px; }
  .division-table-title h4 { font-size: 1.35rem; }
  .table-swipe-hint { display: block; margin: 0; padding: 9px 15px; background: #eef2eb; color: #5b655e; font-size: .72rem; font-weight: 750; }
  .division-table { font-size: .78rem; }
  .division-reference-note { display: block; }
  .division-reference-note a { display: inline-block; margin-top: 10px; }
}
