/* AVENIA V3.5 — targeted rectifications on V3.4; original masters remain untouched. */
:root { --avenia-shared-photo-rail:33.333333333333%; --avenia-faq-beige:#f8f1e7; }
/* 1. EXACT shared geometry. Use the same border-box, grid track and boundary for About and FAQ. */
@media (min-width:731px) {
  #about.about-v2, #faq.faq-next-v2 {
    box-sizing:border-box;
    display:grid;
    grid-template-columns:minmax(0,var(--avenia-shared-photo-rail)) minmax(0,1fr) !important;
    column-gap:0 !important;
    width:100%; max-width:100%; margin:0;
  }
  #about .about-pic, #faq .faq-photo {box-sizing:border-box;width:100% !important;min-width:0;margin:0 !important;padding:0!important;border:0!important;transform:none!important;}
  #about .about-pic img{display:block;width:100%!important;height:100%;object-fit:cover;}
}
/* 2. Image is independent of FAQ details height: fixed-width-derived, non-reflowing bitmap.
   Smooth cream fade avoids the previous huge artificial black extension. */
#faq .faq-photo {
  position:relative;
  isolation:isolate;
  background:var(--avenia-faq-beige) !important;
  background-image:none!important;
  align-self:stretch;
  overflow:hidden;
}
#faq .faq-photo::before {
  content:"";
  position:absolute;
  top:0; left:0; width:100%;
  height:calc(100vw * .45404);
  background-image:url('assets/faq-office.webp');
  background-position:center top;
  background-size:100% auto;
  background-repeat:no-repeat;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 72%,rgba(0,0,0,.92) 82%, transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 72%,rgba(0,0,0,.92) 82%, transparent 100%);
  pointer-events:none;
}
#faq .faq-photo::after{content:none!important;display:none!important}
/* 3. Accordion and CTA get a natural document flow; no forced empty scroll region. */
#faq.faq-next-v2, #faq .faq-content, #faq .faq-grid, #faq .next-block, #faq .next-benefits {
  min-height:0!important; height:auto!important; max-height:none!important;
}
#faq .faq-content {padding-bottom:38px!important}
#faq .faq-next-divider{margin-top:30px!important;margin-bottom:24px!important}
#faq .next-benefits{margin-top:22px!important;padding-top:16px!important;padding-bottom:0!important}
#faq .faq-item{overflow-anchor:none;transition:none}
#faq details[open] summary{margin-bottom:0}
/* 4. footer uses the same verified first-column geometry without viewport-dependent guesswork */
@media(min-width:1081px){
 .footer-v2 .footer-cols{grid-template-columns:minmax(0,32%) minmax(0,.84fr) minmax(0,1.1fr) minmax(0,1.06fr)!important;gap:17px!important}
 .footer-v2 .footer-cols>.footer-brand{display:flex!important; flex-direction:column;align-items:center!important;text-align:center!important;min-width:0;padding:0!important}
 .footer-v2 .footer-brand .footer-wordmark {margin:0 auto!important;max-width:100%;width:100%;}
 .footer-v2 .footer-brand p{margin:16px auto 0!important;text-align:center!important;max-width:295px!important}
 .footer-v2 .footer-cols >:nth-child(2){border-left:1px solid #bd9c7099!important;padding-left:20px!important}
}
@media(min-width:731px) and (max-width:1080px){
 .footer-v2 .footer-cols{grid-template-columns:1fr 1fr!important}
 .footer-v2 .footer-cols>*{border:0!important;padding-left:0!important}
}
@media(max-width:730px){
 #faq .faq-photo{height:258px!important;min-height:258px!important;align-self:auto!important;background:#f8f1e7!important}
 #faq .faq-photo::before{height:258px;background-size:cover;background-position:center 38%;mask-image:none;-webkit-mask-image:none}
 .footer-v2 .footer-cols{grid-template-columns:1fr 1fr!important}
}
@media(max-width:440px){.footer-v2 .footer-cols{grid-template-columns:1fr!important}}
