/* ========================================================================== 
   TWFG Modern - Blog category navigation
   ========================================================================== */

.twfg-category-nav {
	margin: 0 0 clamp(24px, 3vw, 32px);
	max-width: 100%;
}

.twfg-category-nav__list {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	max-width: 100%;
	min-width: 0;
	padding: 0;
}

.twfg-category-nav__item {
	display: flex;
	margin: 0;
	max-width: 100%;
	min-width: 0;
}

.twfg-category-nav__link {
	align-items: center;
	background: transparent;
	border: 1px solid var(--twfg-border);
	color: var(--twfg-plum);
	display: inline-flex;
	font-family: var(--twfg-sans);
	font-size: 0.78rem;
	font-weight: 600;
	justify-content: center;
	line-height: 1.25;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.twfg-category-nav__link:hover,
.twfg-category-nav__link:focus {
	background: var(--twfg-pink);
	border-color: var(--twfg-pink);
	color: var(--twfg-white);
	text-decoration: none;
}

.twfg-category-nav__link--active {
	background: var(--twfg-plum);
	border-color: var(--twfg-plum);
	color: var(--twfg-white);
}

.twfg-category-nav__link--active:hover,
.twfg-category-nav__link--active:focus {
	background: var(--twfg-pink);
	border-color: var(--twfg-pink);
	color: var(--twfg-white);
}

/* The existing Blog archive has a generous story-section inset. Keep the
   navigation close to the introduction while preserving the article rows. */
.twfg-blog-archive .twfg-events-archive__stories {
	padding-top: clamp(24px, 3vw, 32px);
}

@media (max-width: 640px) {
	.twfg-category-nav__list {
		gap: 8px;
	}

	.twfg-category-nav__link {
		font-size: 0.76rem;
		padding-left: 13px;
		padding-right: 13px;
		text-align: left;
		white-space: normal;
	}
}
