/**
 * Home page (frontend stage 2): sections of the block pattern patterns/home.php.
 * Loaded on the front page only (inc/assets.php). Values from the accepted mock
 * (spec docs/superpowers/specs/2026-11-07-landing-etap-2-design.md).
 *
 * The sections are core blocks with NOJA block styles (inc/home.php), so an
 * admin can edit, move or remove them in the block editor: every rule keeps
 * working with fewer tiles, shorter texts or another photo.
 *
 * Core selectors beaten here: `figure.wp-block-image:not(#individual-image)`
 * of the gallery (ID weight, hence the same :not() below) and the dim classes
 * of core/cover (hence the doubled class).
 */

/* Bona Nova 400, Latin + Polish subset (assets/fonts, OFL-BonaNova.txt); preloaded on the home page (inc/assets.php). */
@font-face {
	font-family: "Bona Nova";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../../fonts/bona-nova-400-latin-pl.woff2") format("woff2");
	unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2010-2027, U+2030-203A, U+2044, U+20AC, U+2122, U+2212, U+2215;
}

.noja-home {
	/* H1 of the hero: gold - gold-light - gold. The logo gradient ends in gold-dark, which had 2.1-3.4:1 over the photo (docs/frontend.md). */
	--noja-hero-gradient: linear-gradient(90deg, var(--noja-gold), var(--noja-gold-light) 50%, var(--noja-gold));
	--noja-home-max: var(--noja-container); /* 1360 px */
	--noja-home-pad-x: clamp(1rem, 2.5vw, 3rem);
	--noja-home-pad-y: clamp(3rem, 6vw, 6rem);

	display: block;
	background: var(--noja-bg);
}

/*
 * In-page links (hero "Zobacz kolekcje" -> #kolekcje) jump: Blocksy's
 * `html { scroll-behavior: smooth }` would also animate every programmatic
 * scroll on this long page. Sections stop below the sticky header.
 */
html:has(.noja-home) {
	scroll-behavior: auto;
}

.noja-home > [id] {
	scroll-margin-top: var(--noja-header-height);
}

/* Focus ring in the colour of the section (Blocksy's a:focus-visible would win over base.css). */
.noja-home :is(a, button):focus-visible {
	outline-color: var(--noja-focus);
}

/* ------------------------------------------------------------------------
 * Shared: eyebrow, gold rule, buttons
 * --------------------------------------------------------------------- */
.noja-home .is-style-noja-eyebrow {
	margin: 0;
	color: var(--noja-accent);
	font-size: var(--noja-fs-xs);
	font-weight: var(--noja-weight-regular);
	line-height: 1.4;
	letter-spacing: var(--noja-tracking-wider);
	text-transform: uppercase;
}

.noja-home hr.wp-block-separator.is-style-noja-rule {
	width: 10rem;
	max-width: 100%;
	height: 1px;
	margin: 0;
	border: 0;
	background: var(--noja-rule);
	color: transparent;
	opacity: 1;
}

.noja-home .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--noja-space-3);
	margin: 0;
}

.noja-home .wp-block-button {
	margin: 0;
}

.noja-home .wp-block-button .wp-block-button__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--noja-space-7);
	padding: 0 1.75rem;
	border: 1px solid var(--noja-btn-bg);
	border-radius: var(--noja-radius);
	background: var(--noja-btn-bg);
	color: var(--noja-btn-text);
	font-family: var(--noja-font);
	font-size: 0.8125rem;
	font-weight: var(--noja-weight-regular);
	line-height: 1.2;
	letter-spacing: 0.18em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		background-color var(--noja-duration) var(--noja-ease),
		border-color var(--noja-duration) var(--noja-ease),
		color var(--noja-duration) var(--noja-ease),
		box-shadow var(--noja-duration) var(--noja-ease);
}

.noja-home .wp-block-button .wp-block-button__link:hover {
	border-color: var(--noja-btn-line-hover);
	background: var(--noja-btn-bg-hover);
	color: var(--noja-btn-text-hover);
}

.noja-home .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--noja-ghost-line);
	background: transparent;
	color: var(--noja-ghost-text);
}

.noja-home .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--noja-btn-line-hover);
	background: var(--noja-ghost-bg-hover);
	color: var(--noja-ghost-text-hover);
}

/* ------------------------------------------------------------------------
 * Hero (0.9.0, variant B "the word behind the sofa", approved 2026-11-11):
 * core/cover "noja-hero". The photo fills the hero; the big word NOJA stands
 * on the panel wall and the light sofa in front of it hides the bottom of the
 * letters (mix-blend-mode: lighten: the brighter pixels of the photo win).
 *
 * Scene (markup: the cover filter in inc/home.php):
 *   div.noja-hero__scene  the visible area, a size container;
 *   div.noja-hero__frame  a square with the proportions of the photo
 *                         (1024 x 1024), side --noja-hero-s, scaled to cover
 *                         the scene, so the word is pinned to the photo;
 *   img + span.noja-hero__word  placed in percent of the frame.
 * Geometry of the default photo (slot "hero", in fractions of its side): the
 * panel wall ends at 0.68, the sofa spans x 0.30-0.70 and y 0.676-0.77, the
 * vase x 0.66-0.73 from y 0.72. The word (font size 0.19): ink from x 0.318,
 * caps from y 0.574, baseline 0.711 (behind the top cushion); the tail of the
 * J ends on the front of the sofa at x <= 0.637, left of the vase. Another photo keeps the layout, the
 * word may then need new numbers (docs/frontend.md, Hero).
 *
 * Fix of 2026-11-14 (0.9.1, approved by the user): with lighten the thin light
 * letters vanished on the sunlit wall. The word is now Jost 300 in --noja-gold
 * (darker than the sofa, so the sofa still hides the strokes; with gold-light
 * they showed through it), over a dark layer on the wall behind it
 * (.noja-hero__frame::before, in percent of the frame, down to the top of the
 * sofa at 0.676: sofa, floor and the painting stay as they are).
 *
 * Desktop landscape (>= 64rem and at least as wide as high): the scene is the
 * whole hero, the frame covers it (side max(width, height), object position
 * 50 % 60 %), the text sits bottom left in the 32 % left of the word, over a
 * gradient from the left and from the bottom. Below, and on portrait screens:
 * the scene is a band at the top, zoomed so that the whole word fits the
 * screen width with a margin, the text follows on black.
 * --------------------------------------------------------------------- */
