/**
 * SITEWIDE RESPONSIVE LAYER
 * TJS 2026-03-14 — Created (extracted from cities-communities.css)
 *
 * Strategy:
 *   - clamp() for fluid typography and spacing (no breakpoint jumps)
 *   - @media ≤767px for layout-only changes (centering, stacking)
 *   - Applies to ALL pages/posts using sitewide classes
 *
 * Depends on: _variables.css (design tokens)
 */

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY — Fluid scaling with clamp()
   Desktop max → Mobile min, smooth in between
   ═══════════════════════════════════════════════════════════ */

/* H1 — Page title (breadcrumb bar) */
.breadcrumbs-h1-bar__title {
	font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
	line-height: 1.2;
}

/* H2 — Section headers */
.sitewide-page-content h2 {
	font-size: clamp(1.25rem, 0.9rem + 1.5vw, 1.75rem);
	line-height: 1.3;
}

/* H3 — Subsection headers */
.sitewide-page-content h3 {
	font-size: clamp(1.1rem, 0.85rem + 1vw, 1.5rem);
	line-height: 1.3;
}

/* H4 — Card subtitles, minor headings */
.sitewide-page-content h4 {
	font-size: clamp(1rem, 0.8rem + 0.75vw, 1.25rem);
	line-height: 1.3;
}

/* Body text and lists */
.sitewide-page-content p,
.sitewide-page-content li {
	font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.05rem);
	line-height: 1.65;
}

/* Breadcrumbs */
.breadcrumbs-h1-bar__trail,
.breadcrumbs-h1-bar__trail a {
	font-size: clamp(0.8rem, 0.75rem + 0.25vw, 1rem);
}


/* ═══════════════════════════════════════════════════════════
   SPACING — Fluid padding/margins
   ═══════════════════════════════════════════════════════════ */

/* Main content area — breathing room on small screens */
.sitewide-page-content {
	padding-left: clamp(1rem, 3vw, 2rem);
	padding-right: clamp(1rem, 3vw, 2rem);
}

/* Breadcrumb bar inner padding */
.breadcrumbs-h1-bar__content {
	padding: clamp(0.5rem, 1.5vw, 1rem) clamp(1rem, 3vw, 2rem);
}


/* ═══════════════════════════════════════════════════════════
   BUTTON — Sitewide CTA buttons
   ═══════════════════════════════════════════════════════════ */

.button-link-sitewide {
	font-size: clamp(0.7rem, 0.6rem + 0.5vw, 0.875rem);
	letter-spacing: clamp(1px, 0.1vw, 1.5px);
	padding: clamp(0.65rem, 1.5vw, 1rem) clamp(0.75rem, 2vw, 1.5rem);
}


/* ═══════════════════════════════════════════════════════════
   LAYOUT — Mobile-only adjustments (≤767px)
   clamp() handles everything else; this is for centering/stacking
   ═══════════════════════════════════════════════════════════ */

@media (width <= 767px) {
	/* Center the CTA button on small screens */
	.button-link-sitewide-wrap {
		text-align: center;
	}

	/* Section headings center on mobile */
	.sitewide-page-content h2 {
		text-align: center;
	}
}
