/* =========================================================
   Treningi personalne Solofit

   .sft  one trainer: label, name, specialities, the copy, facts,
         a closing line, a button that opens the booking form with
         her already chosen, and three photo slots (portrait and two
         squares). Dark or cream, the photos on either side. An empty
         slot shows a frame that says what belongs in it.
   .sfj  the booking form, dark: intro with the steps on the left,
         the form in a panel on the right.

   Both speak the language of the other subpages (snippets 10386
   and 10332): inset shadow on the top and bottom edge so sections
   of one tone meet without a seam, a soft pool of light, one
   hairline glyph in Chakra Petch geometry.

   The page opening (.sfti) has its own stylesheet, intro.css,
   loaded just before this one.
   ========================================================= */

.sft,
.sfj {
	--sft-ink: #0d0d0d;
	--sft-paper: #f2f0eb;
	--sft-accent: #f2b705;
	--sft-bad: #ff8a75;
	--sft-head: "Chakra Petch";
	--sft-body: "Barlow";
	--sft-ease: cubic-bezier(.2, .8, .2, 1);
	--sft-screen: var(--sf-screen, 820px);

	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	width: 100%;
	font-family: var(--sft-body), sans-serif;
	-webkit-tap-highlight-color: transparent;
	/* An anchor jump lands under the fixed header, not behind it. */
	scroll-margin-top: calc(var(--sfh-h, 74px) + var(--sfh-promo-h, 0px) - 1px);
}

.sft *,
.sft *::before,
.sft *::after,
.sfj *,
.sfj *::before,
.sfj *::after {
	box-sizing: border-box;
}

.sft [hidden],
.sfj [hidden] {
	display: none !important;
}

.sft--dark ::selection,
.sfj ::selection {
	background: rgba(242, 183, 5, .28);
	color: var(--sft-paper);
}

.sft--light ::selection {
	background: rgba(242, 183, 5, .5);
	color: var(--sft-ink);
}

/* ---------- glyphs ---------- */

.sft--g-dumbbell::after,
.sft--g-kettlebell::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-color: var(--sft-glyph-color);
	-webkit-mask-image: var(--sft-glyph);
	mask-image: var(--sft-glyph);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: var(--sft-glyph-size);
	mask-size: var(--sft-glyph-size);
	-webkit-mask-position: var(--sft-glyph-pos);
	mask-position: var(--sft-glyph-pos);
}

.sft--g-dumbbell {
	--sft-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 200'%3E%3Cpath fill='none' stroke='black' stroke-width='1' vector-effect='non-scaling-stroke' d='M40 30H70L78 38V162L70 170H40L32 162V38Z M86 55H106L112 61V139L106 145H86L80 139V61Z M112 92H228V108H112Z M234 61L240 55H260L266 61V139L260 145H240L234 139Z M270 38L278 30H308L316 38V162L308 170H278L270 162Z M8 92H32V108H8Z M316 92H334V108H316Z'/%3E%3C/svg%3E");
}

.sft--g-kettlebell {
	--sft-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 300'%3E%3Cpath fill='none' stroke='black' stroke-width='1' vector-effect='non-scaling-stroke' d='M78 14H182L214 46V118H190V54L174 38H86L70 54V118H46V46Z M58 112H202L246 156V238L202 282H58L14 238V156Z M100 160H160L178 178V216L160 234H100L82 216V178Z'/%3E%3C/svg%3E");
}

.sft {
	--sft-glyph-size: clamp(10rem, 40vw, 14rem) auto;
	--sft-glyph-pos: right -3.5rem top 2.5rem;
}

/* ---------- tones ---------- */

.sft--dark,
.sfj {
	--sft-glyph-color: rgba(242, 183, 5, .22);

	background: var(--sft-ink);
	color: var(--sft-paper);
	box-shadow:
		inset 0 170px 150px -140px rgba(0, 0, 0, .55),
		inset 0 -170px 150px -140px rgba(0, 0, 0, .55);
}

.sft--light {
	--sft-glyph-color: rgba(13, 13, 13, .1);

	background: var(--sft-paper);
	color: var(--sft-ink);
	box-shadow:
		inset 0 170px 150px -140px rgba(60, 50, 30, .07),
		inset 0 -170px 150px -140px rgba(60, 50, 30, .07);
}

.sft::before,
.sfj::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.sft--dark::before,
.sfj::before {
	background: radial-gradient(ellipse 95% 620px at 50% 420px, rgba(242, 240, 235, .055), rgba(242, 240, 235, 0) 70%);
	background: radial-gradient(ellipse min(1200px, 95vw) 620px at 50% 420px, rgba(242, 240, 235, .055), rgba(242, 240, 235, 0) 70%);
}

.sft--light::before {
	background: radial-gradient(ellipse 95% 620px at 50% 420px, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%);
	background: radial-gradient(ellipse min(1200px, 95vw) 620px at 50% 420px, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%);
}

/* =========================================================
   TRAINER
   Phones: heading, photos, then the copy and the button.
   Desktop: copy in one column, the photos beside it, held in
   view while the copy scrolls past.
   ========================================================= */

