/* Article figures, built from the NHL desk's tokens rather than their own
   palette: same Plex faces, same blue line, same hairlines and thin rules as
   the boards. All values and sample sizes are also real text.

   The bars are blue-line at every metric, including goals-only. Red on this
   site means live money; a goal scored in 2024 is a settled fact, so the
   metric toggle changes what is measured, not what the colour means. */
.editorial-prose .pressure-chart {
  margin: 32px 0 12px;
  padding: 20px 0;
  border-top: 1px solid var(--blue-line);
  border-bottom: 1px solid var(--frost);
  background: var(--sheet);
  color: var(--board);
  font-family: var(--font-body);
}
.pressure-chart [hidden] { display: none !important; }

.editorial-prose .pressure-chart figcaption {
  margin: 0 0 18px;
  text-align: left;
  color: var(--twill);
  font-size: var(--fs-s);
}
.pressure-chart__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--twill);
}
.pressure-chart h3 {
  margin: 6px 0;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1.25;
  color: var(--board);
}

/* Quiet text tabs keep the comparison in the flow of the article. */
.pressure-chart__controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  border-bottom: 1px solid var(--frost);
  background: var(--sheet);
}
.pressure-chart__controls button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 0;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-s);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.pressure-chart__controls button[aria-pressed="true"] { border-bottom-color: var(--blue-line); color: var(--blue-line); font-weight: 600; }
.pressure-chart__controls button:hover { color: var(--blue-line); }
.pressure-chart__controls button:focus-visible { outline: 2px solid var(--blue-line); outline-offset: -2px; }

.editorial-prose .pressure-chart__unit {
  margin: 14px 0;
  font-size: var(--fs-s);
  line-height: 1.45;
  color: var(--twill);
}

.pressure-chart__rows { list-style: none; padding: 0; margin: 0; }
.pressure-chart__row {
  display: grid;
  grid-template-columns: 40px 160px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 0 var(--space-3);
  padding: 12px 0;
  border-top: 1px solid var(--frost);
}
/* Same mug treatment as the home spotlight: square with a soft corner, ice
   behind a transparent or still-loading cut-out, face kept on a top crop.
   The alt is empty on purpose — the name is the next element across. */
.editorial-prose .pressure-chart__mug {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  object-fit: cover;
  object-position: center top;
  background-color: var(--ice);
}
.pressure-chart__name { font-size: var(--fs-m); font-weight: 600; }
.pressure-chart__track { height: 6px; background: var(--ice); border-radius: 2px; overflow: hidden; }
.pressure-chart__bar { display: block; height: 100%; background: var(--blue-line); }
.pressure-chart__value {
  text-align: right;
  font-family: var(--font-data);
  font-size: var(--fs-s);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pressure-chart__sample {
  grid-column: 2 / -1;
  margin-top: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--twill);
}
.editorial-prose .pressure-chart__note {
  margin: 17px 0 0;
  font-size: var(--fs-s);
  line-height: 1.6;
  color: var(--twill);
}

.editorial-prose .pressure-pullquote {
  margin: 30px 0;
  border-left: 2px solid var(--blue-line);
  padding: 2px 0 2px var(--space-5);
}
.editorial-prose .pressure-pullquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--board);
}

.editorial-prose .research-totals summary:focus-visible { outline: 2px solid var(--blue-line); outline-offset: 4px; }
.editorial-prose .research-figure-note {
  display: block;
  margin: 10px 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--fs-s);
  line-height: 1.6;
  color: var(--ink);
}

.editorial-prose .research-totals {
  padding: 12px 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--frost);
}
.editorial-prose .research-totals summary { font-size: var(--fs-s); color: var(--ink); font-weight: 400; }
.editorial-prose .research-totals + p { margin-top: 24px; }
.editorial-prose .pressure-table-wrap { margin-bottom: 10px; }
.pressure-table caption {
  text-align: left;
  padding: 16px 0;
  border-top: 1px solid var(--blue-line);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
}
.pressure-table caption span, .pressure-table__teams {
  display: block;
  margin-top: 3px;
  font: 400 var(--fs-s)/1.5 var(--font-body);
  color: var(--ink);
}
.editorial-prose .pressure-table th, .editorial-prose .pressure-table td { padding: 11px 8px; vertical-align: middle; background: transparent; }
.editorial-prose .pressure-table thead th { font-family: var(--font-display); font-size: var(--fs-s); color: var(--ink); }
.editorial-prose .pressure-table tbody th { font-weight: 600; }
.editorial-prose .pressure-table .pressure-table__rank { width: 24px; padding-left: 0; color: var(--twill); font-family: var(--font-data); font-size: var(--fs-s); }
.editorial-prose .pressure-table .pressure-table__rate, .editorial-prose .pressure-table .pressure-table__total { text-align: right; white-space: nowrap; }
.pressure-table td.pressure-table__rate { font-family: var(--font-data); font-weight: 600; color: var(--blue-line); }
.pressure-table td.pressure-table__total { font-family: var(--font-data); font-size: var(--fs-s); }
.editorial-prose .pressure-table-note { margin: 0 0 26px; color: var(--ink); font-size: var(--fs-s); line-height: 1.6; }
.editorial-prose > hr + p { font-size: var(--fs-s); color: var(--ink); }

@media (max-width: 1000px) { .editorial-prose .pressure-chart { margin-inline: 0; } }
@media (max-width: 600px) {
  .editorial-prose .pressure-chart { padding: 18px 0; }
  .pressure-chart__row { grid-template-columns: 32px minmax(0, 1fr) 52px; gap: var(--space-1) 10px; }
  .editorial-prose .pressure-chart__mug { width: 32px; height: 32px; grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  .pressure-chart__name { grid-column: 2; grid-row: 1; }
  .pressure-chart__value { grid-column: 3; grid-row: 1; }
  .pressure-chart__track { grid-column: 2 / -1; grid-row: 2; }
  .pressure-chart__sample { grid-column: 2 / -1; grid-row: 3; margin: 0; }
  .editorial-prose .pressure-pullquote p { font-size: var(--fs-xl); }
}
@media print { .pressure-chart__controls { display: none; } .pressure-chart { break-inside: avoid; } }
