/* Partner Companies — structural layout only.
 * All decorative styling (border, shadow, background, colors) is driven by the
 * Gutenberg block settings via --pc-* variables. There are no visual defaults:
 * without block settings a card inherits the theme and shows no border/shadow. */

/* The block wrapper itself carries no border. */
.wp-block-partner-companies-companies {
	border: none;
}

.pc-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 20px 0;
}

.pc-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 24px;
	border: var(--pc-border-width, 0) solid var(--pc-border-color, transparent);
	border-radius: var(--pc-border-radius, 0);
	background: var(--pc-card-bg, transparent);
	box-shadow: var(--pc-shadow, none);
}

.pc-card--partner {
	border-color: var(--pc-partner-border, transparent);
	box-shadow: var(--pc-partner-shadow, none);
}

.pc-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

.pc-title {
	margin: 0 0 8px;
	font-size: 1.3rem;
	line-height: 1.3;
}

.pc-desc {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

.pc-actions {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 160px;
}

.pc-btn {
	display: block;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	line-height: 1.2;
}

.pc-btn--site {
	background: var(--pc-site-bg, transparent);
	color: var(--pc-site-color, inherit);
}

.pc-btn--site:hover {
	background: var(--pc-site-bg-hover, var(--pc-site-bg, transparent));
	color: var(--pc-site-color-hover, var(--pc-site-color, inherit));
}

/* "Read the Review" — plain underlined text link under the description. */
.pc-review-link {
	display: inline-block;
	margin-top: 10px;
	color: var(--pc-review-color, inherit);
	font-size: 0.95rem;
	text-decoration: underline;
}

.pc-review-link:hover {
	color: var(--pc-review-color-hover, var(--pc-review-color, inherit));
}

/* Stack on narrow screens */
@media ( max-width: 600px ) {
	.pc-card {
		flex-direction: column;
		align-items: stretch;
	}
	.pc-actions {
		min-width: 0;
	}
}
