/* ─────────────────────────────────────────
   Ecto Taxonomy Grid
   ───────────────────────────────────────── */

.ecto-taxonomy-grid {
	display: flex;
	flex-direction: column;
	gap: 40px;
	width: 100%;
}

/* Section title */
.ecto-tg__title {
	font-family: 'Mulish', sans-serif;
	font-size: 40px;
	font-weight: 500;
	line-height: 56px;
	color: #18181b;
	margin: 0;
}

/* Grid */
.ecto-tg__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	width: 100%;
}

/* Empty state */
.ecto-tg__empty {
	grid-column: 1 / -1;
	color: #717179;
	font-size: 16px;
}

/* ─────────────────────────────────────────
   Card base
   ───────────────────────────────────────── */

.ecto-tg-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 48px;
	background-color: #fafafa;
	border: 1px solid #f4f4f5;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}

.ecto-tg-card:hover {
	background-color: #f4f4f5;
	border-color: #d4d4d8;
	text-decoration: none;
}

/* ─────────────────────────────────────────
   Card header — thumbnails + badge
   ───────────────────────────────────────── */

.ecto-tg-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 24px;
	gap: 8px;
}

/* Decorative icons */
.ecto-tg-card__icons {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.ecto-tg-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.ecto-tg-card__icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

/* Publication count badge */
.ecto-tg-card__badge {
	background-color: #f4f4f5;
	border: 1px solid #d4d4d8;
	border-radius: 6px;
	padding: 4px 12px;
	font-family: 'Roboto', sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	color: #18181b;
	white-space: nowrap;
	margin-left: auto;
}

/* When no icons, don't push badge with auto margin */
.ecto-tg-card__header:not(:has(.ecto-tg-card__icons)) .ecto-tg-card__badge {
	margin-left: 0;
}

/* ─────────────────────────────────────────
   Card body
   ───────────────────────────────────────── */

.ecto-tg-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.ecto-tg-card__title {
	font-family: 'Mulish', sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
	color: #52525a;
	margin: 0;
}

.ecto-tg-card__desc {
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #52525a;
	margin: 0;
}

/* ─────────────────────────────────────────
   Author-specific
   ───────────────────────────────────────── */

.ecto-tg-card--author .ecto-tg-card__body {
	gap: 8px;
}

.ecto-tg-card__avatar-wrap {
	flex-shrink: 0;
	line-height: 0;
}

.ecto-tg-card__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.ecto-tg-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ecto-tg-card__role {
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
	color: #717179;
}
