/* Feed layout, scoped so profile and individual post pages keep their layout. */
.sh-community-page { background: #f5f9fc; color: var(--sh-ink); }
.sh-community-page .sh-feed-shell,
.sh-community-page .feed.wrap-feed > .sh-feed-shell { width: 100%; max-width: var(--sh-content-width); padding-inline: 12px; }
.sh-community-page .sh-feed-hero { padding: 28px 0 0; background: transparent; }
.sh-community-page .sh-feed-hero__inner {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 30px 36px;
    border: 1px solid #e0edf3;
    border-radius: 24px;
    background: linear-gradient(110deg, #e3f7ff, #f5fcff 55%, #fff0f5);
}
.sh-community-page .sh-feed-hero__eyebrow { font-size: 11px; letter-spacing: .12em; }
.sh-community-page .sh-feed-hero h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 6px 0 10px; font-size: clamp(30px, 3vw, 44px); line-height: 1.3; letter-spacing: -.02em; }
.sh-community-page .sh-feed-hero h1 > span { color: #ed9ab2; font-size: 32px; }
.sh-community-page .sh-feed-hero p { font-size: 16px; line-height: 1.7; }
.sh-community-page .sh-feed-hero__actions { display: grid; grid-template-columns: 1fr; min-width: 0; gap: 10px; text-align: center; }
.sh-community-page .sh-feed-hero__actions a { justify-content: center; gap: 9px; padding: 13px 22px; border-color: #5bcefa; background: #5bcefa; color: #12384d; font-size: 15px; }
.sh-community-page .sh-feed-hero__actions > span { color: #658091; font-size: 12px; }

.sh-community-page .feed.wrap-feed { padding: 26px 0 64px; background: transparent; }
.sh-feed-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px; align-items: start; gap: 24px; }
.sh-feed-layout > * { min-width: 0; }
.sh-feed-sidebar,
.sh-feed-aside { position: sticky; top: 106px; }
.sh-community-page .feed-profile-sidebar { position: static; }
.sh-community-page .feed-card,
.sh-community-page .feed-share,
.sh-community-page .feed-posts > .feed-post { border: 1px solid #e0eaf0; border-radius: 20px; background: #fff; box-shadow: 0 4px 18px rgba(18, 56, 77, .035); }
.sh-community-page .feed-card { margin-bottom: 18px; padding: 22px; }
.sh-community-page .feed-card h2 { margin: 0 0 10px; color: var(--sh-ink); font-size: 19px; line-height: 1.45; }
.sh-community-page .feed-card p { margin: 0 0 18px; color: var(--sh-muted); font-size: 14px; line-height: 1.75; }
.sh-community-page .btn { border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.sh-community-page .btn-primary { border-color: #5bcefa; background: #5bcefa; color: #12384d; }
.sh-community-page .btn-primary:hover { border-color: #38bce9; background: #38bce9; }
.sh-community-page a:focus-visible,
.sh-community-page button:focus-visible { outline: 3px solid #128dbb; outline-offset: 4px; }

.sh-feed-welcome { text-align: center; }
.sh-feed-welcome__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 18px; background: linear-gradient(135deg, #dff6ff, #ffe6ed); color: #b64269; font-size: 25px; }
.sh-feed-welcome .btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 14px; }
.sh-feed-login { display: block; margin-top: 14px; color: #547080; font-size: 12px; }
.sh-community-page .sh-feed-nav { display: grid; gap: 5px; padding: 10px; }
.sh-feed-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; color: #5e7785; font-size: 14px; }
.sh-feed-nav i { font-size: 19px; }
.sh-feed-nav a:hover,
.sh-feed-nav a.is-active { color: #087eae; background: #eaf8ff; }
.sh-feed-nav a.is-active { font-weight: 600; }
.sh-feed-sidebar__note { padding-inline: 12px; color: #6d8795; font-size: 12px; text-align: center; }

#feed-composer { scroll-margin-top: 110px; }
.sh-community-page .feed-share { margin: 0; padding: 18px; }
.sh-community-page .feed-share .share-feed-container { flex: 1; min-width: 0; font-size: 15px; }
.sh-feed-join { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid #dbe9ef; border-radius: 20px; background: #fff; }
.sh-feed-join > span { display: grid; flex: 0 0 42px; place-items: center; height: 42px; border-radius: 50%; background: #e9f8ff; color: #128dbb; font-size: 21px; }
.sh-feed-join > div { flex: 1; min-width: 0; }
.sh-feed-join strong { display: block; margin-bottom: 4px; font-size: 15px; }
.sh-feed-join p { margin: 0; color: var(--sh-muted); font-size: 12px; line-height: 1.7; }
.sh-feed-join .btn { flex-shrink: 0; padding: 10px 14px; }
.sh-feed-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 2px 16px; }
.sh-feed-section-heading h2 { min-width: 0; margin: 0; color: var(--sh-ink); font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.sh-feed-section-heading > span,
.sh-feed-section-heading > a { flex-shrink: 0; color: #658091; font-size: 12px; }
.sh-feed-section-heading > a { color: #087eae; }
.sh-community-page .feed-posts > .feed-post { margin: 0 0 20px; padding: 22px; }
.sh-community-page .feed-posts .post-person-name { font-size: 16px; line-height: 1.5; }
.sh-community-page .post-person-details { min-width: 0; }
.sh-community-page .post-person-name,
.sh-community-page .feed-description { overflow-wrap: anywhere; }
.sh-community-page .feed-posts .post-date { margin-top: 3px; color: #718894; font-size: 12px; }
.sh-community-page .feed-posts .post-content { font-size: 15px; line-height: 1.8; }
.sh-community-page .post-content iframe { max-width: 100%; }
.sh-community-page .feed-posts .post-content .post-content-images a:only-child img { height: auto; max-height: 620px; object-fit: contain; background: #f3f7fa; }
.sh-community-page .feed-posts .post-summary { padding-top: 14px; margin-top: 18px; border-color: #edf2f5; }
.sh-community-page .feed-posts .post-summary .post-actions { gap: 6px; flex-wrap: wrap; }
.sh-community-page .feed-posts .post-summary .post-action { border-radius: 10px; font-size: 13px; }
.sh-community-page .sh-feed-empty { padding: 36px 24px; text-align: center; }
.sh-feed-empty > i { display: block; margin-bottom: 14px; color: #128dbb; font-size: 30px; }
.sh-feed-empty h3 { margin: 0 0 8px; font-size: 20px; }
.sh-community-page .sh-feed-empty p { margin: 0; }
.sh-feed-stories { margin-bottom: 18px; }
.sh-community-page .feed-stories { margin: 0; padding: 0; }

.sh-feed-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sh-feed-card-heading > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e9f8ff; color: #128dbb; font-size: 21px; }
.sh-community-page .sh-feed-card-heading h2 { margin: 0; font-size: 17px; }
.sh-community-page .sh-feed-trending .feed-trend { display: block; padding: 12px 0; border-bottom: 1px solid #edf2f5; border-radius: 0; }
.sh-community-page .sh-feed-trending .feed-trend:last-child { border-bottom: 0; padding-bottom: 0; }
.sh-community-page .sh-feed-trending .feed-trend-title { margin: 0 0 2px; color: #246078; font-size: 14px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.sh-community-page .sh-feed-trending .feed-trend-count { margin: 0; color: #718894; font-size: 12px; }
.sh-community-page .sh-feed-kindness { border-color: #f2dfe6; background: #fff5f8; }
.sh-feed-kindness > i { display: block; margin-bottom: 12px; color: #be6280; font-size: 24px; }
.sh-community-page .sh-feed-kindness h2 { font-size: 17px; }
.sh-feed-kindness a { color: #a64b6b; font-size: 12px; font-weight: 600; }
.sh-community-page .feed-head h3 { font-size: 17px; line-height: 1.5; }
.sh-community-page .feed-sidebar-account { min-width: 0; gap: 8px; }
.sh-community-page .feed-sidebar-account .btn { padding: 6px 8px; font-size: 11px; }

@media (max-width: 1199.98px) {
    .sh-feed-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
    .sh-feed-aside { display: none; }
}
@media (max-width: 767.98px) {
    .sh-community-page .sh-feed-shell,
    .sh-community-page .feed.wrap-feed > .sh-feed-shell { padding-inline: 18px; }
    .sh-community-page .sh-feed-hero { padding-top: 18px; }
    .sh-community-page .sh-feed-hero__inner { grid-template-columns: 1fr; padding: 24px; gap: 20px; border-radius: 20px; }
    .sh-community-page .sh-feed-hero h1 { gap: 10px; font-size: 32px; }
    .sh-community-page .sh-feed-hero h1 > span { font-size: 25px; }
    .sh-community-page .sh-feed-hero p { font-size: 14px; }
    .sh-community-page .sh-feed-hero__actions { justify-items: start; }
    .sh-community-page .sh-feed-hero__actions a { padding: 11px 16px; font-size: 14px; }
    .sh-community-page .sh-feed-hero__actions > span { display: none; }
    .sh-community-page .feed.wrap-feed { padding-top: 18px; }
    .sh-feed-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .sh-feed-sidebar { position: static; }
    .sh-feed-welcome,
    .sh-feed-profile,
    .sh-feed-sidebar__note { display: none; }
    .sh-community-page .sh-feed-nav { display: flex; gap: 6px; margin: 0; padding: 6px; overflow-x: auto; scrollbar-width: thin; }
    .sh-feed-nav a { flex-shrink: 0; gap: 8px; padding: 10px 12px; font-size: 13px; }
    .sh-feed-nav i { font-size: 16px; }
    .sh-feed-join { flex-wrap: wrap; gap: 12px; padding: 18px; }
    .sh-feed-join > span { display: none; }
    .sh-feed-join > div { flex-basis: 100%; }
    .sh-feed-join strong { font-size: 15px; }
    .sh-feed-section-heading { margin-top: 22px; }
    .sh-feed-section-heading h2 { font-size: 17px; }
    .sh-feed-section-heading > span { font-size: 11px; }
    .sh-community-page .feed-posts > .feed-post { padding: 18px 16px; }
    .sh-community-page .feed-share { padding: 14px; }
    .sh-community-page .feed-share .share-feed-container { padding-inline: 12px; font-size: 14px; }
}
