/**
 * Solar Core — shared page shell.
 *
 * Site-wide design foundation that keeps every page (shortcode "tool" pages and
 * plain CMS/content pages) visually consistent with the homepage hero + footer.
 * Loaded on all front-end views. Page-specific component CSS still lives in each
 * page's own stylesheet; this file only owns brand tokens + the content-area shell.
 */

:root {
	--sol-teal: #0f766e;
	--sol-teal-dark: #0b5f59;
	--sol-teal-soft: #e6f2f0;
	--sol-green: #16a34a;
	--sol-amber: #f59e0b;
	--sol-amber-strong: #d97706;
	--sol-navy: #0a1a2f;
	--sol-ink: #0f172a;
	--sol-text: #1e293b;
	--sol-muted: #64748b;
	--sol-line: #e2e8f0;
	--sol-line-soft: #eef2f6;
	--sol-soft: #f8fafc;
	--sol-soft-2: #f1f5f9;
	--sol-white: #ffffff;
	--sol-radius-sm: 10px;
	--sol-radius: 14px;
	--sol-radius-lg: 20px;
	--sol-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
	--sol-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
	--sol-shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
	--sol-container: 1120px;
}

/* ---------------------------------------------------------------------------
 * Tool pages — the shortcode provides its own hero heading, so suppress the
 * theme's duplicate page title and tighten the content-area rhythm.
 * ------------------------------------------------------------------------- */
.solar-tool-page .entry-header,
.solar-tool-page .ast-single-entry-banner {
	display: none;
}

.solar-tool-page #primary,
.solar-cms-page #primary {
	padding-top: 2.25rem;
	padding-bottom: 2.75rem;
}

.solar-tool-page .entry-content,
.solar-tool-page .ast-container > article,
.solar-tool-page .site-content .ast-container {
	margin-top: 0;
}

/* Kill the default gap WordPress adds between stacked blocks/shortcodes so the
 * shortcode owns its own vertical spacing. */
.solar-tool-page .entry-content > * {
	margin-block: 0;
}

/* The theme styles `.entry-content a` (underline + link color) at a higher
 * specificity than the shortcode components. Tool pages use styled buttons and
 * chips rather than prose links, so neutralize the underline here; each
 * component sets its own colors with an `a`-qualified selector so they win. */
.solar-tool-page .entry-content a {
	text-decoration: none;
}

/* ---------------------------------------------------------------------------
 * CMS / content pages (FAQ, Privacy, Terms, etc.) — brand the theme title and
 * normalize long-form content typography so plain pages match the marketplace.
 * ------------------------------------------------------------------------- */
.solar-cms-page .entry-header {
	max-width: var(--sol-container);
	margin: 0 auto 1.75rem;
	padding: 1.75rem 1.25rem 1.5rem;
	border-bottom: 1px solid var(--sol-line);
}

.solar-cms-page .entry-title {
	font-size: clamp(1.9rem, 3.6vw, 2.6rem);
	line-height: 1.15;
	color: var(--sol-ink);
}

.solar-cms-page .entry-content {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 1.25rem;
	color: var(--sol-text);
	font-size: 1.02rem;
	line-height: 1.75;
}

.solar-cms-page .entry-content h2 {
	margin: 2.2rem 0 0.75rem;
	font-size: 1.5rem;
	line-height: 1.25;
	color: var(--sol-ink);
}

.solar-cms-page .entry-content h3 {
	margin: 1.8rem 0 0.6rem;
	font-size: 1.2rem;
	line-height: 1.3;
	color: var(--sol-ink);
}

.solar-cms-page .entry-content p {
	margin: 0 0 1.1rem;
}

.solar-cms-page .entry-content a {
	color: var(--sol-teal);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.solar-cms-page .entry-content a:hover,
.solar-cms-page .entry-content a:focus-visible {
	color: var(--sol-teal-dark);
}

.solar-cms-page .entry-content ul,
.solar-cms-page .entry-content ol {
	margin: 0 0 1.2rem;
	padding-left: 1.35rem;
}

.solar-cms-page .entry-content li {
	margin-bottom: 0.5rem;
}

.solar-cms-page .entry-content blockquote,
.solar-cms-page .entry-content .wp-block-quote {
	margin: 1.6rem 0;
	padding: 0.9rem 1.2rem;
	border: 0;
	border-left: 4px solid var(--sol-teal);
	background: var(--sol-soft-2);
	border-radius: 0 var(--sol-radius-sm) var(--sol-radius-sm) 0;
	color: var(--sol-text);
}