.sft__inner {
	position: relative;
	display: grid;
	gap: 2.25rem;
	width: 100%;
	max-width: 84rem;
	margin: 0 auto;
	padding: 4.5rem 1.15rem;
}

.sft__text {
	display: contents;
}

.sft__head {
	order: 1;
	display: flex;
	flex-direction: column;
	gap: .9rem;
	min-width: 0;
}

.sft__media {
	order: 2;
}

.sft__body {
	order: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.75rem;
	min-width: 0;
}

.sft__eyebrow {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0;
	font-family: var(--sft-body), sans-serif;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #8a8a85;
}

.sft--light .sft__eyebrow {
	color: rgba(13, 13, 13, .55);
}

.sft__num {
	font-family: var(--sft-head), sans-serif;
	font-weight: 700;
	font-size: .9rem;
	letter-spacing: .04em;
	color: var(--sft-accent);
}

.sft--light .sft__num {
	color: var(--sft-ink);
}

.sft__rule {
	flex: none;
	width: 1.75rem;
	height: 1px;
	background: currentColor;
	opacity: .5;
}

.sft__title {
	margin: 0;
	font-family: var(--sft-head), sans-serif;
	font-weight: 700;
	font-size: clamp(2.3rem, 10vw, 3rem);
	line-height: 1;
	letter-spacing: -.03em;
	text-wrap: balance;
}

.sft--dark .sft__title {
	color: var(--sft-paper);
}

.sft--dark .sft__title em {
	font-style: italic;
	color: var(--sft-accent);
}

.sft--light .sft__title {
	color: var(--sft-ink);
}

/* The yellow marker the cream sections use for their accent words. */
.sft--light .sft__title em {
	padding: 0 .06em;
	font-style: italic;
	color: var(--sft-ink);
	background-image: linear-gradient(rgba(0, 0, 0, 0) 62%, rgba(242, 183, 5, .85) 62%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* ---------- specialities ---------- */

.sft__tags {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: .35rem 0 0;
	padding: 0;
	list-style: none;
}

.sft__tags li {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	margin: 0;
	padding: .45rem .8rem;
	border: 1px solid rgba(242, 240, 235, .14);
	border-radius: 3px;
	font-size: .86rem;
	font-weight: 500;
	line-height: 1.2;
	color: rgba(242, 240, 235, .82);
}

.sft--light .sft__tags li {
	border-color: rgba(13, 13, 13, .16);
	background: rgba(255, 255, 255, .45);
	color: rgba(13, 13, 13, .82);
}

/* An octagonal dot, the Chakra Petch full stop. */
.sft__tags li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	background: var(--sft-accent);
	clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.sft--light .sft__tags li::before {
	background: var(--sft-ink);
}

/* ---------- copy ---------- */

.sft__copy {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 38rem;
}

.sft__copy p {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.7;
	text-wrap: pretty;
}

.sft--dark .sft__copy p {
	color: rgba(242, 240, 235, .76);
}

.sft--light .sft__copy p {
	color: rgba(13, 13, 13, .72);
}

/* The first paragraph opens: larger, in the heading face. */
.sft__copy p:first-child {
	font-family: var(--sft-head), sans-serif;
	font-weight: 600;
	font-size: 1.2rem;
	line-height: 1.45;
	letter-spacing: -.005em;
}

.sft--dark .sft__copy p:first-child {
	color: var(--sft-paper);
}

.sft--light .sft__copy p:first-child {
	color: var(--sft-ink);
}

.sft__copy strong {
	font-weight: 600;
}

.sft--dark .sft__copy strong {
	color: var(--sft-paper);
}

/* ---------- facts ---------- */

.sft__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: 100%;
	max-width: 38rem;
	margin: 0;
	border-top: 1px solid rgba(242, 240, 235, .12);
	border-bottom: 1px solid rgba(242, 240, 235, .12);
}

.sft--light .sft__facts {
	border-color: rgba(13, 13, 13, .14);
}

.sft__fact {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .3rem;
	min-width: 0;
	padding: 1.1rem .9rem 1.15rem 0;
}

.sft__fact + .sft__fact {
	padding-left: .9rem;
	border-left: 1px solid rgba(242, 240, 235, .12);
}

.sft--light .sft__fact + .sft__fact {
	border-left-color: rgba(13, 13, 13, .14);
}

/* The short chamfered bar the home page uses to mark a panel. */
.sft__fact::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 28px;
	height: 3px;
	background: var(--sft-accent);
	clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 3px 100%);
}

.sft__fact + .sft__fact::before {
	left: .9rem;
}

.sft__fact dt {
	margin: 0;
	font-family: var(--sft-head), sans-serif;
	font-weight: 700;
	font-size: clamp(1.35rem, 5.6vw, 1.85rem);
	line-height: 1;
	letter-spacing: -.02em;
	white-space: nowrap;
}

.sft--dark .sft__fact dt {
	color: var(--sft-accent);
}

.sft--light .sft__fact dt {
	color: var(--sft-ink);
}

.sft__fact dd {
	margin: 0;
	font-size: .84rem;
	line-height: 1.35;
}

.sft--dark .sft__fact dd {
	color: rgba(242, 240, 235, .62);
}

.sft--light .sft__fact dd {
	color: rgba(13, 13, 13, .6);
}

