/**
 * Styles for the noise reduction guide
 *
 * @copyright   2026, ON1
 *
 * An educational guide rather than a product page: a hero with the short
 * answer and a before/after, then a long article with a sticky table of
 * contents, then the FAQs. Every band follows the theme on --bg-900, the page
 * default; the cards inside are the one-step-lighter --bg-800. The ON1
 * Guarantee is injected by partials/footer.php.
 *
 * Everything is scoped to the body id, which keeps these rules clear of the
 * #faqs and .eyebrow vocabulary base.css owns under the same names.
 */

/* !- Hero */
#noise-reduction #hero {
	padding: 4rem 0 5rem;
}

#noise-reduction .nr-crumbs {
	color: var(--text-500);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--text-xs);
	gap: 0.5rem;
	list-style: none;
	margin: 0 0 1.125rem;
	padding: 0;
}

#noise-reduction .nr-crumbs li {
	margin-bottom: 0;
}

#noise-reduction .nr-crumbs li + li::before {
	content: '/';
	margin-right: 0.5rem;
	opacity: 0.6;
}

#noise-reduction .nr-crumbs a {
	color: var(--text-500);
	text-decoration: none;
}

#noise-reduction .nr-crumbs a:hover {
	color: var(--text-50);
}

#noise-reduction #hero h1 {
	font-size: 2.75rem;
	letter-spacing: -0.015em;
	line-height: 1.12;
	margin-bottom: 0.75rem;
}

#noise-reduction .nr-updated {
	color: var(--text-500);
	font-size: var(--text-xs);
	margin-bottom: 1.625rem;
}

@media (max-width: 575.98px) {
	#noise-reduction #hero h1 {
		font-size: 2rem;
	}
}

#noise-reduction .nr-grad {
	-webkit-background-clip: text;
	background: linear-gradient(-40deg, var(--blue-500), var(--purple-500));
	background-clip: text;
	color: transparent;
}

#noise-reduction .nr-answer {
	background: var(--bg-800);
	border-radius: var(--border-radius);
	color: var(--text-300);
	padding: 1.5rem 1.625rem;
}

#noise-reduction .nr-answer .eyebrow {
	margin-bottom: 0.5rem;
}

#noise-reduction .nr-meta {
	color: var(--text-500);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--text-xs);
	gap: 0.5rem 1.375rem;
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
}

#noise-reduction .nr-meta li {
	margin-bottom: 0;
}

#noise-reduction .nr-meta i {
	color: var(--blue-500);
	margin-right: 0.375rem;
}

/* !- Before/after: the site's <image-compare> component */
#noise-reduction image-compare img {
	border-radius: var(--border-radius);
}

#noise-reduction .nr-caption {
	color: var(--text-500);
	font-size: var(--text-xs);
	font-style: italic;
	margin: 0.75rem 0 0;
	text-align: center;
}

/* !- Guide
 *
 * The TOC pins below #site-header from lg up. Its height isn't known to CSS,
 * so noise-reduction.js measures it into --nr-offset; the fallback keeps the
 * TOC usable if that never runs. */
#noise-reduction #guide {
	border-top: 1px solid var(--bg-700);
	padding: 5rem 0 5.5rem;
}

@media (min-width: 992px) {
	#noise-reduction .nr-toc {
		position: sticky;
		top: calc(var(--nr-offset, 5rem) + 1.5rem);
	}
}

/* More air between the TOC and the article once the container is wide enough
   to spare it. An offset column was too much. */
@media (min-width: 1200px) {
	#noise-reduction #guide article {
		padding-left: 1.5rem;
	}
}

#noise-reduction .nr-toc-title {
	color: var(--text-50);
	font-size: var(--text-micro);
	font-weight: 700;
	letter-spacing: 0.14em;
	margin-bottom: 0.875rem;
	text-transform: uppercase;
}

#noise-reduction .nr-toc ol {
	border-left: 2px solid var(--bg-700);
	list-style: none;
	margin: 0;
	padding: 0;
}

#noise-reduction .nr-toc li {
	margin-bottom: 0;
}

#noise-reduction .nr-toc ol a {
	border-left: 2px solid transparent;
	color: var(--text-300);
	display: block;
	font-size: var(--text-sm);
	line-height: 1.4;
	margin-left: -2px;
	padding: 0.5rem 0 0.5rem 1rem;
	text-decoration: none;
}

#noise-reduction .nr-toc ol a:hover,
#noise-reduction .nr-toc ol a.active {
	border-left-color: var(--blue-500);
	color: var(--text-50);
}

#noise-reduction .nr-toc ol a.active {
	font-weight: 600;
}

#noise-reduction .nr-toc-promo {
	background: var(--bg-800);
	border-radius: var(--border-radius);
	color: var(--text-300);
	font-size: var(--text-sm);
	margin-top: 1.875rem;
	padding: 1.25rem;
}

