/* Hide source/footnote blocks and their margins throughout the site. */
.source,#valuation-section>.notice-line,#valuation>.notice-line,#financial-detail>.notice-line,#earnings-chart+.notice-line,.institution-note,.option-basis,.signals-foot,.ws-foot,.m2-foot,.m2-basis,.portfolio-basis,.mc-data-basis,.mc-source-detail,.industry-quote-basis,.target-outlook-note,.company-chain-business-note,.chain-review,.chain-caution,#sources,#audit,.ci-basis{display:none!important;margin:0!important;padding:0!important}
/* Compact comparison summaries align to the plot, including mobile. */
#price-chart .compare-stats{width:77.2727%;max-width:none;margin:8px auto;gap:8px;grid-template-columns:repeat(5,minmax(0,1fr))}
#price-chart .compare-stats>div{padding:8px 10px;min-width:0;border-radius:7px}
#price-chart .compare-stats small{font-size:11px;line-height:1.3}
#price-chart .compare-stats strong{font-size:21px;line-height:1.2;margin-top:4px}
@media(max-width:760px){#price-chart .compare-stats{gap:5px;width:100%;grid-template-columns:repeat(6,minmax(0,1fr))}#price-chart .compare-stats>div:nth-child(-n+3){grid-column:span 2}#price-chart .compare-stats>div:nth-child(n+4){grid-column:span 3}#price-chart .compare-stats>div{padding:7px 5px}#price-chart .compare-stats small{font-size:9px}#price-chart .compare-stats strong{font-size:15px}}
/* Expanded charts use the available viewport, with no document scrolling. */
@media(min-width:761px){
 body:has(#charts.expanded),body:has(dialog.chart-fit-dialog[open]){overflow:hidden}
 #charts.stock-card.expanded{inset:12px;max-width:none;width:auto;height:calc(100dvh - 24px);padding:14px 20px;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column}
 #charts.expanded #local-chart{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;max-width:none;margin:0}
 #charts.expanded .period-toolbar{flex:none;margin:0 0 4px}
 #charts.expanded #price-chart{flex:1;min-height:0;display:flex;flex-direction:column}
 #charts.expanded #price-chart .compare-stats{flex:none;margin:4px auto}
 #charts.expanded #price-chart>.legend{flex:none;margin:3px 0;font-size:11px}
 #charts.expanded #price-chart>svg{flex:1;min-height:0;height:0;width:100%;margin:0;overflow:hidden}
 dialog.chart-fit-dialog{width:calc(100vw - 40px);max-width:none;height:calc(100dvh - 40px);max-height:none;box-sizing:border-box;overflow:hidden;padding:16px}
 dialog.chart-fit-dialog #dialog-body{height:calc(100% - 40px);display:flex;flex-direction:column;min-height:0}
 dialog.chart-fit-dialog #dialog-body>svg{flex:1;min-height:0;height:0;width:100%;margin:0}
 .ci-chart-card:fullscreen{height:100dvh;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column}
 .ci-chart-card:fullscreen .ci-main-chart{flex:1;min-height:0}
}

.target-footer,.ci-chart-foot,.hub-note{display:none!important}
@media(min-width:761px){
 .ci-chart-card:fullscreen .ci-chart-stage{flex:1;min-height:0;display:flex;flex-direction:column}
 .ci-chart-card:fullscreen .ci-chart-brand{flex:none}
 .ci-chart-card:fullscreen .ci-chart-stage .ci-chart{flex:1;min-height:0;height:0!important}
}

.filing-source-row{display:none!important}

details:has(>#filing-proof){display:none!important;margin:0!important}

/* 수익률 비교 카드: S&P500=연핑크, 나스닥100=연파랑 (2026-10-23) */
#price-chart .compare-stats>div.cmp-sp{background:#fdeef1}
#price-chart .compare-stats>div.cmp-nq{background:#e9f1fc}
html[data-theme=dark] #price-chart .compare-stats>div.cmp-sp{background:#3a2328}
html[data-theme=dark] #price-chart .compare-stats>div.cmp-nq{background:#1f2c40}
