/* ==========================================================================
   Catalogue pages — the three shelves under "More"
   --------------------------------------------------------------------------
   Solar Lights, Farm & Fence and More Products. One grammar, three treatments:
   a light poster for the shelf that has one product, a dusk photograph for the
   one that has two, and a typographic index for the shelf that has nine from
   four unrelated lines — because that shelf has no honest photograph to put
   behind its headline.

   Everything below the poster is main.css: .plp__head, .plp__stats, .plp__grid
   and .card are the panel catalogue's own, so the shelves read as one family
   with /solar-panels/ rather than as three cousins.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Poster
   -------------------------------------------------------------------------- */
.cathero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--brand);
}

.cathero__art {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.cathero__art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 58%;
}

.cathero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.cathero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	row-gap: 40px;
	/* The breadcrumb sits in the poster's top-left corner, directly under the
	   nav: 28px is the same gap the header's own hairline uses, so the trail
	   reads as the first line of the poster rather than as something that fell
	   onto it. */
	padding-top: 28px;
	padding-bottom: 48px;
	/* The same height as the scene hero at the top of /solar-panels/: one
	   screen minus the measured header, floored at 520px and capped at
	   1000px. Copied from `.vbsc-stage` rather than approximated, because a
	   shelf that opened on a taller picture than the catalogue above it is
	   exactly the inconsistency this page exists to remove. */
	min-height: clamp(520px, calc(100svh - var(--vbsc-head, 108px)), 1000px);
}

/* ---- 1.1 breadcrumb ------------------------------------------------------
   Inline, not a bar: it has to survive three backgrounds. The colours are set
   per variant below, never here, so a variant cannot inherit ink on a
   photograph. */
.cathero__crumbs {
	grid-column: 1 / -1;
	grid-row: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: var(--fs-12);
	letter-spacing: var(--tr-label-wide);
	text-transform: uppercase;
	line-height: 1;
	color: var(--muted);
}

.cathero__crumbs a {
	color: inherit;
	transition: color 0.16s var(--ease);
}

.cathero__crumbs a:hover {
	color: var(--ink);
}

.cathero__sep {
	opacity: 0.45;
}

.cathero__here {
	font-weight: 600;
}

/* ---- 1.2 copy ------------------------------------------------------------ */
/* The copy is centred in the poster on every variant, not pinned to its foot.
   A poster is one screen tall; type that sits on the bottom edge reads as if
   the page failed to grow into the picture, and the distance between the
   headline and the fold changes with every heading length. Centring it keeps
   the statement at the optical centre whatever the copy's height.

   The breadcrumb still lives in row 1, so the row the copy is centred in
   starts below it — 26px is half of (breadcrumb line + the 40px row gap), and
   the negative margin puts the copy's own centre back on the poster's. Written
   as a margin rather than with `position: absolute` on the trail so a long
   breadcrumb on a phone still pushes the copy down instead of colliding with
   it. */
