/* ==========================================================================
   Esports hub and achievements
   ========================================================================== */

/* Team directory: one row per team ------------------------------------------- */
.vpg-teams-heading { margin-bottom: clamp(28px, 3.6vw, 52px); }
.vpg-teams-grid { border-top: 1px solid var(--line-strong); }

.vpg-team {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.6fr) auto;
  align-items: center;
  gap: 12px clamp(18px, 2.6vw, 40px);
  padding: clamp(18px, 2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}

.vpg-team-logo { display: block; }
.vpg-team-logo img { width: 80px; height: 80px; object-fit: contain; transition: transform .8s var(--ease); }
.vpg-team:hover .vpg-team-logo img { transform: scale(1.05); }

.vpg-team-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-decoration: none;
}

/* The team name stretches over the row so the whole row is one target. */
.vpg-team-name::after { content: ""; position: absolute; inset: 0; }
.vpg-team-name:focus-visible { outline: none; }
.vpg-team-name:focus-visible::after { outline: 2px solid var(--bone); outline-offset: 2px; }

.vpg-team-meta dt,
.vpg-team-leagues > span { display: block; color: var(--stone); font-size: .875rem; }
.vpg-team-meta dd { margin-top: 9px; font-size: 1rem; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.vpg-team-meta dd a { position: relative; z-index: 1; }
.vpg-team-meta dd a:hover { text-decoration-thickness: 2px; }

.vpg-team-leagues ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 0; padding: 0; list-style: none; }
.vpg-team-leagues li { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .04); color: var(--bone-2); font-size: .8125rem; font-weight: 500; white-space: nowrap; }

.vpg-team-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.vpg-team-link::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; transition: transform .45s var(--ease); }
.vpg-team:hover .vpg-team-link::after { transform: translateX(5px); }

@media (max-width: 1040px) {
  .vpg-team { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .vpg-team-logo { grid-row: 1 / span 2; }
  .vpg-team-logo img { width: 64px; height: 64px; }
  .vpg-team-name { grid-column: 2 / -1; align-self: center; }
  .vpg-team-meta { grid-column: 2; }
  .vpg-team-leagues { grid-column: 3; }
  .vpg-team-link { display: none; }
}

@media (max-width: 600px) {
  .vpg-team { grid-template-columns: 52px minmax(0, 1fr); gap: 14px 16px; }
  .vpg-team-logo { grid-row: auto; }
  .vpg-team-logo img { width: 52px; height: 52px; }
  .vpg-team-name { grid-column: 2; }
  .vpg-team-meta,
  .vpg-team-leagues { grid-column: 1 / -1; }
}

/* Photograph ----------------------------------------------------------------- */
.esports-photo-link { display: block; aspect-ratio: 2 / 1; }
.esports-photo-link img { object-position: 50% 82%; }

@media (max-width: 700px) {
  .esports-photo-link { aspect-ratio: 3 / 2; }
}

/* First season --------------------------------------------------------------- */
.history-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(32px, 6vw, 112px); }
.history-heading { position: sticky; top: calc(var(--header-h) + 40px); }
.history-source { margin-top: clamp(24px, 2.6vw, 36px); }

.history-result-grid { display: grid; gap: 24px; margin-top: 22px; }
.history-result { display: flex; align-items: flex-start; gap: 16px; }
.history-result img { flex: none; width: 54px; height: 54px; object-fit: contain; }
.history-result h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.history-result p { margin-top: 10px; color: var(--stone); font-size: .9375rem; line-height: 1.6; }

@media (max-width: 900px) {
  .history-layout { grid-template-columns: minmax(0, 1fr); }
  .history-heading { position: static; }
}

/* Achievements --------------------------------------------------------------- */
.record-note { max-width: 62ch; margin-top: 22px; color: var(--stone); font-size: var(--fs-small); }
.record-note a { color: var(--bone); }

@media (pointer: coarse) {
  .record-note a,
  .vpg-team-meta dd a { padding-block: 11px; }
}
