/*
 * Search, category pages and suggestions. Phone first; tokens from tokens.css.
 * Breakpoints (responsive guide): phone < 600, tablet 600–1023, laptop 1024–1439, desktop 1440+.
 */

/* ---------------------------------------------------------------------- */
/* Header suggestions                                                      */
/* ---------------------------------------------------------------------- */

.site-search { position: relative; }
.sx-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: var(--space-2); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.sx-suggest[hidden] { display: none; }
.sx-suggest__note { margin: 4px 8px 8px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sx-suggest__note b { color: var(--ink); font-weight: 650; }
.sx-suggest__head { display: flex; align-items: center; justify-content: space-between; margin: 8px 8px 4px; font: 600 12px/16px var(--font-sans); color: var(--ink-muted); }
.sx-suggest__head button { border: 0; background: none; color: var(--accent); font: 600 12px/16px var(--font-sans); cursor: pointer; padding: 4px; }
.sx-suggest ul { list-style: none; margin: 0; padding: 0; }
.sx-suggest__row { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 6px 8px; border-radius: var(--radius-md); color: var(--ink); cursor: pointer; }
.sx-suggest__row:hover, .sx-suggest__row.is-active { background: var(--surface-sunken); }
.sx-suggest__img { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--media); isolation: isolate; flex: none; overflow: hidden; display: grid; place-items: center; color: var(--ink-subtle); }
.sx-suggest__img img { width: 100%; height: 100%; object-fit: contain; padding: 2px; mix-blend-mode: multiply; display: block; }
.sx-suggest__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sx-suggest__title { font: 400 14px/19px var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-suggest__title mark, .sx-suggest__q mark { background: none; color: inherit; font-weight: 650; }
.sx-suggest__meta { display: flex; align-items: center; gap: 8px; font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.sx-suggest__star { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.sx-suggest__star svg { color: var(--rating); }
.sx-suggest__price { font: 700 14px/19px var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.sx-suggest__price del { display: block; font-weight: 400; font-size: 12px; color: var(--ink-muted); }
.sx-suggest__price ins { text-decoration: none; color: var(--accent); }
.sx-suggest__icon { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: var(--ink-muted); }
.sx-suggest__all { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 12px 8px 8px; border-top: 1px solid var(--line); font: 600 14px/18px var(--font-sans); color: var(--accent); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.sx-suggest__all.is-active, .sx-suggest__all:hover { background: var(--surface-sunken); }
@media (min-width: 1024px) {
	.hdr__search .sx-suggest { right: auto; width: max(100%, 560px); }
}

/* ---------------------------------------------------------------------- */
/* Page                                                                     */
/* ---------------------------------------------------------------------- */

.sx { --sx-side: 256px; padding-bottom: var(--space-8); }
.sx-n { color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 500; }

/* Breadcrumb: up link and Full path on phones, full trail from tablet. */
.sx-crumbs { margin: 0 0 var(--space-2); }
.sx-crumbs__m { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 44px; }
.sx-up { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font: 600 14px/18px var(--font-sans); min-width: 0; }
.sx-up span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-path-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 2px 0 8px; border: 0; background: none; color: var(--ink-muted); font: 500 13px/16px var(--font-sans); cursor: pointer; flex: none; }
.sx-path-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.sx-trail { list-style: none; margin: 0; padding: 0; display: none; flex-wrap: wrap; align-items: center; gap: 6px 0; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.sx-crumbs.is-open .sx-trail { display: flex; padding: 0 0 var(--space-3); }
.sx-trail.sx-trail--always { display: flex; }
.sx-trail li { display: inline-flex; align-items: center; min-width: 0; }
.sx-trail li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px 0 8px; border-right: 1.5px solid var(--ink-subtle); border-bottom: 1.5px solid var(--ink-subtle); transform: rotate(-45deg); flex: none; }
.sx-trail a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sx-trail [aria-current] { color: var(--ink); }
.sx-fold { min-width: 32px; height: 24px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.sx-fold:hover { background: var(--surface-sunken); }
@media (min-width: 600px) {
	.sx-crumbs__m { display: none; }
	.sx-trail { display: flex; }
	.sx-crumbs { margin-bottom: var(--space-4); }
}

/* Title row. */
.sx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.sx-head__text { min-width: 0; }
.sx-title { font: 750 24px/30px var(--font-sans); letter-spacing: -.02em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.sx-count { margin: 4px 0 0; color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.sx-sort { display: none; align-items: center; gap: var(--space-3); flex: none; }
.sx-sort__label { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.sx-select { position: relative; display: inline-flex; align-items: center; }
.sx-select select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: 600 14px/20px var(--font-sans); cursor: pointer; }
.sx-select > .ic:last-child { position: absolute; right: 12px; pointer-events: none; color: var(--ink-muted); }
.sx-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (min-width: 600px) { .sx-title { font-size: 26px; line-height: 32px; } }
@media (min-width: 1024px) {
	.sx-title { font-size: 30px; line-height: 36px; }
	.sx-sort { display: flex; }
	.sx-head { margin-bottom: var(--space-6); }
}

.term-description { margin: calc(var(--space-2) * -1) 0 var(--space-4); }
.sx-note { margin: 0 0 var(--space-4); padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 14px; line-height: 20px; }

/* Phone: category chips and the sticky Sort | Filters bar. */
.sx-cchips { margin: 0 calc(var(--space-4) * -1) var(--space-3); }
.sx-cchips__row { list-style: none; margin: 0; padding: 0 var(--space-4); display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.sx-cchips__row::-webkit-scrollbar { display: none; }
.sx-cchips__row li { flex: none; scroll-snap-align: start; }
.sx-cchips .sia-pill { height: 44px; padding: 0 16px; font-size: 14px; }
.sx-cchips .sia-pill .sx-n { color: inherit; opacity: .7; }
.sx-cchips .sia-pill:not(.is-on):hover { background: var(--surface-sunken); }

.sx-bar { position: sticky; top: var(--sx-top, 0px); z-index: 35; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: 0 calc(var(--space-4) * -1) var(--space-3); padding: var(--space-2) var(--space-4); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.sx-bar.is-stuck { box-shadow: 0 8px 16px -14px rgba(0, 0, 0, .5); }
.sx-bar__sort { width: 100%; }
.sx-bar__sort > .ic { position: absolute; left: 14px; pointer-events: none; color: var(--ink); }
.sx-bar__sort select { width: 100%; height: 44px; padding: 0 12px 0 40px; text-align: center; text-align-last: center; }
.sx-bar__filters { width: 100%; }
.sx-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--brand-orange); color: #fff; font: 700 11px/20px var(--font-sans); text-align: center; }
@media (min-width: 1024px) {
	.sx-cchips, .sx-bar { display: none; }
}

/* Chips for what is narrowing the results. */
.sx-active { margin-bottom: var(--space-4); }
.sx-active__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.sx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 14px; border-radius: var(--radius-pill); background: var(--surface-inverse); color: var(--ink-inverse); font: 500 13px/16px var(--font-sans); max-width: 100%; }
.sx-chip span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-chip:hover { background: color-mix(in srgb, var(--surface-inverse) 85%, var(--accent)); }
.sx-clear { display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; color: var(--accent); font: 600 13px/16px var(--font-sans); }
.sx-clear:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------------- */
/* Layout: sidebar on laptops, bottom sheet on phones and tablets           */
/* ---------------------------------------------------------------------- */

.sx-layout { display: block; }
.sx-results { min-width: 0; }

.sx-side { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.sx-side.is-open { visibility: visible; pointer-events: auto; }
.sx-sheet__scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .2s var(--ease); }
.sx-side.is-open .sx-sheet__scrim { opacity: 1; }
.sx-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: var(--surface-raised); border-radius: 18px 18px 0 0; box-shadow: var(--shadow-pop); transform: translateY(100%); transition: transform .28s var(--ease); padding-bottom: env(safe-area-inset-bottom); outline: none; }
.sx-side.is-open .sx-sheet__panel { transform: none; }
.sx-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 8px 20px; border-bottom: 1px solid var(--line); position: relative; }
.sx-sheet__head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--line-strong); opacity: .5; }
.sx-sheet__title { font: 700 18px/24px var(--font-sans); margin: 0; }
.sx-form { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sx-sheet__foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--space-3); padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-raised); }
@media (min-width: 600px) and (max-width: 1023px) {
	.sx-sheet__panel { left: auto; top: 0; width: min(420px, 92vw); max-height: none; border-radius: 0; transform: translateX(100%); }
	.sx-sheet__head::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.sx-sheet__panel, .sx-sheet__scrim { transition: none; }
}

@media (min-width: 1024px) {
	.sx-layout { display: grid; grid-template-columns: var(--sx-side) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
	.sx-layout--empty { display: block; }
	.sx-side { position: static; visibility: visible; pointer-events: auto; z-index: auto; }
	.sx-sheet__scrim, .sx-sheet__head, .sx-sheet__foot { display: none; }
	.sx-sheet__panel { position: static; transform: none; max-height: none; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: none; transition: none; padding: 0; }
	.sx-form { overflow: visible; }
}

/* Filter groups. */
.sx-group { padding: var(--space-4) var(--space-4) var(--space-4); border-bottom: 1px solid var(--line); }
.sx-group:last-of-type { border-bottom: 0; }
.sx-group__title { font: 650 15px/20px var(--font-sans); margin: 0 0 var(--space-3); }
.sx-group__sub { font: 600 13px/18px var(--font-sans); color: var(--ink-muted); margin: var(--space-3) 0 var(--space-1); }
.sx-opts { list-style: none; margin: 0; padding: 0; }
.sx-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 2px 0; cursor: pointer; font: 400 14px/20px var(--font-sans); color: var(--ink); border-radius: var(--radius-sm); }
.sx-opt__label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sx-opt.is-empty { color: var(--ink-muted); }
.sx-opt:hover .sx-opt__label { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
@media (min-width: 1024px) { .sx-opt { min-height: 32px; } }

.sx-opt input, .sx-pillopt input { margin: 0; }
.sx-opt input[type="checkbox"], .sx-opt input[type="radio"] {
	appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--line-strong); background: var(--surface-raised) center / 12px 12px no-repeat; cursor: pointer; transition: background-color .12s var(--ease), border-color .12s var(--ease);
}
.sx-opt input[type="checkbox"] { border-radius: 5px; }
.sx-opt input[type="radio"] { border-radius: 50%; }
.sx-opt input[type="checkbox"]:checked { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.sx-opt input[type="radio"]:checked { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface-raised); background-color: var(--accent); }
.sx-opt input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
	.sx-opt input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2125' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
}