.cathero__copy {
	grid-column: 1;
	grid-row: 2;
	align-self: center;
	margin-top: -26px;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* The index poster is not a photograph: its right-hand column is a list of
   families, and it is centred alongside the copy (see `.cathero__index`) so
   the two read as one block of contents rather than as a headline with a
   footnote hanging off it. */

.cathero__kicker {
	margin: 0;
	font-size: var(--fs-12);
	font-weight: 600;
	letter-spacing: var(--tr-label-wide);
	text-transform: uppercase;
	opacity: 0.72;
}

.cathero__lines {
	margin: 0;
	display: flex;
	flex-direction: column;
	font-family: var(--font-display);
	font-size: clamp(30px, 3.6vw, 52px);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: var(--tr-h1);
	/* Headings carry their own ink in main.css, which is right for a page but
	   wrong inside a poster: on the dusk and index variants this has to be the
	   poster's colour, not the page's. */
	color: inherit;
}

.cathero__lede {
	margin: 0;
	max-width: 54ch;
	font-size: var(--fs-16);
	line-height: var(--lh-lead);
	opacity: 0.82;
}

/* ---- 1.3 variant: light --------------------------------------------------
   A white studio shot behind white type is a hole, so this variant puts the
   photograph in the right half and lets it fade into the wash on the left.
   The image is masked rather than veiled by a rectangle: a gradient scrim over
   a white photograph greys the product it is supposed to be showing. */
.cathero--light {
	background: var(--brand-wash);
	color: var(--vbhero-ink, var(--ink));
}

.cathero--light .cathero__art {
	left: auto;
	right: 0;
	width: min(56%, 820px);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}

.cathero--light .cathero__art img {
	object-position: 46% 50%;
}

.cathero--light .cathero__crumbs {
	color: var(--vbhero-ink-soft, var(--muted));
}

.cathero--light .cathero__here {
	color: var(--vbhero-ink, var(--ink-2));
}

/* ---- 1.3b the panel poster -----------------------------------------------
   /solar-panels/ no longer uses the half-and-half block: the photograph runs
   full-bleed and the copy sits on its left third. No mask on any edge — the
   picture is not faded into the wash on the left or anywhere else.

   Because the type now sits *on* the photograph, it is white (this frame's
   left third is sunlit wall and eave board, but the window frame behind the
   first line and the eave's shadow side are dark enough that dark green type
   muddies). The scrim is the opposite of the old pale wash: it darkens, so the
   photograph keeps its colour and the headline has something to sit on.

   From 641px. Below that the poster is short enough that the copy all but fills
   it, and the ≤640 rules further down turn the picture into a low-opacity
   texture behind dark type — white type on that pale wash would disappear.

   The selectors are doubled up (`.cathero.cathero--panel`) because the 900px
   block below also resizes `.cathero--light .cathero__art`; at the same
   specificity whichever comes last would win, and the half-cover at 50%
   opacity is exactly the look this variant replaces. */
.cathero--panel .cathero__art img {
	object-position: 76% 50%;
}

@media (min-width: 641px) {
	.cathero.cathero--panel .cathero__art {
		left: 0;
		right: 0;
		width: 100%;
		opacity: 1;
		-webkit-mask-image: none;
		mask-image: none;
	}

	/* Full-bleed, the box is wider than 16:9, so the crop is vertical and the
	   whole width of the shot is on screen: centre it, the panel stays in the
	   top-right corner it was photographed in. */
	.cathero--panel .cathero__art img {
		object-position: 50% 50%;
	}

	.cathero--panel {
		color: var(--vbhero-ink, var(--surface));
	}

	.cathero--panel .cathero__crumbs {
		color: var(--vbhero-ink-soft, rgba(255, 255, 255, 0.74));
	}

	.cathero--panel .cathero__crumbs a:hover {
		color: var(--vbhero-ink, #fff);
	}

	.cathero--panel .cathero__here {
		color: var(--vbhero-ink, #fff);
	}

	/* Same shape as the dusk scrim, tuned for a bright daylight shot: the ink
	   is strongest at the left, thins out by 68% where the panel and sky are,
	   and thickens again at the foot so the poster does not end on a hard cut
	   into the white page. */
	.cathero--panel .cathero__scrim {
		background:
			linear-gradient(
				180deg,
				rgba(9, 20, 16, 0.4) 0%,
				rgba(9, 20, 16, 0.22) 30%,
				rgba(9, 20, 16, 0.26) 72%,
				rgba(9, 20, 16, 0.56) 100%
			),
			linear-gradient(90deg, rgba(9, 20, 16, 0.52) 0%, rgba(9, 20, 16, 0.06) 68%, rgba(9, 20, 16, 0) 100%);
	}

	/* 后台把字色改成「深色」时，照片上的保护层跟着撤掉 —— 那是明确要浅底深字。 */
	.cathero--panel[data-tone="ink"] .cathero__scrim {
		background: none;
	}

	.cathero--panel[data-tone="ink"] {
		color: var(--vbhero-ink, var(--ink));
	}
}

/* ---- 1.4 variant: dusk ---------------------------------------------------
   The photograph is a daylight shot of a panel on an eave with the sky in the
   top-right, so white type needs help at every height — not only at the top
   and the foot. Three scrims: a vertical one that never drops below 0.26 in
   the middle (the band the copy is centred in), a darker foot so the poster
   ends without a hard cut into the white page, and a left-to-right one that
   puts the most ink behind the headline. */
.cathero--dusk .cathero__scrim {
	background:
		linear-gradient(
			180deg,
			rgba(9, 20, 16, 0.58) 0%,
			rgba(9, 20, 16, 0.3) 34%,
			rgba(9, 20, 16, 0.3) 68%,
			rgba(9, 20, 16, 0.8) 100%
		),
		linear-gradient(90deg, rgba(9, 20, 16, 0.5) 0%, rgba(9, 20, 16, 0) 70%);
}

.cathero--dusk {
	color: var(--vbhero-ink, var(--surface));
}

.cathero--dusk .cathero__crumbs {
	color: var(--vbhero-ink-soft, rgba(255, 255, 255, 0.7));
}

.cathero--dusk .cathero__crumbs a:hover {
	color: var(--vbhero-ink, #fff);
}

.cathero--dusk .cathero__here {
	color: var(--vbhero-ink, #fff);
}

/* ---- 1.4b the poster, as the admin edits it ------------------------------
   Product-list posters carry two switches from 后台 → 海报设置: the veil, and
   the ink colour. Neither prints an attribute unless it was actually chosen,
   so a shelf nobody has touched keeps the exact colours drawn above. When they
   are set, they land here:

     data-tone="light"  white type  → the veil has to go dark
     data-tone="ink"    dark type   → the veil has to go light
     data-veil="off"    no veil at all

   The selectors outrank the variant rules above (element + attribute + element
   beats variant + element), which is why a dusk poster can be turned into a
   light one without a second variant stylesheet. */

.cathero[data-tone="light"] {
	color: var(--vbhero-ink, #fff);
}

/* A light poster that was switched to white type has no dark area of its own:
   the wash behind the copy becomes the brand green first, then the veil. */
.cathero--light[data-tone="light"] {
	background: var(--brand);
}

.cathero[data-tone="light"] .cathero__scrim {
	background:
		linear-gradient(
			180deg,
			rgba(9, 20, 16, 0.62) 0%,
			rgba(9, 20, 16, 0.44) 34%,
			rgba(9, 20, 16, 0.44) 68%,
			rgba(9, 20, 16, 0.8) 100%
		),
		linear-gradient(90deg, rgba(9, 20, 16, 0.55) 0%, rgba(9, 20, 16, 0.14) 70%);
}

.cathero[data-tone="ink"] {
	color: var(--vbhero-ink, var(--ink));
}

/* A photographs-under-white-type variant switched to dark type needs the
   opposite veil: light enough for ink, thin enough to keep the picture. */
.cathero--dusk[data-tone="ink"] .cathero__scrim {
	background:
		linear-gradient(
			180deg,
			rgba(246, 247, 243, 0.74) 0%,
			rgba(246, 247, 243, 0.58) 34%,
			rgba(246, 247, 243, 0.58) 68%,
			rgba(246, 247, 243, 0.78) 100%
		),
		linear-gradient(90deg, rgba(246, 247, 243, 0.88) 0%, rgba(246, 247, 243, 0.28) 70%);
}

/* The contents-page variant has no photograph to veil, so dark type needs the
   wash underneath to change instead. */
.cathero--index[data-tone="ink"] {
	background: var(--brand-wash);
}

/* No veil at all. The light variant's veil is a mask on the photograph rather
   than a layer over it, so the switch has to remove both. */
.cathero[data-veil="off"] .cathero__scrim {
	display: none;
}

.cathero[data-veil="off"] .cathero__art {
	-webkit-mask-image: none;
	mask-image: none;
}

/* ---- 1.5 variant: index --------------------------------------------------
   Nine products from four lines have no shared photograph. The poster is the
   contents page instead: headline left, the four families numbered right. Each
   row is the same link the chip row below the intro uses, so the poster is
   navigation and not decoration. */
.cathero--index {
	background:
		radial-gradient(120% 90% at 82% 8%, rgba(220, 233, 207, 0.14) 0%, rgba(21, 62, 53, 0) 58%),
		var(--brand);
	color: var(--vbhero-ink, var(--surface));
}

.cathero--index .cathero__inner {
	grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
	column-gap: clamp(32px, 5vw, 88px);
}

.cathero--index .cathero__crumbs {
	color: var(--vbhero-ink-soft, rgba(255, 255, 255, 0.7));
}

.cathero--index .cathero__crumbs a:hover {
	color: var(--vbhero-ink, #fff);
}

.cathero--index .cathero__here {
	color: var(--vbhero-ink, #fff);
}

.cathero__index {
	grid-column: 2;
	grid-row: 2;
	align-self: center;
	/* Same nudge as the copy: it is centred in row 2, which starts below the
	   breadcrumb, so without this the list would sit 26px lower than the
	   headline it is supposed to share a centre line with. */
	margin: -26px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cathero__index a {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 15px 2px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	color: var(--surface);
	transition: padding-left 0.18s var(--ease), background 0.18s var(--ease);
}

.cathero__index a:hover {
	padding-left: 8px;
	background: rgba(255, 255, 255, 0.05);
}

/* The shelf the visitor is already standing on. Arriving on ?family=… keeps the
   whole index visible — it is navigation, not a filter state — but the current
   row has to say so. */
.cathero__index a.is-active {
	background: rgba(255, 255, 255, 0.07);
}

.cathero__index a.is-active .cathero__idxname {
	font-weight: 700;
}

.cathero__idx {
	font-size: var(--fs-12);
	letter-spacing: var(--tr-label-wide);
	color: rgba(255, 255, 255, 0.55);
}

.cathero__idxname {
	font-size: var(--fs-18);
	font-weight: 500;
	letter-spacing: var(--tr-card);
}

.cathero__idxcount {
	font-size: var(--fs-12);
	letter-spacing: var(--tr-ui);
	color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   2. Supporting module
   --------------------------------------------------------------------------
   One per shelf, on the warm band: the fixture's own behaviour on Lights, how a
   pulse is made on Fence. More Products has none — its family rail is its
   structure, and a second explainer above nine cards would be a second thing
   asking for the same attention.
   -------------------------------------------------------------------------- */
.catnote {
	margin: 36px 0 8px;
	padding: 30px 34px 34px;
	background: var(--warm);
	border-radius: var(--radius-card);
}

.catnote__title {
	margin: 0 0 22px;
	font-family: var(--font-body);
	font-size: var(--fs-18);
	font-weight: 600;
	letter-spacing: var(--tr-card);
	color: var(--ink);
}

.catnote__list,
.catnote__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.catnote__item,
.catnote__step {
	position: relative;
	padding-top: 16px;
	border-top: 1px solid var(--line-8);
}

.catnote__k {
	margin: 0;
	font-size: var(--fs-12);
	letter-spacing: var(--tr-label-wide);
	text-transform: uppercase;
	color: var(--muted);
}

.catnote__v {
	margin: 6px 0 0;
	font-size: var(--fs-24);
	font-weight: 700;
	letter-spacing: var(--tr-card);
	color: var(--ink);
}

.catnote__d {
	margin: 10px 0 0;
	font-size: var(--fs-14);
	line-height: var(--lh-body);
	color: var(--body);
}

/* Steps carry a numeral instead of a figure, so the value line is a sentence
   and sets one step smaller than the value in the list above. */
.catnote__n {
	display: block;
	font-size: var(--fs-12);
	letter-spacing: var(--tr-label-wide);
	color: var(--accent-ink);
	margin-bottom: 4px;
}

.catnote__step .catnote__v {
	font-size: var(--fs-18);
	font-weight: 600;
	line-height: var(--lh-card);
}

/* --------------------------------------------------------------------------
   3. Family rail
   -------------------------------------------------------------------------- */
.catfam {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 30px 0 4px;
}

/* The count line needs a little air under the chips: without it the two rows
   read as one block and the toolbar loses its job. */
.cat .plp__bar {
	padding-top: 10px;
}

.catfam__chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 38px;
	padding: 0 15px;
	border: 1px solid var(--line-7);
	border-radius: 999px;
	background: var(--surface);
	font-size: var(--fs-14);
	letter-spacing: var(--tr-ui);
	color: var(--ink-2);
	transition: border-color 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
}

.catfam__chip:hover {
	border-color: var(--ink-3);
}

.catfam__chip.is-active {
	background: var(--brand);
	border-color: var(--brand);
	color: var(--surface);
}

.catfam__n {
	font-size: var(--fs-12);
	color: var(--muted);
}

.catfam__chip.is-active .catfam__n {
	color: rgba(255, 255, 255, 0.66);
}

/* --------------------------------------------------------------------------
   4. Grid
   -------------------------------------------------------------------------- */
#cat-grid {
	scroll-margin-top: calc(var(--nav-bottom) + 16px);
}

/* `.plp .plp__grid` is three up and two classes deep, so the two-product grid
   has to match that depth to win. */
.plp .cat__grid--duo {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* `hidden` is the family filter's off switch. `.card` sets `display: flex`,
   which outranks the user agent's `[hidden]` rule, so the attribute has to be
   honoured by name. */
.plp__card[hidden] {
	display: none;
}

/* The shelf name, above the product name. Only printed on a mixed shelf, so on
   Lights and Fence nothing shifts. */
.card__fam {
	margin: 0 0 -2px;
	font-size: var(--fs-12);
	letter-spacing: var(--tr-label-wide);
	text-transform: uppercase;
	color: var(--muted);
}

/* --------------------------------------------------------------------------
   5. Spotlight — the one-product shelf
   --------------------------------------------------------------------------
   A third-width card with two holes beside it says the shelf is broken. The
   one product it has gets a wide plate instead: square photograph left, the
   datasheet it already carries right.
   -------------------------------------------------------------------------- */
.catspot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin-top: 8px;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

.catspot__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--white);
}

.catspot__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.catspot__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(28px, 3.4vw, 48px);
}

.catspot__name {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-28);
	font-weight: 700;
	line-height: var(--lh-sub);
	letter-spacing: var(--tr-h3);
	color: var(--ink);
}

.catspot__name a {
	color: inherit;
}

.catspot__desc {
	margin: 0;
	font-size: var(--fs-15, 15px);
	line-height: var(--lh-body);
	color: var(--body);
}

/* The attribute table the product already ships with, not a hand-typed list:
   a spec that changes in the admin changes here. */
.catspot__specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.catspot__specs li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
}

.catspot__specsk {
	font-size: var(--fs-12);
	letter-spacing: var(--tr-ui);
	color: var(--muted);
}

.catspot__specsv {
	font-size: var(--fs-14);
	font-weight: 600;
	color: var(--ink-2);
	text-align: right;
}

.catspot .card__price {
	margin-top: 4px;
}

.catspot__buy {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 8px;
}

.catspot__buy .btn {
	flex: 0 0 auto;
	min-width: 148px;
}

/* --------------------------------------------------------------------------
   6. Sort control
   --------------------------------------------------------------------------
   Borderless on purpose: the reference reads "Sort by: Featured ▾" as a line of
   text, not as a control sitting in its own box. What changed is the menu. A
   native <select> opens the operating system's own list — a grey sheet with a
   blue highlight bar — inside a page that is warm paper and one green. So the
   <select> stays (it is the control with scripting off, and the value every
   handler reads) and the script draws the list in the site's own hand.
   -------------------------------------------------------------------------- */
.ssort {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: none;
}

.ssort__label {
	font-size: var(--fs-16);
	color: var(--body);
}

.ssort__field {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Untouched until the script runs: no box, no arrow, no colour — the browser's
   own menu is the only thing it contributes. */
.ssort__select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
	font-size: var(--fs-16);
	color: var(--ink);
	opacity: 0;
	cursor: pointer;
}

.ssort__now {
	font-size: var(--fs-16);
	line-height: var(--lh-label);
	color: var(--ink);
	white-space: nowrap;
}

.ssort__caret {
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-right: 1.4px solid var(--ink-2);
	border-bottom: 1.4px solid var(--ink-2);
	transform: rotate(45deg);
	transition: transform 0.18s var(--ease);
}

.ssort__select:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---- 6.1 enhanced -------------------------------------------------------- */
.ssort.is-enhanced .ssort__select,
.ssort.is-enhanced .ssort__now {
	display: none;
}

.ssort__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 2px 0;
	border: 0;
	border-radius: 4px;
	background: none;
	font-family: inherit;
	font-size: var(--fs-16);
	line-height: var(--lh-label);
	color: var(--ink);
	cursor: pointer;
	transition: color 0.16s var(--ease);
}

.ssort__btn:hover {
	color: var(--brand);
}

.ssort__btn:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 4px;
}

.ssort.is-open .ssort__caret {
	transform: rotate(225deg);
	margin-top: 3px;
}

.ssort__panel {
	position: absolute;
	top: calc(100% + 12px);
	right: -6px;
	z-index: 70;
	min-width: 232px;
	padding: 6px;
	background: var(--surface);
	border: 1px solid var(--line-6);
	border-radius: 14px;
	box-shadow: var(--shadow-pop);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px) scale(0.98);
	transform-origin: top right;
	transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}

.ssort.is-open .ssort__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* The listbox takes focus so the arrow keys reach it; the ring would then
   outline the whole panel, which reads as a second border around a card that
   already has one. The green cursor row is what shows where the keyboard is. */
.ssort__panel:focus,
.ssort__panel:focus-visible {
	outline: none;
}

.ssort__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 12px;
	border-radius: 9px;
	font-size: var(--fs-14);
	letter-spacing: var(--tr-ui);
	color: var(--ink-2);
	cursor: pointer;
}

