.pep-shop-switch { border-bottom: 1px solid var(--line); }
.pep-shop-switch.ngs-togglebar {
  position: relative;
  top: auto;
  z-index: 0;
  margin-inline: 0;
}
/* Outside the stores, both segments are navigation links rather than a selection. */
.pep-shop-switch .ngs-toggle { background: #151e2c; }
.pep-shop-switch .ngs-toggle-thumb { display: none; }
.pep-shop-switch .ngs-toggle .ngs-seg { color: #eef4ff; }
.pep-shop-switch .ngs-toggle .ngs-seg:hover { text-decoration: underline; }
.pep-shop-switch > nav:not([class]) {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-4);
  padding: var(--s-2) var(--s-4);
  font-size: var(--text-sm);
}
.pep-shop-switch > nav:not([class]) a { color: var(--text-2); padding: var(--s-2); }
.pep-shop-switch > nav:not([class]) a:last-child { color: var(--text); font-weight: 700; }

.pep-research__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.pep-research__intro > div { flex: 1 1 28rem; }
.pep-research__intro h2 { margin-block: var(--s-1) var(--s-2); }
.pep-research__intro p { max-width: 59ch; }
.pep-research-section { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.pep-research-section > .pep-research { margin-top: var(--s-4); }
.pep-research__items { display: grid; gap: var(--s-4); min-width: 0; }
.pep-research--featured .pep-research__items { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.pep-research__item {
  min-width: 0;
  align-content: start;
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-1, #111827);
}
.pep-research--featured .pep-research__item { padding: var(--s-3); border-radius: var(--r-lg); }
.pep-research__product { display: flex; gap: var(--s-3); align-items: center; }
.pep-research__photo {
  display: block;
  flex: 0 0 4rem;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #f1ede6;
}
.pep-research__photo img, .pep-research__gallery > a > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
.pep-research__gallery > a {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #eee8df;
}
.pep-research__name { display: grid; gap: var(--s-1); min-width: 0; overflow-wrap: anywhere; }
.pep-research__merchant, .pep-research__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.pep-research__variant, .pep-research__notice { font-size: var(--text-xs); color: var(--text-2); }
.pep-research__review { justify-self: start; font-size: var(--text-sm); text-decoration: underline; text-underline-offset: .16em; }
.pep-research__actions { min-width: 0; container: pep-buy / inline-size; }
.pep-research__actions > .pep-research__notice { margin: 0 0 var(--s-2); }
.entry-card .pep-research {
  position: relative;
  z-index: 1;
  margin-top: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.entry-card .pep-research__eyebrow { margin-bottom: var(--s-3); font-size: var(--text-xs); }
.entry-card .pep-research__item { padding: var(--s-3); }
.entry-card .pep-research__photo { flex-basis: 3.25rem; }
.entry-card .pep-research__item p { flex: initial; }

/* The kit defaults to its light storefront panels. These mounts use site-dark cards. */
.pep-research__actions .ngs-buy {
  --ngs-ink: var(--text);
  --ngs-ink2: var(--text-2);
  --ngs-mute: var(--text-2);
  --ngs-paper: #0d1726;
  --ngs-hair: var(--line);
}
.pep-research__actions .ngs-buy > p { margin: 0; }
.pep-research__actions .ngs-ruo {
  color: #ffe2cf;
  background: #38261e;
  border-left-color: #ef9765;
}
.pep-research__actions .ngs-code {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
}
.pep-research__actions .ngs-buy .ngs-bar--ghost {
  border-color: #8198b6;
}
.pep-research__actions .ngs-buy .ngs-bar:hover {
  background: #cbd9ed;
}
.pep-research__actions .ngs-buy .ngs-bar--ghost:hover {
  background: rgba(255, 255, 255, .08);
}
.pep-research__actions .ngs-buy .ngs-bar.is-added {
  color: #fff;
  background: var(--ngs-ok);
  border-color: var(--ngs-ok);
}
@container pep-buy (max-width: 425px) {
  .pep-research__actions .ngs-buy-row { grid-template-columns: 1fr; }
}
.entry-card .pep-research__actions .ngs-buy :is(.ngs-ruo, .ngs-price, .ngs-disc, .ngs-code) {
  font-size: 13px;
}
.entry-card .pep-research__actions .ngs-buy .ngs-ruo { color: #ffe2cf; }
