/* Interactive Body Chart - viewer styles v3.3.6. Instance-scoped, no global IDs. */
.ibca {
	--ibca-fill: #e53935; --ibca-fill-o: 0; --ibca-hover: #e53935; --ibca-hover-o: .45;
	--ibca-active: #b71c1c; --ibca-active-o: .7; --ibca-stroke: #e53935; --ibca-stroke-w: 1.5; --ibca-stroke-o: 0;
	--ibca-tip-bg: #fff; --ibca-tip-text: #1f2933; --ibca-bg: transparent; --ibca-accent: #1e6fd9; --ibca-accent-text: #fff;
	--ibca-font: inherit;
	position: relative;
	font-family: var(--ibca-font);
	background: var(--ibca-bg);
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}
.ibca *, .ibca *::before, .ibca *::after { box-sizing: border-box; }
.ibca__frame { width: 100%; margin: 0 auto; display: flex; flex-direction: column; }
.ibca[data-align="left"] .ibca__frame { margin-left: 0; }
.ibca[data-align="right"] .ibca__frame { margin-right: 0; }
.ibca__switcher { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; margin: 0 auto 12px; }
/* Switcher position: "top" (default) = above the model image, "bottom" = below it. Order only: the buttons are the same elements. */
.ibca[data-switcher="bottom"] .ibca__switcher { order: 2; margin: 12px auto 0; }
.ibca__switcher[hidden] { display: none; }
.ibca__tab {
	appearance: none; border: 1px solid var(--ibca-accent); background: transparent; color: var(--ibca-accent);
	border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; transition: background .15s, color .15s;
}
.ibca__tab:hover { background: color-mix(in srgb, var(--ibca-accent) 12%, transparent); }
.ibca__tab[aria-pressed="true"] { background: var(--ibca-accent); color: var(--ibca-accent-text); }
.ibca__tab:focus-visible { outline: 2px solid var(--ibca-accent); outline-offset: 2px; }

/* Icon switcher: round layer icons with a theme-colored ring. */
.ibca__frame { position: relative; }
.ibca__switcher--icons { gap: 12px; padding: 6px 4px; }
.ibca__tab.ibca__tab--icon {
	position: relative; display: block; width: 48px; height: 48px; padding: 0; margin: 0; border: 0; border-radius: 50%;
	background: #fff; color: inherit; overflow: visible; line-height: 0; cursor: pointer;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--ibca-accent) 45%, transparent), 0 1px 3px rgba(15, 23, 42, .18);
	/* Leaving (hover off) is the slow, eased direction; entering is quicker (see :hover). Same properties in both directions. */
	transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s cubic-bezier(.22, .61, .36, 1);
	/* No will-change: a layer kept on the GPU is painted once at 1x and then scaled, which blurs the ring and the picture. */
	-webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.ibca__tab--icon .ibca__tab-img {
	display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none;
	border: 3px solid #fff; background: #fff; transition: opacity .45s ease; opacity: .92;
}
.ibca__tab.ibca__tab--icon:hover {
	background: #fff; transform: translateY(-2px) scale(1.06);
	box-shadow: 0 0 0 2px var(--ibca-accent), 0 8px 18px color-mix(in srgb, var(--ibca-accent) 32%, transparent);
	transition-duration: .22s;
}
.ibca__tab--icon:hover .ibca__tab-img { opacity: 1; transition-duration: .22s; }
.ibca__tab.ibca__tab--icon:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
.ibca__tab.ibca__tab--icon[aria-pressed="true"] {
	background: #fff; transform: scale(1.04);
	box-shadow: 0 0 0 3px var(--ibca-accent), 0 6px 16px color-mix(in srgb, var(--ibca-accent) 38%, transparent);
}
/* Pressed layer under the pointer: same lift as any hovered icon, so a click only changes the ring, never the size. */
.ibca__tab.ibca__tab--icon[aria-pressed="true"]:hover { transform: translateY(-2px) scale(1.06); }
.ibca__tab.ibca__tab--icon[aria-pressed="true"]:active { transform: translateY(0) scale(.99); }
.ibca__tab[aria-pressed="true"] .ibca__tab-img { opacity: 1; }
.ibca__tab.ibca__tab--icon:focus-visible { outline: 3px solid var(--ibca-accent); outline-offset: 4px; }
.ibca__tab.ibca__tab--icon:focus:not(:focus-visible) { outline: none; }
.ibca__tooltip--switcher { z-index: 40; white-space: nowrap; max-width: none; }
@media (prefers-reduced-motion: reduce) {
	.ibca__tab.ibca__tab--icon, .ibca__tab--icon .ibca__tab-img { transition: none; }
	.ibca__tab.ibca__tab--icon:hover, .ibca__tab.ibca__tab--icon:active, .ibca__tab.ibca__tab--icon[aria-pressed="true"], .ibca__tab.ibca__tab--icon[aria-pressed="true"]:hover { transform: none; }
}
.ibca__box { position: relative; width: 100%; margin: 0 auto; }
.ibca[data-align="left"] .ibca__box { margin-left: 0; }
.ibca[data-align="right"] .ibca__box { margin-right: 0; }
.ibca__viewport { position: relative; width: 100%; overflow: hidden; user-select: none; -webkit-user-select: none; }
.ibca__stage { position: relative; width: 100%; transform-origin: 0 0; }
.ibca__svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Layer image: an instant blurred placeholder (.ibca__lqip, inlined) shows until the full image has loaded, which then fades in over it. */
.ibca__img { opacity: 1; transition: opacity .3s ease; }
.ibca__img.is-loading { opacity: 0; }
.ibca__lqip { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ibca__img { transition: none; } }
.ibca__part {
	fill: var(--p-fill, var(--ibca-fill)); fill-opacity: var(--p-fill-o, var(--ibca-fill-o));
	stroke: var(--ibca-stroke); stroke-width: var(--ibca-stroke-w); stroke-opacity: var(--ibca-stroke-o); stroke-linejoin: round;
	cursor: pointer; outline: none; transition: fill-opacity .15s ease, stroke-opacity .15s ease, fill .15s ease;
}
.ibca__part.is-hover, .ibca__part:focus-visible { fill: var(--p-hover, var(--ibca-hover)); fill-opacity: var(--ibca-hover-o); stroke-opacity: 1; }
.ibca__part.is-active { fill: var(--p-active, var(--ibca-active)); fill-opacity: var(--ibca-active-o); stroke-opacity: 1; }
.ibca__part:focus-visible { stroke-width: calc(var(--ibca-stroke-w) * 2); }
.ibca__tooltip {
	position: absolute; top: 0; left: 0; z-index: 30; box-sizing: border-box;
	max-width: min(320px, 92%); padding: 6px 10px; border-radius: 6px;
	background: var(--ibca-tip-bg); color: var(--ibca-tip-text);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	font-family: var(--ibca-font); font-size: 14px; line-height: 1.4; text-align: left;
	pointer-events: none; overflow-wrap: break-word;
	-webkit-user-select: none; user-select: none;
}
.ibca__tooltip[hidden] { display: none; }
/* Plain one-line tooltip. */
.ibca__tooltip:not(.ibca__tooltip--switcher) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* Credit link under the chart. */
.ibca__credit { order: 3; margin: 8px 0 0; font-size: 12px; line-height: 1.4; text-align: center; opacity: .75; }
.ibca[data-align="left"] .ibca__credit { text-align: left; }
.ibca[data-align="right"] .ibca__credit { text-align: right; }
.ibca__credit[hidden] { display: none; }
.ibca__credit a { color: inherit; text-decoration: underline; }
