/* © 2025 Mark Kats. Все права защищены. Копирование и переработка запрещены. */

.profile-project-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile-project-list > * {
	margin-top: 0;
}

.profile-project-card {
	display: inline-grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 1px 8px;
	margin-top: 0;
	width: fit-content;
	max-width: 100%;
	min-height: 36px;
	padding: 4px 8px 5px 10px;
	text-decoration: none;
	font-size: inherit;
}

.profile-project-card > * {
	position: relative;
	z-index: 1;
}

.profile-project-card__title {
	grid-column: 1 / -1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font: 600 0.86rem/1.25 var(--profile-card-title-font, 'IBM Plex Sans Condensed', system-ui, sans-serif);
	color: var(--profile-title, var(--ui-text));
	word-break: break-word;
}

.profile-project-card__meta,
.profile-project-card__owner {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.72rem;
	line-height: 1.3;
	color: var(--profile-card-text-secondary, var(--ui-text-muted, var(--ui-text-dim)));
	word-break: normal;
}

.profile-project-card__meta {
	justify-self: start;
	max-width: 100%;
}

.profile-project-card__owner {
	justify-self: end;
	max-width: 96px;
	text-align: right;
}
