/**
 * TPB Company Overview — shared styles (front end + editor).
 * Colors, borders and radii are driven by inline styles/attributes, so
 * these rules only handle layout, spacing and typography. The layout is
 * fully responsive: the fact grid collapses to a single column and the
 * header stacks on narrow screens.
 */
.wp-block-tpb-company-overview.tpb-co {
	border-width: 1px;
	border-style: solid;
	margin-top: 40px;
	margin-bottom: 40px;
	padding: 18px;
	box-sizing: border-box;
}

.wp-block-tpb-company-overview.tpb-co * {
	box-sizing: border-box;
}

/* ---- Header ---- */
.tpb-co .tpb-co__header {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
}

.tpb-co .tpb-co__number {
	flex: 0 0 auto;
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
}

.tpb-co .tpb-co__heading {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.tpb-co .tpb-co__title {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.tpb-co .tpb-co__subtitle {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.tpb-co .tpb-co__badge {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 8px 18px;
	border-width: 1px;
	border-style: solid;
	border-color: transparent;
	border-radius: 8px;
	text-align: center;
}

.tpb-co .tpb-co__badge-top {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.1;
}

.tpb-co .tpb-co__badge-bottom {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

/* ---- Fact grid ---- */
.tpb-co .tpb-co__grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 14px;
	margin-top: 18px;
}

.tpb-co .tpb-co__card {
	border-width: 1px;
	border-style: solid;
	border-radius: 10px;
	padding: 10px 15px;
}

.tpb-co .tpb-co__card--full {
	grid-column: 1 / -1;
}

.tpb-co .tpb-co__card-label {
	display: block;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.tpb-co .tpb-co__card-value {
	display: block;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.55;
}

.tpb-co .tpb-co__card-value a {
	color: var( --tpb-co-link-color, #2e6f78 );
	text-decoration: underline;
}

/* ---- Honest take ---- */
.tpb-co .tpb-co__take {
	margin-top: 24px;
	padding: 0 6px;
}

.tpb-co .tpb-co__take-title {
	display: block;
	text-transform: uppercase;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
}

.tpb-co .tpb-co__take-body {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
}

.tpb-co .tpb-co__take-body a {
	color: var( --tpb-co-link-color, #2e6f78 );
	text-decoration: underline;
	font-weight: 600;
}

.tpb-co .tpb-co__take-body a:hover {
	text-decoration: none;
}

/* ---- Responsive ---- */
@media ( max-width: 600px ) {
	.tpb-co .tpb-co__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 18px;
	}

	.tpb-co .tpb-co__badge {
		align-self: stretch;
	}

	.tpb-co .tpb-co__grid {
		grid-template-columns: 1fr;
	}
}
