﻿/* =====================================================================================
   2026-12-04 — Series rows rebuilt to the designer's HTML demo ("coin-category-list-demo")
   + rail edge arrows (2026-12-03). Loaded AFTER custom-style-2026-09-29b.css / 11-02b.css;
   overrides only. Bump this file's dated name on every edit once served (static-asset
   cache, see _Layout).
   ===================================================================================== */

.gsds {
  --gs-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gs-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gs-dur-expand: 340ms;
  --gs-shadow-high-dark: rgba(35, 39, 46, 0.15);
}

/* ---- list: 8px between rows, no hairline dividers (demo .groups) ---- */
.gsds .gs-srows { gap: 8px; }
.gsds .gs-srows > * + * { border-top: 0; padding-top: 0; }

/* ---- one row = one rounded block, grey on hover / while open (demo .group) ---- */
.gsds .gs-srows > .gs-srow,
.gsds .gs-srow {
  padding: 8px;
  border-radius: var(--radius-xl);
  background: transparent;
  transition: background-color 200ms ease;
}
.gsds .gs-srow:hover,
.gsds .gs-srow.is-open { background: var(--color-surface-sunken); }
.gsds .gs-srow--parent .gs-srow__head { cursor: pointer; }

.gsds .gs-srow__head { display: flex; gap: 16px; align-items: flex-start; }
.gsds .gs-srow__img { width: 60px; height: 60px; flex: none; position: relative; display: block; }
.gsds .gs-srow__img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  border-radius: 50%;
  box-shadow: -1.946px 1.946px 5.156px var(--gs-shadow-high-dark);
}
.gsds .gs-srow__img.is-slab img {
  border-radius: 2px; box-shadow: none;
  filter: drop-shadow(-1.9px 1.9px 2.6px var(--gs-shadow-high-dark));
}
.gsds .gs-srow__img img.is-placeholder { box-shadow: -1.946px 1.946px 2.578px var(--gs-shadow-high-dark); filter: none; border-radius: 50%; }

.gsds .gs-srow__gbody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.gsds .gs-srow__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; }
.gsds .gs-srow__titles { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gsds .gs-srow__title {
  font-family: var(--font-family-sans, "Geist", system-ui, sans-serif);
  font-weight: 600; font-size: 16px; line-height: 24px;
  color: var(--color-text-primary);
  text-decoration: none; align-self: flex-start;
  transition: opacity 160ms ease;
}
.gsds .gs-srow__title:hover { color: var(--color-text-primary); opacity: 0.64; text-decoration: none; }
.gsds .gs-srow__title:active { opacity: 0.45; }
.gsds .gs-srow__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  font-family: var(--font-family-mono);
  font-weight: 400; font-size: 12px; line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.gsds .gs-srow__mint { color: var(--color-text-secondary); white-space: nowrap; }
.gsds .gs-srow__sep { width: 1px; height: 16px; background: var(--color-border-strong); }
.gsds .gs-srow__tagline { color: var(--color-text-secondary); text-transform: uppercase; }
.gsds .gs-srow__tagline--type { color: var(--color-indigo-700); }
.gsds .gs-srow__tagline--set { color: var(--color-teal-700); }
.gsds .gs-srow__tags { margin-top: 0; }

.gsds .gs-srow__bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; }
.gsds .gs-srow .gs-pricetag {
  display: inline-flex; align-items: center;
  height: auto; margin: 0;
  padding: 8px 10px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-default);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(35, 39, 46, 0.05);
  font-weight: 600; font-size: 13px; line-height: 18px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Show / hide results toggle (demo .toggle) */
.gsds .gs-srow__toggle {
  display: inline-flex; align-items: center; gap: 4px;
  height: auto; padding: 0; border: 0; background: none;
  font-family: inherit; font-weight: 400; font-size: 12px; line-height: 16px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  border-radius: 10px;
  cursor: pointer;
  transition: color 200ms ease;
}
.gsds .gs-srow__toggle:hover { color: var(--color-text-secondary); filter: none; }
.gsds .gs-srow.is-open .gs-srow__toggle { background: none; border: 0; color: var(--color-text-brand); }
.gsds .gs-srow__toggle:focus-visible { outline: 2px solid var(--color-indigo-400); outline-offset: 2px; }
.gsds .gs-srow__chev {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px;
  font-size: 20px;
  transition: transform 420ms var(--gs-ease-spring), background-color 140ms ease;
}
.gsds .gs-srow__toggle:hover .gs-srow__chev { background: rgba(20, 23, 28, 0.05); }
.gsds .gs-srow.is-open .gs-srow__chev { transform: rotate(90deg); }

