/* Ri Ra World Cup Competition — public styles */
/*
 * Campaign palette aligned with the client ZIP screens:
 * wp-content/plugins/rira-world-cup/assets/images/campaign/client-2026/
 * (pitch greens, gold accent, and slot-machine promo art)
 */

:root {
	--rrwc-font-heading: "AvenirNextLTW01-BoldCn", "Avenir Next Condensed", "Arial Narrow", Arial, sans-serif;
	--rrwc-font-ui: "AvenirNextLTW01-MediumC_721311", "Avenir Next", Arial, sans-serif;
	--rrwc-font-body: "playfair_displayregular", "Playfair Display", Georgia, serif;
}

/* Shared design tokens (shortcodes use .rrwc-entry-form-wrap / .rrwc-leaderboard-wrap without .rrwc-competition-page) */
:where(.rrwc-competition-page, .rrwc-entry-form-wrap, .rrwc-leaderboard-wrap, .rrwc-notice, .rrwc-competition-article) {
	--rrwc-pitch-light: #1d8a63;
	--rrwc-pitch-mid: #0a5c3f;
	--rrwc-pitch-deep: #053321;
	/* Gold accent — promo banners */
	--rrwc-accent-gold: #f5b70a;
	--rrwc-accent-gold-muted: #c99400;
	--rrwc-accent-gold-hover: #ffc83d;
	--rrwc-ink-on-gold: #0f261c;
	/* CTAs / highlights (was pub brown; now campaign gold) */
	--rrwc-brand: var(--rrwc-accent-gold);
	--rrwc-brand-hover: var(--rrwc-accent-gold-hover);
	--rrwc-text: #2a332f;
	--rrwc-text-heading: #0d2e22;
	--rrwc-text-muted: #5c6b63;
	--rrwc-bg: #eef5f1;
	--rrwc-surface: #ffffff;
	--rrwc-border: #c5d4cc;
	--rrwc-border-light: #e8efea;
	font-family: var(--rrwc-font-body);
}

/* Keep the campaign on the live site typefaces while preventing theme leakage in key controls. */
:where(
	.rrwc-competition-title,
	.rrwc-competition-subtitle,
	.rrwc-competition-steps,
	.rrwc-competition-steps li,
	.rrwc-competition-steps strong,
	.rrwc-section-title,
	.rrwc-title,
	.rrwc-field label,
	.rrwc-button,
	.rrwc-link-button,
	.rrwc-leaderboard th,
	.rrwc-leaderboard td,
	.rrwc-summary-heading,
	.rrwc-summary-stat dt,
	.rrwc-summary-stat dd,
	.rrwc-terms-panel summary
) {
	font-family: var(--rrwc-font-heading) !important;
}

/* Competition template: full-width main area (white); competition card uses layered gradient + hero art */
/*
 * Keagan’s child theme enqueues keagans.css after rira main.css; both set .page / .wrapper.
 * rrwc-public is registered to depend on the last registered theme handle so it prints last.
 * !important remains as a safety net for any later rules.
 */
/* All shell layers above the .rrwc-competition-page hero card go white.
 * Theme rules to override: .page (#141213), .wrapper (#010101), .main (#eaeae8).
 * .article-wrapper has no theme background, so its 4% padding shows whatever sits behind.
 * .rrwc-competition-page itself keeps its own layered hero artwork. */
html body.page.rrwc-competition,
html body.page.rrwc-competition .wrapper,
html body.page.rrwc-competition .content,
html body.page.rrwc-competition main.main,
html body.page.rrwc-competition .article-wrapper {
	background-color: #fff !important;
}

main.main.rrwc-page-main,
main.main.rrwc-page-main#main {
	background-color: #ffffff;
	background-image: none;
	text-align: left !important;
}

/* Restore readable dark text inside plugin surfaces */
:where(.rrwc-competition-page, .rrwc-entry-form-wrap, .rrwc-leaderboard-wrap) {
	color: var(--rrwc-text);
}

.rrwc-competition-article {
	padding: 0;
	background-color: rgba(255, 255, 255, 1) !important;
}

.rrwc-entry-form-wrap,
.rrwc-leaderboard-wrap {
	max-width: 640px;
	margin: 0 auto 2rem;
}

/* Combined competition page shell uses the pitch gradient; the dedicated promo header carries the machine artwork */
.rrwc-competition-page {
	max-width: 1000px;
	margin: 0 auto 3rem;
	padding: 2rem 1.5rem 3rem;
	background-color: var(--rrwc-pitch-deep);
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
		url("../../data/2755%20World%20Cup%20Selector%20Web%20Assets/1.png");
	background-size: auto, cover;
	background-position: center, center;
	background-repeat: no-repeat, no-repeat;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
	color: rgba(255, 255, 255, 0.92);
}

.rrwc-competition-page .rrwc-competition-top {
	border-bottom: none;
}

.rrwc-competition-page .rrwc-competition-title,
.rrwc-competition-page .rrwc-section-title,
.rrwc-competition-page .rrwc-leaderboard-wrap .rrwc-title,
.rrwc-competition-page .rrwc-competition-intro {
	color: rgba(255, 255, 255, 0.96);
}

.rrwc-competition-page .rrwc-empty {
	color: rgba(255, 255, 255, 0.65);
}

.rrwc-competition-top {
	position: relative;
	margin-bottom: 2.25rem;
	padding-bottom: 0;
}

.rrwc-competition-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	margin: 0;
	padding: 1.5rem 1.75rem;
	min-height: 200px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background-color: var(--rrwc-pitch-deep);
	background-image: url("../images/campaign/world-cup-header-1000x200.png");
	/* Anchor artwork to bottom-right so focal art stays put as the box resizes */
	background-position: right bottom;
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
	isolation: isolate;
}

.rrwc-competition-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, 0.08) 100%);
	z-index: -1;
}

.rrwc-competition-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 18% 24%, rgba(98, 237, 196, 0.12), transparent 38%);
	z-index: 0;
}

.rrwc-competition-hero-art {
	display: none;
}

.rrwc-competition-hero-inner {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 100%;
	padding: 0;
}

.rrwc-competition-hero > .rrwc-competition-title,
.rrwc-competition-hero > .rrwc-competition-intro,
.rrwc-competition-hero-copy {
	position: relative;
	z-index: 1;
	max-width: min(56%, 33rem);
}

.rrwc-competition-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-right: 2rem;
}

.rrwc-competition-hero > .rrwc-competition-title + .rrwc-competition-intro {
	margin-top: 0.85rem;
}

.rrwc-competition-title {
	margin: 0 0 1rem;
	font-family: var(--rrwc-font-heading);
	font-size: 55px;
	width: min(500px, 100%);
	max-width: 100%;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.98);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 0.98;
	text-wrap: balance;
	text-shadow: 0 3px 18px rgba(0, 0, 0, 0.24);
}

