/* Plant Safety scoped search, species filters and visible source attribution. */

.kc-plant-hero {
  background:
    radial-gradient(circle at 14% 18%, rgba(220, 235, 221, .82), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(232, 221, 242, .76), transparent 32%),
    linear-gradient(180deg, #fbfff9 0%, #f8f5ef 100%);
}

.kc-plant-hero__art {
  display: grid;
  min-height: 290px;
  place-items: center;
  position: relative;
  border: 1px solid rgba(78, 101, 79, .1);
  border-radius: 46% 54% 48% 52% / 45% 42% 58% 55%;
  background: linear-gradient(145deg, rgba(221, 239, 226, .92), rgba(255, 246, 231, .9));
  box-shadow: 0 24px 60px rgba(75, 91, 73, .12);
}

.kc-plant-hero__art span {
  position: absolute;
  filter: drop-shadow(0 10px 15px rgba(74, 83, 66, .1));
}

.kc-plant-hero__art span:nth-child(1) {
  font-size: clamp(5rem, 12vw, 8.8rem);
  transform: translate(-26px, -14px) rotate(-8deg);
}

.kc-plant-hero__art span:nth-child(2) {
  right: 15%;
  bottom: 13%;
  font-size: clamp(3rem, 8vw, 5.2rem);
  transform: rotate(8deg);
}

.kc-plant-hero__art span:nth-child(3) {
  left: 15%;
  bottom: 15%;
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  transform: rotate(-10deg);
}

.kc-plant-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 14px;
}

.kc-plant-filters a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(82, 105, 83, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #586653;
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.kc-plant-filters a:hover,
.kc-plant-filters a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(75, 91, 73, .1);
}

.kc-plant-filters a.is-active {
  border-color: rgba(82, 128, 86, .28);
  background: #eaf5eb;
  color: #355b3d;
  box-shadow: inset 0 0 0 1px rgba(82, 128, 86, .05);
}

.kc-plant-search-note {
  max-width: 710px;
  margin: 12px 0 0;
  color: #74806f;
  font-size: .78rem;
  line-height: 1.5;
}

.kc-plant-archive .kc-knowledge-card {
  min-height: 410px;
}

.kc-plant-card__sources {
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid rgba(83, 103, 82, .1);
}

.kc-plant-card__sources > strong {
  display: block;
  margin-bottom: 7px;
  color: #586454;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.kc-plant-card__sources > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kc-plant-card__sources a {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf3ea;
  color: #3f6546;
  font-size: .67rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.kc-plant-card__sources a:hover,
.kc-plant-card__sources a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kc-plant-archive .kc-text-link {
  margin-top: 17px;
}

@media (max-width: 680px) {
  .kc-plant-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kc-plant-filters a {
    width: 100%;
    padding-inline: 9px;
  }

  .kc-plant-archive .kc-knowledge-card {
    min-height: 0;
  }

  .kc-plant-hero__art {
    min-height: 230px;
    width: min(100%, 430px);
  }
}

@media (max-width: 390px) {
  .kc-plant-filters {
    grid-template-columns: 1fr;
  }

  .kc-plant-card__sources > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kc-plant-card__sources a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kc-plant-filters a {
    transition: none;
  }
}
