/*
Theme Name: Just Jumpin'
Description: Custom block theme for the Just Jumpin' jump rope team.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: just-jumpin
*/

/* Small touches theme.json can't express. */

.jj-hero h1,
.jj-hero p {
	text-shadow: 0 2px 18px rgba(12, 34, 63, 0.45);
}

/* Buttons with a custom color keep their preset classes (which use !important),
   so theme.json's :hover never wins. Give them a hover of their own. */
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* Default (orange) buttons on navy sections hover to white, not navy-on-navy. */
.has-navy-background-color .wp-block-button__link:not(.has-background):hover,
.has-navy-background-color .wp-block-button__link:not(.has-background):focus-visible,
.jj-hero .wp-block-button__link:not(.has-background):hover,
.jj-hero .wp-block-button__link:not(.has-background):focus-visible {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

.wp-block-button__link.has-background:hover,
.wp-block-button__link.has-background:focus-visible {
	background-color: var(--wp--preset--color--orange) !important;
	color: var(--wp--preset--color--white) !important;
}

.wp-block-quote cite {
	font-style: normal;
	font-size: 0.95rem;
	color: var(--wp--preset--color--slate);
}

.wp-block-quote {
	margin: 0;
	padding-left: 0;
}

.jj-card {
	position: relative;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jj-card:hover,
.jj-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lift) !important;
}

.jj-card:focus-within {
	outline: 3px solid var(--wp--preset--color--orange);
	outline-offset: 3px;
}

.jj-card__photo {
	margin: 0;
	overflow: hidden;
}

.jj-card__photo img {
	display: block;
	width: 100%;
	transition: transform 0.5s ease;
}

.jj-card:hover .jj-card__photo img {
	transform: scale(1.04);
}

.jj-eyebrow {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--orange-deep);
}

.jj-card h3 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	font-size: 1.35rem;
}

.jj-card h3 a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	outline: none;
}

/* Make the whole card clickable through the heading link. */
.jj-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.jj-card h3::after {
	content: "\2192";
	color: var(--wp--preset--color--orange-deep);
	transition: transform 0.25s ease;
}

.jj-card:hover h3::after {
	transform: translateX(4px);
}

.jj-hero + .jj-cards {
	padding-top: var(--wp--preset--spacing--60);
}

.jj-stat strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3rem, 6vw, 4.5rem);
	line-height: 1;
	color: var(--wp--preset--color--orange);
}

/* Sections butt up against each other; no default block gap before the footer. */
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Designed pages (Page (no title) template): full-width sections stack with no gaps. */
.jj-sections > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

.jj-photo-top img {
	object-position: center 20%;
}

/* The assembly flip photo: his head is low in the frame, so keep the whole jumper in the crop. */
.jj-photo-top img[src*="jj-3437"] {
	object-position: center 33%;
}

.jj-facts h3 {
	margin-top: 0;
}

.jj-facts__table {
	margin: 0;
}

.jj-facts__table table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.95rem;
}

.jj-facts__table th,
.jj-facts__table td {
	border: 0;
	border-bottom: 1px solid rgba(12, 34, 63, 0.1);
	padding: 0.7rem 0;
	text-align: left;
	vertical-align: top;
}

.jj-facts__table th {
	font-weight: 500;
	color: var(--wp--preset--color--slate);
	padding-right: 1rem;
}

.jj-facts__table td {
	font-weight: 700;
	text-align: right;
}

.jj-facts__table tr:last-child th,
.jj-facts__table tr:last-child td {
	border-bottom: 0;
}

.jj-video {
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.jj-video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #000;
}

/* Cards that aren't links: no arrow, no hover lift. */
.jj-card--static h3::after {
	content: none;
}

.jj-card--static:hover {
	transform: none;
	box-shadow: var(--wp--preset--shadow--card) !important;
}

.jj-card--static:hover .jj-card__photo img {
	transform: none;
}

.jj-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	list-style: none;
}

.jj-chips li {
	padding: 0.45rem 1.1rem;
	border-radius: 999px;
	background: var(--wp--preset--color--orange-soft);
	color: var(--wp--preset--color--orange-deep);
	font-weight: 600;
	font-size: 0.95rem;
}

