/*
Theme Name: Northline
Theme URI: https://example.com/northline
Author: Northline
Author URI: https://example.com
Description: Northline is a premium, general-purpose WooCommerce theme for stores that want a calm, editorial, flagship-grade storefront. It ships a full Customizer-driven Theme Options panel, a modular homepage builder, a product compare system, and a restrained motion layer — with no page builder dependency.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: northline
Tags: e-commerce, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
WC requires at least: 7.0
WC tested up to: 9.1

Northline is distributed under the GNU General Public License v2 or later.
Third-party asset licenses are documented in docs/documentation.html.
*/

/* =============================================================================
   1. Design tokens
   All colour, spacing, radius, motion and type values live here as custom
   properties. Never hardcode these values in component CSS.
   ========================================================================== */

:root {
	/*
	 * The palette runs warm. A neutral grey reads as software; the same values
	 * pulled a few degrees towards stone read as paper, and that is most of the
	 * difference between a shop that looks built and one that looks considered.
	 * The hues stay close enough together that nothing fights the product
	 * photography, which is the only saturated thing on most pages.
	 */

	/* Surfaces */
	--nl-base: #ffffff;
	--nl-surface: #ffffff;
	--nl-surface-sunken: #f3f6fa;
	--nl-dark: #0b1220;
	--nl-dark-surface: #151d2e;

	/* Ink */
	--nl-ink: #111827;
	/*
	 * Measured, not chosen by eye: the lightest warm grey that still clears
	 * WCAG AA (4.5:1) for normal-size text on all three light surfaces — base
	 * 4.95, surface 5.16, sunken 4.73. Lightening it any further fails the
	 * sunken surface first.
	 */
	--nl-ink-muted: #596273;
	--nl-ink-on-dark: #f3f6fa;
	--nl-ink-on-dark-muted: #a3adbd;

	/*
	 * Stock and order status. WooCommerce ships its own greens and reds for
	 * these, and they are set for a lighter default theme — its in-stock green
	 * measures 2.19:1 here, well under AA. These are the darkest-but-still-
	 * legibly-hued values that clear 4.5:1 on all three light surfaces; the
	 * worst case is the sunken surface, where they measure 5.57, 5.33 and 5.93.
	 */
	--nl-status-positive: #14713a;
	--nl-status-caution: #9a5308;
	--nl-status-negative: #b91c1c;

	/* Lines */
	--nl-line: #e5e9f0;
	--nl-line-strong: #cfd6e1;
	--nl-line-on-dark: #26324a;

	/*
	 * Overridden per collection by the Customizer. Gold rather than a brand
	 * blue: it passes both floors that matter here — 4.92:1 for white button
	 * text on it, 4.71:1 for a link on the page background — and it reads as
	 * considered rather than corporate.
	 */
	--nl-accent: #0b63ce;
	--nl-accent-ink: #ffffff;
	--nl-accent-soft: rgba(11, 99, 206, 0.1);

	/* Type */
	--nl-font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--nl-font-body: var(--nl-font-sans);
	--nl-font-heading: var(--nl-font-sans);

	/*
	 * Three sizes per page, plus a display size for hero moments. The jumps
	 * between them are deliberately large: a display line should not read as a
	 * slightly bigger heading.
	 */
	--nl-size-display: clamp(2.9rem, 7vw, 5.5rem);
	--nl-size-headline: clamp(1.625rem, 2.6vw, 2.25rem);
	--nl-size-subhead: clamp(1.1875rem, 1.7vw, 1.5rem);
	--nl-size-body: 1.0625rem;
	--nl-size-small: 0.9375rem;
	--nl-size-micro: 0.8125rem;

	/* Large type needs negative tracking to stop it looking loose. */
	--nl-tracking-display: -0.025em;
	--nl-tracking-headline: -0.015em;
	--nl-tracking-body: -0.011em;
	--nl-leading-tight: 1.03;
	--nl-leading-snug: 1.18;
	--nl-leading-body: 1.55;

	--nl-weight-regular: 400;
	--nl-weight-medium: 500;
	--nl-weight-semibold: 600;
	--nl-weight-bold: 700;

	/* Space scale */
	--nl-space-3xs: 0.25rem;
	--nl-space-2xs: 0.5rem;
	--nl-space-xs: 0.75rem;
	--nl-space-sm: 1rem;
	--nl-space-md: 1.5rem;
	--nl-space-lg: 2.25rem;
	--nl-space-xl: 3.5rem;
	--nl-space-2xl: 5rem;
	--nl-space-3xl: 7.5rem;
	--nl-space-4xl: 10rem;

	/* Radius — large and soft on every framed element. */
	--nl-radius-sm: 8px;
	--nl-radius-md: 14px;
	--nl-radius-lg: 22px;
	--nl-radius-xl: 32px;
	--nl-radius-pill: 999px;

	/* Elevation — soft lift, never a 2015 drop shadow. */
	--nl-shadow-rest: 0 1px 2px rgba(17, 18, 20, 0.04), 0 8px 24px rgba(17, 18, 20, 0.05);
	--nl-shadow-lift: 0 2px 4px rgba(17, 18, 20, 0.05), 0 16px 40px rgba(17, 18, 20, 0.09);
	--nl-shadow-inset-frame: inset 0 0 0 1px rgba(17, 18, 20, 0.04);

	/* Motion */
	--nl-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
	--nl-ease-decel: cubic-bezier(0.16, 1, 0.3, 1);
	--nl-dur-quick: 180ms;
	--nl-dur-base: 320ms;
	--nl-dur-slow: 620ms;
	/*
	 * An image settling into its frame as it arrives. Longer than anything a
	 * control does, because it is not answering an action — it is the photo
	 * coming to rest, and a quick settle reads as a jolt.
	 */
	--nl-dur-settle: 1100ms;

	/*
	 * How far scroll-linked imagery travels, as a share of its own height.
	 * Kept small: the point is depth, not movement anyone would describe.
	 */
	--nl-parallax-hero: 0.04;
	--nl-parallax-band: 0.05;

	/* Layout */
	--nl-content-width: 1240px;
	--nl-content-narrow: 760px;
	--nl-gutter: 1.25rem;
	/*
	 * Two separate tokens, deliberately. --nl-header-height is an input: the
	 * design height of the main bar, which sizes the bar itself. The offset is
	 * an output: the measured height of the whole header, utility strip and
	 * notice bar included, which every sticky top and the scroll padding read.
	 * Feeding the measured total back into the input would make the bar grow
	 * by the strip's height on each measurement.
	 */
	--nl-header-height: 68px;
	--nl-header-offset: var(--nl-header-height);

	/*
	 * A resting guess at the compare tray's height, so the colour launcher has
	 * something to lift by on the frame the tray first appears. The script
	 * overwrites it with the measured height straight after.
	 */
	--nl-tray-height: 56px;
}

