/*
 * WFA 312 Recruitment agencies: /recruitment-agencies/ (1.0.5: six why cards, flush with the page edge)
 * Sits on top of 288 sponsors.css and 308 smk.css (same .wfa-ns-page frame as /countries/ and /sponsor/).
 * Monochrome: ink on cream, square cards, pill choices and badges, no shadows, no blue.
 */

/* Hero, centred */
.wfa-fag-hero{text-align:center}
.wfa-ns-page .wfa-fag-hero .wfa-sc__title{max-width:18ch;margin-left:auto;margin-right:auto}
.wfa-ns-page .wfa-fag-hero .wfa-sc__standfirst{margin-left:auto;margin-right:auto}
.wfa-fag-btns{justify-content:center}
.wfa-fag-center{text-align:center}
.wfa-fag-center .wfa-ns-btn{margin-left:auto;margin-right:auto}
.wfa-fag-fine{margin:.5rem 0 0}

/* Badges: small monochrome pills */
.wfa-fag-badge{display:inline-flex;align-items:center;min-height:1.6rem;padding:0 .7rem;border:1px solid var(--t-ink);border-radius:0;background:var(--t-paper);font-size:.68rem;font-weight:600;line-height:1;letter-spacing:.12em;text-transform:uppercase;color:var(--t-ink);white-space:nowrap}

/* Why agencies post here */
/* 1.0.5: six cards, two rows of three; the outer cards have no side padding, so their text lines up with the page edge (heading, figures) */
.wfa-fag-why{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--t-line);border-top:1px solid var(--t-ink);border-bottom:1px solid var(--t-line)}
.wfa-fag-card{display:flex;flex-direction:column;align-items:flex-start;gap:.7rem;padding:1.4rem 1.25rem 1.5rem;background:var(--t-paper)}
.wfa-fag-card:nth-child(3n+1){padding-left:0}
.wfa-fag-card:nth-child(3n){padding-right:0}
@media (max-width:900px){.wfa-fag-why{grid-template-columns:repeat(2,minmax(0,1fr))}.wfa-fag-card:nth-child(n){padding-left:1.25rem;padding-right:1.25rem}.wfa-fag-card:nth-child(2n+1){padding-left:0}.wfa-fag-card:nth-child(2n){padding-right:0}}
@media (max-width:560px){.wfa-fag-why{grid-template-columns:1fr}.wfa-fag-card:nth-child(n){padding-left:0;padding-right:0}}
.wfa-ns-page .wfa-fag-h3{margin:0;font-family:var(--t-display);font-size:1.25rem;font-weight:400;line-height:1.25;letter-spacing:-.01em;color:var(--t-ink)}
.wfa-fag-card p{margin:0;font-size:.9375rem;line-height:1.6;color:var(--t-muted)}

/* Prices */
.wfa-fag-prices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:1rem;list-style:none;margin:0 0 1.25rem;padding:0}
.wfa-fag-price{display:flex;flex-direction:column;gap:.45rem;margin:0;padding:1.25rem 1.1rem 1.35rem;border:1px solid var(--t-ink);background:var(--t-paper)}
.wfa-fag-price__num{font-family:var(--t-display);font-size:clamp(2.25rem,4vw,2.9rem);line-height:1;letter-spacing:-.02em;font-variant-numeric:lining-nums}
.wfa-fag-price.is-dark{background:var(--t-ink);color:var(--t-paper)}
.wfa-fag-price.is-dark .wfa-ns-stat__label,.wfa-fag-price.is-dark .wfa-ns-stat__hint{color:var(--t-paper);opacity:.8}
.wfa-fag-addon{display:flex;flex-wrap:wrap;align-items:baseline;gap:.6rem 1rem;margin:0 0 1.5rem!important;padding:1rem 1.1rem;background:var(--t-card);border-left:3px solid var(--t-ink);font-size:.9375rem;line-height:1.55}
.wfa-fag-addon>span:last-child{flex:1 1 20rem}