#noise-reduction .nr-toc-promo img {
	border-radius: 22%;
}

#noise-reduction .nr-toc-promo p {
	margin-bottom: 0.875rem;
}

#noise-reduction .nr-toc-promo .nr-toc-promo-name {
	color: var(--text-50);
	font-size: var(--text-base);
	font-weight: 700;
	margin: 1.25rem 0 0.375rem;
}

#noise-reduction .nr-toc-promo a {
	font-weight: 600;
	text-decoration: none;
}

#noise-reduction .nr-section {
	border-bottom: 1px solid var(--bg-700);
	margin-bottom: 3.5rem;
	padding-bottom: 3.5rem;
	scroll-margin-top: calc(var(--nr-offset, 5rem) + 1.5rem);
}

#noise-reduction .nr-section:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

#noise-reduction .nr-section h2 {
	font-weight: 800;
	letter-spacing: -0.015em;
	margin-bottom: 1.125rem;
}

@media (max-width: 575.98px) {
	#noise-reduction .nr-section h2 {
		font-size: 1.5625rem;
	}
}

#noise-reduction .nr-section > p {
	margin-bottom: 1.125rem;
}

#noise-reduction .nr-section h3 {
	font-size: var(--text-lg);
	margin-bottom: 0.5rem;
}

/* !- Cards: noise types and the AI vs traditional pair */
#noise-reduction .nr-card {
	background: var(--bg-800);
	border-radius: var(--border-radius);
	color: var(--text-300);
	font-size: var(--text-sm);
	padding: 1.25rem 1.375rem 1.375rem;
}

/* Noise-type swatches: 100% crops, bled to the card's edges by negative
   margins that cancel the card's padding. */
#noise-reduction .nr-type {
	overflow: hidden;
}

#noise-reduction .nr-swatch {
	display: block;
	height: auto;
	margin: -1.25rem -1.375rem 1.25rem;
	max-width: none;
	width: calc(100% + 2.75rem);
}

#noise-reduction .nr-type-pill {
	margin-bottom: 0.625rem;
}

#noise-reduction .nr-card-ai {
	background: linear-gradient(-40deg, color-mix(in srgb, var(--blue-500) 10%, transparent), color-mix(in srgb, var(--purple-500) 10%, transparent)), var(--bg-800);
}

#noise-reduction .nr-card ul {
	list-style: none;
	margin: 0.875rem 0 0;
	padding: 0;
}

#noise-reduction .nr-card li {
	display: flex;
	gap: 0.625rem;
	margin-bottom: 0.5625rem;
}

#noise-reduction .nr-card li::before {
	background: var(--text-500);
	border-radius: 50%;
	content: '';
	flex: none;
	height: 6px;
	margin-top: 0.4375rem;
	width: 6px;
}

#noise-reduction .nr-card-ai li::before {
	background: var(--blue-500);
}

#noise-reduction .nr-pill {
	background: var(--bg-700);
	border-radius: 1.25rem;
	color: var(--text-300);
	font-size: var(--text-micro);
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 0.25rem 0.625rem;
	text-transform: uppercase;
}

#noise-reduction .nr-pill-red {
	background: color-mix(in srgb, var(--red-500) 12%, transparent);
	color: var(--red-500);
}

/* --red-500 is 3.2:1 on the light page; the 700 step clears 4.5:1. */
[data-theme="light"] #noise-reduction .nr-pill-red {
	color: var(--red-700);
}

#noise-reduction .nr-vs {
	margin-bottom: 1.625rem;
	margin-top: 0.5rem;
}

/* !- Causes */
#noise-reduction .nr-cause {
	background: var(--bg-800);
	border-radius: var(--border-radius);
	color: var(--text-300);
	display: flex;
	font-size: var(--text-sm);
	gap: 1rem;
	padding: 1.25rem;
}

#noise-reduction .nr-cause h3 {
	font-size: var(--text-base);
	margin-bottom: 0.3125rem;
}

#noise-reduction .nr-cause-icon {
	align-items: center;
	background: var(--blue-transparent);
	border-radius: 50%;
	color: var(--link-alt);
	display: flex;
	flex: none;
	height: 2.5rem;
	justify-content: center;
	width: 2.5rem;
}

/* !- Numbered steps */
#noise-reduction .nr-steps {
	counter-reset: nr-step;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

#noise-reduction .nr-steps li {
	background: var(--bg-800);
	border-radius: var(--border-radius);
	color: var(--text-300);
	counter-increment: nr-step;
	margin-bottom: 0;
	padding: 1.125rem 1.375rem 1.125rem 4.25rem;
	position: relative;
}

