/* ==========================================================================
   Aurem — Careers: job openings (department chips, expandable role rows with
   the full description, a facts card and an Apply button).
   Uses brand tokens (aurem-base) + components (.ah-head, .ah-chip, .ah-btn,
   .ah-q__icon). The rest of the Careers page reuses the team / service widgets.
   ========================================================================== */

.ah-jobs { z-index: 1; padding: clamp(80px, 12vh, 140px) 0; }
.ah-jobs__intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 60px; margin-top: clamp(40px, 7vh, 72px); }
.ah-jobs__intro .ah-sec-title { max-width: 14ch; }
.ah-jobs__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(36px, 6vh, 56px); }
.ah-jobs__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-jobs__count { font-size: 13px; font-weight: 600; color: var(--ah-muted); }
.ah-jobs__count b { color: var(--ah-text); font-variant-numeric: tabular-nums; }

/* ---------- Role rows ---------- */
.ah-jobs__list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--ah-line); }
.ah-job { border-bottom: 1px solid var(--ah-line); transition: background-color .5s; }
.ah-job[hidden] { display: none; }
.ah-job.is-open { background: linear-gradient(180deg, rgba(255, 90, 42, .06), transparent 70%); }
.ah-job h3 { margin: 0; font: inherit; }
.ah-job__row {
	width: 100%; padding: clamp(20px, 3.4vh, 30px) 12px;
	display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, auto) 44px; align-items: center; gap: 20px;
	background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
}
.ah-job__dept { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ah-ember); }
.ah-job__title {
	font-family: var(--ah-display); font-size: clamp(1.5rem, 2.6vw, 2.5rem); font-weight: 600;
	letter-spacing: -.04em; line-height: 1.05; transition: transform .7s var(--ah-ease), color .4s;
}
.ah-job__row:hover .ah-job__title { transform: translateX(8px); }
.ah-job.is-open .ah-job__title { color: var(--ah-blush); }
.ah-job__meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ah-job__meta span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ah-line); font-size: 12px; font-weight: 600; color: var(--ah-muted); white-space: nowrap; }
.ah-job__meta .ah-job__new { border-color: rgba(61, 220, 132, .45); color: #3ddc84; }
.ah-job .ah-q__icon { justify-self: end; }
.ah-job__row:hover .ah-q__icon { border-color: var(--ah-ember); }
.ah-job.is-open .ah-q__icon { background: var(--ah-ember); border-color: var(--ah-ember); transform: rotate(180deg); }
.ah-job.is-open .ah-q__icon i:last-child { transform: rotate(0deg); }

/* ---------- Details ---------- */
.ah-jobs-js .ah-job__panel { height: 0; overflow: hidden; }
.ah-job__body {
	display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(28px, 5vw, 80px);
	padding: 4px 12px clamp(32px, 5vh, 48px) calc(150px + 32px);
}
.ah-job__about { margin: 0; max-width: 40rem; font-size: 17px; line-height: 1.7; color: var(--ah-text); }
.ah-job__group { margin-top: 28px; }
.ah-job__group h4 { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ah-muted); }
.ah-job__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ah-job__group li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--ah-muted); }
.ah-job__group li::before { content: "✦"; flex: none; font-size: 10px; line-height: 2.3; color: var(--ah-ember); }

.ah-job__card { align-self: start; position: sticky; top: 110px; }
.ah-job__card .ah-card__in { padding: 24px; display: grid; gap: 20px; }
.ah-job__facts { margin: 0; display: grid; gap: 14px; }
.ah-job__facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ah-line); }
.ah-job__facts dt { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ah-muted); }
.ah-job__facts dd { margin: 0; text-align: right; font-weight: 600; color: var(--ah-text); }
.ah-job__card .ah-btn { width: 100%; justify-content: space-between; }
.ah-job__note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ah-muted); }

/* ---------- Empty + open application ---------- */
.ah-jobs__empty { margin: 0; padding: 40px 12px; font-size: 17px; color: var(--ah-muted); border-bottom: 1px solid var(--ah-line); }
.ah-jobs__open {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
	margin-top: clamp(40px, 6vh, 64px); padding: clamp(24px, 3vw, 36px);
	border-radius: var(--ah-radius-lg); border: 1px solid var(--ah-line);
	background: radial-gradient(80% 140% at 100% 0%, rgba(200, 16, 46, .22), transparent 60%), rgba(255, 255, 255, .02);
}
.ah-jobs__open p { margin: 0; max-width: 34rem; font-family: var(--ah-display); font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.ah-jobs__open p em { font-family: var(--ah-serif); font-style: italic; font-weight: 400; color: var(--ah-blush); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ah-job__row { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px 16px; }
	.ah-job__dept { grid-column: 1; grid-row: 1; }
	.ah-job__title { grid-column: 1; grid-row: 2; }
	.ah-job__meta { grid-column: 1; grid-row: 3; justify-content: flex-start; }
	.ah-job .ah-q__icon { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
	.ah-job__body { grid-template-columns: 1fr; padding-left: 12px; }
	.ah-job__card { position: relative; top: auto; }
}
@media (max-width: 700px) {
	.ah-job__row { padding-left: 4px; padding-right: 4px; }
	.ah-job__body { padding-left: 4px; padding-right: 4px; }
	.ah-jobs__open { flex-direction: column; align-items: flex-start; }
	.ah-head .ah-label:last-child { display: none; }
	.ah-head { grid-template-columns: auto 1fr; }
}