.noja-home .wp-block-cover.is-style-noja-hero {
	--noja-text: var(--noja-white);
	--noja-accent: var(--noja-gold-light);
	--noja-focus: var(--noja-gold-light);
	/* Side of the frame. Phones: the box of the word (0.4915 of the side) fits the width minus 2 x 1.25rem; tablets: the photo at full width. */
	--noja-hero-s: max(100cqw, min(46rem, (100cqw - 2.5rem) / 0.4915));

	container-type: inline-size;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	min-height: 0;
	margin: 0;
	padding: 0 0 clamp(2.5rem, 8vw, 4rem);
	overflow: hidden;
	background: var(--noja-black);
	color: var(--noja-white);
	color-scheme: dark;
}

.noja-home .wp-block-cover.is-style-noja-hero .noja-hero__scene {
	position: relative;
	z-index: 0;
	flex: none;
	width: 100%;
	height: calc(var(--noja-hero-s) * 0.46);
	overflow: hidden;
	container-type: size;
}

.noja-home .wp-block-cover.is-style-noja-hero .noja-hero__frame {
	position: absolute;
	top: calc(var(--noja-hero-s) * -0.38);
	/* The word centred on the screen (centre of its box: 0.5472 of the side), the frame still covering the scene. */
	left: clamp(100cqw - var(--noja-hero-s), 50cqw - var(--noja-hero-s) * 0.5472, 0px);
	width: var(--noja-hero-s);
	height: var(--noja-hero-s);
}

.noja-home .wp-block-cover.is-style-noja-hero .noja-hero__frame > .wp-block-cover__image-background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

/* Darker wall behind the word (0.9.1): from 20 % down to the top of the sofa, soft at the sides. */
.noja-home .wp-block-cover.is-style-noja-hero .noja-hero__frame::before {
	content: "";
	position: absolute;
	top: 0;
	left: 24%;
	width: 62%;
	height: 67.6%;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--noja-black) 38%, transparent) 62%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

/* Decorative (aria-hidden); line-height 1 puts the baseline 0.8475 em below the top (Jost metrics). */
.noja-home .wp-block-cover.is-style-noja-hero .noja-hero__word {
	position: absolute;
	z-index: 2;
	top: 55.2%;
	left: 30.15%;
	margin: 0;
	color: var(--noja-gold); /* 0.9.1: darker than the sofa, which hides the bottom of the strokes */
	font-family: var(--noja-font);
	font-size: calc(var(--noja-hero-s) * 0.19);
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	mix-blend-mode: lighten;
	pointer-events: none;
	user-select: none;
}

@media (forced-colors: active) {
	.noja-home .wp-block-cover.is-style-noja-hero .noja-hero__word,
	.noja-home .wp-block-cover.is-style-noja-hero .noja-hero__frame::before {
		display: none;
	}
}

/* Phones and tablets: the bottom of the band fades into the black below it (the text starts there). */
.noja-home .wp-block-cover.is-style-noja-hero.is-style-noja-hero > .wp-block-cover__background {
	background: linear-gradient(
		180deg,
		transparent calc(var(--noja-hero-s) * 0.33),
		color-mix(in srgb, var(--noja-black) 55%, transparent) calc(var(--noja-hero-s) * 0.4),
		var(--noja-black) calc(var(--noja-hero-s) * 0.46)
	);
	opacity: 1;
}

.noja-home .wp-block-cover.is-style-noja-hero > .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	gap: var(--noja-space-4);
	align-items: flex-start;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: calc(var(--noja-hero-s) * -0.02) 0 0;
	padding: 0 var(--noja-home-pad-x);
	color: var(--noja-white);
	text-align: left;
}

/* Without a photo (no scene): black hero with the text from the top. */
.noja-home .wp-block-cover.is-style-noja-hero:not(:has(.noja-hero__scene)) {
	padding-top: clamp(4rem, 9vw, 8rem);
}

.noja-home .wp-block-cover.is-style-noja-hero:not(:has(.noja-hero__scene)) > .wp-block-cover__inner-container {
	margin-top: 0;
}

.noja-home .wp-block-cover.is-style-noja-hero > .wp-block-cover__inner-container > * {
	max-width: 100%;
	margin: 0;
}

/* One line from 1200 px and on phones from 375 px (331 px wide); otherwise two balanced lines. */
.noja-home .wp-block-cover.is-style-noja-hero .is-style-noja-eyebrow {
	letter-spacing: 0.2em;
	text-wrap: balance;
}

