/* Zenople Jobs Feed
 * Selectors are scoped to .zj-jobs so BeTheme's global list, button and
 * heading styles don't leak in. Fonts are inherited from the theme.
 */

.zj-jobs {
	--zj-red: #ce1f3c;
	--zj-red-dark: #a8172f;
	--zj-blue: #0485c3;
	--zj-gray: #606567;
	--zj-gray-light: #94999d;
	--zj-border: #e3e5e6;
	--zj-bg: #ffffff;
	--zj-radius: 6px;

	display: grid;
	gap: 20px;
	color: var(--zj-gray);
}

/* Card */
.zj-jobs .zj-job {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px 32px;
	align-items: center;
	padding: 28px 32px;
	background: var(--zj-bg);
	border: 1px solid var(--zj-border);
	border-left: 4px solid var(--zj-red);
	border-radius: var(--zj-radius);
	transition: box-shadow .2s ease, border-color .2s ease;
}

.zj-jobs .zj-job:hover {
	border-left-color: var(--zj-blue);
	box-shadow: 0 6px 20px rgba(96, 101, 103, .12);
}

/* Left column */
.zj-jobs .zj-job__category {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--zj-blue);
}

.zj-jobs .zj-job__title {
	margin: 0 0 6px;
	padding: 0;
	line-height: 1.2;
	color: var(--zj-gray);
}

.zj-jobs .zj-job__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--zj-gray-light);
}

.zj-jobs .zj-job__meta > span + span::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin: 0 12px;
	vertical-align: middle;
	border-radius: 50%;
	background: var(--zj-gray-light);
}

/* Right column */
.zj-jobs .zj-job__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	text-align: right;
}

.zj-jobs .zj-job__salary {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--zj-gray);
}

.zj-jobs a.zj-job__apply,
.zj-jobs a.zj-job__apply:visited {
	display: inline-block;
	margin: 0;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	color: #fff;
	background: var(--zj-red);
	border: 0;
	border-radius: 4px;
	box-shadow: none;
	transition: background-color .2s ease;
}

.zj-jobs a.zj-job__apply:hover,
.zj-jobs a.zj-job__apply:focus-visible {
	color: #fff;
	background: var(--zj-red-dark);
	text-decoration: none;
}

.zj-jobs a.zj-job__apply:focus-visible,
.zj-jobs .zj-job__details summary:focus-visible {
	outline: 2px solid var(--zj-blue);
	outline-offset: 2px;
}

/* Details (full width under both columns) */
.zj-jobs .zj-job__details {
	grid-column: 1 / -1;
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--zj-border);
}

.zj-jobs .zj-job__details summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	color: var(--zj-blue);
}

.zj-jobs .zj-job__details summary::-webkit-details-marker {
	display: none;
}

.zj-jobs .zj-job__details summary::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.zj-jobs .zj-job__details[open] summary::after {
	margin-top: 3px;
	transform: rotate(-135deg);
}

.zj-jobs .zj-job__details summary:hover {
	color: var(--zj-red);
}

.zj-jobs .zj-job__desc {
	margin-top: 14px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--zj-gray);
}

.zj-jobs .zj-job__desc p {
	margin: 0 0 12px;
	padding: 0;
}

.zj-jobs .zj-job__desc ul,
.zj-jobs .zj-job__desc ol {
	margin: 0 0 14px 20px;
	padding: 0;
}

.zj-jobs .zj-job__desc ul li {
	margin: 0 0 4px;
	padding: 0;
	list-style: disc;
}

.zj-jobs .zj-job__desc ol li {
	margin: 0 0 4px;
	padding: 0;
	list-style: decimal;
}

.zj-jobs .zj-job__desc li::marker {
	color: var(--zj-red);
}

.zj-jobs .zj-job__desc li::before {
	display: none;
}

.zj-jobs .zj-job__desc > :last-child {
	margin-bottom: 0;
}

/* States */
.zj-jobs .zj-empty {
	margin: 0;
	padding: 28px 32px;
	text-align: center;
	color: var(--zj-gray-light);
	border: 1px dashed var(--zj-border);
	border-radius: var(--zj-radius);
}

.zj-error {
	padding: 12px 16px;
	color: var(--zj-red, #ce1f3c);
	border: 1px solid #ce1f3c;
	border-radius: 4px;
}

/* Accessibility helper (BeTheme may not define it) */
.zj-jobs .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Mobile */
@media (max-width: 767px) {
	.zj-jobs .zj-job {
		grid-template-columns: 1fr;
		padding: 22px 20px;
	}

	.zj-jobs .zj-job__side {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		text-align: left;
	}
}
