/* A&H Category Rail — story-style category circles on a native scroll rail,
   plus the "browse all categories" sheet.
   Nothing is hard-coded: colours come from the Blocksy palette variables and
   type is inherited from the page (the site font Blocksy loads — Cairo today);
   shadows are tinted from the palette ink. Elementor's kit styles `button` and
   `input` with its own font (Roboto), so controls here use two-class selectors
   and `font: inherit` to keep the site font. */

.ahcr,
.ahcs {
	--ahcr-accent: var(--theme-palette-color-1);
	--ahcr-accent-2: var(--theme-palette-color-2);
	--ahcr-text-2: var(--theme-palette-color-3);
	--ahcr-ink: var(--theme-palette-color-4);
	--ahcr-line: var(--theme-palette-color-5);
	--ahcr-soft: var(--theme-palette-color-6);
	--ahcr-page: var(--theme-palette-color-7);
	--ahcr-surface: var(--theme-palette-color-8);
	--ahcr-shade: color-mix(in srgb, var(--ahcr-ink) 45%, transparent);
	--ahcr-shade-soft: color-mix(in srgb, var(--ahcr-ink) 12%, transparent);
	--ahcr-hairline: color-mix(in srgb, var(--ahcr-ink) 7%, transparent);
	--ahcr-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--ahcr-fade: 28px;
	font-family: inherit;
}

/* The rail (2026-10-28, owner: the circles looked generic): a swipeable row of
   category tiles, each the photo of the category's best-selling product, the
   same tiles as the sheet. Flat: no rings, gradients or shadows on the tiles.
   Tiles in view: the editor sets --ahcr-n-m / -t / -d on the <nav> (phone,
   tablet, desktop; Elementor's breakpoints: <768, 768-1024, >1024). The number
   counts a tile plus its gap, so 3.5 shows three tiles and half of the next.
   Without container units (very old browsers) the fixed width below applies. */
.ahcr {
	--ahcr-gap: 10px;
	--ahcr-max: 168px;
	--ahcr-n: var(--ahcr-n-m, 3.5);
	position: relative;
	margin: 0;
}
@media (min-width: 768px) { .ahcr { --ahcr-n: var(--ahcr-n-t, 5.5); --ahcr-gap: 14px; } }
@media (min-width: 1025px) { .ahcr { --ahcr-n: var(--ahcr-n-d, 8); --ahcr-gap: 16px; } }

.ahcr__track,
.ahcr__nav { --ahcr-item: 100px; }
@supports (width: 1cqw) {
	.ahcr { container-type: inline-size; }
	.ahcr__track,
	.ahcr__nav { --ahcr-item: min(var(--ahcr-max), calc((100cqw + var(--ahcr-gap)) / var(--ahcr-n) - var(--ahcr-gap))); }
}

.ahcr__track {
	display: flex;
	gap: var(--ahcr-gap);
	margin: 0;
	padding: 2px 0 4px;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.ahcr__track::-webkit-scrollbar { display: none; }
/* Phones: the row runs into the page margin, so the next tile peeks in at the edge (the owner's
   tiles-in-view setting can be a whole number, which would otherwise hide that there is more). */
@media (max-width: 767px) {
	.ahcr__track {
		margin-inline: -20px;
		padding-inline: 20px;
		scroll-padding-inline: 20px;
	}
}
/* Fewer tiles than fit: centre them (rail.js sets the class). */
.ahcr__track.is-static { justify-content: center; }
.ahcr__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }

.ahcr__item {
	flex: 0 0 auto;
	width: var(--ahcr-item);
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}

.ahcr__link,
.ahcr__link:hover,
.ahcr__link:focus,
.ahcr__link:visited { color: var(--ahcr-ink); }

.ahcr__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-drag: none;
	outline: none;
}

.ahcr__disc {
	position: relative;
	display: block;
	aspect-ratio: 1;
	background: var(--ahcr-soft);
	overflow: hidden;
	transition: transform 0.2s var(--ahcr-ease);
}
.ahcr__disc img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ahcr-ease);
	-webkit-user-drag: none;
	user-select: none;
}
/* Fallback: a category without a product photo shows its own icon, smaller. */
.ahcr__disc .ahcr__img { box-sizing: border-box; object-fit: contain; padding: 14%; }

/* Optional product-count badge (rail setting "show_count"). */
.ahcr__badge {
	position: absolute;
	inset-block-start: 6px;
	inset-inline-end: 6px;
	min-width: 24px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--ahcr-ink);
	color: var(--ahcr-surface);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
	text-align: center;
	pointer-events: none;
}

