/* Fund product detail page — fund-scoped additions on top of the shared inst-* scaffold.
   Fund detail is cibo-only content (longbridge has no HK fund product page), so these are
   native components derived from the clarity spec rather than copied verbatim. */

.fund-back { display:inline-block; margin-bottom:16px; color:var(--cl-brand,#7560d6); font-size:var(--cl-fs-body,14px); text-decoration:none; }
.fund-back:hover { text-decoration:underline; }

/* NAV hero: latest NAV as a large number + currency + date on one baseline row. */
.fund-nav-hero { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; padding:0 0 20px; }
.fund-nav-label { font-size:var(--cl-fs-label,12px); color:var(--cl-muted,#696e77); }
.fund-nav-value { font-size:var(--cl-fs-h1,24px); line-height:1; font-weight:var(--cl-fw-h1,700); color:var(--cl-ink,#070a13); font-variant-numeric:tabular-nums; }
.fund-nav-currency { font-size:var(--cl-fs-body,14px); color:var(--cl-muted,#696e77); }
.fund-nav-date { margin-left:auto; font-size:var(--cl-fs-label,12px); color:var(--cl-muted,#696e77); }

/* Data-predicate-driven tab bar. The pill buttons themselves are .hkfund-detail-tab,
   already styled in clarity.css (36px / r-card, active = ink bg + white text). */
.fund-detail-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0 20px; }

/* Tab panels: only the active one renders; no empty-state boxes for hidden tabs. */
.fund-tab-panel { display:none; }
.fund-tab-panel.active { display:block; }
.fund-tab-panel .inst-section + .inst-section { margin-top:32px; }

/* Long-form profile prose (summary / objective / strategy / region / sector / risks). */
.fund-prose { font-size:var(--cl-fs-body,14px); line-height:var(--cl-lh-body,20px); color:var(--cl-muted,#696e77); white-space:pre-line; }

/* Secondary text in cells: role institution CN name / CE number, holdings ticker. */
.fund-role-sub { color:var(--cl-muted,#696e77); font-size:var(--cl-fs-label,12px); margin-left:4px; }
.fund-ticker { color:var(--cl-muted,#696e77); font-size:var(--cl-fs-label,12px); font-variant-numeric:tabular-nums; margin-left:6px; }

/* Up/down color for performance rows rendered in the label-value table. */
.fund-tab-panel .inst-info-table .ret-pos { color:var(--c-up,#00ada2); }
.fund-tab-panel .inst-info-table .ret-neg { color:var(--c-down,#ff3874); }

/* Document list: simple bordered rows with brand links. */
.fund-doc-list { list-style:none; margin:0; padding:0; }
.fund-doc-list li { padding:10px 0; border-bottom:var(--cl-line-w,1px) solid var(--cl-line-soft,#e4e5e7); }
.fund-doc-list li:last-child { border-bottom:0; }
.fund-doc-list a { color:var(--cl-brand,#7560d6); text-decoration:none; }
.fund-doc-list a:hover { text-decoration:underline; }

/* Non-SFC-authorized fund page (private OFC / offshore): classification badges. */
.fchip-nonauth { background:var(--cl-tint-violet,#efeafb); color:var(--cl-ink-violet,#5c3fbf); }
.fchip-pi { background:var(--cl-tint-warn,#f6e7cf); color:var(--cl-ink-warn,#a8642a); }
.fchip-inactive { background:var(--cl-tint-neutral,#e2e3e5); color:var(--cl-muted,#696e77); }

/* OFC risk assessment: category head + 6-factor score bars (0-5 scale). */
.ofc-risk-head { display:flex; align-items:baseline; gap:10px; margin-bottom:16px; }
.ofc-risk-label { font-size:var(--cl-fs-label,12px); color:var(--cl-muted,#696e77); }
.ofc-risk-value { font-size:var(--cl-fs-body,14px); font-weight:600; color:var(--cl-ink,#070a13); }
.ofc-factor { display:flex; align-items:center; gap:10px; }
.ofc-factor-bar { flex:1; max-width:200px; height:6px; border-radius:3px; background:var(--cl-line-soft,#e4e5e7); overflow:hidden; }
.ofc-factor-fill { height:100%; border-radius:3px; background:var(--cl-brand,#7560d6); }
.ofc-factor-score { font-size:var(--cl-fs-label,12px); color:var(--cl-muted,#696e77); font-variant-numeric:tabular-nums; }

/* Manager link inside the label-value table (mirrors role-firm link on authorized funds). */
.fund-manager-link { color:var(--cl-brand,#7560d6); text-decoration:none; }
.fund-manager-link:hover { text-decoration:underline; }
