/**
 * Bricksify: Story Switcher, the states the script drives. Colours come from
 * the template root (--bxss-ink, --bxss-muted, --bxss-row, --bxss-sheet,
 * --bxss-accent); layout and type from its Bricks settings.
 */
.bxc-story-switcher {
	outline: none;
}

.bxc-story-switcher:focus-visible {
	outline: 1px solid var(--bxss-ink, currentColor);
	outline-offset: 4px;
}

.bxc-story-switcher button {
	font-family: inherit;
}

.bxc-story-switcher .bxc-ss__row {
	transition: background-color 280ms, padding 260ms;
}

.bxc-story-switcher .bxc-ss__row:hover,
.bxc-story-switcher .bxc-ss__row.is-active {
	background-color: var(--bxss-row, rgba(0, 0, 0, 0.04));
}

.bxc-story-switcher .bxc-ss__row.is-active {
	cursor: default;
}

.bxc-story-switcher .bxc-ss__row .bxc-ss__name {
	color: var(--bxss-muted, currentColor);
	transition: color 280ms;
}

.bxc-story-switcher .bxc-ss__row.is-active .bxc-ss__name {
	color: var(--bxss-ink, currentColor);
}

.bxc-story-switcher .bxc-ss__row .bxc-ss__role {
	opacity: 0.75;
}

.bxc-story-switcher .bxc-ss__row.is-active .bxc-ss__role {
	opacity: 1;
}

.bxc-story-switcher .bxc-ss__fill {
	transform-origin: 50% 0;
	transform: scaleY(0);
}

.bxc-story-switcher .bxc-ss__barfill {
	transform-origin: 0 50%;
	transform: scaleX(0);
}

.bxc-story-switcher:not(.is-ready) .bxc-ss__row:first-child .bxc-ss__fill {
	transform: none;
}

.bxc-story-switcher .bxc-ss__now {
	color: var(--bxss-ink, currentColor);
}

.bxc-story-switcher .bxc-ss__word {
	display: inline-block;
}

.bxc-story-switcher [data-ss-nav] {
	transition: background-color 220ms, color 220ms, border-color 220ms;
}

.bxc-story-switcher [data-ss-nav]:hover {
	background-color: var(--bxss-ink, #000);
	border-color: var(--bxss-ink, #000);
	color: var(--bxss-sheet, #fff);
}

/* Before the script runs: story 1 only. */
.bxc-story-switcher:not(.is-ready) .bxc-ss__stack > * ~ * {
	visibility: hidden;
}

/* Tablets and phones: the people become chips; only the active one shows
   its name. */
@media (max-width: 991px) {
	.bxc-story-switcher .bxc-ss__row:not(.is-active) .bxc-ss__who {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bxc-story-switcher .bxc-ss__row,
	.bxc-story-switcher .bxc-ss__name,
	.bxc-story-switcher [data-ss-nav] {
		transition: none;
	}
}