/* Native Cloneables Listing runtime. The Webflow export keeps the base visual
   system; this layer owns dynamic search, the category dropdown, card refresh,
   and pagination — adapted from the proven blog listing runtime. */

.cloneables-list-page .cloneables-listing-js.is-loading [data-cloneables-results] {
  opacity: .45 !important;
  pointer-events: none;
}

.cloneables-list-page .cloneables-listing-js [data-cloneables-results] {
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}

.cloneables-list-page .cloneables-listing-js [data-cloneables-results]:not([data-brix-reveal]),
.cloneables-list-page .cloneables-listing-js [data-cloneables-results].brix-reveal-visible {
  opacity: 1 !important;
}

.cloneables-list-page .cloneables-listing-js [data-cloneables-results].is-refreshing {
  opacity: 0 !important;
  filter: blur(8px);
  transform: translate3d(0, 8px, 0);
}

.cloneables-list-page .cloneables-listing-js [data-cloneables-results].is-entering [data-cloneable-card] {
  animation: cloneableCardEnter .34s cubic-bezier(.22, 1, .36, 1) both;
}

.cloneables-list-page .cloneables-listing-js [data-cloneables-empty].is-empty-pre-entering {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 12px, 0);
}

.cloneables-list-page .cloneables-listing-js [data-cloneables-empty].is-empty-entering {
  animation: cloneableEmptyEnter .34s cubic-bezier(.22, 1, .36, 1) both;
}

.cloneables-list-page {
  --neutral-100: #ffffff;
  --neutral-400: #9296b3;
  --neutral-600: #6e7191;
  --neutral-800: #211f54;
  --accent: #4a3aff;
  --accent-soft: #f1f0ff;
  --divider: #ebeaf6;
  --line: #e3e2ef;
  --page: #f4f5fa;
  --btn-hover: #f5f5fc;
  --row-hover: #f6f6fc;
}

.cloneables-list-page #cloneables-list {
  border-top: 1px solid rgba(146, 150, 179, .18);
  padding-top: calc(var(--sizes--sz-16) * .6667);
}

.cloneables-list-page .sec.resources-hero {
  padding-bottom: calc(var(--sizes--sz-18) / 2);
}

/* The Webflow export hard-codes an oversized top padding on .sec.cloneables-hero
   (200px desktop / 134px mobile). Match the shared resources-hero spacing used by
   the sibling /blog/ listing instead. */
.cloneables-list-page .sec.cloneables-hero {
  padding-top: var(--sizes--sz-16);
}

@media screen and (max-width: 991px) {
  .cloneables-list-page .sec.cloneables-hero {
    padding-top: var(--sizes--sz-17);
  }

  /* Below the 2-col breakpoint the search bar stacks under the heading, so it should
     span the full row instead of staying capped at 760px and right-aligned. (Scoped via
     .title-filters so it outranks the base width:min(760px) rule that follows below.) */
  .cloneables-list-page .title-filters .blog-approved-controls {
    width: 100%;
  }
}

.cloneables-list-page .cloneables-hero-grid {
  align-items: end;
  margin-bottom: var(--mg-pd--s);
}

.cloneables-list-page .cloneables-hero-grid > div:nth-child(2) p {
  margin-top: 0;
}

@media screen and (min-width: 992px) {
  .cloneables-list-page .grid__2-col.cloneables-hero-grid {
    grid-column-gap: clamp(72px, 7vw, 112px);
    grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
    margin-bottom: var(--mg-pd--m);
  }

  .cloneables-list-page .grid__2-col.cloneables-hero-grid h1 {
    max-width: 640px;
  }
}

.cloneables-list-page .sec.cta.cloneables-newsletter {
  margin-top: 0;
  margin-bottom: 0;
  background-image: none;
}

.cloneables-list-page .sec.cta.cloneables-newsletter .cta_sec {
  border-radius: 0;
}

.cloneables-list-page .blog-approved-controls {
  width: min(760px, 100%);
  justify-self: end;
  margin: 0;
}

.cloneables-list-page .combo {
  display: flex;
  align-items: stretch;
  background: var(--neutral-100);
  border: 1px solid var(--line);
  border-radius: 16px;
  height: 66px;
  padding: 0 8px 0 24px;
  box-shadow: 0 6px 22px rgba(20, 20, 43, .06);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cloneables-list-page .combo:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 58, 255, .1), 0 8px 26px rgba(20, 20, 43, .08);
}

.cloneables-list-page .seg.search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cloneables-list-page .seg.search .s-ic {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--neutral-400);
}

.cloneables-list-page .seg.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  font: inherit;
  font-size: 16px;
  color: var(--neutral-800);
}

.cloneables-list-page .seg.search input::placeholder {
  color: var(--neutral-400);
  font-weight: 500;
}

.cloneables-list-page .seg-divider {
  width: 1px;
  align-self: center;
  height: 32px;
  background: var(--line);
  margin: 0 8px;
}

.cloneables-list-page .seg.filter {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  position: relative;
}

