/* "Aktuálně hledáme" — open positions, Figma 261:2574. */

.vacancies__container {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.vacancies__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}

.job-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.job-card__photo {
	display: block;
	width: 100%;
	aspect-ratio: 428 / 248;
	object-fit: cover;
}

/*
 * Figma fixes the body at 279px and distributes with space-between, so the
 * button sits on the floor of every card whatever the copy above it does.
 */
.job-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	padding: 24px;
	background: var(--color-white);
}

.job-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.job-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 12px;
	border-radius: 7px;
	background: var(--color-neutral-7);
	color: var(--color-neutral-1);
	font-size: var(--body-small-size);
	line-height: 1.4;
	letter-spacing: -0.14px;
	white-space: nowrap;
}

.job-chip img {
	width: 10px;
	height: 10px;
	flex: 0 0 10px;
}

/* The pin is a 7.5x10 export carrying preserveAspectRatio="none". */
.job-chip__pin { width: 8px; height: auto; flex-basis: 8px; }

.job-card__text {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.job-card__title {
	margin: 0;
	color: var(--color-primary);
	font-family: var(--font-body);
	font-size: var(--h6-size);
	font-weight: var(--h6-weight);
	line-height: var(--h6-lh);
	letter-spacing: var(--h6-ls);
}

.job-card__desc {
	color: var(--color-neutral-1);
	font-size: var(--body-secondary-size);
	line-height: 1.4;
	letter-spacing: var(--body-secondary-ls);
}

/* The button is pushed to the foot so all three cards line up. */
.job-card .btn { margin-top: auto; }

/*
 * The card links from its heading, and the anchor is stretched over the whole
 * card so the photo, the copy and the 'Detail pozice' pill all click through.
 * The pill itself is a <span>, so it must not swallow the pointer.
 */
.job-card--linked { position: relative; }

.job-card__title a {
	color: inherit;
	text-decoration: none;
}

.job-card__link::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: var(--radius-lg);
}

.job-card__cta { pointer-events: none; }

.job-card--linked:hover .job-card__title a { color: var(--color-accent); }

.job-card__link:focus-visible::after {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

@media (min-width: 768px) {
	.vacancies__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.vacancies { padding-block: 80px 100px; }
	.vacancies__container { gap: 60px; }
	.vacancies__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.job-card__body { min-height: 279px; }
}

/* The body aligns its children to the start, so the CTA needs an explicit
   stretch to pick up the site-wide full-width buttons on phones. */
@media (max-width: 767px) {
	.job-card .btn { align-self: stretch; }
}