.rrwc-competition-intro {
	max-width: 34rem;
	margin: 0;
	color: rgba(255, 255, 255, 0.94);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.55;
	text-wrap: pretty;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.rrwc-competition-status {
	position: absolute;
	top: 15px;
	right: 15px;
	left: auto;
	display: inline-flex;
	justify-content: flex-start;
	align-items: flex-end;
	margin: 0;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
	white-space: nowrap;
	z-index: 3;
}

.rrwc-competition-status.rrwc-status-open {
	background: #e8f5e9;
	color: #2e7d32;
}

.rrwc-competition-status.rrwc-status-closed {
	background: #ffebee;
	color: #c62828;
}

.rrwc-competition-section {
	margin-bottom: 3rem;
	scroll-margin-top: 6rem;
}

.rrwc-competition-section:last-child {
	margin-bottom: 0;
}

.rrwc-section-title {
	margin: 0 0 1.25rem;
	font-size: 1.25rem;
	color: var(--rrwc-text-heading);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rrwc-competition-page .rrwc-entry-form-wrap,
.rrwc-competition-page .rrwc-closed.rrwc-entry-form-wrap {
	max-width: 640px;
	margin: 0 auto;
	padding: 1.5rem;
	background: var(--rrwc-bg);
	border: 1px solid var(--rrwc-border-light);
	border-radius: 4px;
	color: var(--rrwc-text);
}

.rrwc-competition-page .rrwc-leaderboard-wrap {
	max-width: 100%;
	margin: 0;
}

.rrwc-notice {
	padding: 1rem;
	background: #fff8e5;
	border: 1px solid #f0e0a0;
	border-radius: 4px;
	color: var(--rrwc-text-heading);
}

.rrwc-title {
	margin-bottom: 1rem;
	color: var(--rrwc-text-heading);
}

.rrwc-field {
	margin-bottom: 1rem;
}

.rrwc-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: var(--rrwc-text-heading);
}

.rrwc-field input[type="text"],
.rrwc-field input[type="email"],
.rrwc-field input[type="tel"] {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.85rem;
	box-sizing: border-box;
	background-color: var(--rrwc-surface);
	border: 1px solid var(--rrwc-border);
	border-radius: 3px;
	color: var(--rrwc-text-heading);
	font-size: 1rem;
	font-family: var(--rrwc-font-ui);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rrwc-field input[type="text"]:hover,
.rrwc-field input[type="email"]:hover,
.rrwc-field input[type="tel"]:hover {
	border-color: var(--rrwc-brand);
}

.rrwc-field input[type="text"]:focus,
.rrwc-field input[type="email"]:focus,
.rrwc-field input[type="tel"]:focus {
	border-color: var(--rrwc-brand);
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 183, 10, 0.28);
}

.rrwc-field .description {
	display: block;
	font-size: 0.875rem;
	color: var(--rrwc-text-muted);
	margin-top: 0.25rem;
}

.rrwc-field.rrwc-checkbox label {
	display: block;
	cursor: pointer;
	font-weight: 500;
	color: var(--rrwc-text);
	line-height: 1.5;
}

.rrwc-field.rrwc-checkbox input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	width: 1.125rem;
	height: 1.125rem;
	margin: 0 0.5rem 0 0;
	vertical-align: baseline;
	cursor: pointer;
	box-sizing: border-box;
	background-color: var(--rrwc-surface, #ffffff);
	border: 1px solid var(--rrwc-border, #d4d3d1);
	border-radius: 3px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rrwc-field.rrwc-checkbox input[type="checkbox"]:hover {
	border-color: var(--rrwc-brand);
}

.rrwc-field.rrwc-checkbox input[type="checkbox"]:focus {
	outline: none;
	border-color: var(--rrwc-brand);
	box-shadow: 0 0 0 3px rgba(245, 183, 10, 0.28);
}

.rrwc-field.rrwc-checkbox input[type="checkbox"]:checked {
	background-color: var(--rrwc-surface, #ffffff);
	border-color: var(--rrwc-brand);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%230a5c3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6L5 8.5l4.5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.65rem 0.65rem;
}

.rrwc-disclaimer {
	font-size: 0.8rem;
	color: var(--rrwc-text-muted);
	line-height: 1.5;
	text-align: center;
	text-wrap: balance;
}

.rrwc-inline-terms-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.rrwc-inline-terms-link:hover,
.rrwc-inline-terms-link:focus {
	color: var(--rrwc-brand, #0a5c3f);
}

.rrwc-messages {
	color: #b32d2e;
	min-height: 1.25rem;
}

.rrwc-messages.rrwc-success {
	color: #2e7d32;
}

.rrwc-button-primary {
	display: inline-block;
	padding: 0.85rem 2rem;
	cursor: pointer;
	background-color: var(--rrwc-accent-gold);
	border: 1px solid var(--rrwc-accent-gold-muted);
	border-radius: 3px;
	color: var(--rrwc-ink-on-gold) !important;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: var(--rrwc-font-heading);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rrwc-button-primary:hover,
.rrwc-button-primary:focus {
	background-color: var(--rrwc-brand-hover);
	border-color: var(--rrwc-brand-hover);
	color: var(--rrwc-ink-on-gold) !important;
}

.rrwc-button-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rrwc-submit {
	margin-top: 0.5rem;
}

.rrwc-view-my-entry-wrap {
	margin-bottom: 1rem;
	text-align: center;
}

.rrwc-link-button {
	display: inline;
	padding: 0;
	border: none;
	background: none;
	color: var(--rrwc-brand);
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	font-size: inherit;
	font-family: var(--rrwc-font-ui);
}

.rrwc-link-button:hover,
.rrwc-link-button:focus {
	color: var(--rrwc-brand-hover);
}

/* Personalised summary */
.rrwc-my-summary {
	margin-top: 1rem;
	padding: 1rem;
	background: var(--rrwc-surface);
	border: 1px solid var(--rrwc-border-light);
	border-radius: 4px;
	text-align: left;
}

.rrwc-summary-heading {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	color: var(--rrwc-text-heading);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

p.rrwc-summary-team-name {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	color: var(--rrwc-text-heading);
	text-align: center;
}

p.rrwc-summary-team-name strong,
#rrwc-summary-public-name {
	display: block;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(1.5rem, 4.5vw, 2.35rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.rrwc-summary-stats-panel {
	display: flex;
	flex-direction: column;
	margin: 0 0 1.25rem;
	padding: 1rem;
	background: var(--rrwc-bg);
	border: 2px solid var(--rrwc-border);
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.rrwc-summary-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 1rem;
	margin: 0;
	align-items: stretch;
}

.rrwc-summary-stat {
	margin: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1.1rem 0.85rem;
	background: var(--rrwc-surface);
	border: 1px solid var(--rrwc-border);
	border-radius: 6px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rrwc-summary-stat dt {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--rrwc-text-muted);
	margin-bottom: 0.5rem;
}

.rrwc-summary-stat dd {
	margin: 0;
	font-size: clamp(2.25rem, 6vw, 3rem);
	line-height: 1.05;
	font-weight: 700;
	color: var(--rrwc-brand);
}

.rrwc-summary-stat dd .rrwc-summary-rank-suffix {
	display: inline;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--rrwc-text-muted);
	vertical-align: baseline;
}

.rrwc-summary-teams {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.rrwc-summary-team-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: nowrap;
	padding: 0.5rem 0;
	min-height: 2.75rem;
	border-bottom: 1px solid var(--rrwc-border-light);
}

.rrwc-summary-team-row span.rrwc-summary-team-name {
	margin: 0;
	text-align: left;
	font-family: var(--rrwc-font-ui);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.25;
	color: var(--rrwc-text-heading);
	align-self: center;
}

.rrwc-summary-team-row .rrwc-flag {
	width: 28px;
	height: auto;
	align-self: center;
	flex-shrink: 0;
	display: block;
}

.rrwc-summary-team-row .rrwc-summary-pot {
	align-self: center;
	margin-left: auto;
	font-size: 0.75rem;
	text-transform: uppercase;
	color: var(--rrwc-text-muted);
}

.rrwc-summary-team-row:last-child {
	border-bottom: none;
}

.rrwc-summary-breakdown {
	margin-top: 1rem;
	border: 1px solid var(--rrwc-border-light);
	border-radius: 4px;
	padding: 0.75rem 1rem;
	background: var(--rrwc-bg);
}

.rrwc-summary-breakdown summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--rrwc-text-heading);
}

.rrwc-summary-matches {
	margin-top: 1rem;
}

.rrwc-summary-empty {
	margin: 0;
	color: var(--rrwc-text-muted);
	font-size: 0.9rem;
}

.rrwc-summary-match {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto;
	align-items: center;
	gap: 0.5rem 0.75rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--rrwc-border-light);
	font-size: 0.875rem;
}

.rrwc-summary-match:last-child {
	border-bottom: none;
}

.rrwc-summary-home,
.rrwc-summary-away {
	justify-self: center;
	width: 100%;
	max-width: 12rem;
}

.rrwc-summary-match .rrwc-summary-side {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 0;
	text-align: center;
}

.rrwc-summary-match .rrwc-summary-side > span,
.rrwc-summary-match .rrwc-summary-side > strong.rrwc-summary-assigned-country {
	display: block;
	text-align: center;
	line-height: 1.25;
}

.rrwc-summary-assigned-country {
	font-family: var(--rrwc-font-heading) !important;
	font-weight: 700;
	color: inherit;
}

.rrwc-summary-match .rrwc-summary-side .rrwc-flag {
	width: 22px;
	height: auto;
	flex-shrink: 0;
}

.rrwc-summary-score {
	font-weight: 700;
	text-align: center;
	color: var(--rrwc-text-heading);
	white-space: nowrap;
}

.rrwc-summary-match-pts {
	font-weight: 600;
	color: var(--rrwc-brand);
	text-align: right;
	white-space: nowrap;
}

.rrwc-summary-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
	margin: 1.25rem 0 0;
	width: 100%;
	text-align: right;
}

.rrwc-button-secondary {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	cursor: pointer;
	background: var(--rrwc-surface);
	border: 1px solid var(--rrwc-border);
	border-radius: 3px;
	color: var(--rrwc-text-heading) !important;
	font-size: 0.875rem;
	font-weight: 600;
}

.rrwc-button-secondary:hover {
	border-color: var(--rrwc-brand);
	color: var(--rrwc-brand) !important;
}

.rrwc-button-text {
	display: inline-block;
	padding: 0.35rem 0;
	cursor: pointer;
	border: none;
	background: none;
	color: var(--rrwc-text-muted) !important;
	font-size: 0.8125rem;
	text-decoration: underline;
	font-family: var(--rrwc-font-ui);
}

/* Modal */
.rrwc-modal {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.rrwc-modal[hidden] {
	display: none !important;
}

.rrwc-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.rrwc-modal-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow: auto;
	padding: 1.5rem;
	background: var(--rrwc-surface);
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	text-align: left;
}

.rrwc-modal-close {
	position: absolute;
	top: 0.5rem;
	right: 0.65rem;
	border: none;
	background: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: var(--rrwc-text-muted);
	padding: 0.25rem;
}

.rrwc-modal-close:hover {
	color: var(--rrwc-text-heading);
}

.rrwc-modal-intro {
	font-size: 0.9rem;
	color: var(--rrwc-text);
	margin-top: 0;
}

.rrwc-modal-error {
	color: #b32d2e;
	font-size: 0.875rem;
	min-height: 1.25rem;
	margin: 0;
}

.rrwc-modal-actions {
	margin-bottom: 0;
}

@media (max-width: 640px) {
	.rrwc-summary-stats-panel {
		padding: 0.85rem;
	}

	.rrwc-summary-stats {
		grid-template-columns: 1fr;
	}

	.rrwc-summary-stat dd {
		font-size: 2.35rem;
	}

	/* Keep match rows in one horizontal line on small screens; tighten spacing slightly. */
	.rrwc-summary-matches {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.rrwc-summary-match {
		gap: 0.35rem 0.45rem;
		font-size: 0.8125rem;
	}

	.rrwc-summary-home,
	.rrwc-summary-away {
		max-width: 9rem;
	}

	.rrwc-summary-match .rrwc-summary-side .rrwc-flag {
		width: 18px;
	}

	.rrwc-summary-match-pts {
		font-size: 0.8125rem;
	}

	.rrwc-summary-actions {
		align-items: flex-end;
	}

	body.rrwc-competition .rrwc-summary-stats-panel {
		padding: 0;
	}

	body.rrwc-competition .rrwc-summary-stat + .rrwc-summary-stat {
		border-left: 0;
		border-top: 2px solid #154c35;
	}

	body.rrwc-competition .rrwc-summary-stat dd {
		font-size: clamp(1.5rem, 6vw, 2rem);
	}

	body.rrwc-competition .rrwc-summary-heading {
		font-size: clamp(0.875rem, 2.8vw, 1rem);
	}

	body.rrwc-competition p.rrwc-summary-team-name strong,
	body.rrwc-competition #rrwc-summary-public-name {
		font-size: clamp(2.15rem, 11vw, 3.35rem);
	}

	body.rrwc-competition .rrwc-my-summary .rrwc-button-secondary {
		width: 100%;
		text-align: center;
	}
}

/* Slot reveal */
.rrwc-slot-reveal {
	margin-top: 2rem;
	text-align: center;
	padding: 1.5rem;
	background: var(--rrwc-bg);
	border: 1px solid var(--rrwc-border-light);
	border-radius: 4px;
}

.rrwc-slot-reveal h3 {
	color: var(--rrwc-text-heading);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rrwc-slot-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin: 1.5rem 0;
}

@media (max-width: 600px) {
	.rrwc-slot-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.rrwc-team-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.rrwc-pot-label {
	display: block;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--rrwc-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0;
}

.rrwc-team-card-frame {
	border: 1px solid var(--rrwc-border);
	border-radius: 8px;
	padding: 0.75rem;
	background: var(--rrwc-surface);
	flex: 1;
	display: flex;
	flex-direction: column;
}

.rrwc-slot-window {
	height: 60px;
	overflow: hidden;
	margin-bottom: 0.5rem;
	flex-shrink: 0;
}

.rrwc-slot-list {
	list-style: none;
	margin: 0;
	padding: 0;
	transition: none;
}

.rrwc-slot-list.is-spinning {
	animation: rrwc-slot-spin 4s linear infinite;
}

@keyframes rrwc-slot-spin {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(0, -50%, 0);
	}
}

.rrwc-slot-list.is-landing {
	animation: none;
}

.rrwc-slot-list.is-landed {
	animation: none;
}

.rrwc-slot-list li {
	height: 60px;
	min-height: 60px;
	flex-shrink: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	color: var(--rrwc-text-heading);
	padding: 0 0.35rem;
	box-sizing: border-box;
}

.rrwc-slot-list li .rrwc-flag {
	width: 28px;
	height: auto;
	flex-shrink: 0;
}

.rrwc-team-result {
	display: none;
}

.rrwc-team-result.is-visible {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.rrwc-team-result .rrwc-flag {
	width: 36px;
	height: auto;
	display: inline-block !important;
}

.rrwc-team-result .rrwc-team-name {
	display: inline;
}

.rrwc-flag {
	vertical-align: middle;
	object-fit: contain;
}

.rrwc-reveal-message {
	font-size: 1.1rem;
	margin-top: 1rem;
	color: var(--rrwc-text);
}

/* Closed entries — match entry form card (standalone + competition page) */
.rrwc-closed.rrwc-entry-form-wrap {
	max-width: 640px;
	margin: 0 auto 2rem;
	padding: 1.5rem;
	background: var(--rrwc-bg);
	border: 1px solid var(--rrwc-border-light);
	border-radius: 4px;
	color: var(--rrwc-text);
}

.rrwc-closed.rrwc-entry-form-wrap .rrwc-title {
	margin: 0 0 1rem;
	color: var(--rrwc-text-heading);
}

.rrwc-closed-message {
	font-size: 1.8rem;
	line-height: 1.5;
	color: var(--rrwc-text);
	margin: 0 0 1rem;
}

.rrwc-closed.rrwc-entry-form-wrap .rrwc-disclaimer {
	font-size: 1.2rem;
	margin: 0;
}

.rrwc-competition-page .rrwc-closed.rrwc-entry-form-wrap .rrwc-title,
.rrwc-competition-page .rrwc-closed.rrwc-entry-form-wrap .rrwc-closed-message {
	color: var(--rrwc-text-heading);
}

.rrwc-competition-page .rrwc-closed.rrwc-entry-form-wrap .rrwc-disclaimer {
	color: var(--rrwc-text-muted);
}

/* Leaderboard */
.rrwc-leaderboard-wrap .rrwc-title {
	color: var(--rrwc-text-heading);
}

.rrwc-leaderboard {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 1);
	background-color: rgba(255, 255, 255, 0.7);
}

.rrwc-leaderboard thead {
	background-color: var(--rrwc-pitch-deep);
	color: #fff;
}

.rrwc-leaderboard th {
	padding: 0.75rem 1rem;
	text-align: left;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.8125rem;
}

.rrwc-leaderboard td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--rrwc-border-light);
	color: rgba(0, 0, 0, 1);
	vertical-align: middle;
}

.rrwc-leaderboard tbody tr:nth-child(even) {
	background-color: var(--rrwc-bg);
}

.rrwc-leaderboard tbody tr:hover {
	background-color: #e5f0ea;
}

.rrwc-leaderboard td:first-child {
	font-weight: 700;
	color: rgba(245, 10, 10, 1);
	width: 4rem;
	text-align: center;
}

.rrwc-leaderboard .rrwc-countries {
	line-height: 1.5;
	border-bottom: none;
}

.rrwc-leaderboard td:last-child {
	font-weight: 700;
	text-align: center;
	width: 5rem;
}

.rrwc-empty {
	color: var(--rrwc-text-muted);
	font-style: italic;
	padding: 1rem 0;
}

.rrwc-leaderboard-footer {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rrwc-border-light);
	color: rgba(255, 255, 255, 1);
}

