/* Reliance Advisory — Purpose Venn Diagram widget */
.rav-venn {
	--rav-navy: #13294b;
	--rav-gold: #b8892b;
	--rav-a: #3e6b9f;        /* Mission ring */
	--rav-b: #1a8f8c;        /* Vision ring */
	--rav-circle-fill: rgba(255, 255, 255, 0.55);
	--rav-lens-fill: rgba(26, 143, 140, 0.10);
	--rav-lens-stroke: rgba(26, 143, 140, 0.45);
	--rav-decor-a: rgba(62, 107, 159, 0.22);
	--rav-decor-b: rgba(26, 143, 140, 0.22);
	--rav-ring-width: 2.5;
	--rav-max: 1120px;
	--rav-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;

	color: var(--rav-navy);
	text-align: center;
}

/* ---------- Header ---------- */
.rav-venn__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 auto 40px;
	max-width: var(--rav-max);
}
.rav-venn__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	width: 100%;
	margin: 0 0 14px;
	white-space: nowrap;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--rav-navy);
}
.rav-venn__eyebrow::before,
.rav-venn__eyebrow::after {
	content: "";
	flex: 0 1 110px;
	min-width: 24px;
	height: 1.5px;
	background: var(--rav-gold);
}
.rav-venn__heading {
	margin: 0;
	font-family: var(--rav-serif);
	font-weight: 700;
	font-size: clamp(30px, 4vw, 54px);
	line-height: 1.15;
	color: var(--rav-navy);
}
.rav-venn__rule {
	display: block;
	width: 64px;
	height: 3px;
	margin: 16px auto 0;
	background: var(--rav-gold);
	border-radius: 2px;
}
.rav-venn__rule--heading { width: 120px; margin-top: 22px; }

/* ---------- Diagram ---------- */
.rav-venn__diagram {
	container-type: inline-size;
	max-width: var(--rav-max);
	margin: 0 auto;
}
.rav-venn__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1042 / 612;

	/* Text placement in % of the stage (horizontal layout) */
	--ax: 29.4%; --ay: 50%; --aw: 23.5%;
	--bx: 70.6%; --by: 50%; --bw: 23.5%;
	--cx: 50%;   --cy: 50%; --cw: 14.6%;

	font-size: clamp(13px, 1.72cqi, 20px);
}
.rav-venn__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}
.rav-venn__svg--v { display: none; }

.rav-venn__fill { fill: var(--rav-circle-fill); }
.rav-venn__lens {
	fill: var(--rav-lens-fill);
	stroke: var(--rav-lens-stroke);
	stroke-width: 1.5;
}
.rav-venn__ring {
	fill: none;
	stroke-width: var(--rav-ring-width);
	vector-effect: non-scaling-stroke;
}
.rav-venn__ring--a { stroke: var(--rav-a); }
.rav-venn__ring--b { stroke: var(--rav-b); }

.rav-venn__decor { fill: none; stroke-width: 1; }
.rav-venn__decor--a { stroke: var(--rav-decor-a); }
.rav-venn__decor--b { stroke: var(--rav-decor-b); }
.rav-venn__decor .rav-ticks { stroke-width: 12; stroke-dasharray: 1 7; opacity: 0.8; }
.rav-venn__decor .rav-dash { stroke-dasharray: 2 6; }
.rav-venn__decor .rav-bracket { stroke-width: 2; opacity: 0.9; }

/* ---------- Text overlays ---------- */
.rav-venn__text {
	position: absolute;
	transform: translate(-50%, -50%);
	z-index: 1;
}
.rav-venn__text--a { left: var(--ax); top: var(--ay); width: var(--aw); }
.rav-venn__text--b { left: var(--bx); top: var(--by); width: var(--bw); }
.rav-venn__text--center { left: var(--cx); top: var(--cy); width: var(--cw); }

.rav-venn__title {
	margin: 0;
	font-family: var(--rav-serif);
	font-weight: 500;
	font-size: 2.15em;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.1;
	color: var(--rav-navy);
}
.rav-venn__text .rav-venn__rule { width: 4.2em; height: 2px; margin: 0.75em auto 1.1em; }
.rav-venn__body {
	margin: 0;
	font-size: 1em;
	line-height: 1.45;
	color: var(--rav-navy);
}
.rav-venn__center {
	margin: 0;
	font-family: var(--rav-serif);
	font-style: italic;
	font-weight: 500;
	font-size: 1.55em;
	line-height: 1.2;
	color: var(--rav-navy);
}
.rav-venn__text--center .rav-venn__rule { width: 3.4em; height: 2px; margin: 0.9em auto 0; }

/* ---------- Stacked layout for narrow containers ---------- */
@container (max-width: 640px) {
	.rav-venn__stage {
		aspect-ratio: 612 / 1072;
		--ax: 50%;  --ay: 27.8%;  --aw: 66%;
		--bx: 50%;  --by: 72.2%;  --bw: 66%;
		--cx: 50%;  --cy: 50%;    --cw: 62%;
		font-size: clamp(12.5px, 4.1cqi, 17px);
	}
	.rav-venn__svg--h { display: none; }
	.rav-venn__svg--v { display: block; }
	.rav-venn__title { font-size: 1.9em; }
	.rav-venn__text .rav-venn__rule { margin: 0.6em auto 0.85em; }
	.rav-venn__center { font-size: 1.35em; }
	.rav-venn__text--center .rav-venn__rule { margin-top: 0.5em; }
	.rav-venn__eyebrow { gap: 12px; font-size: 13px; }
}
