/* Application integration for the supplied Melanion corporate design system.
   Financial data and authenticated controls remain owned by the application. */
html:has(.fund-reference) { background:var(--mc-bg-primary); scroll-padding-top:calc(var(--mc-header-height) + 12px); }
html[data-investor-theme="light"]:has(.fund-reference) { background:#f4f4f4; }
html[data-investor-theme] .fund-reference {
    --bg:var(--mc-bg-primary); --bg2:var(--mc-bg-surface-2);
    --card:var(--mc-bg-surface); --ink:var(--mc-text-primary);
    --muted:var(--mc-text-secondary); --line:var(--mc-border);
    --gold:var(--mc-primary); --gold-ink:var(--mc-accent-text);
    --serif:var(--mc-font-primary); --sans:var(--mc-font-secondary);
    --pos:var(--mc-pos); --neg:var(--mc-neg);
    font-weight:400;
}
/* Remove inherited presentation properties absent from the approved HTML.
   Keep legacy rules needed by authenticated controls and existing fund charts. */
html[data-investor-theme] .fund-reference:not(.fund-page) .sec-head { display:block; }
html[data-investor-theme] .fund-reference .sec-head p { font-size:inherit; }
html[data-investor-theme] .fund-reference .person { background:transparent; border:0; padding:0; }
html[data-investor-theme] .fund-reference .person .ph { border:0; }
html[data-investor-theme] .fund-reference .person > :not(.ph) { margin-left:0; margin-right:0; }
html[data-investor-theme] .fund-reference .person .role { margin-bottom:0; }
html[data-investor-theme] .fund-reference .exp { background:transparent; font-family:var(--mc-font-secondary); }
html[data-investor-theme] .fund-reference .exp b { font-weight:700; }
html[data-investor-theme] .fund-reference .cols3 h3 { color:var(--mc-text-primary); margin-bottom:0; }
html[data-investor-theme] .fund-reference .cols3 ul { font-size:inherit; }
html[data-investor-theme] .fund-reference .terms td { font-weight:400; }
html[data-investor-theme] .fund-reference :where(p,li,small,label,.note,.muted,.kv span,.fmeta) { font-weight:inherit; }
html[data-investor-theme] .fund-reference section[id] { scroll-margin-top:0; }
html[data-investor-theme] .fund-reference :is(.gl,.stats,.trio,.hl) b { font-family:var(--mc-font-secondary); }
html[data-investor-theme] .fund-reference[data-portal-page] .brand-tag { display:none; }
html[data-investor-theme] .fund-reference .comparison-scroll { border:0; background:transparent; }
html[data-investor-theme] .fund-reference .fund-comparison table { table-layout:auto; font-weight:400; line-height:1.45; }
html[data-investor-theme] .fund-reference #home .ms-basis { margin-top:14px; }
html[data-investor-theme] .fund-reference #compare .ms-basis { margin-bottom:8px; }
html[data-investor-theme] .fund-reference .page-heading > div { min-width:0; max-width:100%; }
html[data-investor-theme] .fund-reference .access-note { white-space:normal; max-width:100%; display:block; background:transparent; }
html[data-investor-theme] .fund-reference .access-note::before { content:none; }
html[data-investor-theme] .fund-reference .investor-library .page-heading { margin:0; }
html[data-investor-theme] .fund-reference .investor-library .document-panel { background:transparent; border:0; overflow:visible; }
html[data-investor-theme] .fund-reference .investor-library .list-heading { padding:0; background:transparent; border:0; line-height:1.45; }
html[data-investor-theme] .fund-reference .investor-library :is(.document-row p,.list-heading,.library-footnote,input[type=search]) { font-weight:400; }
html[data-investor-theme] .fund-reference .investor-library .document-row h2 { margin:0; }
html[data-investor-theme] .fund-reference .investor-library .document-row .button { margin-top:0; }
html[data-investor-theme] .fund-reference .fcard p { min-height:0; }
html[data-investor-theme] .fund-reference .fstats,
html[data-investor-theme] .fund-reference .fstats > div { background:transparent; }
html[data-investor-theme] .fund-reference .fstats b,
html[data-investor-theme] .fund-reference .kpis b { font-family:var(--mc-font-secondary); }
html[data-investor-theme] .fund-reference .cap-top b { font-family:inherit; font-size:inherit; font-weight:700; }
html[data-investor-theme] .fund-reference[data-portal-page="multistrategy"] .brand-tag { display:none; }
html[data-investor-theme] .fund-reference[data-portal-page="multistrategy"] .nav-links a { white-space:nowrap; }
html[data-investor-theme] .fund-reference[data-portal-page="multistrategy"] .nav .spacer { display:none; }
html[data-investor-theme] .fund-reference[data-portal-page="multistrategy"] .nav-links { margin-left:auto; }
html[data-investor-theme] .fund-reference[data-portal-page="multistrategy"] .sec-head p { max-width:none; }
@media(max-width:1200px) {
    html[data-investor-theme] .fund-reference[data-portal-page="multistrategy"] .nav-links {
        display:none; position:absolute; top:var(--mc-header-height); left:0; right:0;
        flex-direction:column; gap:0; margin:0; padding:8px 20px;
        background:var(--mc-header-bg); border-bottom:1px solid var(--mc-header-border);
    }
    html[data-investor-theme] .fund-reference[data-portal-page="multistrategy"] .nav-links.open { display:flex; }
    html[data-investor-theme] .fund-reference[data-portal-page="multistrategy"] .nav-links a { padding:12px 0; }
    html[data-investor-theme] .fund-reference[data-portal-page="multistrategy"] .burger { display:inline-flex; }
    html[data-investor-theme] .fund-reference[data-portal-page="multistrategy"] .nav .spacer { display:block; }
}
html[data-investor-theme] .fund-reference .site-footer { display:block; max-width:none; width:100%; margin:0; padding:50px 0 0; font-size:15px; letter-spacing:var(--mc-ls-body); }
html[data-investor-theme] .fund-reference .site-footer .wrap { display:block; }
html[data-investor-theme] .fund-reference .session-controls { display:flex; flex-wrap:wrap; gap:12px 24px; padding:0 0 12px; align-items:center; font-size:12px; }
html[data-investor-theme] .fund-reference .session-controls button { padding:8px 14px; border:1px solid #7a7a7a; border-radius:8px; background:transparent; color:#cfcfcf; cursor:pointer; font:inherit; }
html[data-investor-theme] .fund-reference .session-controls a { color:#cfcfcf; text-decoration:underline; text-underline-offset:3px; }
html[data-investor-theme] .fund-reference .nav .login-btn.ghost { background:transparent; color:var(--mc-gold); }
html[data-investor-theme] .fund-reference .nav .login-btn.ghost:hover { background:var(--mc-gold); color:#000; }
html[data-investor-theme] .fund-reference .brand img,.portal-admin .site-header .brand img { background:transparent; border-radius:0; padding:0; }
html[data-investor-theme] .fund-reference .brand { font-family:var(--mc-font-secondary); }
html[data-investor-theme] .fund-reference .auth { padding:72px 0 88px; }
html[data-investor-theme] .fund-reference .auth-introduction h1 { margin:12px 0 20px; }
html[data-investor-theme] .fund-reference .auth-introduction .eyebrow { margin:0; }
html[data-investor-theme] .fund-reference .auth-card { padding:30px; }
html[data-investor-theme] .fund-reference .auth-card h2 { font-size:clamp(24px,2.4vw,30px); margin-bottom:8px; }
html[data-investor-theme] .fund-reference .auth-card #access-help { margin-bottom:24px; }
html[data-investor-theme] .fund-reference .auth-card .form-field { margin-bottom:18px; }
html[data-investor-theme] .fund-reference .auth-card .form-label { margin:0; }
html[data-investor-theme] .fund-reference .auth-card .form-input { box-sizing:border-box; }
html[data-investor-theme] .fund-reference .auth-card .decl-link { width:100%; text-align:left; font-family:var(--mc-font-secondary); }
html[data-investor-theme] .fund-reference .auth-card .recovery-link { margin-top:18px; font-size:13px; color:var(--mc-text-secondary); }
html[data-investor-theme] .fund-reference .development-entry { margin:28px auto 0; max-width:1260px; }
html[data-investor-theme] .fund-reference .declaration-dialog { box-shadow:none; }
html[data-investor-theme] .fund-reference .declaration-dialog::backdrop { backdrop-filter:none; }
html[data-investor-theme] .fund-reference .mc-dialog-head { flex-shrink:0; }
html[data-investor-theme] .fund-reference .mc-dialog-head .eyebrow { margin:0; }
html[data-investor-theme] .fund-reference .mc-dialog-body { min-height:0; }
/* Administration keeps its existing forms, navigation and layout semantics. */
.portal-admin { font-family:var(--mc-font-secondary); background:#f4f4f4; min-height:100vh; color:#1c1c1e; }
.portal-admin .site-header { background:#000; border-bottom:1px solid #313131; }
.portal-admin .header-inner { max-width:1300px; min-height:93px; }
.portal-admin .site-header .brand img { width:173px; height:auto; }
.portal-admin .page-container { max-width:1300px; }
.portal-admin :is(h1,h2,h3) { font-family:var(--mc-font-primary); font-weight:400; }
.portal-admin :is(.button,button.button) { border-radius:8px; }
.portal-admin :is(.login-card,.content-card,.card) { border-radius:16px; }
html[data-investor-theme] .fund-reference.admin-footer { min-height:0; }
/* Light surfaces must not inherit the old dark section's cream text tokens.
   Keep the corporate header/footer dark, with their own contrasting colors. */
html[data-investor-theme="light"] .fund-reference {
    --mc-text-secondary:#505050;
    --mc-text-muted:#626262;
    --mc-series-1:#876910;
    --mc-series-2:#75622f;
    --mc-series-3:#504018;
}
html[data-investor-theme="light"] .fund-reference .dark {
    --bg:var(--mc-bg-surface); --bg2:var(--mc-bg-surface-2);
    --card:var(--mc-bg-surface); --ink:var(--mc-text-primary);
    --muted:var(--mc-text-secondary); --line:var(--mc-border);
    --gold-ink:var(--mc-accent-text); --pos:var(--mc-pos); --neg:var(--mc-neg);
    background:var(--bg); color:var(--ink);
}
html[data-investor-theme="light"] .fund-reference .scale span:not(.on) {
    background:var(--mc-bg-surface-2); color:var(--mc-text-primary);
}
html[data-investor-theme="light"] .fund-reference .gl b { color:var(--mc-accent-text); }
html[data-investor-theme="light"] .fund-reference[data-portal-page="multistrategy"] :is(.dv-win,.dv-row.me b,.dv-ctxt h4) { color:var(--mc-accent-text); }
html[data-investor-theme="light"] .fund-reference .tbl :is(td.na,tr.off) { opacity:1; color:var(--mc-text-secondary); }
html[data-investor-theme="light"] .fund-reference :is(button:disabled,.btn.is-disabled) {
    opacity:1; color:#626262; background:#ededed; border-color:#949494; cursor:not-allowed;
}
html[data-investor-theme="light"] .fund-reference .mc-dialog-head .icon-btn { color:var(--mc-accent-text); }
html[data-investor-theme="light"] .fund-reference .mc-dialog-foot { background:var(--mc-bg-surface-2); color:var(--mc-text-secondary); }
html[data-investor-theme="light"] .fund-reference .chat-badge { color:var(--mc-accent-text); }
html[data-investor-theme="light"] .fund-reference :is(.chart,#chart,#spark,.fspark) { --mc-primary:var(--mc-series-1); --gold:var(--mc-series-1); }
html[data-investor-theme="light"] .fund-reference svg [stroke="#d4af37" i] { stroke:var(--mc-series-1); }
html[data-investor-theme="light"] .fund-reference input[type="range"] { --mc-primary:var(--mc-series-1); --mc-divider:#929292; }
html[data-investor-theme="light"] .fund-reference :is(.form-input,input[type="search"],.fld,.chat-panel textarea) { border-color:#858585; }
html[data-investor-theme="light"] .fund-reference :is(input,textarea)::placeholder { color:#626262; opacity:1; }
html[data-investor-theme="light"] .fund-reference .form-input:focus { border-color:var(--mc-accent-text); box-shadow:0 0 0 2px var(--mc-accent-text); }
html[data-investor-theme="light"] .fund-reference :focus-visible { outline-color:var(--mc-accent-text); }
@media(max-width:1024px) {
    html[data-investor-theme] .fund-reference .auth { padding:48px 0 64px; }
}
@media(max-width:767px) {
    html[data-investor-theme] .fund-reference #contact .btn { margin:0 4px 10px 0; }
    html[data-investor-theme] .fund-reference .nav .wrap { gap:8px; }
    html[data-investor-theme] .fund-reference .nav .brand { min-width:0; flex:1; }
    html[data-investor-theme] .fund-reference .nav .brand img { width:160px; max-width:100%; height:auto; }
    html[data-investor-theme] .fund-reference .nav .spacer { display:none; }
    html[data-investor-theme] .fund-reference .nav .login-btn { padding:10px; font-size:10px; }
    html[data-investor-theme] .fund-reference .auth-card { padding:24px; }
    html[data-investor-theme] .fund-reference .auth-card .form-input { font-size:16px; }
    html[data-investor-theme] .fund-reference .site-footer { font-size:14px; }
}
@media(max-width:560px) {
    html[data-investor-theme] .fund-reference.investor-entry .brand-tag { display:none; }
    html[data-investor-theme] .fund-reference.investor-entry .nav .login-btn { padding:10px; font-size:9px; }
    html[data-investor-theme] .fund-reference.investor-entry .nav .wrap { gap:8px; }
    html[data-investor-theme] .fund-reference.investor-entry .brand img { width:112px; }
}
