/**
 * 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;
}

/* ---- Cool-grey palette for Handling & Chemical sections ------------------
 * Matches the Lovable design: #f1f2f4 page, #f7f8fa cards, #d3d6db borders.
 * Scoped so [neuro_coa] keeps its original look. */

.npg-coa,
.npg-handling,
.npg-chem {
	--npg-accent: #004e97;
	--npg-ink: #091628;
	--npg-muted: #4a5666;
	--npg-border: #d3d6db;
	--npg-surface: #f7f8fa;
}

/* ---- Section header ------------------------------------------------------
 * Exact WhatFont values from the design (shared by COA, Storage, Chemical):
 *   eyebrow  Inter 600 / 12px / rgb(0,78,151)
 *   heading  Fraunces 500 / 40px / line-height 44px / rgb(9,22,40)
 * Doubled selectors so the theme or Elementor can't override them. */

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

.npg-section .npg-section__eyebrow {
	margin: 0 0 10px;
	font-family: var(--npg-sans);
	font-size: 12px;
	font-weight: 600;
	font-style: normal;
	line-height: normal;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #004e97;
}

.npg-section .npg-section__heading {
	margin: 0;
	font-family: var(--npg-serif);
	font-weight: 500;
	font-style: normal;
	font-size: 40px;
	line-height: 44px;
	letter-spacing: 0;
	color: #091628;
}

@media ( max-width: 600px ) {
	.npg-section .npg-section__heading {
		font-size: 30px;
		line-height: 34px;
	}
}

.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: 22px 24px;
	background: var(--npg-surface);
	border: 1px solid var(--npg-border);
	border-radius: 2px;
}

.npg-handling__num {
	font-family: var(--npg-serif);
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	color: var(--npg-accent);
	flex: 0 0 auto;
	min-width: 18px;
	padding-top: 5px;
}

.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: 14px;
	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;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: var(--npg-surface);
	border: 1px solid var(--npg-border);
	border-radius: 2px;
	overflow: hidden;
}

.npg-chem__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

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

.npg-chem__table {
	margin: 0;
	background: var(--npg-surface);
	border: 1px solid var(--npg-border);
	border-radius: 2px;
}

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

.npg-chem .npg-chem__rowline:last-child {
	border-bottom: 0;
}

/* Exact Lovable values (WhatFont): label Inter 400 / 12px / 16px, value Inter 400 / 14px / 20px.
 * Doubled class selectors so the theme or Elementor can't override them. */
.npg-chem .npg-chem__label {
	margin: 0;
	font-family: var(--npg-sans);
	font-size: 12px;
	font-weight: 400;
	font-style: normal;
	line-height: 16px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--npg-muted);
}

.npg-chem .npg-chem__value {
	margin: 0;
	font-family: var(--npg-sans);
	font-size: 14px;
	font-weight: 400;
	font-style: normal;
	line-height: 20px;
	letter-spacing: 0;
	color: var(--npg-ink);
	text-align: right;
}

.npg-chem .npg-chem__caption {
	margin: 18px 0 0;
	font-family: var(--npg-sans);
	font-size: 14px;
	font-weight: 400;
	line-height: 22.75px;
	color: var(--npg-muted);
}

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