.home .asta-home-funding-preview {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr) 42px;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1176px;
  margin: 12px auto 0;
  padding: 23px 28px;
  border: 1px solid #e2ebe0;
  border-radius: 14px;
  background: linear-gradient(112deg, #f8fbf6 0%, #f4f8f1 100%);
  box-shadow: 0 8px 24px rgb(39 71 39 / 5%);
  color: var(--asta-ink, #1f242c);
}

.home .asta-home-funding-preview__intro {
  display: flex;
  width: 100%;
  max-width: 340px;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.home .asta-home-funding-preview h3 {
  max-width: 25ch;
  margin: 0;
  color: #1d2b31;
  font-size: clamp(1.16rem, 1.5vw, 1.48rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.22;
  text-wrap: balance;
}

.home .asta-home-funding-preview__description {
  max-width: 40ch;
  margin: 9px 0 0;
  color: #66736d;
  font-size: .88rem;
  line-height: 1.5;
  text-align: left;
}

.home .asta-home-funding-preview__rail-viewport {
  position: relative;
  min-width: 0;
  align-self: stretch;
}

.home .asta-home-funding-preview__rail-viewport::before,
.home .asta-home-funding-preview__rail-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  z-index: 2;
  width: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  background: rgb(32 48 35 / 12%);
}

.home .asta-home-funding-preview__rail-viewport::before {
  left: 0;
  box-shadow: 3px 0 9px 1px rgb(32 48 35 / 18%);
}

.home .asta-home-funding-preview__rail-viewport::after {
  right: 0;
  box-shadow: -3px 0 9px 1px rgb(32 48 35 / 18%);
}

.home .asta-home-funding-preview__rail-viewport.has-start-shadow::before,
.home .asta-home-funding-preview__rail-viewport.has-end-shadow::after {
  opacity: 1;
}

.home .asta-home-funding-preview__rail {
  min-width: 0;
  align-self: stretch;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #a7c696 #e6eee2;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.home .asta-home-funding-preview__rail:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--asta-dark-green, #356a29);
  outline-offset: 3px;
}

.home .asta-home-funding-preview__rail::-webkit-scrollbar {
  height: 5px;
}

.home .asta-home-funding-preview__rail::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e6eee2;
}

.home .asta-home-funding-preview__rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #a7c696;
}

.home .asta-home-funding-preview__options {
  display: flex;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 3px 2px 8px;
  list-style: none;
}

.home .asta-home-funding-preview__option {
  display: flex;
  flex: 0 0 196px;
  min-width: 0;
  scroll-snap-align: start;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .32s ease, transform .42s cubic-bezier(.2, .75, .25, 1);
}

.home .asta-home-funding-preview__options.is-animated .asta-home-funding-preview__option:not(.is-visible) {
  opacity: 0;
  transform: translateX(14px);
}

