/* US-33 achievements page (kindacritic/ui_achievements.py). Tokens only: colours and
 * type come from kindacritic/assets/tokens.css. The badge itself is styled in badge.css. */

.ach-intro { max-width: 66ch; }

.ach-group { margin-top: 36px; }
.ach-group > h2 { margin: 0 0 4px; font-size: var(--t-label); font-weight: 700;
                  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }

/* One rule: the badge on the left, its count and holders on the right. */
/* Each rule is one card: the badge panel on the left, its holders on the right
 * (from the gpt-image-2.5 pass: one object per rule scans faster than rows). */
.ach-group > .ach-rule + .ach-rule { margin-top: 12px; }
.ach-rule { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
            gap: 0; align-items: stretch; margin-top: 12px;
            background: var(--surface); border: 1px solid var(--hairline);
            border-radius: var(--r-lg); overflow: hidden; scroll-margin-top: 80px; }
.ach-badge { min-width: 0; border-right: 1px solid var(--hairline); }
.ach-badge .badge--lg { width: 100%; height: 100%; border: 0; border-radius: 0; background: none; }
.ach-body { min-width: 0; padding: 18px 22px; }

/* The count reads as the heading of the holder list. */
.ach-count { margin: 0 0 10px; color: var(--ink); font-size: 17px; font-weight: 700; }

.ach-holders { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
               gap: 8px 18px; font-size: var(--t-body); }
/* Long lists (the Top 100, the perfect 10s) wrap densely rather than spacing out. */
.ach-holders--dense { gap: 4px 0; font-size: var(--t-meta); line-height: 1.5; }
/* Hairline separators keep a long wrapped list scannable. The list is pulled left by one
 * separator and clipped, so no wrapped line starts with a stray rule or indent. */
.ach-holders--dense { margin-left: -13px; clip-path: inset(0 0 0 13px); }
.ach-holders--dense li { padding: 0 12px; border-left: 1px solid var(--hairline); }

@media (max-width: 640px) {
  .ach-rule { grid-template-columns: minmax(0, 1fr); }
  .ach-badge { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .ach-body { padding: 14px 16px; }
}
