/* ==========================================================================
   Volné pozice — CPT archive + single
   ========================================================================== */

/* --- Archive: head row --- */
.pozice-archive__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
	padding-bottom: 1.5rem;
	border-bottom: 2px solid var(--border);
}
.pozice-archive__title {
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	color: var(--heading);
	margin-top: 0.35rem;
}
.pozice-archive__count {
	display: inline-flex;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.6rem 1.1rem;
	border-radius: var(--radius-pill);
	background: var(--primary-soft);
	color: var(--primary-dark);
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1;
}
.pozice-archive__count span { font-size: 0.85rem; font-weight: 600; color: var(--primary-dark); }

/* --- Archive: job cards grid (full 1440 width) --- */
.pozice-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}
.pozice-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	background: var(--bg-body);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	color: var(--heading);
	overflow: hidden;
}
/* Green accent rail down the left edge, revealed on hover. */
.pozice-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--primary);
	opacity: 0;
}
.pozice-card:hover {
	border-color: var(--primary);
}
.pozice-card:hover::before { opacity: 1; }

.pozice-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}
.pozice-card__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--primary-soft);
}
.pozice-card__icon svg { width: 1.45rem; height: 1.45rem; color: var(--primary); }
.pozice-card:hover .pozice-card__icon { background: var(--primary); }
.pozice-card:hover .pozice-card__icon svg { color: #fff; }
.pozice-card__badge {
	padding: 0.35rem 0.75rem;
	border-radius: var(--radius-pill);
	background: var(--bg-alt);
	border: 1px solid var(--border);
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--body);
}
.pozice-card__title {
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--heading);
	margin-bottom: 0.7rem;
}
.pozice-card__loc {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--primary-dark);
	margin-bottom: 1rem;
}
.pozice-card__loc svg { width: 1rem; height: 1rem; color: var(--primary); }
.pozice-card__summary {
	font-size: 0.96rem;
	line-height: 1.65;
	color: var(--body);
	margin-bottom: 1.5rem;
}
.pozice-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: auto;
	font-weight: 800;
	font-size: 0.95rem;
	color: var(--primary);
}
.pozice-card__cta svg { width: 1.1rem; height: 1.1rem; }
.pozice-card:hover .pozice-card__cta { color: var(--primary-dark); }
.pozice-card:hover .pozice-card__cta svg { transform: translateX(3px); }

/* --- Archive: "why work with us" navy band --- */
.pozice-why__band {
	position: relative;
	overflow: hidden;
	background: var(--navy);
	border-radius: var(--radius-lg);
	padding: clamp(2.25rem, 5vw, 3.75rem);
}
.pozice-why__intro { position: relative; z-index: 1; max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.pozice-why__title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); color: #fff; margin: 0.4rem 0 0.9rem; }
.pozice-why__lead { color: rgba(255, 255, 255, 0.72); font-size: 1.05rem; line-height: 1.7; }
.pozice-why__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.25rem, 2.5vw, 2rem);
}
.pozice-why__item {
	padding-top: 1.5rem;
	border-top: 2px solid rgba(255, 255, 255, 0.14);
}
.pozice-why__ico {
	display: grid;
	place-items: center;
	width: 2.9rem;
	height: 2.9rem;
	border-radius: 50%;
	background: rgba(70, 163, 255, 0.18);
	margin-bottom: 1.1rem;
}
.pozice-why__ico svg { width: 1.4rem; height: 1.4rem; color: #7db8ff; }
.pozice-why__item-title { font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.pozice-why__item-text { font-size: 0.92rem; line-height: 1.6; color: rgba(255, 255, 255, 0.66); }

@media (max-width: 960px) {
	.pozice-why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.pozice-grid { grid-template-columns: 1fr; }
	.pozice-why__grid { grid-template-columns: 1fr; }
	.pozice-archive__head { align-items: flex-start; }
}


/* --- Single --- */
.pozice-single__head {
	background: var(--bg-hero);
	padding-block: clamp(2.5rem, 5vw, 4rem);
	border-bottom: 1px solid var(--border);
}
.pozice-single__back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--primary);
	margin-bottom: 1.25rem;
}
.pozice-single__back svg { width: 1rem; height: 1rem; transform: rotate(180deg); }
.pozice-single__back:hover { color: var(--primary-dark); }
.pozice-single__title { font-size: clamp(2rem, 4vw, 3rem); color: var(--heading); margin-bottom: 1rem; }
.pozice-single__meta { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.pozice-single__tag { font-size: 0.95rem; }

.pozice-single__body { display: flex; flex-direction: column; gap: 2.5rem; }
.pozice-single__cta {
	padding: clamp(1.75rem, 3vw, 2.5rem);
	text-align: center;
	background: var(--bg-mint);
	border-color: transparent;
}
.pozice-single__cta-title { font-size: 1.4rem; color: var(--heading); margin-bottom: 0.5rem; }
.pozice-single__cta-text { color: var(--body); margin-bottom: 1.5rem; }

/* No published positions: one honest card instead of demo listings. */
.pozice-empty {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.25rem 1.75rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.pozice-empty__title { margin: 0 0 0.35rem; font-size: 1.25rem; }
.pozice-empty__text { margin: 0; max-width: 62ch; }
@media (max-width: 720px) {
	.pozice-empty { grid-template-columns: 1fr; justify-items: start; }
}
