/**
 * Neuro Product Grid — single-product content sections.
 *
 * Shared styling for the [neuro_coa], [neuro_handling] and
 * [neuro_chemical_properties] shortcodes. Tokens live on .npg-section so a theme
 * or Elementor can recolour without touching this file. Backgrounds are kept
 * transparent so the shortcodes inherit the tab's own cream surface.
 */

.npg-section {
	--npg-accent: #214d97;
	--npg-ink: #0d1528;
	--npg-muted: #6b7180;
	--npg-border: #e3e0d8;
	--npg-surface: #faf8f3;
	--npg-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--npg-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	font-family: var(--npg-sans);
	color: var(--npg-ink);
	max-width: 1100px;
}

.npg-section * {
	box-sizing: border-box;
}

/* ---- Section header ------------------------------------------------------ */

.npg-section__head {
	margin: 0 0 26px;
}

.npg-section__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--npg-accent);
}

.npg-section__heading {
	margin: 0;
	font-family: var(--npg-serif);
	font-weight: 500;
	font-size: clamp( 28px, 4vw, 40px );
	line-height: 1.1;
	color: var(--npg-ink);
}

.npg-section__intro {
	margin: 0 0 26px;
	max-width: 70ch;
	font-size: 16px;
	line-height: 1.6;
	color: var(--npg-muted);
}

/* ---- COA download list --------------------------------------------------- */

.npg-coa__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.npg-coa__link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	background: var(--npg-surface);
	border: 1px solid var(--npg-border);
	border-radius: 3px;
	text-decoration: none;
	color: var(--npg-ink);
	transition: border-color 0.18s ease, background 0.18s ease;
}

.npg-coa__link:hover,
.npg-coa__link:focus-visible {
	border-color: var(--npg-accent);
	background: #fff;
}

.npg-coa__index {
	font-family: var(--npg-serif);
	font-size: 14px;
	color: var(--npg-accent);
	flex: 0 0 auto;
}

.npg-coa__meta {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.npg-coa__name {
	font-weight: 600;
	font-size: 16px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.npg-coa__sub {
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--npg-muted);
}

.npg-coa__action {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--npg-border);
	border-radius: 50%;
	color: var(--npg-accent);
	font-size: 15px;
}

.npg-coa__link:hover .npg-coa__action {
	border-color: var(--npg-accent);
	background: var(--npg-accent);
	color: #fff;
}

/* ---- Handling & storage -------------------------------------------------- */

.npg-handling__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
	counter-reset: none;
}

.npg-handling__item {
	display: flex;
	align-items: flex-start;
	gap: 22px;
	padding: 24px 26px;
	background: var(--npg-surface);
	border: 1px solid var(--npg-border);
	border-radius: 3px;
}

.npg-handling__num {
	font-family: var(--npg-serif);
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--npg-accent);
	flex: 0 0 auto;
	padding-top: 4px;
}

.npg-handling__body {
	flex: 1 1 auto;
	min-width: 0;
}

.npg-handling__title {
	margin: 0 0 8px;
	font-family: var(--npg-serif);
	font-weight: 500;
	font-size: 19px;
	line-height: 1.25;
	color: var(--npg-ink);
}

.npg-handling__desc {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--npg-muted);
}

/* ---- Chemical properties ------------------------------------------------- */

.npg-chem__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.npg-chem__figure {
	margin: 0;
	background: #f6efd9;
	border: 1px solid var(--npg-border);
	border-radius: 3px;
	overflow: hidden;
}

.npg-chem__image {
	display: block;
	width: 100%;
	height: auto;
}

.npg-chem__panel {
	min-width: 0;
}

.npg-chem__table {
	margin: 0;
	border-top: 1px solid var(--npg-border);
}

.npg-chem__rowline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 4px;
	border-bottom: 1px solid var(--npg-border);
}

.npg-chem__label {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--npg-muted);
}

.npg-chem__value {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--npg-ink);
	text-align: right;
}

.npg-chem__caption {
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--npg-muted);
}

@media ( max-width: 782px ) {
	.npg-chem__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
