/* Evermed Category Grid — 1.8.1: compact, per-device columns (up to 10), alignment. */
.ee-cg {
	--ee-cg-cols: 8; --ee-cg-gap: 10px; --ee-cg-img: 96px; --ee-cg-name: 14px; --ee-cg-pad: 10px; --ee-cg-justify: center;
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: var(--ee-cg-gap); justify-content: var(--ee-cg-justify);
}
.ee-cg__item { box-sizing: border-box; flex: 0 0 calc((100% - (var(--ee-cg-cols) - 1) * var(--ee-cg-gap)) / var(--ee-cg-cols)); min-width: 0; margin: 0; }
.ee-cg__link { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; text-align: center; text-decoration: none; color: var(--ev-ink, #132a36); }
.ee-cg--cards .ee-cg__link { padding: var(--ee-cg-pad) calc(var(--ee-cg-pad) * .6); background: var(--ev-surface, #fff); border: 1px solid var(--ev-line, #e4e8e7); border-radius: var(--ev-radius, 10px); transition: border-color .2s, box-shadow .2s; }
.ee-cg--cards .ee-cg__link:hover { border-color: var(--ev-primary, #00a651); box-shadow: 0 4px 14px rgb(16 24 20 / 8%); }
.ee-cg__img { display: flex; align-items: center; justify-content: center; flex: none; width: var(--ee-cg-img); height: var(--ee-cg-img); max-width: 100%; overflow: hidden; }
/* Cards: the category image as it is (no frame). Circles: round crop on a soft background. */
.ee-cg--circles .ee-cg__img { border-radius: 50%; background: color-mix(in srgb, var(--ev-secondary, #4e97fd) 14%, #fff); }
.ee-cg--cards .ee-cg__letter { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: color-mix(in srgb, var(--ev-secondary, #4e97fd) 14%, #fff); }
.ee-cg__img img { width: 100%; height: 100%; object-fit: contain; }
.ee-cg__letter { font-size: calc(var(--ee-cg-img) * .4); font-weight: 700; color: var(--ev-primary-ink, #008541); }
.ee-cg__name { font-weight: 600; font-size: var(--ee-cg-name); line-height: 1.25; overflow-wrap: anywhere; }
.ee-cg__link:hover .ee-cg__name { color: var(--ev-primary-ink, #008541); }
.ee-cg__count { font-size: calc(var(--ee-cg-name) * .82); line-height: 1.2; color: var(--ev-muted, #667471); }
@media (max-width: 1024px) { .ee-cg { --ee-cg-cols: 5; --ee-cg-img: 80px; --ee-cg-name: 13px; --ee-cg-gap: 8px; --ee-cg-pad: 8px; } }
@media (max-width: 767px)  { .ee-cg { --ee-cg-cols: 3; --ee-cg-img: 64px; --ee-cg-name: 12px; --ee-cg-gap: 6px; --ee-cg-pad: 6px; } }