/* ---- expand / collapse: grid-template-rows 0fr → 1fr (demo .panel) ---- */
.gsds .gs-srow__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--gs-dur-expand) var(--gs-ease-out), visibility 0s linear var(--gs-dur-expand);
}
.gsds .gs-srow.is-open .gs-srow__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--gs-dur-expand) var(--gs-ease-out);
}
.gsds .gs-srow__clip { overflow: hidden; min-height: 0; }
.gsds .gs-srow__inner {
  container-type: inline-size;
  padding-top: 16px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 220ms var(--gs-ease-out);
}
.gsds .gs-srow.is-open .gs-srow__inner {
  opacity: 1; transform: none;
  transition: opacity 260ms ease 60ms, transform 340ms var(--gs-ease-out) 40ms;
}

/* ---- variety rows — one markup, two looks: cards by default, a table when the panel is
   ≥ 600px wide (demo .rows / .row) ---- */
.gsds .gs-vrows { display: flex; flex-direction: column; gap: 8px; }
.gsds .gs-vrow {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 36px;
  grid-template-areas: none;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  min-height: 85px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 4px rgba(35, 39, 46, 0.03);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.gsds .gs-vrow:hover { background: var(--color-surface-page); border-color: var(--color-border-strong); }
.gsds .gs-vrow:active { background: var(--color-surface-sunken); }
.gsds .gs-vrow__cell { min-width: 0; }
.gsds .gs-vrow__coin {
  display: block;
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  box-shadow: -1.492px 1.492px 3.953px var(--gs-shadow-high-dark);
}
.gsds .gs-vrow__coin img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gsds .gs-vrow__coin.is-slab { border-radius: 2px; box-shadow: none; filter: drop-shadow(-1.5px 1.5px 2px var(--gs-shadow-high-dark)); }
.gsds .gs-vrow__namecol { display: flex; flex-direction: column; gap: 4px; }
.gsds .gs-vrow__name {
  font-weight: 400; font-size: 13px; line-height: 18px;
  color: var(--color-text-primary);
  text-decoration: none;
}
.gsds .gs-vrow__name:hover { color: var(--color-text-primary); text-decoration: none; }
/* the name link covers the whole row; the heart sits above it */
.gsds .gs-vrow__name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gsds .gs-vrow__price-m { font-weight: 600; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.gsds .gs-vrow__price { display: none; }
.gsds .gs-vrow__heartcell { display: grid; place-items: center; position: relative; z-index: 2; }

@container (min-width: 600px) {
  .gsds .gs-vrows {
    gap: 1px;
    background: var(--color-border-default);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 8px rgba(35, 39, 46, 0.05);
    overflow: hidden;
  }
  .gsds .gs-vrow {
    grid-template-columns: 60px minmax(0, 1fr) 165px 75px;
    gap: 1px; padding: 0; min-height: 0;
    align-items: stretch;
    border: 0; border-radius: 0; box-shadow: none;
    background: var(--color-border-default);
  }
  .gsds .gs-vrow__cell {
    min-height: 50px; display: flex; align-items: center;
    padding: 8px 16px;
    background: var(--color-surface-raised);
    transition: background-color 140ms ease;
  }
  .gsds .gs-vrow:hover, .gsds .gs-vrow:active { background: var(--color-border-default); }
  .gsds .gs-vrow:hover .gs-vrow__cell { background: var(--color-surface-page); }
  .gsds .gs-vrow:active .gs-vrow__cell { background: var(--color-surface-sunken); }
  .gsds .gs-vrow__coincell { justify-content: center; padding: 0; }
  .gsds .gs-vrow__coin { width: 38px; height: 38px; }
  .gsds .gs-vrow__namecol { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .gsds .gs-vrow__name {
    display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; line-clamp: 2;
    overflow: hidden; overflow-wrap: anywhere;
  }
  .gsds .gs-vrow__price-m { display: none; }
  .gsds .gs-vrow__price {
    display: flex; justify-content: flex-end;
    font-weight: 600; font-size: 14px; line-height: 20px;
    font-variant-numeric: tabular-nums; white-space: nowrap;
  }
  .gsds .gs-vrow__heartcell { display: flex; justify-content: center; padding: 0; }
}
@container (min-width: 600px) and (max-width: 800px) {
  .gsds .gs-vrow { grid-template-columns: 56px minmax(0, 1fr) 168px 56px; }
  .gsds .gs-vrow__price { padding-inline: 12px; }
}

/* stagger the first few rows a touch (opacity / transform only) */
.gsds .gs-srow.is-open .gs-vrow { animation: gsVrowIn 320ms var(--gs-ease-out) both; animation-delay: calc(var(--i, 0) * 28ms + 60ms); }
@keyframes gsVrowIn { from { opacity: 0; transform: translateY(-4px); } }

/* ---- heart on series rows: 36px button, 18px icon, pop + ring + burst on save (demo .heart) ---- */
.gsds .gs-srow .gs-fav {
  position: relative;
  width: 36px; height: 36px; flex: none;
  border-radius: 10px;
  font-size: 18px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background-color 140ms ease, transform 120ms ease;
}
.gsds .gs-srow .gs-fav:hover { background: rgba(20, 23, 28, 0.05); opacity: 1; }
.gsds .gs-srow .gs-fav:active { transform: scale(0.94); }
.gsds .gs-srow .gs-fav.is-fav { color: var(--color-red-600); }
.gsds .gs-srow .gs-fav::before,
.gsds .gs-srow .gs-fav::after { content: ""; position: absolute; left: 50%; top: 50%; pointer-events: none; opacity: 0; }
.gsds .gs-srow .gs-fav::before {
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 2px solid var(--color-red-600);
}
.gsds .gs-srow .gs-fav::after {
  width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%;
  box-shadow:
    0 -17px 0 0 var(--color-red-600), 14.7px -8.5px 0 0 #d46b6a, 14.7px 8.5px 0 0 var(--color-red-600),
    0 17px 0 0 #d46b6a, -14.7px 8.5px 0 0 var(--color-red-600), -14.7px -8.5px 0 0 #d46b6a;
}
.gsds .gs-srow .gs-fav.is-pop i { animation: gsHeartPop 520ms var(--gs-ease-spring); }
.gsds .gs-srow .gs-fav.is-pop::before { animation: gsHeartRing 420ms var(--gs-ease-out); }
.gsds .gs-srow .gs-fav.is-pop::after { animation: gsHeartBurst 560ms var(--gs-ease-out); }
.gsds .gs-srow .gs-fav.is-unpop i { animation: gsHeartUnpop 260ms ease; }
.gsds .gs-srow .gs-fav i { display: block; }
@keyframes gsHeartPop { 0% { transform: scale(1); } 20% { transform: scale(0.6); } 55% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes gsHeartUnpop { 50% { transform: scale(0.82); } }
@keyframes gsHeartRing { 0% { opacity: 0.9; transform: scale(0.2); border-width: 6px; } 100% { opacity: 0; transform: scale(1.15); border-width: 0; } }
@keyframes gsHeartBurst { 0% { opacity: 0; transform: scale(0.35); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }

@media (max-width: 767px) {
  .gsds .gs-srow__tword { display: none; } /* "Show 12" instead of "Show 12 results" */
  /* the meta line wraps on phones (long mintages), which would strand the separator */
  .gsds .gs-srow__sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gsds .gs-srow, .gsds .gs-srow *, .gsds .gs-srow *::before, .gsds .gs-srow *::after {
    animation-duration: 1ms !important; transition-duration: 1ms !important; animation-delay: 0ms !important;
  }
}

/* ---- rail edge arrows (designer fix #1): the ‹ › pager moves from under the rail onto its left and
   right edges, vertically centred on the cards, always visible while there is more to scroll that
   way and hidden at either end. Only where the track is the nav's direct sibling — gated rails
   (track inside .gs-rail__gatewrap) keep the pager underneath. The rail script measures the bleed
   edge from the nav's parent, so the overlay doesn't move the cards. ---- */
.gsds :has(> .gs-rail__track) > .gs-rail__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.gsds :has(> .gs-rail__track):has(> .gs-rail__nav) { position: relative; }
.gsds :has(> .gs-rail__track) > .gs-rail__nav .gs-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  margin: 0 -6px;
  border-radius: var(--radius-full);
  background: var(--color-surface-raised);
  border: var(--stroke-weight-stroke-default) solid var(--color-border-strong);
  color: var(--color-text-brand);
  font-size: 22px;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(35, 39, 46, 0.22);
  transition: background-color .15s ease, color .15s ease, transform .15s ease, opacity .15s ease;
}
.gsds :has(> .gs-rail__track) > .gs-rail__nav .gs-btn:hover {
  background: var(--color-surface-button-indigo);
  border-color: var(--color-surface-button-indigo);
  color: var(--color-text-inverse);
  transform: scale(1.08);
}
.gsds :has(> .gs-rail__track) > .gs-rail__nav .gs-btn:disabled {
  opacity: 0;
  visibility: hidden;
}
/* the prev slot stays put when only "next" shows (space-between would otherwise slide it left) */
.gsds :has(> .gs-rail__track) > .gs-rail__nav .gs-rail__next { margin-left: auto; }

/* ---- phones / tablets ---- */
@media (max-width: 991px) {
  .gsds :has(> .gs-rail__track) > .gs-rail__nav .gs-btn { width: 40px; height: 40px; margin: 0 -4px; }
}

/* ---- sticky search under the fixed site header (CEO/designer ask 2026-12-04) ----
   The site header and the spot-price bar are both position:fixed: together 127px tall on desktop
   and 99px below 992px. The sidebar used to stick at 96px, so its search slid under the spot bar. */
@media (min-width: 992px) {
  .gsds .gs-funnel__side { top: 143px; max-height: calc(100vh - 159px); }
}
/* Series page, phones/tablets: the control bar sits above the rows and sticks under the header
   (as in the designer's demo) instead of being fixed to the bottom of the viewport. */
@media (max-width: 991px) {
  .gsds .gs-ctrlbar--top {
    position: sticky; top: 99px; left: auto; right: auto; bottom: auto;
    z-index: 900;
    margin: 0 0 8px;
    padding: 12px 0;
    display: flex; flex-direction: column;
    background: var(--color-surface-page);
    color: var(--color-text-primary);
  }
  /* rows fade as they slide under the bar */
  .gsds .gs-ctrlbar--top::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 20px;
    background: linear-gradient(var(--color-surface-page), rgba(247, 248, 250, 0));
    pointer-events: none;
  }
  .gsds .gs-ctrlbar--top .gs-ctrlbar__row { height: auto; padding: 0; gap: 12px; }
  .gsds .gs-ctrlbar--top .gs-ctrlbar__back { display: none; }
  .gsds .gs-ctrlbar--top .gs-ctrlbar__input {
    height: 40px;
    background: var(--color-surface-sunken);
    border-color: var(--color-border-default);
    color: var(--color-text-primary);
  }
  .gsds .gs-ctrlbar--top .gs-ctrlbar__input::placeholder { color: var(--color-text-tertiary); }
  .gsds .gs-ctrlbar--top .gs-ctrlbar__input:focus { outline-color: var(--color-border-strong); border-color: var(--color-border-strong); background: var(--color-surface-raised); }
  .gsds .gs-ctrlbar--top .gs-ctrlbar__search > i { color: var(--color-text-secondary); }
  .gsds .gs-ctrlbar--top .gs-ctrlbar__filter {
    width: 40px; height: 40px;
    border: var(--stroke-weight-stroke-default) solid var(--color-border-default);
    background: var(--color-surface-raised);
    color: var(--color-text-primary);
    font-size: 20px;
  }
  .gsds .gs-ctrlbar--top .gs-chips { order: 2; justify-content: flex-start; padding: 8px 0 0; border-bottom: 0; }
  .gsds .gs-ctrlbar--top .gs-chip { color: var(--color-text-primary); }
  /* no fixed bottom bar on this page any more, so no room to reserve for it */
  .gsds.gsds-funnel--series { padding-bottom: 0; }
}
