/* Shadows follow the photographed objects and major changes of surface. */
:root {
  --grove-paper-depth: 0 3px 6px rgba(40,35,25,.085), 0 10px 24px rgba(40,35,25,.115);
  --grove-paper-edge: inset 0 13px 19px -22px rgba(42, 39, 27, .36);
  --grove-footer-green: #253b30;
}
body[data-grove-page] footer, body.grove-standalone footer {
  background: var(--grove-footer-green) !important;
  color: #f2f1e7 !important;
  border-top: 0;
  box-shadow: inset 0 9px 15px -13px rgba(0, 0, 0, .34);
}
body[data-grove-page] footer :is(a, span), body.grove-standalone footer a {
  color: inherit !important;
}
body[data-grove-page] footer > .grove-social-links {
  border-color: rgba(238, 235, 214, .24);
}
.grove-social-links .grove-social-mark {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex: none;
}
footer .grove-social-mark { filter: invert(95%) sepia(6%) saturate(330%) hue-rotate(7deg); }
footer a:focus-visible { outline: 2px solid #f2e5c6 !important; outline-offset: 3px; }
body[data-grove-page]:not([data-grove-page="home"]) :is(.grove-page-intro, .band, .planning, .policy-help, .library-help, .grove-product-delivery, .grove-contact-identity) {
  box-shadow: var(--grove-paper-edge);
}
body[data-grove-page]:not([data-grove-page="home"]) :is(.tile .shop-crop, .tile .product-photo-link, .project-card .photo-button, .journal-photo, .grove-browse-plan-photo, .hero-photo, .grove-product-main, .guide-photo img, .journal-article-wrap figure img) {
  box-shadow: var(--grove-paper-depth);
}
body[data-grove-page] .tile .product-photo-link:has(.shop-crop) { box-shadow: none; }
body[data-grove-page]:not([data-grove-page="home"]) main :is(.eyebrow, figcaption) {
  font-size: max(.8125rem, 13px);
  line-height: 1.45;
}
body[data-grove-page]:not([data-grove-page="home"]) main :is(.actions, .purchase-actions, .policy-help, .library-help, .help) .button:not(.secondary):not(:disabled) {
  box-shadow: 0 3px 7px -4px rgba(32, 47, 34, .33);
}
body[data-grove-page="home"] main #contact { background: white; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body[data-grove-page] :is(.journal-photo, .grove-browse-plan-photo, .project-card .photo-button) {
    transition: box-shadow 220ms ease-out;
  }
  body[data-grove-page] :is(.journal-photo, .grove-browse-plan-photo, .project-card .photo-button):hover {
    box-shadow: 0 3px 7px rgba(40,35,25,.10), 0 13px 27px rgba(40,35,25,.14);
  }
}

/* Put the mount on the outside of the crop so clips and full-size viewers work normally. */
body[data-grove-page]:not([data-grove-page="home"]) :is(.shop-crop, .photo-button, .hero-photo, .grove-product-main, .guide-photo img, .journal-photo) {
  border-radius: 0;
}
body[data-grove-page]:not([data-grove-page="home"]) :is(.hero-photo, .grove-product-main, .grove-summary-media img[data-grove-base-src]) {
  box-shadow: 0 3px 7px rgba(40,35,25,.10), 0 12px 26px rgba(40,35,25,.14);
}
/* Feather the change of paper across actual sections, outside their text and controls. */
body[data-grove-page]:not([data-grove-page="home"]) :is(.grove-page-intro, .journal-intro, .planning, .band, .library-help, .policy-help),
body[data-grove-page="gallery"] .hero {
  position: relative;
}
body[data-grove-page]:not([data-grove-page="home"]) :is(.grove-page-intro, .journal-intro, .planning, .band, .library-help, .policy-help)::after,
body[data-grove-page="gallery"] .hero::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 36px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(65,51,30,.10), rgba(65,51,30,.042) 30%, rgba(65,51,30,.011) 68%, transparent);
}
body[data-grove-page]:not([data-grove-page="home"]) :is(.planning, .band)::before {
  content: "";
  position: absolute;
  inset: auto 0 100%;
  height: 32px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(65,51,30,.09), rgba(65,51,30,.035) 30%, transparent);
}
/* Category changes in Shop All sit within one white sheet. Keep the first heading clean. */
body[data-grove-page="shop"] .mobile-shop-group:not(:first-of-type) {
  position: relative;
}
body[data-grove-page="shop"] .mobile-shop-group:not(:first-of-type)::before {
  content: "";
  position: absolute;
  inset: auto 0 100%;
  height: 24px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(65,51,30,.055), transparent);
}