/*
Theme Name: Product Child
Description: Child of Twenty Twenty-Five for the Newrig New Materials site. Design system: pine-ink + emerald with a monospace data voice.
Template: twentytwentyfive
Version: 2.1.0
Requires at least: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: product-child
*/

:root {
	--ink-900: #0b1712;
	--ink-850: #10231b;
	--paper: #f6f9f6;
	--card: #ffffff;
	--line: #e2eae3;
	--text-900: #12201a;
	--text-600: #47554b;
	--text-500: #64756a;
	--brand-700: #2a5a46;
	--brand-600: #356e57;
	--sage-400: #85a095;
	--sage-300: #b3c9c0;
	--sage-100: #e3ece7;
	--amber-400: #f0a340;
	--amber-600: #b45309;
	--text-2xs: 0.7rem;
	--text-xs: 0.75rem;
	--text-sm: 0.85rem;
	--text-ui: 0.95rem;
	--track-caps: 0.08em;
	--track-caps-wide: 0.14em;
	--on-dark: rgba(255, 255, 255, 0.75);
	--on-dark-muted: rgba(255, 255, 255, 0.55);
	--hairline-dark: rgba(255, 255, 255, 0.09);
	--radius-card: 16px;
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

html {
	scroll-padding-top: 96px;
}

/* Remove the root flow gap so the dark header meets the dark hero/footer
   with no light seam (parent emits it via zero-specificity :where()). */
.wp-site-blocks > main {
	margin-block-start: 0;
}

body {
	-webkit-font-smoothing: antialiased;
	color: var(--text-900);
}

::selection {
	background: rgba(53, 110, 87, 0.24);
}

:focus-visible {
	outline: 2px solid var(--brand-600);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
	letter-spacing: -0.02em;
}

h5, h6 {
	text-transform: none;
	font-weight: 600;
}

strong, b {
	font-weight: 600;
}

/* Buttons share one type spec; surfaces only change colors. */
.wp-element-button,
.wp-block-button__link {
	font-weight: 600;
	font-size: var(--text-ui);
}

/* The wordmark must render identically everywhere (and on print). */
.wp-block-site-title {
	font-weight: 600;
	letter-spacing: -0.02em;
}

/* Category coding — WP prints product_category-{slug} on cards (li.wp-block-post)
   and functions.php adds it to <body> on single product pages. */
.product_category-pe-additive-masterbatches { --cat: #356e57; --cat-soft: #e3ece7; --cat-text: #2a5a46; }
.product_category-pp-additive-masterbatches { --cat: #c67b2c; --cat-soft: #f9eedf; --cat-text: #8a5416; }
/* Decorative hooks kept for the front-page family cards */
.product_category-smooth-masterbatch { --cat: #356e57; --cat-soft: #e3ece7; --cat-text: #2a5a46; }
.product_category-anti-adhesion-masterbatch { --cat: #c67b2c; --cat-soft: #f9eedf; --cat-text: #8a5416; }
.product_category-antistatic-agent { --cat: #46596b; --cat-soft: #e9edf1; --cat-text: #3d505e; }

/* ---------- Shared voices ---------- */

.section-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-ui);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	color: var(--brand-700);
}

.mono-note {
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	font-size: var(--text-xs);
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	color: var(--text-500);
}

/* ---------- Header ---------- */

header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 80;
}

.site-header {
	background: var(--ink-900);
	color: #fff;
	border-bottom: 1px solid transparent;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
	background: rgba(11, 23, 18, 0.86);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom-color: var(--hairline-dark);
}

.site-header .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.05rem;
	color: #fff;
	text-decoration: none;
}

.site-header .wp-block-navigation a,
.site-header .wp-block-navigation .wp-block-navigation-item__content {
	font-size: 0.9rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.78);
}

.site-header .wp-block-navigation a:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--sage-300);
	text-underline-offset: 6px;
}

