/**
 * Recruitment.
 *
 * Brand colours sampled from adroittutors.com, as everywhere else in Adroit.
 * A public page, so everything is scoped to .adroit-recruit and every button
 * rule carries !important, because Hello Elementor styles bare buttons and
 * wins on specificity otherwise.
 *
 * Wider than the printing page at 54rem, because six roles read badly in a
 * single narrow column and well in a grid.
 */

.adroit-recruit {
	--r-brand: #830606;
	--r-deep: #6f0b0b;
	--r-tint: #fbeaea;
	--r-line: #e8c9c9;
	--r-ink: #333333;
	--r-strong: #1a1a1a;
	--r-faint: #8b8f97;
	--r-rule: #e2e4e8;
	--r-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	color: var(--r-ink);
	font-size: 16px;
	line-height: 1.55;
	max-width: 54rem;
}
.adroit-recruit *,
.adroit-recruit *::before,
.adroit-recruit *::after { box-sizing: border-box; }

/*
 * Themes set fieldset { display: block }, which beats the user agent rule for
 * [hidden] on specificity and leaves every conditional block on the page. This
 * is the one place !important is load bearing rather than defensive.
 */
.adroit-recruit [hidden] { display: none !important; }

.adroit-recruit h2 {
	font-family: var(--r-head);
	color: var(--r-strong);
	margin: 0 0 .5rem;
}

/* ---------------------------------------------------------------- intro -- */

.adroit-recruit-intro { margin: 0 0 2rem; }
.adroit-recruit-logo { margin: 0 0 1rem; }
.adroit-recruit-logo img {
	display: block;
	width: auto;
	max-width: 160px;
	max-height: 96px;
	height: auto;
	object-fit: contain;
	/* A white tile, so a logo drawn for a white page still reads in dark mode. */
	padding: .45rem;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.adroit-recruit-tag {
	margin: 0 0 .35rem;
	font-family: var(--r-head);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--r-brand);
}
.adroit-recruit-lede { margin: 0 0 .7rem; font-size: 1.05rem; }
.adroit-recruit-closed {
	padding: .9rem 1.1rem;
	margin: 0 0 2rem;
	background: var(--r-tint);
	border: 1px solid var(--r-line);
	border-left: 4px solid var(--r-brand);
	border-radius: 6px;
	font-family: var(--r-head);
	font-size: .95rem;
	color: var(--r-strong);
}

/* ---------------------------------------------------------------- roles -- */

.adroit-recruit-roles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
	margin: 0 0 2.5rem;
}

.adroit-role {
	display: flex;
	flex-direction: column;
	padding: 1.1rem 1.2rem;
	background: #fff;
	border: 1px solid var(--r-rule);
	border-top: 3px solid var(--r-brand);
	border-radius: 8px;
}
.adroit-role-title {
	font-family: var(--r-head);
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--r-strong);
	margin: 0 0 .4rem;
}
.adroit-role-summary {
	margin: 0 0 .7rem;
	font-size: .92rem;
	color: var(--r-ink);
}
.adroit-role-duties {
	margin: 0 0 1rem;
	padding: 0 0 0 1.05rem;
	font-size: .88rem;
	color: var(--r-ink);
}
.adroit-role-duties li { margin: 0 0 .28rem; }

.adroit-role-pick {
	margin-top: auto;
	align-self: flex-start;
	cursor: pointer;
	display: inline-block !important;
	padding: .5rem 1rem !important;
	font-family: var(--r-head) !important;
	font-size: .87rem !important;
	font-weight: 600 !important;
	color: var(--r-brand) !important;
	background: transparent !important;
	border: 1px solid var(--r-line) !important;
	border-radius: 6px !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}
.adroit-role-pick:hover,
.adroit-role-pick:focus {
	color: #fff !important;
	background: var(--r-brand) !important;
	border-color: var(--r-brand) !important;
}
.adroit-role[data-chosen="yes"] {
	border-color: var(--r-brand);
	box-shadow: 0 0 0 1px var(--r-brand);
}

/* ----------------------------------------------------------------- form -- */

.adroit-recruit-form-wrap {
	padding: 1.4rem 1.5rem;
	background: #fff;
	border: 1px solid var(--r-rule);
	border-radius: 8px;
	scroll-margin-top: 5rem;
}

.adroit-recruit-error {
	padding: .75rem 1rem;
	margin: 0 0 1.2rem;
	background: #fbeae9;
	border: 1px solid #f0c4c1;
	border-radius: 6px;
	color: #a81e17;
	font-size: .93rem;
}

.adroit-group {
	margin: 0 0 1.6rem;
	padding: 1rem 1.1rem .4rem;
	border: 1px solid var(--r-rule);
	border-radius: 6px;
}
.adroit-group legend {
	padding: 0 .4rem;
	font-family: var(--r-head);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--r-brand);
}
.adroit-group-note {
	margin: 0 0 1rem;
	font-size: .85rem;
	color: var(--r-faint);
}

