/* hero-prices.v5.css -- with hero-prices.v5.js:
 * v5 (Benny: "make sure that everyone is able to have 60fps"): no backdrop blur. 130
 * blurred tags on moving columns cost 40% of the frames on a 4x slower CPU; the
 * tags are near-opaque instead, which looks the same on a photo. the price tag on every hero
 * photo, and on the desktop columns the hover: the tile grows, its column stops,
 * the tag becomes a small item card (brand, title, marketplace, bought for,
 * expected resale). The feed's grammar: white card, dark figures, no glow;
 * inverted on the dark scheme. Served max-age=604800: never edit in place. */
.jpa-hc-tile, .jpa-hero-tile { position: relative; }
.hp-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; pointer-events: none;
  padding: 5px 10px; border-radius: 999px;
  background: hsl(0 0% 100% / .96); color: hsl(220 10% 8%);
  font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: 0 1px 2px hsl(0 0% 0% / .16), 0 4px 12px -4px hsl(0 0% 0% / .28);
  transition: opacity .2s ease;
}
html[data-theme="dark"] .hp-tag { background: hsl(240 4% 10% / .92); color: hsl(220 10% 94%); box-shadow: 0 1px 2px hsl(0 0% 0% / .4); }
.jpa-hero-tile .hp-tag { left: 7px; bottom: 7px; padding: 4px 8px; font-size: 11px; }

.hp-card { display: none; }

@media (min-width: 1180px) and (hover: hover) {
  /* the wall was decoration only (pointer-events: none in hero-cols); its tiles answer the mouse now */
  .jpa-hero-cols { pointer-events: auto; }
  .jpa-hc-track { pointer-events: none; }
  .jpa-hc-tile { pointer-events: auto; cursor: default; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
  /* only after the pointer has rested on a photo for half a second (hero-prices.v4.js):
     that column stops, the others keep flowing */
  .jpa-hc-col.hp-hold .jpa-hc-track { animation-play-state: paused; }
  .jpa-hc-tile.hp-open {
    transform: scale(1.12); z-index: 4;
    box-shadow: 0 2px 6px hsl(0 0% 0% / .18), 0 24px 48px -16px hsl(0 0% 0% / .45);
  }
  .jpa-hc-tile.hp-open .hp-tag { opacity: 0; }

  .hp-card {
    display: block; position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; pointer-events: none;
    padding: 10px 12px 11px; border-radius: 12px;
    background: hsl(0 0% 100% / .97); color: hsl(220 10% 8%);
    box-shadow: 0 1px 2px hsl(0 0% 0% / .14), 0 10px 24px -10px hsl(0 0% 0% / .35);
    opacity: 0; transform: translateY(8px);
    transition: opacity .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
    font-size: 12px; line-height: 1.25;
  }
  .jpa-hc-tile.hp-open .hp-card { opacity: 1; transform: none; }
  html[data-theme="dark"] .hp-card { background: hsl(240 4% 10% / .96); color: hsl(220 10% 94%); box-shadow: 0 1px 2px hsl(0 0% 0% / .5); }

  .hp-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .hp-card-brand { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hp-card-logo { flex: none; align-self: center; width: 16px; height: 16px; margin-left: auto; border-radius: 4px; display: block; }
  .hp-card-title { margin-top: 3px; font-size: 12.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hp-card-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 8px; border-top: 1px solid hsl(220 10% 50% / .18); }
  .hp-card-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .hp-card-cell-r { align-items: flex-end; text-align: right; }
  .hp-card-lbl { font-size: 10px; opacity: .55; white-space: nowrap; }
  /* v6: on a narrow photo the two labels never run into each other; the right one gives way */
  .hp-card-cell:not(.hp-card-cell-r) { flex: none; }
  .hp-card-cell-r { flex: 1 1 auto; }
  .hp-card-cell-r .hp-card-lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .hp-card-val { font-size: 15px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .hp-card-up { color: hsl(152 55% 32%); }
  html[data-theme="dark"] .hp-card-up { color: hsl(152 50% 62%); }
  .hp-card-x { margin-left: 5px; padding: 1px 5px; border-radius: 6px; font-size: 10.5px; font-weight: 700; vertical-align: 2px; background: hsl(152 55% 32% / .12); }
  html[data-theme="dark"] .hp-card-x { background: hsl(152 50% 62% / .16); }
}
@media (prefers-reduced-motion: reduce) {
  .jpa-hc-tile, .hp-card { transition: none !important; }
}

/* v8 (Benny, 2026-11-22: "for mobile it looks very bad with the items coming in and text
   of prices and the main text overlapping"): on the phone layout the photos lie BEHIND the
   hero's headline, so a price tag on them landed on the text. No tags there; the desktop
   columns (beside the text) keep theirs. */
.jpa-hero-tile .hp-tag { display: none !important; }