.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > :last-child a {
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	padding: 0.4em 1.1em;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > :last-child a:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
}

.site-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--ink-900);
}

.site-header .wp-block-navigation__responsive-container.is-menu-open a {
	color: #fff;
	font-size: 1.3rem;
	font-weight: 600;
	border: none;
	padding: 0;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: 1.6rem;
	padding: 2rem 1.5rem;
}

.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close {
	color: #fff;
}

/* Company logo mark */
.site-header .wp-block-site-logo {
	flex-shrink: 0;
	line-height: 0;
}

.site-header .wp-block-site-logo img {
	display: block;
	width: 46px;
	height: auto;
}

/* ---------- Hero ---------- */

.hero-section {
	position: relative;
	background-color: var(--ink-900);
	background-image:
		radial-gradient(52rem 36rem at 82% -12%, rgba(53, 110, 87, 0.55), transparent 60%),
		radial-gradient(40rem 30rem at -12% 108%, rgba(240, 163, 64, 0.22), transparent 55%),
		radial-gradient(30rem 24rem at 55% 45%, rgba(179, 201, 192, 0.1), transparent 60%),
		linear-gradient(160deg, #0b1712 0%, #0e2417 55%, #0b1712 100%);
	overflow: hidden;
}

.hero-section::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		repeating-linear-gradient(to right, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 64px),
		repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 64px);
	-webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 45%, transparent 100%);
	mask-image: radial-gradient(120% 90% at 50% 0%, #000 45%, transparent 100%);
}

.hero-section::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: var(--grain);
	opacity: 0.05;
	mix-blend-mode: overlay;
}

.hero-section > * {
	position: relative;
	z-index: 1;
}

.hero-eyebrow {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: var(--track-caps-wide);
	text-transform: uppercase;
	color: var(--sage-300);
	background: rgba(179, 201, 192, 0.1);
	border: 1px solid rgba(179, 201, 192, 0.28);
	border-radius: 999px;
	padding: 0.35em 1em;
}

.hero-section h1 {
	color: #fff;
	letter-spacing: -0.03em;
}

.text-gradient {
	background: linear-gradient(90deg, #b3c9c0, #85a095);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-lede {
	color: var(--on-dark);
	font-size: 1.125rem;
	line-height: 1.6;
	max-width: 34rem;
}

.hero-section .wp-block-button__link {
	background: var(--sage-300);
	color: var(--ink-900);
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 8px;
	padding: 0.8em 1.6em;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hero-section .wp-block-button__link:hover {
	background: #c5d5cd;
	box-shadow: 0 8px 24px -8px rgba(179, 201, 192, 0.4);
}

.hero-section .is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #fff;
}

.hero-section .is-style-outline .wp-block-button__link:hover {
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: none;
}

.hero-trust {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-xs);
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	color: var(--on-dark-muted);
}

/* Glass spec card */
.hero-spec-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-radius: 16px;
	padding: 1.6rem 1.7rem;
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}

.hero-spec-card .spec-card-title {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: var(--track-caps-wide);
	text-transform: uppercase;
	color: var(--sage-300);
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin-bottom: 0.4rem;
}

.hero-spec-card .spec-card-title::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sage-300);
	box-shadow: 0 0 10px rgba(179, 201, 192, 0.8);
}

.spec-row {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	font-size: var(--text-sm);
	padding: 0.65rem 0;
	border-top: 1px solid var(--hairline-dark);
	margin: 0;
}

.spec-row .k {
	color: rgba(255, 255, 255, 0.65);
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	font-size: var(--text-2xs);
}

.spec-row .v {
	color: #fff;
	text-align: right;
}

/* ---------- Stat band ---------- */

.stat-band {
	position: relative;
	z-index: 2;
	margin-top: clamp(-4.5rem, -6vw, -3.5rem);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(12, 24, 17, 0.06), 0 24px 48px -24px rgba(12, 24, 17, 0.25);
	padding: 1.6rem 2rem;
}