/*
 * H1 of the hero: Bona Nova 400 (Andrzej Heidrich, SIL OFL 1.1; user's decision
 * 2026-11-08, the only serif of the brand) filled with the gold gradient of the
 * logo, stretched to twice the text width: the letters sit in its lighter middle
 * (>= 4.5:1 over the darkest gradient of the photo, docs/frontend.md). Width
 * fitted to the text, so the glint sits in the middle of the words. Without
 * background-clip: text and in forced colours: plain light gold.
 */
.noja-home .wp-block-cover.is-style-noja-hero h1 {
	--theme-font-size: clamp(2.2rem, 4.2vw, 3.6rem);
	--theme-font-family: "Bona Nova", Georgia, serif;
	--theme-letter-spacing: 0;
	--theme-text-transform: none;
	width: fit-content;
	max-width: 100%;
	margin: 0;
	background-image: var(--noja-hero-gradient);
	background-position: center;
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: var(--noja-gold-light);
	font-family: "Bona Nova", Georgia, serif;
	font-size: clamp(2.2rem, 4.2vw, 3.6rem);
	font-weight: var(--noja-weight-regular);
	line-height: 1.08;
	letter-spacing: 0;
	text-transform: none; /* sentence case of the approved mock (2026-11-11) */
	overflow-wrap: anywhere;
	-webkit-text-fill-color: transparent;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
	.noja-home .wp-block-cover.is-style-noja-hero h1 {
		background-image: none;
		-webkit-text-fill-color: currentColor;
	}
}

@media (forced-colors: active) {
	.noja-home .wp-block-cover.is-style-noja-hero h1 {
		background-image: none;
		-webkit-text-fill-color: currentColor;
	}
}

.noja-home .wp-block-cover.is-style-noja-hero p:not([class*="is-style-"]) {
	max-width: 32rem;
	color: var(--noja-white);
	font-size: 1.0625rem;
}

.noja-home .wp-block-cover.is-style-noja-hero .wp-block-buttons {
	justify-content: flex-start;
	padding-top: var(--noja-space-2);
}

.noja-home .wp-block-cover.is-style-noja-hero .wp-block-button .wp-block-button__link {
	border-color: var(--noja-gold-light);
	background: var(--noja-gold-light);
	color: var(--noja-black);
}

.noja-home .wp-block-cover.is-style-noja-hero .wp-block-button .wp-block-button__link:hover {
	border-color: var(--noja-ivory);
	background: var(--noja-ivory);
	color: var(--noja-black);
}

.noja-home .wp-block-cover.is-style-noja-hero .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--noja-gold);
	background: color-mix(in srgb, var(--noja-black) 35%, transparent);
	color: var(--noja-white);
}

.noja-home .wp-block-cover.is-style-noja-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--noja-gold-light);
	background: var(--noja-black-2);
	color: var(--noja-gold-light);
}

/* Desktop landscape: the photo fills the hero, the text bottom left. */
@media (min-width: 64rem) and (min-aspect-ratio: 1 / 1) {
	.noja-home .wp-block-cover.is-style-noja-hero {
		--noja-hero-s: max(100cqw, 100cqh);

		flex-direction: row;
		align-items: flex-end;
		min-height: calc(100svh - var(--noja-header-height));
		padding: clamp(6rem, 12vh, 9rem) var(--noja-home-pad-x) clamp(2.5rem, 7vh, 4.5rem);
	}

	.noja-home .wp-block-cover.is-style-noja-hero .noja-hero__scene {
		position: absolute;
		inset: 0;
		width: auto;
		height: auto;
	}

	.noja-home .wp-block-cover.is-style-noja-hero .noja-hero__frame {
		top: calc((100cqh - var(--noja-hero-s)) * 0.6);
		left: calc((100cqw - var(--noja-hero-s)) * 0.5);
	}

	/* Dark from the left (under the text) and from the bottom; the wall with the word stays bright. */
	.noja-home .wp-block-cover.is-style-noja-hero.is-style-noja-hero > .wp-block-cover__background {
		background:
			linear-gradient(
				90deg,
				color-mix(in srgb, var(--noja-black) 85%, transparent) 0%,
				color-mix(in srgb, var(--noja-black) 78%, transparent) 24%,
				color-mix(in srgb, var(--noja-black) 50%, transparent) 31%,
				color-mix(in srgb, var(--noja-black) 15%, transparent) 37%,
				transparent 44%
			),
			linear-gradient(0deg, color-mix(in srgb, var(--noja-black) 60%, transparent) 0%, transparent 35%);
	}

	/* The column ends 1.5rem before the word (ink from 31.8 % of the hero width; cqw = width minus the side padding). */
	.noja-home .wp-block-cover.is-style-noja-hero > .wp-block-cover__inner-container {
		width: 100%;
		max-width: min(30rem, 31.8cqw - 0.364 * var(--noja-home-pad-x) - 1.5rem);
		margin: 0 auto 0 0;
		padding: 0;
	}

	/* Both buttons in one row from 1366 px (column >= 386 px); narrower: one under the other. */
	.noja-home .wp-block-cover.is-style-noja-hero .wp-block-button .wp-block-button__link {
		padding-inline: 1.5rem;
	}
}