.ssort__opt.is-cursor {
	background: var(--brand-wash);
	color: var(--brand);
}

.ssort__opt[aria-selected="true"] {
	font-weight: 600;
	color: var(--brand);
}

/* The tick, drawn with two borders so the panel ships no icon file. */
.ssort__opt[aria-selected="true"]::after {
	content: "";
	width: 5px;
	height: 9px;
	margin-top: -2px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(42deg);
}

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
	/* Height stays on the hero formula at every width: the panel page's scene
	   keeps its own at this breakpoint too, and matching it is the whole
	   point. Only the copy inside the poster changes. */
	.cathero__inner {
		padding-bottom: 40px;
	}

	.cathero--index .cathero__inner {
		grid-template-columns: minmax(0, 1fr);
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		row-gap: 28px;
	}

	/* `align-self: end` is grid talk — it ends the copy against the foot of its
	   row. In the column flexbox this variant turns into, the cross axis is
	   horizontal, and the same value would shrink both blocks to their content
	   and push them against the right edge. */
	.cathero--index .cathero__copy,
	.cathero--index .cathero__index {
		align-self: stretch;
		/* Stacked, both blocks start at the top of the column: the 26px
		   optical nudge belongs to the two-column layout only. */
		margin-top: 0;
	}

	.cathero--index .cathero__index {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 28px;
		border-top: 0;
	}

	.cathero--index .cathero__index a {
		border-top: 1px solid rgba(255, 255, 255, 0.18);
	}

	.catnote__list,
	.catnote__steps {
		gap: 26px;
	}
}

