@import url("./value-change.css?v=standings-v1");

[data-hockey-standings] {
  width: fit-content;
}

[data-hockey-standings][hidden],
.hs-surface [hidden] {
  display: none;
}

.hs-trigger,
.hs-surface button {
  appearance: none;
  border: 1px solid #41454d;
  border-radius: 5px;
  background: #1b1d22;
  color: #edf0f4;
  cursor: pointer;
  font: 600 12px/1.1 Arial, Helvetica, sans-serif;
  min-height: 32px;
  padding: 6px 11px;
}

.hs-trigger:hover,
.hs-surface button:hover:not(:disabled) {
  border-color: #828995;
  background: #272b32;
}

.hs-trigger:focus-visible,
.hs-surface :is(button, a, .hs-tables, .hs-footer):focus-visible {
  outline: 2px solid #d5d8de;
  outline-offset: 2px;
}

.hs-surface {
  --hs-ink: #f3f4f6;
  --hs-muted: #a5a9b0;
  --hs-line: #303339;
  --hs-page: #101114;
  --hs-soft: #191b1f;
  --hs-matchup: #1b2020;
  box-sizing: border-box;
  background: var(--hs-page);
  color: var(--hs-ink);
  color-scheme: dark;
  font: 400 13px/1.4 Arial, Helvetica, sans-serif;
  text-align: left;
}

.hs-dialog {
  width: min(740px, calc(100% - 24px));
  max-width: none;
  max-height: min(76vh, 680px);
  max-height: min(76dvh, 680px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #41454d;
  border-radius: 9px;
  box-shadow: 0 18px 60px #000a;
}

.hs-dialog:not([open]) {
  display: none;
}

.hs-dialog::backdrop {
  background: #0009;
}

.hs-content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-height: inherit;
  gap: 10px;
  padding: 15px;
  overflow: hidden;
}

.hs-dialog.hs-with-views {
  height: min(76vh, 680px);
  height: min(76dvh, 680px);
}

.hs-with-views .hs-content {
  height: 100%;
}

.hs-header {
  display: flex;
  flex: 0 0 auto;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.hs-title {
  margin: 0;
  color: var(--hs-ink);
  font: 650 clamp(17px, 3vw, 23px)/1.15 Arial, Helvetica, sans-serif;
  letter-spacing: -.4px;
  text-transform: none;
}

.hs-meta,
.hs-footer,
.hs-status {
  color: var(--hs-muted);
  font-size: 12px;
}

.hs-meta {
  margin: 4px 0 0;
}

.hs-dialog .hs-close {
  flex: 0 0 auto;
  min-height: 32px;
  background: transparent;
}

.hs-view-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 3px;
  overflow-x: auto;
  padding: 2px 2px 5px;
  border-bottom: 1px solid var(--hs-line);
  scrollbar-width: thin;
}

.hs-surface .hs-view-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  border-color: transparent;
  background: transparent;
  color: var(--hs-muted);
}

.hs-surface .hs-view-tab[aria-selected="true"] {
  background: #eceef1;
  color: #14161a;
}

.hs-surface .hs-view-tab[aria-selected="true"]:hover {
  background: #d8dce2;
}

.hs-view-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 10px;
}

.hs-tables {
  overflow: auto;
  max-width: 100%;
  min-height: 0;
  border: 1px solid var(--hs-line);
  border-radius: 5px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #555b65 #181a1e;
}

.hs-table {
  width: 100%;
  min-width: 420px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hs-table th,
.hs-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #262a30;
  white-space: nowrap;
}

.hs-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #1b1d22;
  color: #c4c8cf;
  font-size: 11px;
  font-weight: 600;
}

.hs-table .hs-team {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 136px;
  max-width: 190px;
  background: var(--hs-row, var(--hs-page));
  box-shadow: 1px 0 0 var(--hs-line);
  text-align: left;
}

.hs-table thead .hs-team {
  z-index: 2;
  background: #1b1d22;
}

.hs-team-name {
  display: block;
  overflow: hidden;
  color: inherit;
  font-weight: 500;
  text-overflow: ellipsis;
  text-decoration: none;
}

.hs-team-name:is(a):is(:hover, :focus-visible),
.hs-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hs-table tbody tr {
  background: var(--hs-row, var(--hs-page));
}

.hs-table tbody tr:is(:hover, :focus-within) {
  --hs-row: #1d2127;
}

.hs-table tbody tr.hs-matchup {
  --hs-row: var(--hs-matchup);
}

.hs-matchup .hs-team-name {
  font-weight: 700;
}

.hs-matchup .hs-team {
  box-shadow: inset 2px 0 #a7c1b5, 1px 0 0 var(--hs-line);
}

.hs-table .hs-points {
  font-weight: 700;
}

.hs-value {
  position: relative;
  display: inline-block;
}

