/* Group league page. Builds on exhibition.css (top bar, tiles, boards). */
.broadcast-desk { border-left: 3px solid var(--green); padding: 4px 0 4px 20px; }
.broadcast-desk h3 { font-size: clamp(21px, 3vw, 30px); line-height: 1.25; margin: 0 0 10px; max-width: 1000px; }
.desk-copy { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.broadcast-desk a, .dna-replays a { color: var(--green); text-underline-offset: 3px; }
.desk-recent { margin-top: 20px; }
.desk-recent summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.desk-recent ol { padding-left: 22px; margin: 0; }
.desk-recent li { padding: 8px 0; line-height: 1.5; }
.bot-dna { border-top: 1px solid var(--line); padding-top: 20px; }
.bot-dna label { display: flex; gap: 12px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.bot-dna select { color: #eee; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 10px; min-height: 44px; max-width: 100%; font: inherit; }
.dna-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 22px 0; }
.dna-stats dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dna-stats dd { font-size: 17px; margin: 0; }
.dna-note { max-width: 900px; line-height: 1.6; font-size: 12px; }
.dna-replays { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; }
.dna-replays a { padding: 8px 0; }
@media (max-width: 650px) {
  .dna-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .broadcast-desk { padding-left: 12px; }
  .bot-dna label, .bot-dna select { width: 100%; }
}
.league-badge {
  background: var(--green);
}
.league-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 20px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.league-main > .league-section {
  /* exhibition.css names a grid area for .grid-section; one column here. */
  grid-area: auto;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 18px;
}
.section-head .muted {
  font-size: 12px;
}
.qualifier-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.qualifier-note b {
  color: var(--green);
}
.groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}
.group {
  min-width: 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.group-head h3 {
  margin: 0;
  font-family: "Chakra Petch", Chakra, Arial, sans-serif;
  font-size: 16px;
}
.group-head .muted {
  font-size: 12px;
}
.league-table.overall {
  max-width: 760px;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.league-table th {
  padding: 6px 6px;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.league-table td {
  padding: 6px 6px;
  border-bottom: 1px solid #1b1f26;
  white-space: nowrap;
}
.league-table .num {
  text-align: right;
}
.league-table .bot {
  white-space: normal;
  min-width: 120px;
}
.league-table .pts {
  font-weight: 700;
}
.league-table tr.qualified td:first-child {
  box-shadow: inset 3px 0 0 var(--green);
}
.q-mark {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--green);
  color: #111;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  vertical-align: 1px;
}
.delta.up {
  color: var(--green);
}
.delta.down {
  color: var(--red);
}
.form {
  letter-spacing: 1px;
  font-size: 11px;
}
.form .W {
  color: var(--green);
}
.form .L {
  color: var(--red);
}
.form .D {
  color: var(--muted);
}
.h2h {
  margin-top: 10px;
}
.h2h summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
.h2h summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.h2h-legend {
  margin: 8px 0 0;
  font-size: 11px;
}
.h2h-table {
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 12px;
}
.h2h-table th,
.h2h-table td {
  padding: 3px 4px;
  border: 1px solid #1b1f26;
  text-align: center;
  white-space: nowrap;
}
.h2h-table th[scope="row"] {
  text-align: left;
  font-weight: 400;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h2h-table td.self {
  background: #1b1f26;
}
.h2h-cell {
  display: inline-block;
  min-width: 14px;
}
.h2h-cell + .h2h-cell {
  margin-left: 4px;
}
.h2h-cell::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 2px;
  border-radius: 1px;
  vertical-align: 1px;
}
.h2h-cell.white::before {
  background: #eee;
}
.h2h-cell.black::before {
  background: #111;
  border: 1px solid #666;
}
.h2h-cell.win {
  color: var(--green);
}
.h2h-cell.loss {
  color: var(--red);
}
.h2h-cell.pending {
  color: #555;
}
.h2h-cell.live {
  color: var(--red);
}
a.h2h-cell {
  color: inherit;
}
.overall-row-out td {
  color: var(--muted);
}
@media (max-width: 760px) {
  .league-main {
    padding: 16px;
    gap: 22px;
  }
  .league-table .wide {
    display: none;
  }
}
