/* ==========================================================================
   Application pages (page-animal-reproduction.php / page-lab-research.php)
   Reuses the site-wide decoration vocabulary:
   - light teal page hero (mirrors About / FAQ)
   - 8-chamber SVG divider (#ds-8chamber, defined in the template)
   - teal spec table (.ds-table-wrapper / .ds-spec-table from style.css)
   - pain-point card grid, scenario list, citation block, CTA
   - custom footer with 8-chamber mark (from style.css)
   Loaded only on the two application templates. No new visual language.
   ========================================================================== */

/* Kill Astra's default content padding / flex so our layout controls the page */
.depthslide-animal #primary,
.depthslide-lab #primary {
	padding: 0 !important;
	margin: 0 !important;
}

.depthslide-animal .ast-container,
.depthslide-lab .ast-container {
	max-width: 100% !important;
	padding: 0 !important;
	flex-direction: column !important;
}

.depthslide-animal *,
.depthslide-animal *::before,
.depthslide-animal *::after,
.depthslide-lab *,
.depthslide-lab *::before,
.depthslide-lab *::after {
	box-sizing: border-box;
}

/* Shared centered container (mirrors About / FAQ) */
.depthslide-animal .ds-container,
.depthslide-lab .ds-container {
	max-width: var(--ds-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* --- Inner-page hero (light teal band, identical to About / FAQ) --- */
.ds-page-hero {
	background: linear-gradient(135deg, #e8f4f6 0%, #f7f9fa 100%);
	padding: clamp(56px, 9vw, 96px) 0 clamp(36px, 6vw, 56px);
	border-bottom: 1px solid var(--ds-border);
	text-align: center;
}

.ds-page-hero h1 {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 800;
	color: var(--ds-text);
	letter-spacing: -0.02em;
	margin: 0 0 16px;
	line-height: 1.2;
}

.ds-page-hero p {
	max-width: 720px;
	margin: 0 auto;
	font-size: clamp(0.95rem, 1.6vw, 1.1rem);
	color: var(--ds-text-muted);
	line-height: 1.6;
}

/* --- Alternate section background for visual rhythm --- */
.ds-section-alt {
	background: var(--ds-bg-alt);
}

/* --- Pain-point card grid (Animal page) --- */
.ds-pain-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 8px;
}

.ds-pain-card {
	background: var(--ds-white);
	border: 1px solid var(--ds-border);
	border-radius: var(--ds-radius);
	padding: 24px 26px;
	border-top: 3px solid var(--ds-primary);
}

.ds-pain-card h3 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ds-text);
	margin: 0 0 10px;
}

.ds-pain-card p {
	margin: 0;
	color: var(--ds-text-muted);
	line-height: 1.6;
	font-size: 0.95rem;
}

/* --- Scenario list (both pages) --- */
.ds-scenarios {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 28px;
}

.ds-scenarios li {
	position: relative;
	padding-left: 28px;
	color: var(--ds-text);
	line-height: 1.5;
	font-size: 1rem;
}

.ds-scenarios li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ds-primary);
}

/* --- Academic citation block (Lab page) --- */
.ds-citation {
	background: var(--ds-bg-alt);
	border: 1px solid var(--ds-border);
	border-left: 3px solid var(--ds-accent);
	border-radius: var(--ds-radius);
	padding: 22px 26px;
	margin-bottom: 28px;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--ds-text);
}

.ds-citation p {
	margin: 0 0 12px;
}

.ds-citation p:last-child {
	margin-bottom: 0;
}

.ds-citation i {
	font-style: italic;
}

/* --- CTA block (shared) --- */
.ds-app-cta {
	text-align: center;
}

.ds-app-cta-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 26px;
}

/* --- Mobile tweaks --- */
@media (max-width: 768px) {
	.ds-pain-grid {
		grid-template-columns: 1fr;
	}

	.ds-scenarios {
		grid-template-columns: 1fr;
	}

	.ds-app-cta-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ds-app-cta-actions .ds-btn {
		width: 100%;
	}

	/* Spec table -> card layout on small screens (mirrors homepage behaviour) */
	.ds-spec-table thead {
		display: none;
	}

	.ds-spec-table,
	.ds-spec-table tbody {
		display: block;
		width: 100%;
	}

	.ds-spec-table tbody tr {
		display: flex;
		flex-direction: column;
		margin-bottom: 16px;
		border: 1px solid var(--ds-border);
		border-radius: 8px;
		background: #ffffff;
		overflow: hidden;
	}

	.ds-spec-table tbody tr td:first-child {
		display: block;
		width: 100%;
		text-align: center;
		font-weight: 700;
		padding: 14px 16px;
		background: var(--ds-bg-alt);
		box-shadow: 0 2px 0 0 var(--ds-border);
	}

	.ds-spec-table tbody tr td:not(:first-child) {
		display: flex;
		padding: 10px 12px;
		box-shadow: 0 1px 0 0 var(--ds-border) inset;
		font-size: 0.875rem;
	}

	.ds-spec-table tbody tr td:not(:first-child)::before {
		content: attr(data-label);
		flex: 0 0 90px;
		font-weight: 700;
		font-size: 0.75rem;
		color: var(--ds-primary);
		text-transform: uppercase;
		letter-spacing: 0.03em;
	}

	.ds-spec-table tbody tr td:not(:first-child):last-child {
		box-shadow: none;
	}
}

/* ================================================================
   Split Layout — Product Photo + Content (scene pages)
   ================================================================ */
.ds-split {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 36px;
	align-items: center;
	margin: 32px 0;
}

.ds-split-reverse {
	grid-template-columns: 7fr 5fr;
}

.ds-split-media {
	margin: 0;
	background: #0a1628;
	border-radius: var(--ds-radius);
	overflow: hidden;
	box-shadow: var(--ds-shadow);
}

.ds-split-img {
	display: block;
	width: 100%;
	height: auto;
}

.ds-split-media .ds-product-caption {
	text-align: left;
	padding: 10px 16px;
}

@media (max-width: 900px) {
	.ds-split,
	.ds-split-reverse {
		grid-template-columns: 1fr;
	}
}
