/* Segment chips above the success gallery and the review list (partials/segment-chips).
   One sideways row on phones (swipe, no page scroll), wrapping from 768px. Each chip carries its segment's group colour
   (g-c-* sets --c and --c-text); the chosen chip is filled with the text shade of that colour (dark in the bright theme,
   light in the dark one) so its label stays readable, and carries a dot. */
.sg-chips { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  margin: 0 -12px; padding: 2px 12px 6px; scroll-padding: 0 12px; scrollbar-width: none; }
.sg-chips::-webkit-scrollbar { display: none; }
.sg-chip { --c: var(--g-brand); --c-text: var(--g-accent);
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px 0 12px; scroll-snap-align: start;
  border-radius: 999px; background: var(--g-tile); border: 1px solid var(--g-tile-line); color: var(--g-text);
  font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: 0 2px 8px rgba(60, 40, 160, .06); }
.sg-chip svg { flex: none; width: 18px; height: 18px; color: var(--c-text); }
.sg-chip i { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--g-icon-bg); color: var(--c-text); font-style: normal; font-size: 13px; text-align: center; }
.sg-chip:hover { background: var(--g-tile-hover); color: var(--g-text); }
.sg-chip.on { --on-ink: #fff; background: var(--c-text); border-color: var(--c-text); color: var(--on-ink); box-shadow: 0 6px 16px rgba(60, 40, 160, .18); }
:root[data-theme="dark"] .sg-chip.on { --on-ink: #0e0b24; }
.sg-chip.on svg { color: var(--on-ink); }
.sg-chip.on i { background: rgba(255, 255, 255, .25); color: var(--on-ink); }
:root[data-theme="dark"] .sg-chip.on i { background: rgba(14, 11, 36, .18); }
.sg-chip.on::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-radius: 50%; background: var(--on-ink); }
@media (min-width: 768px) { .sg-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