.ahcr__name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: calc(2 * 1.35em);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
}
@media (min-width: 768px) { .ahcr__name { font-size: 14px; } }

@media (hover: hover) {
	.ahcr__link:hover .ahcr__disc img { transform: scale(1.05); }
}
.ahcr__link:focus-visible .ahcr__disc { outline: 2px solid var(--ahcr-ink); outline-offset: 2px; }
.ahcr__link:active .ahcr__disc { transform: scale(0.96); }

.ahcr ::selection,
.ahcs ::selection { background: var(--ahcr-accent); color: var(--ahcr-ink); }

.ahcr__foot {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}
/* The half-visible last tile already shows there is more; no position meter. */
.ahcr .ahcr__meter { display: none; }

/* Arrows: pointer devices only; touch swipes. They float over the tiles, so they keep a shadow. */
.ahcr .ahcr__nav {
	display: none;
	position: absolute;
	top: calc(2px + var(--ahcr-item) / 2);
	z-index: 2;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ahcr-surface);
	color: var(--ahcr-ink);
	box-shadow: 0 6px 16px -6px var(--ahcr-shade);
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%) scale(0.9);
	transition: opacity 0.3s var(--ahcr-ease), transform 0.4s var(--ahcr-ease), background-color 0.2s;
}
.ahcr__nav svg { display: block; }
.ahcr__nav--prev { inset-inline-start: -12px; }
.ahcr__nav--next { inset-inline-end: -12px; }
.ahcr__nav--prev:dir(ltr) svg,
.ahcr__nav--next:dir(rtl) svg { transform: scaleX(-1); }
.ahcr .ahcr__nav:hover { background: var(--ahcr-soft); }
.ahcr .ahcr__nav:focus-visible { outline: 2px solid var(--ahcr-ink); outline-offset: 3px; opacity: 1; }

@media (hover: hover) and (pointer: fine) {
	.ahcr .ahcr__nav:not([hidden]) { display: grid; }
	.ahcr:hover .ahcr__nav:not([disabled]),
	.ahcr:focus-within .ahcr__nav:not([disabled]) { opacity: 1; transform: translateY(-50%) scale(1); }
	.ahcr .ahcr__nav[disabled] { opacity: 0 !important; pointer-events: none; }
	.ahcr__track { cursor: grab; }
}

/* "Browse all categories": flat, like the shop toolbar's Categories button. */
.ahcr .ahcr__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: var(--ahcr-soft);
	color: var(--ahcr-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.15s;
	-webkit-tap-highlight-color: transparent;
}
.ahcr .ahcr__all[hidden] { display: none; }
.ahcr .ahcr__all--full { width: 100%; justify-content: center; }
.ahcr__all svg { flex: none; }
@media (hover: hover) {
	.ahcr .ahcr__all:hover { background: var(--ahcr-line); }
}
.ahcr .ahcr__all:active { transform: scale(0.97); }
.ahcr .ahcr__all:focus-visible { outline: 2px solid var(--ahcr-ink); outline-offset: 3px; }

/* ------------------------------------------------------------------------
   Display options (CATEGORY-RAIL-DISPLAY-PLAN.md). Classes on the <nav>:
   ahcr--{row|rows2|grid|groups|chips}, ahcr--shape-*, ahcr--corners-*,
   ahcr--name-*, ahcr--size-*, ahcr--hover-*, ahcr--card. Everything here is
   CSS; the only script is the row's (rail.js) and one line for "Show more".
   ------------------------------------------------------------------------ */
.ahcr { --ahcr-r: 12px; }
.ahcr--corners-small { --ahcr-r: 6px; }
.ahcr--corners-none { --ahcr-r: 0px; }
.ahcr__disc { border-radius: var(--ahcr-r); }
.ahcr--shape-portrait .ahcr__disc { aspect-ratio: 4 / 5; }
.ahcr--shape-wide .ahcr__disc { aspect-ratio: 3 / 2; }
.ahcr--shape-circle .ahcr__disc { border-radius: 50%; }