@media (min-width: 768px) {
	:root {
		--nl-gutter: 2rem;
	}
}

/* Bands open up on larger screens; the air is doing real work here. */
@media (min-width: 1024px) {
	:root {
		--nl-space-2xl: 5rem;
		--nl-space-3xl: 7rem;
		--nl-space-4xl: 13rem;
	}
}

/* A dark context re-points the ink tokens so components need no dark variant. */
.nl-on-dark {
	--nl-base: var(--nl-dark);
	--nl-surface: var(--nl-dark-surface);
	--nl-surface-sunken: #1c1c21;
	--nl-ink: var(--nl-ink-on-dark);
	--nl-ink-muted: var(--nl-ink-on-dark-muted);
	--nl-line: var(--nl-line-on-dark);
	--nl-line-strong: #3a3a42;
	--nl-shadow-rest: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
	--nl-shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.45), 0 20px 48px rgba(0, 0, 0, 0.5);
	--nl-shadow-inset-frame: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	color: var(--nl-ink);
	background-color: var(--nl-base);
}

/* =============================================================================
   2. Reset and base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/*
 * The UA's `[hidden] { display: none }` is a bare element rule, so any class
 * that sets `display` outranks it and the element stays on screen. Restating
 * it here means `hidden` can be trusted anywhere in the theme.
 */
[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;

	/* Anchors and the skip link would otherwise land their target flush
	   against the viewport top, directly underneath the sticky header. */
	scroll-padding-top: calc(var(--nl-header-offset) + var(--nl-space-sm));
}

body {
	margin: 0;
	background-color: var(--nl-base);
	color: var(--nl-ink);
	font-family: var(--nl-font-body);
	font-size: var(--nl-size-body);
	line-height: var(--nl-leading-body);
	letter-spacing: var(--nl-tracking-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--nl-font-heading);
	font-weight: var(--nl-weight-semibold);
	line-height: var(--nl-leading-snug);
	letter-spacing: var(--nl-tracking-headline);
	margin: 0 0 var(--nl-space-sm);
	color: var(--nl-ink);
}

