/*
 * Spidey SGB Content — base layer for the "SGB Content" Elementor widget.
 * Kept deliberately thin: sensible defaults only, every visual choice is an
 * Elementor control (those selectors are more specific and win).
 */

.sgb-content {
	--sgb-bullet-size: 1em;
	--sgb-bullet-gap: 0.6em;
	--sgb-bullet-offset: 0.2em;
	overflow-wrap: break-word;
}

.sgb-content > :first-child {
	margin-top: 0;
}

.sgb-content > :last-child {
	margin-bottom: 0;
}

/* Images: SGB wraps each in <figure class="sgb-inline-image"> with an
   optional <picture> (avif/webp sources) around the <img>. */
.sgb-content figure {
	margin: 1.5em 0;
	max-width: 100%;
}

.sgb-content img {
	display: block;
	max-width: 100%;
	height: auto;
	box-sizing: border-box;
}

.sgb-content picture {
	display: contents;
}

.sgb-content figcaption {
	margin-top: 0.5em;
}

/* Custom bullet icon (Bullet Points → Bullet style: Icon). The widget adds
   .sgb-c-icon-list to each <ul> and a .sgb-c-bullet span to each <li>. */
.sgb-content ul.sgb-c-icon-list {
	list-style: none;
	padding-left: 0;
}

.sgb-content ul.sgb-c-icon-list > li {
	position: relative;
	padding-left: calc(var(--sgb-bullet-size) + var(--sgb-bullet-gap));
}

.sgb-content .sgb-c-bullet {
	position: absolute;
	left: 0;
	top: var(--sgb-bullet-offset);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--sgb-bullet-size);
	height: var(--sgb-bullet-size);
	font-size: var(--sgb-bullet-size);
	line-height: 1;
}

.sgb-content .sgb-c-bullet svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Editor-only notice shown above sample content. */
.sgb-content-notice {
	margin: 0 0 1em;
	padding: 0.6em 0.9em;
	border-left: 3px solid #93003c;
	background: #f7f2f4;
	color: #444;
	font: 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
