/* Shared investor appearance; administration keeps its existing design. */
html:has(.fund-reference) { background:#141416; color-scheme:dark; scroll-padding-top:76px; }
html[data-investor-theme="light"]:has(.fund-reference) { background:#f6f4ee; color-scheme:light; }
html[data-investor-theme="light"] .fund-reference {
    --bg:#f6f4ee; --bg2:#ece9e0; --ink:#1b1b1d; --muted:#5f5d58; --card:#fff;
    --line:rgba(27,27,29,.15); --gold-ink:#86670f; --neg:#a1403a; --pos:#86670f;
}
.fund-reference .nav .login-btn[aria-current="page"] { box-shadow:inset 0 -2px var(--gold); }
.fund-reference :is(.icon-btn,.login-btn,.btn,.fundbar a) { transition:background-color .15s,border-color .15s,color .15s; }
.fund-reference .reveal { transition:opacity .18s ease,transform .18s ease; }
.investor-entry { display:flex; flex-direction:column; }
.fund-reference .entry-main { width:100%; flex:1; padding-top:clamp(100px,12vh,150px); padding-bottom:64px; }
.fund-reference .login-layout { grid-template-columns:1.05fr 1fr; gap:clamp(32px,6vw,80px); align-items:center; padding:0; }
.fund-reference .login-introduction { padding:0; background:transparent; }
.fund-reference .login-introduction h1 { font:400 clamp(40px,4.4vw,60px)/1.12 var(--serif); letter-spacing:-.5px; margin:0 0 28px; }
.fund-reference .login-introduction h1 span { color:var(--gold-ink); }
.fund-reference.investor-entry .eyebrow { color:var(--gold-ink); font:600 12px/1.5 var(--sans); text-transform:uppercase; letter-spacing:1.5px; margin:0 0 18px; }
.fund-reference .intro-copy { max-width:40ch; color:var(--muted); font:400 15px/1.85 var(--sans); }
.fund-reference .welcome-note { max-width:40ch; margin:32px 0 0; padding-top:22px; border-top:1px solid var(--line); color:var(--muted); font:400 13px/1.7 var(--sans); }
.fund-reference .login-card { background:var(--card); border:1px solid var(--line); border-top:3px solid var(--gold); border-radius:0; padding:clamp(24px,3vw,36px); box-shadow:none; }
.fund-reference .login-card h2 { font:400 30px/1.2 var(--serif); margin:0 0 12px; }
.fund-reference .login-card > p:not(.eyebrow) { font:400 13px/1.8 var(--sans); color:var(--muted); margin:0 0 22px; }
.fund-reference .login-card form label { display:block; font:500 12px/1.6 var(--sans); margin:18px 0 8px; }
.fund-reference .login-card input:not([type="checkbox"]):not([type="hidden"]) { display:block; width:100%; min-height:46px; padding:11px 12px; border:1px solid var(--line); border-radius:0; background:var(--bg); color:var(--ink); font:400 14px/1.5 var(--sans); box-shadow:none; }
.fund-reference .login-card input::placeholder { color:var(--muted); opacity:1; }
.fund-reference .login-card input:focus { border-color:var(--gold); }
.fund-reference .login-card form .acknowledgment { display:flex; gap:12px; align-items:flex-start; margin:24px 0 14px; padding:16px; border:1px solid var(--line); border-radius:0; background:var(--bg); color:var(--muted); font:400 12px/1.8 var(--sans); }
.fund-reference .login-card input[type="checkbox"] { appearance:auto; width:18px; height:18px; flex:0 0 18px; margin:3px 0 0; accent-color:var(--gold); }
.investor-entry :is(.button,.declaration-trigger) { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:46px; border:1px solid var(--line); border-radius:0; padding:12px 16px; background:transparent; color:var(--ink); font:500 12px/1.6 var(--sans); box-shadow:none; cursor:pointer; text-decoration:none; }
.investor-entry .declaration-trigger { color:var(--gold-ink); text-align:left; }
.investor-entry .declaration-trigger:hover { border-color:var(--gold); background:var(--bg2); }
.investor-entry .button { background:var(--gold); border-color:var(--gold); color:#141416; }
.investor-entry .button:hover { background:#e0bf52; border-color:#e0bf52; color:#141416; box-shadow:none; }
.investor-entry .full-width { margin-top:22px; }
.investor-entry .notice { padding:16px; border:1px solid var(--gold); border-radius:0; background:var(--bg); color:var(--ink); }
.investor-entry .development-entry { margin-top:28px; border-color:var(--line); background:var(--card); color:var(--muted); }
.investor-entry .development-entry a { color:var(--gold-ink); }
.investor-entry .declaration-dialog { background:var(--bg); color:var(--ink); border:1px solid var(--gold); border-radius:0; }
.investor-entry .declaration-dialog-header { background:var(--card); }
.investor-entry .declaration-dialog-header h2 { font:400 29px/1.2 var(--serif); }
.investor-entry .dialog-close { display:grid; place-items:center; width:40px; height:40px; padding:0; border:1px solid var(--line); border-radius:0; background:transparent; color:var(--ink); font:400 25px/1 var(--sans); cursor:pointer; }
.investor-entry .dialog-close:hover { border-color:var(--gold); }
.investor-entry .declaration-document { padding:36px 40px; background:var(--card); border-color:var(--line); border-radius:0; box-shadow:none; }
.investor-entry .declaration-document > img { display:block; object-fit:contain; margin:0 0 28px; background:#141416; width:156px; height:48px; padding:6px 8px; }
.investor-entry .declaration-copy { white-space:normal; color:var(--ink); font:400 14px/1.85 var(--sans); }
/* The fund theme resets paragraphs. Restore the declaration's document structure explicitly. */
.investor-entry .declaration-copy > :is(p,h3) { white-space:pre-wrap; overflow-wrap:anywhere; }
.investor-entry .declaration-copy > p { margin:0 0 22px; font:inherit; color:inherit; text-align:left; }
.investor-entry .declaration-copy > .declaration-document-title { margin:0 0 32px; color:var(--gold-ink); font:400 26px/1.3 var(--serif); text-align:center; }
.investor-entry .declaration-copy > .declaration-addressee { margin-bottom:28px; font-weight:600; line-height:2; }
.investor-entry .declaration-copy > :last-child { margin-bottom:0; }
.fund-reference .declaration-dialog-footer { display:flex; justify-content:space-between; gap:22px; padding:18px 30px; background:var(--card); border-top:1px solid var(--line); }
.investor-entry .declaration-dialog-footer .button { width:auto; justify-content:center; }
@media(max-width:800px) {
    .fund-reference .login-layout { grid-template-columns:1fr; gap:32px; }
    .fund-reference .entry-main { padding-top:100px; padding-bottom:40px; }
    .fund-reference .login-introduction h1 { max-width:18ch; font-size:clamp(36px,7vw,48px); }
    .fund-reference .welcome-note { margin-top:18px; padding-top:18px; }
}
@media(max-width:480px) {
    .investor-entry .name-fields { grid-template-columns:1fr; gap:0; }
    .investor-entry .declaration-trigger-detail { display:none; }
    .investor-entry .declaration-document { padding:20px 16px; }
    .investor-entry .declaration-copy > .declaration-document-title { font-size:23px; margin-bottom:24px; }
    .fund-reference .declaration-dialog-footer { padding:14px 16px; gap:12px; }
    .fund-reference .login-card input:not([type="checkbox"]):not([type="hidden"]) { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) {
    html:has(.fund-reference),.fund-reference { scroll-behavior:auto; }
    .fund-reference * { animation:none !important; transition:none !important; }
}
