/**
 * Intelliguard Elements — Section Intro (canonical) widget styles.
 *
 * Consolidates the per-page intro blocks (Mira Prep, MCWS, MCCab, Careers,
 * About "Why"). Brand tokens are declared on the widget wrapper (.ig-si) so
 * the block is self-contained; values match assets/css/widgets.css.
 *
 * Prefix: ig-si-
 */

/* =========================================================================
   Wrapper + brand tokens
   ========================================================================= */
.ig-si {
	--ig-navy: hsl(225 70% 17%);
	--ig-navy-light: hsl(225 50% 30%);
	--ig-gold: hsl(38 91% 55%);
	--ig-gold-light: hsl(38 91% 70%);
	--ig-teal: hsl(174 60% 42%);
	--ig-background: var(--ig-surface, hsl(0 0% 100%));
	--ig-foreground: var(--ig-ink, hsl(225 70% 17%));
	--ig-muted: hsl(220 20% 96%);
	--ig-muted-soft: hsl(220 20% 96% / 0.6);
	--ig-muted-foreground: hsl(220 10% 46%);
	--ig-border: hsl(220 20% 90%);
	--ig-radius: 0.75rem;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	box-sizing: border-box;
	padding: clamp(3rem, 6vw, 5rem) 0;
	background: var(--ig-background);
}

.ig-si * {
	box-sizing: border-box;
}

/* Centered page container (matches Tailwind container: max 1400px, 2rem pad). */
.ig-si__container {
	width: 100%;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 2rem;
	padding-right: 2rem;
}

/* Panel is transparent by default; the muted/navy backgrounds style it. */
.ig-si__panel {
	border-radius: var(--ig-radius);
}

/* Centered content column; width is author-controlled (max_width control). */
.ig-si__inner {
	max-width: 56rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* =========================================================================
   Eyebrow (SectionLabel.tsx)
   ========================================================================= */
.ig-si__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ig-gold);
}

.ig-si__eyebrow-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.ig-si__eyebrow-icon svg,
.ig-si__eyebrow-icon i {
	width: 1em;
	height: 1em;
	font-size: 1.1em;
	color: currentColor;
	fill: currentColor;
}

/* =========================================================================
   Heading + body
   ========================================================================= */
.ig-si__heading {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 700;
	color: var(--ig-navy);
	line-height: 1.2;
	margin: 0 0 1.5rem;
}

.ig-si__body {
	color: var(--ig-muted-foreground);
	font-size: clamp(1rem, 2.2vw, 1.125rem);
	line-height: 1.7;
}

.ig-si__body p {
	margin: 0 0 1.25rem;
}

.ig-si__body p:last-child {
	margin-bottom: 0;
}

/* =========================================================================
   Background variants
   ========================================================================= */

/* Muted rounded panel (Careers "bg-muted/60 rounded-2xl"). */
.ig-si--bg-muted {
	padding: clamp(2.5rem, 5vw, 3rem) 0;
	background: var(--ig-background);
}

.ig-si--bg-muted .ig-si__panel {
	background: var(--ig-muted-soft);
	padding: 3rem 1.5rem;
}

/* Navy panel. */
.ig-si--bg-navy {
	background: var(--ig-background);
}

.ig-si--bg-navy .ig-si__panel {
	background: var(--ig-navy);
	padding: 3rem 1.5rem;
}

.ig-si--bg-navy .ig-si__heading {
	color: var(--ig-gold);
}

.ig-si--bg-navy .ig-si__body {
	color: rgba(255, 255, 255, 0.9);
}

.ig-si--bg-navy .ig-si__eyebrow {
	color: var(--ig-gold-light);
}

/* =========================================================================
   Responsive padding for the panel variants
   ========================================================================= */
@media (min-width: 768px) {
	.ig-si--bg-muted .ig-si__panel,
	.ig-si--bg-navy .ig-si__panel {
		padding: 4rem 3rem;
	}
}