.adroit-field { margin: 0 0 1.05rem; }
.adroit-field label {
	display: block;
	margin-bottom: .3rem;
	font-family: var(--r-head);
	font-size: .88rem;
	font-weight: 600;
	color: var(--r-strong);
}
.adroit-optional {
	font-weight: 400;
	font-size: .78rem;
	color: var(--r-faint);
	text-transform: lowercase;
}
.adroit-help {
	display: block;
	margin-bottom: .3rem;
	font-size: .82rem;
	color: var(--r-faint);
}

.adroit-field input[type="text"],
.adroit-field input[type="tel"],
.adroit-field input[type="email"],
.adroit-field input[type="url"],
.adroit-field select,
.adroit-field textarea {
	width: 100%;
	max-width: 30rem;
	padding: .5rem .65rem;
	font: inherit;
	font-size: .95rem;
	border: 1px solid var(--r-rule);
	border-radius: 6px;
	background: #fff;
	color: var(--r-ink);
}
.adroit-field textarea {
	max-width: 34rem;
	min-height: 5.2rem;
	resize: vertical;
}
.adroit-field input:focus,
.adroit-field select:focus,
.adroit-field textarea:focus {
	outline: 2px solid var(--r-brand);
	outline-offset: 1px;
	border-color: var(--r-brand);
}

.adroit-field--wrong input,
.adroit-field--wrong select,
.adroit-field--wrong textarea { border-color: #d1554c; }
.adroit-wrong {
	display: block;
	margin-top: .28rem;
	font-size: .82rem;
	color: #a81e17;
}

.adroit-field--file input[type="file"] {
	width: 100%;
	max-width: 30rem;
	padding: .6rem .65rem;
	font: inherit;
	font-size: .9rem;
	background: #fff;
	border: 1px dashed var(--r-line);
	border-radius: 6px;
	color: var(--r-ink);
	cursor: pointer;
}
.adroit-field--file input[type="file"]:focus {
	outline: 2px solid var(--r-brand);
	outline-offset: 1px;
}
.adroit-field--file.adroit-field--wrong input[type="file"] { border-color: #d1554c; }

.adroit-field--position { margin-bottom: 1.6rem; }
.adroit-field--position select { max-width: 24rem; }

/*
 * The honeypot. Moved off the page rather than hidden, because a bot that
 * skips display:none fields will happily fill this one in.
 */
.adroit-hp {
	position: absolute !important;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.adroit-recruit-go {
	display: inline-block !important;
	cursor: pointer;
	padding: .7rem 1.5rem !important;
	font-family: var(--r-head) !important;
	font-size: .98rem !important;
	font-weight: 600 !important;
	color: #fff !important;
	background: var(--r-brand) !important;
	border: 1px solid var(--r-brand) !important;
	border-radius: 6px !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}
.adroit-recruit-go:hover { background: var(--r-deep) !important; border-color: var(--r-deep) !important; }
.adroit-recruit-go[disabled] { opacity: .6; cursor: default; }

.adroit-recruit-small {
	margin: .9rem 0 0;
	font-size: .82rem;
	color: var(--r-faint);
	max-width: 34rem;
}

/* ----------------------------------------------------------------- done -- */

.adroit-recruit-done {
	padding: 2rem 1.6rem;
	text-align: center;
	background: #fff;
	border: 1px solid var(--r-rule);
	border-top: 3px solid var(--r-brand);
	border-radius: 8px;
	scroll-margin-top: 5rem;
}
.adroit-recruit-tick {
	margin: 0 0 .6rem;
	font-size: 2.4rem;
	line-height: 1;
	color: var(--r-brand);
}
.adroit-recruit-done h2 { margin: 0 0 .5rem; }
.adroit-recruit-ref {
	display: inline-block;
	margin: 1.1rem 0;
	padding: .8rem 1.6rem;
	background: var(--r-tint);
	border: 1px solid var(--r-line);
	border-radius: 6px;
	font-family: var(--r-head);
	font-size: .82rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--r-faint);
}
.adroit-recruit-ref strong {
	display: block;
	margin-top: .25rem;
	font-size: 1.35rem;
	letter-spacing: .12em;
	color: var(--r-brand);
}

/* ----------------------------------------------------------------- 600 -- */

@media (max-width: 600px) {
	.adroit-recruit-form-wrap { padding: 1.1rem 1rem; }
	.adroit-group { padding: .9rem .8rem .3rem; }
	.adroit-recruit-go { width: 100% !important; }
	.adroit-role-pick { width: 100% !important; text-align: center; }
}
