/* TheBest.Bargains — theme "Synthwave".
   Deep purple night, hot pink and cyan, gradient display type, cards with gradient
   borders, glow everywhere. The loudest theme here on purpose.

   Layout discipline: same spacing scale as the other themes, no transform tricks. */

:root {
  --ink: #fdf3ff;
  --ink-2: #e3d3f5;
  --ink-soft: #b39ad0;
  --bg: #150726;
  --bg-2: #21093a;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 110, 199, 0.28);
  --line-hot: rgba(124, 247, 255, 0.45);

  --pink: #ff6ec7;
  --cyan: #7cf7ff;
  --violet: #a26bff;
  --gold: #ffd166;
  --accent: #ff6ec7;
  --accent-hot: #7cf7ff;
  --grad: linear-gradient(100deg, var(--pink), var(--violet) 48%, var(--cyan));
  --grad-alt: linear-gradient(280deg, var(--pink), var(--violet) 48%, var(--cyan));
  --accent-ink: #26062b;
  --good: #57f2b6;
  --blue: #7cf7ff;
  --grey: #9d8fbd;
  --amber: #ffb347;
  --bad: #ff5e8a;

  --grad: linear-gradient(100deg, var(--pink), var(--violet) 48%, var(--cyan));
  --radius: 14px;
  --radius-sm: 8px;
  --s1: 8px; --s2: 14px; --s3: 22px; --s4: 34px; --s5: 52px;

  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --measure: 56rem;
  --gutter: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(255, 110, 199, 0.22), transparent 62%),
    radial-gradient(1000px 560px at 96% 2%, rgba(124, 247, 255, 0.16), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 55%, #170828);
  background-attachment: fixed;
  color: var(--ink);
  font: 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.skip { position: absolute; left: -9999px; background: var(--pink); color: var(--accent-ink); padding: 10px 16px; z-index: 60; font-weight: 800; text-decoration: none; }
.skip:focus { left: 8px; top: 8px; border-radius: var(--radius-sm); }

.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s3);
  padding: 13px var(--gutter);
  background: rgba(21, 7, 38, 0.86);
  backdrop-filter: blur(12px);
  /* no bottom rule: the masthead is a floating slab now and the glow under it is the
     edge. border-image only paints where a border-width exists, so it is inert while the
     border is off - kept because switching the border back on restores the gradient. */
  border-bottom: 0;
  border-image: var(--grad) 1;
  flex-wrap: wrap; row-gap: 8px;
  box-shadow: 0 0 1500px -20px rgba(255, 110, 199, 0.7); }
/* ---- the daily category strip in the masthead -------------------------------
   The same pills a review page carries under its headline: every category hub, biggest
   shelf first, tapering to the right. Deterministic, so the nav does not reshuffle under
   the reader. The row is ONE line that
   runs OFF THE RIGHT EDGE of the page. It never wraps, the page clips it, and the fade
   says there is more. It can be panned, but there is no bar to look at. */
.navcats {
  flex: 1 1 100%; display: flex; align-items: center; gap: 7px;
  margin-right: calc(-1 * var(--gutter));
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
  mask-image: linear-gradient(to right, #000 88%, transparent);
}
.navcats::-webkit-scrollbar { display: none; }
.navcats .catbubble { flex: 0 0 auto; font-size: 10.5px; padding: 5px 12px; letter-spacing: 0.11em; }
.navcats .catbubble-count { font-size: 10px; padding-left: 8px; }

.brand { line-height: 1; font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; white-space: nowrap; }
.brand-main { color: var(--ink); font-size: clamp(24px, 5vw, 30px); }
.brand-tld { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--pink); }
.mastnav { display: flex; gap: var(--s3); align-items: center; }
.mastnav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.mastnav a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.navdim { color: var(--ink-soft); font-size: 14.5px; opacity: 0.55; }

