/* Jobs that match your CV, and the cover letter (29 November 2026). The cards,
   buttons and the upload box are the CV tools' own (cv.css, classes cva-);
   this file holds only what these two pages add: the list of matches with
   their keywords, and the letter. */

.cvm-list {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.cvm-div {
	margin-top: 10px;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--teal-d);
}

.cvm-div:first-child {
	margin-top: 0;
}

.cvm-item {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 16px;
	padding: 16px;
	border: 1.5px solid var(--line);
	border-radius: 16px;
	background: #fff;
	transition: border-color 0.2s;
}

.cvm-item:hover {
	border-color: var(--teal);
}

.cvm-score {
	align-self: start;
	display: grid;
	place-items: center;
	padding: 14px 6px;
	border-radius: 14px;
	background: var(--ink);
	color: #fff;
	text-align: center;
}

.cvm-score b {
	font-size: 1.5rem;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.cvm-score small {
	margin-top: 2px;
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--teal-l);
}

.cvm-body {
	min-width: 0;
}

.cvm-body h3 {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.cvm-body h3 a {
	color: var(--ink);
	text-decoration: none;
}

.cvm-body h3 a:hover,
.cvm-body h3 a:focus-visible {
	color: var(--teal-d);
	text-decoration: underline;
}

.cvm-meta {
	margin: 3px 0 0 !important;
	color: var(--muted);
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}

.cvm-kw {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.cvm-kw li {
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.82rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.cvm-kw .cvm-lab {
	padding-left: 0;
	min-width: 76px;
	color: var(--muted);
	font-weight: 700;
	font-size: 0.78rem;
}

.cvm-kw .is-has {
	background: var(--ok-bg);
	color: var(--ok);
	font-weight: 600;
}

.cvm-kw .is-lacks {
	background: var(--soft);
	color: var(--muted);
}

.cvm-kw .cvm-more {
	color: var(--muted);
	padding-left: 2px;
}

.cvm-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.cvm-acts .cva-btn {
	padding: 9px 16px;
	font-size: 0.9rem;
}

.cvm-mail {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 22px;
	padding: 14px 16px;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	background: var(--soft);
	cursor: pointer;
	font-size: 0.94rem;
}

.cvm-mail input {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--teal-d);
}

.cvm-mail b {
	color: var(--ink);
}

.cvm-up {
	margin-top: 18px;
}

.cvm-text {
	width: 100%;
	min-height: 140px;
	padding: 12px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	font: inherit;
	font-size: 0.92rem;
	color: var(--text);
	background: #fff;
}

.cvm-text:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 1px;
}

.cvm .cva-sub a,
.cvm .cva-small a {
	color: var(--teal-d);
	font-weight: 700;
}

/* ------------------------------------------------------------ the letter */

.cvl-letter {
	margin-top: 18px;
	padding: 22px;
	border: 1.5px solid var(--line);
	border-radius: 16px;
	background: #fff;
	color: var(--text);
	font-size: 0.98rem;
	line-height: 1.65;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.cvl-letter[contenteditable='true']:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 2px;
}

.cvl-facts {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--warn-bg);
	color: var(--warn);
	font-size: 0.9rem;
}

.cvl-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.cvl-list li {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
}

.cvl-list small {
	display: block;
	color: var(--muted);
}

@media (max-width: 560px) {
	.cvm-item {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.cvm-score {
		grid-template-columns: auto auto;
		justify-content: start;
		gap: 8px;
		padding: 8px 14px;
		align-items: baseline;
	}

	.cvm-kw .cvm-lab {
		min-width: 100%;
	}

	.cvm-acts .cva-btn {
		flex: 1 1 100%;
		text-align: center;
	}

	.cvl-letter {
		padding: 16px;
	}
}
