:where(.league-page) h1 {
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.6px;
}
:where(.league-page) h2 {
  font-size: 17px;
  margin: 0 0 14px;
}
:where(.league-page) select {
  font: inherit;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 8px 12px;
  min-width: 180px;
}
.league-page .store-history-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.league-page .store-history-header label {
  width: auto;
}
.league-page .store-summary:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 20px;
}
.league-page .store-emblem {
  flex-shrink: 0;
}
.league-page .store-emblem img {
  display: block;
  width: 112px;
  height: 96px;
  object-fit: contain;
}
.league-page .store-info p {
  margin: 0;
}
.league-page .store-info p + p {
  margin-top: 8px;
}
:where(.league-page) .store-events {
  margin-top: 28px;
}
:where(.league-page) .table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: auto;
}
/* Store selection changes the rows, not the column positions. */
:where(.league-page) .store-events-table {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
:where(.league-page) .store-events-table th:first-child {
  width: 24%;
}
:where(.league-page) .store-events-table th:last-child {
  width: 20%;
}
:where(.league-page) .store-events td,
:where(.league-page) .store-events th {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}
:where(.league-page) .store-events th {
  border-top: 0;
  background: #f8fafc;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
}
:where(.league-page) .store-events td:first-child {
  white-space: nowrap;
}
:where(.league-page) .store-events td:last-child,
:where(.league-page) .store-events th:last-child {
  text-align: right;
}
:where(.league-page) a {
  text-decoration: none;
}
:where(.league-page) a:hover {
  text-decoration: underline;
}
:where(.league-page) select:focus-visible,
:where(.league-page) a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
:where(.league-page) select:focus:not(:focus-visible),
:where(.league-page) a:focus:not(:focus-visible) {
  outline: none;
}
:where(.league-page) #error {
  color: #a13232;
}
@media (max-width: 760px) {
  :where(.league-page) .store-events-table th:first-child {
    width: 110px;
  }
  :where(.league-page) .store-events-table th:last-child {
    width: 85px;
  }
}
@media (max-width: 650px) {
  :where(.league-page) h1 {
    font-size: 25px;
  }
  .league-page .store-history-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .league-page .store-history-header label {
    justify-self: end;
  }
  .league-page .store-history-header select {
    min-width: 140px;
    width: 100%;
  }
  .league-page .store-summary:not([hidden]) {
    gap: 16px;
  }
}
