/* Native server-rendered catalog controls; preserve the existing visual language. */
.explore-sidebar a[data-topic] { min-height:52px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 14px; border:0; border-bottom:1px solid #938a7c; background:transparent; text-align:left; font-weight:850; text-decoration:none; }
.explore-sidebar a[data-topic]:last-child { border-bottom:0; }
.explore-sidebar a[data-topic]:is(:hover,:focus-visible) { background:var(--paper-deep); }
.explore-sidebar a[data-topic][aria-current="page"] { color:var(--white); background:var(--purple); }
.explore-sidebar a[data-topic] b { min-width:34px; padding:1px 6px; color:var(--ink); background:var(--yellow); text-align:center; font-size:12px; }
.explore-page .explore-sidebar a[data-topic] { min-height:48px; position:relative; justify-content:flex-start; padding:8px 12px 8px 46px; font-size:15px; }
.explore-page .explore-sidebar a[data-topic]::before { content:attr(data-index); position:absolute; left:13px; color:var(--purple); font:950 12px/1 var(--display); letter-spacing:-.04em; }
.explore-page .explore-sidebar a[data-topic][aria-current="page"]::before { color:var(--yellow); }
.explore-page .explore-sidebar a[data-topic] b { margin-left:auto; }
.catalog-pagination :is(a,span[aria-current]) { display:inline-flex; align-items:center; justify-content:center; min-width:42px; min-height:42px; padding:8px 12px; border:2px solid var(--ink); color:var(--ink); background:var(--white); font-weight:900; box-shadow:3px 3px 0 var(--ink); text-decoration:none; }
.catalog-pagination a:is(:hover,:focus-visible) { color:var(--white); background:var(--purple); transform:translate(-1px,-1px); box-shadow:4px 4px 0 var(--ink); }
.catalog-pagination span[aria-current="page"] { color:var(--white); background:var(--purple); }
@media(max-width:800px) {
  .explore-page .explore-sidebar a[data-topic] { min-height:52px; padding:9px 13px; justify-content:center; border-left:0; border-right:1px solid #938a7c; border-bottom:0; white-space:nowrap; scroll-snap-align:start; font-size:13px; }
  .explore-page .explore-sidebar a[data-topic]::before,.explore-page .explore-sidebar a[data-topic] b { display:none; }
  .catalog-pagination :is(a,span[aria-current]) { min-width:36px; min-height:38px; padding:6px 9px; box-shadow:2px 3px 0 var(--ink); }
}
/* Card rows have a fixed mobile height; empty states must size to their text.
   Otherwise the reset link overflows the grid and lands underneath the footer. */
html[data-catalog-ssr] .explore-results .item-grid:has(> [data-empty]:not([hidden])) { grid-auto-rows:auto; }
html[data-catalog-ssr] .explore-results [data-empty] { min-height:280px; padding:40px 20px; }
