/* Reference homepage banner and responsive nursery navigation. */
.mobile-header-location,
.header-search.mobile-header-search {
  display: none;
}
@media (min-width: 901px) {
  .reference-store-chrome .header-inner {
    height: 62px;
  }
  .reference-store-chrome .header-search {
    height: 36px;
  }
  .reference-store-chrome .main-nav {
    min-height: 34px;
  }
  .reference-store-chrome .main-nav > a,
  .reference-store-chrome .main-nav > button {
    padding-block: 8px;
  }
}
.reference-home .welcome-image.hero-carousel {
  aspect-ratio: 3.25;
  border-radius: 14px;
}
.reference-home .hero-slide-with-copy {
  background: #f3f6ed;
}
.reference-home .hero-slide-with-copy picture {
  position: absolute;
  inset: 0 0 0 37%;
  width: 63%;
}
.reference-home .hero-slide-with-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f3f6ed 0%,
    #f3f6ed 33%,
    #f3f6edee 40%,
    #f3f6ed00 62%
  );
  pointer-events: none;
}
.reference-home .reference-hero-copy {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 4%;
  width: 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 18px 0 25px;
  color: #064d0b;
}
.reference-home .reference-hero-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.7vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
  white-space: pre-line;
  margin: 0 0 14px;
}
.reference-home .reference-hero-copy p {
  color: #151c13;
  white-space: pre-line;
  font-size: clamp(12px, 1.5vw, 17px);
  line-height: 1.65;
  margin: 0 0 18px;
}
.reference-home .reference-hero-cta {
  background: #07560b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 7px;
}
.reference-home .reference-hero-cta .icon {
  color: #fff;
  width: 19px;
  height: 19px;
}
.reference-home .hero-controls {
  justify-content: flex-start;
  left: 4%;
  bottom: 5px;
  right: auto;
  gap: 5px;
  display: flex !important;
}
.reference-home .hero-controls .hero-arrow {
  display: none !important;
}
.reference-home .hero-controls .hero-pause {
  width: 28px;
  height: 28px;
  background: #f3f6ed;
  color: #07560b;
  box-shadow: none;
  display: flex !important;
}
.reference-home .hero-controls .hero-dots {
  display: flex !important;
  background: none;
  padding: 0;
}
.reference-home .hero-controls .hero-dots button {
  width: 24px;
  height: 28px;
  display: grid !important;
}
.reference-home .hero-dots button::after,
.reference-home .hero-dots button[aria-pressed="true"]::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cad6bf;
}
.reference-home .hero-dots button[aria-pressed="true"]::after {
  background: #07560b;
}
@media (max-width: 900px) {
  .reference-home .hero-controls {
    display: none !important;
  }
  .reference-store-chrome .site-header {
    border: 0;
  }
  .reference-store-chrome .header-inner {
    --mobile-header-edge: 10px;
    height: 68px;
    min-height: 68px;
    padding: 6px var(--mobile-header-edge);
  }
  .reference-store-chrome .header-inner > .brand.reference-brand {
    width: max-content;
    /* Reserve equal space for two touch targets on each side of the mark. */
    max-width: calc(
      100% - 184px - var(--mobile-header-edge) - var(--mobile-header-edge)
    );
    left: 50%;
    top: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    gap: 6px;
  }
  .reference-store-chrome .header-inner > .reference-brand .brand-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
  .reference-store-chrome .header-inner > .reference-brand .brand-words {
    white-space: normal;
    max-width: 126px;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.4px;
  }
  .reference-store-chrome .header-inner > .reference-brand .brand-words small {
    white-space: nowrap;
    margin-top: 4px;
    color: #20251e;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0;
  }
  .reference-store-chrome .header-actions {
    gap: 0;
  }
  .reference-store-chrome .header-actions .mobile-menu {
    top: 50%;
    left: var(--mobile-header-edge);
    transform: translateY(-50%);
    height: 44px;
    width: 44px;
    color: #173c13;
  }
  .reference-store-chrome .header-actions .reference-help {
    display: none;
  }
  .reference-store-chrome .header-actions .mobile-header-location {
    display: inline-flex;
    position: absolute;
    left: calc(var(--mobile-header-edge) + 44px);
    top: 50%;
    transform: translateY(-50%);
  }
  .reference-store-chrome .header-actions .icon-btn:not(.mobile-menu) {
    height: 44px;
    width: 44px;
    flex-shrink: 0;
    color: #173c13;
  }
  .reference-store-chrome .header-actions .icon {
    width: 22px;
    height: 22px;
  }
  .reference-store-chrome .header-actions .cart-count {
    top: 2px;
    right: 2px;
  }
  .reference-store-chrome .site-header > .mobile-header-search,
  .reference-customer-shell .portal-header > .mobile-header-search {
    display: flex;
    margin: 0 14px 10px;
    height: 44px;
    background: #fff;
    border-color: var(--line);
    border-radius: 8px;
  }
  .reference-store-chrome .mobile-header-search input,
  .reference-customer-shell .mobile-header-search input {
    font-size: 16px;
  }
  .mobile-header-search button {
    flex: 0 0 44px;
    color: var(--green);
  }
  .reference-home .welcome-section {
    margin-top: 0;
  }
  .reference-home .welcome-image.hero-carousel {
    aspect-ratio: 2.57;
    border-radius: 10px;
  }
  .reference-home .reference-hero-copy {
    width: 49%;
    left: 4%;
    padding: 10px 0 23px;
  }
  .reference-home .reference-hero-copy h2 {
    font-size: clamp(16px, 4.6vw, 38px);
    letter-spacing: -0.6px;
    margin-bottom: 9px;
  }
  .reference-home .reference-hero-copy p {
    font-size: clamp(9px, 1.9vw, 14px);
    margin-bottom: 10px;
    line-height: 1.6;
  }
  .reference-home .reference-hero-cta {
    font-size: clamp(8px, 1.7vw, 12px);
    padding: 7px 9px;
    gap: 6px;
    border-radius: 5px;
  }
  .reference-home .reference-hero-cta .icon {
    width: 13px;
    height: 13px;
  }
  .reference-home .hero-controls {
    bottom: 0;
  }
  .reference-bottom-nav {
    background: #fff;
    border: 1px solid #eef0e9;
    box-shadow: 0 -2px 12px #193f0a05;
  }
  .reference-bottom-nav a {
    color: #70766c;
  }
  .reference-bottom-nav a.active .icon {
    fill: #07560b;
    stroke: #07560b;
  }
}
@media (max-width: 430px) {
  .reference-store-chrome .header-inner {
    --mobile-header-edge: 4px;
    height: 64px;
    min-height: 64px;
  }
  .reference-store-chrome .header-inner > .reference-brand .brand-icon {
    width: 36px;
    height: 36px;
  }
  .reference-store-chrome .header-inner > .reference-brand .brand-words {
    font-size: 16px;
    max-width: 101px;
  }
  .reference-store-chrome .header-inner > .reference-brand .brand-words small {
    font-size: 7px;
  }
  .reference-home .welcome-image.hero-carousel {
    aspect-ratio: 2.35;
  }
}
@media (max-width: 360px) {
  .reference-store-chrome .header-inner > .brand.reference-brand {
    gap: 5px;
  }
  .reference-store-chrome .header-inner > .reference-brand .brand-icon {
    width: 30px;
    height: 30px;
  }
  .reference-store-chrome .header-inner > .reference-brand .brand-words {
    font-size: 13.5px;
    max-width: 76px;
  }
  .reference-store-chrome .header-inner > .reference-brand .brand-words small {
    font-size: 6.5px;
    margin-top: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reference-home .hero-dots button::after {
    transition: none;
  }
}

.reference-header-back {
  display: none;
}
@media (max-width: 900px) {
  .reference-store-chrome .reference-header-back {
    display: inline-flex;
    position: absolute;
    left: var(--mobile-header-edge);
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }
  .reference-header-back .icon {
    transform: rotate(180deg);
  }
  .reference-has-page-back .header-actions .mobile-menu {
    display: none !important;
  }
}
