/**
 * Careers landing, job dialog and application form.
 */

body.cohoma-careers-page {
	--cohoma-careers-cream: #fdf5e8;
	--cohoma-careers-brown: var(--cohoma-color-brand);
	--cohoma-careers-brown-dark: #3a1a0a;
	--cohoma-careers-ink: #38251b;
	background: var(--cohoma-careers-cream);
}

body.cohoma-careers-page .main-header-bar.ast-header-breadcrumb {
	display: none;
}

body.cohoma-careers-page #content .ast-container {
	display: block;
	width: 100%;
	max-width: none;
	padding: 0;
}

body.cohoma-careers-page dialog,
body.cohoma-careers-page input,
body.cohoma-careers-page button {
	font-family: var(--cohoma-font-body);
}

.cohoma-careers-main {
	min-height: 42vh;
	background: var(--cohoma-careers-cream);
	color: var(--cohoma-careers-ink);
	font-family: var(--cohoma-font-body);
}

.cohoma-careers-main [hidden] {
	display: none !important;
}

.cohoma-careers-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cohoma-careers-container {
	width: min(100% - 48px, 1180px);
	margin-inline: auto;
}

.cohoma-careers-hero {
	position: relative;
	display: grid;
	min-height: 300px;
	height: clamp(300px, 34vw, 500px);
	overflow: hidden;
	background: #24140d;
	color: #fff;
	isolation: isolate;
}

.cohoma-careers-hero__picture,
.cohoma-careers-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.cohoma-careers-hero__image {
	display: block;
	object-fit: cover;
	object-position: center;
}

.cohoma-careers-hero::after {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: rgba(45, 20, 8, 0.5);
	content: "";
	pointer-events: none;
}

.cohoma-careers-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: min(100% - 40px, 900px);
	margin: auto;
	padding: 44px 20px;
	text-align: center;
}

.cohoma-careers-hero__heading {
	max-width: 650px;
	margin: 0;
	color: #fff;
	font-family: var(--cohoma-font-heading);
	font-size: clamp(39px, 4.4vw, 66px);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

.cohoma-careers-hero__intro {
	max-width: 790px;
	margin: 18px 0 0;
	color: #fff;
	font-size: clamp(16px, 1.45vw, 20px);
	line-height: 1.45;
	text-wrap: balance;
}

.cohoma-careers-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 28px;
}

body.cohoma-careers-application-page .cohoma-careers-hero {
	height: clamp(240px, 27vw, 360px);
	min-height: 240px;
}

body.cohoma-careers-application-page .cohoma-careers-hero__content {
	padding-block: 34px;
}

.cohoma-careers-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 23px;
	border: 1px solid var(--cohoma-careers-brown);
	border-radius: 9px;
	font-family: var(--cohoma-font-heading);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.cohoma-careers-hero__actions .cohoma-careers-button {
	padding-top: 12px;
	padding-bottom: 8px;
}

.cohoma-careers-button:hover {
	transform: translateY(-1px);
}

.cohoma-careers-button:focus-visible,
.cohoma-careers-dialog__close:focus-visible,
.cohoma-careers-form input:focus-visible {
	outline: 3px solid var(--cohoma-color-accent);
	outline-offset: 3px;
}

.cohoma-careers-button--light {
	border-color: #fff;
	background: #fff;
	color: var(--cohoma-careers-brown);
}

.cohoma-careers-button--light:hover,
.cohoma-careers-button--light:focus-visible {
	background: var(--cohoma-careers-cream);
	color: var(--cohoma-careers-brown-dark);
}

.cohoma-careers-button--ghost {
	border-color: #fff;
	background: rgba(32, 14, 6, 0.25);
	color: #fff;
}

.cohoma-careers-button--ghost:hover,
.cohoma-careers-button--ghost:focus-visible {
	background: #fff;
	color: var(--cohoma-careers-brown);
}

.cohoma-careers-button--primary {
	background: var(--cohoma-careers-brown);
	color: #fff;
}

.cohoma-careers-button--primary:hover,
.cohoma-careers-button--primary:focus-visible {
	border-color: var(--cohoma-careers-brown-dark);
	background: var(--cohoma-careers-brown-dark);
	color: #fff;
}

.cohoma-careers-button--outline {
	background: transparent;
	color: var(--cohoma-careers-brown);
}

.cohoma-careers-button--outline:hover,
.cohoma-careers-button--outline:focus-visible {
	background: var(--cohoma-careers-brown);
	color: #fff;
}

.cohoma-careers-values {
	padding: 42px 0 34px;
}

.cohoma-careers-section-heading {
	margin: 0;
	color: var(--cohoma-careers-brown);
	font-family: var(--cohoma-font-heading);
	font-size: clamp(30px, 3.2vw, 44px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

.cohoma-careers-values > .cohoma-careers-container > .cohoma-careers-section-heading {
	text-align: center;
}

.cohoma-careers-values__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 6vw, 78px);
	margin-top: 28px;
}

