/*!
 * StoryFlow – Rotating Text Badge (since 1.0.10)
 * Loaded only by the Rotating Text Badge widget.
 */

.sf-rb-wrap { display: flex; justify-content: center; }

.sf-rb {
	position: relative;
	display: block;
	flex: none;
	width: 180px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	color: #fff;
	text-decoration: none;
	transition: scale 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
a.sf-rb,
a.sf-rb:hover,
a.sf-rb:focus { color: inherit; text-decoration: none; }
.sf-rb-wrap a.sf-rb { color: var(--sf-rb-color, inherit); }

.sf-rb__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sf-rb__disc,
.sf-rb__core { fill: transparent; }
.sf-rb__text {
	fill: currentColor;
	font-family: inherit;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.sf-rb__outer,
.sf-rb__inner { fill: none; stroke: currentColor; }

/* Rotation: the inner group spins on its own (CSS), the outer group follows scrolling (JS). */
.sf-rb__spin,
.sf-rb__scroll { transform-box: view-box; transform-origin: 50% 50%; }
.sf-rb--spin-auto .sf-rb__spin,
.sf-rb--spin-both .sf-rb__spin { animation: sf-rb-spin var(--sf-rb-dur, 14s) linear infinite; }
.sf-rb--ccw .sf-rb__spin { animation-direction: reverse; }
@keyframes sf-rb-spin { to { transform: rotate(360deg); } }

/* Hover */
.sf-rb--hover-pause:hover .sf-rb__spin,
.sf-rb--hover-both:hover .sf-rb__spin,
.sf-rb--hover-pause:hover .sf-rb__center > *,
.sf-rb--hover-both:hover .sf-rb__center > * { animation-play-state: paused; }
.sf-rb--hover-grow:hover,
.sf-rb--hover-both:hover { scale: 1.06; }

/* Centre */
.sf-rb__center {
	position: absolute;
	left: 50%;
	top: 50%;
	width: var(--sf-rb-c, 40%);
	aspect-ratio: 1 / 1;
	translate: -50% -50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #f5b301;
	container-type: inline-size;
	pointer-events: none;
}
.sf-rb__center > * { transform-origin: 50% 50%; }
.sf-rb__center i { font-size: 100cqi; line-height: 1; }
.sf-rb__center svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.sf-rb-wrap .sf-rb__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.sf-rb-wrap .sf-rb__img--cover { object-fit: cover; border-radius: 50%; }
.sf-rb__center-text { font-size: 30cqi; line-height: 1.05; font-weight: 800; text-align: center; }
.sf-rb--center-spin.sf-rb--spin-auto .sf-rb__center > *,
.sf-rb--center-spin.sf-rb--spin-both .sf-rb__center > * { animation: sf-rb-spin var(--sf-rb-dur, 14s) linear infinite; }
.sf-rb--center-spin.sf-rb--ccw .sf-rb__center > * { animation-direction: reverse; }

.sf-rb__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.sf-rb__spin,
	.sf-rb__center > * { animation: none !important; }
}