.ahcr__body { display: grid; gap: 2px; min-width: 0; }
.ahcr__meta,
.ahcr__desc { color: var(--ahcr-text-2); font-size: 12px; font-weight: 400; line-height: 1.4; text-align: center; }
.ahcr__desc { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.ahcr--size-s .ahcr__name { font-size: 12px; }
.ahcr--size-l .ahcr__name { font-size: 15px; }
@media (min-width: 768px) { .ahcr--size-l .ahcr__name { font-size: 17px; } }

/* Name on the picture: a dark band at the bottom of the photo keeps it readable on any picture. */
.ahcr--name-over .ahcr__link { position: relative; overflow: hidden; border-radius: var(--ahcr-r); }
.ahcr--name-over.ahcr--shape-circle .ahcr__link { border-radius: 50%; }
.ahcr--name-over .ahcr__body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 5px 6px 6px;
	background: rgba(15, 25, 37, 0.66);
	color: #fff;
}
.ahcr--name-over .ahcr__name { min-height: 0; font-size: 12px; line-height: 1.3; }
@media (min-width: 768px) { .ahcr--name-over .ahcr__name { font-size: 13px; } }
/* Icons sit higher so the band does not cover them. */
.ahcr--name-over .ahcr__disc .ahcr__img { padding: 8% 16% 30%; }
.ahcr--name-over .ahcr__meta,
.ahcr--name-over .ahcr__desc { color: rgba(255, 255, 255, 0.85); }
.ahcr--name-over.ahcr--shape-circle .ahcr__body { padding-bottom: 14%; }
/* Hidden names stay for screen readers. */
.ahcr--name-hidden .ahcr__body {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Card: a light grey card holds picture and name. */
.ahcr--card .ahcr__link { padding: 8px 8px 10px; border-radius: calc(var(--ahcr-r) + 4px); background: var(--ahcr-soft); }
.ahcr--card .ahcr__disc { background: var(--ahcr-surface); }
.ahcr--card.ahcr--name-over .ahcr__link { padding: 0; }

.ahcr--hover-none .ahcr__link:hover .ahcr__disc img { transform: none; }

/* Two rows: the same swipeable track, filled column by column. */
.ahcr__track--2 {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: auto auto;
	grid-auto-columns: var(--ahcr-item);
	row-gap: 16px;
}
.ahcr__track--2 .ahcr__item { width: auto; }

/* Grid and grouped grid: whole tiles per row, from the "tiles in view" numbers. */
.ahcr__grid {
	--ahcr-c: var(--ahcr-c-m, 3);
	display: grid;
	grid-template-columns: repeat(var(--ahcr-c), minmax(0, 1fr));
	gap: 18px var(--ahcr-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) { .ahcr__grid { --ahcr-c: var(--ahcr-c-t, 5); } }
@media (min-width: 1025px) { .ahcr__grid { --ahcr-c: var(--ahcr-c-d, 8); } }
.ahcr__grid .ahcr__item { width: auto; }
.ahcr__grid .ahcr__item.is-extra { display: none; }
.ahcr.is-open .ahcr__grid .ahcr__item.is-extra { display: block; }

.ahcr__group + .ahcr__group { margin-top: 28px; }
.ahcr__ghead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ahcr .ahcr__gtitle { margin: 0; color: var(--ahcr-ink); font: inherit; font-size: 18px; font-weight: 700; line-height: 1.3; }
.ahcr .ahcr__gall,
.ahcr .ahcr__gall:visited { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; color: var(--ahcr-text-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.ahcr .ahcr__gall:hover { color: var(--ahcr-ink); }
.ahcr__gall:dir(rtl) svg { transform: scaleX(-1); }

/* Chips: text only. They wrap on wide screens and swipe in one line on phones. */
.ahcr__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ahcr__chips li { margin: 0; }
.ahcr .ahcr__chip,
.ahcr .ahcr__chip:visited {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: var(--ahcr-r);
	background: var(--ahcr-soft);
	color: var(--ahcr-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s;
}
.ahcr .ahcr__chip:hover { background: var(--ahcr-line); }
.ahcr .ahcr__chip:focus-visible { outline: 2px solid var(--ahcr-ink); outline-offset: 2px; }
@media (max-width: 767px) {
	.ahcr__chips {
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin-inline: -20px;
		padding: 2px 20px 4px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.ahcr__chips::-webkit-scrollbar { display: none; }
}

.ahcr__foot { gap: 10px; flex-wrap: wrap; }

/* The sheet: bottom sheet on phones, centred panel from tablet up.
   Its height never depends on how many results are showing. On phones rail.js
   writes --ahcs-vh (visible viewport height) and --ahcs-kb (on-screen keyboard
   height) from visualViewport, so the sheet always sits above the keyboard.
   Inside: the menu's groups as tabs on the side, the categories as photo tiles
   next to them (one scrolling column, the tabs follow it). */
.ahcs {
	--ahcs-tabs: 104px;
	--ahcs-pad: 16px;
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ahcr-ink);
	overflow: hidden;
}
.ahcs:not([open]) { display: none; }
.ahcs::backdrop { background: color-mix(in srgb, var(--theme-palette-color-4) 50%, transparent); animation: ahcs-fade 0.3s linear; }
.ahcs.is-closing::backdrop { animation: ahcs-fade 0.24s linear reverse forwards; }
html.ahcs-open { overflow: hidden; }

.ahcs__panel {
	position: absolute;
	inset-inline: 0;
	bottom: var(--ahcs-kb, 0px);
	display: flex;
	flex-direction: column;
	/* A fixed height: it only follows the visual viewport while the keyboard is up (rail.js). */
	height: min(88dvh, calc(var(--ahcs-vh, 100dvh) - 12px));
	padding: 20px var(--ahcs-pad) 0;
	border-radius: 20px 20px 0 0;
	background: var(--ahcr-surface);
	box-shadow: 0 -18px 40px -24px var(--ahcr-shade);
	overflow: hidden;
	will-change: transform;
	/* The curve phone sheets use: quick start, long soft landing, no overshoot. */
	animation: ahcs-rise 0.38s cubic-bezier(0.32, 0.72, 0, 1);
	transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.ahcs.is-closing .ahcs__panel { animation: ahcs-sink 0.24s cubic-bezier(0.4, 0, 1, 1) forwards; }
/* Dragging it down by the top bar follows the finger; letting go snaps back or closes. */
.ahcs__panel.is-dragging { transition: none; }
@media (max-width: 767px) {
	.ahcs__panel::before {
		content: "";
		position: absolute;
		top: 7px;
		left: 50%;
		width: 36px;
		height: 4px;
		border-radius: 2px;
		background: var(--ahcr-line);
		transform: translateX(-50%);
	}
	.ahcs__head { touch-action: none; }
}

.ahcs__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; margin-bottom: 12px; }
.ahcs .ahcs__title { margin: 0; font: inherit; font-size: 20px; font-weight: 700; line-height: 1.3; color: inherit; }
.ahcs .ahcs__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ahcr-soft);
	color: inherit;
	cursor: pointer;
	transition: background-color 0.2s;
}
.ahcs .ahcs__close:hover { background: var(--ahcr-line); }
.ahcs .ahcs__close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.ahcs__search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	height: 44px;
	margin: 0 0 12px;
	padding: 0 14px;
	border: 1.5px solid transparent;
	border-radius: 12px;
	background: var(--ahcr-soft);
	color: var(--ahcr-text-2);
	transition: border-color 0.2s, background-color 0.2s;
	cursor: text;
}
.ahcs__search:focus-within { border-color: var(--ahcr-ink); background: var(--ahcr-surface); }
.ahcs .ahcs__search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ahcr-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	outline: none;
	caret-color: var(--ahcr-ink);
}
.ahcs .ahcs__search input::placeholder { color: var(--ahcr-text-2); opacity: 0.8; }
.ahcs__search input::-webkit-search-cancel-button { cursor: pointer; }

/* Tabs on the start side, edge to edge; the tiles scroll next to them. */
.ahcs__body {
	display: grid;
	grid-template-columns: var(--ahcs-tabs) minmax(0, 1fr);
	flex: 1;
	min-height: 0;
	margin-inline: calc(-1 * var(--ahcs-pad));
}
.ahcs__tabs {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	background: var(--ahcr-soft);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
}
.ahcs__tabs::-webkit-scrollbar { display: none; }
.ahcs .ahcs__tab,
.ahcs .ahcs__tab:visited {
	display: flex;
	align-items: center;
	flex: none;
	min-height: 56px;
	padding: 8px 12px;
	color: var(--ahcr-text-2);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: background-color 0.2s, color 0.2s;
	-webkit-tap-highlight-color: transparent;
}
.ahcs .ahcs__tab[aria-current="true"] { background: var(--ahcr-surface); color: var(--ahcr-ink); }
.ahcs .ahcs__tab:focus-visible { outline: 2px solid var(--ahcr-ink); outline-offset: -4px; }
@media (hover: hover) {
	.ahcs .ahcs__tab:hover { color: var(--ahcr-ink); }
}

.ahcs__panes {
	position: relative;
	min-height: 0;
	padding: 2px 14px calc(28px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--ahcr-line) transparent;
}
.ahcs__group { padding-top: 6px; }
.ahcs__group + .ahcs__group { margin-top: 26px; }
.ahcs__group[hidden] { display: none; }
.ahcs__ghead { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; margin: 0 0 10px; }
.ahcs .ahcs__gtitle { margin: 0; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ahcr-ink); }
.ahcs .ahcs__gall,
.ahcs .ahcs__gall:visited {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex: none;
	min-height: 32px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ahcr-text-2);
	text-decoration: none;
	transition: color 0.2s;
}
.ahcs__gall svg { transition: transform 0.3s var(--ahcr-ease); }
.ahcs__gall:dir(rtl) svg { transform: scaleX(-1); }
@media (hover: hover) {
	.ahcs .ahcs__gall:hover { color: var(--ahcr-ink); }
	.ahcs__gall:hover svg { transform: translateX(2px); }
	.ahcs__gall:dir(rtl):hover svg { transform: scaleX(-1) translateX(2px); }
}
.ahcs .ahcs__gall:focus-visible { outline: 2px solid var(--ahcr-ink); outline-offset: 2px; border-radius: 6px; }

