/* Abarce Popular Post – ukuran teks tidak melebihi tema; font & warna mewarisi tema */
.abp {
	--abp-accent: var(--wp--preset--color--primary, var(--e-global-color-primary, #2f7fb0));
	--abp-muted: #6b7280;
	--abp-line: rgba(128, 128, 128, .28);
	box-sizing: border-box;
	container-type: inline-size;
	width: 100%;
	overflow: hidden;
	color: inherit;
	font: inherit;
	border: 1px solid var(--abp-line);
	border-radius: 12px;
	background: var(--wp--preset--color--base, transparent);
}
@supports (color: color-mix(in srgb, red, blue)) {
	.abp {
		--abp-muted: color-mix(in srgb, currentColor 62%, transparent);
		--abp-line: color-mix(in srgb, currentColor 18%, transparent);
	}
}
.abp *, .abp *::before, .abp *::after { box-sizing: inherit; }

.abp__head { padding: .9rem 1rem .8rem; }
.abp__heading {
	margin: 0;
	text-transform: uppercase;
	font-size: .9em !important;     /* sedikit lebih kecil */
	font-weight: 700 !important;    /* bold */
}
.abp__heading::after {
	content: "";
	display: block;
	width: 4.5em;
	height: 4px;
	margin-top: .4em;
	border-radius: 99px;
	background: var(--abp-accent);
}

.abp__cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.abp__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.abp__cover:hover img { transform: scale(1.03); }

.abp__list { list-style: none; margin: 0; padding: .25rem 1rem 0; }
.abp__item {
	display: flex;
	align-items: flex-start;
	gap: .9rem;
	margin: 0;
	padding: .85rem 0;
	border-bottom: 1px solid var(--abp-line);
}
.abp__item:last-child { border-bottom: 0; }

.abp__num {
	flex: 0 0 1.5em;
	text-align: center;
	color: var(--abp-accent);
	font-weight: 800;
	line-height: 1.1;
	/* memakai ukuran preset tema; cadangan kecil */
	font-size: var(--wp--preset--font-size--large, 1.35em);
}

.abp__body { min-width: 0; flex: 1 1 auto; }
.abp__label {
	display: block;
	margin-bottom: .2em;
	color: var(--abp-muted);
	font-size: .8em;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.abp__title {
	margin: 0;
	font-size: .8em;         /* selalu lebih kecil dari nama grid */
	font-weight: 700;
	line-height: 1.35;
	color: inherit;
}
.abp__title a {
	color: inherit;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.abp__title a:hover,
.abp__title a:focus-visible { color: var(--abp-accent); }

@container (max-width: 240px) {
	.abp__item { gap: .6rem; }
	.abp__num { flex-basis: 1.2em; }
	.abp__list, .abp__head { padding-left: .75rem; padding-right: .75rem; }
}