/* core/gallery "noja-strip": three photos 4:5 in a row (style kept for the editor; the hero no longer uses it). */
.noja-home .wp-block-gallery.has-nested-images.is-style-noja-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--noja-space-3);
	box-sizing: border-box;
	width: 100%;
	max-width: 68.75rem;
	margin: clamp(2rem, 5vw, 4.5rem) 0 0;
	padding: 0;
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-strip figure.wp-block-image:not(#individual-image) {
	width: auto;
	max-width: none;
	margin: 0;
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-strip figure.wp-block-image:not(#individual-image) img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	border-radius: var(--noja-radius);
	object-fit: cover;
}

/* ------------------------------------------------------------------------
 * Sections: core/group "noja-section" (ivory), "noja-section-paper" (full
 * width paper band with hairlines) and "noja-section-dark" (black band with
 * gold hairlines, section "Trzy materiały"). Content max 1360 px.
 * --------------------------------------------------------------------- */
.noja-home .wp-block-group.is-style-noja-section,
.noja-home .wp-block-group.is-style-noja-section-paper,
.noja-home .wp-block-group.is-style-noja-section-dark {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: var(--noja-home-pad-y) max(var(--noja-home-pad-x), (100% - var(--noja-home-max)) / 2);
}

.noja-home .wp-block-group.is-style-noja-section-paper {
	border-block: 1px solid var(--noja-line-light);
	background: var(--noja-paper);
}

.noja-home .wp-block-group.is-style-noja-section-dark {
	--noja-bg: var(--noja-black);
	--noja-text: var(--noja-white);
	--noja-muted: var(--noja-grey);
	--noja-accent: var(--noja-gold);
	--noja-accent-hover: var(--noja-gold-light);
	--noja-text-hover: var(--noja-gold-light);
	--noja-focus: var(--noja-gold-light);
	/* Same button pattern as the dark bands of the subpages (page.css,
	 * .noja-subpage .is-style-noja-section-dark). */
	--noja-btn-bg: var(--noja-gold-light);
	--noja-btn-text: var(--noja-black);
	--noja-btn-bg-hover: var(--noja-ivory);
	--noja-btn-line-hover: var(--noja-ivory);
	--noja-btn-text-hover: var(--noja-black);
	/* Outline button on black (Elewacje: „Zapytaj o wycenę”): gold line and
	 * light gold text like the ghost buttons of the dark header (tokens.css,
	 * .noja-dark), 15:1; hover lights up to ivory like the filled button. */
	--noja-ghost-line: var(--noja-gold);
	--noja-ghost-text: var(--noja-gold-light);
	--noja-ghost-bg-hover: var(--noja-black-2);
	--noja-ghost-text-hover: var(--noja-ivory);

	border-block: 1px solid var(--noja-gold-dark);
	background: var(--noja-black);
	color: var(--noja-white);
	color-scheme: dark;
}

.noja-home .is-style-noja-section-dark .noja-section-head h2 {
	color: var(--noja-gold-light);
	font-weight: var(--noja-weight-thin);
	letter-spacing: 0.14em;
}

.noja-home :is(.is-style-noja-section, .is-style-noja-section-paper, .is-style-noja-section-dark) > * {
	max-width: 100%;
	margin: 0;
}

.noja-home .noja-section-head {
	display: flex;
	flex-direction: column;
	gap: var(--noja-space-3);
}

.noja-home .noja-section-head > * {
	margin: 0;
}

.noja-home .noja-section-head h2 {
	--theme-font-size: var(--noja-fs-2xl);
	font-size: var(--noja-fs-2xl);
	font-weight: var(--noja-weight-light);
	line-height: var(--noja-leading-tight);
	letter-spacing: 0.12em;
	overflow-wrap: anywhere;
}

/* Small headings of tiles, steps and features. */
.noja-home :is(.is-style-noja-tiles, .is-style-noja-steps, .is-style-noja-features) h3 {
	--theme-font-size: var(--noja-fs-md);
	margin: 0;
	font-size: var(--noja-fs-md);
	font-weight: var(--noja-weight-regular);
	line-height: 1.35;
	letter-spacing: var(--noja-tracking-wide);
	overflow-wrap: anywhere;
}

.noja-home :is(.is-style-noja-tiles, .is-style-noja-steps, .is-style-noja-features) p {
	margin: 0;
	color: var(--noja-muted);
}

/* ------------------------------------------------------------------------
 * Collections: core/columns "noja-tiles". The H3 link covers the whole tile
 * (one tab stop per tile, link name = collection name).
 * --------------------------------------------------------------------- */
.noja-home .wp-block-columns.is-style-noja-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
	gap: var(--noja-space-5);
	margin: 0;
}

.noja-home .is-style-noja-tiles > .wp-block-column {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--noja-space-1);
	min-width: 0;
	margin: 0;
}

.noja-home .is-style-noja-tiles > .wp-block-column > * {
	margin: 0;
}

.noja-home .is-style-noja-tiles .wp-block-image,
.noja-home .is-style-noja-tiles .noja-tile-mark {
	margin: 0 0 var(--noja-space-3);
	overflow: hidden;
	border-radius: var(--noja-radius);
}

.noja-home .is-style-noja-tiles .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	transition: transform var(--noja-duration) var(--noja-ease);
}

.noja-home .is-style-noja-tiles > .wp-block-column:hover .wp-block-image img {
	transform: scale(1.03);
}

.noja-home .is-style-noja-tiles h3 a {
	color: var(--noja-text);
	text-decoration: none;
}

.noja-home .is-style-noja-tiles h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--noja-radius);
}

.noja-home .is-style-noja-tiles > .wp-block-column:hover h3 a {
	color: var(--noja-text-hover);
}

.noja-home .is-style-noja-tiles h3 a:focus-visible {
	outline: 0;
}

.noja-home .is-style-noja-tiles h3 a:focus-visible::after {
	outline: 2px solid var(--noja-focus);
	outline-offset: 4px;
}

.noja-home .is-style-noja-tiles p {
	font-size: 0.9375rem;
}