.home .asta-home-funding-preview__item {
  display: grid;
  width: 100%;
  min-height: 132px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 50px minmax(2.6em, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 13px 12px;
  border: 1px solid #e2e9df;
  border-radius: 12px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 3px 12px rgb(34 57 34 / 4%);
  color: #202b31;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home .asta-home-funding-preview__item:hover {
  transform: translateY(-2px);
  border-color: #c9ddc2;
  background: #fff;
  box-shadow: 0 8px 18px rgb(39 71 39 / 9%);
}

.home .asta-home-funding-preview__item:focus-visible {
  outline: 2px solid var(--asta-dark-green, #356a29);
  outline-offset: -3px;
}

.home .asta-home-funding-preview__icon {
  position: relative;
  display: grid;
  width: 88px;
  height: 50px;
  grid-row: 1;
  overflow: hidden;
  place-items: center;
  border: 1px solid #e3eae0;
  border-radius: 10px;
  background: #fff;
  color: #438c36;
}

.home .asta-home-funding-preview__icon > svg {
  display: block;
  width: 24px;
  height: 24px;
  align-self: center;
}

.home .asta-home-funding-preview__icon > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home .asta-home-funding-preview__icon > img,
.home .asta-home-funding-preview__icon .asta-funding-card__media-image {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  padding: 5px;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.home .asta-home-funding-preview__icon .asta-funding-card__media-image--photo {
  object-fit: cover;
  padding: 0;
  border-radius: 9px;
}

.home .asta-home-funding-preview__icon .asta-funding-card__media-image:not(.asta-funding-card__media-image--photo) {
  padding: 5px;
}

.home .asta-home-funding-preview__icon .asta-funding-card__default-media {
  display: grid;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 4px;
  place-items: center;
}

.home .asta-home-funding-preview__icon .asta-funding-card__logo-mark {
  display: block;
  width: 50px;
  height: 40px;
  max-height: 40px;
  max-width: 50px;
  object-fit: contain;
}

.home .asta-home-funding-preview__item-title {
  display: -webkit-box;
  min-width: 0;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-align: left;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.3;
  text-wrap: pretty;
}

.home .asta-home-funding-preview__item--all {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  font-weight: 700;
}

.home .asta-home-funding-preview__item--all .asta-home-funding-preview__item-title {
  grid-row: 1;
  align-self: center;
  text-align: left;
}

.home .asta-home-funding-preview__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.home .asta-home-funding-preview__swipe-hint {
  display: none;
}

.home .asta-home-funding-preview__control {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #cbdcc5;
  border-radius: 50%;
  background: #fff;
  color: #356a29;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
}

.home .asta-home-funding-preview__control svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform .2s ease;
}

.home .asta-home-funding-preview__control[data-asta-funding-direction="prev"]:not(:disabled):hover svg {
  transform: translateX(-2px);
}

.home .asta-home-funding-preview__control[data-asta-funding-direction="next"]:not(:disabled):hover svg {
  transform: translateX(2px);
}

.home .asta-home-funding-preview__control:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: #86b876;
  background: #edf5e9;
}

.home .asta-home-funding-preview__control:focus-visible {
  outline: 2px solid var(--asta-dark-green, #356a29);
  outline-offset: 3px;
}

.home .asta-home-funding-preview__control:disabled {
  opacity: .38;
  cursor: default;
}

.home .asta-home-funding-preview--home {
  margin-top: 32px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .home .asta-home-funding-preview {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 14px 16px;
    padding: 21px 22px 17px;
  }

  .home .asta-home-funding-preview__intro {
    grid-column: 1 / -1;
  }

  .home .asta-home-funding-preview__rail {
    min-height: 88px;
  }

  .home .asta-home-funding-preview__option {
    flex-basis: 196px;
  }
}

@media (max-width: 600px) {
  .home main .wp-block-post-content > .asta-layout:nth-child(2) {
    display: none;
  }

  .home .asta-home-funding-preview {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 18px 15px 15px;
  }

  .home .asta-home-funding-preview__intro,
  .home .asta-home-funding-preview__rail-viewport {
    grid-column: 1;
  }

  .home .asta-home-funding-preview h3 {
    font-size: 1.15rem;
  }

  .home .asta-home-funding-preview__description {
    margin-top: 7px;
    font-size: .82rem;
    text-align: left;
  }

  .home .asta-home-funding-preview__option {
    flex-basis: min(176px, calc(100vw - 120px));
  }

  .home .asta-home-funding-preview__item {
    min-height: 112px;
    grid-template-rows: 44px minmax(2.6em, 1fr);
    gap: 8px;
    padding: 10px 11px 11px;
  }

  .home .asta-home-funding-preview__icon {
    width: 78px;
    height: 44px;
  }

  .home .asta-home-funding-preview__item-title {
    max-width: 21ch;
    font-size: .86rem;
  }

  .home .asta-home-funding-preview__controls {
    display: none;
  }

  .home .asta-home-funding-preview__rail {
    width: 100%;
    min-height: 0;
    scrollbar-width: none;
  }

  .home .asta-home-funding-preview__rail::-webkit-scrollbar {
    display: none;
  }

  .home .asta-home-funding-preview__options {
    gap: 12px;
    padding: 3px 2px 8px;
  }

  .home .asta-home-funding-preview__options.is-animated .asta-home-funding-preview__option:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .home .asta-home-funding-preview__rail-viewport::before,
  .home .asta-home-funding-preview__rail-viewport::after {
    width: 14px;
    border: 0;
    background: linear-gradient(90deg, rgb(244 248 241 / 0%), #f4f8f1 92%);
    box-shadow: none;
  }

  .home .asta-home-funding-preview__rail-viewport::before {
    background: linear-gradient(90deg, #f4f8f1 8%, rgb(244 248 241 / 0%));
  }

  .home .asta-home-funding-preview__swipe-hint {
    display: flex;
    grid-column: 1;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: -7px 2px 0;
    color: #647268;
    font-size: .74rem;
    line-height: 1.3;
    text-align: left;
  }

  .home .asta-home-funding-preview__swipe-hint svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: #438c36;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    animation: asta-funding-swipe-nudge 1.6s ease-in-out infinite alternate;
  }

  .home .asta-home-funding-preview:not(.has-overflow) .asta-home-funding-preview__swipe-hint {
    display: none;
  }

  .home .asta-home-funding-preview--home {
    margin-bottom: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .asta-home-funding-preview__option,
  .home .asta-home-funding-preview__item,
  .home .asta-home-funding-preview__control {
    scroll-behavior: auto;
    transition-duration: .01ms;
  }

  .home .asta-home-funding-preview__rail {
    scroll-behavior: auto;
  }

  .home .asta-home-funding-preview__rail-viewport::before,
  .home .asta-home-funding-preview__rail-viewport::after {
    transition-duration: .01ms;
  }

  .home .asta-home-funding-preview__control svg,
  .home .asta-home-funding-preview__swipe-hint svg {
    animation: none;
    transition-duration: .01ms;
  }
}

@keyframes asta-funding-swipe-nudge {
  from { transform: translateX(-3px); }
  to { transform: translateX(3px); }
}