/* Form: pill choices */
.wfa-fag-formwrap{border-top-width:3px}
.wfa-fag-form{margin:0}
.wfa-fag-pills{display:flex;flex-wrap:wrap;gap:.5rem}
.wfa-ns-form label.wfa-fag-pill{position:relative;display:inline-flex;flex-direction:row;margin:0;font-size:.875rem;font-weight:500;letter-spacing:0;text-transform:none;cursor:pointer}
.wfa-fag-pill input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.wfa-fag-pill span{display:inline-flex;align-items:center;min-height:2.5rem;padding:0 1rem;border:1px solid var(--t-ink);border-radius:0;background:var(--t-paper);color:var(--t-ink);transition:background .15s,color .15s}
.wfa-fag-pill:hover span{background:var(--t-card)}
.wfa-fag-pill input:checked+span{background:var(--t-ink);color:var(--t-paper)}
.wfa-fag-pill input:focus-visible+span{outline:2px solid var(--t-ink);outline-offset:3px}
.wfa-fag-fs{margin-bottom:1.5rem}
.wfa-fag-fs.is-bad legend,.wfa-ns-form label.is-bad{color:var(--t-no)}
.wfa-ns-page .wfa-ns-form label.is-bad input{border-color:var(--t-no);border-width:2px}
.wfa-fag-form .wfa-ns-btn{min-width:14rem}
.wfa-fag-thanks{text-align:center}
.wfa-fag-thanks p{max-width:36rem;margin-left:auto;margin-right:auto}

/* FAQ */
.wfa-fag-q{border-bottom:1px solid var(--t-line)}
.wfa-fag-q:first-of-type{border-top:1px solid var(--t-ink)}
.wfa-fag-q summary{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;font-family:var(--t-display);font-size:1.125rem;line-height:1.35;cursor:pointer;list-style:none}
.wfa-fag-q summary::-webkit-details-marker{display:none}
.wfa-fag-q summary::after{content:"+";flex:0 0 auto;font-family:var(--wfa-ui,system-ui,sans-serif);font-size:1.25rem;line-height:1}
.wfa-fag-q[open] summary::after{content:"\2212"}
.wfa-fag-q summary:focus-visible{outline:2px solid var(--t-ink);outline-offset:3px}
.wfa-fag-q p{max-width:46rem;margin:0 0 1.1rem;color:var(--t-muted);line-height:1.65}

/* Closing */
.wfa-fag-cta .wfa-rt-h2{max-width:28ch;margin-left:auto;margin-right:auto}
.wfa-fag-cta .wfa-fag-btns{flex-wrap:wrap;gap:.75rem}

@media (max-width:600px){
	.wfa-fag-btns .wfa-ns-btn{width:100%}
	.wfa-fag-form .wfa-ns-btn{width:100%;min-width:0}
}

/* 1.0.3: photo band behind the heading, the look of the guide pages (158) but shorter.
   Full width, straight under the header bar; square, no shadow; dark wash for AA contrast. */