.hs-table .hs-status-column {
  min-width: 82px;
  max-width: 124px;
  text-align: left;
  white-space: normal;
}

.hs-row-status {
  display: inline-block;
  color: #c6ccd3;
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hs-rank.global-tier-highlight {
  color: var(--hs-rank-ink, var(--hs-ink));
  background: var(--hs-rank-bg, transparent);
  box-shadow: none;
  font-weight: 650;
}

.hs-rank.metric-elite { --hs-rank-ink: #63ff9b; --hs-rank-bg: #39ff8828; }
.hs-rank.metric-good { --hs-rank-ink: #a2f5bf; --hs-rank-bg: #39ff8815; }
.hs-rank.metric-average { --hs-rank-ink: #bec4cc; --hs-rank-bg: #82908714; }
.hs-rank.metric-poor { --hs-rank-ink: #ffadb8; --hs-rank-bg: #ff617515; }
.hs-rank.metric-awful { --hs-rank-ink: #ff7184; --hs-rank-bg: #ff617528; }

html[data-highlight-neutral="spectrum"] .hs-rank.metric-good { --hs-rank-ink: #d8f77d; --hs-rank-bg: #b9eb4921; }
html[data-highlight-neutral="spectrum"] .hs-rank.metric-average { --hs-rank-ink: #ffe06e; --hs-rank-bg: #ffd24121; }
html[data-highlight-neutral="spectrum"] .hs-rank.metric-poor { --hs-rank-ink: #ffad5d; --hs-rank-bg: #ff893025; }

html[data-highlight-display-mode="black-white"] .hs-rank.global-tier-highlight {
  filter: grayscale(1);
}

html[data-highlight-display-mode="text-only"] .hs-rank.global-tier-highlight,
html[data-highlight-display-mode="off"] .hs-rank.global-tier-highlight {
  background: transparent;
}

html[data-highlight-display-mode="off"] .hs-rank.global-tier-highlight {
  color: var(--hs-ink);
}

.hs-table .hs-missing {
  color: #8b919b;
}

.hs-table:last-child tbody tr:last-child > * {
  border-bottom: 0;
}

.hs-caption {
  padding: 8px 10px;
  background: var(--hs-soft);
  color: var(--hs-ink);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.hs-group-note {
  display: block;
  margin-top: 2px;
  color: var(--hs-muted);
  font-size: 11px;
  font-weight: 400;
  white-space: normal;
}

.hs-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  max-height: min(24vh, 105px);
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 11px;
}

.hs-footer p,
.hs-status {
  margin: 0;
}

.hs-footer .hs-full-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 6px;
  font-weight: 650;
  white-space: nowrap;
}

.hockey-standings-page {
  margin: 0;
  min-height: 100vh;
  background: #0c0d0f;
  color: #f3f4f6;
}

.hs-site-header {
  padding: 14px max(16px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid #303339;
}

.hs-site-header a {
  color: inherit;
  font: 750 14px/1.2 ui-monospace, monospace;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

[data-hockey-standings-page] {
  width: min(1120px, calc(100% - 32px));
  margin: clamp(18px, 4vw, 42px) auto;
}

.hs-page {
  border: 1px solid var(--hs-line);
  border-radius: 10px;
}

.hs-page .hs-content {
  overflow: visible;
  gap: clamp(10px, 2vw, 18px);
  padding: clamp(12px, 3vw, 28px);
}

.hs-page .hs-title {
  font-size: clamp(24px, 4vw, 38px);
}

.hs-page .hs-header {
  flex-wrap: wrap;
  align-items: baseline;
}

.hs-page-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hs-page-links a {
  color: var(--hs-ink);
  text-underline-offset: 3px;
}

.hs-page .hs-view-tab {
  min-height: 36px;
}

.hs-page .hs-tables {
  overscroll-behavior: auto;
}

.hs-page .hs-footer {
  max-height: none;
}

.hs-footer a {
  color: #d5dadf;
  text-decoration: none;
}

.hs-surface .hs-retry {
  align-self: start;
}

.hs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .hs-content {
    padding: 11px;
  }

  .hs-table th,
  .hs-table td {
    padding: 7px 5px;
    font-size: 12px;
  }

  .hs-table thead th {
    font-size: 10px;
  }

  .hs-table .hs-team {
    min-width: 106px;
    max-width: 132px;
  }

  .hs-table .hs-status-column {
    min-width: 72px;
    max-width: 100px;
  }
}

@media (pointer: coarse) {
  .hs-trigger,
  .hs-dialog button {
    min-height: 44px;
  }
}

.hlive-club-links {display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.hlive-club-links .hs-trigger:not([hidden]) {display:inline-flex; align-items:center; text-decoration:none; box-sizing:border-box}
.hlive-club-links [data-hockey-standings] {position:relative}
