/* Community M0 — public member "financial identity" page (/u/{username}). RTL, token-based. */

.pubprof { max-width: 880px; margin: 0 auto; padding: 24px 16px 64px; }

/* ── Identity header ── */
.pubprof__head {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; border-radius: 16px;
  background: var(--navy, #152D50); color: #fff;
}
.pubprof__avatar {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold, #C9A24B); flex: 0 0 auto;
}
.pubprof__id { flex: 1 1 auto; min-width: 0; }
.pubprof__name { font-size: 1.45rem; font-weight: 800; margin: 0 0 2px; }
.pubprof__handle { color: #cdd8e8; font-size: .95rem; margin: 0 0 8px; }
.pubprof__headline { font-size: 1rem; color: #eef3fa; margin: 0 0 6px; }
.pubprof__badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; align-items: center; }
.pubprof__level { background: var(--gold, #C9A24B); color: #1b2233; font-weight: 800; font-size: .72rem; padding: 2px 10px; border-radius: 999px; }
.pubprof__badge { background: rgba(255,255,255,.12); color: #eef3fa; font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.pubprof__bio { font-size: .92rem; color: #cdd8e8; margin: 8px 0 0; line-height: 1.7; }

/* Bio rendered on the white page body (outside the navy header) needs dark text. */
.pubprof__bio--body { color: #33415a; margin-top: 14px; }
.pubprof__pager { margin-top: 18px; }

/* ── Follow + counts ── */
.pubprof__meta { display: flex; gap: 18px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.pubprof__counts { display: flex; gap: 18px; }
.pubprof__count b { font-size: 1.05rem; }
.pubprof__count span { color: #cdd8e8; font-size: .85rem; margin-inline-start: 4px; }
.pubprof__follow {
  background: var(--teal, #0D9488); color: #fff; border: 0;
  padding: 9px 22px; border-radius: 999px; font-weight: 700; cursor: pointer;
  min-height: 44px; transition: opacity .2s;
}
.pubprof__follow[aria-pressed="true"] { background: transparent; border: 1.5px solid var(--teal, #0D9488); color: #fff; }
.pubprof__follow:hover { opacity: .9; }

/* ── Reputation card ── */
.pubprof__rep {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 18px 0; padding: 18px; border-radius: 14px;
  background: #f6f9fc; border: 1px solid #e2e9f1;
}
.pubprof__rep-cell { text-align: center; }
.pubprof__rep-num { font-size: 1.5rem; font-weight: 800; color: var(--navy, #152D50); }
.pubprof__rep-num--accent { color: var(--teal, #0D9488); }
.pubprof__rep-lbl { font-size: .78rem; color: #5b6b80; margin-top: 2px; }
.pubprof__rep-note { grid-column: 1 / -1; font-size: .78rem; color: #5b6b80; text-align: center; margin-top: 4px; }

/* ── Track record list ── */
.pubprof__section-title { font-size: 1.15rem; font-weight: 800; color: var(--navy, #152D50); margin: 24px 0 12px; }
.pubprof__calls { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pubcall {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; border: 1px solid #e2e9f1; background: #fff;
}
.pubcall__dir { font-weight: 800; padding: 3px 10px; border-radius: 999px; font-size: .82rem; }
.pubcall__dir--bull { background: #e6f6f2; color: #0D9488; }
.pubcall__dir--bear { background: #fdecec; color: #d14343; }
.pubcall__entity { font-weight: 700; color: var(--navy, #152D50); flex: 1 1 auto; min-width: 0; }
.pubcall__entity a { color: inherit; text-decoration: none; }
.pubcall__entity a:hover { text-decoration: underline; }
.pubcall__rate { color: #5b6b80; font-size: .85rem; }
.pubcall__outcome { font-weight: 800; font-size: .9rem; }
.pubcall__outcome--ok { color: #0D9488; }
.pubcall__outcome--no { color: #d14343; }
.pubcall__outcome--open { color: #5b6b80; font-weight: 600; }

/* ── Empty state ── */
.pubprof__empty {
  text-align: center; padding: 36px 16px; border-radius: 14px;
  background: #f6f9fc; border: 1px dashed #c7d4e2; color: #5b6b80;
}
.pubprof__empty b { display: block; color: var(--navy, #152D50); font-size: 1.05rem; margin-bottom: 4px; }

/* ── Socials ── */
.pubprof__socials { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pubprof__socials a { color: #cdd8e8; font-size: .85rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 575px) {
  .pubprof__head { flex-direction: column; align-items: center; text-align: center; }
  .pubprof__rep { grid-template-columns: repeat(2, 1fr); }
  .pubprof__meta { justify-content: center; }
}

/* ── M1-a: "top analysts on this entity" rail (entity ↔ profile cross-link) ── */
.cta-rail { margin: 22px 0; padding: 16px; border-radius: 14px; background: #f6f9fc; border: 1px solid #e2e9f1; }
.cta-rail__title { font-size: 1.05rem; font-weight: 800; color: var(--navy, #152D50); margin: 0 0 12px; }
.cta-rail__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.cta-rail__item { flex: 0 0 auto; }
.cta-rail__link {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  background: #fff; border: 1px solid #e2e9f1; border-radius: 999px; padding: 6px 14px 6px 6px;
  min-height: 44px; transition: border-color .2s;
}
.cta-rail__link:hover { border-color: var(--teal, #0D9488); }
.cta-rail__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cta-rail__name { font-weight: 700; color: var(--navy, #152D50); font-size: .9rem; }
.cta-rail__acc { color: var(--teal, #0D9488); font-size: .78rem; font-weight: 700; }

/* ── M1-b: community analyses on an entity ── */
.canz { margin: 24px 0; }
.canz__title { font-size: 1.15rem; font-weight: 800; color: var(--navy, #152D50); margin: 0 0 12px; }
.canz__list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.canz__card { border: 1px solid #e2e9f1; border-radius: 12px; padding: 14px; background: #fff; }
.canz__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.canz__author { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--navy, #152D50); font-weight: 700; }
.canz__author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.canz__dir { font-weight: 800; padding: 2px 9px; border-radius: 999px; font-size: .78rem; }
.canz__dir--bull { background: #e6f6f2; color: #0D9488; }
.canz__dir--bear { background: #fdecec; color: #d14343; }
.canz__acc { color: var(--teal, #0D9488); font-size: .75rem; font-weight: 700; }
.canz__ctitle { font-weight: 800; color: var(--navy, #152D50); margin: 4px 0; }
.canz__reason { color: #33415a; font-size: .92rem; line-height: 1.7; margin: 0 0 8px; }
.canz__meta { display: flex; gap: 14px; flex-wrap: wrap; color: #5b6b80; font-size: .82rem; }
.canz__like { background: none; border: 1px solid #e2e9f1; border-radius: 999px; padding: 4px 12px; cursor: pointer; min-height: 36px; color: #5b6b80; }
.canz__like[aria-pressed="true"] { border-color: var(--teal); color: var(--teal); }
.canz__disc { font-size: .76rem; color: #8392a6; margin-top: 6px; }
.canz__empty { text-align: center; padding: 22px; border: 1px dashed #c7d4e2; border-radius: 12px; color: #5b6b80; margin-bottom: 16px; }

.canz__form { border: 1px solid #e2e9f1; border-radius: 12px; padding: 16px; background: #f6f9fc; }
.canz__form h3 { font-size: 1rem; font-weight: 800; color: var(--navy, #152D50); margin: 0 0 12px; }
.canz__row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.canz__field { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; }
.canz__field label { font-size: .82rem; color: #33415a; font-weight: 700; }
.canz__field input, .canz__field textarea, .canz__field select {
  border: 1px solid #cdd8e8; border-radius: 8px; padding: 9px; font: inherit; min-height: 44px; width: 100%;
}
.canz__field textarea { min-height: 90px; }
.canz__submit { background: var(--teal, #0D9488); color: #fff; border: 0; border-radius: 999px; padding: 10px 26px; font-weight: 800; cursor: pointer; min-height: 44px; }
.canz__login { text-align: center; padding: 18px; }
.canz__login a { color: var(--teal, #0D9488); font-weight: 800; }
.canz__attach { background: #fff; border: 1px solid var(--teal, #0D9488); color: var(--teal, #0D9488); border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; min-height: 40px; }
.canz__attach-state { margin-inline-start: 10px; font-size: .82rem; color: #5b6b80; }

/* ── Home community-pulse preview ── */
.hcp { max-width: 1200px; margin: 0 auto; }
.hcp__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hcp__title { font-size: 1.3rem; font-weight: 800; color: var(--navy, #152D50); margin: 0; }
.hcp__more { color: var(--teal, #0D9488); font-weight: 800; text-decoration: none; }
.hcp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hcp__card { margin: 0; }
@media (max-width: 575px) { .hcp__grid { grid-template-columns: 1fr; } }

/* ── My analyses (member dashboard) ── */
.mya__st { font-weight: 800; font-size: .78rem; padding: 2px 10px; border-radius: 999px; }
.mya__st--pending { background: #fff4e5; color: #b26a00; }
.mya__st--ok { background: #e6f6f2; color: #0D9488; }
.mya__st--no { background: #fdecec; color: #d14343; }
.mya__del { background: none; border: 1px solid #e2e9f1; color: #d14343; border-radius: 999px; padding: 4px 12px; cursor: pointer; min-height: 36px; }
.mya__del:hover { border-color: #d14343; }
.canz__field--narrow { flex: 0 0 160px; }
.canz__field--mb { margin-bottom: 10px; }
.canz__field--mb2 { margin-bottom: 12px; }
.canz__card--unread { border-color: var(--teal, #0D9488); }
.pubprof__meta--between { justify-content: space-between; width: 100%; }
.pubprof__empty--ok { color: var(--teal, #0D9488); }

/* ── M1-c: entity poll ── */
.epoll { margin: 22px 0; padding: 16px; border-radius: 14px; background: #f6f9fc; border: 1px solid #e2e9f1; }
.epoll__q { font-size: 1.02rem; font-weight: 800; color: var(--navy, #152D50); margin: 0 0 12px; }
.epoll__opts { display: flex; flex-direction: column; gap: 8px; }
.epoll__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid #cdd8e8; background: #fff; border-radius: 10px; padding: 10px 14px;
  cursor: pointer; min-height: 44px; font: inherit; text-align: start; position: relative; overflow: hidden;
}
.epoll__opt:hover { border-color: var(--teal, #0D9488); }
.epoll__opt[disabled] { cursor: default; }
.epoll__bar { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; background: rgba(13,148,136,.12); width: 0; transition: width .4s; z-index: 0; }
.epoll__lbl, .epoll__pct { position: relative; z-index: 1; }
.epoll__pct { font-weight: 800; color: var(--teal, #0D9488); }
.epoll__total { margin-top: 10px; color: #5b6b80; font-size: .82rem; }
.epoll__login { color: var(--teal, #0D9488); font-weight: 700; }

/* ── M2: entity Q&A ── */
.qa { margin: 24px 0; }
.qa__title { font-size: 1.15rem; font-weight: 800; color: var(--navy, #152D50); margin: 0 0 12px; }
.qa__item { border: 1px solid #e2e9f1; border-radius: 12px; padding: 14px; background: #fff; margin-bottom: 12px; }
.qa__q { font-weight: 800; color: var(--navy, #152D50); margin: 0 0 4px; }
.qa__qbody { color: #33415a; font-size: .9rem; margin: 0 0 8px; }
.qa__ans { border-inline-start: 3px solid #e6f6f2; padding: 6px 0 6px 12px; margin: 8px 0; }
.qa__ans-author { font-size: .8rem; color: var(--teal, #0D9488); font-weight: 700; }
.qa__ans-body { color: #33415a; font-size: .9rem; margin: 2px 0 0; }
.qa__ansform { display: flex; gap: 8px; margin-top: 8px; }
.qa__ansform input { flex: 1 1 auto; border: 1px solid #cdd8e8; border-radius: 8px; padding: 8px; min-height: 40px; font: inherit; }
.qa__ansform button, .qa__askbtn { background: var(--teal, #0D9488); color: #fff; border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer; min-height: 40px; }
.qa__ask { border: 1px solid #e2e9f1; border-radius: 12px; padding: 14px; background: #f6f9fc; margin-top: 12px; }
.qa__ask input, .qa__ask textarea { width: 100%; border: 1px solid #cdd8e8; border-radius: 8px; padding: 9px; margin-bottom: 8px; min-height: 44px; font: inherit; }
.qa__empty { text-align: center; padding: 18px; border: 1px dashed #c7d4e2; border-radius: 12px; color: #5b6b80; margin-bottom: 12px; }

/* ── M3: AI community consensus ── */
.econs { margin: 22px 0; padding: 16px; border-radius: 14px; background: linear-gradient(180deg,#f0f7f5,#f6f9fc); border: 1px solid #cfe6e0; }
.econs__title { font-size: 1.02rem; font-weight: 800; color: var(--navy, #152D50); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.econs__split { font-size: .8rem; color: #5b6b80; margin-inline-start: auto; font-weight: 700; }
.econs__body { color: #33415a; font-size: .92rem; line-height: 1.8; }
.econs__disc { font-size: .74rem; color: #8392a6; margin-top: 8px; }
