/**
 * Vertebral-column chart — visual language aligned with odontogram + NH tokens.
 * Inline SVG fill/stroke attrs are the fallback; these rules drive interactive states.
 */

.nh-spinegram {
	margin: 12px 0 8px;
	max-width: 100%;
}

.nh-spinegram-panel {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px 12px 12px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nh-spinegram-chart {
	max-width: 420px;
	margin: 0 auto;
}

.nh-spinegram-svg {
	width: 100%;
	height: auto;
	display: block;
	touch-action: manipulation;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nh-spine-guide {
	opacity: 1;
	pointer-events: none;
}

.nh-spine-region {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	pointer-events: none;
}

.nh-vertebra {
	cursor: pointer;
	outline: none;
}

.nh-vertebra-shape {
	fill: #ffffff;
	stroke: #94a3b8;
	stroke-width: 1.3;
	transition: fill 0.15s ease, stroke 0.15s ease, filter 0.15s ease;
}

.nh-vertebra-process {
	pointer-events: none;
	transition: fill 0.15s ease, stroke 0.15s ease;
}

.nh-vertebra-endplate {
	pointer-events: none;
	transition: stroke 0.15s ease;
}

.nh-vertebra-code {
	font-size: 8.5px;
	font-weight: 700;
	fill: #64748b;
	pointer-events: none;
	transition: fill 0.15s ease;
}

.nh-vertebra-name {
	font-size: 11px;
	font-weight: 600;
	fill: #475569;
	pointer-events: none;
	transition: fill 0.15s ease;
}

.nh-vertebra:hover .nh-vertebra-shape {
	stroke: #18509c;
	fill: #eff5ff;
	filter: drop-shadow(0 1px 2px rgba(24, 80, 156, 0.18));
}

.nh-vertebra:hover .nh-vertebra-process {
	fill: #dbeafe;
	stroke: #93c5fd;
}

.nh-vertebra:hover .nh-vertebra-code {
	fill: #18509c;
}

.nh-vertebra:hover .nh-vertebra-name {
	fill: #18509c;
}

.nh-vertebra:focus-visible .nh-vertebra-shape {
	stroke: #18509c;
	stroke-width: 2;
}

.nh-vertebra.is-selected .nh-vertebra-shape {
	fill: #ef4444;
	stroke: #b91c1c;
	filter: drop-shadow(0 1px 2px rgba(185, 28, 28, 0.25));
}

.nh-vertebra.is-selected .nh-vertebra-process {
	fill: #fecaca;
	stroke: #f87171;
}

.nh-vertebra.is-selected .nh-vertebra-endplate {
	stroke: rgba(255, 255, 255, 0.65);
}

.nh-vertebra.is-selected .nh-vertebra-code {
	fill: #ffffff;
}

.nh-vertebra.is-selected .nh-vertebra-name {
	fill: #b91c1c;
	font-weight: 700;
}

.nh-spinegram.is-readonly .nh-vertebra {
	cursor: default;
}

.nh-vertebra.is-disabled {
	cursor: default;
	opacity: 0.42;
}

.nh-vertebra.is-disabled .nh-vertebra-shape {
	fill: #f8fafc;
	stroke: #cbd5e1;
	filter: none;
}

.nh-vertebra.is-disabled .nh-vertebra-process {
	fill: #f1f5f9;
	stroke: #e2e8f0;
}

.nh-vertebra.is-disabled:hover .nh-vertebra-shape {
	fill: #f8fafc;
	stroke: #cbd5e1;
	filter: none;
}

.nh-vertebra.is-disabled:hover .nh-vertebra-code,
.nh-vertebra.is-disabled:hover .nh-vertebra-name {
	fill: #64748b;
}

.nh-spinegram-summary {
	margin: 12px 0 0;
	font-size: 13px;
	text-align: center;
}

.nh-spinegram-summary-label {
	color: #64748b;
	margin-right: 4px;
}

.nh-spinegram-summary-list {
	font-weight: 700;
	color: #b91c1c;
}

.nh-q-odontogram-lead + .nh-q-spinegram-lead {
	margin-top: 8px;
}

.nh-q-spinegram-lead {
	margin: 8px 0 16px;
}
