/* Shared typography, page rhythm and responsive chart layout. */
:root{--ui-font:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Noto Sans KR','Segoe UI',sans-serif}
body{font-family:var(--ui-font);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select,textarea,table,svg text,.brand,.brand small{font-family:var(--ui-font)!important}body>main{width:calc(100% - 112px);max-width:1240px;padding:34px 0 48px;margin:76px auto 0}body>.sidebar{padding-left:max(28px,calc((100% - 1240px)/2));padding-right:max(28px,calc((100% - 1240px)/2));gap:28px}.brand{font-weight:800}.sidebar .bottom{display:none!important}section,.portfolio-card,.analysis-section{padding:24px;border-radius:12px;box-shadow:0 1px 3px #192a2005}h1,.hero h1,.investor-hero h1,.analysis-hero h1{font-size:36px;line-height:1.25;letter-spacing:-1.2px;font-weight:750}h2,.summary-title{font-size:27px;line-height:1.35;letter-spacing:-.7px;font-weight:700}h3,.panel-head h2,:is(#income,#eps,#buybacks,#dividend,#phase) h3{font-size:21px;line-height:1.4;letter-spacing:-.5px;font-weight:700}h4{font-size:15px;line-height:1.5}.hero p{font-size:18px}.source,.institution-note,.notice-line{font-size:12px;line-height:1.7;color:#768078}.legend{font-size:12px;line-height:1.5;flex-wrap:wrap;align-items:center}.legend>span{display:inline-flex;align-items:center;gap:6px}.heading,.panel-head{align-items:center}.financial-chart-area{max-width:1000px}.chart-svg,.growth-grid{font-variant-numeric:tabular-nums}.financial-chart-area .chart-svg{min-height:0!important}.financial-chart-area .chart-svg text{font-size:12px}.financial-chart-area .chart-svg text.value{font-size:13px}.growth-grid text{font-size:12px}.portfolio-layout{gap:22px}.portfolio-svg{max-height:370px}.quote-row strong{font-size:34px}.hero{margin-bottom:30px}.grid{gap:22px;margin:24px 0}.value-chain,.chain-groups{min-width:0}.search input{font-size:18px}.search button{font-size:16px;min-width:110px;padding:15px}.categories button,.tickers button{font-size:15px;padding:9px 18px}.categories,.tickers{gap:8px}.map{max-height:430px;width:100%}
@media(max-width:1100px){body>.sidebar{gap:15px;padding:0 24px}body>.sidebar nav a{padding:9px 8px;font-size:13px}body>.sidebar nav svg{display:none}body>main{width:calc(100% - 64px)}}
@media(max-width:900px){body>.sidebar{padding:10px 20px 0;gap:0}body>main{margin-top:112px;width:calc(100% - 48px);padding-top:26px}.portfolio-layout{grid-template-columns:1fr}h1,.hero h1,.investor-hero h1,.analysis-hero h1{font-size:30px}}
@media(max-width:600px){body>main{width:calc(100% - 32px);padding:20px 0 32px}section,.portfolio-card,.analysis-section{padding:16px;margin:16px 0}h1,.hero h1,.investor-hero h1,.analysis-hero h1{font-size:27px}h2,.summary-title{font-size:23px}h3,.panel-head h2,:is(#income,#eps,#buybacks,#dividend,#phase) h3{font-size:19px}.company-head{gap:10px;flex-wrap:wrap}.company-head h2{font-size:23px}.company-head .tags{margin-left:0}.quote-row{grid-template-columns:1fr;gap:12px}.ranges{border-left:0;padding-left:0}.quote-row strong{font-size:30px}.company-head .logo{width:48px;height:48px}.panel-head{flex-wrap:wrap;gap:10px}.profile-badge{flex-wrap:wrap}.investor-profile{gap:12px}.investor-profile p{line-height:1.6}.investor-name-line{flex-wrap:wrap}.investor-name-line h2{font-size:23px}.financial-chart-area{overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:4px}.financial-chart-area .chart-svg,.financial-chart-area .growth-grid{width:620px;max-width:none;min-width:620px}.financial-chart-area .chart-svg text,.financial-chart-area .chart-svg text.value,.growth-grid text{font-size:16px}.financial-scroll{overflow-x:auto;max-width:100%}.financial-scroll table{min-width:620px}#phase{overflow-x:auto}.value-chain{gap:12px}.chain-group{min-width:0}.chain-node{flex-wrap:wrap}.chain-node small{white-space:normal}.segment-details{overflow-x:auto}.segment-details table{min-width:310px}.portfolio-svg{max-height:360px}.source{overflow-wrap:anywhere}.demo-banner{align-items:flex-start;flex-wrap:wrap}.demo-banner button{margin-left:0}.recommendations{margin:20px 0}.whale-picker-title{font-size:17px}.investor-stats,.change-highlights{grid-template-columns:1fr 1fr;gap:10px}.stat-card strong{font-size:22px}.search{gap:8px}.search input{font-size:16px}.search button{min-width:70px;padding:12px}.search-icon{font-size:28px;margin-left:5px}.hero p{font-size:16px}.map{min-height:190px}}
@media(max-width:600px){.financial-chart-area .chart-svg text,.financial-chart-area .chart-svg text.value,.growth-grid text{font-size:20px}.growth-grid .growth-label{font-size:17px}.financial-chart-area:before{content:'좌우로 움직여 전체 기간 보기';display:block;font-size:11px;color:#7b8580;margin:8px 0}#segments .segment-labels{display:none}#segments .donut-layout{justify-content:center}#segments .segment-details{flex-basis:100%}#segments .segment-details table{min-width:0}.forecast-example{font-size:11px}}

@media(min-width:761px){#segments .donut-layout{justify-content:center;gap:64px;max-width:850px;margin:24px auto}#segments .segment-details{margin-left:0;flex:1;max-width:500px}#segments .segment-labels{display:none}}
/* Consistent, readable legends and lifecycle column titles. */
#phase .phase-labels span{font-size:14px;line-height:1.55;padding:11px 4px;font-weight:700}
#phase .legend,#price-chart>.legend{font-size:14px;line-height:1.6;gap:20px}
#phase .legend>span,#price-chart>.legend>span{display:inline-flex;align-items:center;gap:6px;font-size:inherit}
@media(max-width:600px){#phase .phase-labels span{font-size:14px}#phase .legend,#price-chart>.legend{font-size:14px;gap:12px}}

#segments .segment-company-logo{width:115px;height:100px;object-fit:contain;display:block}#segments .segment-details th,#segments .segment-details td{font-size:14px;padding:11px 9px}@media(min-width:761px){#segments .donut-layout{gap:80px;max-width:900px}#segments .segment-details{max-width:530px;flex:1}}@media(max-width:600px){#segments .segment-details th,#segments .segment-details td{font-size:12px;padding:10px 5px}}
/* Give the cards a little more outer space and tighten the value-chain diagram. */
@media(min-width:901px){body>main{width:calc(100% - 144px);max-width:1200px}}
@media(min-width:761px){#company .clean-chain{max-width:960px;margin:18px auto 10px}#company .chain-lane{padding:10px}#company .chain-lanes{gap:14px}#company .chain-adjacent{gap:10px;flex-wrap:wrap}#company .chain-adjacent>span{font-size:9px}}
@media(max-width:600px){body>main{width:calc(100% - 40px)}}

#phase .phase-labels span{font-size:15px}#phase .phase-svg text{font-size:15px}#phase .phase-title-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}#phase .phase-company-pill{font-size:14px;padding:6px 12px;margin-left:0;border-radius:6px;line-height:1.5}@media(max-width:600px){#phase .phase-labels span{font-size:15px}#phase .phase-title-row{gap:8px}#phase .phase-company-pill{font-size:13px;padding:5px 9px}#phase>.heading{flex-wrap:wrap}}
/* Card content insets: keep headings and right-side metrics away from the border. */
@media(min-width:761px){section,.portfolio-card,.analysis-section{padding-left:40px;padding-right:40px}.portfolio-layout #concentration{left:40px;right:40px}}
@media(min-width:601px) and (max-width:760px){section,.portfolio-card,.analysis-section{padding-left:30px;padding-right:30px}}
@media(max-width:600px){section,.portfolio-card,.analysis-section{padding-left:22px;padding-right:22px}}

.toggle button,[data-mode="quarter"],[data-mode="annual"]{font-size:14px;font-weight:600;padding:7px 13px}@media(max-width:600px){.toggle button,[data-mode="quarter"],[data-mode="annual"]{font-size:14px;padding:7px 11px}}
@media(min-width:761px){#segments .donut-layout{max-width:1040px;justify-content:space-between;gap:80px;margin:26px auto}#segments .donut{width:270px;height:270px;flex:0 0 270px}#segments .donut-center{width:180px;height:180px}#segments .segment-company-logo{width:135px;height:115px}#segments .segment-details{flex:0 1 530px;max-width:530px;margin-left:auto}}

/* Give all financial charts the same larger, readable scale. */
.financial-chart-area{max-width:1120px}.financial-chart-area .chart-svg text{font-size:14px}.financial-chart-area .chart-svg text.value{font-size:15px;font-weight:600}.financial-chart-area .growth-grid text{font-size:14px}.financial-chart-area .growth-grid .growth-label{font-size:13px}.financial-chart-area+.legend{font-size:14px}@media(max-width:600px){.financial-chart-area .chart-svg text,.financial-chart-area .chart-svg text.value,.financial-chart-area .growth-grid text{font-size:21px}.financial-chart-area .growth-grid .growth-label{font-size:18px}}
.financial-chart-area .chart-svg text{font-size:14px!important}.financial-chart-area .chart-svg text.value{font-size:15px!important;font-weight:600!important}.financial-chart-area .growth-grid text{font-size:14px!important}.financial-chart-area .growth-grid .growth-label{font-size:13px!important}@media(max-width:600px){.financial-chart-area .chart-svg text,.financial-chart-area .chart-svg text.value,.financial-chart-area .growth-grid text{font-size:21px!important}.financial-chart-area .growth-grid .growth-label{font-size:18px!important}}

#phase .legend>span{font-size:14px!important;line-height:1.6;font-weight:400}#phase .legend>span:last-child{font-size:14px!important}

#charts .company-head{gap:14px;padding-bottom:14px;flex-wrap:wrap}#charts .company-head p{font-size:12px;margin:3px 0 0}#charts .company-head h2{font-size:24px}#charts .company-head .logo{width:48px;height:48px}#charts .company-head .logo img{width:48px;height:48px;object-fit:contain}.quote-header-price{margin-left:auto}.quote-primary{display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:6px}.quote-primary #price{font-size:30px;line-height:1.2}.quote-primary #change{grid-column:1/-1;font-size:15px;line-height:1.5}.quote-primary #price-basis{grid-column:1/-1;font-size:11px;color:#7b8580}.quote-header-price+.tags{margin-left:16px}#charts .compact-quote{display:block;padding:12px 0 16px}#charts .ranges{border:0;padding:0;display:flex;justify-content:space-between;gap:28px}#charts .range{display:grid;grid-template-columns:auto 1fr auto;flex:1;gap:14px;margin:0}#charts .range label{font-size:11px}#charts .range b{display:inline;font-size:13px;margin-left:6px}#charts .track{align-self:center;height:4px}#charts .track i{width:8px;height:8px;top:-2px}@media(max-width:900px){#charts .company-head .tags{display:none}}@media(max-width:600px){#charts .company-head{gap:10px}#charts .company-head h2{font-size:21px}#charts .company-head p{display:none}.quote-primary #price{font-size:25px}.quote-primary #change{font-size:13px}.quote-primary #price-basis{font-size:10px}#charts .company-head #favorite{margin-left:auto}#charts .ranges{flex-direction:column;gap:10px}#charts .range b{display:block;margin-left:0}#charts .track{min-width:50px}}

/* Compact company quote inspired by the reference chart header. */
#charts .company-head{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;column-gap:14px;row-gap:3px;padding-bottom:14px}#charts .company-head>.logo{grid-column:1;grid-row:1/3}#charts .company-head>div:nth-child(2){grid-column:2;grid-row:1}#charts .company-head h2{font-size:19px;line-height:1.35}#charts .company-head p{display:none}#charts .quote-header-price{grid-column:2;grid-row:2;margin:0}#charts .quote-primary{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}#charts .quote-primary #price{font-size:30px}#charts .quote-primary #change{font-size:16px;margin-left:9px}#charts .quote-primary #price-basis{font-size:11px;margin-left:6px}#charts .company-head>.tags{grid-column:3;grid-row:1/3;margin:0}#charts .company-head>#favorite{grid-column:4;grid-row:1/3}#charts .period-toolbar{margin:0 0 16px}#charts .periods{gap:4px}#charts .periods button{padding:7px 13px;font-size:13px;border:0;border-radius:6px}#charts .compact-quote{padding:10px 0 13px}@media(max-width:900px){#charts .company-head{grid-template-columns:48px minmax(0,1fr) auto}#charts .company-head>#favorite{grid-column:3}}@media(max-width:600px){#charts .company-head h2{font-size:18px}#charts .quote-primary{gap:5px}#charts .quote-primary #price{font-size:27px}#charts .quote-primary #change{font-size:14px;margin-left:4px}#charts .quote-primary #price-basis{flex-basis:100%;margin:0}#charts .period-toolbar{flex-wrap:wrap;gap:6px}#charts .periods button{padding:7px 9px}}

#charts .company-head{grid-template-columns:68px minmax(0,1fr) minmax(330px,440px);gap:4px 16px}#charts .company-head>.logo{width:68px;height:68px}#charts .company-head>.logo img{width:68px;height:68px}#charts .company-title-line{display:flex;align-items:center;gap:10px}#charts .company-title-line #favorite{font-size:24px;padding:0;line-height:1.2;margin:0}#charts .company-head h2 small{font-family:var(--ui-font);font-size:14px;font-weight:500;letter-spacing:.2px}#charts .quote-primary #change{font-family:var(--ui-font);font-weight:500;letter-spacing:0;font-variant-numeric:tabular-nums}#charts .company-head>.ranges{grid-column:3;grid-row:1/3;display:grid;gap:10px;align-self:center}#charts .ranges .range{gap:10px;grid-template-columns:auto minmax(45px,1fr) auto}#charts .compact-quote{display:none}#charts .period-toolbar{margin-top:14px}@media(max-width:900px){#charts .company-head{grid-template-columns:64px minmax(0,1fr)}#charts .company-head>.ranges{grid-column:1/-1;grid-row:3;margin-top:10px}#charts .company-head>.logo,#charts .company-head>.logo img{width:64px;height:64px}}@media(max-width:600px){#charts .company-title-line{gap:7px}#charts .company-head h2 small{font-size:13px}#charts .ranges .range b{display:inline;margin-left:5px}#charts .ranges .range label{font-size:10px}}

#charts .company-head>.ranges{justify-self:end;width:440px;max-width:100%}#charts .ranges .range{grid-template-columns:135px 100px 135px;justify-content:end;gap:12px;flex:none}#charts .ranges .range label{white-space:nowrap;text-align:right}#charts .ranges .range .track{width:100px;min-width:100px}#charts .quote-primary #change{display:inline-flex;gap:13px;letter-spacing:-.35px}#charts .quote-primary #change span{white-space:nowrap}@media(max-width:600px){#charts .company-head>.ranges{width:100%}#charts .ranges .range{grid-template-columns:minmax(0,1fr) 60px minmax(0,1fr);gap:8px}#charts .ranges .range .track{width:60px;min-width:60px}#charts .ranges .range label{text-align:left;font-size:10px}#charts .ranges .range label:last-child{text-align:right}#charts .ranges .range b{display:block;margin:0}#charts .quote-primary #change{gap:12px}}

#segments .donut{position:relative}#segments .segment-share{position:absolute;transform:translate(-50%,-50%);font-size:15px;font-weight:700;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}#segments .segment-revenue-metric{margin:16px 0 0}#segments .segment-revenue-metric .big-metric{margin:0;font-size:26px!important;color:#285d42}@media(max-width:600px){#segments .segment-share{font-size:13px}}

.latest-result-label{display:block;font-size:14px;line-height:1.5;font-weight:400;color:#7b8589;margin:0 0 4px}.latest-income-metric .big-metric,#eps .metric-row .big-metric{margin-top:0}.latest-income-metric .big-metric{color:#285d42}#segments .segment-revenue-metric .big-metric{margin-top:0}

.latest-result-label{line-height:1.25;margin-bottom:1px}.latest-income-metric .big-metric,#eps .metric-row .big-metric,#segments .segment-revenue-metric .big-metric{line-height:1.25}

.latest-income-metric .big-metric{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:6px;row-gap:4px}.latest-income-metric .metric-kind{font-size:13px;font-weight:400;color:#7b8589}.metric-pair-gap{width:12px}@media(max-width:600px){.latest-income-metric .big-metric{font-size:24px!important}.latest-income-metric .metric-kind{font-size:12px}.metric-pair-gap{width:4px}}

/* Revenue mix: thicker ring and readable, consistent percentage labels. */
#segments .donut{width:320px;height:320px;flex:0 0 320px;box-shadow:none}
#segments .donut-center{width:164px;height:164px;background:#fff;border:5px solid #fff}
#segments .segment-share{font-size:18px;font-weight:700;letter-spacing:-.3px}
#segments .segment-company-logo{width:120px;height:100px;object-fit:contain}
@media(max-width:600px){#segments .donut{width:280px;height:280px;flex-basis:280px}#segments .donut-center{width:144px;height:144px}#segments .segment-share{font-size:16px}#segments .segment-company-logo{width:105px;height:88px}}

/* Readable value-chain company rows. */
#company .clean-chain .chain-lane{padding:16px 14px}
#company .clean-chain .chain-lane h4{font-size:16px;line-height:24px}
#company .clean-chain .chain-lane>p{font-size:12px;line-height:1.5;margin:5px 0 12px}
#company .clean-chain .chain-lane .chain-node{height:auto;min-height:40px;padding:5px 0;gap:10px}
#company .clean-chain .chain-lane .chain-node img{width:30px;height:30px;flex:0 0 30px;object-fit:contain}
#company .clean-chain .chain-lane .chain-node b{font-size:14px;line-height:1.4}
#company .clean-chain .chain-lane .chain-node small{font-size:12px;line-height:1.4}
#company .clean-chain .chain-adjacent{padding:12px;gap:14px;font-size:12px}
#company .clean-chain .chain-adjacent .chain-node{min-height:30px;gap:8px}
#company .clean-chain .chain-adjacent .chain-node img{width:28px;height:28px;flex:0 0 28px;object-fit:contain}
#company .clean-chain .chain-adjacent .chain-node b{font-size:13px}
#company .clean-chain .chain-adjacent .chain-node small{font-size:12px}
@media(max-width:1050px) and (min-width:701px){#company .clean-chain .chain-lane .chain-node{flex-wrap:wrap}#company .clean-chain .chain-lane .chain-node small{flex-basis:100%;padding-left:40px}}

#company .clean-chain .chain-lane .chain-node img.official-wordmark{width:62px;height:34px;flex:0 0 62px;object-fit:contain;background:#fff;border-radius:4px;padding:2px}

/* One stable layout for square icons, wide wordmarks and long company names. */
#company .clean-chain .chain-lane .chain-node{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto;gap:3px 12px;min-height:58px;height:auto;padding:8px 0;align-items:center}
#company .clean-chain .chain-lane .chain-node img,#company .clean-chain .chain-lane .chain-node img.official-wordmark{grid-column:1;grid-row:1 / 3;width:64px;height:38px;max-width:100%;object-fit:contain;object-position:center;justify-self:center;align-self:center;padding:3px;background:transparent;border-radius:0}
#company .clean-chain .chain-lane .chain-node img:not(.official-wordmark){width:34px;height:34px}
#company .clean-chain .chain-lane .chain-node b{grid-column:2;grid-row:1;min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.35;align-self:end}
#company .clean-chain .chain-lane .chain-node small{grid-column:2;grid-row:2;min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.4;padding:0;align-self:start}
.brand-logo{display:block;height:40px;width:auto;align-self:center;flex:none}
body>.sidebar .brand{align-items:center}
html[data-theme=dark] .brand-logo{filter:brightness(2.1) saturate(.9)}
