/* Shared editorial text and FAQ treatment for the Graphite storefront. */
:root:root {
  --graphite-muted: #5d5148;
  --editorial-muted: #5d5148;
  --editorial-body: Manrope, system-ui, sans-serif;
  --faq-ink: #2e251f;
  --faq-line: #d5c7bb;
  --faq-accent: #8f4727;
}

html body.redesign :is(main, .approved-content) :where(p, li, dd, figcaption),
html #reviews .home-review-copy {
  font-family: var(--editorial-body);
}

html body.redesign main :is(h1, h2, h3) {
  letter-spacing: -.024em;
}

html body.redesign main :is(.seo-lead, .seo-content p, .blog-prose p, .product-service-panel p, .workshop-content p) {
  line-height: 1.72;
}

html body.redesign main :is(.seo-lead, .overview-description, .blog-story-lead, .product-details-copy,
  .product-price-note, .product-order-note, .work-card-copy p, .work-direction-grid p, .workshop-content figcaption),
html #reviews .home-review-order {
  color: var(--editorial-muted);
}

html body.redesign main :is(.product-faq, .faq-list, .seo-content, .ny-faq, [aria-labelledby="questions"]) > details {
  max-width: 52rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--faq-line);
  border-radius: 0;
  background: transparent;
}

html body.redesign main :is(.product-faq, .faq-list, .seo-content, .ny-faq, [aria-labelledby="questions"]) > details:not(details + details) {
  border-top: 1px solid var(--faq-line);
}

html body.redesign main :is(.product-faq, .faq-list, .seo-content, .ny-faq, [aria-labelledby="questions"]) > details > summary {
  display: block;
  position: relative;
  min-height: 48px;
  padding: 13px 38px 13px 0;
  color: var(--faq-ink);
  background: transparent;
  font: 650 1rem/1.45 var(--editorial-body);
  list-style: none;
  cursor: pointer;
}

html body.redesign main :is(.product-faq, .faq-list, .seo-content, .ny-faq, [aria-labelledby="questions"]) > details > summary::-webkit-details-marker {
  display: none;
}

html body.redesign main :is(.product-faq, .faq-list, .seo-content, .ny-faq, [aria-labelledby="questions"]) > details > summary :is(.faq-plus, .faq-minus) {
  display: none;
}

html body.redesign main :is(.product-faq, .faq-list, .seo-content, .ny-faq, [aria-labelledby="questions"]) > details > summary::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--faq-accent);
  border-bottom: 2px solid var(--faq-accent);
  transform: rotate(45deg);
}

html body.redesign main :is(.product-faq, .faq-list, .seo-content, .ny-faq, [aria-labelledby="questions"]) > details[open] > summary::after {
  top: 24px;
  transform: rotate(225deg);
}

html body.redesign main :is(.product-faq, .faq-list, .seo-content, .ny-faq, [aria-labelledby="questions"]) > details > summary:is(:hover, :focus-visible) {
  color: var(--faq-accent);
}

html body.redesign main :is(.product-faq, .faq-list, .seo-content, .ny-faq, [aria-labelledby="questions"]) > details > summary:focus-visible {
  outline: 2px solid var(--faq-accent);
  outline-offset: 3px;
}

html body.redesign main :is(.product-faq, .faq-list, .seo-content, .ny-faq, [aria-labelledby="questions"]) > details > :is(p, ul, ol) {
  max-width: 68ch;
  margin: 0;
  padding: 0 24px 16px 0;
  color: var(--editorial-muted);
  font: 500 1rem/1.65 var(--editorial-body);
  animation: none;
}

@media (max-width: 43rem) {
  #reviews .home-reviews-track {
    align-items: start;
  }

  #reviews .home-review {
    grid-template-rows: auto auto;
    align-content: start;
  }

  #reviews .home-review-photo {
    align-self: start;
  }

  #reviews .home-review-copy {
    align-self: start;
  }
}
