.rp-collection > .rp-preview-note { margin: 0; }

@media (min-width: 851px) {
  .collection-header .rp-launch-main {
    grid-template-columns: auto 1fr minmax(11rem, 19rem) auto;
    gap: clamp(12px, 2vw, 36px);
    min-height: 70px;
  }
  .collection-header .rp-launch-logo img { width: 68px; height: 68px; }
  .collection-header .rp-launch-desktop {
    justify-content: center;
    gap: clamp(12px, 1.8vw, 30px);
    font-size: .93rem;
    white-space: nowrap;
  }
  .collection-header .rp-launch-search button { padding-inline: .75rem; }
}

@media (min-width: 851px) and (max-width: 1050px) {
  .collection-header .rp-launch-main { grid-template-columns: auto 1fr minmax(10rem, 12rem) auto; gap: 12px; }
  .collection-header .rp-launch-desktop { gap: 12px; font-size: .85rem; }
  .collection-header .rp-launch-logo img { width: 60px; height: 60px; }
}

.rp-collection .collection-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 24px;
  padding-block: clamp(18px, 2vw, 30px) 0;
}
.collection-page > * { grid-column: 1 / -1; }
.collection-page > .collection-heading { grid-column: 1; grid-row: 1; }
.collection-heading h1 {
  margin: 0;
  font: 500 clamp(36px, 3.45vw, 56px)/1.04 var(--rp-serif);
  letter-spacing: -.03em;
}
.collection-heading p {
  margin: 5px 0 0;
  max-width: 64ch;
  font-size: .965rem;
  line-height: 1.45;
  color: var(--rp-muted);
}
.rp-collection .collection-heading .rp-breadcrumb { margin: 0 0 6px; }
.collection-page > .stage-grid { margin-top: 16px; align-self: start; }
.collection-page > .collection-toolbar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}
.collection-toolbar .collection-count { margin: 0; font-size: .9rem; color: var(--rp-muted); }
.collection-tools { display: flex; align-items: center; gap: 6px; }
.collection-tools summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gift-control);
  font: 600 .9rem/1.2 var(--rp-sans);
  color: var(--rp-ink);
  list-style: none;
  cursor: pointer;
}
.collection-tools summary::-webkit-details-marker { display: none; }
.collection-tools summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.collection-tools details[open] summary { background: var(--rp-wash); border-color: var(--gift-berry); }
.collection-tools details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.collection-tools summary:hover { color: var(--gift-berry); border-color: var(--gift-berry); }
.collection-panel {
  position: absolute;
  z-index: 2;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  width: min(23rem, 100vw - 42px);
  max-height: min(66vh, 26rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  background: var(--gift-paper);
  border: 1px solid var(--gift-control);
  box-shadow: 0 8px 22px rgb(44 32 26 / .1);
}
.collection-panel label, .collection-panel nav { display: block; }
.collection-panel label { margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.collection-panel input, .collection-panel button {
  min-height: 44px;
  padding-inline: .65rem;
  border: 1px solid var(--gift-control);
  font: inherit;
}
.collection-panel input { max-width: 100%; }
.collection-panel button { background: var(--gift-berry); border-color: var(--gift-berry); color: #fff; cursor: pointer; }
.collection-panel nav { margin-block: 12px 0; }
.collection-budget {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
}
.collection-budget label { grid-column: 1 / -1; margin: 0; }
.collection-budget input:not([hidden]) { width: 100%; }
.collection-categories p { margin: 18px 0 2px; font-size: .9rem; font-weight: 600; }
.collection-panel [aria-current] { color: var(--gift-berry); font-weight: 600; }
.collection-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 0;
  color: var(--rp-ink);
  line-height: 1.35;
}
.collection-sort .collection-panel { width: min(15rem, 100vw - 42px); }
.collection-active { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin: 6px 0 0; font-size: .9rem; }
.collection-active a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gift-berry); }

@media (min-width: 1051px) and (max-height: 710px) {
  .rp-collection > .rp-wrap { max-width: clamp(58rem, 173vh, 80rem); }
  .rp-collection .collection-page { padding-top: 16px; }
  .collection-heading h1 { font-size: clamp(35px, 3.1vw, 45px); }
  .collection-page > .stage-grid { margin-top: 12px; }
  .collection-page .stage-grid article h2 { margin-top: .5rem; font-size: 1.27rem; }
}

@media (max-width: 850px) {
  .rp-collection .collection-page { grid-template-columns: minmax(0, 1fr); }
  .collection-page > .collection-heading,
  .collection-page > .collection-toolbar { grid-row: auto; grid-column: 1; }
  .collection-page > .collection-toolbar { margin-top: 10px; }
  .collection-heading h1 { font-size: clamp(33px, 5.8vw, 46px); }
  .collection-page > .stage-grid { margin-top: 10px; }
}
