.methods-page {
  --methods-card-width: 225px;
  margin: 0;
  color: var(--marketplace-text);
  background: var(--marketplace-canvas);
}

.methods-page *,
.methods-page *::before,
.methods-page *::after {
  box-sizing: border-box;
}

.methods-page img {
  max-width: 100%;
}

.methods-page [hidden] {
  display: none !important;
}

.methods-page .marketplace-public-header {
  min-height: var(--marketplace-header-height);
  padding-block: 10px;
  background: rgba(255, 255, 255, 0.97);
}

.methods-page .marketplace-header-tool img {
  width: 20px;
  height: 20px;
}

.methods-integrated-search {
  scroll-margin-top: 24px;
}

.methods-index {
  width: min(var(--marketplace-wide), calc(100% - 48px));
  margin: 56px auto 0;
}

.methods-index-heading,
.methods-shelf-heading,
.methods-shelf-actions,
.methods-shelf-controls {
  display: flex;
  align-items: center;
}

.methods-index-heading,
.methods-shelf-heading {
  justify-content: space-between;
  gap: 18px;
}

.methods-index-heading {
  align-items: end;
}

.methods-index-heading p,
.methods-matching-band p {
  margin: 0 0 6px;
  color: var(--marketplace-accent-deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.methods-index-heading h2,
.methods-shelf-heading h2,
.methods-matching-band h2 {
  margin: 0;
  color: var(--marketplace-ink);
  letter-spacing: 0;
}

.methods-index-heading h2 {
  font-size: 29px;
  line-height: 1.12;
}

.methods-index-heading > a,
.methods-shelf-actions > a {
  flex: 0 0 auto;
  color: var(--marketplace-accent-deep);
  font-size: 14px;
  font-weight: 760;
}

.methods-index-list {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
}

.methods-index-list a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--marketplace-line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--marketplace-text);
  background: var(--marketplace-paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.methods-index-list a:hover,
.methods-index-list a:focus-visible {
  border-color: var(--marketplace-accent);
  color: var(--marketplace-accent-deep);
  background: var(--marketplace-soft);
}

.methods-shelves {
  min-height: 360px;
}

.methods-loading {
  margin-top: 14px;
}

.methods-loading-shelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--marketplace-shelf-gap);
  margin-top: 14px;
}

.methods-loading-shelf i {
  display: block;
  min-height: 382px;
  border-radius: 8px;
}

.methods-shelf {
  width: min(var(--marketplace-wide), calc(100% - 48px));
  margin: 30px auto 0;
  scroll-margin-top: 88px;
}

.methods-shelf:first-child {
  margin-top: 24px;
}

.methods-shelf-heading {
  align-items: end;
  margin-bottom: 12px;
}

.methods-shelf-heading h2 {
  font-size: 28px;
  line-height: 1.15;
}

.methods-shelf-actions {
  flex: 0 0 auto;
  gap: 12px;
}

.methods-shelf-controls {
  gap: 6px;
}

.methods-shelf-controls button {
  display: inline-grid;
  width: 34px;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--marketplace-line-strong);
  border-radius: 50%;
  padding: 0;
  color: var(--marketplace-ink);
  background: var(--marketplace-paper);
}

.methods-shelf-controls button:first-child img {
  transform: rotate(180deg);
}

.methods-shelf-controls button:hover:not(:disabled) {
  border-color: var(--marketplace-accent);
  background: var(--marketplace-soft);
}

.methods-shelf-controls button:disabled {
  cursor: default;
  opacity: 0.35;
}

.methods-shelf .marketplace-product-shelf {
  min-height: 352px;
  grid-auto-columns: var(--methods-card-width);
}

.methods-shelf-more {
  display: grid;
  min-height: 100%;
  align-content: end;
  overflow: hidden;
  border: 1px solid var(--marketplace-line);
  border-radius: 20px;
  padding: 18px;
  color: var(--marketplace-ink);
  background: #e6f1f5;
  text-decoration: none;
  scroll-snap-align: start;
}

.methods-shelf-more strong {
  font-size: 21px;
  line-height: 1.18;
}

.methods-shelf-more span {
  margin-top: 8px;
  color: var(--marketplace-accent-deep);
  font-size: 13px;
  font-weight: 760;
}

.methods-shelf-more.is-wb-card-pilot {
  min-height: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  align-self: start;
  align-content: center;
  justify-items: center;
  gap: 7px;
  border-color: transparent;
  border-radius: 18px;
  padding: 20px;
  background: var(--marketplace-paper);
  text-align: center;
}

.methods-shelf-more.is-wb-card-pilot strong {
  font-size: 19px;
  font-weight: 650;
}

.methods-shelf-more.is-wb-card-pilot span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--marketplace-ink);
  font-size: 13px;
  font-weight: 560;
}

.methods-shelf-more.is-wb-card-pilot span::after {
  font-size: 18px;
  line-height: 1;
  content: "›";
}

