/**
 * Centre header ribbon (Phase 1: social icons).
 *
 * Thin utility bar above the global header. `--cjndg-centre-accent` is the
 * single colour knob Phase 2 will set per centre (logo + brand colour) without
 * touching markup.
 *
 * @package CJDNG
 */

.cjdng-centre-header {
	--cjndg-centre-accent: #0f5132; /* neutral default; Phase 2 overrides per centre */
	background: #f5f5f4;
	border-bottom: 1px solid #e6e6e4;
	font-size: 13px;
	line-height: 1.2;
}

.cjdng-ch-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 6px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.cjdng-ch-label {
	font-weight: 600;
	color: #333;
	letter-spacing: 0.01em;
}

.cjdng-ch-icons {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto; /* push icons to the right; only item when no label */
}

.cjdng-ch-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: #555;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.cjdng-ch-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	display: block;
}

.cjdng-ch-icon:hover,
.cjdng-ch-icon:focus-visible {
	color: var(--cjndg-centre-accent);
	background: rgba(0, 0, 0, 0.06);
}

.cjdng-ch-icon:focus-visible {
	outline: 2px solid var(--cjndg-centre-accent);
	outline-offset: 1px;
}

@media (max-width: 600px) {
	.cjdng-ch-inner {
		padding: 5px 14px;
	}

	.cjdng-ch-icon {
		width: 28px;
		height: 28px;
	}
}