.jj-season__logo {
	margin: 0;
}

/* Split hero: title on navy beside the photo, so nothing covers faces. */
.jj-split-hero {
	min-height: 64vh;
}

.jj-split-hero--short {
	min-height: 52vh;
}

.jj-hero--left .wp-block-cover__inner-container {
	padding-left: var(--wp--preset--spacing--50);
	padding-right: var(--wp--preset--spacing--50);
}

.jj-split-hero .wp-block-media-text__content {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}

@media (max-width: 600px) {
	.jj-split-hero.is-image-fill-element > .wp-block-media-text__media {
		min-height: 320px;
	}

	.jj-split-hero .wp-block-media-text__content {
		padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	}
}

.jj-medal {
	--medal: #d9a521;
	--medal-soft: #fdf3d7;
	padding: var(--wp--preset--spacing--40);
	border-radius: 16px;
	background: var(--medal-soft);
	text-align: center;
}

/* Podium: gold stands a step above silver and bronze. */
.jj-medal--gold {
	transform: translateY(-24px);
	box-shadow: var(--wp--preset--shadow--card);
}

.jj-medal--silver {
	--medal: #9aa6b2;
	--medal-soft: #eef1f4;
}

.jj-medal--bronze {
	--medal: #bf7440;
	--medal-soft: #f8ebe0;
}

.jj-medal p {
	margin: 0.5rem 0 0;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.jj-medal__icon {
	display: block;
	width: 120px;
	height: auto;
	margin: 0 auto;
	filter: drop-shadow(0 6px 10px rgba(12, 34, 63, 0.18));
}

.jj-medal__icon text {
	font-family: var(--wp--preset--font-family--display);
	font-size: 38px;
	fill: #fff;
}

.jj-stat-inline {
	margin: 0;
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--wp--preset--color--navy);
}

.jj-stat-inline strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(4rem, 9vw, 6rem);
	font-weight: 400;
	line-height: 0.9;
	color: var(--wp--preset--color--orange);
}

.jj-highlight .wp-block-media-text__media img {
	border-radius: 16px;
}

/* In-page links (#register etc.) land below the sticky header. */
[id] {
	scroll-margin-top: 100px;
}

.jj-details {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
	color: var(--wp--preset--color--slate);
}

.jj-details strong {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy);
}

.jj-location h3 {
	margin-top: 0;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--orange-deep);
	border: 2px solid currentColor;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--orange);
	border-color: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--white);
}

.jj-path {
	margin: 0;
	padding-left: 1.25rem;
	display: grid;
	gap: 0.75rem;
	color: var(--wp--preset--color--slate);
}

.jj-path li::marker {
	color: var(--wp--preset--color--orange-deep);
	font-weight: 700;
}

.jj-path strong {
	color: var(--wp--preset--color--navy);
}

.jj-month h3 {
	margin: 0;
	padding-bottom: 0.75rem;
	border-bottom: 3px solid var(--wp--preset--color--orange);
}

.jj-month__dates {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
	font-weight: 500;
}

.jj-month__price {
	margin-top: auto !important;
	padding-top: 0.75rem;
	color: var(--wp--preset--color--slate);
	font-size: 0.95rem;
}

.jj-month__price strong {
	font-size: 1.4rem;
	color: var(--wp--preset--color--orange-deep);
}

.jj-month {
	display: flex;
	flex-direction: column;
}

.jj-highlight-text {
	color: var(--wp--preset--color--orange-deep);
}

.jj-rounded img {
	border-radius: 16px;
}

/* Ecwid workshop checkout: compact two-column layout instead of one long column. */
.jj-register-card .ecwid-SingleProduct-v2 {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
	text-align: left !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 15px !important;
}

.jj-register-card .ecwid-SingleProduct-v2 * {
	font-family: var(--wp--preset--font-family--body) !important;
}

.jj-register-card .ecwid-title {
	display: none !important;
}

.jj-register-card .ecwid-SingleProduct-options {
	width: 100% !important;
	max-width: none !important;
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem 2rem;
	text-align: left !important;
}