.noja-home .is-style-noja-tiles p.noja-tile-more {
	padding-top: var(--noja-space-1);
	color: var(--noja-accent);
	font-size: 0.8125rem;
	letter-spacing: var(--noja-tracking-wide);
	text-transform: uppercase;
}

.noja-home .is-style-noja-tiles p.noja-tile-more::after {
	content: " →";
	content: " →" / "";
}

/*
 * Photo of a tile with its name on it, the same on all four tiles (0.17.1, user's decisions of
 * 2026-11-25: Outlet variant F, then the full name on every tile). The photo (slot kol-*) fills
 * the tile under one layer of 65 % --noja-black for all tiles (62 % was enough for Outlet alone;
 * "Panele ścienne" gave 4.34:1 at 62 % on an iPhone 14). The name in light gold over a gold rule,
 * centred, one line per word ("PANELE / ŚCIENNE", "OUTLET"), never broken inside a word. Its size
 * follows the tile width (container query units): the longest word, "ELEWACYJNE", takes about
 * 69 % of the tile, from an iPhone SE up; 2.125rem at most. Without a photo the tile stays black.
 * The photo zooms on hover like before. Contrast: docs/frontend.md section 29.
 */
.noja-home .is-style-noja-tiles .noja-tile-mark {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: var(--noja-space-4);
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 4;
	background: var(--noja-black);
	container-type: inline-size;
}

.noja-home .is-style-noja-tiles .noja-tile-mark > * {
	position: relative;
	margin: 0;
}

.noja-home .is-style-noja-tiles .noja-tile-mark > .wp-block-image {
	position: absolute;
	inset: 0;
	z-index: -1;
	margin: 0;
	border-radius: 0;
}

.noja-home .is-style-noja-tiles .noja-tile-mark > .wp-block-image img {
	height: 100%;
}

.noja-home .is-style-noja-tiles .noja-tile-mark > .wp-block-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--noja-black) 65%, transparent);
}

.noja-home .is-style-noja-tiles .noja-tile-mark p {
	width: min-content;
	padding-left: 0.3em;
	color: var(--noja-gold-light);
	font-size: min(2.125rem, 8cqi);
	font-weight: var(--noja-weight-thin);
	line-height: 1.2;
	letter-spacing: 0.3em;
	text-align: center;
	text-transform: uppercase;
	overflow-wrap: normal;
	word-break: keep-all;
	hyphens: manual;
}

.noja-home .is-style-noja-tiles .noja-tile-mark hr.wp-block-separator.is-style-noja-rule {
	width: 4rem;
	background: var(--noja-gradient);
}

/*
 * Pattern thumbnails of a tile (block noja/collection-picks, 0.9.0): three
 * squares with the pattern name, under the text. Each one is a link to its
 * product, above the link that covers the tile (z-index 1).
 * Desktop with a mouse: shown when the pointer is over the tile or the focus is
 * inside it; their place is kept, so nothing moves. Only the look changes:
 * the links stay in the Tab order and for screen readers. Touch screens and
 * up to 45rem: always shown.
 */
.noja-home .is-style-noja-tiles .noja-picks {
	position: relative;
	z-index: 2;
	margin: var(--noja-space-3) 0 var(--noja-space-1);
}

.noja-home .noja-picks__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.noja-home .noja-picks__item {
	min-width: 0;
	margin: 0;
}

.noja-home .noja-pick {
	display: block;
	color: var(--noja-muted);
	text-decoration: none;
}

.noja-home .noja-pick__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: var(--noja-radius);
	background: var(--noja-line-light);
	object-fit: cover;
}

