/* BG Accordion: smooth height via grid-template-rows 0fr -> 1fr (no JS height maths, no jank) */
.bgacc {
    --bgacc-color: var(--e-global-color-text, #1E1E1E);
    --bgacc-body: var(--e-global-color-f3b59c4, #4A5565);
    --bgacc-ease: cubic-bezier(.22, 1, .36, 1);
    --bgacc-dur: .5s;
    width: 100%;
    align-self: flex-start; /* in a flex column: don't stretch to the sibling accordion's height */
}

.bgacc__title {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 33px;
    width: 100%;
    padding: 28px 0 28px 10px;
    cursor: pointer;
    color: var(--bgacc-color);
    font-family: "PP Mori", sans-serif;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 2px;
    font-weight: 400;
    -webkit-tap-highlight-color: transparent;
}

/* Hello Elementor's reset.css styles [type=button]:hover/:focus (pink bg, white text).
   Higher specificity here keeps every state looking like plain text. */
.bgacc .bgacc__title,
.bgacc .bgacc__title:hover,
.bgacc .bgacc__title:focus,
.bgacc .bgacc__title:active {
    background: none;
    background-color: transparent;
    color: var(--bgacc-color);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    text-transform: none;
}

.bgacc .bgacc__title:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* plus / minus drawn in CSS: the vertical bar rotates away */
.bgacc__icon {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}
.bgacc__icon::before,
.bgacc__icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform var(--bgacc-dur) var(--bgacc-ease);
}
.bgacc__icon::after { transform: rotate(90deg); }
.bgacc__item.is-open .bgacc__icon::after { transform: rotate(0deg); }

.bgacc__panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows var(--bgacc-dur) var(--bgacc-ease), visibility 0s linear var(--bgacc-dur);
}
.bgacc__item.is-open .bgacc__panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows var(--bgacc-dur) var(--bgacc-ease), visibility 0s;
}

.bgacc__inner {
    min-height: 0;
    overflow: hidden;
}

.bgacc__content {
    max-width: 475px;
    padding: 0 0 10px;
    color: var(--bgacc-body);
    font-family: "PP Mori", sans-serif;
    font-size: 16px;
    line-height: 32px;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .35s ease, transform var(--bgacc-dur) var(--bgacc-ease);
}
.bgacc__item.is-open .bgacc__content {
    opacity: 1;
    transform: none;
    transition-delay: .08s;
}
.bgacc__content > :first-child { margin-top: 0; }
.bgacc__content > :last-child  { margin-bottom: 0; }

@media (max-width: 767px) {
    .bgacc__title { font-size: 26px; line-height: 32px; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .bgacc__panel, .bgacc__content, .bgacc__icon::before, .bgacc__icon::after { transition: none !important; }
}
