/* Reusable warm bone grey; applied only to FAQ answer descriptions. */
:root {--brand-gray:#B8B1A7}
/* One integrated FAQ section: complete photograph left, readable questions right. */
#faq.dg-faq-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center;
  gap:clamp(24px,3vw,56px);
  padding:clamp(56px,6vw,96px) var(--dg-gutter,19px);
  background:#161616;
  color:var(--dg-white,#eee9e1);
  overflow:hidden;
  --color-ink:#eee9e1;
  --color-line-light:#ffffff26;
}
#faq.dg-faq-layout > .dg-faq-background {
  position:relative;
  inset:auto;
  z-index:0;
  width:100%;
  min-width:0;
  margin:0;
  background:#161616;
  pointer-events:none;
  align-self:center;
}
#faq.dg-faq-layout .dg-faq-background img {
  position:relative;
  inset:auto;
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  transform:none;
  filter:none;
  object-fit:contain;
  mask-image:none;
  -webkit-mask-image:none;
}
/* The fade stays at the outer frame; every face and the full square remain visible. */
#faq.dg-faq-layout .dg-faq-background:after {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(90deg,#161616 0%,transparent 2%,transparent 94%,#161616 100%),linear-gradient(180deg,#161616 0%,transparent 3%,transparent 97%,#161616 100%);
}
#faq.dg-faq-layout > .mx-auto {
  position:relative;
  z-index:1;
  width:100%;
  max-width:none;
  min-width:0;
  margin:0;
  padding:0;
  text-align:left;
}
#faq.dg-faq-layout > .pointer-events-none {display:none}
#faq.dg-faq-layout h2 {color:var(--dg-gold);margin-left:0;margin-right:0;max-width:100%;overflow-wrap:break-word}
#faq.dg-faq-layout p,#faq.dg-faq-layout button {color:var(--dg-white,#eee9e1)}
#faq.dg-faq-layout [data-faq-panel] p {color:var(--brand-gray);opacity:1}
#faq.dg-faq-layout .text-center {text-align:left}
#faq.dg-faq-layout .justify-center {justify-content:flex-start}
#faq.dg-faq-layout .will-reveal > .mx-auto {max-width:none;margin:0}
@media(max-width:760px) {
  #faq.dg-faq-layout {grid-template-columns:minmax(0,1fr);gap:28px;padding-top:40px;padding-bottom:64px}
  #faq.dg-faq-layout .dg-faq-background:after {background:linear-gradient(90deg,#161616 0%,transparent 2%,transparent 98%,#161616 100%),linear-gradient(180deg,#161616 0%,transparent 3%,transparent 94%,#161616 100%)}
  #faq.dg-faq-layout button {gap:20px}
}

/* Brand White 2: typography variant, not a separate colour. */
.brand-white-2 {
  color:var(--dg-white,#EEE9E1);
  font-size:calc(1.05rem + 2px);
  font-weight:700;
}

/* Compact heading-to-questions spacing at desktop, tablet and phone widths. */
.dg-studio #faq .dg-faq-questions {margin-top:24px}
@media(max-width:767px){.dg-studio #faq .dg-faq-questions {margin-top:16px}}

/* One quiet clapper gesture on entering the FAQ, never a repeating distraction. */
.dg-faq-clapper{overflow:visible;pointer-events:none}
.dg-faq-clapper-arm{transform-origin:6px 21px}
.dg-faq-clapper.is-visible .dg-faq-clapper-arm{animation:dg-faq-clap 1.1s ease-in-out 1 both}
@keyframes dg-faq-clap{0%,100%{transform:rotate(0)}35%{transform:rotate(-12deg)}65%{transform:rotate(0)}78%{transform:rotate(-2deg)}}
@media(prefers-reduced-motion:reduce){.dg-faq-clapper.is-visible .dg-faq-clapper-arm{animation:none!important}}

/* Preserve the empty photograph slot until the owner supplies a replacement. */
#faq.dg-faq-layout .dg-faq-background:empty{aspect-ratio:1/1}

/* Owner-selected composite, kept byte-for-byte with its baked-in disclosure.
   Contain the full portrait and caption; CSS only blends its outermost edge. */
#faq.dg-faq-layout > .dg-faq-selected-composite {
  max-width: 420px;
  justify-self: center;
}
#faq.dg-faq-layout > .dg-faq-selected-composite img {
  aspect-ratio: 809 / 1536;
  object-fit: contain;
}
@media (max-width: 760px) {
  #faq.dg-faq-layout > .dg-faq-selected-composite { max-width: 360px; }
}
