.diva-connect {
    --diva-connect-ink: #14382c;
    --diva-connect-border: #c8d1bd;
    display: grid;
    gap: 1.25rem;
    color: var(--diva-connect-ink);
}

.diva-connect .diva-connect-newsletter,
.diva-connect .diva-connect-facebook {
    box-sizing: border-box;
    margin: 0;
    padding: clamp(1.15rem, 3vw, 2rem);
    border: 1px solid var(--diva-connect-border);
    border-radius: 1rem;
}

.diva-connect-newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 2rem;
    background: #e8efde;
}

.diva-connect h2 {
    margin: 0 0 .45rem;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.diva-connect-newsletter p {
    max-width: 62ch;
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}

.diva-connect-facebook { min-width: 0; background: #f8f7ef; }
.diva-connect-facebook h2 { text-align: center; margin-bottom: 1rem; }

.diva-connect-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(11rem, 1fr);
    gap: .75rem;
    min-width: 0;
    margin: 0;
    padding: .25rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: .25rem;
    list-style: none;
}

.diva-connect-list .diva-connect-card { min-width: 0; margin: 0; scroll-snap-align: start; }

.diva-connect-arrow {
    position: relative;
    width: 14px;
    height: 14px;
}

.diva-connect-arrow::before,
.diva-connect-arrow::after {
    position: absolute;
    content: "";
}

.diva-connect-arrow::before {
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.diva-connect-arrow::after {
    bottom: 2px;
    left: 2px;
    width: 13px;
    height: 1.5px;
    background: currentColor;
    transform: rotate(-45deg);
    transform-origin: left center;
}

.diva-connect-card a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    box-sizing: border-box;
    min-height: 56px;
    height: 100%;
    padding: .55rem .75rem;
    border: 1px solid var(--diva-connect-border);
    border-radius: .75rem;
    background: #fffdf7;
    color: var(--diva-connect-ink);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.diva-connect-card a:hover {
    background: #edf2e4;
    border-color: #78927e;
}

.diva-connect-card a:hover .diva-connect-card-title {
    text-decoration: underline;
    text-underline-offset: .18em;
}

.diva-connect a:focus-visible {
    outline: 2px solid var(--diva-connect-ink);
    outline-offset: 3px;
}

.diva-connect-card small {
    display: block;
    margin-top: .16rem;
    color: #40584e;
    font-size: .8rem;
    font-weight: 400;
}

.diva-connect-icon {
    display: inline-grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: #0866ff;
    color: #fff;
    font: 700 1.05rem/1 system-ui, sans-serif;
}

@media (max-width: 680px) {
    .diva-connect-newsletter { align-items: flex-start; flex-direction: column; }
    .diva-connect-facebook h2 { text-align: left; }
}

.diva-connect-newsletter .diva-connect-intro {
    flex: 1 1 29rem;
    min-width: 0;
}

.diva-connect-newsletter .diva-connect-form {
    flex: 1 1 24rem;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.diva-connect-newsletter .diva-newsletter-form {
    display: grid;
    gap: .6rem;
    width: 100%;
    max-width: none;
    margin: 0;
}

.diva-connect-newsletter .diva-newsletter-form > label {
    margin: 0;
}

.diva-connect-newsletter .diva-newsletter-form input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.diva-connect-newsletter .diva-newsletter-form > button {
    justify-self: start;
    min-height: 44px;
}

.diva-connect-newsletter .diva-newsletter-form > small {
    line-height: 1.4;
}

.diva-connect-newsletter .diva-connect-form > [role="status"] {
    margin-bottom: .75rem;
}

@media (max-width: 800px) {
    .diva-connect-newsletter {
        align-items: flex-start;
        flex-direction: column;
    }

    .diva-connect-newsletter .diva-connect-intro,
    .diva-connect-newsletter .diva-connect-form {
        flex: 0 1 auto;
    }
}