.sx-stars { display: inline-flex; align-items: center; gap: 1px; color: var(--rating); }
.sx-stars > span { margin-left: 6px; color: var(--ink); }

.sx-pillopts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sx-pillopt { position: relative; display: inline-flex; cursor: pointer; }
.sx-pillopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sx-pillopt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface-raised); font: 500 13px/1 var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; transition: background-color .12s var(--ease); }
.sx-pillopt:hover span { background: var(--surface-sunken); }
.sx-pillopt input:checked + span { background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--ink-inverse); }
.sx-pillopt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 1024px) { .sx-pillopt span { min-height: 36px; } }

.sx-more { margin-top: var(--space-2); padding: 6px 0; border: 0; background: none; color: var(--accent); font: 600 14px/20px var(--font-sans); cursor: pointer; }
.sx-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Category tree. */
.sx-tree { list-style: none; margin: 0; padding: 0; }
.sx-tree__link { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px; border-radius: var(--radius-md); color: var(--ink); font: 400 14px/18px var(--font-sans); }
a.sx-tree__link:hover { background: var(--surface-sunken); }
.sx-tree__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sx-tree__up .sx-tree__link { color: var(--ink-muted); }
.sx-tree__up .ic { color: var(--ink-subtle); }
.sx-tree__more { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 2px 10px; border: 0; background: none; border-radius: var(--radius-md); color: var(--ink-muted); font: 400 13px/18px var(--font-sans); cursor: pointer; text-align: left; }
.sx-tree__more:hover { background: var(--surface-sunken); color: var(--ink-muted); }
.sx-tree__link.is-current { background: var(--surface-sunken); font-weight: 650; }
.sx-tree__link.is-current::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-orange); flex: none; }
.sx-tree--kids { margin: 2px 0 4px 14px; padding-left: 8px; border-left: 1px solid var(--line); }
.sx-tree__note { margin: var(--space-2) 10px 0; font-size: 12px; line-height: 17px; color: var(--ink-muted); }
@media (min-width: 1024px) { .sx-tree__link { min-height: 36px; } }

