/* RPC Job Positions — frontend styles */

.rpcg-jobs-widget {
	width: 100%;
}

.rpcg-jobs-widget * {
	box-sizing: border-box;
}

.rpcg-jobs-item {
	border-bottom: 1px solid #e5e5e5;
}

.rpcg-jobs-header {
	appearance: none;
	-webkit-appearance: none;
	background-color: transparent;
	background-image: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 0;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	color: inherit;
	font: inherit;
	line-height: normal;
	transition: background-color 250ms ease, border-color 250ms ease;
}

.rpcg-jobs-header:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.rpcg-jobs-heading {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rpcg-jobs-title {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
}

.rpcg-jobs-subtitle {
	margin-top: 8px;
	font-size: 16px;
	line-height: 1.4;
	color: #6b6b6b;
}

.rpcg-jobs-toggle {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 6px;
	white-space: nowrap;
}

.rpcg-jobs-label {
	font-size: 16px;
	line-height: 1;
	color: #1a1a1a;
}

.rpcg-jobs-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #1a1a1a;
	transition: transform 250ms ease;
}

.rpcg-jobs-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.rpcg-jobs-item--open .rpcg-jobs-icon {
	transform: rotate(180deg);
}

/* ---------- Content panel — height animates via grid-template-rows,
   no JS measurement needed. ---------- */

.rpcg-jobs-panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 350ms ease;
}

.rpcg-jobs-item--open .rpcg-jobs-panel {
	grid-template-rows: 1fr;
}

.rpcg-jobs-panel-inner {
	overflow: hidden;
	min-height: 0;
}

.rpcg-jobs-content {
	padding-bottom: 28px;
	font-size: 16px;
	line-height: 1.7;
	color: #3a3a3a;
}

.rpcg-jobs-content > *:first-child {
	margin-top: 0;
}

.rpcg-jobs-content > *:last-child {
	margin-bottom: 0;
}

/* ---------- Responsive: hide the "Detalii" label under 1025px,
   keep the chevron. ---------- */

@media (max-width: 1024px) {
	.rpcg-jobs-label {
		display: none;
	}

	.rpcg-jobs-title {
		font-size: 24px;
	}

	.rpcg-jobs-header {
		padding: 20px 0;
		gap: 16px;
	}
}
