/* RCW 3D Drills: the frame sizes itself to the width of the column it sits in. */
.rcw3d {
	container-type: inline-size;
	margin-block: 1.5em;
}
.rcw3d__frame {
	position: relative;
	width: 100%;
	/* Room for the pitch plus the drill's own controls. Wide columns: */
	height: 760px;
	height: clamp(640px, calc(340px + 42cqw), 92vh);
	overflow: hidden;
	border: 1px solid #dbe1e7;
	border-radius: 6px;
	background: #e9eff4;
}
.rcw3d__frame iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
/* Narrow columns: the drill stacks its controls under the pitch, so it needs more height. */
@container (max-width: 719px) {
	.rcw3d__frame {
		height: calc(380px + 75cqw);
	}
}
/* Phones: the controls wrap on to more lines as the screen gets narrower. */
@container (max-width: 480px) {
	.rcw3d__frame {
		height: calc(1300px - 120cqw);
	}
}
.rcw3d__frame.rcw3d__frame--fixed {
	height: var(--rcw3d-h);
}
.rcw3d__bar {
	margin: .4em 0 0;
	text-align: right;
	font-size: .85em;
	line-height: 1.4;
}
.rcw3d__bar a {
	color: #d02e26;
	font-weight: 600;
	text-decoration: none;
}
.rcw3d__bar a:hover,
.rcw3d__bar a:focus {
	text-decoration: underline;
}