.jj-register-card .ecwid-productBrowser-details-optionPanel {
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

.jj-register-card .ecwid-fieldLabel {
	display: block !important;
	margin-bottom: 0.4rem !important;
	text-align: left !important;
	font-weight: 600 !important;
	color: var(--wp--preset--color--navy) !important;
}

/* Class choices: white cards side by side. */
.jj-register-card .ecwid-productBrowser-details-optionPanel-checkbox {
	padding: 1rem 1.25rem !important;
	border-radius: 12px;
	background: var(--wp--preset--color--white);
}

.jj-register-card .ecwid-productBrowser-details-optionPanel-checkbox .ecwid-fieldLabel {
	font-size: 1.05rem !important;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--wp--preset--color--orange);
}

.jj-register-card .ecwid-productBrowser-details-optionCheckbox {
	display: flex !important;
	align-items: center;
	gap: 0.5rem;
	padding: 0.2rem 0;
}

.jj-register-card .ecwid-productBrowser-details-optionCheckbox-price {
	color: var(--wp--preset--color--slate);
}

.jj-register-card .ecwid-SingleProduct-options input[type="text"],
.jj-register-card .ecwid-SingleProduct-options input[type="email"],
.jj-register-card .ecwid-SingleProduct-options input[type="tel"],
.jj-register-card .ecwid-SingleProduct-options select,
.jj-register-card .ecwid-SingleProduct-options textarea {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem !important;
	border: 1px solid rgba(12, 34, 63, 0.2) !important;
	border-radius: 8px !important;
	background: var(--wp--preset--color--white) !important;
	font-size: 15px !important;
	height: auto !important;
	min-height: 2.75rem;
	line-height: 1.4 !important;
}

.jj-register-card .ecwid-fieldEnvelope,
.jj-register-card .ecwid-fieldEnvelope table,
.jj-register-card .ecwid-fieldEnvelope td {
	width: 100% !important;
}

/* The release waiver spans both columns and scrolls instead of filling the page. */
.jj-register-card [class*="ecwid-productoption-DIGITAL_SIGNATURE"] {
	grid-column: 1 / -1;
}

.jj-register-card [class*="ecwid-productoption-DIGITAL_SIGNATURE"] .ecwid-fieldLabel {
	max-height: 7.5rem;
	overflow-y: auto;
	padding: 0.75rem 1rem !important;
	border: 1px solid rgba(12, 34, 63, 0.15);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	font-size: 0.85rem !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	color: var(--wp--preset--color--slate) !important;
}

.jj-register-card [class*="ecwid-productoption-DIGITAL_SIGNATURE"]::after {
	content: "Type your full name in the box above to sign the release waiver.";
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--slate);
}

.jj-register-card .ecwid-SingleProduct-qty {
	text-align: left !important;
	margin-top: 1.25rem !important;
}

.jj-register-card .ecwid-btn--addToBag {
	margin-top: 1rem !important;
	padding: 0.85rem 2.25rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--wp--preset--color--orange) !important;
	color: var(--wp--preset--color--white) !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
}

.jj-register-card .ecwid-btn--addToBag:hover {
	background: var(--wp--preset--color--navy) !important;
}

.jj-register-card .ecwid-SingleProduct-powered-by-wrapper {
	background: transparent !important;
	text-align: left !important;
}

@media (max-width: 700px) {
	.jj-register-card .ecwid-SingleProduct-options {
		grid-template-columns: 1fr;
	}

	.jj-register-card.wp-block-group {
		padding: 1rem !important;
	}
}

/* Ecwid store on the Shop page: site font and orange buttons. */
.jj-store .ec-size,
.jj-store .ec-size * {
	font-family: var(--wp--preset--font-family--body) !important;
}

.jj-store .form-control--primary .form-control__button {
	background: var(--wp--preset--color--orange) !important;
	border-color: var(--wp--preset--color--orange) !important;
	border-radius: 999px !important;
}

/* Contact page */
.jj-contact-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jj-contact-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--lift) !important;
}

