/* Crafting materials (/database/crafting-materials) — list + detail. Card chrome comes from tooltip-v2.css. */
.cm-table__icon { width: 36px; height: 36px; object-fit: contain; }
.cm-table__use { color: var(--text-muted, #7a7870); font-size: 0.875rem; line-height: 1.45; }

.cm-detail__icon { width: 64px; height: 64px; object-fit: contain; }
.cm-detail__card { max-width: 420px; margin: 0 0 24px; container-type: inline-size; }
.cm-detail__sources { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--text-primary, #e0ddd5); }
.cm-detail__more { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
    border: 1px solid var(--border-color, #2a2a35); border-radius: 8px; background: var(--bg-card, #13151a);
    text-decoration: none; font-size: 0.875rem; transition: border-color .15s ease;
}
.cm-chip:hover { border-color: #c4a24e; }
.cm-chip img { width: 28px; height: 28px; object-fit: contain; }

@media (max-width: 767px) {
    .cm-detail__card { max-width: 100%; }
}

/* Titles & achievements (/database/achievements) reuse this frame: kind next to the name in the chips */
.cm-chip__type { color: var(--text-muted, #7a7870); font-size: 0.75rem; }
.ach-items { margin-top: 12px; }
.cm-chip__name { color: var(--text-primary, #e0ddd5); }