.cloneables-list-page .filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 20px;
  border-radius: 13px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--neutral-800);
  white-space: nowrap;
  outline: 0;
  transition: background .16s ease;
}

.cloneables-list-page .filter-btn:hover {
  background: var(--btn-hover);
}

.cloneables-list-page .filter-btn .fb-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.cloneables-list-page .filter-btn .f-ic {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--accent);
}

.cloneables-list-page .filter-btn .count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--neutral-100);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transform-origin: center;
}

.cloneables-list-page .filter-btn .count.is-on {
  display: inline-flex;
  animation: cloneableBadgeIn .5s cubic-bezier(.22, 1, .36, 1);
}

@keyframes cloneableBadgeIn {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: scale(.45);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.cloneables-list-page .filter-btn .chev {
  flex: 0 0 auto;
  display: inline-flex;
  transition: transform .26s ease;
}

.cloneables-list-page .filter.is-open .filter-btn .chev {
  transform: rotate(180deg);
}

.cloneables-list-page .panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  z-index: 60;
  width: 276px;
  background: var(--neutral-100);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 22px 54px rgba(20, 20, 43, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.985);
  transform-origin: top right;
  transition: opacity .22s ease, transform .24s cubic-bezier(.22, 1, .36, 1), visibility .22s;
}

.cloneables-list-page .filter.is-open .panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cloneables-list-page .opt {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 5px;
  border: 0;
  background: transparent;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--neutral-600);
  transition: background .15s ease, color .15s ease;
}

.cloneables-list-page .opt:last-child {
  margin-bottom: 0;
}

.cloneables-list-page .opt:hover {
  background: var(--row-hover);
}

.cloneables-list-page .opt.is-selected {
  background: var(--accent-soft);
  color: var(--neutral-800);
}

.cloneables-list-page .opt .o-ic {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--neutral-400);
  transition: color .15s ease;
}

.cloneables-list-page .opt.is-selected .o-ic {
  color: var(--accent);
}

.cloneables-list-page .opt .o-nm {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  top: 1px;
}

.cloneables-list-page .opt .o-chk {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--accent);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .18s ease, transform .18s ease;
}

.cloneables-list-page .opt.is-selected .o-chk {
  opacity: 1;
  transform: scale(1);
}

.cloneables-list-page .cloneable-tag-icon {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.cloneables-list-page .cloneable-tag-icon svg {
  width: 15px;
  height: 15px;
}

.cloneables-list-page .resrouce-card {
  position: relative;
  transition: box-shadow .22s ease, transform .22s ease;
}

.cloneables-list-page .resource-card__stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.cloneables-list-page .resource-card__image-wrap {
  z-index: 2;
}

.cloneables-list-page .resource-card__content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.cloneables-list-page .resource-card__content a {
  pointer-events: auto;
}

.cloneables-list-page .cloneables-listing-js .resource-card-title,
.cloneables-list-page .cloneables-listing-js .blog-card-title,
.cloneables-list-page .resrouce-card.featured .blog-card-title,
.cloneables-list-page .cloneables-listing-js .resource-card__image {
  transition: color .22s ease, transform .22s ease;
}

.cloneables-list-page .resrouce-card.featured .resource-card__image {
  transition: transform .22s ease;
}

/* The Webflow default-link made "Clone" bolder (700) and a hair smaller than the
   "Learn more" link (500), so the footer pair looked mismatched in size. Normalize
   to one size + weight; the link colour (dark vs primary) still distinguishes them. */
.cloneables-list-page .cloneable-card .resource-card__details .link-wraper {
  font-size: 14px;
  font-weight: 600;
}

.cloneables-list-page .cloneables-listing-js .resource-card-title,
.cloneables-list-page .cloneables-listing-js .blog-card-title {
  margin-bottom: 4px;
}

.cloneables-list-page .cloneables-listing-js .resource-card__content p,
.cloneables-list-page .resrouce-card .resource-card__content p {
  margin-top: 0;
}

.cloneables-list-page .resrouce-card.featured .resource-card__content.featured p {
  margin-top: 0;
  margin-bottom: 0;
}

.cloneables-list-page .resrouce-card:hover {
  box-shadow: 0 12px 30px rgba(20, 20, 43, .12);
}

.cloneables-list-page .resrouce-card.featured:hover .resource-card__image,
.cloneables-list-page .cloneables-listing-js .resrouce-card:hover .resource-card__image {
  transform: scale(1.05);
}

.cloneables-list-page .resrouce-card.featured:hover .blog-card-title,
.cloneables-list-page .cloneables-listing-js .resrouce-card:hover .resource-card-title,
.cloneables-list-page .cloneables-listing-js .resrouce-card:hover .blog-card-title,
.cloneables-list-page .cloneables-listing-js .text-decoration-none:hover .resource-card-title,
.cloneables-list-page .cloneables-listing-js .text-decoration-none:hover .blog-card-title {
  color: var(--new--primary-color);
  transform: none;
}

.cloneables-list-page .cloneables-listing-js .resource-card__image {
  width: 100%;
}

.cloneables-list-page .cloneables-listing-js .templates__pagination-wraper {
  opacity: 1 !important;
  visibility: visible;
  justify-content: center;
  gap: 6px;
}

.cloneables-list-page .cloneables-listing-js .pagination__count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--new--neutral--color-600);
}

