/* Taiwan market convention: red rises, green falls. Keep signs and labels. */
:root{--fund-rise:#b52d3b;--fund-fall:#187344;--fund-neutral:#536477;--fund-blue:#315c96;--fund-rise-tint:#b52d3b0c;--fund-fall-tint:#1873440c}
html[data-theme=dark]{--fund-rise:#ff929c;--fund-fall:#70d5a0;--fund-neutral:#b4c3d3;--fund-blue:#91bafa;--fund-rise-tint:#ff929c10;--fund-fall-tint:#70d5a010}
.mp-main .fund-rise{color:var(--fund-rise)}.mp-main .fund-fall{color:var(--fund-fall)}.mp-main .fund-flat{color:var(--fund-neutral)}
.fund-legend{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:13px;color:var(--fund-neutral)}
.mp-main .fa-line.fund-rise{stroke:var(--fund-rise)}.mp-main .fa-line.fund-fall{stroke:var(--fund-fall)}.mp-main .fa-line.fund-flat{stroke:var(--fund-neutral)}
.fund-card,.estimate-board>article{border-radius:14px;box-shadow:0 8px 24px #00000008}
.fund-card:has([data-nav-change].fund-rise),.estimate-board>article:has(.estimate-card-change.fund-rise){border-top:3px solid var(--fund-rise);background-image:linear-gradient(135deg,var(--fund-rise-tint),transparent 65%)}
.fund-card:has([data-nav-change].fund-fall),.estimate-board>article:has(.estimate-card-change.fund-fall){border-top:3px solid var(--fund-fall);background-image:linear-gradient(135deg,var(--fund-fall-tint),transparent 65%)}
.mp-main .fund-currency{color:var(--fund-blue);border-color:currentColor}.mp-main .fund-nav strong{color:var(--fund-blue)}
[data-nav-change],.estimate-card-change{font-variant-numeric:tabular-nums;font-weight:650}
.estimate-card-change{align-self:flex-start;padding:6px 12px;border-radius:7px;background:var(--fund-rise-tint)}.estimate-card-change.fund-fall{background:var(--fund-fall-tint)}.estimate-card-change.fund-flat{background:transparent}
.estimate-card-metrics{padding:14px 0;border-top:1px solid var(--mp-line);border-bottom:1px solid var(--mp-line)}
.mp-main .estimate-cards .estimate-up{border-top-color:var(--fund-rise)}.mp-main .estimate-cards .estimate-down{border-top-color:var(--fund-fall)}
.fa-metrics>div:has(>.fund-rise){border-top:2px solid var(--fund-rise);background:var(--fund-rise-tint)}.fa-metrics>div:has(>.fund-fall){border-top:2px solid var(--fund-fall);background:var(--fund-fall-tint)}
/* Compact fund summaries share a density system across research and VIP lists. */
.mp-main .fund-grid,.mp-main .estimate-company .estimate-board{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.mp-main .fund-grid .fund-card,.mp-main .estimate-board>article{padding:14px;border-top-width:1px;border-left:3px solid var(--fund-neutral);border-radius:12px;min-width:0;gap:0}
.mp-main .fund-card:has([data-nav-change].fund-rise),.mp-main .estimate-board>article:has(.estimate-card-change.fund-rise){border-left-color:var(--fund-rise)}
.mp-main .fund-card:has([data-nav-change].fund-fall),.mp-main .estimate-board>article:has(.estimate-card-change.fund-fall){border-left-color:var(--fund-fall)}
.mp-main .fund-grid .fund-card h2,.mp-main .estimate-board h2{font-weight:650;font-family:inherit;font-size:14px;line-height:1.45;letter-spacing:0;margin:0 0 5px;overflow-wrap:anywhere}
.mp-main .estimate-board h2 a{color:inherit;text-decoration:none}
.mp-main .fund-grid .fund-company,.mp-main .estimate-board .estimate-card-label{font-size:12px;line-height:1.45;margin:4px 0;color:var(--mp-muted,var(--fund-muted))}
.mp-main .fund-card-top{font-size:11px;margin-bottom:7px;gap:8px}.mp-main .fund-currency{padding:1px 7px}
.mp-main .fund-grid .fund-nav{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px 8px;padding:10px 0;margin:8px 0 0;font-size:11px}
.mp-main .fund-grid .fund-nav>strong{font-size:22px;grid-column:1;grid-row:2}.mp-main .fund-nav>[data-nav-change]{grid-column:2;grid-row:1/3;align-self:center;text-align:right;font-size:12px}
.mp-main .fund-nav>[data-nav-status]{grid-column:1/-1;font-size:10px;line-height:1.4}
.mp-main .fund-grid .fund-facts{gap:10px;margin:9px 0}.mp-main .fund-facts dt{font-size:11px;margin-bottom:2px}.mp-main .fund-facts dd{font-size:12px}
.mp-main .fund-card-bottom{padding-top:8px;gap:8px;font-size:11px}.mp-main .fund-card-bottom a{display:inline-flex;align-items:center;min-height:32px}
.mp-main .fund-grid .fund-stale{margin:0 0 6px;font-size:11px}
.fund-quote-pair{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:6px;align-items:center;margin:12px 0 7px;font-variant-numeric:tabular-nums}
.fund-quote-pair>div:last-child{text-align:right}.fund-quote-pair span,.fund-quote-pair small{display:block;font-size:11px;color:var(--mp-muted)}
.mp-main .fund-quote-pair strong{display:block;font:700 21px/1.3 sans-serif;overflow-wrap:anywhere}.mp-main .fund-quote-pair .estimate-card-change{padding:0;background:none;font-size:12px}
.fund-mini-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:9px 0;margin:8px 0;border-top:1px solid var(--mp-line);border-bottom:1px solid var(--mp-line);text-align:center}
.fund-mini-metrics dt{font-size:11px;color:var(--mp-muted)}.fund-mini-metrics dd{font-size:13px;font-weight:650;margin:3px 0 0;overflow-wrap:anywhere}
.mp-main .estimate-board .estimate-detail-link{font-size:12px;padding-top:4px;min-height:32px;display:flex;align-items:center}
.fund-card-notes{font-size:11px;line-height:1.5}.fund-card-notes summary{cursor:pointer;min-height:28px;display:list-item;padding:5px 0}.fund-card-notes p{font-size:11px;margin:5px 0}
@media(max-width:1000px){.mp-main .fund-grid,.mp-main .estimate-company .estimate-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.mp-main .fund-grid,.mp-main .estimate-company .estimate-board{grid-template-columns:minmax(0,1fr)}.mp-main .fund-grid .fund-card,.mp-main .estimate-board>article{padding:14px}.fund-card-notes summary{min-height:36px}.mp-main .estimate-board .estimate-detail-link,.mp-main .fund-card-bottom a{min-height:40px}}

.mp-main .fund-quote-pair{line-height:1.4;margin:8px 0 5px}.mp-main .fund-mini-metrics{line-height:1.4;padding:7px 0;margin:6px 0}.fund-card-footer{display:flex;gap:8px;align-items:start;justify-content:space-between;margin-top:5px}.fund-card-footer .fund-card-notes{flex:1;min-width:0}.fund-card-footer>a{flex-shrink:0}.mp-main .estimate-board>article:has(.estimate-card-change){border-top:1px solid var(--mp-line)}

/* Official NAV has a static metallic highlight, distinct from directional color. */
.mp-main .fund-announced-gold{color:#886015;font-weight:750;background-image:linear-gradient(115deg,#77500e 0%,#a57823 23%,#745012 40%,#b38a35 49%,#795215 58%,#987023 78%,#725012 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 1px 1px #ad8b4214}
html[data-theme=dark] .mp-main .fund-announced-gold{color:#edcb7c;background-image:linear-gradient(115deg,#c99539 0%,#f3d88f 24%,#d3ac5c 40%,#fff1be 49%,#d0a44d 60%,#f4d996 80%,#c89946 100%);text-shadow:0 1px 2px #d5ab3d22}
@media(forced-colors:active){.mp-main .fund-announced-gold{background:none;-webkit-text-fill-color:CanvasText;color:CanvasText;text-shadow:none}}
