.member-publications-section{--mp-navy:#173b5f;--mp-blue:#245f8f;--mp-gold:#bd654b;--mp-border:#dce4eb;--mp-muted:#667789;--mp-paper:#fff;--mp-soft:#f7f8fa;background:#f7f8fa;color:#203246}
.member-publications-section .section-intro{max-width:680px;color:#62758a}
.member-publications-section #memberFeedLoginAction{border:1px solid #d5e0e8;border-radius:999px;background:#fff;color:var(--mp-navy);padding:.65rem 1.15rem;font-weight:700;box-shadow:0 4px 14px rgba(23,59,95,.08)}
.member-publications-section #memberFeedLoginAction:hover{background:var(--mp-navy);border-color:var(--mp-navy);color:#fff}
.member-publications-section #memberCommunityFeed{display:flex;flex-direction:column;gap:18px;width:100%;max-width:1120px;margin:0 auto}
.member-publications-section #memberCommunityFeed>.empty-state{width:100%;padding:28px;border:1px solid var(--mp-border);border-radius:14px;background:#fff;color:var(--mp-muted)}
.member-publications-section #memberCommunityFeed .member-post-card{display:block;width:100%;min-width:0;margin:0;padding:12px;overflow:hidden;border:1px solid var(--mp-border)!important;border-radius:14px!important;background:var(--mp-paper)!important;box-shadow:0 5px 20px rgba(26,48,70,.07)!important;color:#26394b}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-layout{display:grid!important;grid-template-columns:minmax(190px,25%) minmax(0,1fr)!important;align-items:stretch!important;gap:0!important;width:100%;min-width:0;min-height:0;margin:0;padding:0;border-radius:9px;overflow:hidden}
.member-publications-section #memberCommunityFeed .member-post-card.is-text-only .forum-feed-layout{grid-template-columns:minmax(0,1fr)!important}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-media-wrap{display:flex;align-items:stretch;justify-content:stretch;min-width:0;width:100%;min-height:100%;margin:0;padding:0;overflow:hidden}
.member-publications-section #memberCommunityFeed .member-post-card .member-post-media-grid{position:relative;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:3px!important;align-content:stretch;width:100%;height:100%;min-height:190px;max-height:250px;border-radius:14px;margin:0;padding:0;overflow:hidden;background:#e8edf2;box-sizing:border-box}
.member-publications-section #memberCommunityFeed .member-post-card .member-post-media-grid .member-post-media{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;aspect-ratio:1/1;object-fit:cover;object-position:center;margin:0;padding:0;border:0;border-radius:0;background:#e8edf2;cursor:zoom-in;box-sizing:border-box}
.member-publications-section #memberCommunityFeed .member-post-card .member-post-media-grid .member-post-media:only-child{grid-column:1/-1;grid-row:1/-1;aspect-ratio:auto;object-fit:cover}
.member-publications-section #memberCommunityFeed .member-post-card .member-post-media-grid .member-post-media:nth-child(n+5){display:none}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-body{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;min-width:0;width:100%;margin:0;padding:17px 20px!important;background:#fff;box-sizing:border-box}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;width:100%;min-width:0;margin:0 0 10px}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-type{background:var(--cream);border:1px solid;border-radius:8px;padding:2px;display:inline-flex;align-items:center;gap:7px;color:var(--mp-navy)!important;font-size:.7rem;line-height:1.3;letter-spacing:.08em;font-weight:800}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-date{color:#7a8998!important;font-size:.76rem;line-height:1.4;white-space:normal!important}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-title{width:100%;margin:0 0 8px;color:var(--mp-navy)!important;font-size:1.25rem;line-height:1.35;font-weight:700;text-align:left;overflow-wrap:anywhere}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-description{width:100%;margin:0 0 15px;color:#5d6d7c!important;font-size:.92rem;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;width:100%;min-width:0;margin-top:auto!important;padding-top:12px;border-top:1px solid #edf0f3}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-media-count{min-width:0;color:#7a8998!important;font-size:.78rem;overflow-wrap:anywhere}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-open{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:9px 15px;border:1px solid var(--mp-navy)!important;border-radius:30px!important;background:var(--mp-navy)!important;color:#fff!important;font-size:.82rem;font-weight:700;line-height:1.2;text-decoration:none;box-shadow:none;white-space:nowrap;transition:background .18s,border-color .18s,transform .18s}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-open:hover{background:var(--mp-blue)!important;border-color:var(--mp-blue)!important;color:#fff!important;transform:translateY(-1px)}
.member-publications-section #memberCommunityFeed .member-post-card .publication-interactions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:12px 0 0;padding:12px 0 0;border-top:1px solid #e8edf1}
.member-publications-section #memberCommunityFeed .member-post-card .publication-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 13px;border:1px solid #d5e0e8;border-radius:999px;background:#fff;color:var(--mp-navy);font:700 12px/1.2 'DM Sans',sans-serif;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
.member-publications-section #memberCommunityFeed .member-post-card .publication-action:hover{background:#edf4f8;border-color:#9bb2c4}
.member-publications-section #memberCommunityFeed .member-post-card .publication-action.is-active,.member-publications-section #memberCommunityFeed .member-post-card .publication-action[aria-pressed="true"]{background:var(--mp-navy);border-color:var(--mp-navy);color:#fff}
.member-publications-section #memberCommunityFeed .member-post-card .publication-action-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:#edf2f6;color:var(--mp-navy);font-size:11px}
.member-publications-section #memberCommunityFeed .member-post-card .publication-comments-panel{margin-top:12px;padding:14px;border:1px solid var(--mp-border);border-radius:10px;background:#fbfaf7}
.member-publications-section #memberCommunityFeed .member-post-card .publication-comment-form label{display:block;margin:0 0 6px;color:var(--mp-navy);font-size:.85rem;font-weight:700}
.member-publications-section #memberCommunityFeed .member-post-card .publication-comment-form textarea{display:block;width:100%;min-height:82px;padding:10px 12px;border:1px solid #ccd7e0;border-radius:8px;background:#fff;color:#26394b;font:inherit;resize:vertical}
.member-publications-section #memberCommunityFeed .member-post-card .publication-comment-form textarea:focus{outline:2px solid rgba(36,95,143,.2);border-color:var(--mp-blue)}
.member-publications-section #memberCommunityFeed .member-post-card .publication-comment-form-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:10px}
.member-publications-section #memberCommunityFeed .member-post-card .publication-comment-form-footer small{color:#758494;font-size:.75rem}
.member-publications-section #memberCommunityFeed .member-post-card .publication-comment-submit{border:1px solid var(--mp-navy);border-radius:30px;background:var(--mp-navy);color:#fff;padding:8px 15px;font-size:.8rem;font-weight:700}
.member-publications-section #memberCommunityFeed .member-post-card .publication-comment-submit:hover{background:var(--mp-blue);border-color:var(--mp-blue)}
.member-publications-section #memberCommunityFeed .member-post-card .publication-comment-feedback{margin:8px 0 0;font-size:.82rem}
/* Member post media viewer — visually matched to Info & Publication fullscreen lightbox */
.member-post-viewer{position:fixed;inset:0;z-index:2050;display:none;align-items:stretch;justify-content:center;padding:0;background:rgba(0,0,0,.98);color:#fff}
.member-post-viewer[aria-hidden="false"]{display:flex}
.member-post-viewer-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent;cursor:default}
.member-post-viewer-panel{position:relative;z-index:1;display:flex;flex-direction:column;width:100%;height:100%;max-height:100dvh;overflow:hidden;border:0;border-radius:0;background:#050505;box-shadow:none}
.member-post-viewer-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:12px 22px;border:0;border-bottom:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.92);color:#fff}
.member-post-viewer-header button,.member-post-viewer-navigation button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 15px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font-size:.85rem;font-weight:700;line-height:1.2;cursor:pointer;transition:background .18s,border-color .18s}
.member-post-viewer-header button:hover,.member-post-viewer-navigation button:hover{border-color:#fff;background:rgba(255,255,255,.17);color:#fff}
.member-post-viewer-close{width:40px;min-width:40px;padding:0!important;font-size:25px!important;line-height:1!important}
.member-post-viewer-top-count{color:rgba(255,255,255,.72);font-size:.82rem;font-weight:700;font-variant-numeric:tabular-nums}
.member-post-viewer-stage{position:relative;flex:1 1 auto;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;padding:52px 76px 18px;background:#050505}
.member-post-viewer-media{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0}
.member-post-viewer-media img,.member-post-viewer-media video{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border:0;border-radius:0;background:#050505}
.member-post-viewer-nav{position:absolute;top:50%;z-index:2;display:grid;place-items:center;transform:translateY(-50%);width:46px;height:46px;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(30,30,30,.8);color:#fff;font-size:30px;line-height:1;cursor:pointer;transition:background .18s,border-color .18s}
.member-post-viewer-nav:hover{background:#173b5f;border-color:#fff}.member-post-viewer-nav:disabled{opacity:.35;cursor:not-allowed}.member-post-viewer-nav.prev{left:20px}.member-post-viewer-nav.next{right:20px}
.member-post-viewer-stage-count{position:absolute;right:22px;bottom:16px;padding:6px 10px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(0,0,0,.72);color:#fff;font-size:.78rem;font-variant-numeric:tabular-nums}
.member-post-viewer-info{flex:0 0 auto;max-height:30vh;overflow:auto;padding:14px 24px 18px;border-top:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.94);color:#fff}
.member-post-viewer-meta{margin-bottom:5px;color:rgba(255,255,255,.62);font-size:.76rem}
.member-post-viewer-title{margin:0 0 6px;color:#fff;font-size:1rem;font-weight:700;line-height:1.35}
.member-post-viewer-description{margin:0;color:rgba(255,255,255,.72);font-size:.84rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.member-post-viewer-thumbs{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;margin-top:13px;padding:2px 1px 5px}
.member-post-viewer-thumbs button{position:relative;flex:0 0 58px;width:58px;height:58px;padding:0;overflow:hidden;border:2px solid transparent;border-radius:6px;background:#1b1b1b;cursor:pointer}
.member-post-viewer-thumbs button.active,.member-post-viewer-thumbs button.is-active{border-color:#fff;box-shadow:0 0 0 1px #173b5f}
.member-post-viewer-thumbs img,.member-post-viewer-thumbs video{display:block;width:100%;height:100%;object-fit:cover}
.member-post-viewer-thumb-number{position:absolute;right:3px;bottom:3px;padding:1px 4px;border-radius:3px;background:rgba(0,0,0,.72);color:#fff;font-size:10px}
.member-post-viewer-navigation{display:flex;justify-content:space-between;gap:8px;margin-top:10px}
.member-post-viewer-empty{color:rgba(255,255,255,.7);text-align:center}
body.member-post-viewer-open{overflow:hidden}
@media(max-width:767.98px){.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-layout{grid-template-columns:minmax(140px,34%) minmax(0,1fr)!important}.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-body{padding:13px!important}.member-publications-section #memberCommunityFeed .member-post-card .member-post-media-grid{min-height:160px;max-height:210px}.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-title{font-size:1.08rem}.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-footer{align-items:flex-start}.member-post-viewer-panel{height:100dvh;max-height:100dvh}.member-post-viewer-header{min-height:56px;padding:9px 12px}.member-post-viewer-stage{padding:36px 48px 14px}.member-post-viewer-nav{width:38px;height:38px;font-size:25px}.member-post-viewer-nav.prev{left:7px}.member-post-viewer-nav.next{right:7px}.member-post-viewer-info{max-height:35dvh;padding:12px 14px}.member-post-viewer-stage-count{right:10px;bottom:8px}}
@media(max-width:480px){.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-layout,.member-publications-section #memberCommunityFeed .member-post-card.is-text-only .forum-feed-layout{grid-template-columns:minmax(0,1fr)!important}.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-media-wrap{border-right:0;border-bottom:1px solid var(--mp-border)}.member-publications-section #memberCommunityFeed .member-post-card .member-post-media-grid{height:220px;min-height:220px;max-height:220px}.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-body{padding:14px!important}.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-meta{align-items:flex-start}.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-footer{flex-direction:row}.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-open{margin-left:auto}}


/* Final component polish: match Info & Publication button treatment. */
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-open,
.member-publications-section #memberCommunityFeed .member-post-card .publication-comment-submit,
.member-publications-section #memberCommunityFeed .member-post-card .member-post-viewer-header button,
.member-publications-section #memberCommunityFeed .member-post-card .member-post-viewer-navigation button {
  border-radius: 30px !important;
  font-weight: 700;
}
.member-publications-section #memberCommunityFeed .member-post-card .publication-action {
  min-height: 38px; padding: 8px 14px; border-radius: 30px;
}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-open:focus-visible,
.member-publications-section #memberCommunityFeed .member-post-card .publication-action:focus-visible,
.member-publications-section #memberCommunityFeed .member-post-card .publication-comment-submit:focus-visible {
  outline: 3px solid rgba(36,95,143,.28); outline-offset: 2px;
}
@media (max-width: 480px) {
  .member-publications-section #memberCommunityFeed .member-post-card { padding: 8px; }
}


/* Final Member Posts spacing and shared button polish */
.member-publications-section #memberCommunityFeed .member-post-card {
    padding: 12px !important;
    border-radius: 14px !important;
    box-sizing: border-box;
}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-body {
    padding: 18px 20px !important;
}
.member-publications-section #memberCommunityFeed .forum-feed-open,
.member-publications-section #memberCommunityFeed .publication-comment-submit {
    border: 1px solid #173b5f !important;
    border-radius: 999px !important;
    background: #173b5f !important;
    color: #fff !important;
    padding: 9px 17px !important;
    font-weight: 700;
    text-decoration: none !important;
}
.member-publications-section #memberCommunityFeed .forum-feed-open:hover,
.member-publications-section #memberCommunityFeed .publication-comment-submit:hover {
    background: #245f8f !important;
    border-color: #245f8f !important;
    color: #fff !important;
}
.member-publications-section #memberCommunityFeed .publication-action {
    border-radius: 999px;
    border: 1px solid #d5e0e9;
    background: #fff;
    color: #173b5f;
}
.member-publications-section #memberCommunityFeed .publication-action:hover {
    border-color: #173b5f;
    background: #173b5f;
    color: #fff;
}
@media (max-width: 767.98px) {
    .member-publications-section #memberCommunityFeed .member-post-card { padding: 8px !important; }
    .member-publications-section #memberCommunityFeed .member-post-card .forum-feed-body { padding: 14px !important; }
}

/* Post-type aware media tiles: image, uploaded video and YouTube link share one gallery grid. */
.member-publications-section #memberCommunityFeed .member-post-card .member-post-media-grid .member-post-media-tile {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #0b1420;
    color: #fff;
    cursor: zoom-in;
    aspect-ratio: 1 / 1;
}
.member-publications-section #memberCommunityFeed .member-post-card .member-post-media-grid .member-post-media-tile > .member-post-media {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border: 0;
    margin: 0;
    padding: 0;
    aspect-ratio: auto;
}
.member-publications-section #memberCommunityFeed .member-post-card .member-post-media-grid .member-post-media-tile.is-youtube {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #182c43, #080d15);
}
.member-publications-section #memberCommunityFeed .member-post-youtube-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}
.member-publications-section #memberCommunityFeed .member-post-youtube-preview i {
    color: #ff3434;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
}
.member-publications-section #memberCommunityFeed .member-post-video-indicator {
    position: absolute;
    inset: auto 8px 8px auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .76);
    color: #fff;
    pointer-events: none;
}
.member-publications-section #memberCommunityFeed .member-post-media-grid .member-post-media-tile:nth-child(n+5) { display: none; }
.member-publications-section #memberCommunityFeed .member-post-media-grid.is-single .member-post-media-tile { grid-column: 1 / -1; grid-row: 1 / -1; }
.member-post-viewer-media iframe.member-post-viewer-full-media {
    display: block;
    width: min(100%, 1100px);
    height: min(68vh, 720px);
    max-width: 100%;
    border: 0;
    background: #050505;
}
.member-post-viewer-youtube-thumb {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #ff3434;
    background: #111b29;
    font-size: 1.5rem;
}
.member-post-viewer-empty { padding: 30px; color: #d4deea; text-align: center; }
@media (max-width: 480px) {
    .member-post-viewer-media iframe.member-post-viewer-full-media { height: 34vh; }
}

/* Small author-meta refinements: preserve the existing card layout. */
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-type {
    text-transform: uppercase;
}
.member-publications-section #memberCommunityFeed .member-post-card .forum-feed-media-count > .fa-user {
    margin-right: 7px;
}

/* Post-to-post navigation mirrors Info & Publication without changing the viewer layout. */
.member-post-viewer-post-navigation{display:flex;justify-content:space-between;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.12)}
.member-post-viewer-post-navigation .feed-detail-nav-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 15px;border:1px solid rgba(255,255,255,.24);border-radius:999px;font-size:.85rem;font-weight:700;line-height:1.2;transition:background .18s,border-color .18s;}
.member-post-viewer-post-navigation .btn-outline-secondary{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.28)}
.member-post-viewer-post-navigation .btn-outline-secondary:hover{background:#173b5f;color:#fff;border-color:#fff}
.member-post-viewer-post-navigation .btn-primary{background:#173b5f;color:#fff;border-color:#2d5e87}
.member-post-viewer-post-navigation .btn-primary:hover{background:#24527b;border-color:#fff}
.member-post-viewer-post-navigation .feed-detail-nav-btn:disabled{opacity:.35;cursor:not-allowed}
@media(max-width:767.98px){.member-post-viewer-post-navigation{gap:8px;margin-top:10px;padding-top:10px}.member-post-viewer-post-navigation .feed-detail-nav-btn{min-height:36px;padding:7px 11px;font-size:.8rem}}
