/**
 * Industry specialty page template.
 *
 * @package Deltraux
 */

.deltraux-industry-specialty {
	background: var(--bg-primary);
	color: var(--text-body);
}

.deltraux-industry-specialty .specialty-header {
	padding: var(--space-xl) 0 var(--space-lg);
}

.deltraux-industry-specialty .specialty-header h1 {
	max-width: 900px;
	margin: var(--space-md) 0 0;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.2;
}

.deltraux-industry-specialty .specialty-subtitle {
	max-width: 700px;
	margin: var(--space-sm) 0 0;
	color: var(--text-muted);
	font-size: 17px;
	line-height: 1.6;
}

.deltraux-industry-specialty .breadcrumb-trail {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.6;
}

.deltraux-industry-specialty .breadcrumb-trail a {
	color: var(--accent-primary);
	text-decoration: none;
}

.deltraux-industry-specialty .breadcrumb-trail a:hover {
	color: var(--accent-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.deltraux-industry-specialty .breadcrumb-trail__sep {
	color: var(--border-default);
}

.deltraux-industry-specialty .specialty-layout {
	display: flex;
	align-items: stretch;
	gap: var(--space-xl);
	padding: var(--space-md) 0 var(--space-lg);
}

.deltraux-industry-specialty .specialty-body {
	flex: 1;
	min-width: 0;
	max-width: 760px;
}

.deltraux-industry-specialty .specialty-body h2,
.deltraux-industry-specialty .specialty-body h3 {
	color: var(--text-heading);
	line-height: 1.25;
}

.deltraux-industry-specialty .specialty-body h2 {
	margin: var(--space-xl) 0 var(--space-sm);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 600;
}

.deltraux-industry-specialty .specialty-body h3 {
	margin: var(--space-lg) 0 var(--space-sm);
	font-size: clamp(21px, 2.4vw, 26px);
	font-weight: 600;
}

.deltraux-industry-specialty .specialty-body h2:first-child,
.deltraux-industry-specialty .specialty-body h3:first-child {
	margin-top: 0;
}

.deltraux-industry-specialty .specialty-body p {
	color: var(--text-body);
	font-size: 17px;
	line-height: 1.85;
}

.deltraux-industry-specialty .specialty-body > p:first-child {
	font-size: 19px;
	line-height: 1.7;
}

.deltraux-industry-specialty .specialty-body ul {
	margin: var(--space-md) 0 var(--space-md) var(--space-md);
	padding-left: var(--space-md);
	color: var(--text-body);
	font-size: 17px;
	line-height: 1.8;
}

.deltraux-industry-specialty .specialty-body ol {
	margin: var(--space-lg) 0;
	padding: 0;
	color: var(--text-body);
	font-size: 17px;
	line-height: 1.8;
	list-style: none;
	counter-reset: specialty-step;
}

.deltraux-industry-specialty .specialty-body ol > li {
	position: relative;
	margin: var(--space-sm) 0;
	padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-xl) + var(--space-md));
	border: 1px solid var(--border-default);
	border-radius: 4px;
	background: var(--bg-secondary);
	counter-increment: specialty-step;
}

.deltraux-industry-specialty .specialty-body ol > li::before {
	content: counter(specialty-step, decimal-leading-zero);
	position: absolute;
	top: var(--space-md);
	left: var(--space-md);
	width: 48px;
	color: var(--accent-primary);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1;
}

.deltraux-industry-specialty .specialty-body li {
	margin-bottom: 10px;
}

.deltraux-industry-specialty .specialty-body ol > li:last-child {
	margin-bottom: 0;
}

.deltraux-industry-specialty .specialty-body img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: var(--space-lg) 0;
	border-radius: 6px;
}

.deltraux-industry-specialty .specialty-body blockquote {
	margin: var(--space-lg) 0;
	padding: var(--space-md) var(--space-lg);
	border: 1px solid var(--border-default);
	border-left: 3px solid var(--accent-primary);
	border-radius: 4px;
	background: var(--bg-secondary);
	color: var(--text-muted);
}

.deltraux-industry-specialty .specialty-body .specialty-card {
	margin: var(--space-lg) 0;
	padding: var(--space-lg);
	border: 1px solid var(--border-default);
	border-radius: 4px;
	background: var(--bg-primary);
}

.deltraux-industry-specialty .specialty-body .specialty-card h3,
.deltraux-industry-specialty .specialty-body .specialty-card h4 {
	margin-top: 0;
}

.deltraux-industry-specialty .specialty-body .specialty-card p:last-child {
	margin-bottom: 0;
}

.deltraux-industry-specialty .specialty-definition {
	border: 1px solid var(--border-default);
	background: var(--bg-primary);
	border-radius: 4px;
	padding: var(--space-lg);
	margin: var(--space-lg) 0;
}

.deltraux-industry-specialty .specialty-definition h4,
.deltraux-industry-specialty .specialty-callout h4 {
	color: var(--text-heading);
	font-size: 18px;
	margin-bottom: var(--space-sm);
}

.deltraux-industry-specialty .specialty-definition p,
.deltraux-industry-specialty .specialty-callout p {
	font-size: 17px;
}

.deltraux-industry-specialty .specialty-definition p:last-child,
.deltraux-industry-specialty .specialty-callout p:last-child {
	margin-bottom: 0;
}

.deltraux-industry-specialty .specialty-callout {
	border: 1px solid var(--border-default);
	border-left: 3px solid var(--accent-primary);
	background: var(--bg-secondary);
	border-radius: 4px;
	padding: var(--space-lg);
	margin: var(--space-lg) 0;
}

