/**
 * Design tokens & UI polish (Start-Site corporate theme).
 * Loads after style.css; uses --site-main-color from ACF (inline in inc/design-system.php).
 */

/* —— Typography & base text —— */
body {
	color: var(--ss-text, #272727);
}

main#main-content,
.news_archive,
.single_post .main_style_single {
	color: var(--ss-text, #272727);
}

main a:not(.button):not(.btn):not(.open-popup):hover,
.news_info h2 a:hover {
	color: var(--site-main-color, #1420b2);
}

/* —— Section eyebrow (skill pattern) —— */
.home-seo .small-text {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #918e8e;
}

.home-seo .title-h2 {
	color: var(--ss-text, #272727);
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	line-height: 1.2;
	margin-bottom: 16px;
}

.home-seo .bodysite {
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	line-height: 1.65;
	color: var(--ss-text-muted, #5c5757);
}

.home-seo .bodysite a {
	color: var(--site-main-color, #1420b2);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.home-seo .bodysite a:hover {
	text-decoration-thickness: 2px;
}

/* —— Home SEO block —— */
.home-seo.section-flex {
	padding: clamp(48px, 8vw, 80px) 20px;
	background: var(--ss-surface, #f6f6f6);
	border-top: 1px solid var(--ss-border, #eaeaea);
}

.home-seo-lead p {
	max-width: 62ch;
}

.home-seo-faq-title {
	margin: 2.5rem 0 1rem;
	font-size: clamp(1.125rem, 2vw, 1.35rem);
	color: var(--ss-text, #272727);
}

.home-seo-faq {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 820px;
}

.home-seo-faq-item {
	margin: 0;
	padding: 0;
	border: 1px solid var(--ss-border, #eaeaea);
	border-radius: var(--ss-radius-lg, 18px);
	background: #fff;
	box-shadow: var(--ss-shadow-sm, 0 4px 14px rgba(39, 39, 39, 0.06));
	border-bottom: none;
	overflow: hidden;
}

.home-seo-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.45;
	padding: 16px 20px;
	list-style: none;
	color: var(--ss-text, #272727);
}

.home-seo-faq-item summary::-webkit-details-marker {
	display: none;
}

.home-seo-faq-item summary::after {
	content: "+";
	float: right;
	font-weight: 400;
	color: var(--site-main-color, #1420b2);
}

.home-seo-faq-item[open] summary::after {
	content: "−";
}

.home-seo-faq-item p {
	margin: 0;
	padding: 0 20px 18px;
	color: var(--ss-text-muted, #5c5757);
	line-height: 1.6;
	font-size: 0.975rem;
}

/* —— Blog archive —— */
.news_archive .page_title.black {
	margin-bottom: 12px;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	color: var(--ss-text, #272727);
}

.archive-intro {
	max-width: 62ch;
	margin: 0 0 2rem;
	padding: 16px 20px;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ss-text-muted, #5c5757);
	background: #fff;
	border: 1px solid var(--ss-border, #eaeaea);
	border-radius: var(--ss-radius-lg, 18px);
	box-shadow: var(--ss-shadow-sm, 0 4px 14px rgba(39, 39, 39, 0.06));
}

.news_list {
	gap: 20px;
}

.news_item {
	gap: 24px;
	padding: 20px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--ss-border, #eaeaea);
	border-radius: var(--ss-radius-xl, 24px);
	box-shadow: var(--ss-shadow-sm, 0 4px 14px rgba(39, 39, 39, 0.06));
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.news_item:hover {
	box-shadow: var(--ss-shadow-md, 0 12px 32px rgba(39, 39, 39, 0.08));
	border-color: color-mix(in srgb, var(--site-main-color, #1420b2) 25%, #eaeaea);
}

.news_thumb {
	flex: 0 1 280px;
	max-width: 320px;
}

.news_thumb img {
	border-radius: 14px;
}

.news_info {
	flex: 1 1 280px;
	color: var(--ss-text-muted, #5c5757);
	font-weight: 400;
}

.news_info h2 {
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	margin-bottom: 12px;
	color: var(--ss-text, #272727);
}

.news_info h2 a {
	color: inherit;
	text-decoration: none;
}

.news_info h2 a:hover {
	color: var(--site-main-color, #1420b2);
}

.news_info p {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ss-text-muted, #5c5757);
}

/* —— Single post content —— */
.single_post .post_content,
.single_post .news_text,
.main_style_single .entry-content {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--ss-text, #272727);
}

.single_post .post_content a,
.main_style_single .entry-content a {
	color: var(--site-main-color, #1420b2);
}

.single_post .post_navigation {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: space-between;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ss-border, #eaeaea);
	font-size: 0.95rem;
}

.single_post .nav_prev,
.single_post .nav_next {
	color: var(--site-main-color, #1420b2);
	text-decoration: none;
	max-width: 46%;
	line-height: 1.4;
}

.single_post .nav_prev:hover,
.single_post .nav_next:hover {
	text-decoration: underline;
}

/* —— Blockquotes (replace purple “AI” accent) —— */
blockquote {
	background: var(--ss-surface, #f6f6f6);
	border-left-color: var(--site-main-color, #1420b2);
	color: var(--ss-text, #272727);
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	box-shadow: var(--ss-shadow-sm, 0 4px 14px rgba(39, 39, 39, 0.06));
}

blockquote p::before,
blockquote p::after {
	color: color-mix(in srgb, var(--site-main-color, #1420b2) 18%, transparent);
}

blockquote cite {
	color: var(--site-main-color, #1420b2);
}

blockquote:hover {
	border-left-color: var(--site-main-color, #1420b2);
}

/* —— Inner pages: other header template —— */
.container.other_page,
.container.single_news.other_page {
	padding-top: clamp(24px, 4vw, 48px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

@media (max-width: 768px) {
	.news_item {
		flex-direction: column;
		padding: 16px;
	}

	.news_thumb {
		flex: 1 1 auto;
		max-width: 100%;
		width: 100%;
	}

	.home-seo.section-flex {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.single_post .nav_prev,
	.single_post .nav_next {
		max-width: 100%;
	}
}
