/*
 * WFA - 269 Hire remotely (v1.0.0)
 * Upload to: /wp-content/mu-plugins/wfa/assets/hire/hire.css
 * Loaded after wfa-tools.css on /business/hire-remotely/ and its country pages.
 * House style: ink on cream, Fraunces headings, square corners, no shadows.
 */

.wfa-hr {
	--hr-ink: var(--wfa-ink, #14171a);
	--hr-muted: var(--wfa-muted, #5f6a70);
	--hr-line: var(--wfa-line, #e2dcd2);
	--hr-card: var(--wfa-surface, #f2ede4);
	--hr-paper: var(--wfa-paper, #faf7f2);
	--hr-yes: var(--wfa-accent, #0f5548);
	--hr-flag: var(--wfa-flag, #b4562f);
}

/* Breadcrumb */
.wfa-hr-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0 0 1.5rem;
	font-size: .8125rem;
	color: var(--hr-muted);
}
.wfa-hr-crumbs a { color: var(--hr-muted); }

/* Key numbers, like the footer stats strip */
.wfa-hr-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0;
	margin: 0 0 1.75rem;
	border-top: 1px solid var(--hr-line);
	border-bottom: 1px solid var(--hr-line);
}
.wfa-hr-stats > div {
	padding: 1rem 1.25rem 1rem 0;
	border-right: 1px solid var(--hr-line);
	margin-right: 1.25rem;
}
.wfa-hr-stats > div:last-child { border-right: 0; margin-right: 0; }
.wfa-hr-stats dt {
	margin: 0 0 .35rem;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hr-muted);
}
.wfa-hr-stats dd {
	margin: 0;
	font-family: var(--wfa-display, "Fraunces", Georgia, serif);
	font-size: clamp(1.25rem, 2.4vw, 1.6rem);
	line-height: 1.2;
	color: var(--hr-ink);
}
@media (max-width: 640px) {
	.wfa-hr-stats { grid-template-columns: 1fr 1fr; }
	.wfa-hr-stats > div { border-right: 0; margin-right: 0; padding-right: .75rem; border-bottom: 1px solid var(--hr-line); }
	.wfa-hr-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Jump links */
.wfa-hr-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 1rem;
}
.wfa-hr-jump a {
	padding: .45rem .8rem;
	border: 1px solid var(--hr-line);
	background: var(--hr-paper);
	font-size: .875rem;
	color: var(--hr-ink);
	text-decoration: none;
	padding-bottom: .45rem;
}
.wfa-hr-jump a:hover,
.wfa-hr-jump a:focus-visible { border-color: var(--hr-ink); color: var(--hr-ink); }

/* Four ways to hire */
.wfa-hr-ways {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}
.wfa-hr-way {
	display: flex;
	flex-direction: column;
	padding: 18px 18px 14px;
	background: var(--hr-card);
	border: 1px solid var(--hr-line);
}
.wfa-hr-way__tag {
	margin: 0 0 .5rem;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hr-muted);
}
.wfa-hr-way h3 {
	margin: 0 0 .6rem;
	font-family: var(--wfa-ui, "Public Sans", system-ui, sans-serif);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0;
}
.wfa-hr-way p { margin: 0 0 .75rem; font-size: .9375rem; line-height: 1.55; }
.wfa-hr-way .wfa-hr-way__tag { font-size: .72rem; margin-bottom: .5rem; }
.wfa-hr .wfa-hr-way .wfa-sc-textlink { color: var(--hr-ink); }
.wfa-hr-way p:last-child { margin-top: auto; margin-bottom: 0; }

/* Post a job strip and card */
.wfa-hr-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin: clamp(2rem, 4vw, 2.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
	padding: 18px 22px;
	background: var(--hr-card);
	border-left: 3px solid var(--hr-ink);
}
.wfa-hr-strip p { margin: 0; max-width: 46rem; }
.wfa-hr-strip strong { font-family: var(--wfa-display, "Fraunces", Georgia, serif); font-weight: 400; font-size: 1.2rem; margin-right: .25rem; }

.wfa-hr-cta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: center;
	margin: clamp(2.5rem, 5vw, 3.5rem) 0;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--hr-ink);
	color: var(--hr-paper);
}
@media (min-width: 800px) { .wfa-hr-cta { grid-template-columns: 3fr 2fr; } }
.wfa-hr-cta .wfa-tl-eyebrow { color: #c9c3b8; }
.wfa-hr-cta__h {
	margin: 0 0 .75rem;
	font-family: var(--wfa-display, "Fraunces", Georgia, serif);
	font-weight: 400;
	font-size: clamp(1.75rem, 3.6vw, 2.5rem);
	line-height: 1.1;
	color: var(--hr-paper);
}
.wfa-hr-cta p { margin: 0; color: #d9d4ca; line-height: 1.6; }
.wfa-hr-cta__points { list-style: none; margin: 0 0 1rem; padding: 0; }
.wfa-hr-cta__points li { padding: .55rem 0; border-bottom: 1px solid #3a3f44; font-size: .9375rem; }
.wfa-hr .wfa-hr-cta .wfa-hr-cta__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	background: var(--hr-paper);
	color: var(--hr-ink);
	border-color: var(--hr-paper);
}
.wfa-hr .wfa-hr-cta .wfa-hr-cta__btn:hover,
.wfa-hr .wfa-hr-cta .wfa-hr-cta__btn:focus-visible { background: var(--hr-ink); color: var(--hr-paper); }

/* Buttons and text */
.wfa-hr .wfa-hr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0 1.5rem;
	border: 1px solid var(--hr-ink);
	border-radius: 0;
	background: var(--hr-ink);
	color: var(--hr-paper);
	font-family: var(--wfa-ui, "Public Sans", system-ui, sans-serif);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.wfa-hr .wfa-hr-btn:hover,
.wfa-hr .wfa-hr-btn:focus-visible { background: var(--hr-paper); color: var(--hr-ink); }
.wfa-hr-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.wfa-hr-lead { font-size: 1.0625rem; line-height: 1.65; max-width: 46rem; }
.wfa-hr-note { font-size: .875rem; color: var(--hr-muted); max-width: 46rem; }

/* Know this first */
.wfa-hr-watch {
	margin: 0 0 1.5rem;
	padding: 16px 20px;
	background: var(--hr-card);
	border-left: 3px solid var(--hr-flag);
}
.wfa-hr-watch .wfa-tl-eyebrow { margin-bottom: .5rem; }
.wfa-hr-watch ul { margin: 0 0 .5rem 1.1rem; padding: 0; }
.wfa-hr-watch li { margin: 0 0 .4rem; }

/* Visas */
.wfa-hr-visas {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
	margin: 0 0 1rem;
}
.wfa-hr-visa {
	padding: 18px;
	background: #fff;
	border: 1px solid var(--hr-line);
}
.wfa-hr-visa h3 {
	margin: 0 0 .6rem;
	font-family: var(--wfa-ui, "Public Sans", system-ui, sans-serif);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
}
.wfa-hr-visa p { font-size: .9375rem; line-height: 1.55; margin: 0 0 .6rem; }
.wfa-hr-unchecked {
	padding: 10px 12px;
	background: #f4e3da;
	border-left: 3px solid var(--hr-flag);
	font-size: .875rem !important;
}

/* Time zone overlap bars */
.wfa-hr-overlap { display: grid; gap: 14px; max-width: 40rem; margin: 0 0 1rem; }
.wfa-hr-ov__label { margin: 0 0 .35rem; font-size: .9375rem; }
.wfa-hr-ov__bar { height: 10px; background: var(--hr-card); border: 1px solid var(--hr-line); }
.wfa-hr-ov__bar span { display: block; height: 100%; background: var(--hr-ink); }

/* Lists */
.wfa-hr-list { margin: 0 0 1rem 1.1rem; padding: 0; max-width: 46rem; }
.wfa-hr-list li { margin: 0 0 .6rem; }

/* Providers */
.wfa-hr-prov { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--hr-line); }
.wfa-hr-prov li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	padding: .75rem 0;
	border-bottom: 1px solid var(--hr-line);
}
.wfa-hr-prov__name { font-weight: 700; min-width: 9rem; }
.wfa-hr-prov__price { color: var(--hr-muted); min-width: 10rem; }
.wfa-hr-prov__go {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	border-bottom: 1px solid currentColor;
}
.wfa-hr-aff {
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hr-muted);
	padding: .15rem .45rem;
	border: 1px solid var(--hr-line);
}