.noja-home .noja-pick__name {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.6875rem;
	line-height: 1.3;
	letter-spacing: var(--noja-tracking-wide);
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.noja-home .noja-pick:hover .noja-pick__name {
	color: var(--noja-text-hover);
}

.noja-home .noja-pick:focus-visible {
	outline: 2px solid var(--noja-focus);
	outline-offset: 3px;
}

@media (hover: hover) and (min-width: 45.0625rem) {
	.noja-home .is-style-noja-tiles .noja-picks {
		opacity: 0;
		transform: translateY(0.5rem);
		transition:
			opacity var(--noja-duration) var(--noja-ease),
			transform var(--noja-duration) var(--noja-ease);
	}

	.noja-home .is-style-noja-tiles > .wp-block-column:is(:hover, :focus-within) .noja-picks {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.noja-home .is-style-noja-tiles .noja-picks {
		transform: none;
	}
}

/* Featured patterns with the head printed by the block (attribute "heading"): bar and cards like two blocks of the section. */
.noja-home .noja-featured--head {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.noja-home .noja-featured--head > * {
	margin: 0;
}

/* ------------------------------------------------------------------------
 * Featured patterns: section head with "Wszystkie wzory →" on the right;
 * the cards are the listing cards (card.css, block noja/featured-patterns).
 * --------------------------------------------------------------------- */
.noja-home .noja-section-bar {
	display: flex;
	flex-wrap: wrap;
	gap: var(--noja-space-4) var(--noja-space-6);
	align-items: flex-end;
	justify-content: space-between;
}

.noja-home .noja-section-bar > * {
	margin: 0;
}

.noja-home .noja-section-link a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--noja-accent);
	font-size: 0.8125rem;
	letter-spacing: var(--noja-tracking-wide);
	text-decoration: none;
	text-transform: uppercase;
}

.noja-home .noja-section-link a::after {
	content: "\00a0→";
	content: "\00a0→" / "";
}

.noja-home .noja-section-link a:hover {
	color: var(--noja-accent-hover);
}

/* Two ivory sections in a row (none since 0.12.1, when Inspiracje moved to a paper band): one gap. */
.noja-home .wp-block-group.is-style-noja-section + .wp-block-group.is-style-noja-section {
	padding-top: 0;
}

/* ------------------------------------------------------------------------
 * Inspirations: core/gallery "noja-rooms". Square photos, the first one 2×2;
 * each photo links on, its caption is a paper plaque on the photo.
 * Phone: two columns, the first photo full width.
 * --------------------------------------------------------------------- */
.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--noja-space-3);
	margin: 0;
	padding: 0;
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms figure.wp-block-image:not(#individual-image) {
	position: relative;
	display: block;
	width: auto;
	max-width: none;
	margin: 0;
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms figure.wp-block-image:not(#individual-image):first-child {
	grid-row: span 2;
	grid-column: span 2;
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms figure.wp-block-image:not(#individual-image)::before {
	content: none;
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms figure.wp-block-image:not(#individual-image) > a {
	display: block;
	height: 100%;
	overflow: hidden;
	border-radius: var(--noja-radius);
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms figure.wp-block-image:not(#individual-image) img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform var(--noja-duration) var(--noja-ease);
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms figure.wp-block-image:not(#individual-image) > a:hover img {
	transform: scale(1.03);
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms figure.wp-block-image:not(#individual-image) figcaption {
	position: absolute;
	inset: auto auto var(--noja-space-3) var(--noja-space-3);
	width: auto;
	max-width: calc(100% - 2 * var(--noja-space-3));
	max-height: none;
	margin: 0;
	padding: var(--noja-space-2) 0.875rem;
	overflow: visible;
	background: var(--noja-paper);
	color: var(--noja-black);
	font-size: var(--noja-fs-xs);
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-align: left;
	text-shadow: none;
	text-transform: uppercase;
	pointer-events: none;
	will-change: auto;
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms figure.wp-block-image:not(#individual-image):first-child figcaption {
	inset: auto auto var(--noja-space-4) var(--noja-space-4);
	padding: 0.625rem var(--noja-space-4);
	font-size: 0.8125rem;
}

.noja-home .is-style-noja-rooms figcaption::after {
	content: "\00a0→";
	content: "\00a0→" / "";
}

@media (max-width: 45rem) {
	.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms figure.wp-block-image:not(#individual-image):first-child {
		grid-row: auto;
	}
}

/* ------------------------------------------------------------------------
 * Why NOJA: core/columns "noja-features". Line icons in gold ink, chosen by
 * the column class (noja-feature--sample / --warehouse / --salon).
 * --------------------------------------------------------------------- */
.noja-home .wp-block-columns.is-style-noja-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(13.75rem, 100%), 1fr));
	gap: 2.5rem;
	margin: 0;
}

.noja-home .is-style-noja-features > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: var(--noja-space-3);
	min-width: 0;
	margin: 0;
}

.noja-home .is-style-noja-features > .wp-block-column > * {
	margin: 0;
}

.noja-home .is-style-noja-features h3 {
	--theme-font-size: 1.0625rem;
	font-size: 1.0625rem;
	letter-spacing: 0.14em;
}

.noja-home .is-style-noja-features > [class*="noja-feature--"]::before {
	content: "";
	width: 2rem;
	height: 2rem;
	background: var(--noja-gold-ink);
	-webkit-mask: var(--noja-feature-icon) center / contain no-repeat;
	mask: var(--noja-feature-icon) center / contain no-repeat;
}

/* 0.18.0: link under a feature ("Salon w Radomiu" -> "Zobacz salon"), like "Zobacz wzory" of the tiles. */
.noja-home .is-style-noja-features p.noja-feature__more a {
	color: var(--noja-accent);
	font-size: 0.8125rem;
	letter-spacing: var(--noja-tracking-wide);
	text-decoration: none;
	text-transform: uppercase;
}

.noja-home .is-style-noja-features p.noja-feature__more a::after {
	content: " →";
	content: " →" / "";
}

.noja-home .is-style-noja-features p.noja-feature__more a:hover {
	color: var(--noja-text-hover);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* Icons from the mock: 24 px grid, 1.2 stroke (mask: only the shape counts). */
.noja-home .noja-feature--sample {
	--noja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.2'%3E%3Crect x='5' y='5' width='14' height='14'/%3E%3Cpath d='M9 9h6v6H9z'/%3E%3C/svg%3E");
}

.noja-home .noja-feature--warehouse {
	--noja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.2'%3E%3Cpath d='M3 9l9-5 9 5v10H3z'/%3E%3Cpath d='M8 19v-6h8v6'/%3E%3C/svg%3E");
}

.noja-home .noja-feature--salon {
	--noja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.2'%3E%3Cpath d='M12 21s-6.5-6.2-6.5-11a6.5 6.5 0 0 1 13 0c0 4.8-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------------
 * Materials ("Trzy materiały, trzy zastosowania"): core/group
 * "noja-materials" holding core/media-text "noja-material" blocks. Without
 * JavaScript (and in the editor) they stand one under another with a gold
 * hairline between them; @noja/tabs turns them into tabs (state below).
 * The media-text itself (and the steps) is styled in sections.css, shared
 * with the subpages.
 * --------------------------------------------------------------------- */
.noja-home .wp-block-group.is-style-noja-materials {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.noja-home .is-style-noja-materials > .is-style-noja-material + .is-style-noja-material {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: clamp(2.5rem, 5vw, 4rem);
	border-top: 1px solid var(--noja-gold-dark);
}

/* ------------------------------------------------------------------------
 * Facades ("Elewacje", #elewacje): a dark band like "Trzy materiały" with
 * core/columns "noja-facade" (0.12.0: text on the left, a square slider of
 * facade photos on the right, text : slider = 1 : 1.1; the text styles are the
 * ones of "noja-material", sections.css) and a core/gallery "noja-rooms" +
 * "noja-rooms--row": the tiles of "Inspiracje" (link, paper plaque with an
 * arrow, zoom on hover) as three equal squares with small plaques.
 * "Inspiracje" itself is unchanged.
 * Below 60em one column, the slider above the text; phone (<= 45rem): one
 * tile per row, photos 3:2.
 * --------------------------------------------------------------------- */
.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms.noja-rooms--row {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms.noja-rooms--row figure.wp-block-image:not(#individual-image):first-child {
	grid-row: auto;
	grid-column: auto;
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms.noja-rooms--row figure.wp-block-image:not(#individual-image):first-child figcaption {
	inset: auto auto var(--noja-space-3) var(--noja-space-3);
	padding: var(--noja-space-2) 0.875rem;
	font-size: var(--noja-fs-xs);
}

@media (max-width: 45rem) {
	.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms.noja-rooms--row {
		grid-template-columns: 100%;
	}

	.noja-home .wp-block-gallery.has-nested-images.is-style-noja-rooms.noja-rooms--row figure.wp-block-image:not(#individual-image) img {
		aspect-ratio: 3 / 2;
	}
}

/* Text and slider side by side (columns "noja-facade"), the text centred on the slider as on the former media-text. */
.noja-home .wp-block-columns.is-style-noja-facade {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 4vw, 4.5rem);
	align-items: center !important; /* core: .wp-block-columns { align-items: normal !important } */
	margin: 0;
}

.noja-home .is-style-noja-facade > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
	margin: 0;
}

.noja-home .is-style-noja-facade > .wp-block-column > * {
	margin: 0;
}

/*
 * 0.12.1 (user's remark of 2026-11-16): the slider 10 % smaller (about 610 px instead of 682 at
 * 1440 px), its right edge in line with the row of three photos below; the text column unchanged.
 */
@media (min-width: 60em) {
	.noja-home .is-style-noja-facade > .noja-facade__media > * {
		align-self: flex-end;
		width: 90%;
	}
}

@media (max-width: 59.99em) {
	.noja-home .wp-block-columns.is-style-noja-facade {
		grid-template-columns: minmax(0, 1fr);
	}

	.noja-home .is-style-noja-facade > .noja-facade__media {
		order: -1;
	}
}

/*
 * Slider: core/gallery "noja-slider" (0.12.0). Square photos in a row that
 * scrolls sideways with scroll-snap (also without JavaScript). @noja/slider
 * (assets/js/modules/slider.js) wraps it in .noja-slider and adds the progress
 * segments (top), the counter with the caption (bottom left) and two arrows
 * (bottom right) over a gradient. No autoplay. The captions of the photos stay
 * for screen readers; the overlay shows the current one.
 */
.noja-home .wp-block-gallery.has-nested-images.is-style-noja-slider {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overflow-y: hidden;
	border-radius: var(--noja-radius);
	background: var(--noja-black-2);
	aspect-ratio: 1;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-slider.is-moving {
	scroll-snap-type: none;
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-slider figure.wp-block-image:not(#individual-image) {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.noja-home .wp-block-gallery.has-nested-images.is-style-noja-slider figure.wp-block-image:not(#individual-image) img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 55%; /* the portrait photo of the house: panels and the tree; the square ones are not cropped */
}

/* The caption of the gallery is the name of the carousel (read by @noja/slider), not a slide. */
.noja-home .wp-block-gallery.is-style-noja-slider > figcaption.blocks-gallery-caption,
.noja-home .noja-slider .wp-block-gallery.is-style-noja-slider figure.wp-block-image figcaption {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.noja-home .wp-block-gallery.is-style-noja-slider:focus-visible {
	outline: 2px solid var(--noja-focus);
	outline-offset: 3px;
}

.noja-home .noja-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--noja-radius);
}

.noja-home .noja-slider .noja-slider__track {
	scrollbar-width: none;
}

.noja-home .noja-slider .noja-slider__track::-webkit-scrollbar {
	display: none;
}

.noja-home .noja-slider__progress {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	left: 1.25rem;
	display: flex;
	gap: 0.4rem;
	pointer-events: none;
}

.noja-home .noja-slider__progress > span {
	flex: 1;
	height: 2px;
	background: color-mix(in srgb, var(--noja-white) 40%, transparent);
	transition: background-color var(--noja-duration) var(--noja-ease);
}

.noja-home .noja-slider__progress > span.is-active {
	background: var(--noja-gold);
}

/* Gradient from the bottom: counter and caption stay >= 4.5:1 also on the light photos. */
.noja-home .noja-slider__bar {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	gap: var(--noja-space-4);
	align-items: flex-end;
	justify-content: space-between;
	padding: 4.5rem 1.25rem 1.25rem;
	background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--noja-black) 70%, transparent) 45%, color-mix(in srgb, var(--noja-black) 88%, transparent));
	pointer-events: none;
}

.noja-home .noja-slider__status {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	margin: 0;
	font-size: var(--noja-fs-xs);
	line-height: 1.6;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.noja-home .noja-slider__count {
	color: var(--noja-gold-light);
	letter-spacing: 0.25em;
	font-variant-numeric: tabular-nums;
}

.noja-home .noja-slider__caption {
	color: var(--noja-white);
}

.noja-home .noja-slider__buttons {
	display: flex;
	flex: none;
	gap: 0.5rem;
	pointer-events: auto;
}

.noja-home .noja-slider__button {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--noja-gold);
	border-radius: 0;
	background: color-mix(in srgb, var(--noja-black) 45%, transparent);
	color: var(--noja-gold-light);
	cursor: pointer;
	transition:
		background-color var(--noja-duration-fast) var(--noja-ease),
		border-color var(--noja-duration-fast) var(--noja-ease);
}

.noja-home .noja-slider__button:hover {
	border-color: var(--noja-gold-light);
	background: var(--noja-black-2);
}

.noja-home .noja-slider__button:focus-visible {
	outline: 2px solid var(--noja-gold-light);
	outline-offset: 2px;
}

.noja-home .noja-slider__arrow {
	width: 1.125rem;
	height: 1.125rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.2;
}

/*
 * Tabs (@noja/tabs, assets/js/modules/tabs.js): the bar goes right after the
 * section heading; one material at a time with a short fade.
 * Wide screens: heading and bar in one row, the bar at the bottom right.
 */
@media (min-width: 75em) {
	/* 1fr: the materials spanning both columns do not widen the bar's column. */
	.noja-home .wp-block-group.is-style-noja-section-dark:has(> .noja-tabs) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 2.5rem 1.5rem;
		align-items: end;
	}

	.noja-home .is-style-noja-section-dark:has(> .noja-tabs) > .noja-section-head {
		max-width: 47.5rem;
	}

	.noja-home .is-style-noja-section-dark:has(> .noja-tabs) > :not(.noja-section-head, .noja-tabs) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 74.99em) {
	.noja-home .is-style-noja-section-dark > .noja-tabs {
		margin-top: -1rem;
	}
}

.noja-home .noja-tabs {
	display: flex;
	gap: var(--noja-space-1);
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	box-shadow: inset 0 -1px 0 var(--noja-gold-dark);
	scrollbar-width: thin;
	scrollbar-color: var(--noja-gold-dark) transparent;
}

.noja-home .noja-tabs__tab {
	flex: none;
	min-height: 2.75rem;
	margin: 0;
	padding: var(--noja-space-3) var(--noja-space-4);
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: none;
	color: var(--noja-grey);
	font-family: var(--noja-font);
	font-size: 0.8125rem;
	font-weight: var(--noja-weight-regular);
	line-height: 1.2;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition:
		color var(--noja-duration-fast) var(--noja-ease),
		border-color var(--noja-duration-fast) var(--noja-ease);
}

.noja-home .noja-tabs__tab:hover {
	color: var(--noja-white);
}

.noja-home .noja-tabs__tab[aria-selected="true"] {
	border-bottom-color: var(--noja-gold);
	color: var(--noja-gold-light);
}

/* Inside the bar (it scrolls, so an outer ring would be cut off). */
.noja-home .noja-tabs__tab:focus-visible {
	outline: 2px solid var(--noja-gold-light);
	outline-offset: -2px;
}

.noja-home .is-style-noja-materials[data-noja-tabs="ready"] > .is-style-noja-material {
	margin: 0;
	padding: 0;
	border: 0;
}

.noja-home .is-style-noja-materials[data-noja-tabs="ready"] > .is-style-noja-material:not([hidden]) {
	animation: noja-tab-in var(--noja-duration-fast) var(--noja-ease);
}

@keyframes noja-tab-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/*
 * Patterns under a material (block noja/material-picks, 0.10.0): a full-width row
 * at the end of the media-text (moved there by inc/home.php, so it shows and hides
 * with its tab): a gold-dark hairline, a bar (eyebrow + "Wszystkie …" on the right)
 * and up to 4 compact shop cards (card.css, noja-card--compact). The list has
 * .noja-light (tokens.css): the cards keep the light colours of the shop in the
 * dark section. Below 60em the cards scroll sideways (scroll-snap, 72 % wide); the
 * page itself does not.
 */
.noja-home .is-style-noja-material > .noja-mat-picks {
	grid-column: 1 / -1;
	min-width: 0;
	margin: 0;
	padding-top: var(--noja-space-6);
	border-top: 1px solid var(--noja-gold-dark);
}

.noja-home .noja-mat-picks__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--noja-space-5);
	align-items: center;
	justify-content: space-between;
	margin: 0 0 var(--noja-space-4);
}

.noja-home .noja-mat-picks__bar > * {
	margin: 0;
}

.noja-home .noja-mat-picks__all {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--noja-gold-light);
	font-size: var(--noja-fs-xs);
	letter-spacing: var(--noja-tracking-wider);
	text-decoration: none;
	text-transform: uppercase;
}

.noja-home .noja-mat-picks__all::after {
	content: "\00a0→";
	content: "\00a0→" / "";
}

.noja-home .noja-mat-picks__all:hover {
	color: var(--noja-white);
}

.noja-home ul.products.noja-grid.noja-mat-picks__list {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--noja-space-5);
}

@media (max-width: 59.99em) {
	.noja-home .is-style-noja-material > .noja-mat-picks {
		grid-row: 3;
	}

	.noja-home .noja-mat-picks__bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.noja-home .noja-mat-picks__all {
		min-height: 2.25rem;
	}

	.noja-home ul.products.noja-grid.noja-mat-picks__list {
		grid-template-columns: none;
		grid-auto-columns: 72%;
		grid-auto-flow: column;
		gap: var(--noja-space-3);
		padding-bottom: var(--noja-space-2);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
	}

	.noja-home .noja-mat-picks__list > .noja-card {
		scroll-snap-align: start;
	}
}
