/*
 * Brainlabs Greenhouse Integration — positions grid styles.
 *
 * All selectors are namespaced with the `bl-gh-` prefix so they cannot
 * collide with theme or third-party plugin styles.
 *
 * Layout goals (see design reference):
 *   - 2-column grid on desktop, 1-column on mobile.
 *   - Card border: thin on default, thicker on hover/focus.
 *   - Left column: job title (bold) + pill-shaped tags for location & department.
 *   - Right column: circular black button containing a white arrow.
 */

.bl-gh-positions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	width: 100%;
	box-sizing: border-box;
	background-color: #000;
	border: 1px solid #000;
}

.bl-gh-positions * {
	box-sizing: border-box;
}

/* Single-column fallback on small screens. */
@media (max-width: 768px) {
	.bl-gh-positions {
		grid-template-columns: 1fr;
	}
}

/* ---------- Card ---------- */

.bl-gh-position-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px;
	outline: 1px solid #000;
	background: #fff;
	color: #000;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	position: relative;
}

.bl-gh-position-card:hover,
.bl-gh-position-card:focus-visible {
	transform: translate(4px, -4px);
	z-index: 1;
}

/* ---------- Info column ---------- */

.bl-gh-position-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	flex: 1 1 auto;
}

.bl-gh-position-title {
	font-size: 22px;
	font-family: "Kanit";
	font-weight: 400;
	line-height: 28px;
	margin: 0;
	color: inherit;
}

.bl-gh-position-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---------- Tags ---------- */

.bl-gh-position-tag {
	display: inline-flex;
	align-items: center;
	border-radius: 20px;
	background: #F2F2F2;
	font-family: "Kanit";
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	font-weight: 400;
	white-space: nowrap;
	padding: 2px 8px;
	justify-content: center;
	gap: 24px;
}

.bl-gh-position-tag--location{
	background: #F2F2F2;
}

.bl-gh-position-tag--department{
	background: #EBF9FF;
}

/* ---------- Arrow button ---------- */

.bl-gh-position-arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #000;
	color: #fff;
	transition: transform 0.15s ease;
}

.bl-gh-position-card:hover .bl-gh-position-arrow,
.bl-gh-position-card:focus-visible .bl-gh-position-arrow {
	transform: translateX(2px);
}

/* ---------- Empty / error states ---------- */

.bl-gh-positions--empty,
.bl-gh-positions--error {
	display: block;
	padding: 32px;
	text-align: center;
	border: 1px dashed #c7ccd4;
	color: #4b5563;
}

.bl-gh-positions--error-admin {
	margin-top: 12px;
	padding: 12px 16px;
	border: 1px solid #f0c36d;
	background: #fff8e5;
	color: #7a5c00;
	font-size: 13px;
}