/* ---------- closing line ---------- */

.sft__sign {
	position: relative;
	max-width: 36rem;
	margin: 0;
	padding: .15rem 0 .15rem 1.1rem;
	font-family: var(--sft-head), sans-serif;
	font-weight: 600;
	font-style: italic;
	font-size: 1.15rem;
	line-height: 1.45;
	text-wrap: balance;
}

.sft__sign::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background: var(--sft-accent);
}

.sft--dark .sft__sign {
	color: var(--sft-paper);
}

.sft--light .sft__sign {
	color: var(--sft-ink);
}

/* ---------- button ---------- */

/* Three classes so this beats .btn-primary.btn-primary. */
.sft .sft__cta.sft__cta {
	gap: .65rem;
	white-space: normal;
	text-align: left;
}

.sft__cta .sft-i {
	flex: none;
	width: 18px;
	height: 18px;
}

.sft--light .sft__cta.sft__cta:focus-visible {
	outline-color: var(--sft-ink);
}

/* ---------- photos ---------- */

.sft__media {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: .75rem;
	min-width: 0;
}

.sft__photo {
	position: relative;
	min-width: 0;
	margin: 0;
	aspect-ratio: 1 / 1;
}

.sft__photo--main {
	grid-column: 1 / -1;
	aspect-ratio: 4 / 5;
}

.sft__photo--main::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -1px;
	left: 1.25rem;
	width: 44px;
	height: 3px;
	background: var(--sft-accent);
	clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 3px 100%);
}

.sft__frame {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 3px;
}

.sft--dark .sft__frame {
	background: #1a1a1a;
	box-shadow:
		0 40px 80px -44px rgba(0, 0, 0, .9),
		0 8px 24px -18px rgba(0, 0, 0, .7),
		0 0 0 1px rgba(242, 240, 235, .07);
}

.sft--light .sft__frame {
	background: #e4e1d8;
	box-shadow:
		0 40px 80px -46px rgba(17, 17, 17, .55),
		0 8px 24px -18px rgba(17, 17, 17, .3),
		0 0 0 1px rgba(17, 17, 17, .08);
}

/* Attribute plus class: Elementor's `.elementor img { height: auto }`
   outranks a single class, and the photo has to fill its frame. */
[data-sft] .sft__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: 50% 30%;
}

/* The portrait keeps the top of the frame: the Solo Fit sign on the wall
   and the face, rather than the floor. */
[data-sft] .sft__img--main {
	object-position: 50% 8%;
}

/* ---------- empty photo slot ---------- */

.sft__ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	overflow: hidden;
	padding: 1rem;
	text-align: center;
}

.sft--dark .sft__ph {
	border: 1px dashed rgba(242, 240, 235, .2);
	background:
		repeating-linear-gradient(-45deg, rgba(242, 240, 235, .03) 0 12px, rgba(242, 240, 235, 0) 12px 24px),
		#151515;
	color: rgba(242, 240, 235, .55);
}

.sft--light .sft__ph {
	border: 1px dashed rgba(13, 13, 13, .22);
	background:
		repeating-linear-gradient(-45deg, rgba(13, 13, 13, .045) 0 12px, rgba(13, 13, 13, 0) 12px 24px),
		#e9e6de;
	color: rgba(13, 13, 13, .55);
}

/* The initial, in outline, as large as the slot allows. */
.sft__ph-l {
	position: absolute;
	right: -.04em;
	bottom: -.2em;
	z-index: 0;
	font-family: var(--sft-head), sans-serif;
	font-weight: 700;
	font-style: italic;
	font-size: clamp(12rem, 52vw, 24rem);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px rgba(242, 183, 5, .3);
	pointer-events: none;
	user-select: none;
}

.sft--light .sft__ph-l {
	-webkit-text-stroke-color: rgba(13, 13, 13, .16);
}

.sft__ph-ico,
.sft__ph-t,
.sft__ph-s {
	position: relative;
	z-index: 1;
}

.sft__ph-ico {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: .2rem;
	border: 1px solid rgba(242, 183, 5, .38);
	border-radius: 3px;
	background: rgba(242, 183, 5, .08);
	color: var(--sft-accent);
}

.sft--light .sft__ph-ico {
	border-color: rgba(13, 13, 13, .2);
	background: rgba(242, 183, 5, .25);
	color: var(--sft-ink);
}

.sft__ph-ico .sft-i {
	width: 22px;
	height: 22px;
}

.sft__ph-t {
	font-family: var(--sft-head), sans-serif;
	font-weight: 600;
	font-size: 1.02rem;
	line-height: 1.2;
}

.sft--dark .sft__ph-t {
	color: var(--sft-paper);
}

.sft--light .sft__ph-t {
	color: var(--sft-ink);
}

.sft__ph-s {
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
}

/* The small squares keep it short. */
.sft__photo--2 .sft__ph-t,
.sft__photo--3 .sft__ph-t {
	font-size: .9rem;
}

.sft__photo--2 .sft__ph-ico,
.sft__photo--3 .sft__ph-ico {
	width: 38px;
	height: 38px;
}

