.tw-stories {
	--tw-bg: #ffffff;
	--tw-featured: #0b1b3f;
	--tw-ink: #071633;
	--tw-muted: #52627a;
	--tw-cat-bg: #ffffff;
	--tw-cat: #071633;
	--tw-size: 15px;
	--tw-desc: 15px;
	--tw-cat-size: 13px;
	--tw-title-pad: 2px;
	--tw-desc-pad: 16px;
	--tw-pad: 12px;
	--tw-border: 1px;
	--tw-border-color: #e6edf5;
	--tw-radius: 22px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	color: var(--tw-ink);
}

.tw-stories__items {
	display: grid;
	gap: 16px;
}

.tw-stories__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

.tw-stories__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid #d7e0ec;
	border-radius: 999px;
	background: #fff;
	color: #071633;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.tw-stories__tab.is-active {
	border-color: #071633;
	background: #071633;
	color: #fff;
}

.tw-stories__count {
	display: inline-flex;
	min-width: 1.4rem;
	align-items: center;
	justify-content: center;
	padding: 1px 6px;
	border-radius: 999px;
	background: #eef3fb;
	color: #071633;
	font-size: 12px;
	line-height: 1.4;
}

.tw-stories__tab.is-active .tw-stories__count {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.tw-stories__panel[hidden] {
	display: none;
}

.tw-stories--grid .tw-stories__items {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tw-stories--list .tw-stories__items {
	grid-template-columns: 1fr;
}

.tw-story {
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	margin: 0;
	padding: var(--tw-pad);
	border: var(--tw-border) solid var(--tw-border-color);
	border-radius: var(--tw-radius);
	background-color: var(--tw-bg);
	background-image: none;
	box-shadow: 0 1px 2px rgba(7, 22, 51, 0.04), 0 8px 16px rgba(7, 22, 51, 0.04);
	transition: background-color 0.25s ease, border-color 0.25s ease, opacity 0.6s ease var(--tw-delay, 0ms), transform 0.6s ease var(--tw-delay, 0ms), box-shadow 0.3s ease;
}

.tw-story__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: calc(var(--tw-radius) - 8px);
	background-color: #eef3f8;
	background-image: none;
}

.tw-story__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tw-story__photo--empty {
	display: grid;
	place-items: center;
	color: #2f6bff;
	font-size: 2rem;
	font-weight: 700;
}

.tw-story__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	max-width: calc(100% - 72px);
	padding: 6px 12px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--tw-cat-bg);
	color: var(--tw-cat);
	font-size: var(--tw-cat-size);
	font-weight: 700;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tw-story__mark {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 999px;
	background: #f6b423;
	color: #071633;
	font-family: Georgia, serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}
.tw-story blockquote {
	flex: 1 1 auto;
	margin: 0;
	padding: var(--tw-desc-pad) var(--tw-title-pad) 0;
}
.tw-story blockquote p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--tw-muted);
	font-size: var(--tw-desc);
	line-height: 1.55;
}

.tw-story__person {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 14px;
	padding: 14px var(--tw-title-pad) 4px;
	border-top: 1px solid var(--tw-border-color);
}

.tw-story__avatar {
	display: grid;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	place-items: center;
	overflow: hidden;
	border-radius: 999px;
	background: #e8f0ff;
	color: #2f6bff;
	font-size: 14px;
	font-weight: 700;
	object-fit: cover;
}

.tw-story cite {
	display: block;
	color: var(--tw-ink);
	font-size: var(--tw-size);
	font-style: normal;
	font-weight: 700;
	line-height: 1.3;
}

.tw-story__role {
	display: block;
	margin-top: 2px;
	color: var(--tw-muted);
	font-size: 13px;
	line-height: 1.3;
}

.tw-story cite,
.tw-story__role {
	overflow-wrap: anywhere;
}

.tw-story__person > span {
	min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
	.tw-story:hover {
		background: var(--tw-featured);
		border-color: transparent;
	}

	.tw-motion .tw-stories:not(.tw-stories--carousel) .tw-story.is-in:hover,
	.tw-stories--carousel .tw-story:hover {
		transform: translateY(-6px);
	}

	.tw-story:hover blockquote p,
	.tw-story:hover .tw-story__role {
		color: rgba(255, 255, 255, 0.82);
	}

	.tw-story:hover cite {
		color: #fff;
	}

	.tw-story:hover .tw-story__person {
		border-top-color: rgba(255, 255, 255, 0.16);
	}

	.tw-story:hover .tw-story__avatar {
		box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
	}
}