/* Questions */
.wfa-hr-faq details { border-bottom: 1px solid var(--hr-line); }
.wfa-hr-faq details:first-child { border-top: 1px solid var(--hr-line); }
.wfa-hr-faq summary {
	cursor: pointer;
	padding: .9rem 0;
	font-weight: 600;
	list-style: none;
}
.wfa-hr-faq summary::-webkit-details-marker { display: none; }
.wfa-hr-faq summary::after { content: "+"; float: right; font-weight: 400; color: var(--hr-muted); }
.wfa-hr-faq details[open] summary::after { content: "\2212"; }
.wfa-hr-faq details p { margin: 0 0 1rem; max-width: 46rem; line-height: 1.6; }

/* Chips */
.wfa-hr-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1rem; padding: 0; }
.wfa-hr-chips a {
	display: inline-block;
	padding: .45rem .8rem;
	border: 1px solid var(--hr-line);
	background: var(--hr-paper);
	font-size: .875rem;
	color: var(--hr-ink);
}
.wfa-hr-chips a:hover,
.wfa-hr-chips a:focus-visible { border-color: var(--hr-ink); }

/* Index: the /countries/ layout (map from 169, cards from 185, both
   only print their own styles on /countries/, so they are copied here) */
.wfa-hr--index .wfa-hr-strip { margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.wfa-hr-map.wfa-cmap { position: relative; margin: 0 0 clamp(2rem, 4vw, 2.5rem); padding: 0; }
.wfa-hr-map .wfa-cmap__svg { display: block; width: 100%; height: auto; background: #f6f2eb; border-top: 1px solid var(--hr-ink); border-bottom: 1px solid var(--hr-line); }
.wfa-hr-map .wfa-cmap__off { fill: #ebe4d7; stroke: #d8d0c2; stroke-width: .5; }
.wfa-hr-map .wfa-cmap__on path,
.wfa-hr-map .wfa-cmap__on circle { fill: #c9b896; stroke: #faf7f2; stroke-width: .6; transition: fill .15s ease; }
.wfa-hr-map .wfa-hr-map__risk path,
.wfa-hr-map .wfa-hr-map__risk circle { fill: #dfb7a3; }
.wfa-hr-map .wfa-cmap__dot circle { stroke: #faf7f2; stroke-width: 1.2; }
.wfa-hr-map .wfa-cmap__on:hover path,
.wfa-hr-map .wfa-cmap__on:hover circle,
.wfa-hr-map .wfa-cmap__on:focus path,
.wfa-hr-map .wfa-cmap__on:focus circle { fill: var(--hr-ink); }
.wfa-hr-map .wfa-cmap__on:focus { outline: none; }
.wfa-hr-map .wfa-cmap__on:focus-visible path,
.wfa-hr-map .wfa-cmap__on:focus-visible circle { stroke: var(--hr-ink); stroke-width: 1.5; }
.wfa-hr-map .wfa-cmap__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin: .75rem 0 0; font-size: .8rem; color: var(--hr-muted); }
.wfa-hr-map .wfa-cmap__keys { display: inline-flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.wfa-hr-map .wfa-cmap__key { display: inline-flex; align-items: center; gap: .45rem; }
.wfa-hr-map .wfa-cmap__swatch { display: inline-block; width: .85rem; height: .85rem; background: #c9b896; }
.wfa-hr-map .wfa-hr-map__swatch { background: #dfb7a3; }
.wfa-hr-map .wfa-cmap__name { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.wfa-hr-map .wfa-cmap__tip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .55rem .3rem .35rem; background: var(--hr-ink); color: var(--hr-paper); font-family: var(--wfa-ui, "Public Sans", system-ui, sans-serif); font-size: .6875rem; font-weight: 600; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 18px -10px rgba(20, 23, 26, .6); opacity: 0; transform: translateY(-50%); transition: opacity .12s ease; }
.wfa-hr-map .wfa-cmap__tip.is-on { opacity: 1; }
.wfa-hr-map .wfa-cmap__tip img { display: block; width: 16px; height: 16px; margin: 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--hr-paper); }
.wfa-hr-map .wfa-cmap__tip img[hidden] { display: none; }
@media (hover: none) { .wfa-hr-map .wfa-cmap__tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .wfa-hr-map .wfa-cmap__on path, .wfa-hr-map .wfa-cmap__on circle { transition: none; } }

.wfa-hr-all .wfa-co-group { margin: 0; padding: 0; border: 0; }
.wfa-hr-all .wfa-rt-h2 { margin: 0 0 18px; }
.wfa-cm-rcount { color: var(--hr-muted); font-size: .6em; }
.wfa-hr-all .wfa-cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 0 0 40px; }
.wfa-hr-all .wfa-cm-card { display: flex; flex-direction: column; padding: 16px 16px 14px; border: 1px solid var(--hr-line); background: var(--hr-card); scroll-margin-top: 110px; }
.wfa-hr-all .wfa-cm-card:target { outline: 2px solid var(--hr-ink); outline-offset: 3px; }
.wfa-hr-all .wfa-cm-card--stop { background: #fff; }
.wfa-hr-all .wfa-cm-card a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--hr-line); }
.wfa-hr-all .wfa-cm-card a:hover,
.wfa-hr-all .wfa-cm-card a:focus { border-bottom-color: var(--hr-ink); }
.wfa-hr-all .wfa-cm-card a.wfa-cm-photo { display: block; border: 0; margin: -16px -16px 14px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hr-line); }
.wfa-hr-all .wfa-cm-photo__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s; }
.wfa-hr-all .wfa-cm-card:hover .wfa-cm-photo__img { transform: scale(1.03); }
.wfa-hr .wfa-hr-all .wfa-cm-name { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--wfa-ui, "Public Sans", sans-serif); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.wfa-hr-all .wfa-cm-flag { display: block; width: 20px; height: auto; margin: 0; filter: grayscale(1); transition: filter .15s ease; }
.wfa-hr-all .wfa-cm-card:hover .wfa-cm-flag { filter: none; }
.wfa-hr-all .wfa-cm-stop { margin: 0 0 8px; padding: 8px 10px; border-left: 3px solid var(--hr-flag); background: var(--hr-card); font-size: .85rem; line-height: 1.45; }
.wfa-hr-all .wfa-cm-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 6px 0 8px; font-size: .82rem; line-height: 1.4; }
.wfa-hr-all .wfa-cm-facts dt { margin: 0; font-weight: 600; color: var(--hr-muted); white-space: nowrap; }
.wfa-hr-all .wfa-cm-facts dd { margin: 0; }
.wfa-hr-all .wfa-cm-more { margin: auto 0 0; padding-top: 8px; font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { .wfa-hr-all .wfa-cm-photo__img, .wfa-hr-all .wfa-cm-flag { transition: none; } }

/* Under sanctions or in conflict: the warning at the top of a country page */
.wfa-hr-alert {
	margin: 0 0 clamp(1.5rem, 3vw, 2rem);
	padding: 18px 22px;
	background: #fff;
	border: 1px solid var(--hr-line);
	border-left: 4px solid var(--hr-flag);
}
.wfa-hr-alert .wfa-tl-eyebrow { margin: 0 0 .6rem; color: var(--hr-flag); }
.wfa-hr-alert ul { margin: 0 0 .75rem 1.1rem; padding: 0; }
.wfa-hr-alert li { margin: 0 0 .5rem; line-height: 1.6; }
.wfa-hr-alert__note { margin: .75rem 0 0; font-weight: 600; }