main { display: block; }
.kicker-wrap { margin: 0 0 var(--s1); }
.kicker { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--pink); }
.headline { font-family: var(--font-display); font-size: clamp(31px, 5.4vw, 48px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 var(--s2); text-wrap: balance; text-shadow: 0 0 40px rgba(255, 110, 199, 0.35); }
.standfirst { font-size: 19px; color: var(--ink-soft); margin: 0 0 var(--s3); max-width: var(--measure); }
a { color: var(--cyan); text-underline-offset: 3px; }

.review { max-width: calc(var(--measure) + 200px); margin: 0 auto; padding: var(--s4) var(--gutter) var(--s1); }
.byline-row { display: flex; align-items: center; gap: var(--s1); flex-wrap: wrap; color: var(--ink-soft); font-size: 13.5px; margin: 0 0 var(--s3); }
.byline { font-weight: 700; color: var(--ink-2); }
.dot { opacity: 0.4; }
.pubdate { font-variant-numeric: tabular-nums; }

.verdictbar {
  display: flex;
  align-items: stretch;
  border-radius: 67px;/*var(--radius);*/
  padding: 1px;
  /* background: var(--grad); */
  box-shadow: 0 0 1500px -20px rgba(255, 110, 199, 0.7);
  margin: 0 0 var(--s4);
}
.stamp {
  flex: 0 0 auto; min-width: 210px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: var(--s3) var(--s2); text-align: center;
  background: #1d0a33; color: var(--ink);
  border-radius: 67px; /*calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px);*/
}
.stamp-word { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.15; text-transform: uppercase; }
.stamp-label { font-size: 14px; color: var(--ink-soft); max-width: 19ch; line-height: 1.3; }
.stamp.gold .stamp-word { color: var(--gold); }
.stamp.green .stamp-word { color: var(--good); }
.stamp.blue .stamp-word { color: var(--cyan); }
.stamp.grey .stamp-word { color: var(--ink-2); }
.stamp.amber .stamp-word { color: var(--amber); }
.stamp.red .stamp-word { color: var(--bad); }
.stamp.seal { background: #26073c; }
.stamp.seal .stamp-word { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff; }
.stamp.gold, .stamp.green, .stamp.blue, .stamp.grey, .stamp.amber, .stamp.red, .stamp.seal { background: #1d0a33; }

.shortverdict { flex: 1 1 auto; padding: var(--s3); display: flex; flex-direction: column; gap: var(--s1); justify-content: center; background: #1d0a33; border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0; }
.stars-big { font-size: 15px; letter-spacing: 3px; color: var(--gold); }
.shortverdict p { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; }

.hero { margin: 0 0 var(--s4); }
.hero img { display: block; width: 100%; max-width: 380px; height: auto; border-radius: var(--radius); background: #fff; padding: 12px; box-shadow: 0 0 50px -18px rgba(124, 247, 255, 0.6); }

.review h2 { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: var(--s5) 0 var(--s2); padding-bottom: var(--s1); border-bottom: 2px solid transparent; border-image: var(--grad) 1; }
.review h3 { font-size: 18px; font-weight: 700; margin: var(--s3) 0 var(--s1); }
.review p { margin: 0 0 var(--s2); }
.review a { font-weight: 600; }
.review ul, .review ol { padding-left: 20px; margin: 0 0 var(--s2); }
.review li { margin-bottom: 10px; }
.review li::marker { color: var(--pink); }
.review strong { color: #fff; font-weight: 700; }
.review .sec { margin: 0; }
.prose { text-wrap: pretty; }
.review .sec-good .checklist li::marker { color: var(--good); }
.review .sec-not .checklist li::marker { color: var(--pink); }

.review .sec-specs .spectable { border: 2px solid var(--line-hot); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.review .sec-specs table { margin: 0; border-collapse: collapse; width: 100%; font-size: 15.5px; }
.review .sec-specs th, .review .sec-specs td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.review .sec-specs tr:last-child th, .review .sec-specs tr:last-child td { border-bottom: 0; }
.review .sec-specs td:first-child { width: 40%; font-weight: 700; color: var(--cyan); }

.review .sec-box .boxlist { border: 1px solid var(--line); border-left: 3px solid var(--pink); border-radius: var(--radius-sm); background: var(--panel); padding: var(--s2) var(--s3) 4px; }
.review .sec-box .boxlist ul { margin-bottom: 10px; }

.review .tablewrap { overflow-x: auto; }
.review table { border-collapse: collapse; width: 100%; font-size: 15px; }
.review th, .review td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.review thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--cyan); }
.review .tablewrap table { min-width: 34rem; }

.review .sec-compares { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px var(--s3) var(--s2); background: var(--panel); }
.review .sec-compares h2 { border-bottom: 0; border-image: none; }

.review .sec-verdict { margin-top: var(--s5); }
.review .sec-verdict h2 { border-bottom: 2px solid var(--pink); border-image: none; }
.review .sec-verdict .verdict-body { border-left: 3px solid var(--cyan); padding-left: var(--s2); }
.review .sec-verdict .verdict-body p { font-size: 18.5px; font-weight: 600; line-height: 1.5; }
.review .sec-verdict .verdict-body p:last-child { margin-bottom: 0; }

.draftbar { display: flex; align-items: center; gap: var(--s1); flex-wrap: wrap; background: rgba(255, 179, 71, 0.12); border: 1px solid var(--amber); border-radius: var(--radius-sm); padding: 11px 15px; margin: 0 0 var(--s3); font-size: 14px; color: #ffdcb0; }
.draftbar b { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; color: var(--amber); }

.cta { margin: var(--s5) 0 0; padding: var(--s3) 0 var(--s1); border-top: 1px solid var(--line); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.cta-line { font-size: 17px; font-weight: 700; margin: 0; flex: 1 1 16rem; }
.buy-button { display: inline-block; background: var(--grad); color: #21062b; text-decoration: none; font-weight: 800; font-size: 15px; padding: 13px 26px; border-radius: 999px; transition: box-shadow 140ms ease, transform 140ms ease; }
.buy-button:hover { box-shadow: 0 0 40px -8px rgba(255, 110, 199, 0.85); transform: translateY(-2px); }
.microdisclosure { color: var(--ink-soft); font-size: 12.5px; margin: var(--s2) 0 0; }

.cardgrid { max-width: 76rem; margin: var(--s4) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: var(--s3); }
/* ---- the hub header, lined up with the tiles ---------------------------------
   The tile grid below is centred at 76rem, so the headline is too. Pinned to the page
   edge it looked like it belonged to a different page from the cards. */
.hubhead, .pagebody { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }
.hubhead { padding-top: var(--s4); }

.pmcard { display: flex; flex-direction: column; gap: var(--s1); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s2); text-decoration: none; color: var(--ink); transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.pmcard:hover { border-color: var(--cyan); box-shadow: 0 0 44px -14px rgba(124, 247, 255, 0.65); transform: translateY(-3px); }
.pmcard-img { margin: calc(var(--s2) * -1) calc(var(--s2) * -1) 4px; height: 158px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; }
.pmcard-img img { max-width: 86%; max-height: 86%; width: auto; height: auto; }
.pmcard-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s1); }
.pmcard-cat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan); }
.pmcard-stamp { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #21062b; background: var(--grey); padding: 3px 9px; border-radius: 999px; }
.pmcard-stamp.gold { background: var(--gold); }
.pmcard-stamp.green { background: var(--good); }
.pmcard-stamp.blue { background: var(--cyan); }
.pmcard-stamp.grey { background: var(--grey); color: #fff; }
.pmcard-stamp.amber { background: var(--amber); }
.pmcard-stamp.red { background: var(--bad); color: #fff; }
/* the rating pill, sized to match the band chip beside it so the top row reads as
   one pair rather than a big star row with a small chip under it */
.pmcard-score { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em;
  color: var(--accent-ink); background: var(--grad); padding: 3px 9px; border-radius: 999px; }
.pmcard-score .pmcard-glyph { font-size: 1.05em; line-height: 1; }
.pmcard-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.18; letter-spacing: -0.03em; }
.pmcard-summary { color: var(--ink-soft); font-size: 14.5px; margin: 0; line-height: 1.55; }

.site-footer { margin-top: var(--s5); border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.foot-inner { max-width: 76rem; margin: 0 auto; padding: var(--s3) var(--gutter) var(--s5); }
.site-footer .fineprint { color: var(--ink-soft); margin: 0; font-size: 12.5px; line-height: 1.7; max-width: 62rem; }

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .masthead { gap: var(--s2); padding: 11px 16px; }
  .mastnav { gap: var(--s2); }
  .verdictbar { flex-direction: column; }
  .stamp { min-width: 0; border-radius: 67px; /*calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;*/ }
  .shortverdict { border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); }
  .review { padding-top: var(--s3); }
}

/* subtitle: gradient text under the headline */
.subtitle {
  font-size: 20px; line-height: 1.42; font-weight: 700; letter-spacing: -0.01em;
  margin: -4px 0 var(--s3); /*max-width: 38rem;*/ text-wrap: pretty;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--pink);
}

/* score badge: gradient pill with a star and the number */
.stamp-score { display: inline-flex; align-items: center; gap: 9px; background: var(--grad); color: #21062b; border-radius: 999px; padding: 9px 26px 11px; margin: 4px 0 2px; font-weight: 800; font-size: 38px; line-height: 1.1; }
.stamp-score .star { font-size: 32px; }
.stamp-score .num { letter-spacing: -0.02em; }

/* ---- review body: the article is wider than the text ---------------------
   The gallery needs more room than a line of prose should have, so the article carries the
   extra width and the prose is capped to the reading measure inside it. The main image sits
   where it always did: in the article, under the verdict. */
.review-body { max-width: var(--measure); }
/* the alt column: its own element, in normal flow. No absolute placement and no scrollbar,
   so it takes the space it needs and the page scrolls as one. */
.gallery-thumbs-wrap { display: block; }


/* ---- image gallery: main image, the rest fanned off to the right in 3D ------
   The stack overlaps like a hand of cards and tilts away from the viewer, so each
   cover peeks out from behind the one before it. Clicking one crossfades it into the
   main slot (see the script in review.eta): both the big and the small file travel
   with the swap, and nothing jumps. */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; margin: 0 0 var(--s4); }
.gallery-main { margin: 0; min-width: 0; position: relative; }
.gallery-main img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: #fff; padding: 12px; box-shadow: 0 0 50px -18px rgba(124, 247, 255, 0.6); }
/* the crossfade layer: absolutely over the front image, same frame, fades in on swap */
.gallery-main .gallery-ghost {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; pointer-events: none;
  transition: opacity 300ms ease;
}
.gallery-main .gallery-ghost.is-visible { opacity: 1; }

.gallery-thumbs {
  list-style: none; margin: 0; padding: 6px 2px 6px 0; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: flex-end;
  perspective: var(--gal-perspective, 850px); perspective-origin: 0% 50%;
}
.gallery-thumbs li { margin: 0; line-height: 0; position: relative; transform-style: preserve-3d; }
.gallery-thumbs li + li { margin-top: calc(-1 * var(--gal-overlap, 18px)); }  /* the overlap */
.gallery-thumb {
  display: block; padding: 4px; background: var(--grad); border: 0; border-radius: 12px; cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 380ms cubic-bezier(.2,.7,.2,1), box-shadow 380ms ease,
              border-color 380ms ease, opacity 200ms ease;
  will-change: transform;
}
.gallery-thumb img { display: block; width: var(--gal-thumb, 86px); height: var(--gal-thumb, 86px); object-fit: cover; object-position: center; transition: opacity 200ms ease; }

/* the fan: each cover rotates a little further away and slides right */
.gallery-thumbs li:nth-child(1) .gallery-thumb { transform: rotateY(calc(var(--gal-tilt, 18deg) * -1)) rotate(calc(var(--gal-tilt, 18deg) * -0.19)) translate3d(0, 0, 0); }
.gallery-thumbs li:nth-child(2) .gallery-thumb { transform: rotateY(calc(var(--gal-tilt, 18deg) * -1.4)) rotate(calc(var(--gal-tilt, 18deg) * 0.11)) translate3d(6px, 0, -8px); }
.gallery-thumbs li:nth-child(3) .gallery-thumb { transform: rotateY(calc(var(--gal-tilt, 18deg) * -1.72)) rotate(calc(var(--gal-tilt, 18deg) * -0.08)) translate3d(11px, 0, -16px); }
.gallery-thumbs li:nth-child(4) .gallery-thumb { transform: rotateY(calc(var(--gal-tilt, 18deg) * -2)) rotate(calc(var(--gal-tilt, 18deg) * 0.17)) translate3d(15px, 0, -24px); }
.gallery-thumbs li:nth-child(5) .gallery-thumb { transform: rotateY(calc(var(--gal-tilt, 18deg) * -2.28)) rotate(calc(var(--gal-tilt, 18deg) * -0.11)) translate3d(18px, 0, -32px); }
.gallery-thumbs li:nth-child(n+6) .gallery-thumb { transform: rotateY(calc(var(--gal-tilt, 18deg) * -2.5)) rotate(calc(var(--gal-tilt, 18deg) * 0.08)) translate3d(20px, 0, -40px); }
.gallery-thumbs li:nth-child(1) { z-index: 9; }
.gallery-thumbs li:nth-child(2) { z-index: 8; }
.gallery-thumbs li:nth-child(3) { z-index: 7; }
.gallery-thumbs li:nth-child(4) { z-index: 6; }
.gallery-thumbs li:nth-child(5) { z-index: 5; }
.gallery-thumbs li:nth-child(n+6) { z-index: 4; }
.gallery-thumb:hover, .gallery-thumb:focus-visible {
  transform: rotateY(-4deg) rotate(0deg) translate3d(-10px, 0, 34px) scale(1.06);
  box-shadow: 0 0 34px -6px rgba(255, 110, 199, 0.9); z-index: 20;
}
/* flat: no 3D at all. This must out-specify the fan rules above (they are
   .gallery-thumbs li:nth-child(N) .gallery-thumb), hence .gallery.gallery-flat, and it
   must come after them: same-specificity rules are decided by source order.
   Overlap and thumb size still apply, so the strip is still tunable without the effect. */
.gallery.gallery-flat .gallery-thumbs { perspective: none; }
.gallery.gallery-flat .gallery-thumbs li:nth-child(n) .gallery-thumb { transform: none; }
.gallery.gallery-flat .gallery-thumb:hover,
.gallery.gallery-flat .gallery-thumb:focus-visible { transform: scale(1.05); }

@media (max-width: 620px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery-thumbs { flex-direction: row; flex-wrap: wrap; align-items: center; perspective: none; padding: 0; }
  .gallery-thumbs li + li { margin-top: 0; margin-left: -20px; }
  .gallery-thumbs li:nth-child(n) .gallery-thumb { transform: none; }
  .gallery-thumbs li:nth-child(n) { z-index: auto; }
}

/* the stars holder: much larger */

/* ---- left rail: the latest reviews as square tiles -------------------------
   The rail is the first column at the LEFT EDGE of the page and the article is centred
   in what is left. Both are IN FLOW: there is no second scrollbar, so the page scrolls
   the rail with it and the whole list is reachable by scrolling. The image FILLS its
   square (object-fit: cover), so a tall photo is cropped top and bottom and a wide one
   left and right rather than letterboxed or stretched. The title and rating sit in a
   bubble overlapping the bottom edge of the image. */
.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 0 var(--gutter);
  max-width: calc(var(--measure) + 200px + 248px + 40px + 2 * var(--gutter));
  margin: 0 auto;
}
.layout-main { max-width: var(--measure); width: 100%; margin: 0 auto; min-width: 0; }
.rail { position: static; padding-top: 34px; }
.layout-rail-left .rail { grid-column: 1; grid-row: 1; }
.layout-rail-left .layout-main { grid-column: 2; grid-row: 1; }
.layout-rail-right { grid-template-columns: minmax(0, 1fr) 248px; }
.layout-rail-right .layout-main { grid-column: 1; grid-row: 1; }
.layout-rail-right .rail { grid-column: 2; grid-row: 1; }
.rail-head {
  margin: 0 0 14px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--pink);
  padding-bottom: 8px; /*border-bottom: 1px solid var(--line);*/
}
.rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.rail-item { position: relative; display: block; padding-bottom: 26px; text-decoration: none; color: var(--ink); }
.rail-thumb { display: block; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,0.06); }
.rail-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rail-body {
  position: absolute; left: 9px; right: 9px; bottom: 0;
  display: flex; flex-direction: column; gap: 5px;
  background: #1d0a33; border: 1px solid var(--line); border-radius: 9px;
  padding: 16px 12px 11px;
  box-shadow: 0 0 30px -10px rgba(255, 110, 199, 0.8);
}
.rail-name { font-size: 16px; font-weight: 800; line-height: 1.24; letter-spacing: -0.018em; color: var(--ink); }
/* the score is a badge on the top-right corner of the title bubble, the same shape the
   review page's rating uses: a gradient pill with a star and the number. It straddles
   the bubble's top edge, and the bubble's top padding keeps it clear of the first line */
.rail-score {
  position: absolute; right: 11px; bottom: 100%; margin-bottom: -14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad); color: var(--accent-ink);
  border-radius: 999px; padding: 6px 14px 7px;
  font-size: 15px; font-weight: 800; line-height: 1;
  box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.5);
}
.rail-score .rail-glyph { font-size: 14px; line-height: 1; }
.rail-draft { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.rail-item:hover .rail-name { color: var(--cyan); }
@media (max-width: 900px) {
  .layout, .layout-rail-right { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .layout-rail-left .rail, .layout-rail-left .layout-main,
  .layout-rail-right .rail, .layout-rail-right .layout-main { grid-column: auto; grid-row: auto; }
  .rail { padding-top: 26px; }
  .rail-list { flex-direction: row; overflow-x: auto; padding-bottom: 10px; gap: 16px; }
  .rail-item { flex: 0 0 168px; }
}

/* ---- category + brand bubbles -----------------------------------------------
   One bubble per category the product is in, then the company. Same bubble, opposite
   gradients: the categories take the theme's ramp, the company the same ramp run the
   other way, so the pair reads as related without being identical. */
.catbubble, .brandbubble {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none; padding: 8px 16px; color: var(--accent-ink);
  border-radius: 999px;
}
.catbubble { background: var(--grad); }
.brandbubble { background: var(--grad-alt); }
.catbubble-count {
  font-size: 11px; font-weight: 800; letter-spacing: 0.02em;
  padding-left: 10px; border-left: 1px solid currentColor; opacity: 0.7;
}
a.catbubble:hover, a.brandbubble:hover { filter: brightness(1.15) saturate(1.1); }

/* ---- the verdict box -------------------------------------------------------
   The rating box on the left, the closing text right beside it, so the seal and the
   sentence that explains it are read together. */
.sec-verdict { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 26px; }
.sec-verdict h2 { flex: 0 0 100%; }
.verdict-stamp { display: flex; flex: 0 0 auto; margin: 0; }
.verdict-body { flex: 1 1 340px; min-width: 0; }

/* ---- the tail of the review -------------------------------------------------
   A lot of air after the last section, then a heading big enough to announce that the
   review is over and the browsing is beginning. */
.related-block { margin-top: 100px; padding-top: 44px; border-top: 1px solid var(--line); }
.related-head {
  font-family: var(--font-display); font-size: 34px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 26px; color: var(--ink);
}

/* ---- good / not: each point is a bubble -------------------------------------
   These lists are arguments, not items: a bolded claim plus the reasoning for it. The
   claim is the bubble's heading and the reasoning sits under it, so there are no
   bullets to scan past. The left edge is coloured by the section (good or not). */
.points { display: flex; flex-direction: column; gap: 12px; margin: 0 0 20px; }
.point {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05);
  padding: 14px 17px;
  border-left: 4px solid var(--violet);
}
.sec-good .point { border-left-color: var(--good); }
.sec-not .point { border-left-color: var(--pink); }
.point-head {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}
.point-body { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.point-body strong { font-weight: 700; }
.point-plain { padding-top: 12px; padding-bottom: 12px; }

/* the browsing card's name bubble is filled with the CATEGORY colour, so it matches the
   category line just under it rather than the accent the buy capsule uses */
:root { --cat: var(--cyan); --cat-ink: #08202a; }


/* The commerce chrome — the associate disclosure and the buy capsule.
   -------------------------------------------------------------------------
   These two things appear on every review page and they are the only places the
   site points at Amazon, so they are not left to eight separate theme files to
   reinvent: the build appends this file to whichever theme is active. Everything
   reads the theme's own custom properties with fallbacks, so a theme that has never
   heard of them still renders something sensible.

   The capsule is the same control everywhere it appears: beside the date at the top,
   on the rule above the summary, the specs and the audience, at the bottom of the
   verdict box, and on the rating line of every rail tile. It has to look like ONE
   object in all of them, which is why the styling lives here and not in each template. */

/* the Amazon disclosure: sits between the date and the capsule pair, centred in the space
   it occupies, in the theme's own ink colour (white on the dark themes) at the date's own
   size, so it reads as part of the byline rather than as a badge. */
.assoc-line {
  flex: 1 1 auto;
  text-align: center;
  color: var(--ink, #fff);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.9;
}
/* the eBay disclosure: left of the nav links, in the same type as the Amazon one. It is
   a span in .mastnav, so it inherits no link styling, and the weight is re-pinned because
   themes that bold their nav links would otherwise leave the sentence reading as a label. */
.masthead .navassoc {
  color: var(--ink, #fff);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.8;
  max-width: 34rem;
  line-height: 1.35;
}

/* the capsule pair: Amazon then eBay, held together as one object and pushed to the
   right end of whatever row it sits in. The 8px gap is the whole distance between them;
   the Amazon capsule's own margin-left:auto is neutralised inside the pair, so the two
   can never be separated by a space-between parent. */
.buy-pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
.buy-pair .buy-capsule { margin-left: 0; }

.buy-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* pushed to the right end of whatever row it is in: the header's right-hand corner */
  margin-left: auto;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  /* the theme accent, as it always was: matching the eBay mark's #d11da4 turned out to be
     too intense at capsule size, and the two do not clash side by side */
  background: var(--accent, #ff6ec7);
  color: var(--accent-ink, #21062b);
  font-family: var(--font-body, inherit);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.buy-capsule::after { content: "→"; font-weight: 700; }
.buy-capsule:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 0 22px -6px var(--accent, #ff6ec7); }

/* ---- a heading with no rule under it ----------------------------------------
   The bullet sections (what's good / what's not, what's in the box) and the specs
   checklist drop the line: the bullets and the table already give the block an edge, and
   the rule only added a second one. The `!important` is deliberate: every theme styles its headings through a
   different selector (.review h2, .sec-not h2, a border-image gradient and so on), and
   this has to win in all eight of them without being copy-pasted into each. */
.sec-head-norule {
  border-bottom: 0 !important;
  border-image: none !important;
  padding-bottom: 0 !important;
}

/* the "Part of <list>" line opens the browsing tail, so it starts well below the verdict
   instead of sitting on the last line of the closing argument */
.lists-line { margin-top: 100px; }

/* ---- a section head with the capsule beside its heading ---------------------
   The summary at the top of a review is headed by the product itself (make and model);
   the specs and the audience keep their own heading. All three carry the capsule on the
   right, centred against the heading's own type and sitting ABOVE the rule: the h2 is the
   flex row, so its rule still runs the full width underneath both. */
.sec-head { position: relative; margin-bottom: var(--s3, 22px); }
.sec-head h2 { margin-bottom: 0; }
.sec-head-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2, 14px);
  min-width: 0;
}
.sec-head-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sec-head .buy-pair { flex: 0 0 auto; }

/* the verdict box: the stamp and the capsule stacked, capsule at the bottom of the
   box, level with the box's own width rather than floating loose. */
.verdict-stamp-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.verdict-stamp-inner .stamp { flex: 0 0 auto; }
.verdict-stamp-inner .buy-capsule { margin-left: 0; }

/* the gallery's main image is a link to the listing: it takes the full slot, so the
   layout does not shift, and it says it is clickable on hover without turning the
   product shot into a button */
.gallery-main-link { display: block; cursor: pointer; }
.gallery-main-link:hover img { filter: brightness(1.04); }

/* A cap on the height of the product shot. Every theme sizes the main image with
   width:100% and height:auto, so a tall photo (a tower fan, a floor lamp) could run a
   thousand and more pixels down the page and push the review below the fold.
   object-fit keeps the shape instead of squashing it: the box stops growing and the
   image is fitted inside, centred, on the theme's own panel colour. */
.gallery-main img {
  max-height: var(--gal-main-max, 1000px);
  object-fit: contain;
}

/* ---- the rail tiles ---------------------------------------------------------
   One line of pills across the top edge of the title bubble: the buy capsule on the
   left, the rating on the right. The rating is the theme's absolute badge, so inside
   the row it is put back in normal flow; the row does the positioning for both. */
.rail-cell { position: relative; }
.rail-pills {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 100%;
  margin-bottom: -14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 2;
}
.rail-pills .rail-score { position: static; right: auto; bottom: auto; margin: 0; }
.rail-buy {
  margin-left: 0;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 800;
  gap: 5px;
  box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.5);
}
.rail-buy::after { content: none; }
/* the tile is a span now (an <a> may not contain the capsule's <a>), so the two
   links inside it carry the styling the tile used to inherit */
.rail-name { text-decoration: none; }
.rail-thumb { text-decoration: none; }

/* ---- a hub's heading, with its subcategories beside it -----------------------
   A category page names its sections to the right of the title, as the same catbubble
   pills the masthead strip uses: a category should look identical wherever it appears.
   This is the masthead row reused, so the theme does not need to know about hubs — only
   the masthead-specific parts (its 100% flex line, its bleed past the gutter, its fade)
   are put back to normal, and the pills wrap instead of running off the edge, because
   there are only a handful of them and a hidden one would be a dead end. */
.hubhead .sec-head-name {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--s2, 14px) var(--s3, 22px);
  justify-content: space-between;
}
.hubhead .navcats {
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-right: 0;
  margin-bottom: 7px;
  overflow: visible;
  scrollbar-width: auto;
  -webkit-mask-image: none;
  mask-image: none;
}
.hubhead .navcats .catbubble { font-size: 11px; padding: 6px 13px; }

/* ---- the browsing cards -----------------------------------------------------
   A card on a hub, the home page, an A-Z page or a list is a box, and the capsule
   lives INSIDE the box at the bottom right, sitting on the box's own bottom edge rather
   than floating under it. Two consequences worth knowing:

   1. The card is a span with a stretched title link, because the capsule is a link of
      its own and an <a> may not contain one. The overlay covers the whole box, so the
      card still behaves like a card; the capsule sits above it and keeps its clicks.
   2. The capsule is one step larger than the band chip beside the rating ("worth a
      look"): the chip is the verdict, the capsule is the next step, and reading them
      as the same size would flatten that. */
.pmcard { position: relative; }
/* the card's title in petite caps: the display face at this size, with the lower case
   set as small capitals, so a shelf of cards reads as a shelf of labels rather than a
   wall of headlines. Declared here rather than in each theme so all eight agree. */
.pmcard-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-variant: petite-caps;
}
.pmcard-stretch { text-decoration: none; color: inherit; }
.pmcard-stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.pmcard-stretch:hover { color: inherit; }

/* the product's own name, as a bubble straddling the top edge of the box */
.pmcard-name {
  position: absolute;
  top: -10px;
  left: 11px;
  max-width: calc(100% - 22px);
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  /* the SAME colour as the category line under it, filled: the bubble names the product
     the way the category names the shelf. A theme whose category is not its accent
     (synthwave, tabloid, brutalist) sets --cat and --cat-ink itself. No border and no
     translucent background: a see-through pill over a product shot reads as a smudge. */
  background: var(--cat, var(--accent, #ff6ec7));
  color: var(--cat-ink, var(--accent-ink, #21062b));
  font-family: var(--font-display, inherit);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.8);
}

/* the capsule sits at the bottom right of the box: the footer row takes the stretch the
   flex column has left over, so capsules line up across a row of uneven cards */
.pmcard-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 4px;
}
.pmcard-buy {
  position: relative;
  z-index: 2;
  margin-left: 0;
  padding: 7px 15px;
  font-size: 13px;
  gap: 6px;
}
/* a top pick carries a star on each side of the label. The arrow is dropped there: two
   stars AND an arrow is three marks of emphasis on one small pill. */
.pmcard-buy.is-top-pick { gap: 7px; }
.pmcard-buy.is-top-pick::after { content: none; }
.pmcard-buy .tp-star { font-size: 0.95em; line-height: 1; }

@media (max-width: 620px) {
  /* on a phone the box is narrow: keep the capsule readable but stop it wrapping */
  .pmcard-buy { font-size: 12px; padding: 6px 12px; }
  .pmcard-name { font-size: 11.5px; }
}

@media (max-width: 900px) {
  /* the rail turns into a horizontal strip of narrower tiles: keep the two pills on
     one line by taking the arrow and a few pixels off the capsule */
  .rail-buy { font-size: 10.5px; padding: 5px 9px; }
}

@media (max-width: 640px) {
  /* on a phone the byline wraps, so give the disclosure a line of its own and let the
     capsule pair take the right end of the one above it: name and date, the disclosure,
     then the pair. Nothing is crushed and nothing overlaps. */
  .byline-row .assoc-line { flex: 1 1 100%; text-align: left; }
  .buy-pair { margin-left: auto; }
  .byline-row .buy-pair { flex: 1 1 100%; justify-content: flex-end; }
  .masthead .navassoc { font-size: 10.5px; max-width: none; }
}


/* ---- the masthead search box ------------------------------------------------
   One field in the masthead, present on every page, and the only thing on the site
   that runs script. It sits on the brand row at the right end and shrinks first when
   the window narrows; the category strip keeps the line below it to itself.
   Everything here is chrome shared by all eight themes, so it lives in this file and
   is appended last — a theme can override any of it, but none of them has to. */
.masthead .searchform {
  position: relative;
  /* the brand is unmatched and so orders at 0; the field takes 1, the nav 2, and the
     category strip 3 because it is the full-width block that owns the line beneath */
  /* sits directly right of the brand: order 1 against the brand's implicit 0, and the
     nav takes the right end with margin-left: auto. The field shrinks before anything
     else does when the window narrows. */
  order: 1;
  flex: 0 1 300px;
  min-width: 150px;
}
.masthead .searchin {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
  /* same outer height as the capsule beside it: --nav-ctl-h is the capsule's own
     height (9 + 9 + 15 line-height 1 on the article capsule), so the row is one band
     of identical objects instead of a tall box with small buttons next to it */
  height: var(--nav-ctl-h, 33px);
  padding-top: 0;
  padding-bottom: 0;
  color: var(--ink, #fff);
  background: color-mix(in srgb, var(--ink, #fff) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink, #fff) 28%, transparent);
  border-radius: 999px;
  padding: 7px 14px 7px 30px;
  appearance: none;
  /* a magnifier, drawn rather than fetched: no icon request, no missing file */
  background-image: radial-gradient(circle at 41% 41%, transparent 0 3.1px, currentColor 3.1px 4.3px, transparent 4.3px),
                    linear-gradient(45deg, transparent 45%, currentColor 45% 55%, transparent 55%);
  background-size: 13px 13px, 5px 5px;
  background-position: 9px 8px, 20px 19px;
  background-repeat: no-repeat;
  opacity: 0.92;
}
.masthead .searchin::placeholder { color: color-mix(in srgb, var(--ink, #fff) 55%, transparent); }
.masthead .searchin:focus {
  outline: none;
  opacity: 1;
  border-color: var(--accent, #f23f8f);
  background-color: color-mix(in srgb, var(--accent, #f23f8f) 12%, transparent);
}
.masthead .searchgo {
  font: inherit; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 10px; margin-left: 6px; cursor: pointer;
  color: var(--cat-ink, #fff); background: var(--cat, var(--accent, #f23f8f));
  border: 0; border-radius: 999px;
}

/* the dropdown: an in-flow-free layer under the field, so it never pushes the page */
.masthead .mastnav {
  /* exactly 10px from the search field. The masthead is a flex row with its own gap
     (var(--s3) in most themes, 22px), so the margin SUBTRACTS that gap instead of adding
     to it - 10px + gap is not 10px. */
  order: 2;
  margin-left: calc(10px - var(--s3, 22px));
}
/* the three masthead search capsules, 10px apart, at the ARTICLE capsule's size: the
   header row then reads as one line of same-height objects with the search field rather
   than as two afterthoughts next to it. No arrow, though - these are navigation. */
.masthead .navsearches { display: inline-flex; align-items: center; gap: 10px; }
.masthead .mastnav .buy-capsule {
  margin-left: 0;
  /* height, not padding: the label centres inside the band and the eBay mark still has
     room at 18px, and every capsule matches the search field exactly */
  height: var(--nav-ctl-h, 33px);
  padding: 0 16px;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.masthead .mastnav .buy-capsule::after { content: none; }
/* TheBest's own search wears the site's signature gradient - the same --grad the
   headlines and the score pills use - with black bold type on it, because the gradient
   is hot pink to cyan and white on that is unreadable. */
.masthead .navcap-site {
  background: var(--grad, var(--accent, #ff6ec7));
  color: #000;
  font-weight: 800;
  border: 0;
}
.masthead .navcap-site:hover { filter: brightness(1.06); }
/* eBay reads white-on-pink like its article capsule, with the mark at article size */
/* 2px down: the mark's own bounding box sits a hair high against the text baseline
   beside it, and the label is bold so it reads as a button like the other two */
.masthead .navcap-ebay { background: #fff; color: var(--commerce-ebay); gap: 5px; margin-top: 2px; font-weight: 800; }
/* the Amazon capsule's label in black, on the theme accent: white-on-accent was the
   loudest thing in the masthead and these are navigation, not the main call to action */
.masthead .navcap-amazon { color: #000; font-weight: 800; }
/* the disclosure stays glued to the eBay capsule (it is their term, next to their
   button). A to Z is not in this row any more: it leads the category strip below. */
.masthead .navassoc { margin-left: 0; }
/* the A to Z pill is a category bubble with no count behind it, so it needs no colour of
   its own; the weight just stops it looking dimmer than the pills it introduces. */
.navcats .navaz { font-weight: 700; }
.masthead .navcats { order: 3; }
.suggestlist {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  right: 0;
  width: max(100%, 290px);
  max-height: min(62vh, 430px);
  overflow-y: auto;
  margin: 0;
  padding: 5px 0;
  list-style: none;
  text-align: left;
  font-size: 13.5px;
  /* the theme's own surface, layered: several themes carry --panel as a translucent
     tint over --paper, and a see-through dropdown would show the page behind it */
  background-color: var(--paper, var(--bg, #101020));
  background-image: linear-gradient(var(--panel, transparent), var(--panel, transparent));
  color: var(--ink, #fff);
  border: 1px solid color-mix(in srgb, var(--ink, #fff) 22%, transparent);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.suggestlist[hidden] { display: none; }
.suggestlist .suggest-group {
  padding: 8px 14px 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}
.suggestlist .suggestitem {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 14px;
  cursor: pointer;
}
.suggestlist .suggestitem .suggestname { flex: 1 1 auto; }
.suggestlist .suggestitem .suggestcount {
  flex: 0 0 auto; font-size: 10.5px; opacity: 0.5; font-variant-numeric: tabular-nums;
}
.suggestlist .suggestitem:hover,
.suggestlist .suggestitem.is-active {
  background: color-mix(in srgb, var(--accent, #f23f8f) 22%, transparent);
}
.suggestlist .suggest-all {
  margin-top: 4px;
  border-top: 1px solid color-mix(in srgb, var(--ink, #fff) 14%, transparent);
  font-size: 12.5px;
  opacity: 0.85;
}
.suggestlist .suggest-empty { padding: 10px 14px; opacity: 0.65; }

@media (max-width: 720px) {
  /* a phone: the field takes the row under the brand rather than squeezing the nav */
  .masthead .searchform { order: 9; flex: 1 1 100%; margin-left: 0; }
  .masthead .mastnav { order: 1; }
  .suggestlist { width: 100%; }
}

/* the shelves and brands a search query touched, above the review grid on /search/.
   Same pill as the masthead strip, so a category looks like a category wherever it
   appears; the label sits to the left of the row it belongs to. */
.searchgroups {
  display: block;
  margin: 0 0 var(--s4, 24px);
  max-width: 62rem;
}
.searchgroup {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 0;
}
.searchgroup + .searchgroup { border-top: 1px solid color-mix(in srgb, var(--ink, #fff) 12%, transparent); }
.searchgroup-label {
  flex: 0 0 auto;
  min-width: 84px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}
.searchgroup .catbubble { flex: 0 0 auto; font-size: 11px; padding: 5px 12px; letter-spacing: 0.08em; }
@media (max-width: 620px) {
  .searchgroup-label { min-width: 100%; }
}


/* ---- card thumbnails FILL their box -----------------------------------------
   A browsing card is a fixed-height box in every theme (150-168px), and a product shot
   is whatever shape the listing gave us: tall, wide, square, a phone in a hand, a cable
   coiled on white. Contained, that means each card has a differently sized picture
   floating in it and the grid looks like it has holes. Filled, every card is the same
   block of picture: cover crops the overflow, centre-weighted, so a tall shot loses its
   top and bottom and a wide one loses its sides. The rail already works this way; this
   makes the browsing grids agree with it.
   Themes keep the frame (height, margins, background, blend mode) - this only says how
   the picture sits inside it. */
.pmcard-img img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---- the masthead category strip reads as navigation, not as labels -------
   The pills are small, uppercase and letter-spaced, which is the right SHAPE, but they
   were inheriting the body weight and sitting next to a bold brand and a bold nav: they
   read as decoration rather than as links you can press. Bold fixes that without
   changing the size, so the strip stays one line. */
.navcats .catbubble { font-weight: 700; }

/* ---- the category + brand capsules above a review headline ---------------
   Set to 700 explicitly rather than left to the theme's 800: at 12px, uppercase and
   0.13em tracking the two weights are hard to tell apart, and the theme value depends on
   which face the system actually has (Segoe UI has no 800, so the browser picks a
   neighbour). Asking for 700 means the number in devtools and the weight on screen agree.
   Scoped to the review page's own bubble row, so the masthead strip keeps its own weight. */
.review .kicker-wrap .catbubble,
.review .kicker-wrap .brandbubble { font-weight: 700; }

/* the same trap catches the buy capsule in a review's byline: `.review a` sets 600 and
   beats a bare `.buy-capsule` (0,1,1 against 0,1,0), so the loudest button on the page was
   rendering lighter than its own rule asked for. Scoped override, higher specificity than
   `.review a`, and it comes after it. */
.review .buy-capsule { font-weight: 800; }

/* ---- two marketplaces on one small tile -------------------------------------
   The rail tile is 160px wide and already carries a rating pill, so the buy capsules
   cannot say "View on Amazon": each gets one word and the pair sits together on the
   left. Amazon keeps its accent fill; eBay takes a WHITE capsule with the partner
   logo's pink for the word, because a second loud pink pill next to the first reads as
   one button split in two. --commerce-ebay is the one place to match the exact pink of
   the logo downloaded from the eBay Partner Network creative gallery. */
/* #d11da4 is sampled from the logo file itself. It is used for the eBay capsule's own
   ink (its text fallback, its hover state) and nowhere else: the Amazon capsule keeps the
   theme accent, because a page with two identical hot pinks was one too many. */
:root { --commerce-ebay: #d11da4; }
.rail-buys { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.rail-buys .rail-buy { margin-left: 0; }
.rail-buy-ebay {
  background: #fff;
  color: var(--commerce-ebay);
  border: 0;
  padding: 3px 6px 2px 7px;
}
/* Drawn at 44x18 CSS pixels, from a 44x18 file (1x screens) or an 88x36 file (2x, which is
   every 4K display with display scaling on). Each asset is an exact integer multiple of the
   drawn size, so no browser has to resample anything: on a 200% screen one image pixel IS
   one device pixel. Change the two numbers together with the two files, never one alone. */
.ebay-mark {
  display: block;
  width: 44px;
  height: 18px;
  object-fit: fill;
}
.rail-buy-ebay:hover { filter: none; background: #fff; }
.rail-buy-ebay:hover .ebay-mark { opacity: 0.82; }
@media (max-width: 900px) {
  /* the strip of tiles is narrower than the rail: shrink the pair, keep the rating */
  .rail-buys { gap: 4px; }
  .rail-buys .rail-buy { font-size: 10px; padding: 4px 7px; }
}

/* ---- the eBay capsule on the article ----------------------------------------
   Same mark, same white pill, sitting to the RIGHT of every Amazon capsule on a review
   page: section headings, the verdict stamp box and the closing call to action. The rail
   keeps its own tighter pill (.rail-buy-ebay) because a 160px tile has no room to spare. */
.ebay-capsule {
  background: #fff;
  color: var(--commerce-ebay);
  border: 0;
  padding: 8px 10px 7px 12px;
  box-shadow: 0 2px 10px -3px rgba(0, 0, 0, 0.45);
}
.ebay-capsule:hover { filter: none; background: #fff; }
.ebay-capsule:hover .ebay-mark { opacity: 0.82; }
/* the arrow is gone from the article's capsules: with a mark in the row the pair is busy
   enough, and the arrow was pointing into the eBay capsule */
.review .buy-capsule::after { content: none; }
/* the closing CTA's mark sits beside the big button, aligned by their baseline box */
.cta .cta-ebay {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 10px;
  padding: 8px 12px;
}
@media (max-width: 620px) {
  .cta .cta-ebay { margin-left: 0; margin-top: 10px; }
}