/* Price. */
.sx-range { position: relative; height: 28px; margin: 0 9px var(--space-3); }
.sx-range__track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--line); }
.sx-range__fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--brand-orange); }
.sx-range input[type="range"] { position: absolute; left: -9px; right: -9px; width: calc(100% + 18px); top: 0; height: 28px; margin: 0; background: none; appearance: none; -webkit-appearance: none; pointer-events: none; }
.sx-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-raised); border: 2px solid var(--brand-orange); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); pointer-events: auto; cursor: grab; }
.sx-range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-raised); border: 2px solid var(--brand-orange); pointer-events: auto; cursor: grab; }
.sx-range input[type="range"]::-webkit-slider-runnable-track { background: none; }
.sx-price { display: flex; align-items: center; gap: var(--space-2); }
.sx-price__field { position: relative; flex: 1; min-width: 0; display: flex; }
.sx-price__r { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-size: 14px; pointer-events: none; }
.sx-price__field input { width: 100%; height: 44px; padding: 0 10px 0 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: 400 15px/20px var(--font-sans); font-variant-numeric: tabular-nums; }
.sx-price__field input::placeholder { color: var(--ink-muted); }
.sx-price__field input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.sx-price__to { color: var(--ink-subtle); }
.sx-apply-nojs { padding: var(--space-4); }