.required {
	color: var(--rrwc-brand);
}

@media (max-width: 768px) {
	.rrwc-competition-page {
		padding: 1.25rem 1rem 2rem;
	}

	.rrwc-competition-top {
		margin-bottom: 2rem;
	}

	/*
	 * Mobile hero: keep artwork pinned bottom-right (wide banner asset), use vertical space
	 * that scales with viewport without starving short copy. Content stacks from the bottom
	 * so type sits over the darker scrim, not the busiest part of the art.
	 */
	.rrwc-competition-hero {
		/* vmin fallback; svmin avoids mobile browser chrome resizing jumps where supported */
		min-height: clamp(15rem, 50vmin, 20rem);
		min-height: clamp(15rem, 50svmin, 20rem);
		padding: calc(3.35rem + env(safe-area-inset-top, 0px)) 1rem max(1.35rem, env(safe-area-inset-bottom, 0px));
		background-position: right bottom;
		background-size: cover;
	}

	/* Stronger left + bottom scrim so headline/body stay legible while bg stays bottom-right */
	.rrwc-competition-hero::before {
		background:
			linear-gradient(90deg, rgba(3, 41, 28, 0.88) 0%, rgba(3, 41, 28, 0.35) 48%, transparent 72%),
			linear-gradient(180deg, rgba(3, 41, 28, 0.18) 0%, rgba(3, 41, 28, 0.42) 45%, rgba(3, 41, 28, 0.92) 100%);
	}

	.rrwc-competition-hero-inner {
		align-items: stretch;
		align-self: stretch;
		width: 100%;
		min-height: 0;
		padding: 0;
	}

	.rrwc-competition-hero > .rrwc-competition-title,
	.rrwc-competition-hero > .rrwc-competition-intro,
	.rrwc-competition-hero-copy {
		max-width: 100%;
	}

	.rrwc-competition-hero-copy {
		justify-content: flex-end;
		padding-right: 0;
		padding-bottom: 0.15rem;
	}

	/*
	 * Fluid type: caps scale on large phones; slightly looser line-height when the title wraps.
	 */
	.rrwc-competition-title {
		font-size: clamp(1.65rem, 5.5vw + 0.55rem, 2.35rem);
		line-height: 1.06;
		margin-bottom: 0.65rem;
	}

	.rrwc-competition-intro {
		font-size: clamp(0.9375rem, 2.4vw + 0.65rem, 1.0625rem);
		line-height: 1.52;
		max-width: 100%;
	}

	.rrwc-competition-status {
		top: calc(0.85rem + env(safe-area-inset-top, 0px));
		right: max(0.75rem, env(safe-area-inset-right, 0px));
		left: auto;
		justify-content: flex-start;
		align-items: flex-end;
		font-size: 0.72rem;
		padding: 0.4rem 0.72rem;
	}

	.rrwc-competition-page .rrwc-entry-form-wrap,
	.rrwc-competition-page .rrwc-closed.rrwc-entry-form-wrap {
		padding: 1rem;
	}

	.rrwc-leaderboard {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.rrwc-leaderboard th,
	.rrwc-leaderboard td {
		padding: 0.6rem 0.75rem;
		font-size: 0.875rem;
	}

	.rrwc-leaderboard .rrwc-countries {
		min-width: 10rem;
	}
}

/* Short landscape phones / notched landscape: avoid a viewport-tall hero crowding the fold */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 520px) {
	.rrwc-competition-hero {
		min-height: 0;
		padding: calc(2.5rem + env(safe-area-inset-top, 0px)) 1rem 0.85rem;
	}

	.rrwc-competition-title {
		font-size: clamp(1.35rem, 4vw + 0.35rem, 1.85rem);
		line-height: 1.08;
		margin-bottom: 0.4rem;
	}

	.rrwc-competition-intro {
		font-size: 0.9rem;
		line-height: 1.45;
	}

	.rrwc-competition-status {
		top: calc(0.55rem + env(safe-area-inset-top, 0px));
		font-size: 0.68rem;
		padding: 0.32rem 0.6rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rrwc-slot-list {
		transition: none;
	}
}

/* WordPress admin bar: keep toolbar visible for logged-in site managers on competition pages. */
body.admin-bar.rrwc-competition #wpadminbar {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 100000 !important;
}

