/*
 * Shared page banner — keep every RC surface (signup, rota, desk tools,
 * studio pages, online check-in) on the same blue card language.
 */
.rc-banner,
.rc-online__hero,
.rc-checkout__hero,
.rc-page__hero:not(.rc-home-hero),
.rc-rota__hero,
.rc-rota-skills__header,
.rc-volunteer-signup__header {
	position: relative;
	display: flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: clamp(0.75rem, 2.5vw, 1.5rem);
	margin: 0 0 1.25rem;
	padding: clamp(1.1rem, 4vw, 2.1rem) clamp(0.9rem, 3vw, 1.75rem) 1.35rem;
	border-radius: 16px;
	color: #fff;
	background: linear-gradient(
		135deg,
		var(--rc-primary-deep, #005a87) 0%,
		var(--rc-primary, #0693e3) 58%,
		var(--rc-primary-dark, #007cba) 100%
	);
	box-shadow: 0 14px 32px rgba(6, 147, 227, 0.16);
	overflow: hidden;
	box-sizing: border-box;
}

/* Text block — left; grows. Mark stays on the right. */
.rc-banner__body,
.rc-checkout__hero-inner,
.rc-online__hero-inner,
.rc-page__hero-inner,
.rc-rota__hero-inner,
.rc-rota-skills__body,
.rc-volunteer-signup__body {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-width: 0;
	max-width: none !important;
}

/* Square cafe icon — right hand side of every blue banner when set. */
.rc-banner__mark {
	position: relative !important;
	z-index: 2;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	bottom: auto !important;
	transform: none !important;
	flex: 0 0 auto;
	align-self: center;
	display: block;
	width: clamp(3.5rem, 11vw, 5.75rem) !important;
	height: clamp(3.5rem, 11vw, 5.75rem) !important;
	object-fit: contain;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.96);
	padding: 0.4rem;
	box-shadow: 0 6px 18px rgba(0, 60, 90, 0.22);
	pointer-events: none;
	order: 2;
}

.rc-banner__body,
.rc-checkout__hero-inner,
.rc-online__hero-inner,
.rc-page__hero-inner,
.rc-rota__hero-inner,
.rc-rota-skills__body,
.rc-volunteer-signup__body {
	order: 1;
}

@media (max-width: 480px) {
	.rc-banner__mark {
		width: 2.85rem !important;
		height: 2.85rem !important;
		border-radius: 10px;
		padding: 0.25rem;
	}
}

.rc-banner::after,
.rc-online__hero::after,
.rc-checkout__hero::after,
.rc-page__hero:not(.rc-home-hero)::after,
.rc-rota__hero::after,
.rc-rota-skills__header::after,
.rc-volunteer-signup__header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 5px;
	background: linear-gradient(
		90deg,
		var(--rc-accent, #ff6900),
		#fcb900,
		var(--rc-accent, #ff6900)
	);
}

.rc-banner__eyebrow,
.rc-online__eyebrow,
.rc-checkout__eyebrow,
.rc-page__eyebrow,
.rc-rota__eyebrow,
.rc-rota-skills__eyebrow,
.rc-volunteer-signup__eyebrow {
	position: relative;
	z-index: 1;
	margin: 0 0 0.4rem;
	padding: 0;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.72rem;
	font-weight: 700;
	opacity: 0.92;
	color: #fff;
	background: none;
	border-radius: 0;
}

.rc-banner__title,
.rc-online__title,
.rc-checkout__title,
.rc-page__title,
.rc-rota__title,
.rc-rota-skills__title,
.rc-volunteer-signup__title {
	position: relative;
	z-index: 1;
	margin: 0 0 0.55rem;
	font-size: clamp(1.35rem, 6vw, 2.15rem);
	line-height: 1.2;
	font-weight: 750;
	letter-spacing: -0.01em;
	color: #fff;
}

.rc-banner__sub,
.rc-online__subtitle,
.rc-checkout__subtitle,
.rc-page__sub,
.rc-rota__intro,
.rc-rota-skills__intro,
.rc-volunteer-signup__intro {
	position: relative;
	z-index: 1;
	margin: 0.15rem 0 0;
	max-width: 52rem;
	font-size: clamp(1.05rem, 3.2vw, 1.35rem);
	line-height: 1.35;
	font-weight: 650;
	color: #fff;
	opacity: 0.96;
}

.rc-banner__version,
.rc-online__version,
.rc-checkout__version {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0;
	font-size: 0.55em;
	font-weight: 500;
	opacity: 0.75;
	color: inherit;
	background: none;
	border: 0;
}

/* Volunteering studio page already has the shared banner — skip the nested one. */
.rc-page .rc-volunteer-signup__header {
	display: none;
}

.rc-schedule__list {
	list-style: disc;
	padding-left: 1.25rem;
	margin: 0.75rem 0 1rem;
}

.rc-schedule__item {
	margin: 0.35rem 0;
}

.rc-schedule__note {
	color: #555;
	font-style: italic;
}

.rc-map {
	width: 100%;
	margin: 1rem 0;
}

.rc-map__embed iframe,
.rc-map__iframe {
	display: block;
	width: 100%;
	height: var(--rc-map-height, 320px);
	border: 0;
	border-radius: 8px;
}

.rc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--rc-primary, #0693e3);
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	padding: 0.75rem 1.35rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
	min-height: 2.75rem;
	box-shadow: 0 1px 0 rgba(0, 90, 135, 0.12);
}

.rc-btn:hover {
	background: var(--rc-accent, #ff6900);
	color: #fff !important;
}

.rc-notice {
	padding: 0.8rem 1rem;
	border-radius: 12px;
	margin-bottom: 1rem;
	font-weight: 600;
}

.rc-notice--ok {
	background: #e8f6ee;
	color: #0d5c2e;
	border: 1px solid #b7e0c6;
}

.rc-notice--warn {
	background: #fff6e5;
	color: #7a4a00;
	border: 1px solid #f0d39a;
}

.rc-notice--err {
	background: #fdecea;
	color: #8a1f11;
	border: 1px solid #f0b4ab;
}

/* —— License banners —— */
.rc-license-banner {
	margin: 0 0 1.1rem;
	padding: 0.85rem 1.05rem;
	border-radius: 12px;
	font-size: 0.95rem;
	line-height: 1.4;
	font-weight: 500;
}

.rc-license-banner a {
	font-weight: 700;
	text-decoration: underline;
}

.rc-license-banner--info {
	background: #e8f6fd;
	color: #005a87;
	border: 1px solid #b7d8ea;
}

.rc-license-banner--warn {
	background: #fff6e5;
	color: #7a4a00;
	border: 1px solid #f0d39a;
}

.rc-license-banner--err {
	background: #fdecea;
	color: #8a1f11;
	border: 1px solid #f0b4ab;
}

.rc-license-locked {
	max-width: 40rem;
	margin: 1.5rem auto;
	padding: 1.25rem;
	font-family: "Figtree", "Segoe UI", system-ui, sans-serif;
}

/* —— Volunteer signup —— */
.entry-content:has(.rc-volunteer-signup-wrap),
.wp-block-post-content:has(.rc-volunteer-signup-wrap),
.entry-content:has(.rc-volunteer-signup-wrap).is-layout-constrained,
.wp-block-post-content:has(.rc-volunteer-signup-wrap).is-layout-constrained {
	max-width: none !important;
	width: 100% !important;
}

.rc-volunteer-signup-wrap {
	--rc-vs-blue: var(--rc-primary, #0693e3);
	--rc-vs-deep: var(--rc-primary-deep, #005a87);
	--rc-vs-accent: var(--rc-accent, #ff6900);
	--rc-vs-border: #cfe0ea;
	--rc-vs-soft: #e8f6fd;
	width: 100%;
	max-width: min(100%, 64rem);
	margin: 0 auto;
	padding: 0.5rem 0 2.5rem;
	font-family: "Figtree", "Segoe UI", system-ui, sans-serif;
	color: #14252e;
	box-sizing: border-box;
}

.rc-volunteer-signup-wrap *,
.rc-volunteer-signup-wrap *::before,
.rc-volunteer-signup-wrap *::after {
	box-sizing: border-box;
}

.rc-volunteer-signup--panel {
	margin: 0;
	padding: 1.35rem 1.25rem 1.5rem;
	border: 1px solid var(--rc-vs-border);
	border-radius: 18px;
	background:
		linear-gradient(165deg, #f4faff 0%, #ffffff 42%, #fffaf5 100%);
	box-shadow: 0 10px 28px rgba(0, 90, 135, 0.07);
}

@media (min-width: 640px) {
	.rc-volunteer-signup--panel {
		padding: 1.65rem 1.75rem 1.85rem;
	}
}

/* Header look comes from the shared .rc-banner rules above. */

.rc-volunteer-signup__block {
	margin: 0 0 1.15rem;
}

.rc-volunteer-signup__block-title {
	margin: 0 0 0.75rem;
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--rc-vs-deep);
}

.rc-volunteer-signup__fields {
	display: grid;
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.rc-volunteer-signup__fields {
		grid-template-columns: 1fr 1fr;
	}

	.rc-volunteer-signup__fields .rc-volunteer-signup__field:nth-child(3),
	.rc-volunteer-signup__fields .rc-volunteer-signup__field:nth-child(4) {
		grid-column: 1 / -1;
	}
}

.rc-volunteer-signup__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
	font-weight: 650;
	color: #1d3340;
}

.rc-volunteer-signup__field span {
	font-size: 0.9rem;
}

.rc-volunteer-signup__field input,
.rc-volunteer-signup__field textarea {
	width: 100%;
	max-width: none;
	min-height: 2.75rem;
	padding: 0.7rem 0.85rem;
	border: 1.5px solid var(--rc-vs-border);
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-weight: 500;
	color: #14252e;
	line-height: 1.35;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rc-volunteer-signup__field textarea {
	min-height: 5.5rem;
	resize: vertical;
}

.rc-volunteer-signup__field input:focus,
.rc-volunteer-signup__field textarea:focus {
	outline: none;
	border-color: var(--rc-vs-blue);
	box-shadow: 0 0 0 3px rgba(6, 147, 227, 0.18);
}

.rc-volunteer-signup__roles {
	padding: 1rem 1.05rem 1.1rem;
	border: 1px solid var(--rc-vs-border);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
}

.rc-volunteer-signup__hint {
	margin: 0 0 0.9rem;
	color: #4d6270;
	font-weight: 500;
	font-size: 0.92rem;
	line-height: 1.45;
}

.rc-volunteer-signup__group {
	margin: 0 0 1rem;
}

.rc-volunteer-signup__group:last-of-type {
	margin-bottom: 0.85rem;
}

.rc-volunteer-signup__group-title {
	margin: 0 0 0.55rem;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--rc-vs-deep);
}

.rc-volunteer-signup__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.55rem;
}

@media (min-width: 520px) {
	.rc-volunteer-signup__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 900px) {
	.rc-volunteer-signup__grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.rc-volunteer-signup__role {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0;
	padding: 0.7rem 0.8rem;
	border: 1.5px solid var(--rc-vs-border);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	font-weight: 650;
	line-height: 1.35;
	color: #1d3340;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.rc-volunteer-signup__role:hover,
.rc-volunteer-signup__role:focus-within {
	border-color: var(--rc-vs-blue);
	background: #f3f9fd;
	z-index: 3;
}

.rc-volunteer-signup__role input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rc-volunteer-signup__check {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.08rem;
	border: 2px solid #8aa4b4;
	border-radius: 6px;
	background: #fff;
	position: relative;
}

.rc-volunteer-signup__role:has(input:checked) {
	border-color: var(--rc-vs-blue);
	background: #eaf6fc;
	box-shadow: inset 0 0 0 1px rgba(6, 147, 227, 0.22);
}

.rc-volunteer-signup__role:has(input:checked) .rc-volunteer-signup__check {
	border-color: var(--rc-vs-blue);
	background: var(--rc-vs-blue);
}

.rc-volunteer-signup__role:has(input:checked) .rc-volunteer-signup__check::after {
	content: "";
	position: absolute;
	left: 0.28rem;
	top: 0.05rem;
	width: 0.28rem;
	height: 0.55rem;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.rc-volunteer-signup__role-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.rc-volunteer-signup__role-label {
	font-weight: 700;
}

.rc-volunteer-signup__role-tip {
	display: none;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.35;
	color: #4d6270;
}

.rc-volunteer-signup__role.has-tip:hover .rc-volunteer-signup__role-tip,
.rc-volunteer-signup__role.has-tip:focus-within .rc-volunteer-signup__role-tip {
	display: block;
}

@media (hover: none) {
	.rc-volunteer-signup__role-tip {
		display: block;
	}
}

.rc-volunteer-signup__captcha {
	margin: 0.35rem 0 1.25rem;
	padding: 1rem 1.05rem 1rem;
	border-radius: 14px;
	background: var(--rc-vs-soft);
	border: 1px solid var(--rc-vs-border);
}

.rc-volunteer-signup__captcha.is-invalid {
	border-color: #e35d4a;
	box-shadow: 0 0 0 3px rgba(227, 93, 74, 0.15);
}

.rc-volunteer-signup__captcha-title {
	margin: 0 0 0.2rem;
	font-weight: 800;
	color: var(--rc-vs-deep);
}

.rc-volunteer-signup__captcha-img {
	display: block;
	width: min(240px, 100%);
	height: auto;
	aspect-ratio: 240 / 72;
	margin: 0.45rem 0 0.75rem;
	border: 1.5px solid var(--rc-vs-blue);
	border-radius: 10px;
	background: #fff;
}

.rc-volunteer-signup__ghost {
	appearance: none;
	display: inline-flex;
	align-items: center;
	min-height: 2.4rem;
	margin: 0 0 0.85rem;
	padding: 0.4rem 0.9rem;
	border: 1.5px solid var(--rc-vs-blue);
	border-radius: 999px;
	background: #fff;
	color: var(--rc-vs-deep);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.rc-volunteer-signup__ghost:hover {
	background: #fff;
	border-color: var(--rc-vs-accent);
	color: var(--rc-vs-accent);
}

.rc-volunteer-signup__captcha .rc-volunteer-signup__field input {
	max-width: 16rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 1.15rem;
	font-weight: 700;
}

.rc-volunteer-signup__hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rc-volunteer-signup__actions {
	margin-top: 0.25rem;
}

.rc-volunteer-signup__actions .rc-btn {
	width: 100%;
}

@media (min-width: 520px) {
	.rc-volunteer-signup__actions .rc-btn {
		width: auto;
		min-width: 14rem;
	}
}

.rc-volunteer-signup--done {
	font-weight: 600;
	color: #1d3340;
}

.rc-volunteer-signup--done p {
	margin: 0;
	line-height: 1.45;
}
