/* Shame streaks: counter cards on the Awards tab and a block on each manager page. Tokens only. */
#streaks { padding-bottom: 8px; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }

/* one streak: plain shame card, "Shameful" (under 120) a bit louder, the under-100 tier loudest */
.sh-card {
  --tone: var(--neg);
  position: relative; overflow: hidden; min-width: 0;
  padding: 14px 16px 14px 20px; display: flex; flex-direction: column; gap: 8px;
}
.sh-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone); }
.sh-card.shameful { background: color-mix(in srgb, var(--neg-soft) 45%, var(--surface)); }
.sh-card.disgust { background: var(--neg-soft); border: 2px solid var(--neg); padding: 13px 15px 13px 22px; }
.sh-card.disgust::before { width: 8px; }

.sh-hd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sh-ico { font-size: 20px; line-height: 1; flex: none; }
.sh-title {
  margin: 0; min-width: 0; font-size: 12px; font-weight: 700; line-height: 1.3;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2);
}
.sh-card.disgust .sh-title { font-size: 13px; font-weight: 800; color: var(--bad-text); }

.sh-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.sh-num { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--bad-text); }
.sh-card.disgust .sh-num { font-size: 60px; font-weight: 850; }
.sh-unit { font-size: 14px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.sh-card.disgust .sh-unit { color: var(--ink); }

.sh-who { min-width: 0; }
.sh-who .team { max-width: 100%; }
.sh-detail { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.sh-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: -2px; }
.sh-since { margin: 0; min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); }

/* season records + how it's counted */
.sh-records { margin-top: 12px; padding: 14px 18px 8px; }
.sh-records h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.sh-rec { list-style: none; margin: 0; padding: 0; }
.sh-rec li { padding: 9px 0; border-top: 1px solid var(--grid); font-size: 14px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.sh-rec li:first-child { border-top: 0; }
.sh-rec b { color: var(--ink); font-weight: 650; }
.sh-rec li.sh-none { color: var(--ink); }
.sh-name { color: inherit; font-weight: 650; text-decoration: none; }
.sh-name:hover { text-decoration: underline; text-underline-offset: 2px; }

.sh-rules { margin-top: 10px; font-size: 13px; color: var(--ink-2); max-width: 75ch; }
.sh-rules summary { padding: 10px 0; font-weight: 600; cursor: pointer; }  /* keeps the disclosure triangle */
.sh-rules summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sh-rules ul { margin: 0 0 8px; padding-left: 18px; }
.sh-rules li { margin: 4px 0; }
.sh-rules b { color: var(--ink); font-weight: 650; }
.sh-rules p { margin: 0 0 8px; }

/* manager page block (inside .mg-blk) */
.sh-mine, .sh-held { list-style: none; margin: 10px 0 0; padding: 0; }
.sh-row { padding: 10px 18px 11px; border-top: 1px solid var(--grid); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.sh-row .sh-chip { justify-self: start; }
.sh-row .sh-rsub { grid-column: 1 / -1; }
.sh-row > .share-btn { grid-column: 2; grid-row: 1; margin-left: 10px; }
.sh-chip {
  display: inline-flex; align-items: baseline; gap: 7px; max-width: 100%; padding: 3px 12px 4px;
  border-radius: 14px; font-size: 13px; font-weight: 600; background: var(--neg-soft); border: 1px solid var(--border);
}
.sh-chip b { font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--bad-text); font-variant-numeric: tabular-nums; }
.sh-row.shameful .sh-chip { border-color: var(--neg); }
.sh-row.disgust .sh-chip { border: 2px solid var(--neg); font-weight: 700; }
.sh-row.disgust .sh-chip b { font-size: 24px; }
.sh-rsub { margin-top: 5px; font-size: 13px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.sh-clean { margin: 10px 0 0; padding: 0 18px; font-size: 14px; color: var(--ink-2); }
.sh-sub-h {
  margin-top: 10px; padding: 12px 18px 2px; border-top: 1px solid var(--grid);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.sh-held li { display: flex; align-items: baseline; gap: 10px; padding: 7px 18px; font-size: 14px; line-height: 1.45; }
.sh-held li > span:first-child { flex: none; width: 20px; text-align: center; }
.sh-held li > span:last-child { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 540px) {
  .sh-grid { grid-template-columns: 1fr; }
  .sh-records { padding-left: 14px; padding-right: 14px; }
}

/* "Show all 12 streaks" */
.sh-more {
  display: block; width: 100%; margin-top: 12px; min-height: 44px; padding: 10px 12px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.sh-more:hover { color: var(--ink); }
.sh-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
