body.rl-scorecard-page {
	--rl-scorecard-red: var(--wp--preset--color--brand-red, #7A1F2B);
	--rl-scorecard-teal: var(--wp--preset--color--cta-teal, #0B6E75);
	--rl-scorecard-ink: var(--wp--preset--color--ink, #16181B);
	--rl-scorecard-muted: var(--wp--preset--color--muted, #6B7280);
	--rl-scorecard-bone: var(--wp--preset--color--surface, #EDECE8);
	--rl-scorecard-surface: var(--wp--preset--color--surface-cool, #EEF1F2);
	--rl-scorecard-border: var(--wp--preset--color--border, #D9DEE2);
	--rl-scorecard-white: var(--wp--preset--color--white, #FFFFFF);
	--rl-scorecard-radius: 10px;
	--rl-scorecard-card-radius: 14px;
	--rl-scorecard-shadow: 0 10px 28px color-mix(in srgb, var(--rl-scorecard-ink) 5.5%, transparent);
}
body.rl-scorecard-page .rl-site-main .rl-section > .wp-block-post-content {
	width: min(100%, 72rem);
	margin-inline: auto;
}
body.rl-scorecard-page .rl-site-main .rl-section > .wp-block-post-content > :where(p, ul, ol) {
	max-width: 76ch;
	font-size: clamp(1rem, 0.97rem + 0.12vw, 1.075rem);
	line-height: 1.7;
}
body.rl-scorecard-page .rl-site-main .rl-section > .wp-block-post-content > p:first-child {
	margin-top: 0;
}

/* Delivery-only editorial intro uses the full site content rail. */
body.rl-delivery-scorecard-page .rl-site-main .rl-section > .wp-block-post-content > p:first-child {
	width: 100%;
	max-width: none;
}

/* Delivery-only instruction card. The words remain editor-owned in WordPress.
 * Theme rendering separates the explanatory copy from the scale key, and the
 * delivery-only script places the card inside the Gravity Forms shell. */
body.rl-delivery-scorecard-page .rl-delivery-scorecard-instructions {
	width: 100%;
	max-width: none !important;
	margin: 0 0 clamp(1.25rem, 2.8vw, 1.8rem);
	padding: clamp(1rem, 2.4vw, 1.45rem);
	border: 1px solid var(--rl-scorecard-border);
	border-radius: var(--rl-scorecard-card-radius);
	background: var(--rl-scorecard-white);
	color: var(--rl-scorecard-ink);
	box-sizing: border-box;
}

body.rl-delivery-scorecard-page .rl-delivery-scorecard-instructions__intro {
	margin: 0 0 1rem;
	line-height: 1.65;
}

body.rl-delivery-scorecard-page .rl-delivery-scorecard-instructions__intro strong:first-child {
	font-weight: 700;
}

body.rl-delivery-scorecard-page .rl-delivery-scorecard-scale-key {
	padding: 0.9rem 1rem;
	border-inline-start: 3px solid var(--rl-scorecard-red);
	background: var(--rl-scorecard-white);
}

body.rl-delivery-scorecard-page .rl-delivery-scorecard-scale-key p {
	margin: 0;
	line-height: 1.7;
}

body.rl-delivery-scorecard-page .gform_wrapper {
	margin-top: clamp(0.85rem, 2vw, 1.25rem);
}
body.rl-scorecard-page .rl-site-main .rl-section > .wp-block-post-content > h2,
body.rl-scorecard-page .gform_wrapper .gform_title {
	color: var(--rl-scorecard-ink);
	font-size: clamp(1.8rem, 1.52rem + 1.1vw, 2.45rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.08;
}
body.rl-scorecard-page .gform_wrapper {
	width: 100%;
	max-width: none;
	margin: clamp(1.25rem, 3vw, 2rem) 0 0;
	padding: clamp(1.2rem, 3vw, 2.35rem);
	border: 1px solid var(--rl-scorecard-border);
	border-radius: var(--rl-scorecard-card-radius);
	background: var(--rl-scorecard-surface);
	box-shadow: var(--rl-scorecard-shadow);
	box-sizing: border-box;
}
body.rl-scorecard-page .gform_wrapper,
body.rl-scorecard-page .gform_wrapper *,
body.rl-scorecard-page .gform_wrapper *::before,
body.rl-scorecard-page .gform_wrapper *::after {
	box-sizing: border-box;
}
body.rl-scorecard-page .gform_wrapper :where(.gfield, .ginput_container, .ginput_complex, fieldset.gfield) {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
body.rl-scorecard-page .gform_wrapper fieldset.gfield.rl-scorecard-full {
	min-inline-size: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
body.rl-scorecard-page .gform_wrapper fieldset.gfield.rl-scorecard-full > legend {
	padding: 0;
}
body.rl-scorecard-page .gform_wrapper .gform_heading {
	margin-bottom: 1.6rem;
}
body.rl-scorecard-page .gform_wrapper .gform_title {
	margin: 0 0 0.55rem;
}
body.rl-scorecard-page .gform_wrapper :where(.gform_description, .gform_required_legend) {
	color: var(--rl-scorecard-muted);
	font-size: 0.92rem;
	line-height: 1.55;
}
body.rl-scorecard-page .gform_wrapper .gform_required_legend {
	margin: 0;
}
body.rl-scorecard-page .gform_wrapper .gform_fields {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 1.25rem !important;
}
body.rl-scorecard-page .gform_wrapper .gfield {
	grid-column: 1 / -1 !important;
	min-width: 0;
	margin: 0 !important;
}
body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-half {
	grid-column: span 1 !important;
}
body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-full,
body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-rating,
body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-total {
	grid-column: 1 / -1 !important;
}
body.rl-scorecard-page .gform_wrapper :where(.gfield_label, .gform-field-label) {
	margin-bottom: 0.45rem;
	color: var(--rl-scorecard-ink);
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.35;
}
body.rl-scorecard-page #gform_wrapper_6 .gfield_label .gform-field-label__text {
	font-weight: 700 !important;
}
body.rl-scorecard-page .gform_wrapper :where(.gfield_required, .gfield_required_text, .gfield_required_asterisk) {
	color: var(--rl-scorecard-red);
}
body.rl-scorecard-page .gform_wrapper :where(.gfield_description, .instruction) {
	margin-top: 0.35rem;
	color: var(--rl-scorecard-muted);
	font-size: 0.92rem;
	line-height: 1.55;
}
body.rl-scorecard-page .gform_wrapper :where(
	input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
	select,
	textarea
) {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	min-height: 48px;
	box-sizing: border-box !important;
	padding: 0.72rem 0.85rem;
	border: 1px solid var(--rl-scorecard-border) !important;
	border-radius: var(--rl-scorecard-radius) !important;
	background: var(--rl-scorecard-white) !important;
	color: var(--rl-scorecard-ink) !important;
	font: inherit;
	line-height: 1.35;
	box-shadow: none !important;
}
body.rl-scorecard-page .gform_wrapper textarea {
	min-height: 9.5rem;
	resize: vertical;
}
body.rl-scorecard-page .gform_wrapper :where(
	input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
	select,
	textarea
):focus {
	border-color: var(--rl-scorecard-teal) !important;
	outline: 3px solid color-mix(in srgb, var(--rl-scorecard-teal) 24%, transparent);
	outline-offset: 1px;
}
body.rl-scorecard-page .gform_wrapper .ginput_complex {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 1.25rem;
	width: 100%;
	max-width: 100%;
}
body.rl-scorecard-page .gform_wrapper .ginput_complex > span {
	min-width: 0;
	padding: 0 !important;
	margin: 0 !important;
}
body.rl-scorecard-page .gform_wrapper .ginput_complex > span > label {
	display: block;
	margin-top: 0.35rem;
	color: var(--rl-scorecard-muted);
	font-size: 0.82rem;
}
body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-rating {
	padding: clamp(1rem, 2.4vw, 1.45rem);
	border: 1px solid var(--rl-scorecard-border);
	border-radius: var(--rl-scorecard-card-radius);
	background: var(--rl-scorecard-white);
}
body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-rating :where(.gfield_label, .gform-field-label) {
	margin-bottom: 0.3rem;
	font-size: clamp(1.04rem, 1rem + 0.18vw, 1.14rem);
	font-weight: 700;
}
body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-rating .gfield_description {
	width: 100%;
	max-width: none !important;
	margin-top: 0.15rem;
	color: var(--rl-scorecard-ink);
	font-size: 0.94rem;
}
body.rl-scorecard-page .gform_wrapper .gfield_radio {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 0.55rem !important;
	width: 100%;
	margin: 1rem 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
body.rl-scorecard-page .gform_wrapper .gfield_radio > :where(.gchoice, li) {
	position: relative;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}
body.rl-scorecard-page .gform_wrapper .gfield_radio input[type="radio"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
body.rl-scorecard-page .gform_wrapper .gfield_radio label {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: none !important;
	min-height: 48px;
	margin: 0 !important;
	padding: 0.6rem 0.35rem;
	border: 1px solid var(--rl-scorecard-border);
	border-radius: var(--rl-scorecard-radius);
	background: var(--rl-scorecard-white);
	color: var(--rl-scorecard-ink);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
body.rl-scorecard-page .gform_wrapper .gfield_radio label:hover {
	border-color: var(--rl-scorecard-teal);
	background: var(--rl-scorecard-bone);
}
body.rl-scorecard-page .gform_wrapper .gfield_radio input[type="radio"]:checked + label {
	border-color: var(--rl-scorecard-ink);
	background: var(--rl-scorecard-ink);
	color: var(--rl-scorecard-white);
}
body.rl-scorecard-page .gform_wrapper .gfield_radio input[type="radio"]:focus-visible + label {
	outline: 3px solid var(--rl-scorecard-teal);
	outline-offset: 2px;
}
body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-total {
	margin-top: 0.15rem !important;
	padding-top: 1.25rem;
	border-top: 2px solid var(--rl-scorecard-ink);
}
body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-total :where(.gfield_label, .gform-field-label) {
	font-size: 1.1rem;
	font-weight: 700;
}
body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-total :where(input, .ginput_container input) {
	max-width: 10rem !important;
	font-size: 1.3rem;
	font-weight: 700;
}
body.rl-scorecard-page .gform_wrapper .gform_footer,
body.rl-scorecard-page .gform_wrapper .gform_page_footer {
	margin-top: 1.6rem !important;
	padding: 0 !important;
}
body.rl-scorecard-page .gform_wrapper :where(input[type="submit"], button[type="submit"], .gform_button) {
	min-height: 50px;
	padding: 0.8rem 1.55rem !important;
	border: 1px solid var(--rl-scorecard-teal) !important;
	border-radius: var(--rl-scorecard-radius) !important;
	background: var(--rl-scorecard-teal) !important;
	color: var(--rl-scorecard-white) !important;
	font: inherit;
	font-weight: 700 !important;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none !important;
	transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
body.rl-scorecard-page .gform_wrapper :where(input[type="submit"], button[type="submit"], .gform_button):hover {
	border-color: var(--rl-scorecard-ink) !important;
	background: var(--rl-scorecard-ink) !important;
}
body.rl-scorecard-page .gform_wrapper :where(input[type="submit"], button[type="submit"], .gform_button):focus-visible {
	outline: 3px solid var(--rl-scorecard-teal);
	outline-offset: 3px;
}
body.rl-scorecard-page .gform_wrapper :where(.gfield_error, .gform_validation_errors) {
	border-color: var(--rl-scorecard-red);
}
body.rl-scorecard-page .gform_wrapper :where(.validation_message, .gfield_validation_message, .gform_submission_error) {
	color: var(--rl-scorecard-red) !important;
}
body.rl-scorecard-page .gform_wrapper .gfield_error :where(
	input:not([type="checkbox"]):not([type="radio"]),
	select,
	textarea
) {
	border-color: var(--rl-scorecard-red) !important;
}
@media (max-width: 720px) {
	body.rl-scorecard-page .gform_wrapper .gform_fields {
		grid-template-columns: minmax(0, 1fr) !important;
	}
	body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-half,
	body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-full,
	body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-rating,
	body.rl-scorecard-page .gform_wrapper .gfield.rl-scorecard-total {
		grid-column: 1 / -1 !important;
	}
}
@media (max-width: 520px) {
	body.rl-scorecard-page .gform_wrapper {
		padding: 1rem;
		border-radius: 12px;
	}
	body.rl-scorecard-page .gform_wrapper .ginput_complex {
		grid-template-columns: minmax(0, 1fr);
	}
	body.rl-scorecard-page .gform_wrapper .gfield_radio {
		gap: 0.35rem !important;
	}
	body.rl-scorecard-page .gform_wrapper .gfield_radio label {
		min-height: 48px;
		padding-inline: 0.2rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	body.rl-scorecard-page .gform_wrapper .gfield_radio label,
	body.rl-scorecard-page .gform_wrapper :where(input[type="submit"], button[type="submit"], .gform_button) {
		transition: none;
	}
}
/* Delivery System Scorecard assessment-state treatment.
 * Brand Deep Red indicates hover/focus/selection, matching the AI Readiness
 * assessment while remaining scoped to the Delivery page only. */
body.rl-delivery-scorecard-page .gform_wrapper .gfield_radio label:hover {
	border-color: var(--rl-scorecard-red);
}

body.rl-delivery-scorecard-page .gform_wrapper .gfield_radio input[type="radio"]:checked + label {
	border-color: var(--rl-scorecard-red);
	background: var(--rl-scorecard-red);
	color: var(--rl-scorecard-white);
}

body.rl-delivery-scorecard-page .gform_wrapper .gfield_radio input[type="radio"]:focus-visible + label {
	outline-color: var(--rl-scorecard-red);
}