.stat-band .wp-block-column {
	text-align: center;
}

.stat-band .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--line);
}

.stat-num {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	font-size: clamp(1.5rem, 2.4vw, 2.1rem);
	color: var(--text-900);
	margin: 0;
}

.stat-num.is-amber {
	color: var(--amber-600);
}

.stat-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-xs);
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	color: var(--text-500);
	margin: 0.2rem 0 0;
}

/* ---------- Family cards ---------- */

.family-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	padding: 2rem 1.8rem 1.8rem;
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.family-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--cat, var(--brand-600)), transparent 140%);
}

.family-card:hover {
	transform: translateY(-4px);
	border-color: var(--cat, var(--brand-600));
	box-shadow: 0 20px 40px -20px rgba(18, 32, 26, 0.35);
}

.family-index,
.feature-num {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-sm);
	color: var(--cat-text, var(--brand-700));
	margin: 0 0 0.8rem;
}

.family-card h3 {
	font-size: 1.4rem;
	margin: 0 0 0.6rem;
}

.family-card p {
	font-size: var(--text-ui);
	color: var(--text-600);
}

.family-link {
	font-weight: 600;
	font-size: var(--text-ui);
	margin-top: auto;
	padding-top: 0.8rem;
}

.family-link a {
	color: var(--cat-text, var(--brand-700));
	text-decoration: none;
}

.family-link a::after {
	content: "→";
	display: inline-block;
	margin-left: 0.35em;
	transition: transform 0.2s ease;
}

.family-link a:hover::after {
	transform: translateX(4px);
}

/* ---------- Product cards (shared: front page, archives, related) ---------- */

.product-grid .wp-block-post-template {
	gap: 1.5rem;
}

