/* badges styles (keep small; shared styles live in ../style.css) */

/* shelf on the profile */
.badge-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 12px 5px 8px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card-alt);
  color: var(--text); font-size: .85rem; font-weight: 700; line-height: 1.25; transition: transform .08s;
}
.badge-chip:hover { text-decoration: none; background: var(--title-bg); transform: translateY(-1px); }
.badge-emoji { font-size: 1.15rem; line-height: 1; }
.badge-count { color: var(--pink); font-weight: 800; font-size: .85em; white-space: nowrap; }
.badge-note { margin: 0; }
.badge-give { margin-top: 10px; }
.badge-chips + .badge-give { padding-top: 10px; border-top: 1px dashed var(--line); }
.badge-give > summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--link); }
.badge-give[open] > summary { margin-bottom: 8px; }
.badge-give-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge-give-form select { flex: 1 1 150px; min-width: 0; width: auto; margin: 0; }

/* badges page */
.badge-intro { margin: 0; padding: 10px 14px 0; font-size: .88rem; }
.badge-intro + .box-body { margin-top: 10px; border-top: 1px solid var(--line); }
.badge-row { align-items: center; scroll-margin-top: 72px; }
.badge-row:target { box-shadow: inset 3px 0 0 var(--pink); }
.badge-icon {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--title-bg); border: 1px solid var(--line); font-size: 1.5rem; line-height: 1;
}
.badge-desc, .badge-how, .badge-from { margin: 0; font-size: .88rem; }
.badge-from { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 3px; font-size: .82rem; }
.badge-how { margin-top: 3px; color: var(--muted); font-style: italic; }
.badge-state-on { color: var(--ok); border-color: var(--ok); }
.badge-off .badge-icon, .badge-locked .badge-icon { filter: grayscale(1); opacity: .5; }
.badge-off .item-head, .badge-off .badge-desc, .badge-off .badge-from { opacity: .7; }
.badge-locked .item-head, .badge-locked .badge-desc { opacity: .6; }
