/* Alloway Careers — the openings grid, the careers-page hero, and the
   job page. Bold design language via preset variables with literal
   fallbacks (update-safe, same contract as the locator). Loads after
   alloway-bold (dependency), so the Bold tokens are dressed. */

.alcareers-hero,
.alloway-jobs,
.aljob-chips,
.aljob-apply,
.aljob-others {
	--careers-gold: var(--wp--preset--color--primary, #fbd64a);
	--careers-gold-deep: var(--wp--preset--color--primary-hover, #e4c806);
	--careers-ink: var(--wp--preset--color--dark, #131111);
	--careers-border: var(--wp--preset--color--border, #e5e5e5);
}

/* ---- The careers hero: statement left, framed shop photo right. ---- */
.alcareers-hero {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.alcareers-hero__photo img {
	width: 100%;
	height: auto;

	/* Portrait shop photography: cap the column height so the hero
	   stays a hero, cropping toward the top where the welder works. */
	max-height: 560px;
	object-fit: cover;
	object-position: top;
	border: 2px solid var(--careers-gold);
	border-radius: 3px;
	box-shadow: 10px 10px 0 rgb(251 214 74 / 18%);
}

@media (max-width: 904px) {
	.alcareers-hero {
		grid-template-columns: 1fr;
	}
}

/* Links inside the dark story slab read gold (ink links vanish there). */
.alcareers-about__p a {
	color: var(--careers-gold, #fbd64a);
}

/* ---- The openings grid (FIND YOUR FIT). ---- */
.alloway-jobs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 1239px) {
	.alloway-jobs {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 904px) {
	.alloway-jobs {
		grid-template-columns: 1fr;
	}
}

.alloway-jobs__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	border: 2px solid var(--careers-ink, #131111);
	border-radius: 3px;
	background: #fff;
	padding: 1.5rem 1.4rem 1.3rem;
	transition: box-shadow 0.18s ease;
}

.alloway-jobs__card:hover {
	box-shadow: 8px 8px 0 rgb(251 214 74 / 45%);
}

.alloway-jobs__chip {
	align-self: flex-start;
	display: inline-block;
	background: var(--careers-gold, #fbd64a);
	color: var(--careers-ink, #131111);
	font-family: var(--bold-cond);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
	padding: 0.2rem 0.6rem;
	border-radius: 2px;
	margin-bottom: 0.55rem;
}

.alloway-jobs__title {
	font-family: var(--bold-display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: 1.35rem;
	line-height: 1.05;
	margin: 0;
}

.alloway-jobs__title a {
	color: var(--careers-ink, #131111);
	text-decoration: none;
}

/* The whole card is the target (title link stretched over it). */
.alloway-jobs__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.alloway-jobs__summary {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--wp--preset--color--contrast, #33373d);
}

.alloway-jobs__go {
	margin-top: auto;
	font-family: var(--bold-cond);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.85rem;
	color: var(--careers-ink, #131111);
	border-bottom: 2px solid var(--careers-gold, #fbd64a);
	align-self: flex-start;
	padding-bottom: 2px;
}

.alloway-jobs__card--open {
	background: var(--careers-ink, #131111);
	border-color: var(--careers-ink, #131111);
	color: #fff;
}

.alloway-jobs__card--open .alloway-jobs__title,
.alloway-jobs__card--open .alloway-jobs__summary {
	color: #fff;
}

.alloway-jobs__apply {
	margin-top: auto;
	align-self: flex-start;
	background: var(--careers-gold, #fbd64a);
	color: var(--careers-ink, #131111);
	font-family: var(--bold-cond);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.9rem;
	text-decoration: none;
	border-radius: 3px;
	padding: 0.6rem 1.1rem;
}

.alloway-jobs__apply:hover {
	background: var(--careers-gold-deep, #e4c806);
}

.alloway-jobs__empty {
	font-weight: 700;
}

/* ---- The job page. ---- */
.aljob-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
}

.aljob-chip {
	display: inline-block;
	border: 1px solid rgb(255 255 255 / 45%);
	color: #fff;
	font-family: var(--bold-cond);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.82rem;
	padding: 0.25rem 0.7rem;
	border-radius: 2px;
}

.aljob-chip--gold {
	background: var(--careers-gold, #fbd64a);
	border-color: var(--careers-gold, #fbd64a);
	color: var(--careers-ink, #131111);
}

.aljob-apply {
	border: 2px solid var(--careers-ink, #131111);
	border-radius: 3px;
	background: #fff;
	padding: 1.2rem;
}

.aljob-apply h3,
.aljob-others h3 {
	font-family: var(--bold-display);
	text-transform: uppercase;
	font-weight: 800;
	font-size: 1.05rem;
	border-bottom: 2px solid var(--careers-ink, #131111);
	padding-bottom: 0.6rem;
	margin: 0 0 0.7rem;
}

.aljob-apply p {
	margin: 0 0 0.9rem;
	font-size: 0.92rem;
}

.aljob-apply__btn {
	display: inline-block;
	background: var(--careers-gold, #fbd64a);
	border: 2px solid var(--careers-ink, #131111);
	border-radius: 3px;
	color: var(--careers-ink, #131111);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 10px 22px;
}

.aljob-apply__btn:hover {
	background: var(--careers-gold-deep, #e4c806);
}

.aljob-apply__alt {
	margin: 0.9rem 0 0;
}

.aljob-apply__alt a {
	color: var(--careers-ink, #131111);
	font-weight: 700;
}

.aljob-others {
	border: 2px solid var(--careers-ink, #131111);
	border-radius: 3px;
	background: #fff;
	padding: 1.2rem;
	margin-top: 20px;
}

.aljob-others a {
	display: block;
	color: var(--careers-ink, #131111);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 700;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--careers-border, #e5e5e5);
	transition: color 0.18s ease;
}

.aljob-others a:last-child {
	border-bottom: 0;
}

/* Hover/focus keep AA ink text; gold is the accent, never the text
   color on white (review 2026-09-04 epic-2.2 finding 2, DESIGN.md). */
.aljob-others a:hover,
.aljob-others a:focus-visible {
	color: var(--careers-ink, #131111);
	text-decoration: underline;
	text-decoration-color: var(--careers-gold, #fbd64a);
	text-decoration-thickness: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.alloway-jobs__card,
	.aljob-others a {
		transition: none;
	}
}
