/* =============================================================
   Feature — Split  (_feature-split.css)

   Two-column layout: rounded image left, text + CTA right.
   Scoped to .vsk-feature-split — loaded lazily via
   wp_enqueue_block_style() so it only ships when this block
   is present. Also loaded into the editor via add_editor_style().
   ============================================================= */

/* ── Section wrapper ────────────────────────────────────────── */

.vsk-feature-split {
	background-color: var(--sunken);
	padding-block: var(--wp--preset--spacing--50, 2.5rem);
}

/* ── Columns gap + vertical centering ───────────────────────── */

.vsk-feature-split__columns.wp-block-columns {
	gap: var(--wp--preset--spacing--50, 2.5rem) !important;
	align-items: center;
}

/* ── Image ───────────────────────────────────────────────────── */

.vsk-feature-split__image.wp-block-image {
	margin: 0 !important;
}

.vsk-feature-split__image.wp-block-image img {
	border-radius: 12px;
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* ── Heading ─────────────────────────────────────────────────── */

.vsk-feature-split__heading.wp-block-heading {
	color: var(--fg);
	font-size: clamp(1.25rem, 2.5vw, 1.875rem);
	font-weight: 700;
	line-height: 1.2;
	margin-block-end: 0.875rem !important;
}

/* ── Accent rule — short red horizontal line ─────────────────── */
/*
   WP separator defaults add opacity and a CSS height trick;
   all overridden here so we get a clean, fixed-width brand line.
*/

hr.vsk-feature-split__accent.wp-block-separator {
	border: none;
	border-top: 3px solid var(--accent);
	width: 3rem;
	max-width: 3rem;
	margin-inline: 0 !important;
	margin-block: 0 1.5rem !important;
	opacity: 1 !important;
	height: 0 !important;
}

/* ── Body text ───────────────────────────────────────────────── */

.vsk-feature-split__body {
	color: var(--fg-muted);
	line-height: 1.7;
	margin-block-end: 2rem !important;
}

/* ── CTA button ──────────────────────────────────────────────── */

.vsk-feature-split__cta .wp-block-button__link.wp-element-button {
	background-color: var(--accent);
	color: var(--fg-invert);
	border: 2px solid transparent;
	padding-block: 0.875rem;
	padding-inline: 2rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	border-radius: 4px;
	transition: background-color 0.18s ease, outline-offset 0.1s ease;
}

.vsk-feature-split__cta .wp-block-button__link.wp-element-button:hover {
	background-color: var(--accent-hover);
	color: var(--fg-invert);
}

.vsk-feature-split__cta .wp-block-button__link.wp-element-button:focus-visible {
	background-color: var(--accent-hover);
	color: var(--fg-invert);
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* ── Responsive ──────────────────────────────────────────────── */
/*
   WP stacks columns on mobile automatically; reduce the column gap
   so the stacked layout breathes without excess whitespace.
*/

@media (max-width: 599px) {
	.vsk-feature-split__columns.wp-block-columns {
		gap: var(--wp--preset--spacing--40, 1.5rem) !important;
	}
}
