/**
 * Nera – Responsible Play
 * Plugin stylesheet for .nera-rp-* components.
 *
 * Uses CSS custom properties with literal fallbacks so the stylesheet works on
 * pages where the theme's Tailwind build has not been loaded.
 *
 * Token reference (defined by nera-competitions-standard theme):
 *   --color-primary          default #1313ec
 *   --color-primary-dark     default #0d0da8
 *   --color-background-dark  default #101022
 *   --color-text-secondary   default #64748b
 *   --color-surface          default #fff
 *   --color-gray-200         default #e5e7eb
 *
 * DO NOT use Tailwind utility classes here — this is a plugin stylesheet
 * compiled independently of the theme's Vite/Tailwind build.
 */

/* =============================================================================
   Footer strip — sitewide support lifeline (below theme footer)
   ============================================================================= */

.nera-rp-footer-strip {
	width: 100%;
	background: var(--color-background-dark, #101022);
	border-top: 1px solid var(--color-gray-200, #e5e7eb);
}

.nera-rp-footer-strip__inner {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0.75rem 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 0.875rem;
}

.nera-rp-footer-strip__icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	color: var(--color-primary, #1313ec);
}

.nera-rp-footer-strip__text {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
}

.nera-rp-footer-strip__link {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.95rem;
	border-radius: 9999px;
	background: var(--color-primary, #1313ec);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.nera-rp-footer-strip__link:hover,
.nera-rp-footer-strip__link:focus-visible {
	background: var(--color-primary-dark, #0d0da8);
	color: #fff;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #1313ec) 35%, transparent);
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.nera-rp-footer-strip__link {
		transition: none;
	}
}

@media (max-width: 480px) {
	.nera-rp-footer-strip__inner {
		padding-top: 0.875rem;
		padding-bottom: 0.875rem;
		gap: 0.625rem;
	}

	.nera-rp-footer-strip__text {
		flex: 1 1 100%;
		text-align: center;
	}

	.nera-rp-footer-strip__link {
		width: 100%;
		justify-content: center;
	}
}

/* =============================================================================
   Services directory (page / block / shortcode)
   ============================================================================= */

.nera-rp-directory {
	max-width: 48rem;
}

.nera-rp-directory__intro {
	margin-bottom: 1.5rem;
	color: var(--color-text-secondary, #64748b);
	line-height: 1.7;
}

.nera-rp-directory__heading {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.nera-rp-directory__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.nera-rp-directory__item {
	background: var(--color-surface, #fff);
	border: 1px solid var(--color-gray-200, #e5e7eb);
	border-radius: 0.5rem;
	padding: 1rem 1.25rem;
}

.nera-rp-directory__name {
	display: block;
	font-weight: 600;
	margin-bottom: 0.125rem;
}

.nera-rp-directory__blurb {
	font-size: 0.875rem;
	color: var(--color-text-secondary, #64748b);
}

.nera-rp-directory__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-top: 0.5rem;
	font-size: 0.875rem;
}

.nera-rp-directory__phone,
.nera-rp-directory__link {
	color: var(--color-primary, #1313ec);
	text-decoration: none;
}

.nera-rp-directory__phone:hover,
.nera-rp-directory__phone:focus,
.nera-rp-directory__link:hover,
.nera-rp-directory__link:focus {
	color: var(--color-primary-dark, #0d0da8);
	text-decoration: underline;
}

/* =============================================================================
   Checkout signpost (clause 1.4)
   ============================================================================= */

#nera-rp-checkout-signpost {
	/* Wrapper keeps the AJAX fragment selector stable.
	   Visibility toggled by render_signpost() / fragment(). */
}

.nera-rp-checkout-signpost {
	margin: 1rem 0;
	padding: 0.875rem 1rem;
	background: var(--color-surface, #fff);
	border: 1px solid var(--color-gray-200, #e5e7eb);
	border-left: 4px solid var(--color-primary, #1313ec);
	border-radius: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--color-text-secondary, #64748b);
}

.nera-rp-checkout-signpost a {
	color: var(--color-primary, #1313ec);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nera-rp-checkout-signpost a:hover,
.nera-rp-checkout-signpost a:focus {
	color: var(--color-primary-dark, #0d0da8);
}