h1 {
	font-size: var(--nl-size-headline);
	font-weight: var(--nl-weight-bold);
	line-height: var(--nl-leading-tight);
	letter-spacing: var(--nl-tracking-display);
}

h2 { font-size: clamp(1.625rem, 2.9vw, 2.375rem); font-weight: var(--nl-weight-bold); }
h3 { font-size: clamp(1.3125rem, 2vw, 1.625rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9375rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--nl-ink-muted); }

p { margin: 0 0 var(--nl-space-sm); }

a {
	color: var(--nl-accent);
	text-decoration: none;
	transition: color var(--nl-dur-quick) var(--nl-ease-out), opacity var(--nl-dur-quick) var(--nl-ease-out);
}

a:hover,
a:focus {
	text-decoration: underline;
}

img,
svg,
video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

figure {
	margin: 0 0 var(--nl-space-md);
}

hr {
	border: 0;
	border-top: 1px solid var(--nl-line);
	margin: var(--nl-space-lg) 0;
}

ul, ol {
	margin: 0 0 var(--nl-space-sm);
	padding-left: 1.25rem;
}

li > ul,
li > ol {
	margin-bottom: 0;
}

dl { margin: 0 0 var(--nl-space-sm); }
dt { font-weight: var(--nl-weight-semibold); }
dd { margin: 0 0 var(--nl-space-2xs); padding-left: var(--nl-space-sm); }

blockquote {
	margin: var(--nl-space-md) 0;
	padding: var(--nl-space-sm) var(--nl-space-md);
	border-left: 3px solid var(--nl-accent);
	background: var(--nl-surface-sunken);
	border-radius: 0 var(--nl-radius-md) var(--nl-radius-md) 0;
	font-size: var(--nl-size-subhead);
	color: var(--nl-ink);
}

blockquote cite,
blockquote .wp-block-quote__citation {
	display: block;
	margin-top: var(--nl-space-2xs);
	font-size: var(--nl-size-small);
	font-style: normal;
	color: var(--nl-ink-muted);
}

code, kbd, pre, samp, tt, var {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

code, kbd, samp, tt, var {
	background: var(--nl-surface-sunken);
	padding: 0.15em 0.4em;
	border-radius: var(--nl-radius-sm);
}

pre {
	background: var(--nl-surface-sunken);
	border: 1px solid var(--nl-line);
	border-radius: var(--nl-radius-md);
	padding: var(--nl-space-sm);
	overflow-x: auto;
	max-width: 100%;
	margin: 0 0 var(--nl-space-md);
}

pre code {
	background: none;
	padding: 0;
}

abbr[title] { text-decoration: underline dotted; cursor: help; }
mark, ins { background: var(--nl-accent-soft); color: var(--nl-ink); text-decoration: none; padding: 0 0.2em; border-radius: 4px; }
small { font-size: var(--nl-size-small); }
big { font-size: 1.25em; }
sub, sup { font-size: 0.7em; line-height: 0; position: relative; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
address { font-style: normal; margin: 0 0 var(--nl-space-sm); }

table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	margin: 0 0 var(--nl-space-md);
	font-size: var(--nl-size-small);
}

th, td {
	padding: var(--nl-space-2xs) var(--nl-space-xs);
	border-bottom: 1px solid var(--nl-line);
	text-align: left;
	vertical-align: top;
}

th {
	font-weight: var(--nl-weight-semibold);
}

caption {
	caption-side: bottom;
	padding-top: var(--nl-space-2xs);
	color: var(--nl-ink-muted);
	font-size: var(--nl-size-small);
	text-align: left;
}

/* =============================================================================
   3. Accessibility utilities
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--nl-surface);
	border-radius: var(--nl-radius-sm);
	box-shadow: var(--nl-shadow-lift);
	clip-path: none;
	color: var(--nl-ink);
	display: block;
	font-size: var(--nl-size-small);
	font-weight: var(--nl-weight-semibold);
	height: auto;
	left: var(--nl-space-sm);
	line-height: normal;
	padding: var(--nl-space-2xs) var(--nl-space-sm);
	text-decoration: none;
	top: var(--nl-space-sm);
	width: auto;
	z-index: 100000;
}

.skip-link:focus {
	position: fixed;
}

:focus-visible {
	outline: 2px solid var(--nl-accent);
	outline-offset: 3px;
	border-radius: var(--nl-radius-sm);
}

/* =============================================================================
   4. Layout primitives
   ========================================================================== */

.nl-container {
	width: 100%;
	max-width: var(--nl-content-width);
	margin-inline: auto;
	padding-inline: var(--nl-gutter);
}

.nl-container--narrow {
	max-width: var(--nl-content-narrow);
}

.nl-container--wide {
	max-width: 1560px;
}

.nl-section {
	padding-block: var(--nl-space-2xl);
}

.nl-section--tight {
	padding-block: var(--nl-space-xl);
}

.nl-section--flush {
	padding-block: 0;
}

.nl-section__head {
	margin-bottom: var(--nl-space-lg);
	max-width: 46rem;
}

.nl-section__eyebrow {
	font-size: var(--nl-size-micro);
	font-weight: var(--nl-weight-medium);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nl-ink-muted);
	margin: 0 0 var(--nl-space-sm);
}

