/* Paylocity Jobs — inherits the theme's fonts and colors; override freely. */
.pljobs {
	--pljobs-border: color-mix(in srgb, currentColor 18%, transparent);
	--pljobs-muted: color-mix(in srgb, currentColor 65%, transparent);
	--pljobs-tag-bg: color-mix(in srgb, currentColor 7%, transparent);
	--pljobs-radius: 8px;
	margin: 1.5em 0;
}

.pljobs__count {
	color: var(--pljobs-muted);
	font-size: 0.9em;
	margin: 0 0 0.75em;
}

.pljobs__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pljobs__job {
	border: 1px solid var(--pljobs-border);
	border-radius: var(--pljobs-radius);
	margin: 0 0 0.75em;
	padding: 0;
}

/* Title (h2) and tags stack in column 1; the chevron sits centered in column 2. */
.pljobs__summary {
	align-items: center;
	column-gap: 1em;
	cursor: pointer;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	list-style: none;
	padding: 1em 1.25em;
	row-gap: 0.4em;
}
.pljobs__summary > .pljobs__title,
.pljobs__summary > .pljobs__meta { grid-column: 1; }
.pljobs__summary > .pljobs__toggle {
	grid-column: 2;
	grid-row: 1 / span 2;
}
.pljobs__summary::-webkit-details-marker { display: none; }
.pljobs__summary:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: var(--pljobs-radius);
}

/*
 * Matches the site's 26px section titles (e.g. "Learn About This Quarter's
 * Featured Employee"). Extra selector weight neutralizes the theme's h2 styles.
 */
.pljobs .pljobs__summary h2.pljobs__title {
	border: 0;
	margin: 0;
	padding: 0;
	text-align: left;
	text-transform: none;
	color: var(--awb-color6, #595959);
	font-family: var(--h2_typography-font-family, "Montserrat"), sans-serif;
	font-size: 1.625rem !important; /* 26px at the site's 16px root; !important beats the theme's mobile h2 overrides */
	font-weight: 400;
	letter-spacing: 0.27px;
	line-height: 1.2;
}

.pljobs__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
}

.pljobs__tag {
	background: var(--pljobs-tag-bg);
	border-radius: 999px;
	font-size: 0.8em;
	padding: 0.15em 0.7em;
}

.pljobs__toggle {
	flex: none;
	height: 0.6em;
	width: 0.6em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-right: 0.25em;
}
details[open] > .pljobs__summary .pljobs__toggle { transform: rotate(-135deg); }

.pljobs__body {
	border-top: 1px solid var(--pljobs-border);
	padding: 1em 1.25em 1.25em;
}

/* Posting text matches the neighboring column: 15px with 25.8px line height. */
.pljobs__body,
.pljobs__body :is(p, li) {
	font-size: 0.9375rem; /* 15px */
	line-height: 1.72;
}

.pljobs__posted {
	color: var(--pljobs-muted);
	font-size: 0.9em;
	margin-top: 0;
}

.pljobs__description > :first-child { margin-top: 0; }

/* The theme zeroes list margins; match paragraph spacing so headings
   after a list get the same space as headings after a paragraph. */
.pljobs__description :is(ul, ol),
.pljobs__requirements :is(ul, ol) {
	margin-bottom: 1.25rem; /* 20px, same as the theme's paragraphs */
}
.pljobs__body li > :is(ul, ol) { margin-bottom: 0; }
.pljobs__subhead { margin: 1.25em 0 0.5em; }

.pljobs__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	margin: 1.5em 0 0;
}

/*
 * Apply button: a smaller version of the site's "Share Your Information"
 * button. Reads the theme's button variables, with its current values as
 * fallbacks. The extra selector weight beats the theme's .wp-element-button.
 */
.pljobs a.pljobs__apply.wp-element-button,
.pljobs a.pljobs__apply {
	background: #fff;
	border: 1px solid var(--button_border_color, #b9b9b9);
	border-radius: 0;
	box-shadow: none;
	color: var(--button_accent_color, #595959);
	display: inline-block;
	font-family: var(--button_typography-font-family, inherit);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.27px;
	line-height: 1.2;
	padding: 12px 22px;
	text-decoration: none;
	text-transform: none;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.pljobs a.pljobs__apply.wp-element-button:hover,
.pljobs a.pljobs__apply.wp-element-button:focus,
.pljobs a.pljobs__apply:hover,
.pljobs a.pljobs__apply:focus {
	background: #e0e0e0;
	border-color: var(--button_border_hover_color, #073d5e);
	color: var(--button_accent_hover_color, #595959);
}
.pljobs a.pljobs__apply:focus-visible {
	outline: 2px solid var(--button_border_hover_color, #073d5e);
	outline-offset: 2px;
}

.pljobs--error,
.pljobs--empty {
	border: 1px dashed var(--pljobs-border);
	border-radius: var(--pljobs-radius);
	padding: 1em 1.25em;
}

@media (prefers-reduced-motion: reduce) {
	.pljobs__toggle { transition: none; }
}
