/* /submission (src/front/submission.ts): the competition entry, in the "Editorial" direction Christopher picked. Video
   first, a band of the numbers the form cites, then each form field as a numbered label beside its prose. */

.sb {
	border-top: 0;
}
.sb-wrap {
	box-sizing: content-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
}
.sb a {
	text-decoration-color: var(--rule-strong);
	text-underline-offset: 3px;
}
.sb a:hover {
	color: #fff;
	text-decoration-color: var(--ink);
}

/* Hero and video */
.sb-hero {
	padding: 88px 0 56px;
}
.sb-hero .mk-eyebrow {
	margin-bottom: 18px;
}
.sb-hero .mk-eyebrow a {
	color: var(--ink);
}
.sb-hero h1 {
	max-width: 16ch;
	font-size: clamp(40px, 6vw, 84px);
	line-height: 0.98;
	font-weight: 820;
	letter-spacing: -0.035em;
}
.sb .sb-lead {
	margin-top: 24px;
	max-width: 56ch;
	font-size: 20px;
	line-height: 31px;
	color: var(--ink);
}
.sb-video {
	margin: 0;
}
.sb-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--rule);
	border-radius: 14px;
	overflow: hidden;
	background: #000;
}
.sb-frame video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}
.sb-play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 64px;
	padding: 0 28px 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--agent-2);
	color: var(--paper);
	font: 700 18px/1 var(--font-sans);
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.sb-play:hover {
	background: #ff7a1f;
}
.sb-play:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}
.sb-play[hidden] {
	display: none;
}
.sb-video figcaption {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 14px;
	font: 500 13px/20px var(--font-mono);
	color: var(--muted);
}

/* Jump tiles and the numbers */
.sb-jump {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 56px;
}
.sb-jump a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--rule);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
	font-size: 17px;
	font-weight: 650;
}
.sb-jump a:hover {
	background: var(--wash);
	border-color: var(--rule-strong);
}
.sb-jump span {
	font: 600 12px/16px var(--font-mono);
	color: var(--muted);
}
.sb-numbers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: 88px;
	background: var(--rule);
	border: 1px solid var(--rule);
	border-radius: 14px;
	overflow: hidden;
}
.sb-numbers > div {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 28px;
	background: var(--paper);
}
.sb-numbers strong {
	font-size: 44px;
	line-height: 1;
	font-weight: 780;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}
.sb-numbers span {
	font-size: 15px;
	line-height: 22px;
	color: var(--muted);
}

/* Fields: a numbered label beside the prose */
.sb-field {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 64px;
	padding-top: 120px;
}
.sb-label {
	flex: 1 1 240px;
	max-width: 280px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.sb-n {
	font: 300 56px/1 var(--font-mono);
	color: var(--faint);
}
.sb .sb-label h2 {
	max-width: none;
	font-size: 28px;
	line-height: 34px;
	font-weight: 750;
	letter-spacing: -0.02em;
}
.sb-count {
	font: 500 12px/16px var(--font-mono);
	color: var(--muted);
}
.sb-prose {
	flex: 999 1 560px;
	min-width: 0;
	max-width: 68ch;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.sb .sb-prose p {
	max-width: none;
	font-size: 17px;
	line-height: 29px;
	color: #c9c5bb;
}
.sb .sb-prose .sb-first {
	font-size: 24px;
	line-height: 36px;
	font-weight: 450;
	letter-spacing: -0.01em;
	color: var(--ink);
}
.sb-prose blockquote {
	margin: 18px 0 0;
	padding-top: 28px;
	border-top: 1px solid var(--rule);
	font-size: 32px;
	line-height: 40px;
	font-weight: 720;
	letter-spacing: -0.02em;
	color: var(--ink);
}
.sb-band {
	margin-top: 120px;
	padding-bottom: 96px;
	background: var(--surface);
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}
.sb-band .sb-field {
	padding-top: 96px;
}
.sb-band .sb-prose .sb-first {
	font-size: 22px;
	line-height: 33px;
}
.sb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sb-chips li {
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--rule);
	background: var(--raised);
	font: 500 13px/20px var(--font-mono);
	color: var(--ink);
}

/* Run it yourself */
.sb-run-head {
	align-items: flex-end;
}
.sb .sb-run-lead {
	flex: 999 1 560px;
	max-width: 62ch;
	font-size: 20px;
	line-height: 31px;
	color: var(--ink);
}
.sb-steps {
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--rule);
}
.sb-step {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	padding: 36px 0;
	border-bottom: 1px solid var(--rule);
}
.sb-step-text {
	display: flex;
	gap: 16px;
}
.sb-step-n {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--rule-strong);
	border-radius: 999px;
	font: 700 15px/1 var(--font-mono);
}
.sb h3 {
	margin: 6px 0 8px;
	font-size: 19px;
	line-height: 26px;
	font-weight: 650;
}
.sb-step p,
.sb-cards p {
	font-size: 16px;
	line-height: 26px;
}
.sb p code {
	font: 14px var(--font-mono);
	color: var(--ink);
	overflow-wrap: anywhere;
}
.sb-term {
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--rule);
	border-radius: 10px;
	background: var(--surface);
	font: 400 14px/22px var(--font-mono);
	color: var(--ink);
	overflow-x: auto;
}
.sb-c {
	color: #97938a;
}
.sb-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 48px;
}
.sb-cards > div {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 28px;
	border: 1px solid var(--rule);
	border-radius: 14px;
}
.sb-cards h3 {
	margin: 0;
}
.sb-cards .sb-term {
	font-size: 13px;
	line-height: 21px;
}
.sb-end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 120px;
	padding: 56px 0 96px;
	border-top: 1px solid var(--rule);
}
.sb-end h2 {
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.05;
}
.sb-end .mk-actions {
	margin: 0;
}

@media (max-width: 900px) {
	.sb-numbers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sb-step,
	.sb-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}
@media (max-width: 560px) {
	.sb-wrap {
		padding: 0 16px;
	}
	.sb-hero {
		padding: 48px 0 32px;
	}
	.sb .sb-lead {
		font-size: 18px;
		line-height: 28px;
	}
	.sb-video {
		margin: 0 -16px;
	}
	.sb-frame {
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}
	.sb-video figcaption {
		padding: 0 16px;
	}
	.sb-play {
		min-height: 52px;
		font-size: 16px;
	}
	.sb-jump {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		margin-top: 40px;
	}
	.sb-numbers {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 56px;
	}
	.sb-numbers > div {
		padding: 22px;
	}
	.sb-numbers strong {
		font-size: 36px;
	}
	.sb-field {
		padding-top: 80px;
	}
	.sb-n {
		font-size: 40px;
	}
	.sb .sb-prose .sb-first {
		font-size: 20px;
		line-height: 30px;
	}
	.sb-prose blockquote {
		font-size: 24px;
		line-height: 31px;
	}
	.sb-band {
		margin-top: 80px;
		padding-bottom: 64px;
	}
	.sb-band .sb-field {
		padding-top: 64px;
	}
	.sb-term {
		font-size: 13px;
		padding: 14px 16px;
	}
	.sb-cards > div {
		padding: 20px;
	}
	.sb-end {
		margin-top: 80px;
		padding-bottom: 64px;
	}
}

/* Inline code wraps (the site sets code to nowrap): long ones such as ABSO_TRUSTED_SERVERS=… ran past a phone screen (issue 340). */
.sb p code {
	white-space: normal;
}
