/*
 * strings/string.css — the string profile layout, on top of /redesign.css.
 *
 * Linked by every strings/{slug}.html, which scripts/generate_string_pages.py
 * writes. Single owner of these rules: they are shared by 69 pages, so they
 * live here, cached once, rather than inlined into each. Colours, faces and
 * shapes come from the tokens in redesign.css only, so the page follows the
 * theme like every other system page.
 */

.st-page {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px var(--gutter) 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* let the gauge table scroll, not widen the page */
  gap: 32px;
}

/* Hero tags: material and arm-friendliness, as pills. */
.st-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.st-tag {
  border: 1px solid var(--chip-border);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.st-tag--soft { background: var(--accent-soft); border-color: var(--accent); }

/* Section label above its panel, as on yes.hockey's stick pages. */
body.bs .st-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
body.bs .st-sub { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
body.bs .st-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* The numbers: a hairline grid, value over label. The 1px gap shows the
   grid's own background, which is the line colour. */
.st-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.st-cell { background: var(--panel); padding: 14px 16px 15px; }
.st-val {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.st-key {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.st-est { color: var(--accent); font-weight: 700; text-decoration: none; cursor: help; }

/* Panels: the gauge table and the score bars. */
.st-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  overflow: hidden;
}
.st-scroll { overflow-x: auto; }
.st-scores { padding: 18px 18px 20px; }
.st-scores .bs-bars { max-width: 620px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.st-table thead th {
  text-align: left;
  padding: 10px 16px;
  background: var(--panel-head);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-strong);
  white-space: nowrap;
}
.st-table td, .st-table tbody th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--body);
}
.st-table tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.st-table tbody tr:last-child td, .st-table tbody tr:last-child th { border-bottom: 0; }
.st-na { color: var(--muted); }

/* Pro players: chips, linked where the player has a page. */
.st-players { display: flex; flex-wrap: wrap; gap: 8px; }
.st-player {
  border: 1px solid var(--chip-border);
  border-radius: var(--r-ctl);
  padding: 7px 12px;
  font-size: 14px;
  color: var(--body);
}
body.bs a.st-player { color: var(--ink); font-weight: 500; }
body.bs a.st-player:hover { border-color: var(--ink); text-decoration: none; }

.st-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
body.bs .st-link { font-size: 14px; font-weight: 600; }

@media (max-width: 760px) {
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-val { font-size: 18px; }
}
