/**
 * Industrial tape product story.
 *
 * Loads after electrical-story.css, which already defines the .story shell, so
 * this file only adds the blocks that family does not have: the lead paragraph,
 * the figure frame, the source panel and the .ind-* components.
 *
 * Direction-aware properties throughout — the Arabic page renders this markup
 * inside an RTL document, and the earlier RTL pass on the theme established
 * logical properties as the rule rather than physical left/right.
 */

/* --------------------------------------------------------------- text */

.story-lead {
	margin: 0 0 1.25rem;
	max-width: 68ch;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--story-muted);
}

/* -------------------------------------------------------------- figure */

.story-figure {
	margin: 0;
}

.story-figcaption {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--story-muted);
}

.chart-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ind-scale {
	display: block;
	width: 100%;
	height: auto;
	min-width: 720px;
}

.ind-scale__code {
	font-size: 13px;
	font-weight: 600;
	fill: var(--story-ink);
	text-anchor: end;
	font-variant-numeric: tabular-nums;
}

.ind-scale__value {
	font-size: 12.5px;
	fill: var(--story-muted);
}

/* ----------------------------------------------------------- duty map */

.ind-duties {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(1rem, 2.5vw, 1.5rem);
	margin-top: 1.25rem;
}

.ind-duty {
	min-width: 0;
	padding: 1.25rem 1.35rem 1.35rem;
	border-radius: 12px;
	background: var(--story-card);
	box-shadow: inset 0 0 0 1px rgba(20, 32, 46, 0.07);
}

.ind-duty__title {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
	line-height: 1.3;
	color: var(--story-ink);
}

.ind-duty__text {
	margin: 0 0 0.9rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--story-muted);
}

.ind-duty__codes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.75rem;
}

.ind-duty__code {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	background: var(--story-accent-soft);
	color: var(--story-accent);
	font-size: 0.8125rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.ind-duty__note {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--story-muted);
}

/* ------------------------------------------------------ source panel */

.story-source {
	padding: 1.35rem 1.5rem;
	border-radius: 12px;
	border-inline-start: 4px solid var(--story-accent);
	background: var(--story-bg);
}

.story-source__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: var(--story-ink);
}

.story-source__text {
	margin: 0;
	max-width: 72ch;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--story-muted);
}

/* --------------------------------------------------------- responsive */

@media (max-width: 640px) {
	.story-lead {
		font-size: 1rem;
	}

	.ind-duty {
		padding: 1.1rem 1.15rem 1.2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ind-duty {
		transition: none;
	}
}