.jj-contact-card__link {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.jj-contact-card__link strong {
	display: block;
	font-size: 1.05rem;
	white-space: nowrap;
}

.jj-contact-card__link > span:last-child {
	min-width: 0;
}

@media (max-width: 1240px) and (min-width: 782px) {
	/* Three cards get narrow here; let the long email address shrink rather than break mid-word. */
	.jj-contact-card__link {
		gap: 0.75rem;
	}

	.jj-contact-card__link strong {
		font-size: 0.9rem;
	}

	.jj-contact-card__icon {
		flex-basis: 44px;
		height: 44px;
	}
}

.jj-contact-card__icon {
	flex: 0 0 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: var(--wp--preset--color--orange-soft);
	color: var(--wp--preset--color--orange-deep);
}

.jj-form-card .wpcf7-form p {
	margin: 0 0 1rem;
}

.jj-form-card .wpcf7-form label {
	display: block;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.jj-form-card .wpcf7-form-control:not(.wpcf7-submit) {
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.35rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid rgba(12, 34, 63, 0.2);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	font: inherit;
}

.jj-form-card .wpcf7-form-control:focus {
	outline: 2px solid var(--wp--preset--color--orange);
	outline-offset: 1px;
}

.jj-form-card textarea.wpcf7-form-control {
	height: 9rem;
}

.jj-form-card .wpcf7-submit {
	padding: 0.85rem 2rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.jj-form-card .wpcf7-submit:hover {
	background: var(--wp--preset--color--navy);
}

.jj-person__photo {
	margin: 0 0 0.75rem;
}

.jj-person__photo img {
	border-radius: 16px;
}

.jj-person h3 {
	margin: 0;
}

.jj-person .jj-eyebrow {
	margin-top: 0.25rem;
}

.jj-tier-heading {
	margin-bottom: var(--wp--preset--spacing--30);
}

.jj-tiers {
	display: grid;
	gap: 1rem;
}

.jj-tiers--annual {
	grid-template-columns: repeat(6, 1fr);
}

.jj-tiers--event {
	grid-template-columns: repeat(4, 1fr);
}

.jj-tier {
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
	border-radius: 16px;
	background: var(--wp--preset--color--cream);
	border-top: 4px solid var(--wp--preset--color--orange);
}

.jj-tier p {
	margin: 0;
}

.jj-tier__name {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--orange-deep);
}

.jj-tier__price {
	margin-top: 0.25rem !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.4rem;
	line-height: 1;
	color: var(--wp--preset--color--navy);
}

.jj-tier__desc {
	margin-top: 0.75rem !important;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--wp--preset--color--slate);
}

.jj-tier__reach {
	margin-top: auto !important;
	padding-top: 0.75rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.jj-tier--title {
	background: var(--wp--preset--color--navy);
}

.jj-tier--title .jj-tier__price {
	color: var(--wp--preset--color--white);
}

.jj-tier--title .jj-tier__desc {
	color: #ffffffcc;
}

@media (max-width: 1100px) {
	.jj-tiers--annual {
		grid-template-columns: repeat(3, 1fr);
	}

	.jj-tiers--event {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.jj-tiers--annual,
	.jj-tiers--event {
		grid-template-columns: 1fr 1fr;
	}

	.jj-tier {
		padding: 1rem;
	}

	.jj-tier__price {
		font-size: 2rem;
	}
}

.jj-request {
	align-items: flex-start;
}

/* Formfacade (Google Form) embeds: match the site's font and buttons. */
#ff-compose *:not(.material-icons) {
	font-family: var(--wp--preset--font-family--body) !important;
}

#ff-compose .ff-submit {
	background: var(--wp--preset--color--orange) !important;
	border-color: var(--wp--preset--color--orange) !important;
	border-radius: 999px !important;
	padding-left: 2rem !important;
	padding-right: 2rem !important;
	font-weight: 600 !important;
}

#ff-compose .ff-submit:hover {
	background: var(--wp--preset--color--navy) !important;
	border-color: var(--wp--preset--color--navy) !important;
}

#ff-compose .ff-back {
	border-radius: 999px !important;
}

@media (min-width: 782px) {
	.jj-request__aside {
		position: sticky;
		top: 110px;
	}
}

