/**
 * Careers, front end.
 *
 * Deliberately thin. The theme already supplies .card, .btn, .form, .field and
 * .notice, so this only adds the shapes that do not exist yet — the vacancy
 * row, the facts grid and the tick list. Everything reads from the theme's own
 * custom properties, so a colour or radius change in Site Settings carries
 * through here without this file knowing about it.
 */

.njob-list {
	display: grid;
	gap: 1rem;
	margin: clamp(2rem, 4vw, 3rem) 0;
}

.njob {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1rem, 3vw, 2.5rem);
	flex-wrap: wrap;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.njob__body { min-width: 0; flex: 1 1 22rem; }

.njob__title {
	font-family: var(--f-display);
	font-size: var(--t-xl);
	letter-spacing: -.02em;
	line-height: 1.1;
	margin: 0;
}

.njob__title a { color: inherit; }

@media (hover: hover) and (pointer: fine) {
	.njob__title a:hover { color: var(--ac); }
}

.njob__summary {
	color: var(--tx-2);
	font-size: var(--t-sm);
	line-height: 1.7;
	margin: .6rem 0 0;
	max-width: 62ch;
}

.njob__meta {
	color: var(--tx-3);
	font-size: var(--t-xs);
	letter-spacing: .04em;
	margin: .85rem 0 0;
}

.njob__side { flex: none; }

/* A closed role stays readable but stops competing with the open ones. */
.njob.is-closed { opacity: .58; }

.njob__closed {
	display: inline-block;
	padding: .5rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	font-size: var(--t-xs);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tx-3);
}

/* ------------------------------------------------------ single role */

.njob-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 1px;
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
}

.njob-fact {
	background: var(--bg-2);
	padding: 1.1rem 1.25rem;
}

.njob-fact dt {
	font-size: var(--t-xs);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tx-3);
	margin-bottom: .4rem;
}

.njob-fact dd {
	margin: 0;
	font-size: var(--t-sm);
	color: var(--tx);
}

.njob-h {
	font-family: var(--f-display);
	font-size: var(--t-lg);
	letter-spacing: -.02em;
	margin: clamp(2rem, 4vw, 3rem) 0 1rem;
}

.njob-ticks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .7rem;
}

.njob-ticks li {
	position: relative;
	padding-left: 1.75rem;
	color: var(--tx-2);
	line-height: 1.65;
}

/* Drawn rather than an icon font or an SVG per item: one rule, no requests. */
.njob-ticks li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .5em;
	width: .5rem;
	height: .28rem;
	border-left: 2px solid var(--ac);
	border-bottom: 2px solid var(--ac);
	transform: rotate(-45deg);
}

/* ---------------------------------------------------------- applying */

.njob-apply {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--line);
	scroll-margin-top: calc(var(--header-h) + 2rem);
}

.njob-sent,
.njob-closed { margin-top: clamp(2rem, 4vw, 3rem); }

.njob-form { margin-top: 1.5rem; }

.njob-form input[type="file"] {
	width: 100%;
	padding: .85rem 1rem;
	border: 1px dashed var(--line-2);
	border-radius: var(--r-sm);
	background: var(--bg-2);
	color: var(--tx-2);
	font: inherit;
	font-size: var(--t-sm);
	cursor: pointer;
}

.njob-form input[type="file"]::file-selector-button {
	margin-right: .9rem;
	padding: .45rem .9rem;
	border: 0;
	border-radius: var(--r-sm);
	background: var(--ac);
	color: var(--ac-ink);
	font: inherit;
	font-size: var(--t-xs);
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 620px) {
	.njob { flex-direction: column; align-items: flex-start; }
	.njob__side { width: 100%; }
	.njob__side .btn { width: 100%; justify-content: center; }
}
