:root {
    --feed-orange: #f47b00;
    --feed-orange-dark: #cf6500;
    --feed-navy: #243544;
    --feed-navy-dark: #152532;
    --feed-ink: #122534;
    --feed-muted: #667582;
    --feed-line: #dce2e6;
    --feed-soft: #f4f6f7;
    --feed-paper: #ffffff;
}

.social-feed-page {
    background: var(--feed-soft);
    color: var(--feed-ink);
}

.social-feed-page .site-header {
    background: rgba(255, 255, 255, .97);
}

.social-main {
    min-height: 100vh;
    padding: 32px 24px 72px;
}

.social-shell {
    display: grid;
    grid-template-columns: minmax(0, 640px) 286px;
    gap: 28px;
    max-width: 954px;
    margin: 0 auto;
    align-items: start;
}

.social-right {
    position: sticky;
    top: 110px;
}

.social-profile {
    display: grid;
    justify-items: start;
    padding: 6px 4px 24px;
    border-bottom: 1px solid var(--feed-line);
}

.social-profile strong {
    margin-top: 12px;
    font-size: 17px;
}

.social-profile span {
    margin-top: 3px;
    color: var(--feed-muted);
    font-size: 13px;
    line-height: 1.5;
}

.feed-avatar,
.mini-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #edf1f3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c5e6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 55%;
    color: transparent;
    font-weight: 800;
    font-size: 0;
}

.feed-avatar {
    width: 44px;
    height: 44px;
    font-size: 0;
}

.feed-avatar.large {
    width: 58px;
    height: 58px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--feed-orange);
    font-size: 0;
}

.mini-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.social-side-nav {
    display: grid;
    gap: 5px;
    padding: 18px 0;
}

.social-side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 13px;
    border-radius: 6px;
    color: #43525e;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}

.social-side-nav a:hover,
.social-side-nav a.active {
    background: #fff;
    color: var(--feed-navy-dark);
}

.social-side-nav a.active {
    box-shadow: inset 3px 0 0 var(--feed-orange);
}

.social-side-nav a span {
    width: 20px;
    color: var(--feed-orange);
    font-size: 20px;
    text-align: center;
}

.social-side-note {
    padding: 18px 4px;
    border-top: 1px solid var(--feed-line);
}

.social-side-note span,
.right-panel-title span {
    color: var(--feed-orange-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}

.social-side-note p {
    margin: 8px 0 0;
    color: var(--feed-muted);
    font-size: 12px;
    line-height: 1.7;
}

.feed-column {
    min-width: 0;
}

.feed-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 68px;
    margin-bottom: 17px;
}

.feed-heading .eyebrow {
    color: var(--feed-orange-dark);
    font-size: 10px;
}

.feed-heading h1 {
    margin: 6px 0 0;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
}

.feed-heading > a,
.feed-section-head > a {
    color: var(--feed-muted);
    font-size: 12px;
    font-weight: 700;
}

.network-stories,
.feed-composer,
.feed-login-cta,
.feed-card,
.feed-spotlight,
.feed-empty {
    border: 1px solid var(--feed-line);
    border-radius: 8px;
    background: var(--feed-paper);
}

.network-stories {
    margin-bottom: 14px;
    padding: 19px 20px 18px;
}

.feed-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.feed-section-head span {
    display: block;
    margin-bottom: 4px;
    color: var(--feed-orange-dark);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.feed-section-head h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: 0;
}

.story-rail,
.spotlight-rail {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
}

.story-rail::-webkit-scrollbar,
.spotlight-rail::-webkit-scrollbar {
    display: none;
}

.story-rail {
    gap: 14px;
}

.story-item {
    display: grid;
    flex: 0 0 72px;
    justify-items: center;
    color: var(--feed-ink);
    text-align: center;
    scroll-snap-align: start;
}

.story-ring {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 2px solid var(--feed-orange);
    border-radius: 50%;
    background: #fff;
}

.story-ring b {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--feed-navy);
    color: #fff;
    font-size: 17px;
}

.story-ring.tone-2 b {
    background: #566b7a;
}

.story-ring.tone-3 b {
    background: var(--feed-orange);
}

.story-ring.tone-4 b {
    background: #344f57;
}

.story-item strong {
    overflow: hidden;
    width: 72px;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-item small {
    margin-top: 2px;
    color: var(--feed-muted);
    font-size: 9px;
}

.feed-composer {
    margin-bottom: 14px;
    padding: 20px;
}

.composer-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.composer-top h2 {
    margin: 0 0 3px;
    font-size: 16px;
}

.composer-top span {
    color: var(--feed-muted);
    font-size: 12px;
}

.feed-composer textarea {
    display: block;
    width: 100%;
    min-height: 92px;
    padding: 15px;
    resize: vertical;
    border: 1px solid var(--feed-line);
    border-radius: 6px;
    outline: none;
    color: var(--feed-ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.65;
}

.feed-composer textarea:focus {
    border-color: var(--feed-orange);
    box-shadow: 0 0 0 3px rgba(244, 123, 0, .11);
}

.composer-preview {
    position: relative;
    overflow: hidden;
    margin-top: 12px;
    border-radius: 6px;
    background: var(--feed-soft);
}

.composer-preview[hidden] {
    display: none;
}

.composer-preview img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.composer-preview button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 33, 44, .86);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

.composer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
}

