/* =========================================================================
   GPI Knowledge pillar layer + knowledge<->company bridge
   Loaded only on: knowledge_category archives, knowledge singles, company singles.
   Versioned by filemtime() from gpi-knowledge-pillar.php.
   ========================================================================= */

/* ---------- Market Intelligence hub strip ---------- */
.gpi-khub {
	margin: 0 0 28px;
	padding: 18px 20px;
	border: 1px solid #e6e9ef;
	border-radius: 16px;
	background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
}

.gpi-khub-title {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 12px;
}

.gpi-khub-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 8px;
}

.gpi-khub-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 13px;
	border: 1px solid #e2e6ee;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	color: #1f2937;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.gpi-khub-item:hover {
	border-color: #2b7de9;
	box-shadow: 0 2px 10px rgba(43, 125, 233, .12);
	transform: translateY(-1px);
}

.gpi-khub-item.is-current {
	background: #1f2937;
	border-color: #1f2937;
	color: #fff;
}

.gpi-khub-label { flex: 1 1 auto; }

.gpi-khub-count {
	flex: 0 0 auto;
	font-size: 11.5px;
	font-weight: 600;
	color: #6b7280;
	background: #f1f3f7;
	border-radius: 999px;
	padding: 2px 7px;
}

.gpi-khub-item.is-current .gpi-khub-count {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

/* ---------- Pillar prose ---------- */
.gpi-kpillar-intro {
	margin: 0 0 28px;
	max-width: 78ch;
	font-size: 16.5px;
	line-height: 1.75;
	color: #374151;
}

.gpi-kpillar-intro p { margin: 0 0 1em; }
.gpi-kpillar-intro p:last-child { margin-bottom: 0; }

/* ---------- Pillar entity block ---------- */
.gpi-kpillar-data {
	margin: 40px 0 8px;
	padding: 28px 26px 24px;
	border: 1px solid #e6e9ef;
	border-radius: 18px;
	background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
}

.gpi-kpillar-data-head { margin-bottom: 22px; }

.gpi-kpillar-data-head h2 {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	color: #111827;
}

.gpi-kpillar-data-head p {
	margin: 0;
	max-width: 72ch;
	font-size: 14.5px;
	line-height: 1.6;
	color: #6b7280;
}

.gpi-kpillar-group { margin-bottom: 22px; }
.gpi-kpillar-group:last-child { margin-bottom: 0; }

.gpi-kpillar-group h3 {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #2b7de9;
}

.gpi-kpillar-note {
	margin: 0 0 12px;
	font-size: 13px;
	color: #6b7280;
}

.gpi-kp-chips {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 10px;
}

.gpi-kp-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	border: 1px solid #e2e6ee;
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
	color: #1f2937;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.gpi-kp-chip:hover {
	border-color: #2b7de9;
	box-shadow: 0 2px 12px rgba(43, 125, 233, .12);
	transform: translateY(-1px);
}

.gpi-kp-chip-label {
	flex: 1 1 auto;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
}

.gpi-kp-chip-meta {
	flex: 0 0 auto;
	font-size: 11.5px;
	font-weight: 600;
	color: #6b7280;
	white-space: nowrap;
}

.gpi-kp-chip-arrow {
	flex: 0 0 auto;
	font-size: 14px;
	color: #9aa3b2;
	transition: color .15s ease, transform .15s ease;
}

.gpi-kp-chip:hover .gpi-kp-chip-arrow {
	color: #2b7de9;
	transform: translateX(2px);
}

/* ---------- knowledge <-> company bridge cards ---------- */
.gpi-kc {
	margin: 34px 0;
	clear: both;
}

.gpi-kc-h {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
	border-left: 4px solid #2b7de9;
	padding-left: 12px;
}

.gpi-kc-sub {
	margin: 0 0 18px;
	padding-left: 16px;
	font-size: 13.5px;
	color: #6b7280;
}

.gpi-kc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 12px;
}

.gpi-kc-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
	color: #1a1a1a;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.gpi-kc-card:hover {
	border-color: #2b7de9;
	box-shadow: 0 2px 12px rgba(43, 125, 233, .12);
	transform: translateY(-1px);
}

.gpi-kc-name {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
}

.gpi-kc-meta {
	font-size: 12.5px;
	color: #6b7280;
}

.gpi-kc-more {
	display: inline-block;
	margin-top: 14px;
	font-size: 13.5px;
	font-weight: 600;
	color: #2b7de9;
	text-decoration: none;
}

.gpi-kc-more:hover { text-decoration: underline; }

@media (max-width: 600px) {
	.gpi-kc-grid { grid-template-columns: 1fr; }
	.gpi-kp-chips { grid-template-columns: 1fr; }
	.gpi-kpillar-data { padding: 22px 18px 18px; }
	.gpi-khub-items { grid-template-columns: repeat(2, 1fr); }
}