body.admin-bar.rrwc-competition .header-bar-wrapper {
	top: var(--wp-admin--admin-bar--height, 32px) !important;
	z-index: 99998 !important;
}

body.admin-bar.rrwc-competition .content {
	margin-top: calc(65px + var(--wp-admin--admin-bar--height, 32px)) !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar.rrwc-competition .header-bar-wrapper {
		top: var(--wp-admin--admin-bar--height, 46px) !important;
	}

	body.admin-bar.rrwc-competition .content {
		margin-top: calc(60px + var(--wp-admin--admin-bar--height, 46px)) !important;
	}
}

@media (max-width: 768px) {
	body.admin-bar.rrwc-competition .content {
		margin-top: calc(60px + var(--wp-admin--admin-bar--height, 46px)) !important;
	}
}

/* Client ZIP redesign: standalone competition chrome and vertical campaign stack. */
body.rrwc-competition .wrapper {
	padding-left: 0 !important;
	background: #ffffff !important;
}

body.rrwc-competition .nav-wrapper,
body.rrwc-competition .main-nav,
body.rrwc-competition .main-menu-toggle {
	display: none !important;
}

body.rrwc-competition .header-bar-wrapper {
	left: 0 !important;
	width: 100% !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.rrwc-competition .header-bar {
	padding-left: 0 !important;
}

body.rrwc-competition .section-name {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-height: 110px !important;
	min-width: 110px !important;
	padding: 10px !important;
	font-size: 0 !important;
	line-height: 1 !important;
	background: #973105 !important;
	border-right: 1px solid rgba(255, 255, 255, 0.2);
	box-sizing: border-box;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.rrwc-competition .section-name::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	max-width: 93px;
	max-height: 93px;
	background-image: var(--rrwc-venue-header-logo-url, none);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	filter: var(--rrwc-venue-header-logo-filter, none);
}

body.rrwc-competition .section-name.rrwc-header-no-logo::before {
	content: var(--rrwc-venue-header-label, "Venue");
	width: auto;
	height: auto;
	background: none;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 1.15rem;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.rrwc-competition .section-name .mobile-nav-home {
	display: none !important;
}

body.rrwc-competition .location-selector,
body.rrwc-competition .locations-outer {
	display: none !important;
}

body.rrwc-competition .content {
	margin-top: 65px !important;
}

body.rrwc-competition .article-wrapper {
	max-width: none !important;
	padding: 0 !important;
}

body.rrwc-competition .rrwc-competition-article {
	width: 100%;
	margin: 0;
	background: #ffffff !important;
}

body.rrwc-competition .rrwc-competition-page {
	--rrwc-pitch-light: #1f9a73;
	--rrwc-pitch-mid: #08714d;
	--rrwc-pitch-deep: #003f2d;
	--rrwc-accent-gold: #f0cf38;
	--rrwc-accent-gold-muted: #d0ad17;
	--rrwc-accent-gold-hover: #ffe066;
	max-width: 1500px;
	width: 100%;
	margin: 0 auto;
	padding: 0 0 4.5rem;
	background: #ffffff;
	border: 0;
	box-shadow: none;
	color: #173d2c;
}

body.rrwc-competition .rrwc-competition-top {
	width: 100%;
	max-width: 1690px;
	margin: 0 auto;
}

body.rrwc-competition .rrwc-competition-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 0;
	margin: 0;
	padding: clamp(1.32rem, 3.96vw, 2.64rem) clamp(1.32rem, 5.28vw, 3.3rem);
	border: 0;
	border-radius: 0;
	background-color: var(--rrwc-pitch-deep);
	background-image: url("../images/campaign/client-2026/source/green-bg.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: none;
	color: #ffffff;
	text-align: center;
}

body.rrwc-competition .rrwc-competition-hero::before {
	z-index: 0;
	background: none;
}

body.rrwc-competition .rrwc-competition-hero::after {
	z-index: 0;
	background: none;
}

body.rrwc-competition .rrwc-competition-hero-stack {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.32rem, 3.3vw, 2.31rem);
	width: 100%;
	max-width: min(100%, 76rem);
	margin: 0 auto;
}

body.rrwc-competition .rrwc-competition-hero-headline {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	text-align: center;
}

body.rrwc-competition .rrwc-competition-hero-headline h1,
body.rrwc-competition .rrwc-competition-hero-headline h2.rrwc-competition-subtitle {
	margin: 0;
	padding: 0;
	border: 0;
	width: 100%;
	text-align: center;
}

body.rrwc-competition .rrwc-competition-hero-art {
	display: block;
	position: relative;
	width: min(100%, 74rem);
	margin: 0 auto;
	pointer-events: none;
}

body.rrwc-competition .rrwc-competition-hero-art img {
	display: block;
	width: 100%;
	height: auto;
}

body.rrwc-competition .rrwc-competition-hero-steps {
	width: 100%;
}

body.rrwc-competition .rrwc-competition-title {
	margin: 0;
	text-align: center;
	color: #ffffff;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 76.56px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	text-transform: none;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

body.rrwc-competition .rrwc-competition-subtitle {
	display: block;
	margin: 0.15em 0 0 !important;
	text-align: center;
	color: var(--rrwc-accent-gold);
	font-family: var(--rrwc-font-heading) !important;
	font-size: 76.56px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	text-transform: none !important;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

body.rrwc-competition .rrwc-title-accent {
	color: var(--rrwc-accent-gold);
}

body.rrwc-competition .rrwc-competition-steps {
	display: block;
	width: 100%;
	max-width: 71.28rem;
	margin: 0 auto;
	padding: 0 0 0 1.35em;
	list-style-position: outside;
	color: #ffffff;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 18.5px;
	font-weight: 800;
	line-height: 1.32;
	text-align: left;
	text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
	text-wrap: balance;
}

body.rrwc-competition .rrwc-competition-steps li {
	margin: 0 0 0.35em;
	font-family: var(--rrwc-font-heading) !important;
	font-size: inherit !important;
	font-weight: 800 !important;
	line-height: inherit !important;
}

body.rrwc-competition .rrwc-competition-steps li:last-child {
	margin-bottom: 0;
}

body.rrwc-competition .rrwc-competition-steps li::marker {
	color: var(--rrwc-accent-gold);
	font-family: var(--rrwc-font-heading) !important;
}

body.rrwc-competition .rrwc-competition-steps strong {
	color: var(--rrwc-accent-gold);
	font-family: var(--rrwc-font-heading) !important;
	font-weight: 800 !important;
}

body.rrwc-competition .rrwc-copy-block strong {
	color: var(--rrwc-accent-gold);
}

body.rrwc-competition .rrwc-competition-intro {
	margin: 0 auto;
	max-width: 71.28rem;
	color: #ffffff;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(1.254rem, 2.904vw, 1.782rem);
	font-weight: 800;
	line-height: 1.35;
	text-align: left;
	text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
}

body.rrwc-competition .rrwc-hero-action {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 100%;
	margin: 0;
	text-align: center;
}

body.rrwc-competition .rrwc-hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: clamp(1.122rem, 3.3vw, 2.046rem) clamp(2.64rem, 10.56vw, 5.61rem);
	background: var(--rrwc-accent-gold);
	border: 3px solid var(--rrwc-accent-gold-muted);
	color: #123d2b !important;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(1.782rem, 5.28vw, 3.498rem);
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

body.rrwc-competition .rrwc-hero-deadline {
	margin: 0.5rem 0 0;
	color: #ffffff;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(0.924rem, 2.64vw, 1.518rem);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	text-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

body.rrwc-competition .rrwc-hero-deadline span {
	color: var(--rrwc-accent-gold);
}

body.rrwc-competition .rrwc-hero-entries-notice {
	max-width: min(100%, 36.96rem);
	margin: 0;
	padding: 1.452rem 1.782rem;
	background: rgba(0, 38, 26, 0.72);
	border: 2px solid rgba(245, 183, 10, 0.85);
	color: #ffffff;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(1.386rem, 2.64vw, 1.782rem);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

body.rrwc-competition .rrwc-entry-open-date {
	white-space: nowrap;
}

body.rrwc-competition .rrwc-closed-message {
	text-align: center;
}

body.rrwc-competition .rrwc-competition-enter .rrwc-closed-message {
	max-width: min(100%, 42rem);
	margin-left: auto;
	margin-right: auto;
	color: #173d2c;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(1.15rem, 2.4vw, 1.55rem);
	font-weight: 800;
	line-height: 1.25;
}

body.rrwc-competition .rrwc-competition-status {
	position: absolute;
	top: clamp(18px, 2vw, 30px);
	right: clamp(18px, 2.4vw, 38px);
	left: auto;
	z-index: 3;
	padding: 7px 18px;
	background: rgba(0, 38, 26, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #ffffff;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 14px;
}

body.rrwc-competition .rrwc-competition-section {
	max-width: 980px;
	margin: 0 auto;
	padding: clamp(2.5rem, 5vw, 4.8rem) clamp(22px, 4vw, 42px) 0;
	color: #173d2c;
}

body.rrwc-competition .rrwc-section-title,
body.rrwc-competition .rrwc-title,
body.rrwc-competition .rrwc-leaderboard-wrap .rrwc-title {
	margin: 0 0 1.35rem;
	color: #000000;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(2.4rem, 5vw, 4.8rem);
	font-weight: 800;
	line-height: 0.9;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

body.rrwc-competition .rrwc-copy-block {
	max-width: 760px;
	margin: 0 auto;
	color: #173d2c;
	font-family: var(--rrwc-font-body) !important;
	font-size: clamp(1.08rem, 1.8vw, 1.35rem);
	line-height: 1.55;
	text-align: center;
}

body.rrwc-competition .rrwc-copy-block p {
	margin: 0 0 1rem;
	text-wrap: balance;
}

body.rrwc-competition .rrwc-competition-enter {
	max-width: 780px;
	scroll-margin-top: calc(65px + 1.5rem);
}

body.rrwc-competition .rrwc-competition-page .rrwc-entry-form-wrap,
body.rrwc-competition .rrwc-competition-page .rrwc-closed.rrwc-entry-form-wrap {
	max-width: 680px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #173d2c;
}

body.rrwc-competition #rrwc-entry-form.rrwc-entry-form,
body.rrwc-competition .rrwc-entry-form {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

/* Nonces / hidden competition slug: out of grid flow so the 2-column field layout is stable. */
body.rrwc-competition .rrwc-entry-form-meta {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.rrwc-competition #rrwc-entry-form.rrwc-entry-form > input[type="hidden"],
body.rrwc-competition #rrwc-entry-form.rrwc-entry-form > p:empty {
	display: none;
}

body.rrwc-competition #rrwc-entry-form.rrwc-entry-form > p.rrwc-field,
body.rrwc-competition #rrwc-entry-form.rrwc-entry-form > p.rrwc-messages,
body.rrwc-competition #rrwc-entry-form.rrwc-entry-form > p.rrwc-submit {
	min-width: 0;
}

body.rrwc-competition #rrwc-entry-form.rrwc-entry-form > *:not(p.rrwc-field):not(.rrwc-entry-form-meta) {
	grid-column: 1 / -1;
}

body.rrwc-competition .rrwc-field {
	margin: 0;
}

body.rrwc-competition .rrwc-field label {
	margin-bottom: 0.35rem;
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 1.2rem;
	line-height: 1;
	text-transform: uppercase;
}

body.rrwc-competition .rrwc-field input[type="text"],
body.rrwc-competition .rrwc-field input[type="email"],
body.rrwc-competition .rrwc-field input[type="tel"] {
	min-height: 50px;
	padding: 0.76rem 0.9rem;
	background: #ffffff;
	border: 1px solid #000000;
	border-radius: 0;
	color: #173d2c;
	font-size: 2rem;
	font-family: var(--rrwc-font-ui) !important;
}

body.rrwc-competition .rrwc-field .description {
	display: block;
	margin-top: 0.35rem;
	color: #4f6b5d;
	font-family: var(--rrwc-font-body) !important;
	font-size: 0.95rem;
	line-height: 1.35;
}

body.rrwc-competition #rrwc-terms-heading {
	scroll-margin-top: 5.5rem;
}

body.rrwc-competition .rrwc-field.rrwc-checkbox,
body.rrwc-competition .rrwc-messages,
body.rrwc-competition .rrwc-submit {
	grid-column: 1 / -1;
}

body.rrwc-competition .rrwc-field.rrwc-checkbox .rrwc-inline-terms-link {
	color: #154c35;
	font-weight: inherit;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

body.rrwc-competition .rrwc-field.rrwc-checkbox .rrwc-inline-terms-link:hover,
body.rrwc-competition .rrwc-field.rrwc-checkbox .rrwc-inline-terms-link:focus {
	color: #0d3827;
	outline-offset: 2px;
}

body.rrwc-competition .rrwc-field.rrwc-checkbox label {
	display: flex !important;
	align-items: flex-start;
	gap: 0.55rem;
	margin-bottom: 0 !important;
	font-family: var(--rrwc-font-body) !important;
	font-size: 1.3rem;
	line-height: 1.4;
	text-transform: none;
	cursor: pointer;
}

body.rrwc-competition .rrwc-field.rrwc-checkbox input[type="checkbox"] {
	flex: 0 0 auto;
	display: inline-block !important;
	width: 1.125rem;
	height: 1.125rem;
	margin: 0.15rem 0 0 !important;
}

body.rrwc-competition .rrwc-field.rrwc-checkbox .rrwc-checkbox-text {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
}

/* wpautop can still inject <br> before shortcode HTML is cleaned; keep checkbox rows tight. */
body.rrwc-competition #rrwc-entry-form label br {
	display: none;
}

body.rrwc-competition .rrwc-button-primary {
	width: 100%;
	justify-content: center;
	padding: 1rem 2rem;
	background: #154c35;
	border: 0;
	border-radius: 0;
	color: #ffffff !important;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 1.35rem;
	font-weight: 800;
	text-transform: uppercase;
}

body.rrwc-competition .rrwc-submit .rrwc-button-primary,
body.rrwc-competition #rrwc-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: clamp(3.5rem, 12vw, 5rem);
	padding: clamp(1.122rem, 3.3vw, 2.046rem) clamp(2.64rem, 10.56vw, 5.61rem);
	background: var(--rrwc-accent-gold);
	border: 3px solid var(--rrwc-accent-gold-muted);
	border-radius: 0;
	color: #123d2b !important;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(1.782rem, 5.28vw, 3.498rem);
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
}

body.rrwc-competition .rrwc-submit .rrwc-button-primary:hover,
body.rrwc-competition .rrwc-submit .rrwc-button-primary:focus,
body.rrwc-competition #rrwc-submit-btn:hover,
body.rrwc-competition #rrwc-submit-btn:focus {
	background: var(--rrwc-accent-gold);
	border-color: var(--rrwc-accent-gold-muted);
	color: #123d2b !important;
}

body.rrwc-competition .rrwc-button-primary:hover,
body.rrwc-competition .rrwc-button-primary:focus {
	background: #0d3827;
	color: #ffffff !important;
}

body.rrwc-competition .rrwc-view-my-entry-wrap {
	margin: -0.5rem 0 1.6rem;
	text-align: center;
}

body.rrwc-competition .rrwc-link-button {
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 1.05rem;
	text-transform: uppercase;
}

body.rrwc-competition .rrwc-my-summary {
	max-width: 720px;
	margin: 0 auto 1.5rem;
	padding: clamp(1.4rem, 3vw, 2.4rem);
	background: none;
	border: 1px solid #000000;
	border-radius: 0;
	color: #173d2c;
}

body.rrwc-competition .rrwc-summary-heading {
	margin: 0 0 0.5rem;
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(0.95rem, 2.2vw, 1.15rem);
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

body.rrwc-competition p.rrwc-summary-team-name {
	margin: 0 0 1.35rem;
	color: #173d2c;
	text-align: center;
}

body.rrwc-competition p.rrwc-summary-team-name strong,
body.rrwc-competition #rrwc-summary-public-name {
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(2.5rem, 10vw, 4.25rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.03em;
}

body.rrwc-competition .rrwc-summary-stats-panel {
	margin: 0 0 1.35rem;
	padding: 0;
	background: none;
	border: 1px solid #000000;
	border-radius: 0;
	box-shadow: none;
}

body.rrwc-competition .rrwc-summary-stats {
	gap: 0;
}

body.rrwc-competition .rrwc-summary-stat {
	padding: 1.15rem 1rem;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

body.rrwc-competition .rrwc-summary-stat + .rrwc-summary-stat {
	border-left: 1px solid #000000;
}

body.rrwc-competition .rrwc-summary-stat dt {
	margin-bottom: 0.45rem;
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

body.rrwc-competition .rrwc-summary-stat dd {
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	font-weight: 800;
	line-height: 1;
}

body.rrwc-competition .rrwc-summary-stat dd .rrwc-summary-rank-suffix {
	color: #4f6b5d;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 0.8125rem;
	font-weight: 600;
}

body.rrwc-competition .rrwc-summary-teams {
	margin: 0 0 1.15rem;
}

body.rrwc-competition .rrwc-summary-team-row {
	padding: 0.55rem 0;
	min-height: 1.75rem;
	border-bottom-color: #dbe3d5;
}

body.rrwc-competition .rrwc-summary-team-row span.rrwc-summary-team-name {
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(1rem, 1.45vw, 1.25rem);
	font-weight: 800;
	line-height: 1;
}

body.rrwc-competition .rrwc-summary-team-row .rrwc-flag {
	width: 24px;
	height: 18px;
	object-fit: cover;
	box-shadow: none;
}

body.rrwc-competition .rrwc-summary-team-row .rrwc-summary-pot {
	color: #4f6b5d;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

body.rrwc-competition .rrwc-summary-breakdown {
	margin-top: 0;
	padding: 0.85rem 1rem 1rem;
	background: none;
	border: 1px solid #000000;
	border-radius: 0;
}

body.rrwc-competition .rrwc-summary-breakdown summary {
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

body.rrwc-competition .rrwc-summary-empty {
	color: #4f6b5d;
	font-family: var(--rrwc-font-body) !important;
}

body.rrwc-competition .rrwc-summary-match {
	border-bottom-color: #dbe3d5;
	color: #173d2c;
	font-family: var(--rrwc-font-body) !important;
}

body.rrwc-competition .rrwc-summary-score {
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-weight: 800;
}

body.rrwc-competition .rrwc-summary-assigned-country {
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-weight: 800;
}

body.rrwc-competition .rrwc-summary-match-pts {
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-weight: 800;
}

body.rrwc-competition .rrwc-summary-actions {
	margin: 1.35rem 0 0;
}

body.rrwc-competition .rrwc-my-summary .rrwc-button-secondary {
	padding: 0.75rem 1.35rem;
	background: none;
	border: 1px solid #000000;
	border-radius: 0;
	color: #154c35 !important;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
}

body.rrwc-competition .rrwc-my-summary .rrwc-button-secondary:hover,
body.rrwc-competition .rrwc-my-summary .rrwc-button-secondary:focus {
	background: #0d3827;
	border-color: #0d3827;
	color: #ffffff !important;
}

body.rrwc-competition .rrwc-my-summary .rrwc-button-text {
	color: #4f6b5d !important;
	font-family: var(--rrwc-font-body) !important;
	font-size: 0.9rem;
	text-decoration: underline;
}

body.rrwc-competition .rrwc-my-summary .rrwc-button-text:hover,
body.rrwc-competition .rrwc-my-summary .rrwc-button-text:focus {
	color: #154c35 !important;
}

body.rrwc-competition .rrwc-pot-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.55rem, 1.2vw, 1rem);
	margin: 2rem auto 0;
	padding: 16px 0;
	overflow: visible;
}

body.rrwc-competition .rrwc-pot-card {
	position: relative;
	padding: clamp(0.85rem, 1.4vw, 1.3rem) clamp(0.55rem, 1vw, 1rem);
	background: #ffffff;
	border: 1px solid #000000;
	color: #154c35;
	text-align: center;
	min-width: 0;
	overflow: visible;
}

body.rrwc-competition .rrwc-pot-card::before,
body.rrwc-competition .rrwc-pot-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	background: #000000;
	pointer-events: none;
}

body.rrwc-competition .rrwc-pot-card::before {
	top: -16px;
}

body.rrwc-competition .rrwc-pot-card::after {
	top: calc(100% + 15px);
}

body.rrwc-competition .rrwc-pot-card h3 {
	margin: 0 0 0.5rem;
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(1.61rem, 2.52vw, 2.38rem);
	line-height: 0.95;
}

body.rrwc-competition .rrwc-pot-card p {
	margin: 0;
	color: #154c35;
	font-family: var(--rrwc-font-body) !important;
	font-size: 1.4rem;
	line-height: 1.35;
}

body.rrwc-competition .rrwc-pot-team-list {
	display: grid;
	gap: 0.45rem;
	margin: 0.85rem 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

body.rrwc-competition .rrwc-pot-team-list li {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 1.35rem;
	color: #154c35;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(0.78rem, 1.1vw, 1.25rem);
	font-weight: 800;
	line-height: 1;
}

body.rrwc-competition .rrwc-pot-team-flag {
	width: 24px;
	height: 18px;
	object-fit: cover;
	flex: 0 0 auto;
	box-shadow: 0 0 0 1px #000000;
}

body.rrwc-competition .rrwc-competition-leaderboard {
	max-width: 1060px;
}

body.rrwc-competition .rrwc-leaderboard-wrap {
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
}

body.rrwc-competition .rrwc-leaderboard {
	display: table;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	background: #ffffff;
	border: 1px solid #154c35;
	box-shadow: none;
}

body.rrwc-competition .rrwc-leaderboard th,
body.rrwc-competition .rrwc-leaderboard td {
	padding: 1rem 1.15rem;
	border: 0;
	border-bottom: 1px solid #154c35;
	color: #173d2c;
	font-family: var(--rrwc-font-heading) !important;
	font-size: clamp(1rem, 1.7vw, 1.35rem);
	line-height: 1.15;
	text-align: left;
	overflow-wrap: anywhere;
	word-break: break-word;
}

body.rrwc-competition .rrwc-leaderboard tbody tr:nth-child(even) {
	background-color: #ffffff;
}

body.rrwc-competition .rrwc-leaderboard tbody tr:hover {
	background-color: #ffffff;
}

body.rrwc-competition .rrwc-leaderboard th {
	background: #154c35;
	color: #ffffff;
	text-transform: uppercase;
}

body.rrwc-competition .rrwc-leaderboard td:first-child,
body.rrwc-competition .rrwc-leaderboard th:first-child {
	width: 5rem;
	text-align: center;
}

body.rrwc-competition .rrwc-leaderboard-points {
	color: #154c35;
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	text-align: center;
}

body.rrwc-competition .rrwc-leaderboard-actions {
	margin: 1.5rem auto 0;
	max-width: 240px;
}

body.rrwc-competition .rrwc-section-action {
	max-width: 520px;
	margin: 2.5rem auto 0;
	text-align: center;
}

body.rrwc-competition .rrwc-section-action .rrwc-button-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 5.4rem;
	padding: 1.75rem 3rem;
	font-size: clamp(2.2rem, 4vw, 3rem);
	line-height: 1;
	text-align: center;
}

/* Hide Prizes CTA unless entries are actually open (mirrors rrwc-state-registration). */
body.rrwc-competition .rrwc-competition-page:not(.rrwc-state-registration) .rrwc-competition-prizes .rrwc-section-action {
	display: none !important;
}

/* Hide entry CTAs once the user has their entry. */
body.rrwc-competition .rrwc-competition-page.rrwc-has-entry .rrwc-hero-action,
body.rrwc-competition .rrwc-competition-page.rrwc-has-entry .rrwc-competition-prizes .rrwc-section-action {
	display: none !important;
}

body.rrwc-competition .rrwc-terms-panel {
	max-width: 860px;
	margin: 0 auto;
	background: transparent;
	border: 0;
	color: #000000;
}

body.rrwc-competition .rrwc-terms-panel summary {
	position: relative;
	padding: 1rem 1.25rem;
	cursor: pointer;
	background: transparent;
	border: 1px solid #000000;
	color: #000000;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 1.35rem;
	text-align: left;
	text-transform: uppercase;
	list-style: none;
}

body.rrwc-competition .rrwc-terms-panel summary::-webkit-details-marker {
	display: none;
}

body.rrwc-competition .rrwc-terms-panel summary::before {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	margin-right: 0.55rem;
	color: #000000;
	font-size: 1.35rem;
	line-height: 1;
	vertical-align: baseline;
}

body.rrwc-competition .rrwc-terms-panel[open] summary::before {
	content: "-";
}

body.rrwc-competition .rrwc-terms-panel[open] summary {
	border-bottom: 1px solid #000000;
}

body.rrwc-competition .rrwc-terms-content {
	padding: 1.25rem clamp(1rem, 3vw, 2rem);
	background: transparent;
	border: 0;
	color: #000000;
	font-family: var(--rrwc-font-ui) !important;
	font-size: 1.2rem;
	line-height: 1.6;
	text-align: left;
}

body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content p,
body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content li,
body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content ul,
body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content ol,
body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content a,
body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content strong,
body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content em {
	font-family: var(--rrwc-font-ui) !important;
}

body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content li {
	font-size: inherit;
}

body.rrwc-competition .rrwc-terms-content > *:first-child {
	margin-top: 0;
}

body.rrwc-competition .rrwc-terms-content > *:last-child {
	margin-bottom: 0;
}

body.rrwc-competition .rrwc-terms-content p {
	margin: 0 0 1rem;
}

body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content h3,
body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content h4 {
	margin: 1.5rem 0 0.75rem;
	color: #000000 !important;
	font-family: var(--rrwc-font-heading) !important;
	font-size: 1.5rem !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	text-transform: none !important;
	display: block !important;
}

body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content h3:first-child,
body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content h4:first-child {
	margin-top: 0;
}

body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content p + h3,
body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content p + h4 {
	margin-top: 1.75rem;
}

body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content h3 strong,
body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content h4 strong {
	font-weight: inherit;
}

body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content ul,
body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content ol {
	margin: 0 0 1rem 1.25rem;
	padding: 0;
}

body.rrwc-competition .rrwc-terms-panel .rrwc-terms-content li {
	margin-bottom: 0.35rem;
}

@media (min-width: 769px) {
	body.rrwc-competition .rrwc-competition-title {
		font-size: 76.56px;
	}

	body.rrwc-competition .rrwc-competition-subtitle {
		font-size: 76.56px;
	}
}

@media (max-width: 768px) {
	body.rrwc-competition .content {
		margin-top: 60px !important;
	}

	body.rrwc-competition .rrwc-competition-status {
		top: 12px;
		right: 12px;
		left: auto !important;
		padding: 3.25px 10px 3.8px;
		border-width: 1px;
		font-size: 7px;
		font-weight: 700;
		line-height: 8px;
		letter-spacing: 0.35px;
	}

	body.rrwc-competition #rrwc-entry-form.rrwc-entry-form,
	body.rrwc-competition .rrwc-entry-form {
		grid-template-columns: 1fr;
	}

	body.rrwc-competition .rrwc-pot-grid {
		grid-template-columns: repeat(4, minmax(8.5rem, 1fr));
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
	}

	body.rrwc-competition .rrwc-pot-card {
		scroll-snap-align: start;
	}

	body.rrwc-competition .rrwc-leaderboard-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.rrwc-competition .rrwc-leaderboard {
		display: table;
		width: 100%;
		min-width: 100%;
	}
}