.methods-card {
  height: 340px;
  border-color: transparent;
  background: transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.methods-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.methods-card:focus-within {
  border-color: var(--marketplace-line-strong);
  box-shadow: 0 12px 26px rgba(18, 54, 46, 0.09);
}

.methods-card .marketplace-product-card-link {
  height: 100%;
}

.methods-card .marketplace-product-card-media {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}

.methods-card-format {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--marketplace-ink);
  background: rgba(255, 255, 255, 0.94);
  font-size: 10px;
  font-weight: 760;
}

.methods-card .marketplace-card-tools {
  flex-direction: column;
}

.methods-card .marketplace-card-tool img {
  width: 17px;
  height: 17px;
}

.methods-card .marketplace-product-card-body {
  min-height: 102px;
  gap: 2px;
  padding: 7px 4px 0;
}

.methods-card .marketplace-product-card-name {
  font-size: 14px;
}

.methods-card .marketplace-product-card-method {
  display: block;
  min-height: 16px;
  max-height: 16px;
  overflow: hidden;
  color: var(--marketplace-muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.methods-card .marketplace-product-card-offer {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
}

.methods-card .marketplace-product-card-offer span {
  color: var(--marketplace-muted);
  font-weight: 560;
}

.methods-card .marketplace-product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.methods-card .marketplace-product-card-rating::before {
  color: var(--marketplace-warning);
  content: "☆";
  font-size: 13px;
  line-height: 1;
}

.methods-card .marketplace-product-card-rating span {
  color: var(--marketplace-muted);
}

.methods-card .marketplace-product-card-proof {
  display: flex;
  min-width: 0;
  gap: 5px;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--marketplace-accent-deep);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}

.methods-card .marketplace-product-card-proof span + span::before {
  margin-right: 5px;
  color: var(--marketplace-muted);
  content: "·";
}

.methods-card-tool-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.methods-shelf-empty {
  min-height: 170px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px dashed var(--marketplace-line-strong);
  border-radius: 12px;
  padding: 24px;
  color: var(--marketplace-muted);
  background: var(--marketplace-paper);
  text-align: center;
}

.methods-shelf-empty strong {
  color: var(--marketplace-ink);
}

.methods-matching-band {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding: 34px max(24px, calc((100% - var(--marketplace-wide)) / 2));
  color: var(--marketplace-ink);
  background: #e8f1d7;
}

.methods-matching-band > div {
  width: min(680px, 100%);
}

.methods-matching-band h2 {
  font-size: 27px;
  line-height: 1.18;
}

.methods-footer > div {
  display: grid;
  max-width: 560px;
  gap: 5px;
}

.methods-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

body.methods-page main {
  padding-bottom: 0;
}

.methods-page .marketplace-public-footer {
  margin-top: 0;
}

.methods-page noscript .marketplace-error {
  width: min(var(--marketplace-wide), calc(100% - 48px));
  margin: 24px auto;
}

@media (max-width: 1180px) {
  .methods-loading-shelf {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .methods-loading-shelf i:nth-child(6) {
    display: none;
  }
}

@media (max-width: 820px) {
  .marketplace-public-shell.methods-page .marketplace-search-panel {
    width: calc(100% - 20px);
  }

  .methods-index,
  .methods-shelf {
    width: calc(100% - 24px);
  }

  .methods-index {
    margin-top: 32px;
  }

  .methods-shelf {
    margin-top: 24px;
  }

  .methods-shelf:first-child {
    margin-top: 20px;
  }

  .methods-shelf .marketplace-product-shelf {
    min-height: 329px;
    grid-auto-columns: 204px;
  }

  .methods-card,
  .methods-shelf-more {
    height: 317px;
  }

  .methods-loading-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .methods-loading-shelf i:nth-child(n + 4) {
    display: none;
  }

  .methods-matching-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .methods-footer,
  .methods-footer nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .methods-page .marketplace-public-header {
    min-height: 58px;
  }

  .methods-index-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .methods-index-heading h2 {
    font-size: 25px;
  }

  .methods-shelf-heading h2 {
    font-size: 23px;
  }

  .methods-shelf-controls {
    display: none;
  }

  .methods-shelf .marketplace-product-shelf {
    min-height: 298px;
    grid-auto-columns: min(178px, 58vw);
  }

  .methods-card,
  .methods-shelf-more {
    height: 286px;
  }

  .methods-card .marketplace-product-card-name {
    font-size: 13px;
  }

  .methods-card .marketplace-product-card-proof {
    gap: 3px;
    font-size: 9.5px;
  }

  .methods-card .marketplace-product-card-proof span + span::before {
    margin-right: 3px;
  }

  .methods-matching-band h2 {
    font-size: 21px;
  }
}

@media (max-width: 350px) {
  .methods-index,
  .methods-shelf {
    width: calc(100% - 16px);
  }

  .methods-loading-shelf {
    grid-template-columns: minmax(0, 1fr);
  }

  .methods-loading-shelf i:not(:first-child) {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .methods-card {
    transition: none;
  }

  .methods-page *,
  .methods-page *::before,
  .methods-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
