/* Softfootball Ads */
.sfa-ad { box-sizing: border-box; max-width: 100%; margin: 24px auto; text-align: center; }
.sfa-ad.sfa-align-left { margin-left: 0; text-align: left; }
.sfa-ad.sfa-align-right { margin-right: 0; text-align: right; }
.sfa-ad[style*="--sfa-w"] { width: var(--sfa-w); }
.sfa-ad[style*="--sfa-w"] .sfa-ad__slot { min-height: var(--sfa-h); } /* Reserve space so the page doesn't jump */
.sfa-ad__slot { display: block; max-width: 100%; overflow: hidden; }
.sfa-ad__slot > * { max-width: 100%; }
.sfa-ad__img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.sfa-align-left .sfa-ad__img { margin-left: 0; }
.sfa-align-right .sfa-ad__img { margin-right: 0; }
.sfa-ad__label { display: block; margin-bottom: 4px; font-size: 11px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: #8A8A8A; }
.sfa-band { width: 100%; }
.sfa-band__inner { max-width: var(--sf-wrap, 1120px); margin: 0 auto; padding: 0 var(--sf-gutter, 24px); box-sizing: border-box; }
.sfa-band .sfa-ad { margin: 20px auto; }
.sfa-in-list { list-style: none; }
.sfa-in-list .sfa-ad { margin: 0 auto; }
.sf-job-side .sfa-placement { margin: 0 0 32px; }
.sfa-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; justify-content: center; padding: 6px 44px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); box-shadow: 0 -4px 18px rgba(0, 0, 0, .12); }
.sfa-sticky .sfa-ad { margin: 0 auto; }
.sfa-sticky[hidden] { display: none; }
.sfa-sticky__close { position: absolute; top: 4px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #F0F0F0; color: #333; font-size: 20px; line-height: 1; cursor: pointer; }
.sfa-sticky__close:hover, .sfa-sticky__close:focus-visible { background: #E2E2E2; }
@media (max-width: 767px) {
	.sfa-ad[style*="--sfa-w"] .sfa-ad__slot { min-height: 0; }
}

/* The advert under the header: exactly 15px above it and 15px to whatever comes next, on every page.
   The advert keeps 15px below it; the first thing on the page drops its own top spacing (only while an advert shows). */
.sfa-placement--after-header .sfa-ad { margin-top: 15px; margin-bottom: 15px; } /* 15px above (to the header or breadcrumb line) and 15px below. */
.sfa-band:has(.sfa-ad) + .sf-site-content > .sf-main:first-child { padding-top: 0; }
.sfa-band:has(.sfa-ad) + .sf-site-content > .sf-main:first-child .sfj-jobs--with-filters { margin-top: 0; }
.sfa-band:has(.sfa-ad) + .sf-site-content > .sf-employer-hero:first-child .sf-employer-hero__inner { padding-top: 0; }
.sfa-band:has(.sfa-ad) + .sf-site-content > .sfr-single:first-child > .sfr-story:first-child { padding-top: 0; }
.sfa-band:has(.sfa-ad) + .sf-site-content > .sfb > .sfb-section:first-child:not([style*="background"]) { padding-top: 0 !important; }

/* An advert that's the last thing in its area (e.g. the job sidebar at the bottom of a phone screen) adds no space below. */
.sf-job-side > .sfa-placement:last-child .sfa-ad:last-child, .sfa-placement:not(.sfa-placement--after-header):last-child > .sfa-ad:last-child { margin-bottom: 0; } /* Not the ad under the header: it keeps its 15px. */
.sfa-placement--after-header .sfa-ad:last-child { margin-bottom: 15px; } /* The advert under the header keeps its 15px. */