.sft__photo--2 .sft__ph-ico .sft-i,
.sft__photo--3 .sft__ph-ico .sft-i {
	width: 18px;
	height: 18px;
}

@media (max-width: 479.98px) {
	.sft__photo--2 .sft__ph-t,
	.sft__photo--3 .sft__ph-t {
		display: none;
	}
}

/* =========================================================
   BOOKING FORM
   ========================================================= */

.sfj::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	/* A calendar page with one day ticked. */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 280'%3E%3Cpath fill='none' stroke='rgba(242,183,5,.22)' stroke-width='1' vector-effect='non-scaling-stroke' d='M34 40H266L290 64V246L266 270H34L10 246V64Z M10 100H290 M84 14V64 M216 14V64 M112 178L140 206L194 150'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: clamp(11rem, 44vw, 15rem) auto;
	background-position: right -3.5rem top 2.5rem;
}

.sfj__inner {
	position: relative;
	display: grid;
	gap: 2.75rem;
	width: 100%;
	max-width: 84rem;
	margin: 0 auto;
	padding: 4.5rem 1.15rem;
}

.sfj__intro {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	min-width: 0;
}

.sfj__head {
	display: flex;
	flex-direction: column;
	gap: .8rem;
}

.sfj__eyebrow {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0;
	font-family: var(--sft-body), sans-serif;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #8a8a85;
}

.sfj__dot {
	flex: none;
	width: .4rem;
	height: .4rem;
	border-radius: 50%;
	background: var(--sft-accent);
}

.sfj__title {
	margin: 0;
	font-family: var(--sft-head), sans-serif;
	font-weight: 700;
	font-size: clamp(2.3rem, 10vw, 3rem);
	line-height: 1;
	letter-spacing: -.03em;
	color: var(--sft-paper);
	text-wrap: balance;
}

.sfj__title em {
	font-style: italic;
	color: var(--sft-accent);
}

.sfj__lead {
	max-width: 34rem;
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(242, 240, 235, .76);
	text-wrap: pretty;
}

.sfj__next {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.sfj__next-t {
	margin: 0;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #8a8a85;
}

.sfj__steps {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(242, 240, 235, .1);
}

.sfj__step {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	gap: .75rem;
	margin: 0;
	padding: .95rem 0;
	border-bottom: 1px solid rgba(242, 240, 235, .1);
}

.sfj__step-n {
	padding-top: .2rem;
	font-family: var(--sft-head), sans-serif;
	font-weight: 700;
	font-size: .86rem;
	letter-spacing: .04em;
	color: var(--sft-accent);
}

.sfj__step-b {
	display: flex;
	flex-direction: column;
	gap: .2rem;
}

.sfj__step-b strong {
	font-family: var(--sft-head), sans-serif;
	font-weight: 600;
	font-size: 1.06rem;
	line-height: 1.3;
	color: var(--sft-paper);
}

.sfj__step-b span {
	font-size: .93rem;
	line-height: 1.5;
	color: rgba(242, 240, 235, .62);
}

.sfj__alt {
	display: grid;
	grid-template-columns: 1.35rem minmax(0, 1fr);
	gap: .75rem;
	align-items: start;
	margin: 0;
	padding: .95rem 1.05rem;
	border: 1px solid rgba(242, 183, 5, .3);
	border-radius: 3px;
	background: rgba(242, 183, 5, .06);
	font-size: .93rem;
	line-height: 1.5;
	color: rgba(242, 240, 235, .8);
}

.sfj__alt .sft-i {
	width: 1.35rem;
	height: 1.35rem;
	color: var(--sft-accent);
}

/* Pinned on every state: the theme turns links navy on hover and tap. */
.sfj .sfj__alt a,
.sfj .sfj__alt a:hover,
.sfj .sfj__alt a:focus,
.sfj .sfj__alt a:active,
.sfj .sfj__alt a:visited {
	font-weight: 600;
	color: var(--sft-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

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

.sfj__panel {
	position: relative;
	min-width: 0;
	padding: 1.5rem 1.15rem 1.6rem;
	border: 1px solid rgba(242, 240, 235, .09);
	border-radius: 3px;
	background: #121212;
	box-shadow:
		0 40px 80px -44px rgba(0, 0, 0, .9),
		0 8px 24px -18px rgba(0, 0, 0, .7);
}

.sfj__panel::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 1.15rem;
	width: 44px;
	height: 3px;
	background: var(--sft-accent);
	clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 3px 100%);
}

.sfj__form {
	display: grid;
	gap: 1.5rem;
	margin: 0;
}

.sfj__form-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .35rem 1rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid rgba(242, 240, 235, .08);
}

.sfj__form-t {
	margin: 0;
	font-family: var(--sft-head), sans-serif;
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--sft-paper);
}

.sfj__form-note {
	margin: 0;
	font-size: .82rem;
	color: rgba(242, 240, 235, .5);
}

.sfj__status {
	margin: 0;
	padding: .85rem 1rem;
	border-left: 2px solid var(--sft-bad);
	background: rgba(255, 138, 117, .08);
	font-size: .93rem;
	line-height: 1.5;
	color: #ffc9bf;
	outline: none;
}

.sfj__row {
	display: grid;
	gap: 1.5rem;
}