/* ---------------------------------------------------------------------- */
/* Results                                                                  */
/* ---------------------------------------------------------------------- */

ul.products.sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 600px) { ul.products.sx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }
@media (min-width: 1024px) { ul.products.sx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { ul.products.sx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sx-layout--empty ul.products.sx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sx-grid .sia-card-item.is-new { animation: sx-in .35s var(--ease) both; }
@keyframes sx-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .sx-grid .sia-card-item.is-new { animation: none; } }

/* Card additions (all grids). */
.sia-card__specs { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sia-card__rating { display: inline-flex; align-items: center; gap: 4px; font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.sia-card__rating .sx-star { color: var(--rating); }
.sia-card__rating b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Paging: numbers from tablet up, "Show more" on phones. */
.sx-pager { margin-top: var(--space-8); }
.sx-pager__nums { list-style: none; margin: 0; padding: 0; display: none; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sx-page { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-raised); font: 600 14px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); }
a.sx-page:hover { background: var(--surface-sunken); }
.sx-page.current { background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--ink-inverse); }
.sx-page.dots { border-color: transparent; background: none; }
.sx-rot-l { transform: rotate(-90deg); }
.sx-rot-r { transform: rotate(90deg); }
.sx-pager__more { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.sx-pager__status { margin: 0; color: var(--ink-muted); font-size: 13px; }
.sx-pager__more .sia-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
@media (min-width: 600px) {
	.sx-pager__nums { display: flex; }
	.sx-pager__more { display: none; }
}

/* Nothing found. */
.sx-empty__msg { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); }
.sx-empty__title { font: 700 20px/26px var(--font-sans); margin: 0 0 var(--space-2); overflow-wrap: anywhere; text-wrap: balance; }
.sx-empty__dym { margin: 0 0 var(--space-3); font-size: 16px; line-height: 24px; }
.sx-empty__tips { margin: 0; padding-left: 18px; color: var(--ink-muted); font-size: 14px; line-height: 22px; max-width: 65ch; }
.sx-empty__tips li + li { margin-top: 4px; }
.sx-related { margin-top: var(--space-8); }
.sx-related__title { font: 700 19px/26px var(--font-sans); margin: 0 0 var(--space-4); }

/* ---------------------------------------------------------------------- */
/* All categories                                                           */
/* ---------------------------------------------------------------------- */

.ac-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.ac-title { font: 750 24px/30px var(--font-sans); letter-spacing: -.02em; margin: 0; }
.ac-find { position: relative; }
.ac-find .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.ac-find input { width: 100%; height: 48px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: 400 15px/22px var(--font-sans); }
.ac-find input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.ac-popular { display: flex; align-items: center; gap: var(--space-2); margin: 0 calc(var(--space-4) * -1); padding: 0 var(--space-4); overflow-x: auto; scrollbar-width: none; }
.ac-popular::-webkit-scrollbar { display: none; }
.ac-popular__label { flex: none; font-size: 13px; color: var(--ink-muted); margin-right: 4px; }
.ac-popular .sia-pill { flex: none; height: 40px; font-size: 14px; }
.ac-popular .sia-pill:hover { background: var(--surface-sunken); }
.ac-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ac-dept { border-bottom: 1px solid var(--line); }
.ac-dept > details > summary { list-style: none; display: flex; align-items: center; gap: var(--space-3); min-height: 60px; cursor: pointer; font: 650 16px/22px var(--font-sans); }
.ac-dept > details > summary::-webkit-details-marker { display: none; }
.ac-dept__icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--surface-sunken); display: grid; place-items: center; flex: none; }
.ac-dept__name { flex: 1; min-width: 0; }
.ac-dept__chev { color: var(--ink-muted); transform: rotate(90deg); transition: transform .2s var(--ease); }
.ac-dept details[open] .ac-dept__chev { transform: rotate(-90deg); }
.ac-sub { list-style: none; margin: 0 0 var(--space-3); padding: 0 0 0 52px; }
.ac-sub li a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); font: 400 15px/20px var(--font-sans); color: var(--ink); }
.ac-sub li:last-child a { border-bottom: 0; }
.ac-sub li a:hover { color: var(--accent); }
.ac-sub .ac-all a { color: var(--accent); font-weight: 650; }
.ac-none { padding: var(--space-6) 0; color: var(--ink-muted); }
.ac-dept[hidden], .ac-sub li[hidden] { display: none; }
@media (min-width: 1024px) {
	.ac-head { grid-template-columns: minmax(0, 1fr) 380px; align-items: end; padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
	.ac-title { font-size: 30px; line-height: 36px; grid-column: 1 / -1; }
	.ac-popular { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
	.ac-list { border-top: 0; columns: 4 240px; column-gap: var(--space-8); }
	.ac-dept { border-bottom: 0; break-inside: avoid; padding-bottom: var(--space-6); }
	.ac-dept > details > summary { min-height: 48px; cursor: default; pointer-events: none; }
	.ac-dept__chev { display: none; }
	.ac-sub { padding-left: 52px; margin: 0; }
	.ac-sub li a { min-height: 32px; border-bottom: 0; font-size: 14px; color: var(--ink-muted); }
	.ac-sub .ac-all a { font-size: 14px; }
}

/* 0.7.3: About {category}, under the grid. */
.sx-about { margin: var(--space-12) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--line); max-width: 880px; }
.sx-about__h { font: 700 17px/24px var(--font-sans); margin: 0 0 var(--space-2); color: var(--ink); }
.sx-about__p { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.sx-about__h3 { font: 600 14px/20px var(--font-sans); margin: var(--space-6) 0 var(--space-2); color: var(--ink); }
.sx-about__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-about__links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; font-size: 13px; background: var(--surface-raised); }
.sx-about__links a:hover { border-color: var(--line-strong); }
.sx-about__links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