.image-picker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 5px;
    color: var(--feed-navy);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.image-picker:hover {
    background: var(--feed-soft);
}

.image-picker svg {
    width: 18px;
    height: 18px;
    color: var(--feed-orange);
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.image-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.composer-file-name {
    overflow: hidden;
    max-width: 150px;
    color: var(--feed-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.composer-count {
    margin-left: auto;
    color: #8a969f;
    font-size: 10px;
}

.composer-count b {
    font-weight: 500;
}

.feed-primary-button {
    min-width: 88px;
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 5px;
    background: var(--feed-orange);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.feed-primary-button:hover {
    background: var(--feed-orange-dark);
}

.feed-login-cta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
    padding: 18px 20px;
}

.feed-login-cta div:nth-child(2) {
    display: grid;
    gap: 3px;
}

.feed-login-cta strong {
    font-size: 14px;
}

.feed-login-cta span {
    color: var(--feed-muted);
    font-size: 11px;
}

.feed-login-cta a {
    padding: 10px 17px;
    border-radius: 5px;
    background: var(--feed-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.feed-list {
    display: grid;
    min-width: 0;
    gap: 14px;
}

.feed-list > * {
    min-width: 0;
}

.feed-card {
    overflow: hidden;
    scroll-margin-top: 110px;
}

.feed-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 19px 13px;
}

.feed-author {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.feed-author > div:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.feed-author strong {
    font-size: 14px;
}

.feed-author span {
    color: var(--feed-muted);
    font-size: 11px;
}

.feed-more {
    padding: 8px;
    border: 0;
    background: transparent;
    color: #8a969f;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 1px;
}

.feed-card-copy {
    padding: 4px 19px 16px;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.feed-card-media {
    overflow: hidden;
    width: 100%;
    max-height: 700px;
    background: #e8ecee;
}

.feed-card-media img {
    display: block;
    width: 100%;
    max-height: 700px;
    object-fit: cover;
}

.feed-counts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    padding: 0 19px;
    color: var(--feed-muted);
    font-size: 11px;
}

.feed-counts b {
    color: var(--feed-ink);
}

.feed-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--feed-line);
    border-bottom: 1px solid var(--feed-line);
}

.feed-actions form {
    display: contents;
}

.feed-actions button,
.feed-actions a {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: #5d6b76;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.feed-actions button:hover,
.feed-actions a:hover {
    background: #f7f8f9;
    color: var(--feed-ink);
}

.feed-actions button span,
.feed-actions a span {
    font-size: 19px;
    line-height: 1;
}

.feed-actions svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.feed-actions button.is-liked {
    color: var(--feed-orange-dark);
}

.feed-actions button.is-liked span {
    color: var(--feed-orange);
}

.feed-comments {
    display: grid;
    gap: 10px;
    padding: 14px 19px 7px;
}

.comments-more {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--feed-muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.feed-comment {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feed-comment p {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 7px;
    min-width: 0;
    margin: 0;
    padding: 8px 11px;
    border-radius: 6px;
    background: var(--feed-soft);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.feed-comment p strong {
    color: var(--feed-ink);
    white-space: nowrap;
}

.feed-comment p strong small {
    color: var(--feed-muted);
    font-size: 9px;
}

.feed-comment p em {
    color: var(--feed-ink);
    font-style: normal;
}

.feed-comment p time {
    flex-basis: 100%;
    color: #88949d;
    font-size: 9px;
}

.feed-comment-form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 9px 19px 16px;
}

.feed-comment-form input {
    min-width: 0;
    height: 39px;
    padding: 0 13px;
    border: 1px solid var(--feed-line);
    border-radius: 20px;
    outline: 0;
    font: inherit;
    font-size: 12px;
}

.feed-comment-form input:focus {
    border-color: var(--feed-orange);
}

.feed-comment-form button {
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: var(--feed-orange-dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.feed-spotlight {
    overflow: hidden;
    padding: 20px;
    background: var(--feed-navy);
    border-color: var(--feed-navy);
    color: #fff;
}

.feed-spotlight .feed-section-head span {
    color: #ff9f3c;
}

.slider-controls {
    display: flex;
    gap: 6px;
}

.slider-controls button {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.slider-controls button:hover {
    background: var(--feed-orange);
    border-color: var(--feed-orange);
}

.spotlight-rail {
    max-width: 100%;
    gap: 12px;
    padding-bottom: 2px;
}

.spotlight-card {
    display: flex;
    flex: 0 0 228px;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    color: var(--feed-ink);
    scroll-snap-align: start;
}

.spotlight-image,
.network-spotlight-mark {
    display: flex;
    width: 100%;
    height: 126px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #e5eaed;
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.spotlight-card:hover .spotlight-image img {
    transform: scale(1.03);
}

.spotlight-image.is-contain img {
    padding: 22px;
    object-fit: contain;
}

.spotlight-image b {
    font-size: 38px;
}

.network-spotlight-mark {
    background: var(--feed-orange);
    color: #fff;
    font-size: 42px;
    font-weight: 900;
}

.spotlight-card > span {
    margin: 13px 14px 4px;
    color: var(--feed-orange-dark);
    font-size: 9px;
    font-weight: 900;
}

.spotlight-card > strong {
    margin: 0 14px;
    font-size: 16px;
}

.spotlight-card > p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 7px 14px 15px;
    color: var(--feed-muted);
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.feed-empty {
    padding: 50px 20px;
    text-align: center;
}

.feed-empty strong {
    display: block;
    margin-bottom: 7px;
}

.feed-empty p {
    margin: 0;
    color: var(--feed-muted);
    font-size: 13px;
}

.right-panel {
    margin-bottom: 15px;
    padding: 19px;
    border: 1px solid var(--feed-line);
    border-radius: 8px;
    background: #fff;
}

.right-panel-title {
    margin-bottom: 15px;
}

.right-panel-title h2 {
    margin: 5px 0 0;
    font-size: 16px;
}

.quick-social {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    margin-top: 8px;
    padding: 9px 11px;
    border: 1px solid var(--feed-line);
    border-radius: 6px;
    color: var(--feed-ink);
}

.quick-social > b {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--feed-orange);
    color: #fff;
}

.quick-social > span {
    display: grid;
    gap: 2px;
}

.quick-social strong {
    font-size: 12px;
}

.quick-social small {
    color: var(--feed-muted);
    font-size: 9px;
}

.quick-social i {
    color: var(--feed-orange);
    font-style: normal;
}

.quick-social:hover {
    border-color: var(--feed-orange);
}

.right-panel.compact {
    padding-bottom: 9px;
}

.discover-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    border-top: 1px solid var(--feed-line);
    color: var(--feed-muted);
    font-size: 11px;
}

.discover-link b {
    color: var(--feed-navy);
    font-size: 11px;
}

.social-feed-page .association-band,
.social-feed-page .footer-grid {
    display: none;
}

.social-feed-page .site-footer {
    padding: 0;
}

.social-feed-page .footer-bottom {
    min-height: 96px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    text-align: center;
}

@media (max-width: 980px) {
    .social-shell {
        grid-template-columns: minmax(0, 640px);
        max-width: 640px;
    }

    .social-right {
        display: none;
    }
}

@media (max-width: 780px) {
    .social-feed-page .site-header {
        position: sticky;
        top: 0;
    }

    .social-feed-page .header-inner {
        min-height: 72px;
    }

    .social-main {
        padding: 0 0 48px;
    }

    .social-shell {
        display: block;
        max-width: 640px;
    }

    .feed-heading {
        display: none;
    }

    .network-stories,
    .feed-composer,
    .feed-login-cta,
    .feed-card,
    .feed-spotlight,
    .feed-empty {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .network-stories {
        margin-bottom: 9px;
        padding: 16px;
    }

    .feed-composer,
    .feed-login-cta {
        margin-bottom: 9px;
    }

    .feed-list {
        gap: 9px;
    }

    .feed-card {
        scroll-margin-top: 82px;
    }
}

@media (max-width: 520px) {
    .network-stories .feed-section-head {
        margin-bottom: 12px;
    }

    .story-rail {
        margin-right: -16px;
        padding-right: 16px;
    }

    .feed-composer {
        padding: 16px;
    }

    .feed-composer textarea {
        min-height: 84px;
    }

    .composer-actions {
        flex-wrap: wrap;
    }

    .composer-file-name {
        max-width: 110px;
    }

    .composer-count {
        order: 3;
        margin-left: 0;
    }

    .feed-primary-button {
        margin-left: auto;
    }

    .feed-login-cta {
        grid-template-columns: auto 1fr;
        padding: 16px;
    }

    .feed-login-cta a {
        grid-column: 1 / -1;
        text-align: center;
    }

    .feed-card-header {
        padding: 15px 16px 12px;
    }

    .feed-card-copy {
        padding: 3px 16px 14px;
    }

    .feed-counts {
        padding: 0 16px;
    }

    .feed-comments {
        padding: 13px 16px 7px;
    }

    .feed-comment-form {
        padding: 8px 16px 15px;
    }

    .feed-actions button,
    .feed-actions a {
        font-size: 11px;
    }

    .feed-spotlight {
        padding: 18px 16px;
    }

    .spotlight-rail {
        margin-right: -16px;
        padding-right: 16px;
    }

    .spotlight-card {
        flex-basis: 74vw;
        max-width: 260px;
    }
}
