/*
 * talha/listing — Category / D-Category and Search / D-Search boards. One DOM for every width:
 * phones get the petrol band with brand chips, the toolbar and the "Filter & sort" bottom sheet;
 * 1024px and up get the band with the cable edge, the Filters sidebar and the 4-column grid.
 * States follow INTERACTIONS.md §1–§7 (state lives in ARIA attributes and native :checked).
 */

/* ---------- Band (petrol) ---------- */
.lst-band { background: #0F3D3E; color: #fff; }
.lst-band-in { padding: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; opacity: .8; }
.crumbs [aria-current="page"] { overflow-wrap: anywhere; }
/* Breadcrumb links (INTERACTIONS §3): underlined; 80% on dark, grey on light; 100% and 2px on hover. */
.crumb {
	min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.on-dark .crumb { opacity: .8; }
/* Full Sunflower ring on dark (§1): the crumb's 80% rest opacity would dim it. */
.on-dark .crumb:focus-visible { opacity: 1; }
.lst-band .crumbs-nav { align-self: flex-start; }
/* The phone trail starts at the parent (Category board); Home shows from 1024px. */
.crumbs .crumb-home { display: none; }
.crumbs .crumb-home + li::before { content: none; }
.lst-h { margin: 0; font-size: 30px; line-height: 1.05; font-weight: 900; font-stretch: 125%; letter-spacing: -.02em; color: inherit; overflow-wrap: anywhere; }
.lst-intro { margin: 0; font-size: 14px; line-height: 20px; opacity: .88; }
.bc-h { margin: 16px 0 0; font-size: 14px; line-height: 20px; font-weight: 700; font-stretch: 100%; letter-spacing: normal; color: inherit; }
.bchips { margin: 0; }
/* Sideways chip rows: 6px block padding with the same negative margin keeps rings unclipped (§1). */
/* position: relative makes the row the containing block of its screen-reader-only text, which would
   otherwise sit outside the scroll box and widen the page. */
.lchips, .sibs {
	position: relative; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
	margin: -6px -16px; padding: 6px 16px; scroll-padding-inline: 16px; list-style: none;
}
.lchips::-webkit-scrollbar, .sibs::-webkit-scrollbar { display: none; }
/* Chips on dark (§5): transparent with a #8DB3B1 border; pressed = white fill, Ink text. */
.lchip {
	flex-shrink: 0; height: 44px; margin: 0; padding: 0 16px; border-radius: 22px; font: inherit; font-size: 14px; font-weight: 700;
	background: transparent; color: #fff; border: 1.5px solid #8DB3B1; white-space: nowrap; cursor: pointer;
}
.lchip[aria-pressed="true"] { background: #fff; color: #101A1A; border-color: #fff; }

/* ---------- Sibling categories: light chips on phones, dark chips in the band on desktop ---------- */
.sibs-band { padding-top: 16px; }
.sibs li { display: flex; flex-shrink: 0; }
.sib, .chip-l {
	flex-shrink: 0; height: 44px; padding: 0 16px; border-radius: 22px; font-size: 14px; font-weight: 700; line-height: 20px;
	display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: #fff; color: #101A1A;
	border: 1.5px solid #7B8483; box-sizing: border-box; white-space: nowrap;
}
.sib small { font-size: 14px; font-weight: 400; color: #3D4A49; }
.sib[aria-current="page"], .chip-l[aria-current="true"] { background: #0F3D3E; border-color: #0F3D3E; color: #fff; }
.sib[aria-current="page"] small { color: #fff; }

/* Cable edge under the desktop band. */
.lst-edge { position: relative; height: 56px; flex-shrink: 0; }
.lst-edge .edge { display: block; width: 100%; height: 100%; }
.lst-edge .plug { position: absolute; display: block; }
.lst-edge .plug--m { left: calc(100% * 346 / 390); top: 8px; }
.lst-edge .plug--d { left: calc(100% * 1326 / 1440); top: 17px; }
.lst-edge.ts-desk { height: 80px; }

/* ---------- Columns ---------- */
.lst-cols { padding: 16px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.lst-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; scroll-margin-top: 12px; }

/* ---------- Toolbar ---------- */
.bar { display: flex; flex-direction: column; gap: 8px; }
.lst-count { margin: 0; font-size: 14px; line-height: 20px; color: #3D4A49; }
.lst-count strong { color: #101A1A; }
.lst-count:focus:not(:focus-visible) { outline: none; }
.tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; }
.tool {
	height: 44px; margin: 0; padding: 0 12px; box-sizing: border-box; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: #101A1A; border: 1.5px solid #7B8483;
	white-space: nowrap; text-decoration: none; cursor: pointer; min-width: 0;
}
.tool[hidden] { display: none; }
.tool span { overflow: hidden; text-overflow: ellipsis; }
.tool[data-on="true"] { border-color: #0F3D3E; box-shadow: inset 0 0 0 1px #0F3D3E; }
.sorts { display: flex; align-items: center; gap: 8px; }
.sorts-l { font-size: var(--wp--preset--font-size--sm-plus); font-weight: 700; margin-right: 4px; }
.sorts-list, .actives-list, .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.actives { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.achip {
	height: 44px; padding: 0 10px 0 14px; box-sizing: border-box; border-radius: 22px; background: #E3EBE6; color: #101A1A;
	font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.achip .ico { width: 18px; height: 18px; }
.link-btn {
	min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: #0F3D3E;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer;
	display: inline-flex; align-items: center; align-self: flex-start;
}
.lst-range { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 14px; color: #3D4A49; }

/* ---------- Grid ---------- */
.lst-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
/* Load more holds the room for the next cards at once (src/listing/view.js): static card-shaped
   placeholders fill it until the cards arrive. Rows never stretch into it (align-content: start). */
.lst-grid[data-hold] { position: relative; }
.lst-grid[data-hold]::after {
	content: ""; position: absolute; left: 0; right: 0; top: var(--ts-hold-top, 100%); bottom: 0; pointer-events: none;
	background: linear-gradient(#fff, #fff) 0 0 / var(--ts-hold-cell, 100%) var(--ts-hold-row, 100%) space;
}
.lst-grid .pc-img { height: 150px; }
.lst-grid .pcard { scroll-margin: 16px 0 80px; }

/* ---------- Load more ---------- */
.pager { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 8px; }
.pager-t { margin: 0; font-size: 14px; line-height: 20px; color: #3D4A49; text-align: center; }
.prog { width: min(280px, 100%); height: 4px; border-radius: 2px; background: #D5DCD6; overflow: hidden; display: block; }
.prog span { display: block; height: 100%; background: #0F3D3E; }
.more-btn {
	align-self: stretch; height: 48px; padding: 0 24px; box-sizing: border-box; border-radius: 12px; font-size: 15px; font-weight: 800;
	background: #fff; color: #101A1A; border: 1.5px solid #7B8483; display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.more-btn[aria-busy="true"] { cursor: progress; }

/* ---------- Empty and help ---------- */
.lst-empty { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #D5DCD6; padding: 24px 16px; display: flex; flex-direction: column; gap: 12px; }
.lst-empty-h { margin: 0; font-size: 18px; line-height: 22px; font-weight: 800; letter-spacing: normal; }
.lst-empty-p { margin: 0; color: #3D4A49; }
.lst .wa, .lst-help-wa {
	height: 48px; padding: 0 16px; box-sizing: border-box; border-radius: 12px; background: #0E7A3F; color: #fff; display: flex; align-items: center;
	justify-content: center; gap: 8px; font-weight: 800; font-size: var(--wp--preset--font-size--sm-plus); text-decoration: none;
}
.lst .wa .ico { width: 24px; height: 24px; }
.lst-help {
	margin-top: 16px; background: #101A1A; color: #fff; border-radius: 16px; padding: 24px 16px; display: flex; flex-direction: column; gap: 12px;
}
.lst-help-h { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 800; font-stretch: 125%; color: #FFC23C; letter-spacing: normal; text-wrap: balance; }
.lst-help-p { margin: 0; font-size: 14px; line-height: 20px; max-width: 300px; }

/* ---------- Filter form: the phone's bottom sheet ---------- */
/* Hidden until opened: with JS by the store (data-open), without JS by the #filters link (:target). */
.fsheet { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; justify-content: flex-end; margin: 0; }
/* :target only until the store is running: with JS the store owns the sheet (a #filters tap before
   hydration is taken over by callbacks.init), so a stale :target can never hold it open. */
.lst:not([data-ready="true"]) .fsheet:target, .fsheet[data-open="true"] { display: flex; }
html:has(.fsheet[data-open="true"]), html:has(.lst:not([data-ready="true"]) .fsheet:target) { overflow: hidden; }
.f-scrim { position: absolute; inset: 0; background: rgba(16, 26, 26, .5); cursor: pointer; }
.f-panel {
	position: relative; background: #fff; color: #101A1A; border-radius: 16px 16px 0 0; display: flex; flex-direction: column;
	max-height: calc(100dvh - 32px); box-shadow: 0 -8px 24px rgba(16, 26, 26, .24); animation: ts-sheet-up var(--wp--custom--open, 160ms) ease-out;
}
@keyframes ts-sheet-up { from { transform: translateY(24px); opacity: .6; } }
.f-grip { display: block; width: 40px; height: 4px; border-radius: 2px; background: #7B8483; margin: 8px auto 0; flex-shrink: 0; }
.f-head { display: flex; align-items: center; gap: 4px; padding: 4px 8px 8px 16px; border-bottom: 1px solid #D5DCD6; flex-shrink: 0; }
.f-h { flex-grow: 1; margin: 0; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: normal; }
.f-h:focus { outline: none; }
.f-h:focus-visible { outline: 3px solid var(--ts-ring); outline-offset: 2px; border-radius: 4px; }
.f-head .link-btn { align-self: center; }
.f-x { border: 0; background: none; padding: 0; color: #101A1A; cursor: pointer; }
.f-x[hidden] { display: none; }
.f-body { overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 24px; }
.fs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.fs legend { padding: 0 0 4px; font-size: 16px; line-height: 20px; font-weight: 800; font-stretch: 125%; color: #101A1A; }
.fs-brand .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; margin: 0 -8px; }
.fs-brand .opts .opt { margin: 0; width: auto; }
.opt {
	position: relative; box-sizing: border-box; min-height: 48px; width: calc(100% + 16px); margin: 0 -8px; padding: 0 8px; border-radius: 8px;
	display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 20px; color: #101A1A; cursor: pointer;
}
/* The real input stays focusable and in the form; the drawn box and dot show its state. */
.opt-in { position: absolute; left: 8px; top: 50%; width: 24px; height: 24px; margin: -12px 0 0; opacity: 0; cursor: pointer; }
.box, .dot { width: 24px; height: 24px; box-sizing: border-box; border: 2px solid #7B8483; flex-shrink: 0; background: #fff; }
.box { border-radius: 4px; background-position: center; background-size: 16px; background-repeat: no-repeat; }
.dot { border-radius: 12px; }
.opt:has(.opt-in:checked) { font-weight: 700; }
.opt-in:checked + .box {
	border-color: #0F3D3E; background-color: #0F3D3E;
	background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
.opt-in:checked + .dot { border: 7px solid #0F3D3E; }
.opt-t { min-width: 0; overflow-wrap: anywhere; }
.opt .n { margin-left: auto; font-size: 14px; color: #3D4A49; font-weight: 400; }
.opt:has(.opt-in:focus-visible) { outline: 3px solid var(--ts-ring); outline-offset: -3px; }
.f-more { margin-top: 4px; }
.f-more > summary { list-style: none; }
.f-more > summary::-webkit-details-marker { display: none; }
.f-more > summary::after { content: ""; width: 16px; height: 16px; margin-left: 4px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform var(--wp--custom--open, 160ms) ease-out; }
.f-more[open] > summary::after { transform: rotate(180deg); }
.f-more[open] > summary { margin-bottom: 4px; }
.f-foot { background: #101A1A; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-shrink: 0; }
.apply {
	flex-grow: 1; height: 56px; margin: 0; border: 0; border-radius: 12px; background: #FFC23C; color: #101A1A; font: inherit;
	font-stretch: 112%; font-weight: 900; font-size: 17px; cursor: pointer;
}

/* ---------- Search pages (Search / D-Search) ---------- */
.srch-head { padding: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.srch-head .crumbs-nav { display: none; }
.srch-head .crumb { color: #3D4A49; }
.srch-h { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 800; font-stretch: 125%; letter-spacing: -.01em; overflow-wrap: anywhere; }
.srch-meta { margin: -4px 0 0; font-size: 14px; line-height: 20px; color: #3D4A49; }
.srch-cols { padding: 24px 0 32px; display: flex; flex-direction: column; gap: 24px; }
.srch-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.srch-h2 { margin: 0; font-size: 18px; line-height: 1.15; font-weight: 800; font-stretch: 125%; letter-spacing: -.01em; color: #101A1A; }
.srch-n { font-size: 14px; font-weight: 400; font-stretch: 100%; color: #3D4A49; margin-left: 4px; }
.srch-nocat { margin: 0; color: #3D4A49; }
.srch-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.srch-sec { display: flex; flex-direction: column; gap: 8px; }
.srch-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; margin: -12px 0 -4px; }
.list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #D5DCD6; overflow: hidden; }
.list li + li { box-shadow: inset 0 1px 0 #E3EBE6; }
.lrow {
	box-sizing: border-box; width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 16px;
	background: #fff; font-size: 14px; line-height: 20px; color: #101A1A; text-decoration: none;
}
.lrow-t { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.lrow-t strong { font-size: 16px; line-height: 20px; font-weight: 800; }
.lrow-t span { color: #3D4A49; }
.lrow:focus-visible { outline-offset: -3px; }
/* While a ring shows, the first and last rows take the list's 12px corners, so their inset focus and
   hover rings aren't trimmed by its rounded clip. */
.list > li:first-child > .lrow:is(:hover, :active, :focus-visible) { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.list > li:last-child > .lrow:is(:hover, :active, :focus-visible) { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
/* Phone results are rows (photo left), as the Search board draws them; Add shows from 1024px. */
.srch-grid { display: flex; flex-direction: column; gap: 8px; }
.srch-grid .pcard { flex-direction: row; gap: 12px; padding: 8px 12px 8px 8px; }
.srch-grid .pc-img { width: 96px; height: 96px; border-radius: 8px; flex-shrink: 0; }
.srch-grid .pc-ph .ico { width: 32px; height: 32px; }
.srch-grid .pcard-body { padding: 0; gap: 4px; justify-content: center; }
.srch-grid .ptitle { min-height: 0; }
.srch-grid .price { margin-top: 0; min-height: 0; }
.srch-grid .pc-add, .srch-grid .add { display: none; }
.srch-all { align-self: flex-start; }

/* No results. */
.none { padding: 16px 0 32px; display: flex; flex-direction: column; gap: 24px; }
.none-main { display: flex; flex-direction: column; gap: 12px; }
.none-h { margin: 0; font-size: 18px; line-height: 1.15; font-weight: 800; letter-spacing: normal; }
.none-p { margin: 0; font-size: 16px; line-height: 24px; color: #3D4A49; }
.lst .wa-big { height: 56px; padding: 0 4px; font-size: 17px; font-stretch: 112%; font-weight: 900; white-space: nowrap; }
.none-meta { font-size: 14px; color: #3D4A49; }
.none-side { display: flex; flex-direction: column; gap: 24px; }
.none-sec, .land-sec { display: flex; flex-direction: column; gap: 8px; }
.none-tip { margin: 0; color: #3D4A49; }
.pills .chip-l { padding: 0 16px; }

/* Search landing (empty search). */
.land { padding: 16px 0 32px; display: flex; flex-direction: column; gap: 24px; }
.land-cats .srch-sec-head, .land-cats .cats5 { display: none; }
.land-all { border-radius: 12px; }
.cats5 { list-style: none; margin: 0; padding: 0; }
.cats5 li { display: flex; }
.cats5 .cat {
	flex-grow: 1; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #D5DCD6; padding: 20px; display: flex; flex-direction: column;
	gap: 12px; text-decoration: none; min-height: 132px; box-sizing: border-box; color: #101A1A;
}
.cats5 .cat-ic { width: 48px; height: 48px; border-radius: 12px; background: #E3EBE6; display: flex; align-items: center; justify-content: center; transition: background-color var(--wp--custom--motion, 120ms) ease-out; }
.cats5 .cat-ic .ico { width: 28px; height: 28px; stroke: #0F3D3E; transition: stroke var(--wp--custom--motion, 120ms) ease-out; }
.cats5 .cat strong { font-size: 16px; line-height: 20px; font-weight: 800; }
.cats5 .cat small { font-size: 14px; line-height: 22px; color: #3D4A49; margin-top: -8px; }

/* ---------- Phones only ---------- */
@media (max-width: 1023.98px) {
	/* The band's first breadcrumb sits right under the phone header, which is its own stacking layer:
	   an inset ring stays below the header's edge (§1). 6px of padding, cancelled by the margin while
	   focused, keeps the ring clear of the text without moving anything. */
	.lst-band .crumb:focus-visible { outline-offset: -3px; padding-inline: 6px; margin-inline: -6px; }
	/* Search board (390): "Results for …" and the count are for screen readers only (the board's h1 is
	   visually hidden); "Categories" starts 16px under the header. The no-match and landing h1s stay. */
	.lst--search .srch-head { padding: 0; }
	.lst--search .srch-h, .lst--search .srch-meta {
		border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap;
	}
	.lst--search .srch-cols { padding-top: 16px; }
	/* Search board (390): the help box sits 24px under the Parts section (the column's gap). Its own 16px
	   margin is for the Category page, where it ends the results column. */
	.srch-cols > .lst-help { margin-top: 0; }
	/* Search board (390): "Parts" on the left, "N matches" on the right of the same line (Search.dc.html:119). */
	.srch-h2:has(> .srch-n) { flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
	.srch-n { margin-left: 0; }
	/* The pager sits 24px under the last row card, as on the Category page. */
	.srch-sec > .pager { padding-top: 16px; }
	/* No match (Search board): the first sentence opens the paragraph, 12px under the h1. */
	.lst--none .none { padding-top: 12px; }
	.srch-grid .price strong { line-height: 24px; }
	.lst .wa-big { padding: 0; }
	/* Sheet sort, type and price rows: the board's 358px rows (hover fill 8px out on the left only). */
	.fs-sort .opt, .fs-type .opt, .fs-price .opt { width: 100%; }
}

/* ---------- Desktop (D-Category, D-Search) ---------- */
@media (min-width: 1024px) {
	/* The band paints above the cable edge under it, so a focus ring on the last row of the band (the
	   sibling chips) is never cut by the edge's Petrol (§1). The mega menu (z-index 5) stays on top. */
	.lst-band, .sibs-band { position: relative; z-index: 1; }
	/* Keyboard and reading order follow the columns: the sidebar (filters, then the help box) before
	   the results, as the D-Category and D-Search boards order them. The help box is one node, after
	   the results in the HTML for phones (Category / Search boards). */
	.lst-cols, .srch-cols { reading-flow: grid-columns; }
	.lst-band-in { padding: 24px 0 0; gap: 12px; }
	.crumbs { gap: 0 8px; line-height: 22px; }
	.crumbs li { gap: 8px; }
	.crumbs .crumb-home { display: flex; }
	.crumbs .crumb-home + li::before { content: "/"; }
	.lst-h { font-size: 40px; }
	.lst-intro { font-size: 18px; line-height: 26px; opacity: .92; }
	/* Siblings join the band on desktop (dark chips). */
	.sibs-band { padding-top: 20px; background: #0F3D3E; color: #fff; }
	.sibs { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
	.sib { height: 44px; padding: 0 18px; font-size: var(--wp--preset--font-size--sm-plus); line-height: 22px; background: transparent; color: #fff; border-color: #8DB3B1; gap: 0; }
	.sib small { font-size: 14px; color: inherit; opacity: .88; margin-left: 6px; }
	.sib[aria-current="page"] { background: #fff; color: #101A1A; border-color: #fff; }
	.sib[aria-current="page"] small { opacity: 1; color: #3D4A49; }
	.sibs-band .sib:focus-visible { outline-color: #FFC23C; }

	.lst-cols { display: grid; grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 24px 40px; align-items: start; padding: 16px 0 80px; }
	.lst-cols > .fsheet { grid-column: 1; grid-row: 1; }
	.lst-cols > .lst-help { grid-column: 1; grid-row: 2; }
	.lst-cols > .lst-main { grid-column: 2; grid-row: 1 / span 2; }
	.lst-cols > .lst-main:only-child { grid-column: 1 / -1; }

	/* The form is the sidebar. */
	.fsheet { position: static; display: block; z-index: auto; }
	html:has(.lst:not([data-ready="true"]) .fsheet:target) { overflow: visible; }
	.f-scrim, .f-grip { display: none; }
	.f-panel { position: static; max-height: none; border-radius: 0; box-shadow: none; animation: none; background: none; gap: 24px; }
	.f-head { min-height: 44px; padding: 0 0 8px; justify-content: space-between; }
	.f-h { font-size: var(--wp--preset--font-size--lg-plus); }
	.f-clear--off { display: none; }
	.f-body { overflow: visible; padding: 0; }
	.fs legend { font-size: 16px; line-height: 22px; }
	.fs-brand .opts { display: block; margin: 0; }
	.fs-brand .opts .opt { width: calc(100% + 16px); margin: 0 -8px; }
	.opt { min-height: 44px; font-size: var(--wp--preset--font-size--sm-plus); line-height: 22px; }
	.opt-in { width: 22px; height: 22px; margin-top: -11px; }
	.box, .dot { width: 22px; height: 22px; }
	.dot { border-radius: 11px; }
	/* No JS: the sidebar submits with this button; with JS every change applies at once. */
	.f-foot { background: none; padding: 0; }
	.lst[data-ready="true"] .f-foot { display: none; }
	.apply { height: 48px; font-size: 16px; background: #101A1A; color: #FFC23C; }
	.link-btn { font-size: var(--wp--preset--font-size--sm-plus); }

	.lst-main { gap: 16px; }
	.bar { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; }
	.bar .lst-count { min-width: 0; }
	.sorts { flex-shrink: 0; }
	.lst-count { font-size: 16px; line-height: 22px; }
	.sorts .chip-l { padding: 0 14px; font-size: 14px; }
	.lst-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
	.lst-grid .pc-img { height: 180px; padding: 12px; }
	.pager { padding-top: 16px; }
	.pager-t { font-size: var(--wp--preset--font-size--sm-plus); line-height: 22px; }
	.prog { width: 280px; }
	.more-btn { align-self: center; height: 52px; padding: 0 32px; font-size: 16px; border: 0; box-shadow: inset 0 0 0 2px #101A1A; }

	.lst-empty { grid-column: 1 / -1; border-radius: 16px; padding: 40px; align-items: flex-start; }
	.lst-empty-h { font-size: 22px; line-height: 28px; }
	.lst-empty-p { font-size: 16px; line-height: 24px; }
	.lst .wa, .lst-help-wa { height: 52px; padding: 0 24px; font-size: 16px; gap: 10px; align-self: flex-start; display: inline-flex; }
	.lst-help { margin-top: 0; padding: 24px 20px; }
	.lst-help-h { font-size: var(--wp--preset--font-size--lg-plus); }
	.lst-help-p { font-size: var(--wp--preset--font-size--sm-plus); line-height: 22px; max-width: none; }
	.lst .lst-help-wa { height: 48px; font-size: 14px; gap: 8px; padding: 0 12px; align-self: stretch; white-space: nowrap; display: flex; }
	.lst .lst-help-wa .ico { width: 20px; height: 20px; }

	/* Search. */
	.srch-head { padding: 40px 0 24px; }
	.srch-head .crumbs-nav { display: block; }
	.srch-h { font-size: 40px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
	.srch-meta { margin: 0; font-size: 16px; line-height: 22px; }
	.srch-cols { display: grid; grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 40px; align-items: start; padding: 0 0 80px; }
	.srch-cols > .srch-side { grid-column: 1; grid-row: 1; gap: 20px; }
	.srch-cols > .lst-help { grid-column: 1; grid-row: 2; }
	.srch-cols > .srch-main { grid-column: 2; grid-row: 1 / span 2; gap: 64px; }
	.srch-h2 { font-size: var(--wp--preset--font-size--lg-plus); min-height: 44px; display: flex; align-items: center; gap: 6px; }
	/* No match: "Browse instead" and "Search tips" are plain 23px headings, top-aligned with the ask card. */
	.none-sec .srch-h2 { min-height: 0; display: block; }
	.srch-n { font-size: 16px; font-weight: 600; }
	.srch-sec { gap: 20px; }
	.srch-sec-head { margin: 0; }
	/* 32px from the last card to the pager text, as on D-Category (the section's 20px gap plus 12px). */
	.srch-sec > .pager { padding-top: 12px; }
	.lrow { font-size: var(--wp--preset--font-size--sm-plus); }
	.lrow-t strong { line-height: 22px; }
	.lrow-t span { font-size: 14px; line-height: 22px; }
	.srch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
	.srch-grid .pcard { flex-direction: column; gap: 0; padding: 0; }
	.srch-grid .pc-img { width: 100%; height: 180px; border-radius: 0; padding: 12px; }
	.srch-grid .pcard-body { padding: 16px; gap: 8px; justify-content: flex-start; }
	.srch-grid .ptitle { min-height: 40px; }
	.srch-grid .price { margin-top: auto; min-height: 28px; }
	.srch-grid .pc-add { display: flex; }
	.srch-grid .add { display: flex; }

	.none { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; padding: 0 0 80px; }
	.none-main { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px #D5DCD6; padding: 40px; gap: 16px; }
	.none-h { font-size: 22px; }
	.none-p { font-size: 18px; line-height: 28px; max-width: 56ch; }
	.lst .wa-big { height: 56px; margin-top: 8px; padding: 0 24px; font-size: 18px; }
	.none-meta { font-size: var(--wp--preset--font-size--sm-plus); }
	.none-side { gap: 32px; }
	.none-sec, .land-sec { gap: 20px; }
	.pills .chip-l { padding: 0 18px; font-size: var(--wp--preset--font-size--sm-plus); }
	.sorts .chip-l, .pills .chip-l { line-height: 22px; }

	.land { padding: 0 0 80px; gap: 48px; }
	.land-cats .srch-sec-head { display: flex; }
	.land-cats .cats5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
	.land-cats .srch-h2 { font-size: 30px; line-height: 1.1; letter-spacing: -.015em; }
	.land .more { padding: 0; font-size: var(--wp--preset--font-size--sm-plus); color: #0F3D3E; text-underline-offset: 4px; }
}

/* 700–1023 (no board): two cards would be about 340px wide with a 140px photo, so three. */
@media (min-width: 700px) and (max-width: 1023.98px) {
	.lst-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lst-grid > .lst-empty { grid-column: 1 / -1; }
}

/* 1024–1279 (no board): beside the 280px sidebar four cards would be about 150px wide, so three. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
	.lst-grid, .srch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bar { flex-wrap: wrap; row-gap: 8px; }
}

/* ---------- States (INTERACTIONS §2–§5) ---------- */
@media (hover: hover) and (pointer: fine) {
	.crumb:hover { text-decoration-thickness: 2px; }
	.on-dark .crumb:hover { opacity: 1; }
	.lchip[aria-pressed="false"]:hover { border-color: #fff; background: #134A4B; }
	.sib:not([aria-current="page"]):hover, .chip-l:not([aria-current="true"]):hover, .tool:hover { border-color: #0F3D3E; background: #E3EBE6; }
	.more-btn:hover { border-color: #0F3D3E; background: #E3EBE6; }
	.achip:hover { background: #D5DCD6; }
	.link-btn:hover { text-decoration-thickness: 2px; }
	.opt:hover { background: #F3F1EA; }
	.apply:hover { background: #FFD066; }
	.f-x:hover { background: #E3EBE6; }
	.lst .wa:hover, .lst-help-wa:hover { background: #0B6634; }
	/* List rows (§4): the card pattern, a 2px Petrol ring inside the row. */
	.lrow:hover { box-shadow: inset 0 0 0 2px #0F3D3E; }
	.cats5 .cat:hover { box-shadow: 0 0 0 2px #0F3D3E; }
	.cats5 .cat:hover .cat-ic { background: #0F3D3E; }
	.cats5 .cat:hover .cat-ic .ico { stroke: #fff; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
	.sibs-band .sib:not([aria-current="page"]):hover { border-color: #fff; background: #134A4B; }
	.opt:hover { background: #E3EBE6; }
	.more-btn:hover { background: #101A1A; color: #FFC23C; border-color: transparent; }
	.apply:hover { background: #1E2B2B; }
}
/* Press: buttons, chips and icon buttons .97 (interactions.css covers <button>); links that look like
   buttons or chips get it here. Text links never scale; they darken. */
.lchip:active, .sib:active, .chip-l:active, .tool:active, .achip:active, .more-btn:active, .apply:active, .f-x:active, .lst .wa:active, .lst-help-wa:active { transform: scale(.97); }
.tool:active, .more-btn:active, .sib:not([aria-current="page"]):active, .chip-l:not([aria-current="true"]):active { background: #D5DCD6; }
.achip:active { background: #D5DCD6; }
.apply:active { background: #E6A800; }
.lst .wa:active, .lst-help-wa:active { background: #095A2E; }
/* Pressed breadcrumb: the hover look (§3) and the text-link press colour (Petrol on light, Sunflower on
   dark), the same on every band (Category, Search and the Categories page). */
.crumb:active { opacity: 1; text-decoration-thickness: 2px; color: #0F3D3E; }
.on-dark .crumb:active { color: #FFC23C; }
.link-btn:active { color: #101A1A; text-decoration-thickness: 2px; }
.opt:active { background: #E3EBE6; }
.f-x:active { background: #E3EBE6; }
.lrow:active { transform: scale(.99); box-shadow: inset 0 0 0 2px #0F3D3E; }
.cats5 .cat:active { transform: scale(.99); box-shadow: 0 0 0 2px #0F3D3E; }
@media (min-width: 1024px) {
	.opt:active { background: #D5DCD6; }
	.more-btn:active { background: #000; color: #FFC23C; }
	.apply:active { background: #000; }
	.sibs-band .sib:not([aria-current="page"]):active { background: #134A4B; }
}
.f-x:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
	.f-panel { animation: none; }
	.lchip:active, .sib:active, .chip-l:active, .tool:active, .achip:active, .more-btn:active, .apply:active, .f-x:active, .lst .wa:active, .lst-help-wa:active, .cats5 .cat:active, .lrow:active { transform: none; }
}