.nl-section__title {
	font-size: var(--nl-size-headline);
	font-weight: var(--nl-weight-bold);
	letter-spacing: var(--nl-tracking-display);
	line-height: var(--nl-leading-tight);
	margin: 0;
	max-width: 18ch;
}

.nl-section__lede {
	font-size: var(--nl-size-subhead);
	color: var(--nl-ink-muted);
	margin: var(--nl-space-xs) 0 0;
	max-width: 46ch;
}

.nl-site-main {
	display: block;
}

.nl-layout {
	display: grid;
	gap: var(--nl-space-xl);
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.nl-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

/* =============================================================================
   5. Buttons and the dual CTA pair
   ========================================================================== */

.nl-btn,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--nl-space-2xs);
	font-family: inherit;
	font-size: var(--nl-size-body);
	font-weight: var(--nl-weight-medium);
	line-height: 1.2;
	letter-spacing: var(--nl-tracking-body);
	padding: 0.75rem 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--nl-radius-pill);
	background-color: var(--nl-accent);
	color: var(--nl-accent-ink);
	cursor: pointer;
	text-decoration: none;
	transition: background-color var(--nl-dur-quick) var(--nl-ease-out),
		color var(--nl-dur-quick) var(--nl-ease-out),
		border-color var(--nl-dur-quick) var(--nl-ease-out),
		box-shadow var(--nl-dur-quick) var(--nl-ease-out),
		scale var(--nl-dur-quick) var(--nl-ease-out);
}

/*
 * A press is felt: the button gives by a hair while held and springs back
 * on release. Hovers still never scale — this answers a physical action,
 * the way a real key does, and is gone the moment the finger lifts.
 */
.nl-btn:active:not(:disabled),
input[type="submit"]:active:not(:disabled),
.wp-block-button__link:active {
	scale: 0.97;
}

.nl-btn:hover,
.nl-btn:focus,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	text-decoration: none;
	box-shadow: var(--nl-shadow-rest);
	color: var(--nl-accent-ink);
}

.nl-btn--quiet {
	background-color: transparent;
	color: var(--nl-ink);
	border-color: var(--nl-line-strong);
}

.nl-btn--quiet:hover,
.nl-btn--quiet:focus {
	color: var(--nl-ink);
	border-color: var(--nl-ink);
}

.nl-btn--link {
	background: none;
	border: 0;
	padding: 0;
	color: var(--nl-accent);
	border-radius: 0;
}

.nl-btn--link:hover {
	box-shadow: none;
	text-decoration: underline;
}

.nl-btn--small {
	padding: 0.5rem 1rem;
	font-size: var(--nl-size-small);
}

.nl-btn--block {
	width: 100%;
}

.nl-btn[disabled],
button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* The dual CTA pair: one quiet, one direct. Never merged into a single button. */
.nl-cta-pair {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--nl-space-xs);
}

.nl-cta-pair--stacked {
	flex-direction: column;
	align-items: stretch;
}