.cohoma-careers-value {
	text-align: center;
}

.cohoma-careers-value__icon {
	display: block;
	width: 52px;
	height: 52px;
	margin: 0 auto 12px;
	object-fit: contain;
}

.cohoma-careers-value h3 {
	max-width: 230px;
	margin: 0 auto 7px;
	color: var(--cohoma-careers-brown);
	font-family: var(--cohoma-font-heading);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.15;
	text-transform: uppercase;
}

.cohoma-careers-value p {
	max-width: 310px;
	margin: 0 auto;
	color: var(--cohoma-careers-ink);
	font-size: 14px;
	line-height: 1.38;
}

.cohoma-careers-openings {
	padding: 10px 0 76px;
}

.cohoma-careers-openings__heading-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 24px;
}

.cohoma-careers-openings__heading-row > p {
	max-width: 360px;
	margin: 0 0 3px;
	color: #705544;
	font-size: 16px;
	line-height: 1.45;
	text-align: right;
}

.cohoma-careers-eyebrow {
	margin: 0 0 6px;
	color: var(--cohoma-careers-brown);
	font-family: var(--cohoma-font-heading);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.cohoma-careers-job-list {
	display: grid;
	gap: 18px;
	padding: 0;
	background: transparent;
}

.cohoma-careers-job-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 96px;
	padding: 16px 22px;
	border-radius: var(--cohoma-radius-medium);
	background: #fceadf;
}

.cohoma-careers-job-card__identity {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
}

.cohoma-careers-job-card__icon {
	display: grid;
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	place-items: center;
}

.cohoma-careers-job-card__icon img {
	display: block;
	width: 60px;
	height: 60px;
}

.cohoma-careers-job-card h3 {
	margin: 0 0 4px;
	color: var(--cohoma-careers-brown);
	font-family: var(--cohoma-font-heading);
	font-size: 23px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
}

.cohoma-careers-job-card p {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: #6f5545;
	font-size: 15px;
	line-height: 1.25;
}

.cohoma-careers-job-card p img {
	flex: 0 0 auto;
	width: 12px;
	height: 19px;
	object-fit: contain;
}

.cohoma-careers-job-card__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
}

.cohoma-careers-job-card__actions .cohoma-careers-button {
	min-height: 36px;
	padding: 7px 14px;
	border-radius: 7px;
	font-size: 13px;
}

