/*
 * Shared diagram language for the service pages (Our services, Managed IT, Complete package).
 *
 * One look for every diagram so the pages read as a set: thin neutral lines, dark raised nodes with a hairline, the action
 * colour only for the hub and the active path, square-ish corners, uppercase tracked Golos labels. Inline SVG uses these
 * classes; HTML diagrams can use the same custom properties. Everything reads tokens.css (no hex colours, no shadows).
 *
 * Rules for a diagram: it has a title and a description for assistive technology, nodes that are links are real links
 * with a visible focus state, text is never smaller than 12px at its smallest rendered size (give phones a stacked
 * HTML version instead of shrinking the drawing), and nothing moves.
 */

.cc-dg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.cc-dg__line {
	fill: none;
	stroke: var(--cc-color-line-strong);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}

.cc-dg__line--action {
	stroke: var(--cc-color-action);
}

.cc-dg__line--dash {
	stroke-dasharray: 4 6;
}

.cc-dg__node {
	fill: var(--cc-color-raised);
	stroke: var(--cc-color-line);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.cc-dg__node--hub {
	fill: var(--cc-color-canvas);
	stroke: var(--cc-color-action);
	stroke-width: 1.5;
}

.cc-dg__dot {
	fill: var(--cc-color-action);
}

.cc-dg__label {
	fill: var(--cc-color-white);
	font-family: var(--cc-font-heading);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cc-dg__sub {
	fill: var(--cc-color-secondary);
	font-family: var(--cc-font-body);
	font-size: 12px;
}

.cc-dg__icon {
	fill: none;
	stroke: var(--cc-color-action);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.cc-dg a {
	cursor: pointer;
	text-decoration: none;
}

.cc-dg a:hover .cc-dg__node,
.cc-dg a:focus-visible .cc-dg__node {
	stroke: var(--cc-color-action);
}

.cc-dg a:focus-visible {
	outline: none;
}

.cc-dg a:focus-visible .cc-dg__node {
	stroke: var(--cc-color-focus);
	stroke-width: 2;
}
