.acch-links {
    /* Smooth ease-in-out used for opening and closing */
    --acch-ease: cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

/* Each row */
.acch-links .acch-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    /* Duration is overridden inline by JS via --acch-speed */
    transition: min-height var(--acch-speed, 400ms) var(--acch-ease);
    -webkit-tap-highlight-color: transparent;
}

/* Background layer (image + overlay), fades in when active */
.acch-links .acch-item .acch-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity var(--acch-speed, 400ms) var(--acch-ease);
    pointer-events: none;
    z-index: 0;
}

.acch-links .acch-item .acch-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.25);
}

/* Content sits above the background */
.acch-links .acch-item .acch-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acch-links .acch-item .acch-title {
    display: inline-block;
    line-height: 1.2;
    transition: color var(--acch-speed, 400ms) var(--acch-ease), text-shadow var(--acch-speed, 400ms) var(--acch-ease);
}

/* Active state */
.acch-links .acch-item.is-active {
    cursor: pointer;
}

.acch-links .acch-item.is-active .acch-bg {
    opacity: 1;
}