.cohoma-careers-job-card__actions .cohoma-careers-button--outline {
	min-height: auto;
	padding: 6px 8px;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.cohoma-careers-job-card__actions .cohoma-careers-button--outline:hover,
.cohoma-careers-job-card__actions .cohoma-careers-button--outline:focus-visible {
	background: transparent;
	color: var(--cohoma-careers-brown-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
	transform: none;
}

.cohoma-careers-empty,
.cohoma-careers-application__invalid,
.cohoma-careers-success {
	padding: 48px 28px;
	background: #fff;
	text-align: center;
}

.cohoma-careers-empty h3,
.cohoma-careers-application__invalid h2,
.cohoma-careers-success h2 {
	margin: 0 0 12px;
	color: var(--cohoma-careers-brown);
	font-family: var(--cohoma-font-heading);
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 600;
	line-height: 1.15;
}

.cohoma-careers-empty p,
.cohoma-careers-application__invalid p,
.cohoma-careers-success p {
	max-width: 650px;
	margin: 0 auto 24px;
	font-size: 16px;
	line-height: 1.55;
}

.cohoma-careers-dialog {
	width: min(720px, calc(100% - 36px));
	max-width: 720px;
	max-height: min(84vh, 760px);
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: var(--cohoma-careers-ink);
	box-shadow: 0 24px 70px rgba(34, 18, 10, 0.34);
	overflow: visible;
}

.cohoma-careers-dialog:not([open]) {
	display: none;
}

.cohoma-careers-dialog::backdrop {
	background: rgba(31, 22, 17, 0.62);
	backdrop-filter: blur(2px);
}

.cohoma-careers-dialog__surface {
	position: relative;
	max-height: min(84vh, 760px);
	padding: 38px 42px 36px;
	background: #fff;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.cohoma-careers-dialog__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 0;
	background: transparent;
	color: #6f645e;
}

.cohoma-careers-dialog__close:hover {
	opacity: 0.78;
	color: var(--cohoma-careers-brown);
}

.cohoma-careers-dialog__close img,
.cohoma-careers-dialog__close .ahfb-svg-iconset,
.cohoma-careers-dialog__close svg {
	display: block;
	width: 28px;
	height: 28px;
}

.cohoma-careers-dialog h2 {
	max-width: calc(100% - 46px);
	margin: 0 0 24px;
	color: var(--cohoma-careers-brown);
	font-family: var(--cohoma-font-heading);
	font-size: clamp(27px, 3.6vw, 38px);
	font-weight: 600;
	line-height: 1.15;
}

.cohoma-careers-dialog__section {
	margin-top: 20px;
}

.cohoma-careers-dialog__section h3 {
	margin: 0 0 7px;
	color: var(--cohoma-careers-brown);
	font-family: var(--cohoma-font-heading);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.cohoma-careers-dialog__section p,
.cohoma-careers-dialog__section li {
	color: var(--cohoma-careers-ink);
	font-size: 16px;
	line-height: 1.58;
}

.cohoma-careers-dialog__section p {
	margin: 0 0 10px;
}

.cohoma-careers-dialog__section ul {
	margin: 8px 0 0 22px;
}

.cohoma-careers-dialog__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 28px;
}

body.cohoma-careers-dialog-open {
	overflow: hidden;
}

.cohoma-careers-application {
	padding: 54px 0 90px;
}

.cohoma-careers-application__container {
	max-width: 1120px;
}

.cohoma-careers-application__intro {
	max-width: 800px;
	margin: 0 auto 38px;
	text-align: center;
}

.cohoma-careers-application__intro h2 {
	margin: 0;
	color: var(--cohoma-careers-brown);
	font-family: var(--cohoma-font-heading);
	font-size: clamp(31px, 3.5vw, 46px);
	font-weight: 600;
	line-height: 1.12;
	text-transform: uppercase;
}

.cohoma-careers-application__intro > p:not(.cohoma-careers-eyebrow) {
	max-width: 650px;
	margin: 14px auto 0;
	font-size: 16px;
	line-height: 1.5;
}

.cohoma-careers-application__role {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 12px;
	margin-top: 20px;
	padding: 11px 17px;
	border: 1px solid #dfc5a7;
	border-radius: 999px;
	background: #fff;
	color: var(--cohoma-careers-brown);
}

.cohoma-careers-application__role span {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cohoma-careers-application__role strong {
	font-size: 16px;
}

.cohoma-careers-application__layout {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 50px;
	padding: 0;
	background: transparent;
}

.cohoma-careers-form {
	min-width: 0;
}

.cohoma-careers-form__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.cohoma-careers-field {
	margin: 0 0 16px;
}

.cohoma-careers-field label {
	display: block;
	margin: 0 0 6px;
	color: #1a1a1a;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
}

.cohoma-careers-field label > span[aria-hidden="true"] {
	color: #a1261f;
}

.cohoma-careers-field__optional {
	color: #77685e;
	font-size: 13px;
	font-weight: 400;
}

.cohoma-careers-form input[type="text"],
.cohoma-careers-form input[type="email"],
.cohoma-careers-form input[type="tel"],
.cohoma-careers-form input[type="number"],
.cohoma-careers-form input[type="file"] {
	width: 100%;
	min-height: var(--cohoma-form-control-height);
	margin: 0;
	border: 1px solid #c0bab2 !important;
	border-radius: 52px !important;
	background: transparent !important;
	color: #333;
	font-size: 15px;
	line-height: 1.25;
	outline: none;
	transition: border-color 0.2s ease;
}

.cohoma-careers-form input[type="text"],
.cohoma-careers-form input[type="email"],
.cohoma-careers-form input[type="tel"],
.cohoma-careers-form input[type="number"] {
	padding: 0 22px;
}

/* Keep theme/plugin input defaults from painting white boxes over this form. */
body.cohoma-careers-page .cohoma-careers-form input[type="text"],
body.cohoma-careers-page .cohoma-careers-form input[type="email"],
body.cohoma-careers-page .cohoma-careers-form input[type="tel"],
body.cohoma-careers-page .cohoma-careers-form input[type="number"] {
	border: 1px solid #c0bab2 !important;
	border-radius: 52px !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

.cohoma-careers-form input[type="file"] {
	padding: 5px 6px;
}

.cohoma-careers-form input[type="file"]::file-selector-button {
	min-height: 36px;
	margin-right: 12px;
	padding: 7px 15px;
	border: 0;
	border-radius: 999px;
	background: #633947;
	color: #fff;
	font-family: var(--cohoma-font-body);
	font-size: 14px;
	cursor: pointer;
}

.cohoma-careers-form input[type="text"]:focus,
.cohoma-careers-form input[type="email"]:focus,
.cohoma-careers-form input[type="tel"]:focus,
.cohoma-careers-form input[type="number"]:focus,
.cohoma-careers-form input[type="file"]:focus {
	border-color: #888;
	box-shadow: none;
}

.cohoma-careers-form input[type="file"]:hover::file-selector-button {
	background: var(--cohoma-careers-brown);
}

.cohoma-careers-form input[aria-invalid="true"] {
	border-color: #a1261f;
	box-shadow: 0 0 0 1px #a1261f;
}

.cohoma-careers-field small {
	display: block;
	margin-top: 6px;
	color: #6d5d52;
	font-size: 12px;
	line-height: 1.4;
}

.cohoma-careers-field__error {
	display: block;
	min-height: 0;
	margin-top: 5px;
	color: #941f1a;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.cohoma-careers-file__name:not(:empty) {
	display: block;
	margin-top: 5px;
	color: var(--cohoma-careers-brown);
	font-size: 13px;
}

.cohoma-careers-form__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.cohoma-careers-form__submit {
	display: block;
	min-width: 0;
	min-height: 0;
	margin: 20px 0 0 auto;
	padding: 14px 52px;
	border: 0;
	border-radius: 50px;
	background: #633947;
	font-family: var(--cohoma-font-body);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.cohoma-careers-form__submit[disabled] {
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

.cohoma-careers-form__error-summary {
	margin-bottom: 20px;
	padding: 14px 16px;
	border-left: 4px solid #a1261f;
	background: #fff0ee;
	color: #741a16;
	font-size: 14px;
	line-height: 1.45;
}

.cohoma-careers-application__media img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: darken;
}

.cohoma-careers-success {
	max-width: 760px;
	margin: 0 auto;
	background: transparent;
}

@media (max-width: 900px) {
	.cohoma-careers-values__grid {
		gap: 36px;
	}

	.cohoma-careers-value p {
		font-size: 14px;
	}

	.cohoma-careers-application__layout {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 50px;
	}
}

@media (max-width: 767px) {
	.cohoma-careers-container {
		width: min(100% - 32px, 620px);
	}

	.cohoma-careers-hero {
		height: min(560px, 72svh);
		min-height: 460px;
	}

	body.cohoma-careers-application-page .cohoma-careers-hero {
		height: min(500px, 66svh);
		min-height: 420px;
	}

	.cohoma-careers-hero::after {
		background: rgba(38, 17, 8, 0.54);
	}

	.cohoma-careers-hero__content {
		width: min(100% - 28px, 560px);
		padding: 48px 14px;
	}

	.cohoma-careers-hero__heading {
		font-size: clamp(34px, 10vw, 47px);
		line-height: 1.04;
	}

	.cohoma-careers-hero__intro {
		font-size: 15px;
		line-height: 1.4;
	}

	.cohoma-careers-values {
		padding: 46px 0 36px;
	}

	.cohoma-careers-values__grid {
		grid-template-columns: 1fr;
		gap: 38px;
		margin-top: 30px;
	}

	.cohoma-careers-value p {
		max-width: 410px;
		font-size: 15px;
	}

	.cohoma-careers-openings {
		padding: 18px 0 62px;
	}

	.cohoma-careers-openings__heading-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.cohoma-careers-openings__heading-row > p {
		text-align: left;
	}

	.cohoma-careers-job-list {
		padding: 8px;
	}

	.cohoma-careers-job-card {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
		padding: 18px;
	}

	.cohoma-careers-job-card__actions {
		align-self: flex-end;
		justify-content: flex-end;
		flex-direction: row;
		width: auto;
		margin-left: auto;
	}

	.cohoma-careers-job-card__actions .cohoma-careers-button {
		width: auto;
	}

	.cohoma-careers-dialog {
		width: 100%;
		max-width: none;
		max-height: 100%;
		margin: auto 0 0;
		border-radius: 18px 18px 0 0;
	}

	.cohoma-careers-dialog__surface {
		max-height: 88svh;
		padding: 32px 22px 30px;
	}

	.cohoma-careers-application {
		padding: 42px 0 64px;
	}

	.cohoma-careers-application__layout {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 0;
	}

	.cohoma-careers-application__media {
		order: 1;
		max-width: 250px;
		margin: 0 auto;
	}

	.cohoma-careers-form {
		order: 2;
	}

	.cohoma-careers-form__submit {
		width: auto;
		margin-right: auto;
	}
}

@media (max-width: 520px) {
	.cohoma-careers-hero__actions {
		width: 100%;
	}

	.cohoma-careers-hero__actions .cohoma-careers-button {
		flex: 1 1 150px;
	}

	.cohoma-careers-job-card__identity {
		gap: 14px;
	}

	.cohoma-careers-job-card__icon {
		flex-basis: 52px;
		width: 52px;
		height: 52px;
	}

	.cohoma-careers-job-card__icon img {
		width: 52px;
		height: 52px;
	}

	.cohoma-careers-job-card h3 {
		font-size: 20px;
	}

	.cohoma-careers-job-card__actions {
		flex-direction: row;
	}

	.cohoma-careers-dialog__actions .cohoma-careers-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cohoma-careers-button {
		transition: none;
	}
}