body.wfa-fag-body{overflow-x:clip}
body.wfa-fag-body #main:has(.wfa-fag-hero.has-photo){margin-top:0}
.wfa-ns-page .wfa-sc__wrap:has(.wfa-fag-hero.has-photo){padding-top:0}
.wfa-ns-page .wfa-fag-hero.has-photo{position:relative;isolation:isolate;display:grid;grid-template-areas:"hero";grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);width:100vw;max-width:none;min-height:360px;margin:0 0 clamp(2.5rem,5vw,3.5rem) calc(50% - 50vw);padding:0;border:0;background:#14171a;color:#faf7f2;text-align:center}
.wfa-fag-hero__media{position:absolute;inset:0;z-index:-1;margin:0;overflow:hidden;background:#14171a}
.wfa-fag-hero__media picture{display:block;width:100%;height:100%}
.wfa-fag-hero__img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 45%}
.wfa-fag-hero__media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,23,26,.6) 0%,rgba(20,23,26,.66) 55%,rgba(20,23,26,.76) 100%)}
.wfa-fag-hero__text{grid-area:hero;align-self:center;justify-self:center;width:100%;max-width:1000px;margin:0;padding:40px 30px 44px}
.wfa-ns-page .wfa-fag-hero.has-photo .wfa-tl-eyebrow{margin-bottom:.75rem;color:rgba(250,247,242,.88)}
.wfa-ns-page .wfa-fag-hero.has-photo .wfa-sc__title{max-width:28ch;font-size:clamp(2.25rem,4.2vw,3.125rem);color:#faf7f2;text-shadow:0 1px 18px rgba(0,0,0,.25)}
.wfa-ns-page .wfa-fag-hero.has-photo .wfa-sc__standfirst{max-width:44rem;margin-top:1rem;font-size:clamp(1rem,1.4vw,1.0625rem);line-height:1.6;color:rgba(250,247,242,.94)}
.wfa-ns-page .wfa-fag-hero.has-photo .wfa-ns-actions{margin-top:1.4rem!important}
.wfa-ns-page .wfa-fag-hero.has-photo .wfa-ns-btn{background:#faf7f2;border-color:#faf7f2;color:#14171a}
.wfa-ns-page .wfa-fag-hero.has-photo .wfa-ns-btn:hover,.wfa-ns-page .wfa-fag-hero.has-photo .wfa-ns-btn:focus-visible{background:transparent;color:#faf7f2}
.wfa-ns-page .wfa-fag-hero.has-photo .wfa-ns-btn.is-outline{background:rgba(20,23,26,.72);border-color:#faf7f2;color:#faf7f2}
.wfa-ns-page .wfa-fag-hero.has-photo .wfa-ns-btn.is-outline:hover,.wfa-ns-page .wfa-fag-hero.has-photo .wfa-ns-btn.is-outline:focus-visible{background:#faf7f2;color:#14171a}
.wfa-ns-page .wfa-fag-hero.has-photo a:focus-visible{outline-color:#faf7f2}
.wfa-fag-hero__credit{grid-area:hero;align-self:end;justify-self:end;margin:0;padding:8px 14px;max-width:70%;font-size:11px;line-height:1.4;color:rgba(250,247,242,.85);text-align:right}
.wfa-ns .wfa-fag-hero__credit a{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;color:rgba(250,247,242,.85);font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;text-decoration:none}
.wfa-ns .wfa-fag-hero__credit a:hover,.wfa-ns .wfa-fag-hero__credit a:focus-visible{color:#fff;border:0}
@media (max-width:768px){
.wfa-ns-page .wfa-fag-hero.has-photo{min-height:220px}
.wfa-ns-page .wfa-fag-hero.has-photo .wfa-sc__title{max-width:18ch}
.wfa-fag-hero__text{padding:36px 16px 52px}
.wfa-ns-page .wfa-fag-hero.has-photo .wfa-sc__title{font-size:clamp(2rem,8.4vw,2.5rem)}
.wfa-fag-hero__credit{padding:6px 10px;max-width:100%}
}

/* 1.0.4: no rule above the first section after the hero, and the gap is the hero margin only */
.wfa-ns-page .wfa-fag-hero + .wfa-ns-group{border-top:0;padding-top:0}
/* 1.0.4: the bar blocks sit one section gap below the figures (gap matches the hero-to-section gap: 56px desktop, 40px phone) */
.wfa-ns-page .wfa-ns-stats + .wfa-fag-cols{margin-top:clamp(2.5rem,5vw,3.5rem)}
/* 1.0.4: the request form uses the full width of its box; four details in one row, two on tablets, one on phones */
.wfa-ns-page .wfa-fag-formwrap .wfa-ns-lede,.wfa-ns-page .wfa-fag-formwrap .wfa-fag-form{max-width:none}
.wfa-ns-page .wfa-fag-form .wfa-ns-grid2{grid-template-columns:repeat(4,minmax(0,1fr))}
.wfa-ns-page .wfa-fag-form .wfa-ns-grid2 label{justify-content:flex-end}
@media (max-width:900px){.wfa-ns-page .wfa-fag-form .wfa-ns-grid2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.wfa-ns-page .wfa-fag-form .wfa-ns-grid2{grid-template-columns:minmax(0,1fr)}}