/* =============================================================================
   6. Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime-local"],
input[type="range"],
input[type="color"],
select,
textarea {
	width: 100%;
	max-width: 100%;
	font-family: inherit;
	font-size: var(--nl-size-body);
	color: var(--nl-ink);
	background-color: var(--nl-surface);
	border: 1px solid var(--nl-line-strong);
	border-radius: var(--nl-radius-md);
	padding: 0.7rem 0.9rem;
	transition: border-color var(--nl-dur-quick) var(--nl-ease-out), box-shadow var(--nl-dur-quick) var(--nl-ease-out);
}

textarea {
	min-height: 9rem;
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--nl-accent);
	box-shadow: 0 0 0 3px var(--nl-accent-soft);
	outline: none;
}

label {
	display: inline-block;
	font-size: var(--nl-size-small);
	font-weight: var(--nl-weight-medium);
	margin-bottom: var(--nl-space-3xs);
}

input[type="checkbox"],
input[type="radio"] {
	width: auto;
	margin-right: var(--nl-space-3xs);
	accent-color: var(--nl-accent);
}

fieldset {
	border: 1px solid var(--nl-line);
	border-radius: var(--nl-radius-md);
	padding: var(--nl-space-sm);
	margin: 0 0 var(--nl-space-md);
}

legend {
	padding-inline: var(--nl-space-2xs);
	font-weight: var(--nl-weight-semibold);
}

::placeholder {
	color: var(--nl-ink-muted);
	opacity: 1;
}

/* Search form */
.nl-search-form {
	display: flex;
	gap: var(--nl-space-2xs);
	align-items: stretch;
}

.nl-search-form .nl-search-form__field {
	flex: 1 1 auto;
	min-width: 0;
}

.nl-search-form .nl-search-form__submit {
	flex: 0 0 auto;
}

/* =============================================================================
   7. WordPress content classes
   Alignment, captions, galleries and sticky posts. WordPress applies these to
   editor content, so they have to be styled even though no theme template
   outputs them directly.
   ========================================================================== */

.alignnone {
	margin: var(--nl-space-sm) 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin-inline: auto;
	margin-block: var(--nl-space-sm);
}

.alignleft {
	float: left;
	margin: var(--nl-space-3xs) var(--nl-space-md) var(--nl-space-sm) 0;
	max-width: 50%;
}

.alignright {
	float: right;
	margin: var(--nl-space-3xs) 0 var(--nl-space-sm) var(--nl-space-md);
	max-width: 50%;
}

/* Floated content would otherwise escape a narrow column on a phone. */
@media (max-width: 599px) {
	.alignleft,
	.alignright {
		float: none;
		margin-inline: 0;
		max-width: 100%;
	}
}

.alignwide {
	max-width: min(1240px, 100vw - (var(--nl-gutter) * 2));
	margin-inline: auto;
}

.alignfull {
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.alignfull img {
	width: 100%;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: var(--nl-space-sm);
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 0;
	border-radius: var(--nl-radius-md);
}

.wp-caption-text,
.gallery-caption,
.wp-element-caption,
figcaption {
	margin: var(--nl-space-2xs) 0 0;
	font-size: var(--nl-size-small);
	line-height: var(--nl-leading-snug);
	color: var(--nl-ink-muted);
	text-align: left;
}

.wp-caption.aligncenter .wp-caption-text {
	text-align: center;
}

.gallery {
	display: grid;
	gap: var(--nl-space-2xs);
	margin-bottom: var(--nl-space-md);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gallery-columns-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.gallery-columns-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.gallery-columns-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }

.gallery-item {
	margin: 0;
	text-align: center;
}

.gallery-item img {
	width: 100%;
	border-radius: var(--nl-radius-md);
}

/* A sticky post is marked with a quiet accent rule rather than a loud badge. */
.sticky {
	position: relative;
}

.sticky .nl-post-card__title::before,
.sticky .nl-entry__title::before {
	content: "";
	display: block;
	width: 28px;
	height: 2px;
	margin-bottom: var(--nl-space-2xs);
	border-radius: 2px;
	background: var(--nl-accent);
}

.bypostauthor {
	display: block;
}

/* Clear floats left behind by aligned content. */
.nl-entry__content::after,
.nl-post-card__excerpt::after {
	content: "";
	display: table;
	clear: both;
}

/* =============================================================================
   8. Reduced motion — non-essential animation is switched off entirely.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	[data-nl-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}

	/*
	 * The hover lift travels through --nl-lift now, so zeroing the variable is
	 * what actually stops a card moving here. The rule above only covers
	 * elements that carry the reveal attribute.
	 */
	.nl-product-card,
	.nl-tile,
	.nl-ugc-card,
	a.nl-feature-card,
	a.nl-editorial__link {
		--nl-lift: 0px !important;
	}

	/* Press feedback travels through `scale`, not transform. */
	.nl-btn:active,
	input[type="submit"]:active,
	.wp-block-button__link:active {
		scale: none;
	}
}
