/**
 * Job-Vorschläge am GamerDNA-Profil (gt-jm-*).
 * Style Guide: neutral, Farbe kommt vom Content. Blau navigiert (Links mit Pfeil),
 * Lila bleibt Aktionen vorbehalten und kommt hier nicht vor. „Gesponsert" ist
 * bewusst unauffällig, aber immer sichtbar.
 */

.gt-jm {
	--gt-jm-text: #1C1139;
	--gt-jm-text-2: #5A5574;
	--gt-jm-muted: #8E8BA3;
	--gt-jm-border: #E1E0E6;
	--gt-jm-subtle: #F0EEF5;
	--gt-jm-white: #ffffff;
	--gt-jm-link: #0969DA;

	font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--gt-jm-text);
	font-size: 15px;
	line-height: 1.6;
	scroll-margin-top: 96px;
}

.gt-jm *,
.gt-jm *::before,
.gt-jm *::after {
	box-sizing: border-box;
}

.gt-jm-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 20px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.gt-jm-title {
	margin: 0;
	font-family: 'Figtree', sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--gt-jm-text);
}

.gt-jm-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--gt-jm-link);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: gap .2s;
}

.gt-jm-all:hover {
	gap: 10px;
	color: var(--gt-jm-link);
}

.gt-jm-all svg {
	flex: none;
}

.gt-jm-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.gt-jm-card {
	margin: 0;
	min-width: 0;
}

.gt-jm-link {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--gt-jm-white);
	border: 1px solid var(--gt-jm-border);
	border-radius: 12px;
	padding: 14px 16px;
	color: inherit;
	text-decoration: none;
	transition: border-color .2s, transform .2s, box-shadow .2s;
}

.gt-jm-link:hover {
	border-color: var(--gt-jm-muted);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(28, 17, 57, .06);
	color: inherit;
}

.gt-jm-link:focus-visible {
	outline: 2px solid var(--gt-jm-link);
	outline-offset: 2px;
}

.gt-jm-logo {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: var(--gt-jm-subtle);
	display: grid;
	place-items: center;
	overflow: hidden;
	color: var(--gt-jm-muted);
	font-weight: 700;
	font-size: 18px;
}

.gt-jm-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.gt-jm-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gt-jm-job {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.gt-jm-org {
	font-size: 14px;
	color: var(--gt-jm-text-2);
	overflow-wrap: anywhere;
}

.gt-jm-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.gt-jm-tags > span {
	background: var(--gt-jm-subtle);
	color: var(--gt-jm-text-2);
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.gt-jm-side {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	text-align: right;
}

.gt-jm-score {
	font-size: 12px;
	color: var(--gt-jm-muted);
	white-space: nowrap;
}

.gt-jm-score b {
	display: block;
	font-size: 20px;
	line-height: 1.1;
	color: var(--gt-jm-text);
	font-variant-numeric: tabular-nums;
}

.gt-jm-badge {
	border: 1px solid var(--gt-jm-border);
	color: var(--gt-jm-text-2);
	border-radius: 100px;
	padding: 1px 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .3px;
	white-space: nowrap;
}

.gt-jm-empty {
	background: var(--gt-jm-white);
	border: 1px dashed var(--gt-jm-border);
	border-radius: 12px;
	padding: 20px;
	color: var(--gt-jm-text-2);
	font-size: 14px;
}

.gt-jm-empty p {
	margin: 0 0 10px;
}

@media (max-width: 560px) {
	.gt-jm-link {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.gt-jm-body {
		flex-basis: calc(100% - 62px);
	}

	.gt-jm-side {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		text-align: left;
	}

	.gt-jm-score b {
		display: inline;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gt-jm-link,
	.gt-jm-all {
		transition: none;
	}
}