.sfj__field {
	display: flex;
	flex-direction: column;
	gap: .55rem;
	min-width: 0;
}

/* Fieldsets come with the browser's frame and the theme's padding. */
.sfj .sfj__set {
	margin: 0;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}

.sfj__label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

.sfj .sfj__label {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 .05rem;
	padding: 0;
	font-family: var(--sft-body), sans-serif;
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
	color: rgba(242, 240, 235, .72);
}

.sfj__req {
	color: var(--sft-accent);
}

.sfj__opt {
	margin-left: .35rem;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: none;
	color: rgba(242, 240, 235, .42);
}

.sfj__count {
	font-size: .78rem;
	font-variant-numeric: tabular-nums;
	color: rgba(242, 240, 235, .42);
}

.sfj__count.is-near {
	color: var(--sft-accent);
}

/* Scoped with extra weight: the theme styles every input type. */
.sfj .sfj__input {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: .8rem .95rem;
	border: 1px solid rgba(242, 240, 235, .16);
	border-radius: 3px;
	background: rgba(242, 240, 235, .035);
	box-shadow: none;
	color: var(--sft-paper);
	font-family: var(--sft-body), sans-serif;
	font-size: 1rem;
	line-height: 1.4;
	text-align: left;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	color-scheme: dark;
}

.sfj .sfj__input::placeholder {
	color: rgba(242, 240, 235, .32);
	opacity: 1;
}

.sfj .sfj__input:hover {
	border-color: rgba(242, 240, 235, .3);
}

.sfj .sfj__input:focus {
	border-color: var(--sft-accent);
	background: rgba(242, 183, 5, .04);
	box-shadow: 0 0 0 3px rgba(242, 183, 5, .16);
}

.sfj .sfj__input--area {
	min-height: 7.5rem;
	resize: vertical;
}

.sfj .is-invalid .sfj__input,
.sfj .is-invalid .sfj__input:hover {
	border-color: var(--sft-bad);
}

.sfj .is-invalid .sfj__input:focus {
	box-shadow: 0 0 0 3px rgba(255, 138, 117, .2);
}

.sfj__err {
	margin: 0;
	font-size: .86rem;
	line-height: 1.4;
	color: var(--sft-bad);
}

.sfj__hint {
	margin: 0;
	font-size: .82rem;
	line-height: 1.45;
	color: rgba(242, 240, 235, .48);
}

/* ---------- choices: trainer cards and frequency chips ---------- */

/* The real radio stays for keyboards and screen readers, out of sight. */
.sfj .sfj__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.sfj__cards {
	display: grid;
	gap: .6rem;
}

.sfj__card,
.sfj__chip {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.sfj__card-box {
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr) 1.5rem;
	align-items: center;
	gap: .85rem;
	min-height: 64px;
	padding: .75rem .9rem;
	border: 1px solid rgba(242, 240, 235, .16);
	border-radius: 3px;
	background: rgba(242, 240, 235, .035);
}

/* The initial in the octagon, the Chakra Petch full stop. */
.sfj__card-mark {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	background: rgba(242, 240, 235, .08);
	color: var(--sft-paper);
	font-family: var(--sft-head), sans-serif;
	font-weight: 700;
	font-style: italic;
	font-size: 1.15rem;
	clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.sfj__card-b {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	min-width: 0;
}

.sfj__card-t {
	font-family: var(--sft-head), sans-serif;
	font-weight: 600;
	font-size: 1.08rem;
	line-height: 1.2;
	color: var(--sft-paper);
}

.sfj__card-d {
	font-size: .86rem;
	line-height: 1.35;
	color: rgba(242, 240, 235, .55);
}

.sfj__card-tick {
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border: 1px solid rgba(242, 240, 235, .3);
	border-radius: 50%;
	color: transparent;
}

.sfj__card-tick .sft-i {
	width: .9rem;
	height: .9rem;
	stroke-width: 2.6;
}

.sfj__card:hover .sfj__card-box,
.sfj__chip:hover .sfj__chip-box {
	border-color: rgba(242, 240, 235, .34);
}

.sfj__radio:checked + .sfj__card-box {
	border-color: var(--sft-accent);
	background: rgba(242, 183, 5, .07);
	box-shadow: inset 0 0 0 1px var(--sft-accent);
}

.sfj__radio:checked + .sfj__card-box .sfj__card-mark {
	background: var(--sft-accent);
	color: var(--sft-ink);
}

.sfj__radio:checked + .sfj__card-box .sfj__card-tick {
	border-color: var(--sft-accent);
	background: var(--sft-accent);
	color: var(--sft-ink);
}

.sfj__radio:focus-visible + .sfj__card-box,
.sfj__radio:focus-visible + .sfj__chip-box {
	outline: 2px solid var(--sft-accent);
	outline-offset: 3px;
}

.sfj__card--any .sfj__card-mark {
	background: transparent;
	box-shadow: none;
	color: rgba(242, 240, 235, .6);
	outline: 1px dashed rgba(242, 240, 235, .3);
	outline-offset: -1px;
	clip-path: none;
	border-radius: 50%;
}

.sfj__chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.sfj__chip-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4.5rem;
	min-height: 46px;
	padding: .55rem 1rem;
	border: 1px solid rgba(242, 240, 235, .16);
	border-radius: 3px;
	background: rgba(242, 240, 235, .035);
	font-family: var(--sft-head), sans-serif;
	font-weight: 600;
	font-size: .98rem;
	line-height: 1.1;
	color: rgba(242, 240, 235, .86);
	white-space: nowrap;
}