.product-grid .wp-block-post {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(12, 24, 17, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-grid .wp-block-post::before {
	content: "";
	display: block;
	height: 4px;
	background: var(--cat, var(--brand-600));
}

.product-grid .wp-block-post:hover {
	transform: translateY(-4px);
	border-color: var(--cat, var(--brand-600));
	box-shadow: 0 20px 40px -18px rgba(18, 32, 26, 0.3);
}

.product-grid .wp-block-post-featured-image {
	margin: 0 0 1.1rem;
}

.product-grid .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	transition: transform 0.4s ease;
}

.product-grid .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.product-grid .wp-block-post-title,
.product-grid .wp-block-post-terms,
.product-grid .wp-block-post-excerpt,
.product-grid .card-spec {
	padding-inline: 1.3rem;
	margin-block: 0;
}

.product-grid .wp-block-post-terms {
	margin-bottom: 0.6rem;
}

.product-grid .wp-block-post-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.product-grid .card-spec {
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	font-size: var(--text-xs);
	letter-spacing: 0.02em;
	color: var(--text-500);
	margin-bottom: 0.6rem;
}

.product-grid .card-spec:empty {
	display: none;
}

.product-grid .wp-block-post-excerpt {
	padding-bottom: 1.4rem;
	color: var(--text-600);
	font-size: var(--text-ui);
}

.wp-block-post-title a {
	text-decoration: none;
}

.wp-block-post-title a:hover {
	color: var(--brand-700);
}

/* ---------- Category pills ---------- */

.taxonomy-product_category a,
.crumbs .taxonomy-product_category a {
	display: inline-block;
	background: var(--cat-soft, #e7f3ea);
	color: var(--cat-text, var(--brand-700));
	border-radius: 999px;
	padding: 0.22em 0.85em;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-2xs);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	text-decoration: none;
}

/* Fallback coding on singles where no ancestor carries the term class */
.taxonomy-product_category a[href*="pe-additive-masterbatches"] { background: #e3ece7; color: #2a5a46; }
.taxonomy-product_category a[href*="pp-additive-masterbatches"] { background: #f9eedf; color: #8a5416; }

.taxonomy-product_category a:hover {
	filter: brightness(0.95);
}

/* ---------- Section tint break ---------- */

.tint-band {
	background: linear-gradient(#f6f9f6, #eef4ef 30%, #f6f9f6);
}

/* Outline buttons on light surfaces */
.is-style-outline > .wp-block-button__link {
	border: 1.5px solid var(--brand-600);
	color: var(--brand-700);
	background: transparent;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s ease;
}

.is-style-outline > .wp-block-button__link:hover {
	background: var(--brand-700);
	color: #fff;
}

/* ---------- Why band (dark) ---------- */

.why-band {
	position: relative;
	background-color: var(--ink-900);
	background-image: radial-gradient(40rem 28rem at 110% -10%, rgba(53, 110, 87, 0.4), transparent 60%);
	overflow: hidden;
}

.why-band::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: var(--grain);
	opacity: 0.05;
	mix-blend-mode: overlay;
}

.why-band > * {
	position: relative;
	z-index: 1;
}

.why-band h2 {
	color: #fff;
}

.why-band .section-eyebrow {
	color: var(--sage-300);
}

.why-band .why-lede {
	color: rgba(255, 255, 255, 0.65);
}

.feature-row {
	display: grid;
	grid-template-columns: 3.2rem 1fr;
	gap: 1.1rem;
	padding: 1.35rem 1.5rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 1rem;
	transition: background 0.2s ease;
}

.feature-row:hover {
	background: rgba(255, 255, 255, 0.07);
}

.feature-row .feature-num {
	color: var(--sage-300);
	margin: 0;
}

.feature-row h3 {
	color: #fff;
	font-size: 1.2rem;
	margin: 0 0 0.35rem;
}

.feature-row p {
	color: rgba(255, 255, 255, 0.6);
	font-size: var(--text-ui);
	margin: 0;
}

.chip-cloud {
	gap: 0.5rem !important;
}

.chip-cloud p {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-xs);
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	padding: 0.35em 0.95em;
	margin: 0;
}

/* ---------- Steps strip ---------- */

.step-card {
	position: relative;
	text-align: center;
	padding-top: 0.5rem;
}

.step-num {
	width: 3rem;
	height: 3rem;
	border-radius: 999px;
	display: grid;
	place-items: center;
	margin-inline: auto;
	background: linear-gradient(135deg, #356e57, #2a5a46);
	color: #fff;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	font-size: 1rem;
	box-shadow: 0 8px 16px -8px rgba(53, 110, 87, 0.5);
}

.step-card h3 {
	font-size: 1.2rem;
	margin: 1rem 0 0.4rem;
}

.step-card p {
	font-size: var(--text-ui);
	color: var(--text-600);
}

@media (min-width: 783px) {
	.wp-block-column:not(:last-child) .step-card::after {
		content: "";
		position: absolute;
		top: 1.95rem;
		left: calc(50% + 2.4rem);
		right: calc(-50% + 2.4rem);
		border-top: 2px dashed #c9dcce;
	}
}

/* ---------- Catalog hero (archive + taxonomy) ---------- */

.catalog-hero {
	background: linear-gradient(135deg, #e7f3ea, #f6f9f6 55%, #fdf4e7);
	border-bottom: 1px solid var(--line);
}

.catalog-hero .wp-block-query-title,
.catalog-hero .page-hero-title {
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	margin: 0.5rem 0 1rem;
}

.catalog-sub {
	color: var(--text-600);
	max-width: 40rem;
}

.catalog-filters {
	gap: 0.5rem !important;
	margin-top: 1.4rem;
}

.catalog-filters p {
	margin: 0;
}

.catalog-filters a {
	display: inline-block;
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.45em 1.1em;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--line);
	color: var(--text-600);
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.catalog-filters a:hover {
	border-color: var(--brand-600);
	color: var(--brand-700);
}

body.post-type-archive-product .catalog-filters a[href$="/products/"],
body.tax-product_category.term-pe-additive-masterbatches .catalog-filters a[href*="pe-additive-masterbatches"],
body.tax-product_category.term-pp-additive-masterbatches .catalog-filters a[href*="pp-additive-masterbatches"] {
	background: var(--ink-900);
	border-color: var(--ink-900);
	color: #fff;
}

/* ---------- Single product ---------- */

.crumbs {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-xs);
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	color: var(--text-500);
}

.crumbs a {
	color: var(--brand-700);
	text-decoration: none;
}

.crumbs a:hover {
	text-decoration: underline;
}

.media-panel {
	background: linear-gradient(160deg, var(--cat-soft, #e7f3ea), #ffffff 90%);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 1.6rem;
}

.media-panel .wp-block-post-featured-image {
	margin: 0;
}

.media-panel img {
	display: block;
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 24px 48px -24px rgba(18, 32, 26, 0.4);
}

.sku-chip {
	display: inline-block;
	position: relative;
	margin: -1.3rem 0 0 1rem;
	background: var(--ink-900);
	color: var(--sage-300);
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	font-size: var(--text-sm);
	padding: 0.45em 1em;
	border-radius: 10px;
	box-shadow: 0 8px 16px -8px rgba(12, 24, 17, 0.5);
}

.sku-chip:empty {
	display: none;
}

.media-caption {
	margin-top: 1rem;
	text-align: center;
}

@media (min-width: 883px) {
	.product-media-sticky {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 88px);
	}
}

.single-product-title {
	font-size: clamp(1.9rem, 3.2vw, 2.7rem);
	margin: 0.6rem 0 1rem;
}

.product-keyfacts {
	background: var(--cat-soft, #f1f5f3);
	border-left: 3px solid var(--cat, var(--brand-600));
	border-radius: 0 10px 10px 0;
	padding: 0.85rem 1.1rem;
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	font-size: var(--text-sm);
	line-height: 1.6;
	color: var(--cat-text, var(--brand-700));
}

.product-keyfacts:empty {
	display: none;
}

/* Numbered datasheet sections in client-edited content */
.single-product .entry-content {
	counter-reset: sec;
}

.single-product .entry-content h2 {
	counter-increment: sec;
	font-size: 1.4rem;
	margin-top: 2.4rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--line);
}

.single-product .entry-content h2::before {
	content: counter(sec, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	font-size: 0.8rem;
	color: var(--brand-600);
	margin-right: 0.8em;
	vertical-align: 0.15em;
}

/* ---------- Spec tables (TDS style) ---------- */

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
}

.wp-block-table th,
.wp-block-table td {
	border: none;
	border-bottom: 1px solid var(--line);
	padding: 0.6rem 0.9rem;
	font-size: 0.9rem;
	text-align: left;
}

.wp-block-table thead th {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	font-size: var(--text-2xs);
	letter-spacing: var(--track-caps-wide);
	text-transform: uppercase;
	color: var(--text-500);
	border-bottom: 2px solid var(--text-900);
	background: var(--paper);
}

.wp-block-table tbody tr:nth-child(even) {
	background: #fafcfa;
}

.wp-block-table tbody tr:hover {
	background: #f1f7f2;
}

.wp-block-table td:last-child,
.wp-block-table td:nth-child(3) {
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	font-size: var(--text-sm);
	color: var(--text-900);
}

/* ---------- Inquiry card ---------- */

.inquiry-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 3px solid var(--cat, var(--brand-600));
	border-radius: 12px;
	padding: 1.5rem 1.7rem;
	margin-top: 2.5rem;
}

.inquiry-card h3 {
	font-size: 1.2rem;
	margin: 0 0 0.4rem;
}

.inquiry-card p {
	font-size: var(--text-ui);
	color: var(--text-600);
	margin: 0 0 1rem;
}

.inquiry-card .wp-block-button__link {
	font-size: 0.9rem;
	border-radius: 8px;
	padding: 0.65em 1.4em;
}

/* ---------- Related grades ---------- */

.related-heading {
	font-size: 1.4rem;
}

/* ---------- CTA band (in footer part) ---------- */

.cta-band {
	position: relative;
	background-color: #143025;
	background-image:
		radial-gradient(ellipse 60% 80% at 85% 10%, rgba(53, 110, 87, 0.45), transparent 60%),
		radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
	background-size: auto, 26px 26px;
	border-radius: 24px;
	overflow: hidden;
	padding: clamp(2.5rem, 6vw, 4rem);
}

.cta-band .section-eyebrow {
	color: var(--amber-400);
}

.cta-band h2 {
	color: #fff;
	margin: 0.4rem 0 0.8rem;
}

.cta-band p {
	color: #d9e4da;
}

.cta-band .wp-block-button__link {
	background: #fff;
	color: #143025;
	font-weight: 600;
	border-radius: 10px;
	padding: 0.8em 1.6em;
	transition: background 0.2s ease;
}

.cta-band .wp-block-button__link:hover {
	background: #f2c879;
}

.cta-reply {
	font-size: var(--text-sm);
	color: #8fa694 !important;
}

/* ---------- Footer ---------- */

.site-footer {
	position: relative;
	background: var(--ink-900);
	border-top: 1px solid var(--hairline-dark);
	overflow: hidden;
}

.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 14px 14px;
	-webkit-mask-image: radial-gradient(420px 260px at 100% 0%, #000, transparent 70%);
	mask-image: radial-gradient(420px 260px at 100% 0%, #000, transparent 70%);
}

.site-footer > * {
	position: relative;
	z-index: 1;
}

.site-footer .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--heading);
	color: #fff;
	text-decoration: none;
}

.site-footer .wp-block-site-tagline {
	color: var(--on-dark-muted);
	font-size: 0.85rem;
}

.footer-blurb {
	color: var(--on-dark-muted);
	font-size: 0.9rem;
	max-width: 320px;
}

.footer-col-title {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-2xs);
	letter-spacing: var(--track-caps-wide);
	text-transform: uppercase;
	color: var(--sage-400);
	margin-bottom: 0.6rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	font-size: var(--text-ui);
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--sage-300);
	text-underline-offset: 4px;
}