.tw-stories .tw-carousel {
	position: static;
	width: 100%;
	max-width: 100%;
	padding: 0;
}

.tw-stories .tw-carousel__bar {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 0 14px;
}

.tw-stories .tw-carousel__nav {
	position: static;
	top: auto;
	right: auto;
	left: auto;
	display: inline-grid;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	border: 1px solid #e6edf5;
	border-radius: 999px;
	background: #fff;
	color: var(--tw-arrow, #071633);
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(7, 22, 51, 0.08);
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tw-stories .tw-carousel__nav::before {
	content: "";
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.tw-stories .tw-carousel__nav--prev::before {
	transform: translateX(2px) rotate(-135deg);
}

.tw-stories .tw-carousel__nav--next::before {
	transform: translateX(-2px) rotate(45deg);
}

.tw-stories .tw-carousel__nav:hover:not(:disabled),
.tw-stories .tw-carousel__nav:focus-visible:not(:disabled) {
	border-color: var(--tw-arrow-hover, #071633);
	background: var(--tw-arrow-hover, #071633);
	color: #fff;
}

.tw-stories .tw-carousel--arrow .tw-carousel__nav::before {
	width: auto;
	height: auto;
	border: 0;
	background: none;
	font-size: 18px;
	line-height: 1;
	transform: none;
	content: "\2192";
}

.tw-stories .tw-carousel--arrow .tw-carousel__nav--prev::before {
	content: "\2190";
	transform: none;
}

.tw-stories .tw-carousel--angle .tw-carousel__nav::before {
	width: 0;
	height: 0;
	border: 6px solid transparent;
	border-left: 8px solid currentColor;
	border-right-width: 0;
	background: none;
	transform: none;
}

.tw-stories .tw-carousel--angle .tw-carousel__nav--prev::before {
	border-left-width: 0;
	border-right: 8px solid currentColor;
	transform: none;
}

.tw-stories .tw-carousel--upload .tw-carousel__nav::before {
	width: 16px;
	height: 16px;
	border: 0;
	background-color: currentColor;
	-webkit-mask-image: var(--tw-arrow-icon);
	mask-image: var(--tw-arrow-icon);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transform: none;
	content: "";
}

.tw-stories .tw-carousel--upload .tw-carousel__nav--prev::before {
	transform: scaleX(-1);
}

.tw-stories .tw-carousel__nav:disabled {
	opacity: 0.4;
	cursor: default;
}

.tw-stories .tw-carousel__rail {
	display: flex;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.tw-stories .tw-carousel__rail.is-jump {
	scroll-snap-type: none;
	scroll-behavior: auto;
}

.tw-stories .tw-carousel__rail::-webkit-scrollbar {
	display: none;
}

.tw-stories--carousel .tw-slide {
	flex: 0 0 calc((100% - 32px) / 3.15);
	min-width: 0;
	scroll-snap-align: start;
}

.tw-stories .tw-carousel__dots {
	position: static;
	right: auto;
	bottom: auto;
	left: auto;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
}

.tw-stories .tw-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #d5deeb;
	cursor: pointer;
}

.tw-stories .tw-carousel__dot.is-active {
	width: 22px;
	background: #071633;
}

@media (max-width: 1100px) {
	.tw-stories--grid .tw-stories__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tw-stories--carousel .tw-slide {
		flex-basis: calc((100% - 16px) / 2.15);
	}
}

@media (max-width: 680px) {
	.tw-stories__items,
	.tw-stories .tw-carousel__rail {
		gap: 12px;
	}

	.tw-stories--grid .tw-stories__items,
	.tw-stories--list .tw-stories__items {
		grid-template-columns: 1fr;
	}

	.tw-stories--carousel .tw-slide {
		flex-basis: 100%;
	}

	.tw-stories .tw-carousel__nav {
		display: inline-grid;
		width: 38px;
		height: 38px;
	}

	.tw-story__mark {
		width: 32px;
		height: 32px;
		font-size: 18px;
	}

	.tw-story__badge {
		top: 8px;
		left: 8px;
		max-width: calc(100% - 56px);
	}

	.tw-story blockquote p {
		-webkit-line-clamp: 4;
	}
}

.tw-motion .tw-stories:not(.tw-stories--carousel) .tw-story,
.tw-motion .tw-stories--carousel {
	opacity: 0;
	transform: translateY(18px);
}

.tw-motion .tw-stories:not(.tw-stories--carousel) .tw-story.is-in,
.tw-motion .tw-stories--carousel.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.tw-motion .tw-stories:not(.tw-stories--carousel) .tw-story,
	.tw-motion .tw-stories--carousel,
	.tw-story {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
