/*
 * SwaraPena — bilah kategori di bawah header.
 * Latar merah, teks hitam, dapat digeser ke samping.
 * Ukuran huruf 13px (12,5px di ponsel) — lebih kecil dari paragraf 16–17,28px.
 */

.spf-catbar {
	position: relative;
	background-color: #dd332f;
	color: #000000;
	border-bottom: 1px solid #000000;
	font-family: var(--font-ui, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.spf-catbar-frame {
	position: relative;
	box-sizing: border-box;
	max-width: 1280px;
	margin: 0 auto;
}

/* Petunjuk halus bahwa bilah masih bisa digeser ke kanan. */
.spf-catbar-frame::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 32px;
	background: linear-gradient(to right, rgba(221, 51, 47, 0), #dd332f);
	pointer-events: none;
}

.spf-catbar-inner {
	box-sizing: border-box;
	margin: 0 auto;
	padding: 0 24px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.spf-catbar-inner::-webkit-scrollbar {
	display: none;
}

.spf-catbar-list {
	display: flex;
	align-items: stretch;
	width: max-content;
	min-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spf-catbar-item {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spf-catbar-link {
	display: flex;
	align-items: center;
	height: 42px;
	margin: 0;
	padding: 0 14px;
	border-right: 1px solid rgba(0, 0, 0, 0.18);
	color: #000000 !important;
	font-size: 13px;
	font-weight: 600;
	font-style: normal;
	line-height: 1;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	text-transform: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.spf-catbar-item:first-child .spf-catbar-link {
	border-left: 1px solid rgba(0, 0, 0, 0.18);
}

.spf-catbar-link:hover,
.spf-catbar-link:focus {
	background-color: rgba(0, 0, 0, 0.1);
	color: #000000 !important;
}

.spf-catbar-link:focus-visible {
	outline: 2px solid #000000;
	outline-offset: -4px;
}

.spf-catbar-item.is-rubric .spf-catbar-link {
	font-weight: 800;
}

.spf-catbar-item.is-active .spf-catbar-link {
	box-shadow: inset 0 -3px 0 #000000;
	font-weight: 800;
}

/*
 * Beranda: hero .sph-ed berlatar hitam penuh. Padding atas 18–30px milik
 * .sph-ed tadinya memperlihatkan latar putih body sebagai celah di bawah
 * bilah. Hilangkan hanya padding atas itu agar hero hitam menempel langsung
 * ke bilah kategori tanpa garis putih.
 */
.spf-catbar + main .sph-ed {
	padding-top: 0;
}

@media (max-width: 767px) {
	.spf-catbar-frame::after {
		width: 28px;
	}

	.spf-catbar-inner {
		padding: 0 16px;
	}

	.spf-catbar-link {
		height: 38px;
		padding: 0 12px;
		font-size: 12.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spf-catbar-link {
		transition: none;
	}
}