.footer-email,
.footer-email a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-sm);
	color: var(--sage-300);
}

.footer-legal {
	border-top: 1px solid var(--hairline-dark);
	margin-top: 3rem;
	padding-top: 1.5rem;
}

.footer-legal p {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
}

.footer-signoff {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-2xs);
	letter-spacing: var(--track-caps-wide);
	text-transform: uppercase;
	color: var(--on-dark-muted) !important;
}


/* ---------- Inquiry form ---------- */

.ni-form-wrap {
	max-width: 720px;
}

.ni-notice {
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-size: var(--text-ui);
}

.ni-notice-success {
	background: var(--sage-100);
	border: 1px solid var(--brand-600);
	color: var(--brand-700);
}

.ni-notice-error {
	background: #fdf0ec;
	border: 1px solid #c0522b;
	color: #93401f;
}

.ni-section-title {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: var(--track-caps-wide);
	text-transform: uppercase;
	color: var(--brand-700);
	border-top: 1px solid var(--line);
	padding-top: 1.8rem;
	margin: 2.2rem 0 1.2rem;
}

.ni-form .ni-section-title:first-of-type {
	border-top: none;
	padding-top: 0;
	margin-top: 0.5rem;
}

.ni-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.5rem;
}

@media (max-width: 640px) {
	.ni-grid {
		grid-template-columns: 1fr;
	}
}