.deltraux-industry-specialty .specialty-body figure.wp-block-table figcaption {
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--accent-primary);
	margin-top: var(--space-sm);
}

.deltraux-industry-specialty .specialty-body figure.wp-block-table {
	margin: var(--space-lg) 0;
}

.deltraux-industry-specialty .specialty-body table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--space-lg) 0;
	border: 1px solid var(--border-default);
	border-radius: 4px;
	overflow: hidden;
	font-size: 15px;
}

.deltraux-industry-specialty .specialty-body th,
.deltraux-industry-specialty .specialty-body td {
	text-align: left;
	padding: 14px 20px;
	border-bottom: 1px solid var(--border-light);
}

.deltraux-industry-specialty .specialty-body thead th {
	background: var(--bg-secondary);
	color: var(--text-heading);
	font-weight: 600;
	font-size: 13.5px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.deltraux-industry-specialty .specialty-toc {
	width: 300px;
	flex-shrink: 0;
}

.deltraux-industry-specialty .toc-sticky {
	position: sticky;
	top: calc(var(--header-height) + 24px);
	align-self: start;
	padding: 28px 26px 24px;
	border: 1px solid var(--border-default);
	border-left: 3px solid var(--accent-primary);
	border-radius: 0 8px 8px 0;
	background: var(--bg-primary);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.deltraux-industry-specialty .toc-toggle-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.deltraux-industry-specialty .toc-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border-light);
}

.deltraux-industry-specialty .toc-heading-row h2 {
	margin: 0;
	color: var(--text-heading);
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.4;
}

.deltraux-industry-specialty .toc-toggle-label {
	color: var(--accent-primary);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	white-space: nowrap;
}

.deltraux-industry-specialty .toc-toggle-label:hover {
	color: var(--accent-hover);
	text-decoration: underline;
}

.deltraux-industry-specialty .toc-toggle-label__show {
	display: none;
}

.deltraux-industry-specialty .toc-toggle-input:checked ~ .toc-heading-row .toc-toggle-label__hide {
	display: none;
}

.deltraux-industry-specialty .toc-toggle-input:checked ~ .toc-heading-row .toc-toggle-label__show {
	display: inline;
}

.deltraux-industry-specialty .toc-toggle-input:checked ~ .toc-content {
	display: none;
}

.deltraux-industry-specialty .toc-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.deltraux-industry-specialty .toc-group {
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--border-light);
}

.deltraux-industry-specialty .toc-group:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.deltraux-industry-specialty .toc-group:first-of-type {
	padding-top: 0;
}

.deltraux-industry-specialty .toc-group summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: baseline;
	gap: 8px;
	color: var(--text-heading);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
}

.deltraux-industry-specialty .toc-group summary::-webkit-details-marker {
	display: none;
}

.deltraux-industry-specialty .toc-group summary::before {
	content: '';
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	margin-top: 7px;
	border-radius: 50%;
	background: var(--accent-primary);
	opacity: 0.5;
	transition: opacity 150ms ease-out, transform 150ms ease-out;
}

.deltraux-industry-specialty .toc-group[open] summary::before {
	opacity: 1;
	transform: scale(1.2);
}

.deltraux-industry-specialty .toc-group summary:hover {
	color: var(--accent-primary);
}

.deltraux-industry-specialty .toc-group a {
	color: inherit;
	text-decoration: none;
}

.deltraux-industry-specialty .toc-subitems {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 8px 0 0;
	padding-left: 14px;
	border-left: 1px solid var(--border-default);
	list-style: none;
}

.deltraux-industry-specialty .toc-subitem {
	display: block;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.6;
	text-decoration: none;
	transition: color 150ms ease-out;
}

.deltraux-industry-specialty .toc-subitem:hover {
	color: var(--accent-primary);
}

@media (max-width: 1024px) {
	.deltraux-industry-specialty .specialty-layout {
		flex-direction: column;
		gap: var(--space-lg);
	}

	.deltraux-industry-specialty .specialty-body {
		max-width: 100%;
	}

	.deltraux-industry-specialty .specialty-toc {
		display: none;
	}
}

@media (max-width: 640px) {
	.deltraux-industry-specialty .specialty-header {
		padding: var(--space-lg) 0 var(--space-md);
	}

	.deltraux-industry-specialty .specialty-layout {
		padding: var(--space-md) 0 var(--space-md);
	}

	.deltraux-industry-specialty .specialty-body p,
	.deltraux-industry-specialty .specialty-body ul,
	.deltraux-industry-specialty .specialty-body ol {
		font-size: 16px;
	}
}

.deltraux-industry-specialty .specialty-cta {
	background: var(--bg-primary);
	padding: var(--space-md) 0 var(--space-xxl);
	margin-top: 0;
}

.deltraux-industry-specialty .specialty-cta__inner {
	max-width: none;
	margin: 0 auto;
	padding: var(--space-lg);
	border: 1px solid var(--border-default);
	border-radius: 4px;
	background: var(--bg-secondary);
	text-align: left;
}

.deltraux-industry-specialty .specialty-cta__inner h2 {
	margin-bottom: var(--space-sm);
}

.deltraux-industry-specialty .specialty-cta__inner p {
	color: var(--text-muted);
	margin-bottom: var(--space-md);
}

.deltraux-industry-specialty .specialty-cta__inner .btn {
	display: inline-block;
}

.deltraux-industry-specialty .specialty-cta__caveats {
	list-style: none;
	margin-top: var(--space-md);
	padding: 0;
	color: var(--text-muted);
	font-size: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.deltraux-industry-specialty .specialty-cta__caveats li::before {
	content: '—';
	margin-right: 4px;
}
