/* net-social.css — feed, post, help, messages, notifications, profile (helper B). Builds on social.css. */
.n-h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 16px; }
.n-main { display: grid; gap: 14px; align-content: start; }
.n-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 2px; overflow-x: auto; scrollbar-width: none; }
.n-tabs::-webkit-scrollbar { display: none; }
.n-tabs a { flex-shrink: 0; padding: 10px 14px; font-weight: 700; font-size: .93rem; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.n-tabs a:hover { color: var(--ink); }
.n-tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--forest); }
.n-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.n-pager a:only-child { margin-left: auto; }
.n-empty h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 6px; }
.n-empty p { max-width: 46ch; margin: 0 auto 14px; }
.n-block { margin-bottom: 30px; }
.np-trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* people rows */
.np-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.np-person { display: flex; align-items: center; gap: 10px; }
.np-av { line-height: 0; flex-shrink: 0; }
.np-av .avatar { border-radius: 50%; }
.np-who { flex: 1; min-width: 0; line-height: 1.3; }
.np-who a { font-weight: 700; color: var(--ink); text-decoration: none; font-size: .92rem; }
.np-who a:hover { color: var(--forest); }
.np-who small { display: block; color: var(--ink-3); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-who small i { color: #1F5F8B; }
.np-follow { padding: 5px 12px !important; font-size: .8rem !important; }

/* mini community rows */
.n-mini-comms { display: grid; gap: 10px; }
.n-mini-comm { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; min-width: 0; }
.n-mini-comm:hover b { color: var(--forest); }
.n-mini-comm .avatar { border-radius: 50%; flex-shrink: 0; }
.n-mini-comm > span { min-width: 0; line-height: 1.3; }
.n-mini-comm b { display: block; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-mini-comm small { display: block; color: var(--ink-3); font-size: .8rem; }

/* post page */
.post-tools { margin: 10px 0 14px; }
.comments h2 { font-size: 1.05rem; }
.comments .cmt:first-of-type { border-top: 0; }
.cmt-replies .cmt { padding: 8px 0; border-top: 0; }
.cmt-actions form { margin: 0; }
.n-signin { margin: 16px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cmt-form .avatar { border-radius: 50%; flex-shrink: 0; }
@media (max-width: 520px) { .cmt-form > .avatar { display: none; } .cmt-replies { margin-left: 20px; } .cmt-form { flex-wrap: wrap; } .cmt-form .u-btn { margin-left: auto; } }

/* help board */
.n-ask .composer { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(233,162,59,.12); }
.n-ask-guest { background: var(--amber-soft); border-color: transparent; }
.n-ask-guest p { margin: 0 0 14px; }
.n-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.n-steps li::marker { color: var(--forest); font-weight: 800; }
.n-crisis { background: #FDF3E1; border-color: transparent; }
.n-crisis p { margin: 0; font-size: .88rem; color: #6B4A12; }
.n-crisis i { color: #B5485D; margin-right: 4px; }

/* messages */
.dm-item { position: relative; }
.dm-item > span { flex: 1; min-width: 0; }
.dm-time { color: var(--ink-3); font-size: .72rem; white-space: nowrap; align-self: flex-start; margin-top: 3px; }
.dm-chat-head .pa-name { display: block; line-height: 1.2; }
.dm-sub { display: block; color: var(--ink-3); font-size: .78rem; }
.dm-chat-head form { margin: 0; }
.dm-back { display: none; color: var(--ink); padding: 6px; }
.dm-day { align-self: center; font-size: .72rem; font-weight: 700; color: var(--ink-3); background: var(--sage); padding: 3px 10px; border-radius: 999px; margin: 6px 0; }
.dm-form .u-btn { align-self: stretch; }
@media (max-width: 760px) { .dm-back { display: inline-block; } .dm-send-l { display: none; } .dm-layout { min-height: 0; } .dm-msgs { max-height: 58vh; min-height: 40vh; } .dm-msg { max-width: 86%; } }

/* notifications */
.n-notif-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--moss); color: var(--forest); display: grid; place-items: center; flex-shrink: 0; }
.notif small i { margin-right: 3px; }

/* profile */
.p-hero-main { min-width: 0; flex: 1; }
.p-headline { margin: 8px 0 0; font-size: 1.05rem; color: var(--ink-2); font-weight: 600; }
.p-stats .lvl-chip, .p-stats [class*="chip"] { vertical-align: middle; }
.n-report { text-align: center; }
.n-report .pf-btn { font-size: .8rem; color: var(--ink-3); }
@media (max-width: 700px) {
  .p-hero-row { gap: 14px; }
  .p-hero-row > .avatar, .p-hero-row > img { width: 76px !important; height: 76px !important; font-size: 32px !important; }
  .p-actions { margin-left: 0; width: 100%; }
}

/* feed left column */
.n-left { display: grid; gap: 16px; }
.n-left-card { padding: 10px; }

/* The legacy forum stylesheet (site.css) also styles `.post` as a two-column grid.
   Network posts are <article class="post"> with a .post-head, so reset them here. */
article.post { display: block; grid-template-columns: none; margin-bottom: 0; box-shadow: none; overflow: visible; }
article.post:target { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(14,107,74,.14); }
article.post .post-body { flex: none; }
.cmt:target .cmt-bubble { box-shadow: 0 0 0 3px rgba(14,107,74,.25); }
/* keep long names from widening the side columns */
.n-side, .n-left { grid-template-columns: minmax(0, 1fr); }
.n-side > *, .n-left > * { min-width: 0; }
.np-people, .n-mini-comms { grid-template-columns: minmax(0, 1fr); }
.np-person form { flex-shrink: 0; }