.cloneables-list-page .cloneables-listing-js .pagination__count-current,
.cloneables-list-page .cloneables-listing-js .pagination__count-total {
  font-weight: 700;
  color: var(--new--neutral--color-800);
}

.cloneables-list-page .cloneables-listing-js .blog-empty-content .empty-state__icon {
  margin-bottom: 8px;
}

.cloneables-list-page .cloneables-listing-js .blog-empty-content .ts-6.heading {
  margin-top: 0;
  margin-bottom: calc(var(--mg-pd--xxs) / 2);
}

.cloneables-list-page .cloneables-listing-js .blog-empty-content p:not(.heading) {
  max-width: 620px;
  margin-top: 8px;
  margin-right: auto;
  margin-left: auto;
}

.cloneables-list-page .cloneables-listing-js .pagination__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--new--neutral--color-300);
  border-radius: 999px;
  background: var(--new--neutral--color-100);
  color: var(--new--neutral--color-600);
  text-decoration: none;
  transition: border-color .2s cubic-bezier(.16, 1, .3, 1), color .2s cubic-bezier(.16, 1, .3, 1);
}

.cloneables-list-page .cloneables-listing-js .pagination__arrow svg {
  width: 18px;
  height: 18px;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

.cloneables-list-page .cloneables-listing-js .pagination__arrow:not(.is-disabled):hover,
.cloneables-list-page .cloneables-listing-js .pagination__arrow:not(.is-disabled):focus-visible {
  border-color: var(--new--neutral--color-400);
  color: var(--new--neutral--color-800);
  outline: none;
}

.cloneables-list-page .cloneables-listing-js .pagination__arrow--prev:not(.is-disabled):hover svg,
.cloneables-list-page .cloneables-listing-js .pagination__arrow--prev:not(.is-disabled):focus-visible svg {
  transform: translateX(-2px);
}

.cloneables-list-page .cloneables-listing-js .pagination__arrow--next:not(.is-disabled):hover svg,
.cloneables-list-page .cloneables-listing-js .pagination__arrow--next:not(.is-disabled):focus-visible svg {
  transform: translateX(2px);
}

.cloneables-list-page .cloneables-listing-js .pagination__arrow.is-disabled {
  opacity: .35;
  pointer-events: none;
}

@keyframes cloneableCardEnter {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 12px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cloneableEmptyEnter {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 12px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@media screen and (max-width: 767px) {
  .cloneables-list-page .blog-approved-controls {
    width: 100%;
  }

  .cloneables-list-page .combo {
    height: 60px;
    padding: 0 6px 0 18px;
  }

  .cloneables-list-page .seg.search input {
    font-size: 15px;
  }

  .cloneables-list-page .filter-btn span[data-label] {
    display: none;
  }

  .cloneables-list-page .panel {
    width: min(84vw, 276px);
  }

  .cloneables-list-page .cloneables-listing-js .templates__pagination-wraper {
    grid-row-gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloneables-list-page .cloneables-listing-js [data-cloneables-results],
  .cloneables-list-page .cloneables-listing-js .resrouce-card,
  .cloneables-list-page .resrouce-card.featured,
  .cloneables-list-page .cloneables-listing-js .resource-card-title,
  .cloneables-list-page .cloneables-listing-js .blog-card-title,
  .cloneables-list-page .resrouce-card.featured .blog-card-title,
  .cloneables-list-page .cloneables-listing-js .resource-card__image,
  .cloneables-list-page .resrouce-card.featured .resource-card__image,
  .cloneables-list-page .combo,
  .cloneables-list-page .filter-btn,
  .cloneables-list-page .filter-btn .chev,
  .cloneables-list-page .panel,
  .cloneables-list-page .opt,
  .cloneables-list-page .opt .o-ic,
  .cloneables-list-page .opt .o-chk,
  .cloneables-list-page .cloneables-listing-js .pagination__arrow,
  .cloneables-list-page .cloneables-listing-js .pagination__arrow svg {
    transition: none;
  }

  .cloneables-list-page .filter-btn .count.is-on {
    animation: none;
  }

  .cloneables-list-page .cloneables-listing-js [data-cloneables-results].is-entering [data-cloneable-card] {
    animation: none;
  }

  .cloneables-list-page .cloneables-listing-js [data-cloneables-empty].is-empty-entering {
    animation: none;
  }

  .cloneables-list-page .cloneables-listing-js .resrouce-card:hover .resource-card-title,
  .cloneables-list-page .cloneables-listing-js .resrouce-card:hover .blog-card-title,
  .cloneables-list-page .resrouce-card.featured:hover .blog-card-title,
  .cloneables-list-page .resrouce-card.featured:hover .resource-card__image,
  .cloneables-list-page .cloneables-listing-js .resrouce-card:hover .resource-card__image {
    transform: none;
  }
}
