/* =====================================================================
   Categories page (templates/categories.jinja), loaded on this page only.
   Everything is scoped by .cp-page. Values from the approved design
   (_design-categories/categories-approved.html, real px, no zoom).
   Styles: .cp-style-index (default) / .cp-style-directory on .cp-page. .cp-js = the page script runs
   (without it every panel and every third level is simply shown).
   ===================================================================== */
.cp-page {
	--cp-ink: #121826;
	--cp-muted: #667085;
	--cp-rail-bg: #eef0f4;
	--cp-surface: #ffffff;
	--cp-soft-1: #f1f6fe;
	--cp-soft-1: color-mix(in srgb, var(--primary-color, #3b82f6) 7%, #fff);
	--cp-soft-2: #e2ecfe;
	--cp-soft-2: color-mix(in srgb, var(--primary-color, #3b82f6) 15%, #fff);
	--cp-accent: var(--primary-color, #3b82f6);
	color: var(--cp-ink);
	padding-bottom: 16px;
	text-align: start;
}
.cp-page h1,
.cp-page h2,
.cp-page h3 {
	margin: 0;
	color: inherit;
}
.cp-page a {
	text-decoration: none;
}
.cp-page img {
	display: block;
}

/* ---------- head: title, number of main categories, quick links ---------- */
.cp-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 16px 0 12px;
}
.cp-title {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}
.cp-title h1 {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}
.cp-count {
	flex: 0 0 auto;
	color: var(--cp-muted);
	font-size: 11.5px;
}
.cp-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.cp-quick-link {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	background-color: var(--cp-soft-1);
	color: var(--cp-accent);
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
}
.cp-quick-link:hover {
	color: var(--cp-accent);
}
.cp-quick-link.is-sale,
.cp-quick-link.is-sale:hover {
	background-color: #fdecec;
	color: #c4302f;
}
.cp-quick-link.is-new,
.cp-quick-link.is-new:hover {
	background-color: #e8f6ec;
	color: #15803d;
}
.cp-quick-link > svg.ico {
	color: currentColor;
}
/* the menu's hide settings (header: data-hide-* on #nv-cats, always rendered); all three hidden = no row at all */
body:has(#nv-cats[data-hide-sale]) .cp-quick-link.is-sale,
body:has(#nv-cats[data-hide-new]) .cp-quick-link.is-new,
body:has(#nv-cats[data-hide-all]) .cp-quick-link.is-all,
body:has(#nv-cats[data-hide-sale][data-hide-new][data-hide-all]) .cp-quick {
	display: none;
}

/* =====================================================================
   Index: main categories rail at the start, the chosen category beside it
   ===================================================================== */
.cp-index {
	display: flex;
	align-items: flex-start;
}
.cp-rail {
	position: sticky;
	top: calc(var(--cp-sticky-top, 0px) + 8px);
	z-index: 2;
	flex: 0 0 78px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: calc(100vh - var(--cp-sticky-top, 0px) - 16px);
	padding: 8px 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
	border-start-start-radius: 0;
	border-end-start-radius: 0;
	border-start-end-radius: 22px;
	border-end-end-radius: 22px;
	background-color: var(--cp-rail-bg);
}
.cp-rail::-webkit-scrollbar {
	display: none;
}
.cp-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 8px 2px;
	border-radius: 16px;
	background-color: transparent;
	color: var(--cp-ink);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}
.cp-tab:hover {
	color: var(--cp-ink);
}
.cp-tab[aria-selected="true"] {
	background-color: var(--cp-surface);
	color: var(--cp-accent);
	font-weight: 800;
}
.cp-tab:focus-visible {
	outline: 2px solid var(--cp-accent);
	outline-offset: -2px;
}
.cp-tab-img {
	flex: 0 0 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	overflow: hidden;
	background-color: var(--cp-soft-2);
	color: var(--cp-accent);
}
/* the design's tile colours, in turn */
.cp-tab:nth-child(7n+2) .cp-tab-img { background-color: #dff3fb; }
.cp-tab:nth-child(7n+3) .cp-tab-img { background-color: #fdecec; }
.cp-tab:nth-child(7n+4) .cp-tab-img { background-color: #efe6fd; }
.cp-tab:nth-child(7n+5) .cp-tab-img { background-color: #dcf5ef; }
.cp-tab:nth-child(7n+6) .cp-tab-img { background-color: #fff1dc; }
.cp-tab:nth-child(7n+7) .cp-tab-img { background-color: #e8e7fd; }
.cp-tab-img > img {
	width: 100%;
	height: 100%;
	object-fit: cover;                  /* any image ratio fills the same square */
}
.cp-tab-name {
	max-width: 100%;
	overflow-wrap: anywhere;           /* long names wrap, never widen the rail */
}

.cp-panels {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 10px;
}
.cp-js .cp-panel:not(.is-active) {
	display: none;
}
.cp-panel + .cp-panel {
	margin-top: 24px;                   /* without the script: the panels one under the other */
}
.cp-js .cp-panel + .cp-panel {
	margin-top: 0;
}
.cp-panel:focus-visible {
	outline: 2px solid var(--cp-accent);
	outline-offset: 4px;
	border-radius: 18px;
}

/* cover: the cover image, else the category image, else the light theme colour with the name */
.cp-cover {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 92px;
	border-radius: 18px;
	overflow: hidden;
	background-color: var(--cp-soft-2);
}
.cp-cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.cp-cover.has-img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 24, 38, 0) 30%, rgba(18, 24, 38, .72) 100%);
}
.cp-cover-text {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	padding: 10px 14px;
	color: #fff;
}
.cp-cover.no-img .cp-cover-text {
	color: var(--cp-ink);
}
.cp-cover-name {
	min-width: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;               /* two lines at most, then an ellipsis (the full name is in title) */
	overflow: hidden;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.cp-cover-link {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #fff;
	font-size: 11.5px;
	font-weight: 800;
	white-space: nowrap;
}
.cp-cover-link:hover {
	color: #fff;
}
.cp-cover.no-img .cp-cover-link,
.cp-cover.no-img .cp-cover-link:hover {
	color: var(--cp-accent);
}
.cp-cover-link > svg.ico,
.cp-more > svg.ico {
	color: currentColor;
}

.cp-block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 14px 0 8px;
}
.cp-block-head h3 {
	min-width: 0;
	font-size: 13px;
	font-weight: 800;
}
.cp-more {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--cp-accent);
	font-size: 11.5px;
	font-weight: 800;
	white-space: nowrap;
}
.cp-more:hover {
	color: var(--cp-accent);
}

/* subcategories */
.cp-subs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}
.cp-sub {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 6px 10px;
	border: 0;
	border-radius: 14px;
	background-color: var(--cp-surface);
	box-shadow: none;
	color: var(--cp-ink);
	font: inherit;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.4;
	text-align: start;
	cursor: pointer;
}
.cp-sub:hover {
	color: var(--cp-ink);
}
.cp-sub[aria-expanded="true"] {
	box-shadow: inset 0 0 0 1.5px var(--cp-accent);
}
.cp-sub:focus-visible {
	outline: 2px solid var(--cp-accent);
	outline-offset: 1px;
}
.cp-sub-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}
.cp-sub-count {
	flex: 0 0 auto;
	color: var(--cp-muted);
	font-size: 10px;
	font-weight: 600;
}
.cp-sub-ic {
	color: var(--cp-muted);
	transition: transform .2s ease;
}
.cp-sub[aria-expanded="true"] .cp-sub-ic {
	transform: rotate(180deg);
	color: var(--cp-accent);
}
/* third level: chips under the grid, one group open at a time */
.cp-l3 {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
	padding: 10px;
	border-radius: 14px;
	background-color: var(--cp-soft-1);
}
.cp-l3[hidden] {
	display: none;
}
.cp-l3-title {
	flex: 0 0 100%;
	font-size: 11.5px;
	font-weight: 800;
}
.cp-js .cp-l3-title {
	display: none;                      /* shown only without the script, where every group is open */
}
.cp-chip {
	flex: 0 1 auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	min-height: 30px;
	padding: 5px 11px;
	border-radius: 999px;
	background-color: var(--cp-surface);
	color: var(--cp-ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.45;
	overflow-wrap: anywhere;           /* a long name wraps inside the chip */
}
.cp-chip:hover {
	color: var(--cp-ink);
}
.cp-chip.is-all,
.cp-chip.is-all:hover {
	background-color: var(--cp-accent);
	color: #fff;
}

/* products rows (the theme's small card; its rules are copied at the end of this file) */
.cp-row[hidden] {
	display: none;
}
.cp-page .cp-row .products-slider-home.small-slider.cp-track {
	padding-inline: 0;
}
.cp-row-sale {
	display: none;                      /* tablets and desktops only */
}
/* the card keeps the home page's small-card width at every width (the copied home rule is phone-only there,
   because the home page reaches it through its zoom) */
.cp-page .cp-row .products-slider-home.small-slider > .product-item-slide {
	flex: 0 0 132px;
	max-width: 132px;
}
/* phones: the page starts 10px under the header's bottom edge (with or without the announcement bar), so the
   first item is moved to 12px below it, the gap used between the page's sections */
@media (max-width: 767.98px) {
	.cp-page {
		padding-top: 22px;
	}
	.cp-page.cp-style-index {
		padding-top: 14px;                  /* + the index's own 8px */
	}
}
/* phones: about 2.3 cards in view, so the row shows there is more (the card keeps its square image) */
@media (max-width: 767.98px) {
	.cp-page .cp-row .products-slider-home.small-slider.cp-track > .product-item-slide,
	.cp-page .cp-row .products-slider-home.small-slider.cp-track > .cp-skel {
		flex: 0 0 calc((100% - 16px) / 2.3);
		max-width: calc((100% - 16px) / 2.3);
	}
}
/* loading skeleton: the card's size, so nothing moves when the cards arrive */
.cp-page .cp-row .cp-track > .cp-skel {
	flex: 0 0 132px;
	max-width: 132px;
}
.cp-skel-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	min-height: 214px;
	padding: 8px 8px 10px;
	border-radius: 20px;
	background-color: var(--product-card-bg, #fff);
}
.cp-skel-card > span {
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	background-color: #eef1f5;
	animation: cp-pulse 1.2s ease-in-out infinite;
}
.cp-skel-card > i {
	height: 10px;
	border-radius: 6px;
	background-color: #eef1f5;
	animation: cp-pulse 1.2s ease-in-out infinite;
}
.cp-skel-card > i + i {
	width: 55%;
}
@keyframes cp-pulse {
	50% { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
	.cp-skel-card > * { animation: none; }
}

/* phones: the title row is for tablets and desktops (the heading stays for screen readers / search engines) */
@media (max-width: 767.98px) {
	.cp-page.cp-style-index .cp-head {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.cp-page.cp-style-index .cp-index {
		padding-top: 8px;
	}
	/* the rail scrolls on its own, down to the screen's bottom (no dock on phones any more) */
	.cp-rail {
		max-height: calc(100vh - var(--cp-sticky-top, 0px) - 16px - env(safe-area-inset-bottom, 0px));
	}
}

/* ---------- tablets and desktops: the home page's scale, one ratio for the whole page ----------
   .cp-page is zoomed like .home (1.15 from 768, 1.3 from 1200); the header, footer, dock and theme rail are
   outside it. Lengths below are local px (on screen x zoom); the sticky offset and the viewport height come
   in screen px and are divided by --cp-z. */
@media (min-width: 768px) {
	.cp-page {
		--cp-z: 1.15;
		zoom: var(--cp-z);
		padding-inline: calc(20px / var(--cp-z));
	}
	.cp-rail {
		top: calc(var(--cp-sticky-top, 0px) / var(--cp-z) + 12px);
		flex-basis: 130px;                  /* 150 on screen */
		max-height: calc((100vh - var(--cp-sticky-top, 0px)) / var(--cp-z) - 24px);
		border-radius: 22px;
	}
	.cp-tab {
		flex-direction: row;
		gap: 9px;
		min-height: 48px;
		padding: 6px 8px;
		font-size: 11.5px;
		text-align: start;
	}
	.cp-tab-img {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
		border-radius: 11px;
	}
	.cp-tab-name {
		flex: 1 1 auto;
		min-width: 0;
	}
	.cp-panels {
		padding: 0;
		padding-inline-start: 14px;
	}
	.cp-cover {
		min-height: 113px;                  /* 130 on screen */
	}
	.cp-cover-name {
		font-size: 19px;
	}
	.cp-subs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.cp-row-sale {
		display: block;
	}
	.cp-row-sale[hidden] {
		display: none;
	}
}
@media (min-width: 1024px) {
	.cp-rail {
		flex-basis: 165px;                  /* 190 on screen */
	}
	.cp-cover {
		min-height: 130px;                  /* 150 on screen */
	}
	.cp-subs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (min-width: 1200px) {
	.cp-page {
		--cp-z: 1.3;
		max-width: calc((1240px + 40px) / 1.3);
		margin-inline: auto;
	}
	.cp-rail {
		flex-basis: 180px;                  /* 234 on screen */
	}
	.cp-cover {
		min-height: 131px;                  /* 170 on screen */
	}
}

/* =====================================================================
   Head tools: the search (directory only) and the quick links
   ===================================================================== */
.cp-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.cp-search {
	position: relative;
	display: none;                      /* shown with the script only (it filters the page) */
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 14px;
	border-radius: 14px;
	background-color: var(--cp-surface);
	color: var(--cp-muted);
	font-size: 12px;
}
.cp-js .cp-search {
	display: flex;
}
.cp-search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cp-ink);
	font: inherit;
	font-size: 12px;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
}
.cp-search-input::-webkit-search-cancel-button {
	display: none;                      /* our own clear button */
}
.cp-search:focus-within {
	box-shadow: inset 0 0 0 1.5px var(--cp-accent);
}
.cp-search > svg.ico {
	color: var(--cp-muted);
}
.cp-search-clear {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-inline-end: -6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #f5f6f8;
	color: var(--cp-muted);
	cursor: pointer;
}
.cp-search-clear[hidden] {
	display: none;
}

/* =====================================================================
   Directory: every category, its subcategories and third level
   ===================================================================== */
.cp-dir-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.cp-card {
	border-radius: 20px;
	background-color: var(--cp-surface);
}
.cp-card[hidden] {
	display: none;
}
.cp-card-img {
	flex: 0 0 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	overflow: hidden;
	background-color: var(--cp-soft-2);
	color: var(--cp-accent);
}
.cp-card:nth-child(7n+2) .cp-card-img { background-color: #dff3fb; }
.cp-card:nth-child(7n+3) .cp-card-img { background-color: #fdecec; }
.cp-card:nth-child(7n+4) .cp-card-img { background-color: #efe6fd; }
.cp-card:nth-child(7n+5) .cp-card-img { background-color: #dcf5ef; }
.cp-card:nth-child(7n+6) .cp-card-img { background-color: #fff1dc; }
.cp-card:nth-child(7n+7) .cp-card-img { background-color: #e8e7fd; }
.cp-card-img > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cp-card-name {
	display: block;
	min-width: 0;
	font-weight: 800;
	overflow-wrap: anywhere;
}
/* phone head (button): picture, name, the first subcategories, + / - */
.cp-card-btn {
	display: none;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 60px;
	margin: 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 20px;
	background: none;
	color: var(--cp-ink);
	font: inherit;
	text-align: start;
	cursor: pointer;
}
.cp-card-btn:focus-visible {
	outline: 2px solid var(--cp-accent);
	outline-offset: -2px;
}
.cp-card-text {
	flex: 1 1 auto;
	min-width: 0;
}
.cp-card-btn .cp-card-name {
	font-size: 13px;
	line-height: 1.4;
}
.cp-card-peek {
	display: block;
	overflow: hidden;
	color: var(--cp-muted);
	font-size: 10.5px;
	line-height: 1.6;
	white-space: nowrap;
	text-overflow: ellipsis;            /* a preview line; the full names are in the open card */
}
.cp-card-pm {
	flex: 0 0 auto;
	color: var(--cp-accent);
}
.cp-card-btn[aria-expanded="true"] .cp-pm-plus,
.cp-card-btn[aria-expanded="false"] .cp-pm-minus {
	display: none;
}
/* head with links (tablets / desktops, and phones without the script) */
.cp-card-top {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
}
.cp-card-link {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--cp-ink);
}
.cp-card-link:hover {
	color: var(--cp-ink);
}
.cp-card-top .cp-card-name {
	font-size: 14px;
	line-height: 1.4;
}
.cp-card-all {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--cp-accent);
	font-size: 11.5px;
	font-weight: 800;
	white-space: nowrap;
}
.cp-card-all:hover {
	color: var(--cp-accent);
}
.cp-card-all > svg.ico,
.cp-dsub-link > svg.ico {
	color: currentColor;
}
/* body: subcategories as rows, the third level as chips under each */
.cp-card-body {
	padding: 0 12px 10px;
}
.cp-dsub[hidden],
.cp-dchip[hidden] {
	display: none;
}
.cp-dsub-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 36px;
	padding: 4px 0;
	color: var(--cp-ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
}
.cp-dsub-link:hover {
	color: var(--cp-accent);
}
.cp-dsub-link > svg.ico {
	flex: 0 0 auto;
	color: var(--cp-muted);
}
.cp-dsub-name {
	min-width: 0;
	overflow-wrap: anywhere;
}
.cp-dl3 {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-inline-start: 10px;
	padding: 0 0 8px;
	padding-inline-start: 10px;
	border-inline-start: 2px solid #eceef2;
}
.cp-dchip {
	flex: 0 1 auto;
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 26px;
	padding: 3px 9px;
	border-radius: 999px;
	background-color: #f5f6f8;
	color: var(--cp-muted);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.45;
	overflow-wrap: anywhere;
}
.cp-dchip:hover {
	color: var(--cp-accent);
}
.cp-card-more {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 32px;
	margin-top: 6px;
	padding: 5px 14px;
	border-radius: 999px;
	background-color: var(--cp-soft-1);
	color: var(--cp-accent);
	font-size: 11.5px;
	font-weight: 800;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
.cp-card-more:hover {
	color: var(--cp-accent);
}
.cp-page mark {
	padding: 0;                         /* no side padding: it would open a gap inside a joined Arabic word */
	border-radius: 3px;
	background-color: #fef3c7;
	color: inherit;
}
/* no match */
.cp-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 36px 16px;
	border-radius: 20px;
	background-color: var(--cp-surface);
	color: var(--cp-muted);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}
.cp-empty[hidden] {
	display: none;
}
.cp-empty p {
	margin: 0;
}
.cp-empty-clear {
	min-height: 36px;
	padding: 6px 18px;
	border: 0;
	border-radius: 999px;
	background-color: var(--cp-accent);
	color: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

/* phones: search, quick links, then the cards (one open at a time) */
@media (max-width: 767.98px) {
	.cp-page.cp-style-directory {
		padding-inline: 12px;
	}
	.cp-page.cp-style-directory .cp-head {
		display: block;
		padding: 0 0 8px;
	}
	.cp-page.cp-style-directory .cp-title {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.cp-page.cp-style-directory .cp-tools {
		display: block;
	}
	.cp-page.cp-style-directory .cp-search {
		width: 100%;
	}
	.cp-page.cp-style-directory .cp-quick {
		margin-top: 10px;
	}
	.cp-js .cp-card.has-subs .cp-card-btn {
		display: flex;
	}
	.cp-js .cp-card.has-subs .cp-card-top {
		display: none;
	}
	.cp-js .cp-card.has-subs:not(.is-open) .cp-card-body {
		display: none;
	}
	.cp-js .cp-card.has-subs .cp-card-body {
		margin-inline-start: 56px;
	}
}
/* tablets: 2 columns; desktops: 4 (cards never split between columns) */
@media (min-width: 768px) {
	.cp-page.cp-style-directory .cp-head {
		display: block;
	}
	.cp-page.cp-style-directory .cp-tools {
		margin-top: 10px;
	}
	.cp-page.cp-style-directory .cp-search {
		flex: 0 0 260px;
		max-width: 100%;
	}
	.cp-dir-list {
		display: block;
		column-count: 2;
		column-gap: 12px;
	}
	.cp-card {
		break-inside: avoid;
		margin-bottom: 12px;
		padding: 14px;
		border-radius: 22px;
	}
	.cp-card-top {
		padding: 0 0 10px;
		border-bottom: 2px dashed #eceef2;
	}
	.cp-card:not(.has-subs) .cp-card-top {
		padding-bottom: 0;
		border-bottom: 0;
	}
	.cp-card-body {
		padding: 4px 0 0;
	}
	.cp-card-more {
		display: none;                  /* the head's "All" does it here */
	}
}
@media (min-width: 1024px) {
	.cp-page.cp-style-directory .cp-head {
		display: flex;
		flex-wrap: wrap;
	}
	.cp-page.cp-style-directory .cp-tools {
		margin-top: 0;
	}
	.cp-page.cp-style-directory .cp-search {
		flex-basis: 300px;
	}
	.cp-dir-list {
		column-count: 4;
	}
}