.ahcs__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ahcs__item { margin: 0; padding: 0; }
.ahcs__item[hidden] { display: none; }
.ahcs .ahcs__tile,
.ahcs .ahcs__tile:visited {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--ahcr-ink);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.ahcs__pic {
	position: relative;
	display: block;
	aspect-ratio: 1;
	border-radius: 10px;
	background: var(--ahcr-soft);
	overflow: hidden;
}
.ahcs__pic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ahcr-ease);
}
/* Fallback: a category without a product photo shows its own icon, smaller. */
.ahcs__pic .ahcr__img { box-sizing: border-box; object-fit: contain; padding: 14%; }
.ahcs__pic .ahcr__badge { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; }
.ahcs__name {
	display: -webkit-box;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.ahcs .ahcs__tile:active .ahcs__pic img { transform: scale(0.96); }
.ahcs .ahcs__tile:focus-visible { outline: none; }
.ahcs .ahcs__tile:focus-visible .ahcs__pic { outline: 2px solid var(--ahcr-ink); outline-offset: 2px; }
@media (hover: hover) {
	.ahcs .ahcs__tile:hover .ahcs__pic img { transform: scale(1.05); }
}
.ahcs__empty { margin: 32px 0; text-align: center; font-size: 15px; color: var(--ahcr-text-2); }

/* Searching: the matches fill the width, four across. */
.ahcs.is-searching .ahcs__body { grid-template-columns: minmax(0, 1fr); }
.ahcs.is-searching .ahcs__tabs { display: none; }
.ahcs.is-searching .ahcs__panes { padding-inline: var(--ahcs-pad); }
.ahcs.is-searching .ahcs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
	.ahcs {
		--ahcs-tabs: 190px;
		--ahcs-pad: 24px;
	}
	.ahcs__panel {
		will-change: auto;
		inset: 50% auto auto 50%;
		width: min(920px, 92vw);
		height: min(82dvh, 760px);
		padding-top: 20px;
		border-radius: 18px;
		transform: translate(-50%, -50%);
		box-shadow: 0 30px 60px -30px var(--ahcr-shade);
		transition: none;
		animation: ahcs-pop 0.3s cubic-bezier(0.32, 0.72, 0, 1);
	}
	.ahcs.is-closing .ahcs__panel { animation: ahcs-pop 0.18s ease-in reverse forwards; }
	.ahcs .ahcs__title { font-size: 22px; }
	.ahcs .ahcs__tab { min-height: 48px; padding-inline: 20px; font-size: 14.5px; }
	.ahcs__panes { padding-inline: 22px; }
	.ahcs__grid,
	.ahcs.is-searching .ahcs__grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 20px 14px; }
	.ahcs__name { font-size: 13.5px; }
}

@keyframes ahcs-fade { from { opacity: 0; } }
@keyframes ahcs-rise { from { transform: translateY(100%); } }
@keyframes ahcs-sink { to { transform: translateY(100%); } }
@keyframes ahcs-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); } }

@media (prefers-reduced-motion: reduce) {
	.ahcr__track { scroll-behavior: auto; }
	.ahcr *, .ahcr *::after, .ahcs * { transition-duration: 0.01ms !important; }
	.ahcr__link:hover .ahcr__disc img, .ahcr__link:active .ahcr__disc { transform: none; }
	.ahcs__panel, .ahcs::backdrop, .ahcs.is-closing .ahcs__panel, .ahcs.is-closing::backdrop { animation-duration: 0.01ms !important; }
}
