.wp-block-post-terms{display:flex;flex-wrap:wrap;gap:var(--wp--custom--semantic--badge--gap--l, var(--wp--custom--primitives--spacing--8,8px))}
.wp-block-post-terms a{display:inline-block;padding:2px 10px 0 10px;border-radius:var(--wp--custom--semantic--border--radius--full, 999px);text-decoration:none !important;background:var(--wp--custom--semantic--color--background--surface--secondary, var(--wp--preset--color--secondary-300)) !important;color:var(--wp--custom--semantic--color--foreground--on-secondary, var(--wp--preset--color--on-secondary-300)) !important}
.wp-block-post-terms a:hover{background:var(--wp--preset--color--secondary-400) !important;color:var(--wp--preset--color--on-secondary-400) !important}
.wp-block-post-terms.taxonomy-category a,.wp-block-post-terms.taxonomy-categorie a{background:var(--wp--custom--semantic--color--background--surface--brand, var(--wp--preset--color--primary-300)) !important;color:var(--wp--custom--semantic--color--foreground--on-brand, var(--wp--preset--color--on-primary-300)) !important}
.wp-block-post-terms.taxonomy-category a:hover,.wp-block-post-terms.taxonomy-categorie a:hover{background:var(--wp--preset--color--primary-400) !important;color:var(--wp--preset--color--on-primary-400) !important}

/* Variants (override defaults) */
/* Support slugs with or without the "badge-" prefix, just in case */
.wp-block-post-terms.is-style-badge-primary-initial a,
.wp-block-post-terms.is-style-primary-initial a,
.wp-block-post-terms.is-style-primary a{background:var(--wp--custom--semantic--color--background--surface--brand, var(--wp--preset--color--primary-300)) !important;color:var(--wp--custom--semantic--color--foreground--brand-on-secondary, var(--wp--preset--color--on-primary-300)) !important}
.wp-block-post-terms.is-style-badge-primary-initial a:hover,
.wp-block-post-terms.is-style-primary-initial a:hover,
.wp-block-post-terms.is-style-primary a:hover{background:var(--wp--custom--semantic--color--background--surface--brand, var(--wp--preset--color--primary-400)) !important;color:var(--wp--custom--semantic--color--foreground--brand-on-secondary, var(--wp--preset--color--on-primary-400)) !important}

.wp-block-post-terms.is-style-badge-primary-light a,
.wp-block-post-terms.is-style-primary-light a{background:var(--wp--custom--semantic--color--background--surface--accent--lightest, var(--wp--preset--color--primary-100)) !important;color:var(--wp--custom--semantic--color--foreground--brand-on-light, var(--wp--preset--color--on-primary-100)) !important}
.wp-block-post-terms.is-style-badge-primary-light a:hover,
.wp-block-post-terms.is-style-primary-light a:hover{background:var(--wp--custom--semantic--color--background--surface--accent--lighter, var(--wp--preset--color--primary-200)) !important;color:var(--wp--custom--semantic--color--foreground--brand-on-light, var(--wp--preset--color--on-primary-200)) !important}

.wp-block-post-terms.is-style-badge-secondary-initial a,
.wp-block-post-terms.is-style-secondary-initial a,
.wp-block-post-terms.is-style-secondary a{background:var(--wp--custom--semantic--color--background--surface--inverse, var(--wp--preset--color--neutral-900)) !important;color:var(--wp--custom--semantic--color--foreground--inverse, var(--wp--preset--color--on-neutral-900, #FFFFFF)) !important}
.wp-block-post-terms.is-style-badge-secondary-initial a:hover,
.wp-block-post-terms.is-style-secondary-initial a:hover,
.wp-block-post-terms.is-style-secondary a:hover{background:var(--wp--custom--semantic--color--background--surface--inverse, var(--wp--preset--color--neutral-800)) !important;color:var(--wp--custom--semantic--color--foreground--inverse, var(--wp--preset--color--on-neutral-800, #FFFFFF)) !important}

.wp-block-post-terms.is-style-badge-secondary-light a,
.wp-block-post-terms.is-style-secondary-light a{background:var(--wp--custom--semantic--color--background--surface--secondary, var(--wp--preset--color--secondary-100)) !important;color:var(--wp--custom--semantic--color--foreground--primary, var(--wp--preset--color--primary)) !important}
.wp-block-post-terms.is-style-badge-secondary-light a:hover,
.wp-block-post-terms.is-style-secondary-light a:hover{background:var(--wp--custom--semantic--color--background--surface--secondary, var(--wp--preset--color--secondary-200)) !important;color:var(--wp--custom--semantic--color--foreground--primary, var(--wp--preset--color--primary)) !important}

/* Optional: categories/tag-cloud when using the "Badge" style variation */
.wp-block-categories.is-style-badge,.wp-block-tag-cloud.is-style-badge{display:flex;flex-wrap:wrap;gap:var(--wp--custom--semantic--badge--gap--l, var(--wp--custom--primitives--spacing--8,8px))}
.wp-block-categories.is-style-badge a{display:inline-block;padding:2px 10px 0 10px;border-radius:var(--wp--custom--semantic--border--radius--full, 999px);text-decoration:none;background:var(--wp--custom--semantic--color--background--surface--brand, var(--wp--preset--color--primary-300));color:var(--wp--custom--semantic--color--foreground--on-brand, var(--wp--preset--color--on-primary-300))}
.wp-block-categories.is-style-badge a:hover{background:var(--wp--preset--color--primary-400);color:var(--wp--preset--color--on-primary-400)}
.wp-block-tag-cloud.is-style-badge a{display:inline-block;padding:2px 10px 0 10px;border-radius:var(--wp--custom--semantic--border--radius--full, 999px);text-decoration:none;background:var(--wp--custom--semantic--color--background--surface--secondary, var(--wp--preset--color--secondary-300));color:var(--wp--custom--semantic--color--foreground--on-secondary, var(--wp--preset--color--on-secondary-300))}
.wp-block-tag-cloud.is-style-badge a:hover{background:var(--wp--preset--color--secondary-400);color:var(--wp--preset--color--on-secondary-400)}