.sfj__radio:checked + .sfj__chip-box {
	border-color: var(--sft-accent);
	background: var(--sft-accent);
	color: var(--sft-ink);
}

.sfj .is-invalid .sfj__card-box,
.sfj .is-invalid .sfj__chip-box {
	border-color: rgba(255, 138, 117, .7);
}

/* ---------- consent ---------- */

.sfj .sfj__consent {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	column-gap: .85rem;
	row-gap: .5rem;
	align-items: start;
}

.sfj .sfj__check {
	display: block;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	padding: 0;
	border: 1px solid rgba(242, 240, 235, .32);
	border-radius: 3px;
	background: rgba(242, 240, 235, .035) center / 14px 14px no-repeat;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.sfj .sfj__check:hover {
	border-color: rgba(242, 240, 235, .5);
}

.sfj .sfj__check:checked {
	border-color: var(--sft-accent);
	background-color: var(--sft-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%230d0d0d' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E");
}

.sfj .sfj__check:focus-visible {
	outline: 2px solid var(--sft-accent);
	outline-offset: 3px;
}

.sfj .is-invalid .sfj__check {
	border-color: var(--sft-bad);
}

.sfj__check-lbl {
	margin: 0;
	font-size: .9rem;
	line-height: 1.55;
	color: rgba(242, 240, 235, .8);
	cursor: pointer;
}

.sfj__consent .sfj__err {
	grid-column: 2;
}

.sfj .sfj__check-lbl a,
.sfj .sfj__check-lbl a:hover,
.sfj .sfj__check-lbl a:focus,
.sfj .sfj__check-lbl a:active,
.sfj .sfj__check-lbl a:visited,
.sfj .sfj__legal a,
.sfj .sfj__legal a:hover,
.sfj .sfj__legal a:focus,
.sfj .sfj__legal a:active,
.sfj .sfj__legal a:visited {
	color: var(--sft-paper);
	text-decoration: underline;
	text-decoration-color: rgba(242, 183, 5, .75);
	text-underline-offset: 3px;
}

/* ---------- captcha ---------- */

.sfj__cap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1rem;
	padding: .7rem .95rem .7rem .8rem;
	border: 1px solid rgba(242, 240, 235, .16);
	border-radius: 3px;
	background: rgba(242, 240, 235, .035);
}

.sfj .is-invalid .sfj__cap {
	border-color: var(--sft-bad);
}

.sfj__cap[data-state="done"] {
	border-color: rgba(242, 183, 5, .55);
	background: rgba(242, 183, 5, .06);
}

/* Pinned on every state: the theme styles every button. */
.sfj .sfj__cap-btn,
.sfj .sfj__cap-btn:hover,
.sfj .sfj__cap-btn:focus,
.sfj .sfj__cap-btn:active {
	display: inline-flex;
	align-items: center;
	gap: .85rem;
	min-height: 44px;
	margin: 0;
	padding: 0 .25rem 0 0;
	border: 0;
	border-radius: 3px;
	background: transparent;
	box-shadow: none;
	color: var(--sft-paper);
	font-family: var(--sft-body), sans-serif;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
	text-align: left;
	cursor: pointer;
	transform: none;
}

.sfj .sfj__cap-btn:focus-visible {
	outline: 2px solid var(--sft-accent);
	outline-offset: 4px;
}

.sfj__cap-box {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(242, 240, 235, .42);
	border-radius: 3px;
	background: rgba(242, 240, 235, .04);
}

.sfj__cap-btn:hover .sfj__cap-box {
	border-color: rgba(242, 240, 235, .7);
}

.sfj__cap-box .sft-i {
	width: 18px;
	height: 18px;
	stroke-width: 2.6;
	color: var(--sft-ink);
	opacity: 0;
}

.sfj__cap-spin {
	position: absolute;
	inset: 4px;
	border: 2px solid rgba(242, 183, 5, .25);
	border-top-color: var(--sft-accent);
	border-radius: 50%;
	opacity: 0;
}

.sfj__cap[data-state="working"] .sfj__cap-box {
	border-color: rgba(242, 183, 5, .45);
}

.sfj__cap[data-state="working"] .sfj__cap-spin {
	opacity: 1;
}

.sfj__cap[data-state="done"] .sfj__cap-box {
	border-color: var(--sft-accent);
	background: var(--sft-accent);
}

.sfj__cap[data-state="done"] .sfj__cap-box .sft-i {
	opacity: 1;
}

.sfj__cap[data-state="done"] .sfj__cap-btn {
	cursor: default;
}

.sfj__cap-meta {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .7rem;
	line-height: 1.3;
	letter-spacing: .04em;
	color: rgba(242, 240, 235, .45);
}

.sfj__cap-meta .sft-i {
	flex: none;
	width: 20px;
	height: 20px;
	color: rgba(242, 183, 5, .8);
}

/* ---------- reCAPTCHA note ---------- */

.sfj__rc {
	display: grid;
	grid-template-columns: 1.1rem minmax(0, 1fr);
	gap: .6rem;
	align-items: start;
	margin: 0;
	font-size: .78rem;
	line-height: 1.5;
	color: rgba(242, 240, 235, .5);
}

.sfj__rc .sft-i {
	width: 1.1rem;
	height: 1.1rem;
	color: rgba(242, 183, 5, .8);
}

.sfj .sfj__rc a,
.sfj .sfj__rc a:hover,
.sfj .sfj__rc a:focus,
.sfj .sfj__rc a:active,
.sfj .sfj__rc a:visited {
	color: rgba(242, 240, 235, .78);
	text-decoration: underline;
	text-decoration-color: rgba(242, 183, 5, .6);
	text-underline-offset: 2px;
}

/* Google's floating badge is replaced by the note above the button, which
   its terms allow. This stylesheet loads only on pages with the form. */
.grecaptcha-badge {
	visibility: hidden !important;
}

/* ---------- honeypot ---------- */

.sfj .sfj__hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- send ---------- */

.sfj__foot {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: .8rem;
	padding-top: .25rem;
}

/* Three classes so this beats .btn-primary.btn-primary. */
.sfj .sfj__submit.sfj__submit {
	width: 100%;
	gap: .7rem;
}

.sfj__submit .sft-i {
	width: 18px;
	height: 18px;
}

.sfj .sfj__submit.sfj__submit:disabled {
	cursor: progress;
	opacity: .85;
	transform: none;
}

.sfj__legal {
	margin: 0;
	font-size: .8rem;
	line-height: 1.55;
	color: rgba(242, 240, 235, .46);
}

/* ---------- sent ---------- */

.sfj__done {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	padding: .5rem 0 .25rem;
	outline: none;
}

.sfj__done-ico {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	background: var(--sft-accent);
	color: var(--sft-ink);
	clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.sfj__done-ico .sft-i {
	width: 30px;
	height: 30px;
	stroke-width: 2.4;
}

.sfj__done-t {
	margin: 0;
	font-family: var(--sft-head), sans-serif;
	font-weight: 700;
	font-size: clamp(1.6rem, 6vw, 2.1rem);
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--sft-paper);
	text-wrap: balance;
}

.sfj__done-sum {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfj__done-sum:empty {
	display: none;
}

.sfj__done-sum li {
	margin: 0;
	padding: .45rem .8rem;
	border: 1px solid rgba(242, 183, 5, .4);
	border-radius: 3px;
	background: rgba(242, 183, 5, .07);
	font-size: .9rem;
	line-height: 1.2;
	color: rgba(242, 240, 235, .9);
}

.sfj__done-sum strong {
	font-family: var(--sft-head), sans-serif;
	font-weight: 600;
	color: var(--sft-accent);
}

.sfj__done-p {
	max-width: 30rem;
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(242, 240, 235, .76);
}

.sfj__done-p strong {
	font-weight: 600;
	color: var(--sft-paper);
	overflow-wrap: anywhere;
}

.sfj .sfj__again,
.sfj .sfj__again:hover,
.sfj .sfj__again:focus,
.sfj .sfj__again:active,
.sfj .sfj__again:visited {
	color: var(--sft-accent);
	text-decoration: none;
}

.sfj .sfj__again {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	min-height: 44px;
	margin-top: .25rem;
	font-family: var(--sft-head), sans-serif;
	font-weight: 600;
	font-size: .875rem;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.sfj__again::after {
	content: "";
	position: absolute;
	left: 0;
	right: 1.6rem;
	bottom: .6rem;
	height: 1px;
	background: currentColor;
	opacity: .45;
}

.sfj__again .sft-i {
	width: 1rem;
	height: 1rem;
}

.sfj .sfj__again:focus-visible {
	outline: 2px solid var(--sft-accent);
	outline-offset: 4px;
	border-radius: 3px;
}

/* =========================================================
   SIZES
   ========================================================= */

/* Phones: the form comes right after the heading; the steps and the
   e-mail note follow it, so nobody scrolls a screen of introduction
   to reach the fields. */
@media (max-width: 1024.98px) {
	.sfj__inner {
		gap: 1.75rem;
	}

	.sfj__intro {
		display: contents;
	}

	.sfj__head {
		order: 1;
	}

	.sfj__panel {
		order: 2;
		margin-top: .5rem;
	}

	.sfj__next {
		order: 3;
		margin-top: 1rem;
	}

	.sfj__alt {
		order: 4;
	}
}

@media (min-width: 560px) {
	.sfj__cards {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.sfj__card--any {
		grid-column: 1 / -1;
	}
}

@media (min-width: 640px) {
	.sfj__row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.sfj__panel {
		padding: 2rem 2rem 2.1rem;
	}

	.sfj__panel::before {
		left: 2rem;
	}

	.sfj__foot {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}

	.sfj .sfj__submit.sfj__submit {
		width: auto;
	}

	.sft__photo--main {
		aspect-ratio: 4 / 3;
	}
}

@media (min-width: 768px) {
	.sft__inner,
	.sfj__inner {
		padding-inline: 2rem;
	}
}

@media (min-width: 1025px) {
	.sft {
		--sft-glyph-size: clamp(260px, 24vw, 400px) auto;
	}

	/* Under the copy, on the side away from the photos. */
	.sft--media-right {
		--sft-glyph-pos: left -5rem bottom 3rem;
	}

	.sft--media-left {
		--sft-glyph-pos: right -5rem bottom 3rem;
	}

	.sft__inner {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
		gap: clamp(3rem, 6vw, 6.5rem);
		align-items: start;
		padding: clamp(5rem, calc(var(--sft-screen) * .11), 7.5rem) 3rem;
	}

	.sft--media-left .sft__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}

	.sft__text {
		display: flex;
		flex-direction: column;
		gap: 2rem;
		min-width: 0;
	}

	.sft--media-left .sft__text {
		order: 2;
	}

	.sft--media-left .sft__media {
		order: 1;
	}

	/* The photos stay in view while the copy beside them scrolls. */
	.sft__media {
		position: sticky;
		top: calc(var(--sfh-h, 100px) + var(--sfh-promo-h, 0px) + 1.5rem);
	}

	.sft__photo--main {
		aspect-ratio: 4 / 5;
	}

	.sft__title {
		font-size: clamp(3rem, 4.6vw, 4.5rem);
	}

	.sft__copy p {
		font-size: 1.06rem;
	}

	.sft__copy p:first-child {
		font-size: 1.32rem;
	}

	.sfj::after {
		background-size: clamp(300px, 26vw, 420px) auto;
		background-position: left -5rem bottom 3rem;
	}

	.sfj__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: clamp(3rem, 6vw, 6.5rem);
		align-items: start;
		padding: clamp(5rem, calc(var(--sft-screen) * .11), 7.5rem) 3rem;
	}

	.sfj__intro {
		position: sticky;
		top: calc(var(--sfh-h, 100px) + var(--sfh-promo-h, 0px) + 1.5rem);
		gap: 2rem;
		padding-top: .5rem;
	}

	.sfj__title {
		font-size: clamp(3rem, 4.4vw, 4.25rem);
	}

	.sfj__lead {
		font-size: 1.08rem;
	}

	.sfj__panel {
		padding: clamp(2rem, 3vw, 2.75rem);
	}

	.sfj__panel::before {
		left: clamp(2rem, 3vw, 2.75rem);
	}
}

/* A portrait with no other photos beside it gets a taller frame. Kept here,
   after the sizes above, so it wins over them. */
.sft__photo--main:only-child {
	aspect-ratio: 4 / 5;
}

@media (min-width: 640px) and (max-width: 1024.98px) {
	.sft__photo--main:only-child {
		width: min(100%, 34rem);
		justify-self: center;
	}
}

@media (min-width: 1025px) {
	.sft__photo--main:only-child {
		aspect-ratio: 3 / 4;
	}
}

/* A short screen: nothing sticks. */
@media (min-width: 1025px) and (max-height: 760px) {
	.sft__media,
	.sfj__intro {
		position: static;
	}
}

/* =========================================================
   MOTION
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {
	.sfj .sfj__input,
	.sfj .sfj__check,
	.sfj__card-box,
	.sfj__card-mark,
	.sfj__card-tick,
	.sfj__chip-box,
	.sfj__cap,
	.sfj__cap-box {
		transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
	}

	.sfj__cap-box .sft-i {
		transition: opacity .18s ease;
	}

	.sfj__cap[data-state="working"] .sfj__cap-spin {
		animation: sfj-spin .7s linear infinite;
	}

	@keyframes sfj-spin {
		to {
			transform: rotate(360deg);
		}
	}

	.sfj__cap[data-state="done"] .sfj__cap-box {
		animation: sfj-pop .3s var(--sft-ease);
	}

	@keyframes sfj-pop {
		50% {
			transform: scale(1.12);
		}
	}

	.sfj__again .sft-i,
	.sft__cta .sft-i {
		transition: transform .2s ease;
	}

	.sfj .sfj__again:hover .sft-i {
		transform: translateX(3px);
	}

	.sft .sft__cta:hover .sft-i {
		transform: translateY(3px);
	}

	.sfj__done:not([hidden]) {
		animation: sfj-in .36s var(--sft-ease);
	}

	@keyframes sfj-in {
		from {
			opacity: 0;
			transform: translateY(6px);
		}
	}
}

/* ---------- print and forced colours ---------- */

@media print {
	.sft::before,
	.sft::after,
	.sfj::before,
	.sfj::after,
	.sft__media,
	.sfj__panel {
		display: none;
	}
}

@media (forced-colors: active) {
	.sfj .sfj__check:checked,
	.sfj__radio:checked + .sfj__chip-box,
	.sfj__cap[data-state="done"] .sfj__cap-box {
		forced-color-adjust: none;
		background-color: Highlight;
		border-color: Highlight;
	}

	.sft__fact::before,
	.sft__photo--main::before,
	.sft__sign::before,
	.sfj__panel::before {
		forced-color-adjust: none;
		background: Highlight;
	}
}