.jj-steps {
	margin: 0;
	padding-left: 1.25rem;
	display: grid;
	gap: 0.85rem;
	font-size: 0.95rem;
	color: #ffffffd9;
}

.jj-steps li::marker {
	color: var(--wp--preset--color--orange);
	font-weight: 700;
}

.jj-steps strong {
	color: var(--wp--preset--color--white);
}

.jj-gallery .wp-block-image {
	border-radius: 12px;
	overflow: hidden;
}

.jj-gallery.is-cropped .wp-block-image img {
	aspect-ratio: 3 / 2;
	transition: transform 0.5s ease;
}

.jj-gallery .wp-block-image:hover img {
	transform: scale(1.04);
}

.jj-sponsors img {
	max-height: 140px;
	width: auto;
	object-fit: contain;
}

.jj-events {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.jj-event {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--white);
	border-radius: 20px;
	box-shadow: var(--wp--preset--shadow--card);
}

.jj-event__date {
	flex: 0 0 72px;
	height: 72px;
	display: grid;
	place-content: center;
	text-align: center;
	border-radius: 16px;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--white);
	line-height: 1;
}

.jj-event__date span {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.jj-event__date strong {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.25rem;
	font-weight: 400;
}

.jj-event__body h3 {
	margin: 0;
	font-size: 1.2rem;
}

.jj-event__body p {
	margin: 0.25rem 0 0;
	color: var(--wp--preset--color--slate);
	font-size: 0.95rem;
}

.jj-events-empty {
	padding: var(--wp--preset--spacing--40);
	text-align: center;
	background: var(--wp--preset--color--white);
	border-radius: 20px;
	box-shadow: var(--wp--preset--shadow--card);
}

/* No backdrop-filter on .jj-header: it would trap the full-screen mobile menu inside the header bar. */

/* Mobile menu: bigger toggle and large, centered links with room to tap. */
.jj-header .wp-block-navigation__responsive-container-open,
.jj-header .wp-block-navigation__responsive-container-close {
	padding: 10px;
}

.jj-header .wp-block-navigation__responsive-container-open svg,
.jj-header .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

.jj-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1rem;
}

.jj-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.jj-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	align-items: center;
	gap: 0.25rem;
}

.jj-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	justify-content: center;
}

.jj-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 0.75rem 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.25rem;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-align: center;
}

@media (max-width: 600px) {
	/* Stacked highlight: give the photo room and center the stat, like the other highlights. */
	.jj-highlight .wp-block-media-text__content {
		padding: var(--wp--preset--spacing--40) 0 0;
		text-align: center;
	}

	.jj-stat-inline strong {
		margin-bottom: 0.25rem;
	}

	/* Left-aligned photo heroes: text spans the full width on phones, so tint evenly. */
	.jj-hero--left .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(12, 34, 63, 0.85) 0%, rgba(12, 34, 63, 0.7) 60%, rgba(255, 93, 0, 0.45) 100%) !important;
	}

	/* Long display titles ("Performances") must fit a phone screen. */
	.has-huge-font-size {
		font-size: clamp(3rem, 15vw, 4.5rem) !important;
	}
}

@media (max-width: 781px) {
	.jj-medal {
		padding: 1rem 0.5rem;
	}

	.jj-medal p {
		font-size: 0.85rem;
	}

	.jj-medal__icon {
		width: 64px;
	}

	.jj-medal--gold {
		transform: translateY(-14px);
	}

	.jj-medal__suffix {
		display: none;
	}

	/* Class-date months: two per row on phones instead of one long column. */
	.wp-block-columns.jj-months {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem !important;
	}

	.wp-block-columns.jj-months > .wp-block-column {
		padding: 1rem !important;
	}

	/* Staff: two per row on phones. */
	.wp-block-columns.jj-staff {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 1rem !important;
	}

	/* An odd one out on the last row sits centered. */
	.wp-block-columns.jj-staff > .jj-person:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - 0.5rem);
	}

	.jj-sponsors .wp-block-group {
		gap: 1rem 2rem !important;
	}

	.jj-sponsors img {
		max-height: 100px;
	}
}
