/* Aspect Careers – front end. Override the tokens in your theme to re-brand. */
.ac-careers {
	--ac-accent: #0b5cad;
	--ac-accent-ink: #ffffff;
	--ac-ink: #1f2933;
	--ac-muted: #66737f;
	--ac-line: #dfe4ea;
	--ac-surface: #ffffff;
	--ac-soft: #f4f7fa;
	--ac-radius: 10px;
	color: var(--ac-ink);
	max-width: 1100px;
	margin: 0 auto;
}
.ac-careers *, .ac-careers *::before, .ac-careers *::after { box-sizing: border-box; }
.ac-muted { color: var(--ac-muted); font-size: .92em; }

/* Buttons */
.ac-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .6em 1.1em; border-radius: 6px; border: 1px solid var(--ac-accent);
	background: var(--ac-accent); color: var(--ac-accent-ink) !important; font: inherit; font-weight: 600;
	text-decoration: none !important; cursor: pointer; line-height: 1.2;
}
.ac-btn:hover { filter: brightness(1.08); }
.ac-btn--ghost { background: transparent; color: var(--ac-accent) !important; }
.ac-btn--small { padding: .45em .85em; font-size: .9em; }
.ac-btn--primary { padding: .75em 1.4em; }
.ac-btn[disabled] { opacity: .6; cursor: progress; }
.ac-link-btn { background: none; border: 0; padding: 0; color: #b42318; font: inherit; text-decoration: underline; cursor: pointer; }

/* Listing */
.ac-careers__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ac-filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 520px; }
.ac-filters input, .ac-filters select {
	padding: .55em .7em; border: 1px solid var(--ac-line); border-radius: 6px; font: inherit; background: var(--ac-surface); min-width: 0;
}
.ac-filters input[type="search"] { flex: 1 1 200px; }
.ac-careers__portal { margin: 0; }
.ac-job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ac-job-card {
	display: flex; flex-direction: column; gap: 10px; padding: 20px;
	background: var(--ac-surface); border: 1px solid var(--ac-line); border-radius: var(--ac-radius);
	transition: border-color .15s, box-shadow .15s;
}
.ac-job-card:hover { border-color: var(--ac-accent); box-shadow: 0 6px 20px rgba(15, 40, 70, .08); }
.ac-job-card__title { margin: 0; font-size: 1.15em; }
.ac-job-card__title a { color: inherit; text-decoration: none; }
.ac-job-card__excerpt { color: var(--ac-muted); flex: 1; }
.ac-job-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chips li { margin: 0; padding: .2em .65em; border-radius: 999px; background: var(--ac-soft); font-size: .85em; }
.ac-empty { padding: 36px; text-align: center; background: var(--ac-soft); border-radius: var(--ac-radius); }
.ac-pagination { margin-top: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.ac-pagination .page-numbers { padding: .4em .8em; border: 1px solid var(--ac-line); border-radius: 6px; text-decoration: none; }
.ac-pagination .current { background: var(--ac-accent); color: var(--ac-accent-ink); border-color: var(--ac-accent); }

/* Single job */
.ac-job__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ac-back { text-decoration: none; font-size: .92em; }
.ac-apply { margin-top: 36px; padding: 24px; background: var(--ac-soft); border-radius: var(--ac-radius); }
.ac-apply h2 { margin-top: 0; }

/* Forms */
.ac-form { display: flex; flex-direction: column; gap: 14px; }
.ac-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.ac-form label .ac-muted { font-weight: 400; }
.ac-form input[type="text"], .ac-form input[type="email"], .ac-form input[type="tel"], .ac-form input[type="url"],
.ac-form input[type="file"], .ac-form textarea {
	width: 100%; padding: .65em .75em; border: 1px solid var(--ac-line); border-radius: 6px; font: inherit; font-weight: 400; background: var(--ac-surface);
}
.ac-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ac-form .ac-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.ac-form .ac-check input { margin-top: .3em; }
.ac-form button[type="submit"] { align-self: flex-start; }

/* Notices */
.ac-notice { padding: 12px 16px; border-radius: 8px; border-left: 4px solid var(--ac-muted); background: var(--ac-surface); margin: 0 0 16px; }
.ac-notice ul { margin: 6px 0 0 18px; }
.ac-notice--error { border-color: #b42318; background: #fef3f2; }
.ac-notice--success { border-color: #067647; background: #ecfdf3; }
.ac-notice--info { border-color: var(--ac-accent); background: #eff6ff; }

/* Login box */
.ac-login { padding: 20px; background: var(--ac-surface); border: 1px solid var(--ac-line); border-radius: var(--ac-radius); max-width: 460px; }
.ac-login h3 { margin-top: 0; }
.ac-login__alt { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }

/* Status badges */
.ac-badge { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .82em; font-weight: 600; white-space: nowrap; background: #eef2f6; color: #364152; }
.ac-badge--review { background: #eff6ff; color: #1849a9; }
.ac-badge--shortlisted { background: #ecfdf3; color: #067647; }
.ac-badge--interview { background: #f4f3ff; color: #5925dc; }
.ac-badge--offer { background: #fffaeb; color: #b54708; }
.ac-badge--hired { background: #067647; color: #fff; }
.ac-badge--unsuccessful { background: #fef3f2; color: #b42318; }
.ac-badge--withdrawn { background: #f2f4f7; color: #667085; }

/* Portal */
.ac-portal__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.ac-portal__head h2 { margin: 0 0 4px; }
.ac-portal__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-app-card { padding: 20px; margin-bottom: 16px; background: var(--ac-surface); border: 1px solid var(--ac-line); border-radius: var(--ac-radius); }
.ac-app-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ac-app-card__head h3 { margin: 0 0 2px; font-size: 1.1em; }
.ac-app-card__head h3 a { color: inherit; }
.ac-app-card__head p { margin: 0; }
.ac-app-card__msg { margin: 14px 0; }
.ac-app-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--ac-line); padding-top: 12px; }
.ac-app-card__foot form { margin: 0; }

.ac-steps { list-style: none; display: flex; margin: 18px 0 0; padding: 0; counter-reset: step; }
.ac-steps li { flex: 1; position: relative; text-align: center; font-size: .8em; color: var(--ac-muted); margin: 0; }
.ac-steps li::before {
	counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; margin: 0 auto 6px; border-radius: 50%; background: var(--ac-soft); border: 2px solid var(--ac-line);
	position: relative; z-index: 1; font-weight: 700;
}
.ac-steps li::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--ac-line); }
.ac-steps li:first-child::after { display: none; }
.ac-steps li.is-done::before { content: "✓"; background: var(--ac-accent); border-color: var(--ac-accent); color: var(--ac-accent-ink); }
.ac-steps li.is-done::after, .ac-steps li.is-current::after { background: var(--ac-accent); }
.ac-steps li.is-current { color: var(--ac-ink); font-weight: 700; }
.ac-steps li.is-current::before { border-color: var(--ac-accent); color: var(--ac-accent); background: var(--ac-surface); }

.ac-timeline summary { cursor: pointer; color: var(--ac-muted); font-size: .92em; }
.ac-timeline ul { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--ac-line); }
.ac-timeline li { margin: 0 0 6px; font-size: .92em; }
.ac-timeline time { color: var(--ac-muted); margin-right: 6px; }

@media (max-width: 640px) {
	.ac-form__row { grid-template-columns: 1fr; }
	.ac-job-grid { grid-template-columns: 1fr; }
	.ac-steps li span { display: none; }
	.ac-steps li.is-current span { display: block; }
	.ac-apply { padding: 16px; }
}

/* Email-code sign-in */
.ac-otp input[name="code"] { font-size: 1.4em; letter-spacing: .3em; max-width: 220px; }
.ac-otp__links { margin-top: 10px; font-size: .92em; }
.ac-link-btn--plain { color: var(--ac-accent); }

/* Staff management console */
.ac-manage__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.ac-manage__head p { margin: 0; }
.ac-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--ac-line); }
.ac-tabs a { padding: .55em 1.1em; text-decoration: none; color: var(--ac-muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.ac-tabs a.is-active { color: var(--ac-accent); border-bottom-color: var(--ac-accent); }
.ac-manage__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ac-manage__title h2 { margin: 0; }
.ac-chipnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ac-chipnav a { padding: .3em .8em; border: 1px solid var(--ac-line); border-radius: 999px; text-decoration: none; color: var(--ac-ink); font-size: .88em; }
.ac-chipnav a span { color: var(--ac-muted); margin-left: 2px; }
.ac-chipnav a.is-active { background: var(--ac-accent); border-color: var(--ac-accent); color: var(--ac-accent-ink); }
.ac-chipnav a.is-active span { color: inherit; }
.ac-manage .ac-filters { margin-bottom: 14px; }
.ac-table-wrap { overflow-x: auto; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-surface); }
.ac-table { width: 100%; border-collapse: collapse; font-size: .94em; margin: 0; }
.ac-table th, .ac-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ac-line); vertical-align: top; }
.ac-table th { background: var(--ac-soft); font-weight: 600; white-space: nowrap; }
.ac-table tr:last-child td { border-bottom: 0; }
.ac-table .ac-chips { margin-top: 6px; }
.ac-table__cb { width: 36px; }
.ac-table__actions { white-space: nowrap; }
.ac-bulk, .ac-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ac-manage select, .ac-manage input[type="search"], .ac-manage input[type="email"], .ac-manage input[type="date"] {
	padding: .5em .65em; border: 1px solid var(--ac-line); border-radius: 6px; font: inherit; background: var(--ac-surface);
}
.ac-panel { background: var(--ac-surface); border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 18px; margin-bottom: 16px; }
.ac-panel h3 { margin: 0 0 10px; font-size: 1.05em; }
.ac-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-top: 14px; }
.ac-facts { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0 0 12px; }
.ac-facts dt { color: var(--ac-muted); }
.ac-facts dd { margin: 0; overflow-wrap: anywhere; }
.ac-answers dt { font-weight: 600; margin-top: 8px; }
.ac-answers dd { margin: 2px 0 0; }
.ac-note { background: var(--ac-soft); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.ac-plain { list-style: none; margin: 0; padding: 0; }
.ac-plain li { margin-bottom: 8px; }
.ac-fieldset { border: 1px solid var(--ac-line); border-radius: 8px; padding: 10px 14px; margin: 0; }
.ac-fieldset legend { font-weight: 600; padding: 0 4px; }
.ac-form select { width: 100%; padding: .65em .75em; border: 1px solid var(--ac-line); border-radius: 6px; font: inherit; font-weight: 400; background: var(--ac-surface); }
.ac-form input[type="date"] { width: 100%; padding: .65em .75em; border: 1px solid var(--ac-line); border-radius: 6px; font: inherit; font-weight: 400; }
.ac-check--inline { align-self: end; padding-bottom: .7em; }
.ac-copy { display: block; padding: 8px 10px; background: var(--ac-soft); border-radius: 6px; overflow-wrap: anywhere; font-size: .85em; user-select: all; }
@media (max-width: 800px) { .ac-grid-2 { grid-template-columns: 1fr; } }

/* Applications overview by job */
.ac-section-title { margin: 0 0 12px; font-size: 1.25em; }
.ac-overview__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ac-overview__bar .ac-inline { margin-top: 0; }
.ac-joblist { display: flex; flex-direction: column; gap: 10px; }
.ac-jobrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; background: var(--ac-surface); border: 1px solid var(--ac-line); border-radius: var(--ac-radius); color: inherit !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.ac-jobrow:hover { border-color: var(--ac-accent); box-shadow: 0 4px 14px rgba(15, 40, 70, .07); }
.ac-jobrow__main { flex: 1 1 260px; min-width: 0; }
.ac-jobrow__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 2px; }
.ac-jobrow__counts { display: flex; gap: 4px; flex-wrap: wrap; }
.ac-count { min-width: 64px; text-align: center; padding: 6px 8px; border-radius: 8px; background: var(--ac-soft); }
.ac-count b { display: block; font-size: 1.15em; line-height: 1.2; }
.ac-count span { display: block; font-size: .72em; color: var(--ac-muted); text-transform: uppercase; letter-spacing: .03em; }
.ac-count.is-zero b { color: var(--ac-muted); font-weight: 400; }
.ac-count--total { background: var(--ac-accent); color: var(--ac-accent-ink); }
.ac-count--total span { color: inherit; opacity: .85; }
.ac-badge--new { background: #b42318; color: #fff; }
.ac-jobhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ac-jobhead h2 { margin: 0 0 8px; font-size: 1.3em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-jobhead p { margin: 8px 0 0; }
.ac-jobhead .ac-inline { margin-top: 0; }

/* Job form */
.ac-form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.ac-salary { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.ac-form input[inputmode="decimal"] { width: 100%; padding: .65em .75em; border: 1px solid var(--ac-line); border-radius: 6px; font: inherit; font-weight: 400; background: var(--ac-surface); }
.ac-inline--tight { margin-top: 0; flex-wrap: nowrap; }
.ac-inline--tight input { flex: 1; }
.ac-inline--tight select { width: auto; flex: 0 0 auto; }
.ac-form label > select[data-ac-addq] { margin-bottom: 6px; }
@media (max-width: 760px) {
	.ac-form__row--3, .ac-salary { grid-template-columns: 1fr; }
	.ac-jobrow__counts { width: 100%; }
	.ac-count { flex: 1; min-width: 0; }
}
