/* BambooHR Jobs — card-style listing */

.bamboohr-jobs {
	--bhrj-fg: #0f172a;
	--bhrj-muted: #64748b;
	--bhrj-border: rgba(15, 23, 42, 0.10);
	--bhrj-border-strong: rgba(15, 23, 42, 0.16);
	--bhrj-accent: #0f172a;
	--bhrj-link: #2563eb;
	--bhrj-card-bg: #ffffff;
	--bhrj-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	--bhrj-card-shadow-hover: 0 4px 14px rgba(15, 23, 42, 0.08);
	--bhrj-radius: 14px;

	color: var(--bhrj-fg);
	font-family: inherit;
	max-width: 880px;
	margin: 0 auto;
}

.bamboohr-jobs * {
	box-sizing: border-box;
}

.bamboohr-jobs__group + .bamboohr-jobs__group {
	margin-top: 2.5rem;
}

.bamboohr-jobs__group-title {
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0 0 1rem;
}

.bamboohr-jobs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bamboohr-jobs__row {
	margin: 0;
	padding: 0;
}

.bamboohr-jobs__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.1rem 1.35rem;
	color: inherit;
	text-decoration: none;
	background: var(--bhrj-card-bg);
	border: 1px solid var(--bhrj-border);
	border-radius: var(--bhrj-radius);
	box-shadow: var(--bhrj-card-shadow);
	transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a.bamboohr-jobs__item:hover,
a.bamboohr-jobs__item:focus-visible {
	border-color: var(--bhrj-border-strong);
	box-shadow: var(--bhrj-card-shadow-hover);
	outline: none;
}

a.bamboohr-jobs__item:focus-visible {
	box-shadow: var(--bhrj-card-shadow-hover), 0 0 0 2px var(--bhrj-accent);
}

.bamboohr-jobs__main {
	min-width: 0;
	flex: 1 1 auto;
}

.bamboohr-jobs__title {
	font-size: 1.0625rem;
	font-weight: 600;
	margin: 0 0 0.3rem;
	letter-spacing: -0.005em;
	line-height: 1.3;
}

.bamboohr-jobs__meta {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--bhrj-muted);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.5rem;
}

.bamboohr-jobs__sep {
	opacity: 0.45;
}

.bamboohr-jobs__action {
	flex: 0 0 auto;
}

.bamboohr-jobs__apply {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 500;
	font-size: 0.9375rem;
	color: var(--bhrj-link);
	background: #fff;
	border: 1px solid var(--bhrj-border);
	padding: 0.5rem 0.9rem;
	cursor: pointer;
	border-radius: 999px;
	transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
	text-decoration: none;
	white-space: nowrap;
}

.bamboohr-jobs__apply svg {
	transition: transform 0.18s ease;
}

a.bamboohr-jobs__item:hover .bamboohr-jobs__apply,
a.bamboohr-jobs__item:focus-visible .bamboohr-jobs__apply,
.bamboohr-jobs__apply--modal:hover,
.bamboohr-jobs__apply--modal:focus-visible {
	border-color: var(--bhrj-link);
	background: rgba(37, 99, 235, 0.06);
	outline: none;
}

a.bamboohr-jobs__item:hover .bamboohr-jobs__apply svg,
a.bamboohr-jobs__item:focus-visible .bamboohr-jobs__apply svg,
.bamboohr-jobs__apply--modal:hover svg,
.bamboohr-jobs__apply--modal:focus-visible svg {
	transform: translate(2px, -2px);
}

/* Notice / empty / error states */
.bamboohr-jobs--notice {
	border: 1px dashed var(--bhrj-border-strong);
	border-radius: var(--bhrj-radius);
	padding: 1.25rem 1.5rem;
	color: var(--bhrj-muted);
	text-align: center;
	background: #fff;
}

.bamboohr-jobs--notice p {
	margin: 0;
}

/* Modal */
.bamboohr-jobs-modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 1rem;
}

.bamboohr-jobs-modal__inner {
	background: #fff;
	border-radius: var(--bhrj-radius, 14px);
	width: 100%;
	max-width: 960px;
	height: 80vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.bamboohr-jobs-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.bamboohr-jobs-modal__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
}

.bamboohr-jobs-modal__close {
	background: transparent;
	border: 0;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
}

.bamboohr-jobs-modal__iframe {
	flex: 1 1 auto;
	width: 100%;
	border: 0;
}

/* Responsive */
@media (max-width: 640px) {
	.bamboohr-jobs__item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.85rem;
		padding: 1rem 1.1rem;
	}

	.bamboohr-jobs__action {
		align-self: flex-end;
	}

	.bamboohr-jobs__group-title {
		font-size: 1.25rem;
	}
}
