@charset "UTF-8";
.marketplace .mhero {
  position: relative;
  isolation: isolate;
  z-index: 2;
  background: var(--forest);
  color: var(--bone);
  padding: clamp(40px, 6vw, 78px) 0 clamp(92px, 11vw, 140px);
  border-bottom: 1px solid var(--forest-3);
}
.marketplace .mhero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.marketplace .mhero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.marketplace .mhero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 42, 30, 0.88) 0%, rgba(15, 42, 30, 0.7) 44%, rgba(15, 42, 30, 0.92) 100%);
}
.marketplace .mhero__copy {
  max-width: 60ch;
}
.marketplace .mhero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}
.marketplace .mhero__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
}
.marketplace .mhero__title {
  font-family: "Google Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-top: 18px;
}
.marketplace .mhero__title em {
  font-style: italic;
  color: var(--lime);
}
.marketplace .mhero__sub {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--on-dark-soft);
  font-size: 1.05rem;
}
.marketplace .searchbar {
  position: relative;
  z-index: 3;
  margin-top: clamp(28px, 4vw, 42px);
  margin-bottom: -56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 2px;
  align-items: stretch;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 44px 84px -50px rgba(15, 42, 30, 0.72);
}
@media (max-width: 820px) {
  .marketplace .searchbar {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .marketplace .searchbar {
    grid-template-columns: 1fr;
  }
}
.marketplace .searchbar__field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  transition: background 0.25s;
}
.marketplace .searchbar__field:not(:last-of-type)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--line);
}
@media (max-width: 820px) {
  .marketplace .searchbar__field::after {
    display: none;
  }
}
.marketplace .searchbar__field:hover, .marketplace .searchbar__field:focus-within {
  background: var(--bone);
}
.marketplace .searchbar__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.marketplace .searchbar__label svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  color: var(--brand-d);
}
.marketplace .searchbar__select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  font-family: "Google Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  padding: 0 24px 0 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2343504a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}
.marketplace .searchbar__select:focus {
  outline: none;
}
.marketplace .searchbar__select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 4px;
}
.marketplace .searchbar__select option {
  color: var(--ink);
}
.marketplace .searchbar__submit {
  align-self: stretch;
  justify-content: center;
  white-space: nowrap;
  padding-inline: 26px;
}
@media (max-width: 820px) {
  .marketplace .searchbar__submit {
    grid-column: 1/-1;
    margin-top: 6px;
  }
}
.marketplace .cselect {
  position: relative;
  width: 100%;
}
.marketplace .cselect__native {
  display: none;
}
.marketplace .cselect__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "Google Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.marketplace .cselect__trigger.is-placeholder .cselect__value {
  color: var(--ink-mute);
}
.marketplace .cselect__trigger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 6px;
  border-radius: 4px;
}
.marketplace .cselect__value {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.marketplace .cselect__caret {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  color: var(--ink-soft);
  transition: transform 0.25s var(--ease), color 0.25s;
}
.marketplace .cselect.is-open .cselect__caret {
  transform: rotate(180deg);
  color: var(--brand-d);
}
.marketplace .cselect__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 30;
  min-width: 100%;
  width: max-content;
  max-width: min(360px, 100vw - 40px);
  max-height: 288px;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 28px 54px -26px rgba(15, 42, 30, 0.6);
  animation: csMenuIn 0.16s var(--ease);
}
@media (max-width: 560px) {
  .marketplace .cselect__menu {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
  }
}
.marketplace .cselect__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: normal;
}
.marketplace .cselect__option--placeholder {
  color: var(--ink-mute);
}
.marketplace .cselect__option.is-active {
  background: var(--bone);
  color: var(--ink);
}
.marketplace .cselect__option.is-selected {
  color: var(--brand-d);
  font-weight: 600;
}
.marketplace .cselect__option.is-selected::after {
  content: "✓";
  margin-left: auto;
  padding-left: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-d);
}
.marketplace .results {
  position: relative;
  z-index: 1;
  padding: clamp(100px, 12vw, 140px) 0 clamp(64px, 9vw, 110px);
  background: var(--bone);
}
.marketplace .results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.marketplace .results__count {
  font-family: "Google Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.marketplace .results__count strong {
  color: var(--brand-d);
  font-weight: 700;
}
.marketplace .results__reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.25s;
}
.marketplace .results__reset svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}
.marketplace .results__reset:hover {
  color: var(--brand-d);
}
.marketplace [hidden] {
  display: none !important;
}
.marketplace .results__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.marketplace .viewtoggle {
  display: inline-flex;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.marketplace .viewtoggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.marketplace .viewtoggle__btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}
.marketplace .viewtoggle__btn.is-active {
  background: var(--forest);
  color: var(--bone);
}
.marketplace .viewtoggle__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.marketplace .resulttable-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  animation: mktCardIn 0.4s var(--ease) both;
}
.marketplace .resulttable {
  width: 100%;
  border-collapse: collapse;
}
.marketplace .resulttable thead th {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: rgba(21, 32, 26, 0.03);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.marketplace .resulttable tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  vertical-align: middle;
}
.marketplace .resulttable tbody tr:last-child td {
  border-bottom: 0;
}
.marketplace .resulttable tbody tr {
  transition: background 0.2s;
}
.marketplace .resulttable tbody tr:hover {
  background: rgba(61, 181, 74, 0.05);
}
.marketplace .resulttable__name {
  font-family: "Google Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}
.marketplace .resulttable__name:hover {
  color: var(--brand-d);
}
.marketplace .resulttable__dev {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-mute);
}
.marketplace .resulttable__type {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bone);
  color: var(--forest-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marketplace .resulttable__price {
  font-family: "Google Sans", system-ui, sans-serif;
  font-weight: 600;
  color: var(--brand-d);
  white-space: nowrap;
}
.marketplace .resulttable__action {
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .marketplace .resulttable thead {
    display: none;
  }
  .marketplace .resulttable tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 14px 16px;
  }
  .marketplace .resulttable tbody td {
    border: 0;
    padding: 2px 0;
  }
  .marketplace .resulttable tbody td::before {
    content: attr(data-th);
    display: block;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 700;
  }
  .marketplace .resulttable__namecell {
    grid-column: 1/-1;
  }
  .marketplace .resulttable__action {
    grid-column: 1/-1;
    text-align: left;
  }
}
.marketplace .rowbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #06180e;
  transition: background 0.25s, border-color 0.25s;
}
.marketplace .rowbtn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}
.marketplace .rowbtn:hover {
  background: var(--lime);
  border-color: var(--lime);
}
.marketplace .listings .listing {
  animation: mktCardIn 0.5s var(--ease) both;
}
.marketplace .results__empty {
  text-align: center;
  padding: clamp(48px, 7vw, 76px) 24px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.marketplace .results__empty h3 {
  font-family: "Google Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
}
.marketplace .results__empty p {
  margin: 10px 0 22px;
  color: var(--ink-soft);
}

@keyframes mktCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes csMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.js [data-reveal] {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .marketplace .listings .listing {
    animation: none;
  }
}
