/* ==========================================================================
   workfromanywhere.co — single job page (v1.0.0)
   Upload to: /wp-content/themes/wfa-theme/wfa/wfa-job-single.css
   Loaded by wfa/jobs-single.php only. The "More at" and "Similar roles"
   grids use the cards from wfa-job-cards.css, loaded alongside.

   Same language as the service pages: serif title, small capitals for
   labels, thin line icons, square corners, ink and cream only.
   ========================================================================== */

.wfa-job-single {
	--js-ink:     var(--wfa-text, #14171a);
	--js-muted:   var(--wfa-muted, #5f6a70);
	--js-paper:   var(--wfa-bg, #faf7f2);
	--js-card:    var(--wfa-surface, #f2ede4);
	--js-line:    var(--wfa-line, #e2dcd2);
	--js-display: var(--wfa-display, "Fraunces", Georgia, "Times New Roman", serif);
	--js-ui:      var(--wfa-ui, "Public Sans", system-ui, sans-serif);

	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	font-family: var(--js-ui);
	color: var(--js-ink);
}

/* Lines up with the logo: the header's 40px gutter, 30px on phones. */
.wfa-js-wrap {
	max-width: none;
	margin: 0 auto;
	padding: 1.5rem 40px 0;
}

@media (max-width: 768px) {
	.wfa-js-wrap {
		padding: 1.25rem 30px 0;
	}
}

/* ---------- shared bits ---------- */

.wfa-js-eyebrow {
	margin: 0 0 1rem;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--js-muted);
}

.wfa-js-ico {
	flex: 0 0 auto;
	width: 1.125rem;
	height: 1.125rem;
}

.wfa-job-single a.wfa-js-btn,
.wfa-job-single a.wfa-js-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: .9rem 1.75rem;
	border: 1px solid var(--js-ink);
	background: var(--js-ink);
	color: var(--js-paper);
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.wfa-job-single a.wfa-js-btn:hover,
.wfa-job-single a.wfa-js-btn:focus-visible {
	background: var(--js-paper);
	color: var(--js-ink);
	text-decoration: none;
}

.wfa-job-single a.wfa-js-btn:focus-visible {
	outline: 2px solid var(--js-ink);
	outline-offset: 3px;
}

.wfa-js-btn--block {
	width: 100%;
}

.wfa-job-single a.wfa-js-textlink {
	display: inline-flex;
	padding-bottom: .25rem;
	border-bottom: 1px solid currentColor;
	color: var(--js-ink);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

/* ---------- breadcrumb ---------- */

.wfa-js-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 2rem;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--js-muted);
}

.wfa-js-crumbs a {
	color: var(--js-muted);
	text-decoration: none;
}

.wfa-js-crumbs a:hover {
	color: var(--js-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- header ---------- */

.wfa-js-head {
	max-width: 52rem;
	margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}

.wfa-js-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.25rem;
}

.wfa-js-tag {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .35rem .6rem;
	background: var(--js-line);
	color: var(--js-ink);
	font-size: .6875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.wfa-js-tag--remote {
	background: var(--js-ink);
	color: var(--js-paper);
}

.wfa-js-tag .wfa-js-ico {
	width: .8rem;
	height: .8rem;
}

.wfa-js-title {
	margin: 0;
	font-family: var(--js-display);
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.02em;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.wfa-js-company {
	margin: .75rem 0 0;
	font-size: 1.125rem;
	color: var(--js-muted);
}

.wfa-job-single .wfa-js-company a {
	color: var(--js-muted);
	text-decoration: none;
	border-bottom: 1px solid var(--js-line);
}

.wfa-job-single .wfa-js-company a:hover {
	color: var(--js-ink);
	border-bottom-color: var(--js-ink);
}

.wfa-js-factrow {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.75rem;
	margin: 1.75rem 0 2rem;
	padding: 0;
	list-style: none;
	font-size: .9375rem;
}

.wfa-js-factrow li {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin: 0;
}

.wfa-js-factrow .wfa-js-ico {
	color: var(--js-muted);
}

/* On wide screens Apply lives in the side panel, so the header one is
   for phones and tablets, where the panel drops below the text. */
@media (min-width: 900px) {
	.wfa-js-btn--head {
		display: none !important;
	}
}

.wfa-js-notice {
	margin: 0 0 2.5rem;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--js-ink);
	background: var(--js-card);
	font-size: .9375rem;
	line-height: 1.6;
}

/* ---------- two columns ---------- */

.wfa-js-cols {
	display: grid;
	gap: 3rem;
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 1px solid var(--js-line);
}

@media (min-width: 900px) {
	.wfa-js-cols {
		grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
		gap: clamp(3rem, 6vw, 5rem);
	}

	.wfa-js-side {
		position: sticky;
		top: 1.5rem;
		align-self: start;
	}
}

/* Phones: the summary panel comes first, so Apply is near the top. */
@media (max-width: 899px) {
	.wfa-js-side {
		order: -1;
	}
}

/* ---------- description ---------- */

.wfa-js-body {
	max-width: 66ch;
	font-size: 1.0625rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.wfa-js-body > *:first-child { margin-top: 0; }

.wfa-js-body p {
	margin: 0 0 1.1em;
}

/* Real headings in a description get the serif. Bold lead-ins inside
   paragraphs are left as they are: a "Location:" label followed by text
   is not a heading. */
.wfa-js-body h1,
.wfa-js-body h2,
.wfa-js-body h3,
.wfa-js-body h4 {
	margin: 2em 0 .6em;
	font-family: var(--js-display);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -.005em;
}

.wfa-js-body strong,
.wfa-js-body b {
	font-weight: 600;
}

.wfa-js-body ul {
	margin: 1em 0 1.5em;
	padding: 0;
	list-style: none;
}

.wfa-js-body ul > li {
	position: relative;
	margin: 0 0 .55em;
	padding-left: 1.75rem;
	line-height: 1.6;
}

.wfa-js-body ul > li::before {
	content: "";
	position: absolute;
	top: .35em;
	left: 0;
	width: 1.05rem;
	height: 1.05rem;
	background-color: var(--js-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wfa-js-body ol {
	margin: 1em 0 1.5em;
	padding-left: 1.4em;
}

.wfa-js-body a {
	color: var(--js-ink);
	text-underline-offset: .2em;
}

.wfa-js-body img {
	max-width: 100%;
	height: auto;
}

/* ---------- side panel ---------- */

.wfa-js-card {
	background: var(--js-card);
}

.wfa-js-card__art {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	background: var(--js-line);
	color: var(--js-ink);
}

.wfa-js-card__art .wfa-jcard__art {
	width: 4.5rem;
	height: auto;
}

.wfa-js-card__body {
	padding: 1.5rem 1.5rem 1.75rem;
}

.wfa-js-card__company {
	margin: 0 0 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--js-line);
	font-family: var(--js-display);
	font-size: 1.375rem;
	line-height: 1.25;
}

.wfa-js-facts {
	display: grid;
	gap: 1.1rem;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}

.wfa-js-facts li {
	display: grid;
	grid-template-columns: 1.125rem minmax(0, 1fr);
	column-gap: .75rem;
	row-gap: .1rem;
	margin: 0;
}

.wfa-js-facts .wfa-js-ico {
	grid-row: span 2;
	margin-top: .1rem;
}

.wfa-js-facts__label {
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--js-muted);
}

.wfa-js-facts__value {
	font-size: .9375rem;
	line-height: 1.45;
}

.wfa-js-card__note {
	margin: .75rem 0 0;
	font-size: .75rem;
	line-height: 1.5;
	color: var(--js-muted);
	text-align: center;
}

.wfa-js-slots {
	margin-top: 2rem;
}

/* ---------- closing band ---------- */

.wfa-js-band {
	margin: clamp(3.5rem, 7vw, 5rem) 0 0;
	padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
	background: var(--js-card);
	text-align: center;
}

.wfa-js-band__title {
	margin: 0 auto .9rem;
	max-width: 24ch;
	font-family: var(--js-display);
	font-size: clamp(1.875rem, 3.6vw, 2.625rem);
	font-weight: 400;
	line-height: 1.12;
	text-wrap: balance;
}

.wfa-js-band__text {
	max-width: 36rem;
	margin: 0 auto 1.75rem;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--js-muted);
}

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

.wfa-js-more {
	margin-top: clamp(3.5rem, 7vw, 5rem);
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 1px solid var(--js-line);
}

.wfa-js-more__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 2rem;
}

.wfa-js-more__title {
	margin: 0;
	font-family: var(--js-display);
	font-size: clamp(1.75rem, 3.2vw, 2.25rem);
	font-weight: 400;
	line-height: 1.12;
}

.wfa-job-single .wfa-jobs.wfa-jobs--cards {
	margin-bottom: 0;
}

.wfa-job-single > .wfa-js-wrap {
	padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

/* ---------- not found ---------- */

.wfa-job-single--missing .wfa-js-wrap {
	max-width: 44rem;
	padding-top: clamp(4rem, 10vw, 7rem);
	text-align: center;
}

.wfa-js-lead {
	margin: 1rem 0 2rem;
	font-size: 1.125rem;
	color: var(--js-muted);
}

@media (prefers-reduced-motion: reduce) {
	.wfa-job-single a.wfa-js-btn {
		transition: none;
	}
}

/* ==========================================================================
   Company page (wfa/company.php) — shares everything above, plus:
   ========================================================================== */

.wfa-co-head .wfa-js-eyebrow {
	margin-bottom: .75rem;
}

.wfa-co-head .wfa-js-factrow {
	margin-bottom: 1.5rem;
}

.wfa-co-hiring {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1rem;
}

.wfa-co-hiring__label {
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--js-muted);
}

.wfa-co-hiring .wfa-js-tags {
	margin: 0;
}

.wfa-job-single a.wfa-co-tag {
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.wfa-job-single a.wfa-co-tag span {
	opacity: .6;
}

.wfa-job-single a.wfa-co-tag:hover {
	background: var(--js-ink);
	color: var(--js-paper);
}

.wfa-co-roles {
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 1px solid var(--js-line);
}

.wfa-company-page .wfa-js-band {
	margin-top: clamp(3.5rem, 7vw, 5rem);
}