.ni-field {
	display: block;
	margin-bottom: 1.4rem;
}

.ni-grid .ni-field {
	margin-bottom: 0;
}

.ni-label {
	display: block;
	font-weight: 600;
	font-size: var(--text-ui);
	margin-bottom: 0.45rem;
}

.ni-label em {
	color: #c0522b;
	font-style: normal;
}

.ni-hint {
	display: block;
	font-size: var(--text-sm);
	color: var(--text-500);
	margin: -0.2rem 0 0.55rem;
}

.ni-form input[type="text"],
.ni-form input[type="email"],
.ni-form textarea {
	width: 100%;
	background: var(--card);
	border: 1px solid #cdd8d0;
	border-radius: 8px;
	padding: 0.65rem 0.85rem;
	font: inherit;
	font-size: var(--text-ui);
	color: var(--text-900);
}

.ni-form input:focus-visible,
.ni-form textarea:focus-visible {
	outline: 2px solid var(--brand-600);
	outline-offset: 0;
	border-color: var(--brand-600);
}

.ni-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ni-chip {
	position: relative;
	cursor: pointer;
}

.ni-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.ni-chip span {
	display: inline-block;
	border: 1px solid #cdd8d0;
	background: var(--card);
	border-radius: 999px;
	padding: 0.4em 1.05em;
	font-size: var(--text-ui);
	font-weight: 500;
	color: var(--text-600);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ni-chip:hover span {
	border-color: var(--brand-600);
	color: var(--brand-700);
}

.ni-chip input:checked + span {
	background: var(--brand-700);
	border-color: var(--brand-700);
	color: #fff;
}

.ni-chip input:focus-visible + span {
	outline: 2px solid var(--brand-600);
	outline-offset: 2px;
}

.ni-dim {
	opacity: 0.45;
}

.ni-missing .ni-label {
	color: #93401f;
}

.ni-missing .ni-chip span {
	border-color: #c0522b;
}

.ni-form input[type="file"] {
	font-size: var(--text-sm);
	color: var(--text-600);
}

.ni-hp {
	position: absolute !important;
	left: -9999px;
}

.ni-submit {
	margin-top: 2rem;
}

.ni-submit button {
	cursor: pointer;
	border: none;
	border-radius: 8px;
	padding: 0.85em 2em;
}


/* ---------- Homepage v2 sections ---------- */

.hero-center {
	text-align: center;
}

.hero-center .hero-lede {
	margin-inline: auto;
}

.mini-strip {
	margin: 1.2rem 0 0.4rem;
}

.mini-strip .wp-block-post-template {
	gap: 0.8rem;
}

.mini-strip .wp-block-post {
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	background: var(--card);
}

.mini-strip img {
	display: block;
	width: 100%;
}

.featured-grid .wp-block-post-title {
	font-size: 1rem;
}

.featured-grid .card-spec {
	padding-bottom: 1.2rem;
}

.why-band .feature-row {
	display: block;
	height: 100%;
	margin-bottom: 0;
}

.why-band .feature-row .feature-num {
	margin-bottom: 0.7rem;
}

.app-grid {
	gap: 1.25rem !important;
}

.app-card {
	margin: 0;
	width: 200px;
	max-width: 100%;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(12, 24, 17, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px -14px rgba(18, 32, 26, 0.28);
}

.app-card img {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
}

.app-card figcaption {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--text-2xs);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	color: var(--text-600);
	text-align: center;
	padding: 0.7rem 0.5rem;
}

img[src*="about-newrig"] {
	border-radius: var(--radius-card);
	border: 1px solid var(--line);
	box-shadow: 0 20px 40px -20px rgba(18, 32, 26, 0.3);
}

/* ---------- Scroll reveals (gated: JS present + motion OK) ---------- */

@media (prefers-reduced-motion: no-preference) {
	html.js [data-reveal] {
		opacity: 0;
		transform: translateY(14px);
		transition: opacity 0.6s ease, transform 0.6s ease;
	}

	html.js [data-reveal].in-view {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
	.stat-band {
		padding: 1.2rem 1rem;
	}

	.stat-band .wp-block-column + .wp-block-column {
		border-left: none;
	}
}
