/* Careers — Job cards block (/careers/) and job pages (/careers/<job>/).
   Loaded only where needed: inc/careers/assets.php. Colours follow css/style.css (#6930AD, #9F5CF1, #E49216). */

/* ---------- Job cards block ---------- */
.acx-jobs { background: #fff; color: #000; }
.acx-jobs__top { max-width: 880px; margin: 0 auto 64px; text-align: center; }
.acx-jobs__intro { margin-top: 16px; }
.acx-jobs__group + .acx-jobs__group { margin-top: 72px; }
.acx-jobs__group-title {
	display: flex; align-items: baseline; gap: 12px;
	margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid #e4e4e4;
	font-size: 28px; font-weight: 700; line-height: 1.2;
}
.acx-jobs__count { font-size: 16px; font-weight: 400; color: #6b6b6b; }
.acx-jobs__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.acx-jobs__grid > li { display: flex; margin: 0; padding: 0; }
.acx-jobs__grid > li::before { display: none; }
.acx-jobs__empty { max-width: 640px; margin: 0 auto; text-align: center; font-size: 18px; }

.acx-job-card {
	position: relative; display: flex; flex-direction: column; gap: 14px; width: 100%;
	padding: 28px; border: 1px solid #e4e4e4; border-radius: 12px; background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.acx-job-card:hover { border-color: #6930AD; box-shadow: 0 8px 24px rgba(105, 48, 173, .12); }
.acx-job-card:focus-within { outline: 2px solid #6930AD; outline-offset: 2px; }
.acx-job-card__badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #b86f00; }
.acx-job-card__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; }
.acx-job-card__link { color: #000; text-decoration: none; }
.acx-job-card__link::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.acx-job-card__link:focus-visible { outline: none; }
.acx-job-card__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.acx-job-card__chips li { margin: 0; padding: 4px 10px; border-radius: 14px; background: #f3edfa; color: #4b2080; font-size: 13px; font-weight: 600; line-height: 1.3; }
.acx-job-card__chips li::before { display: none; }
.acx-job-card__summary { flex: 1; margin: 0; font-size: 16px; line-height: 1.5; color: #333; }
.acx-job-card__more { font-size: 15px; font-weight: 700; color: #6930AD; }

/* ---------- Job page ---------- */
.acx-job-hero .label-purple { margin-bottom: 16px; }
.acx-job-hero__company { margin: 16px 0 0; color: #bdbdbd; }
.acx-job-closed { padding: 16px 0; background: #fbf3dc; color: #5c3d00; font-weight: 600; }
.acx-job-closed a { color: #6930AD; }

.acx-job-body { padding: 80px 0 96px; background: #fff; color: #000; }
.acx-job-layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "content facts";
	gap: 64px; align-items: start;
}
.acx-job-content { grid-area: content; min-width: 0; max-width: 760px; }
.acx-job-content__h { margin: 40px 0 16px; font-size: 26px; font-weight: 700; line-height: 1.25; }
.acx-job-content > .acx-job-content__h:first-child,
.acx-job-remote-note + .acx-job-content__h { margin-top: 0; }
.acx-job-remote-note { margin: 0 0 32px; padding: 12px 16px; border-radius: 8px; background: #f3edfa; font-weight: 600; }

.acx-job-facts { grid-area: facts; position: sticky; top: 120px; padding: 28px; border: 1px solid #e4e4e4; border-radius: 12px; }
.acx-facts { display: flex; flex-direction: column; gap: 16px; margin: 0 0 24px; }
.acx-facts > div { display: flex; flex-direction: column; gap: 2px; }
.acx-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #6b6b6b; }
.acx-facts dd { margin: 0; font-size: 16px; font-weight: 600; }
.acx-facts__apply { width: 100%; }
.acx-facts__apply:hover { border-color: #6930AD; color: #6930AD; }

.acx-job-apply { padding: 80px 0 96px; background: #f6f6f6; color: #000; scroll-margin-top: 100px; }
.acx-job-apply .title-48 { margin-bottom: 32px; text-align: center; }
.acx-apply { padding: 32px; border-radius: 12px; background: #fff; }
.acx-apply__fallback { margin: 16px 0 0; }

@media (max-width: 1023px) {
	.acx-jobs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.acx-job-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "facts" "content"; gap: 40px; }
	.acx-job-facts { position: static; }
}
@media (max-width: 639px) {
	.acx-jobs__grid { grid-template-columns: minmax(0, 1fr); }
	.acx-jobs__group-title { font-size: 24px; }
	.acx-job-card { padding: 22px; }
	.acx-job-body, .acx-job-apply { padding: 56px 0 64px; }
	.acx-apply { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.acx-job-card { transition: none; }
}
