.rsm-community-updates {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, .85fr);
    gap: clamp(24px, 4vw, 52px);
    align-items: start;
}

.rsm-community-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.rsm-community-heading h2,
.rsm-social-panel h2 {
    color: #164734;
    margin-bottom: 8px;
}

.rsm-community-heading p:not(.rsm-eyebrow),
.rsm-social-panel > p:not(.rsm-eyebrow):not(.rsm-social-privacy) {
    margin-bottom: 0;
}

.rsm-weekly-archive-link {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.rsm-weekly-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rsm-weekly-card {
    min-width: 0;
    border: 1px solid #d7ddd9;
    border-top: 4px solid #b59a57;
    border-radius: 8px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(18, 56, 43, .08);
}

.rsm-weekly-card-latest {
    border-top-color: #164734;
}

.rsm-weekly-card .rsm-weekly-label {
    color: #806b34;
    font-family: "Josefin Sans", sans-serif;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.rsm-weekly-card time {
    color: #53635b;
    display: block;
    font-size: .88rem;
    margin-bottom: 6px;
}

.rsm-weekly-card h3 {
    color: #164734;
    font-size: 1.25rem;
    margin: 0 0 14px;
}

.rsm-weekly-card a {
    color: #164734;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #b59a57;
    text-underline-offset: 4px;
}

.rsm-social-panel {
    color: #f7faf8;
    background: #164734;
    border-radius: 10px;
    padding: clamp(24px, 3vw, 34px);
    box-shadow: 0 10px 30px rgba(18, 56, 43, .16);
}

.rsm-social-panel h2,
.rsm-social-panel .rsm-eyebrow,
.rsm-social-panel > p {
    color: #fff !important;
}

.rsm-social-panel .rsm-eyebrow {
    color: #e3cf97 !important;
}

.rsm-social-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}

.rsm-social-heading p {
    color: #fff;
    margin: 0;
}

.rsm-facebook-view-all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #e3cf97 !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.rsm-social-links {
    display: grid;
    gap: 12px;
    margin: 24px 0 18px;
}

.rsm-social-link {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    min-height: 64px;
    padding: 10px 14px 10px 8px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 7px;
    color: #fff !important;
    text-decoration: none;
}

.rsm-social-link > span {
    grid-row: 1 / 3;
    align-self: center;
    justify-self: center;
    font-family: Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.rsm-social-link strong {
    align-self: end;
    line-height: 1.2;
}

.rsm-social-link small {
    color: #e7eee9;
    align-self: start;
}

.rsm-social-link:hover,
.rsm-social-link:focus-visible {
    background: #fff;
    color: #164734 !important;
}

.rsm-social-link:hover small,
.rsm-social-link:focus-visible small {
    color: #42584e;
}

.rsm-facebook-view-all:focus-visible,
.rsm-social-link:focus-visible,
.rsm-weekly-card a:focus-visible,
.rsm-weekly-archive-link:focus-visible {
    outline: 3px solid #f2cc66;
    outline-offset: 3px;
}

.rsm-social-privacy {
    font-size: .78rem;
    line-height: 1.45;
    opacity: .88;
    margin: 10px 0 0;
}

.rsm-facebook-feed {
    margin-top: 18px;
    min-height: 520px;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
}

.rsm-facebook-placeholder {
    min-height: 520px;
    margin: 0;
    padding: 28px;
    display: grid;
    place-items: center;
    color: #42584e;
    text-align: center;
}

.rsm-facebook-feed iframe {
    display: block;
    width: 100%;
    max-width: 500px;
    min-height: 520px;
    border: 0;
}

.rsm-weekly-fallback {
    border: 1px solid #d7ddd9;
    border-radius: 8px;
    padding: 24px;
    background: #fff;
}

@media (max-width: 980px) {
    .rsm-community-updates {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .rsm-community-heading {
        display: block;
    }

    .rsm-weekly-archive-link {
        margin-top: 12px;
    }

    .rsm-weekly-grid {
        grid-template-columns: 1fr;
    }

    .rsm-social-heading {
        display: block;
    }

    .rsm-facebook-view-all {
        margin-top: 8px;
    }
}

@media (max-width: 520px) {
    .rsm-social-links {
        grid-template-columns: 1fr;
    }

    .rsm-weekly-card,
    .rsm-social-panel {
        padding: 20px;
    }
}