#noise-reduction .nr-steps li::before {
	align-items: center;
	background: var(--blue-500);
	border-radius: 50%;
	color: var(--white);
	content: counter(nr-step);
	display: flex;
	font-size: var(--text-sm);
	font-weight: 700;
	height: 1.875rem;
	justify-content: center;
	left: 1.375rem;
	position: absolute;
	top: 1.0625rem;
	width: 1.875rem;
}

#noise-reduction .nr-steps strong {
	color: var(--text-50);
}

#noise-reduction .nr-section > p.nr-tip {
	align-items: flex-start;
	background: var(--blue-transparent);
	border-radius: var(--border-radius);
	display: flex;
	font-size: var(--text-sm);
	gap: 0.75rem;
	margin: 1.25rem 0 0;
	padding: 1rem 1.25rem;
}

#noise-reduction .nr-tip i {
	color: var(--link-alt);
	margin-top: 0.25rem;
}

#noise-reduction .nr-figure {
	margin: 0;
}

/* !- NoNoise AI */
#noise-reduction .nr-product {
	background: var(--bg-800);
	border-radius: var(--border-radius);
	margin-bottom: 1.625rem;
	overflow: hidden;
}

#noise-reduction .nr-product-top {
	align-items: flex-start;
	color: var(--text-300);
	display: flex;
	gap: 1.5rem;
	padding: 1.75rem 1.875rem 1.5rem;
}

@media (max-width: 575.98px) {
	#noise-reduction .nr-product-top {
		flex-direction: column;
	}
}

#noise-reduction .nr-product-top img {
	border-radius: 22%;
	flex: none;
}

#noise-reduction .nr-product-top p {
	margin: 0;
}

#noise-reduction .nr-hosts {
	align-items: center;
	border-top: 1px solid var(--bg-700);
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	list-style: none;
	margin: 0;
	padding: 1rem 1.875rem;
}

#noise-reduction .nr-hosts li {
	background: var(--bg-700);
	border-radius: var(--border-radius);
	color: var(--text-300);
	font-size: var(--text-mini);
	margin-bottom: 0;
	padding: 0.25rem 0.4375rem;
}

#noise-reduction .nr-hosts li.nr-hosts-label {
	background: none;
	color: var(--text-500);
	font-size: var(--text-micro);
	font-weight: 700;
	letter-spacing: 0.1em;
	margin-right: 0.25rem;
	padding: 0;
	text-transform: uppercase;
}

#noise-reduction .nr-video {
	align-items: center;
	background: var(--bg-800);
	border-radius: var(--border-radius);
	display: flex;
	gap: 1.125rem;
	margin-top: 1.375rem;
	padding: 0.875rem;
	text-decoration: none;
}

#noise-reduction .nr-video-thumb {
	border-radius: var(--border-radius);
	flex: none;
	overflow: hidden;
	position: relative;
}

#noise-reduction .nr-video-thumb img {
	display: block;
	height: 4.625rem;
	object-fit: cover;
	width: 8.25rem;
}

@media (max-width: 575.98px) {
	#noise-reduction .nr-video-thumb img {
		height: 3.375rem;
		width: 6rem;
	}
}

#noise-reduction .nr-video-thumb i {
	color: #ffffff;
	font-size: 1.5rem;
	left: 50%;
	position: absolute;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
	top: 50%;
	transform: translate(-50%, -50%);
}

#noise-reduction .nr-video .eyebrow {
	display: block;
	margin-bottom: 0.25rem;
}

#noise-reduction .nr-video-title {
	color: var(--text-50);
	display: block;
	font-weight: 700;
}

#noise-reduction .nr-video:hover .nr-video-title {
	color: var(--link-alt);
}

#noise-reduction #nr-cta {
	background: linear-gradient(-40deg, color-mix(in srgb, var(--blue-500) 14%, transparent), color-mix(in srgb, var(--purple-500) 14%, transparent)), var(--bg-800);
	border-radius: var(--border-radius);
	margin-top: 1.875rem;
	padding: 2.5rem 2.125rem;
	text-align: center;
}

#noise-reduction #nr-cta h3 {
	font-weight: 800;
	letter-spacing: -0.01em;
}

#noise-reduction #nr-cta p {
	color: var(--text-300);
}

#noise-reduction #nr-cta .btn {
	font-size: var(--text-sm);
	padding: 0.75rem 1.25rem;
}

#noise-reduction .nr-cta-proof {
	color: var(--text-500);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--text-xs);
	gap: 0.5rem 1.25rem;
	justify-content: center;
	list-style: none;
	margin: 1.125rem 0 0;
	padding: 0;
}

#noise-reduction .nr-cta-proof li {
	margin-bottom: 0;
}

/* !- FAQs: base.css owns the component; this only separates the band. */
#noise-reduction #faqs {
	border-top: 1px solid var(--bg-700);
	scroll-margin-top: var(--nr-offset, 5rem);
}
