/* Home page: the Nike RBI card (it took the place of the Rattlers card). */
.rbi-card {
	border: 1px solid var(--onyx);
	border-radius: 20px;
	overflow: hidden;
	background: var(--surface);
}

.rbi-card-in {
	padding: 56px 40px;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: center;
}

.rbi-card-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	color: var(--accent);
	margin-bottom: 20px;
}

.rbi-card-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 8px var(--accent);
	animation: rbiCardDotPulse 2.2s ease-in-out infinite;
}

@keyframes rbiCardDotPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .35; }
}

.rbi-card h2 {
	font-family: var(--display);
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 400;
	line-height: 0.98;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--frost);
	margin-bottom: 16px;
}

.rbi-card h2 em {
	font-style: normal;
	color: var(--accent);
}

.rbi-card p {
	font-size: 16px;
	font-weight: 400;
	color: var(--fog);
	line-height: 1.55;
	margin-bottom: 16px;
	text-align: justify;
	text-align-last: left;
	hyphens: auto;
}

.rbi-card p strong {
	color: var(--frost);
	font-weight: 500;
}

.rbi-card-media {
	aspect-ratio: 4 / 5; /* the tryout flyer is a 4:5 portrait */
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid var(--onyx);
	background: var(--void);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	transition: border-color .15s;
}

.rbi-card-media:hover {
	border-color: var(--accent);
}

.rbi-card-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	padding: 6px;
	background: var(--void);
}

@media (max-width: 900px) {

	.rbi-card-in {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	/* Stacked layout puts the image first, text second -- regardless of
	   DOM order (the desktop grid relies on .rbi-card-media being second in the
	   markup so it lands on the right). */
	.rbi-card-media {
		order: -1;
	}

}

@media (max-width: 768px) {

	.rbi-card-img {
		padding: 6px;
	}

}

.rbi-card-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
}

/* Justified text leaves wide gaps on a narrow phone. */
@media (max-width: 600px) {

	.rbi-card p {
		text-align: left;
		hyphens: none;
	}

}