@media (max-width: 900px) {
	.cathero__inner {
		padding-bottom: 36px;
		row-gap: 28px;
	}

	.cathero--light .cathero__art {
		width: 70%;
		opacity: 0.5;
	}

	.catnote {
		padding: 24px 22px 26px;
	}

	.catnote__list,
	.catnote__steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.catnote__item,
	.catnote__step {
		padding-top: 12px;
	}

	.catspot {
		grid-template-columns: minmax(0, 1fr);
	}

	.catspot__media {
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 640px) {
	.cathero__inner {
		padding-top: 22px;
		padding-bottom: 30px;
		row-gap: 22px;
	}

	/* The -26px nudge above is half of (breadcrumb + the 40px desktop row
	   gap). At this width the gap is 22px, and on a 320px phone the contact
	   copy is taller than the row it is centred in — the negative margin would
	   push it up into the breadcrumb. Drop it: the copy is then centred in
	   whatever room is left, with the trail safely above it. */
	.cathero__copy {
		margin-top: 0;
	}

	.cathero__lines {
		font-size: clamp(26px, 7.4vw, 34px);
	}

	.cathero__lede {
		font-size: var(--fs-14);
		line-height: var(--lh-body);
	}

	/* Below this width the photograph behind the type is a texture, not an
	   image: a half-covered studio shot with a headline over it reads as a
	   mistake. Full-bleed and softened instead. */
	.cathero--light .cathero__art {
		width: 100%;
		opacity: 0.16;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.cathero--index .cathero__index {
		grid-template-columns: minmax(0, 1fr);
	}

	.cathero__idxname {
		font-size: var(--fs-16);
	}

	.catfam {
		padding-top: 22px;
	}

	/* Two products two up at 700px is still two usable cards; below 640 the
	   shelf drops to the same single column every other grid uses. */
	.plp .cat__grid--duo {
		grid-template-columns: minmax(0, 1fr);
	}

	.catnote {
		margin-top: 26px;
	}

	.catspot__specs {
		grid-template-columns: minmax(0, 1fr);
	}

	.catspot__buy .btn {
		flex: 1 1 0;
		min-width: 0;
	}
}
