:root {
  --home-green: #163f30;
  --home-ink: #192e26;
  --home-muted: #63736b;
  --home-line: #dbe2dc;
}

.home-heading-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-section-heading {
  align-items: start;
}

.home-section-heading > div:last-child {
  max-width: 24rem;
  padding-top: .7rem;
  color: var(--home-muted);
}

.home-browser-trigger.text-link {
  margin-top: 1.6rem;
  border: 0;
  border-bottom: 1px solid var(--home-green);
  background: transparent;
  color: var(--home-green);
  text-align: left;
  cursor: pointer;
}

.home-browser-trigger:hover {
  color: #427157;
}

.home-browser-trigger > span {
  display: inline-block;
  transition: transform .2s;
}

.home-browser-trigger[aria-expanded="true"] > span {
  transform: rotate(45deg);
}

.home-catalog-panel {
  margin: 0 0 3.6rem;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  border: 1px solid var(--home-line);
  background: #fff;
  scroll-margin-top: 105px;
}

.home-catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--home-line);
}

.home-catalog-eyebrow {
  color: #55735d;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
}

.home-catalog-top h3 {
  margin: .45rem 0 .65rem;
  color: var(--home-ink);
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
}

.home-catalog-top p:last-child {
  color: var(--home-muted);
  font-size: .88rem;
}

.home-catalog-close {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  min-height: 42px;
  padding: .5rem .75rem;
  border: 1px solid #b9c9bd;
  background: transparent;
  color: var(--home-green);
  font-size: .78rem;
  white-space: nowrap;
  cursor: pointer;
}

.home-catalog-close:hover {
  background: #edf3ed;
}

.home-catalog-close span {
  font-size: 1.3rem;
  line-height: 1;
}

.home-catalog-layout {
  display: grid;
  grid-template-columns: minmax(225px, 255px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
  align-items: start;
}

.home-taxonomy-toggle {
  display: none;
}

.home-taxonomy {
  padding: 1.45rem 1.1rem 1.7rem;
  border: 1px solid var(--home-line);
  background: #f7f8f6;
}

.home-taxonomy-heading {
  margin-bottom: .75rem;
  color: #45634c;
  font-size: 1.03rem;
  font-weight: 600;
}

.home-tree-item {
  border: 0;
  background: transparent;
  color: #627b66;
  text-align: left;
  cursor: pointer;
}

.home-tree-item:hover,
.home-tree-item.is-active {
  color: #266a39;
}

.home-tree-all {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-bottom: .45rem;
  padding: .45rem 0 .7rem;
  border-bottom: 1px solid #d5ded5;
  font-size: .81rem;
  font-weight: 600;
}

.home-results[hidden],
.home-feature[hidden],
.home-product-choice[hidden],
.home-empty[hidden] {
  display: none !important;
}

.home-genus-filter {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: .5rem .1rem;
  font-size: .84rem;
  line-height: 1.55;
}

.home-catalog-main {
  min-width: 0;
}

.home-catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 1rem;
  scroll-margin-top: 110px;
}

.home-catalog-toolbar h4 {
  margin: .35rem 0 .15rem;
  color: var(--home-ink);
  font-size: clamp(1.65rem, 2.3vw, 2.2rem);
  font-weight: 500;
}

#home-group-count {
  color: var(--home-muted);
  font-size: .78rem;
}

.home-search-label {
  display: block;
  flex: 0 1 230px;
  min-width: 165px;
}

.home-search-label input {
  width: 100%;
  min-height: 43px;
  padding: .6rem .75rem;
  border: 1px solid var(--home-line);
  border-radius: 0;
  background: #fff;
  color: var(--home-ink);
  font-size: .8rem;
}

.home-group-description {
  max-width: 77ch;
  margin: 0 0 1.7rem;
  color: #52645a;
  font-size: .9rem;
  line-height: 1.9;
}

.home-product-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.25rem;
}

.home-product-choice {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--home-ink);
  text-align: left;
  cursor: pointer;
}

.home-choice-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f7f8f6;
}

.home-choice-image img {
  width: 100%;
  height: 100%;
  padding: .35rem;
  object-fit: contain;
  transition: transform .3s;
}

.home-product-choice:hover img {
  transform: scale(1.035);
}

.home-choice-name {
  display: -webkit-box;
  overflow: hidden;
  margin: .8rem 0 .25rem;
  color: #345d3e;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-choice-excerpt {
  display: block;
  color: #77877a;
  font-size: .77rem;
  line-height: 1.55;
}

.home-empty {
  padding: 1.2rem 0;
  color: var(--home-muted);
  font-size: .86rem;
}

.home-feature {
  scroll-margin-top: 110px;
}

.home-back-to-results {
  margin-bottom: 1rem;
  padding: .3rem 0;
  border: 0;
  border-bottom: 1px solid #789b7f;
  background: transparent;
  color: var(--home-green);
  font-size: .82rem;
  cursor: pointer;
}

.home-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.1rem, 2.5vw, 2rem);
  padding: 1rem;
  border: 1px solid var(--home-line);
  background: #fff;
}

.home-feature-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  background: #f7f9f6;
}

.home-feature-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.home-feature-image span {
  padding: 0 .6rem .7rem;
  color: var(--home-muted);
  font-size: .66rem;
  text-align: center;
}

.home-feature-copy {
  align-self: center;
  min-width: 0;
  padding: .6rem .5rem .6rem 0;
}

.home-feature-copy h5 {
  margin: .8rem 0 .3rem;
  font-size: clamp(1.6rem, 2.3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#home-feature-secondary {
  color: #74877b;
  font-size: .78rem;
  overflow-wrap: anywhere;
}

#home-feature-intro {
  margin: 1.2rem 0;
  color: #40564a;
  font-size: .88rem;
  line-height: 1.75;
}

.home-feature-copy dl {
  margin: 0;
  border-top: 1px solid var(--home-line);
}

.home-feature-copy dl > div {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  gap: .5rem;
  padding: .58rem 0;
  border-bottom: 1px solid var(--home-line);
  font-size: .76rem;
}

.home-feature-copy dt {
  color: #809085;
}

.home-feature-copy dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .home-product-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-catalog-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .home-taxonomy-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--home-line);
    background: #f7f8f6;
    color: var(--home-green);
    font-size: .84rem;
    cursor: pointer;
  }
  .home-taxonomy {
    display: none;
  }
  .home-taxonomy.is-open {
    display: block;
  }
}

@media (max-width: 600px) {
  .home-browser-trigger.text-link {
    margin-top: 1rem;
  }
  .home-catalog-panel {
    margin: 0 -8px 2.5rem;
    padding: .9rem;
    scroll-margin-top: 82px;
  }
  .home-catalog-top {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  .home-catalog-top p:last-child {
    font-size: .78rem;
  }
  .home-catalog-close {
    gap: .35rem;
    padding: .45rem;
  }
  .home-catalog-toolbar {
    align-items: start;
    flex-direction: column;
    gap: .75rem;
  }
  .home-search-label {
    flex: none;
    width: 100%;
  }
  .home-group-description {
    margin-bottom: 1.2rem;
    font-size: .82rem;
    line-height: 1.7;
  }
  .home-product-choices {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .home-choice-name {
    font-size: 1.2rem;
  }
  .home-feature-layout {
    grid-template-columns: 1fr;
    gap: .7rem;
    padding: .7rem;
  }
  .home-feature-image img {
    max-height: 320px;
  }
  .home-feature-copy {
    padding: .75rem .45rem;
  }
  .home-feature {
    scroll-margin-top: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-browser-trigger > span,
  .home-choice-image img {
    transition: none;
  }
}
