/*
 * AI HTML to Blocks - Block style helpers
 *
 * Keep styles neutral/minimal. Themes should remain in control of colors/typography.
 */

/*
 * Pill list (inline)
 * - For “type/tag/chip” collections that LOOK like pills but should be a semantic list.
 * - The converter uses a wrapper span (.h2b-pill-item) to keep the clickable area consistent.
 */
.wp-block-list.is-style-h2b-pill-list {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25em;
	justify-content: flex-start;
	align-items: center;
}

/* Alignment helpers (the converter adds these based on the original flex/text-align). */
.wp-block-list.is-style-h2b-pill-list.h2b-justify-center { justify-content: center; }
.wp-block-list.is-style-h2b-pill-list.h2b-justify-right { justify-content: flex-end; }
.wp-block-list.is-style-h2b-pill-list.h2b-justify-space-between { justify-content: space-between; }

.wp-block-list.is-style-h2b-pill-list > li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-block-list.is-style-h2b-pill-list > li > a {
	display: inline-flex;
	text-decoration: none;
	color: inherit;
}

.wp-block-list.is-style-h2b-pill-list .h2b-pill-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	padding: 0.9em 1.8em;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	background: var(--h2b-pill-bg, rgba(255, 255, 255, 0.9));
}

.wp-block-list.is-style-h2b-pill-list > li > a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 9999px;
}
/* ------------------------------
   Link card (card-like group)
   ------------------------------ */

.wp-block-group.h2b-link-card {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.wp-block-group.h2b-link-card .wp-block-group__inner-container {
	padding: 0;
}

.wp-block-group.h2b-link-card .wp-block-columns {
	margin: 0;
	gap: 16px;
}

.wp-block-group.h2b-link-card .wp-block-column {
	padding: 16px;
}

.wp-block-group.h2b-link-card .wp-block-column:first-child {
	padding: 0;
	flex-basis: 120px;
	flex-grow: 0;
}

.wp-block-group.h2b-link-card .wp-block-image {
	margin: 0;
}

.wp-block-group.h2b-link-card img {
	display: block;
	width: 120px;
	height: 120px;
	object-fit: cover;
}

.wp-block-group.h2b-link-card a {
	text-decoration: none;
	color: inherit;
}

.wp-block-group.h2b-link-card a:hover {
	text-decoration: underline;
}
