/**
 * Community page template.
 * Reuses the homepage primitives (.vrg-stats, .vrg-listings, .vrg-communities) so the
 * 12 area pages stay visually identical to the rest of the site.
 */

.vrg-chero {
	background: var(--vrg-color-primary);
	padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.vrg-chero__title {
	font-family: var(--vrg-font-display);
	color: var(--vrg-color-surface);
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	line-height: 1.08;
	margin: 0 0 0.75rem;
}

.vrg-chero__sub {
	color: color-mix(in srgb, var(--vrg-color-surface) 88%, transparent);
	font-size: 1.0625rem;
	max-width: 46rem;
}

/* --- Local content ------------------------------------------------------- */
.vrg-clocal__copy h3 {
	font-size: 1.25rem;
	margin-top: 2rem;
}

.vrg-clocal__copy p {
	max-width: var(--vrg-measure);
}

/* --- Quick facts sidebar -------------------------------------------------- */
.vrg-cfacts {
	background: color-mix(in srgb, var(--vrg-color-primary-light) 16%, var(--vrg-color-surface));
	border-radius: var(--vrg-radius);
	padding: 1.75rem;
	position: sticky;
	top: 2rem;
}

.vrg-cfacts .vrg-footer__heading {
	color: var(--vrg-color-violet-text);
	margin-top: 0;
}

.vrg-cfacts dl {
	margin: 0;
}

.vrg-cfacts dt {
	font-family: var(--vrg-font-eyebrow);
	text-transform: uppercase;
	letter-spacing: var(--vrg-tracking-eyebrow);
	font-size: 0.75rem;
	color: var(--vrg-color-muted);
	margin-top: 1rem;
}

.vrg-cfacts dd {
	margin: 0.15rem 0 0;
	font-size: 1rem;
	color: var(--vrg-color-ink);
}

/* --- Nearby areas --------------------------------------------------------- */
.vrg-cnear h2 {
	margin-bottom: 1.25rem;
}

@media (max-width: 980px) {
	.vrg-cfacts { position: static; margin-top: 2rem; }
}

/* --- Interior pages ------------------------------------------------------- */

/* Link cards (Buy hub) */
.vrg-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.25rem;
}

.vrg-card {
	display: block;
	text-decoration: none;
	padding: 1.5rem;
	border: 1px solid color-mix(in srgb, var(--vrg-color-primary-light) 35%, transparent);
	border-radius: var(--vrg-radius);
	background: var(--vrg-color-surface);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.vrg-card:hover {
	border-color: var(--vrg-color-primary-light);
	transform: translateY(-2px);
}

.vrg-card h3 {
	margin: 0 0 0.35rem;
	font-size: 1.125rem;
}

.vrg-card p {
	margin: 0;
	color: var(--vrg-color-muted);
	font-size: 0.9375rem;
}

/* Numbered process steps */
.vrg-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
	counter-reset: vrg-step;
}

.vrg-step {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid color-mix(in srgb, var(--vrg-color-muted) 22%, transparent);
}

.vrg-step:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.vrg-step__num {
	font-family: var(--vrg-font-display);
	font-size: 1.5rem;
	color: var(--vrg-color-primary-light);
	line-height: 1;
	min-width: 2.5rem;
}

.vrg-step h3 {
	margin: 0 0 0.35rem;
	font-size: 1.125rem;
}

.vrg-step p {
	margin: 0;
	color: var(--vrg-color-muted);
}

/* Form / IDX placeholder panels */
.vrg-idx-slot--panel,
.vrg-formslot {
	background: color-mix(in srgb, var(--vrg-color-primary-light) 12%, var(--vrg-color-surface));
	border: 1px dashed color-mix(in srgb, var(--vrg-color-primary-light) 55%, transparent);
	border-radius: var(--vrg-radius);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	min-height: 9rem;
}

.vrg-formslot h2 {
	margin-top: 0;
}

.vrg-contact p {
	margin-bottom: 1rem;
}

.vrg-contact strong {
	font-family: var(--vrg-font-eyebrow);
	text-transform: uppercase;
	letter-spacing: var(--vrg-tracking-eyebrow);
	font-size: 0.8125rem;
	color: var(--vrg-color-violet-text);
}

/* The IDX placeholder panel has a light background, but inside the dark hero its note text
   inherits the near-white dark-section colour — 1.08:1. Give the panel a dark-section skin. */
.vrg-section--dark .vrg-idx-slot--panel,
.vrg-hero .vrg-idx-slot--panel {
	background: color-mix(in srgb, var(--vrg-color-surface) 10%, transparent);
	border-color: color-mix(in srgb, var(--vrg-color-surface) 45%, transparent);
}

.vrg-section--dark .vrg-idx-slot--panel code,
.vrg-hero .vrg-idx-slot--panel code {
	color: var(--vrg-color-accent);
	background: transparent;
}

/* On light backgrounds the note must stay muted, not near-white. */
.vrg-section:not(.vrg-section--dark) .vrg-idx-slot--panel .vrg-idx-slot__note {
	color: var(--vrg-color-muted);
}

/* Area listings call-to-action (replaces the account-wide featured widget). */
.vrg-idx-cta__title {
	margin-top: 0;
	font-size: 1.5rem;
}

.vrg-idx-cta {
	margin-bottom: 0;
}

.vrg-idx-cta .vrg-button {
	display: inline-block;
	text-decoration: none;
}
