/* 2026-10-10: content and stock names are left aligned, including clickable
   names and TA summary cards. The brand mark, ordinary controls, ranks and status icons stay centered. */
body,body *,body *::before,body *::after{ text-align:left!important }
body svg text{ text-anchor:start }

body :is(th,td,caption,.numeric,.consensus-cell,.revision-cell,
 .stat,.research-stat,.market-chart-surface,
 .ma-values>div,.flows>div,.stock-activity,.gt-index){text-align:left!important;vertical-align:middle!important}
body :is(.market-change,.strip-numbers>div,.market-quote-unit){justify-content:flex-start;text-align:left!important}
body :is(.tabs button,.gate-filters button,.value-metric,
 .fund-summary>div,.research-stat-button,.investment-stock-rank,.gate-stock-price,
 .triple-step,.triple-evidence,.triple-return strong,.gt-sector-column-head>div,
 .gt-sector-column-head>span,.gt-sector-returns,.gt-sector-row>strong,.gt-sector-row>.gt-date,
 .gt-breadth-value,.gt-country-count,.gt-country-bars b,.gt-country-bars small,
 .rc-readings strong,.rc-readings>div>small){text-align:left!important;vertical-align:middle!important;align-content:start}
body :is(.tabs button,.gate-filters button,.mc-current,.mc-summary){justify-content:flex-start;align-items:center}
body :is(.stat,.research-stat){align-content:start;justify-items:start}
body :is(.metric-card dl>div,.flows>div,.ma-values>div){align-items:flex-start;align-content:start}
body :is(.consensus-change,.count-value-line){justify-content:flex-start;align-items:center;flex-wrap:wrap}
body :is(.check-row,.detail-head){align-items:center}
body :is(.metric-card,.scenario-card,.insight-card,.detail-section) :is(h3,h4,p,dl){width:100%;min-width:0}

/* Narrative cards, evidence, sources and dialog copy use the same reading edge. */
body :is(.detail-panel,.detail-title,.detail-section,.fund-detail,.fund-card,.research-detail,
 .metric-card,.option-state,.derivative-verdict,.insight-card,.scenario-card,.scenario-overview,.scenario-long,.coverage-details,
 .investment-selection,.stock-meta,.screening-reason,.screening-reason-preview,
 .news-dialog,.news-issue,.news-title,.news-sector-heading,.futures-reading article,
 .source-caption,.data-note,.availability,.insight-evidence-link){text-align:left!important}
body :is(.insight-reasoning,.investment-selection,.gt-korea-outlook) :is(dl,dt,dd){text-align:left!important}
body :is(.stock-button,.triple-stock-button,.gt-stock-button,.gate-stock-name){text-align:left!important}
body :is(.metric-card,.insight-card,.scenario-card,.futures-reading article){align-content:start;justify-items:stretch}
body :is(.detail-head,.stock-dialog-actions,.insight-actions,.source-links){justify-content:flex-start;align-items:center;flex-wrap:wrap}
body .detail-head{justify-content:flex-start}
body :is(.news-item-meta,.news-item-footer,.news-tags){justify-content:flex-start;align-items:center}
body .news-item-meta time{margin-left:0}
body :is(.news-item-footer,.news-sector-heading){justify-content:flex-start}
body .news-list .news-item-meta time{margin-left:0}
body .research-stat-note{text-align:left!important}
body :is(.detail-section,.research-detail,.fund-detail,.insight-card,.scenario-card,.coverage-details,.futures-reading) p{word-break:keep-all;overflow-wrap:anywhere}

/* Text and numeric columns share the same left alignment as their headers. */
body :is(.screening-table,.value-list) :is(th,td):nth-child(2),
body .investment-scroll :is(th,td):first-child,
body .triple-table :is(th:first-child,.triple-stock),
body .highs-table :is(th,td):first-child,
body .gt-table-wrap :is(th,td):first-child,
body :is(td:has(>.stock-button),td:has(>.investment-stock),.fund-verdict){text-align:left!important}
body :is(.screening-stock,td:has(>.stock-button),td:has(>.investment-stock),.triple-stock,.fund-verdict,
 .highs-table td:first-child,.gt-table-wrap td:first-child) :is(p,small,span,button,summary,strong,div){text-align:left!important}
body :is(.screening-stock,.triple-stock,td:has(>.stock-button),td:has(>.investment-stock)) :is(.stock-button,.triple-stock-button){width:100%}
body .value-list th:nth-child(5){text-align:left!important}
body .screening-reason{width:100%}
body .screening-reason :is(summary,span,div,p),body .stock-thesis{text-align:left!important}
body .screening-reason-preview{margin-top:0}
body .screening-reason[open] .screening-reason-preview{display:block;-webkit-line-clamp:unset;overflow:visible}
body .screening-reason .stock-meta:empty{display:none}
body .screening-table th.return-heading{white-space:nowrap;line-height:1.5}
body .screening-table th.return-heading>span{display:block;white-space:nowrap;margin-top:4px}

/* Valuation comparisons start at the left; give the dated explanations more room. */
body #panel-valuation .value-list :is(th,td),
body #panel-valuation .value-list :is(th,td) :is(p,small,span,button,summary,strong,div){text-align:left!important}
/* Compact the combined stock cell; the remaining verdict column gets 28%. */
body #panel-valuation .value-list .value-col-stock{width:16%}
body #panel-valuation .value-list .value-col-ratio{width:14%}
body #panel-valuation .value-list .value-col-period{width:28%}
body #panel-valuation .value-list .fund-verdict{word-break:keep-all}
body #panel-valuation .value-list .value-period,
body #panel-valuation .value-list .value-period>span{word-break:keep-all;overflow-wrap:normal}
body #panel-valuation .value-list td.value-period{font-size:.8125rem;line-height:1.65}
@container (min-width:64.01rem){
 body #panel-valuation .value-list :is(th,td){padding-inline:10px}
}

.quantity-money{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;max-width:100%;line-height:1.65;overflow-wrap:anywhere}
.quantity-money>small{display:block;font-size:.8125rem;color:var(--muted);font-weight:400;white-space:normal}
/* Contract estimates follow their quantity in parentheses. Narrow cells may
   wrap before the parenthesis, keeping each number and unit together. */
.quantity-money.quantity-money-inline{display:inline}
.quantity-money.quantity-money-inline>span{white-space:nowrap}
.quantity-money.quantity-money-inline>small{display:inline;margin:0;white-space:nowrap;vertical-align:baseline}
.quantity-money .flow-number{color:var(--ink);font-size:inherit}
.quantity-money .flow-number.up{color:var(--red)}
.quantity-money .flow-number.down{color:var(--blue)}

/* Revision and flow cells share one reading edge, with distinct period rows. */
body #panel-invest .investment-scroll :is(th,td),
body #panel-invest .investment-scroll :is(th,td) :is(p,small,span,button,summary,strong,div){text-align:left!important}
body #panel-invest .investment-scroll .consensus-change{justify-content:start}
body #panel-invest .investment-scroll .quantity-money{align-items:flex-start}
body #panel-invest .investment-scroll .up{color:var(--red)}
body #panel-invest .investment-scroll .down{color:var(--blue)}
body #panel-invest .investment-scroll .investment-date{white-space:nowrap;font-size:.8125rem;margin-top:4px}
body #panel-invest .investment-scroll .investment-flow{display:grid;grid-template-columns:3em minmax(0,1fr);align-items:baseline;justify-items:start;gap:2px 8px;width:100%;min-width:0}
body #panel-invest .investment-scroll .investment-flow>.quantity-money{display:contents}
body #panel-invest .investment-scroll .investment-flow>.quantity-money>small{grid-column:1/-1}
body #panel-invest .investment-scroll .investment-flow+.investment-flow{margin-top:8px;padding-top:8px;border-top:1px solid var(--border-strong,var(--border))}
body #panel-invest .investment-scroll .investment-flow-label{font-size:.8125rem;color:var(--ink);font-weight:600}
body #panel-invest .investment-scroll .relative-strength-pair{width:100%;display:grid;gap:8px}
body #panel-invest .investment-scroll .relative-strength-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}
body #panel-invest .investment-scroll .relative-strength-row+.relative-strength-row{border-top:1px solid var(--border-strong,var(--border));padding-top:8px}
body #panel-invest .investment-scroll .relative-strength-label{font-size:.8125rem;color:var(--muted);min-width:2em}
body #panel-invest .investment-scroll .relative-strength-value{font-size:1rem;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.stock-activity .flows{gap:12px}.stock-activity .flows>div{min-width:0}
.futures-reading{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.futures-reading article{padding:20px;border:1px solid var(--border);border-radius:12px;min-width:0}
.futures-reading p{line-height:1.8;overflow-wrap:anywhere}

@container (max-width:64rem){
 body .responsive-table-wrap .responsive-table.responsive-cards>tbody>tr.responsive-row{align-items:stretch}
 body .responsive-table-wrap .responsive-table.responsive-cards>tbody>tr>:is(td,th){display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;text-align:left!important}
 body .responsive-table.responsive-cards .responsive-row>[data-cell-label]::before{text-align:left;width:100%}
 body .responsive-table.responsive-cards .responsive-row .stock-quote-note{text-align:left!important}
 body .responsive-table-wrap .responsive-table.responsive-cards>tbody>tr>:is(.screening-stock,.triple-stock,.fund-verdict,td:has(>.stock-button),td:has(>.investment-stock)){align-items:stretch;text-align:left!important}
 body .responsive-table.responsive-cards .responsive-row>:is(.screening-stock,.triple-stock,.fund-verdict,td:has(>.stock-button),td:has(>.investment-stock))::before{text-align:left}
 body #panel-valuation .value-list.responsive-cards .responsive-row>:is(th,td){align-items:stretch}
 body #panel-valuation .value-list.responsive-cards .responsive-row>[data-cell-label]::before{text-align:left}
 body #panel-valuation .value-list.responsive-cards .responsive-row>:is(.fund-verdict,.value-period){grid-column:1/-1}
 body #panel-invest .investment-scroll .responsive-table.responsive-cards .responsive-row>:is(th,td){align-items:stretch}
 body #panel-invest .investment-scroll .responsive-cards .responsive-row>[data-cell-label]::before{text-align:left}
}
@media(max-width:720px){.futures-reading{grid-template-columns:1fr}.quantity-money{font-size:.9375rem}.stock-activity .flows{grid-template-columns:1fr 1fr}}

/* Supporting copy follows the same left alignment as every other text surface. */
body :is(main,dialog) :is(p,small,dt,dd,summary,figcaption,.source-caption,.data-note,
 .availability,.stock-meta,.stock-quote-note,.stock-close-basis,.quote-basis,
 .research-stat-note,.triple-caption,.triple-rule-link,.triple-note,.triple-forecast,
 .insight-meta,.insight-origin,.gt-footnote,.gt-inline-note,.gt-close-policy,
 .investment-scope,.value-period,.value-note,.news-status,.news-detail-date){
 text-align:left!important;word-break:keep-all;overflow-wrap:anywhere
}
body :is(main,dialog) :is(p,dd){line-height:1.7}
body :is(main,dialog) :is(small,.source-caption,.data-note,.availability,
 .research-stat-note,.triple-caption,.triple-note,.gt-footnote,.insight-meta,
 .insight-origin,.stock-quote-note){line-height:1.6}
body :is(.metric-card,.scenario-card,.insight-card,.option-state,.derivative-verdict){text-align:left!important}
body :is(.metric-card,.scenario-card,.insight-card) :is(h3,h4){text-align:left!important;word-break:keep-all;overflow-wrap:anywhere}
body :is(.metric-card,.market-chart-surface,.research-stat-button)>:is(p,small,.source-caption,.research-stat-note){width:100%;min-width:0}
body :is(.metric-card,.scenario-card,.insight-card,.detail-section,.option-state)>p:empty{display:none}
body .quantity-money{align-items:flex-start}
body :is(.metric-card,.scenario-card,.detail-section,.coverage-details,.option-state,.derivative-verdict) .quantity-money{text-align:left!important}
body .metric-card dl>div{align-items:baseline;flex-wrap:wrap}
body .metric-card :is(p,small,.source-caption){font-size:.875rem}
body :is(.scenario-card,.insight-card,.detail-section,.option-state,.coverage-details) p{font-size:.9375rem}
body .source-caption{color:var(--muted)}
body .market-driver-grid{grid-auto-rows:1fr;align-items:stretch}
body .market-driver-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px}
body .market-driver-card>:is(h3,h4,p,.source-caption,details){margin:0}
body .market-driver-card h3{font-size:1rem;font-weight:600;color:var(--ink);line-height:1.5}
body .market-driver-card h4{font-size:1.125rem;line-height:1.5}
body .market-driver-card .driver-watch{padding-top:12px;border-top:1px solid var(--border);color:var(--ink)}
body .market-driver-card .driver-watch>b{display:inline;margin-right:8px;color:var(--lime);font-size:inherit}
body .market-driver-card .driver-details{margin-top:2px;font-size:.875rem}
body .market-driver-card .driver-details summary{color:var(--muted);line-height:1.6}
body .market-driver-card .driver-implication{border:0;margin:12px 0 0;padding:0;font-size:.875rem}
body .market-driver-card .source-caption{margin-top:8px}
body :is(.gt-funding-help,.gt-funding-guide)>summary{cursor:pointer;color:var(--ink);font-weight:600;line-height:1.6}
body :is(.gt-funding-help,.gt-funding-guide)[open]>summary{margin-bottom:16px}
body .compact-details>p{margin-top:10px}
body .review-history{margin:8px 0 14px;font-size:.875rem}
body .review-history summary{color:var(--muted)}
body .insight-reasoning dd>p{margin:0;font-size:inherit}
@media(max-width:600px){
 body .market-driver-card{padding:18px;gap:10px}
 body :is(.metric-card,.scenario-card,.insight-card,.detail-section) p{font-size:.875rem}
}

/* Four summaries: two independent EPS periods, flows and relative strength. */
body #investmentSummary{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body #investmentSummary>.research-stat{display:flex;flex-direction:column;min-width:0}
body #investmentSummary>.research-stat>.research-stat-button{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;padding:20px;min-height:218px}
body #investmentSummary .research-stat-button strong{margin-bottom:6px}
body #investmentSummary .research-stat-button .research-stat-note{font-size:13px;text-align:center!important}
body #investmentSummary .investment-period-heading{display:flex;flex-direction:column;align-items:center;gap:5px;width:100%;padding:20px 14px 14px;border:0;background:transparent;color:var(--ink);cursor:pointer}
body #investmentSummary .investment-period-heading strong{font-size:24px;line-height:1.3;color:var(--lime)}
body #investmentSummary .investment-period-heading>span{font-size:12px;color:var(--muted)}
body #investmentSummary .investment-period-heading:focus-visible{outline:2px solid var(--lime);outline-offset:-3px}
body #investmentSummary .revision-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;padding:0 14px 16px;gap:7px}
body #investmentSummary .revision-filters button{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;padding:7px 8px;font-size:12px;line-height:1.4}
body #investmentSummary .revision-filters button b{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
body #investmentSummary .revision-filters button small{font-size:11px;font-weight:400;margin-left:2px}
body #investmentSummary .revision-filters [data-investment-filter="all"]{--revision-color:var(--muted)}
body #investmentSummary .revision-filters [data-investment-filter="consensusState"]{--revision-color:#4b88f5}
body #investmentSummary .revision-filters [data-investment-filter="consensusMissing"]{--revision-color:#a3a3a3}
body #investmentSummary .investment-scope{grid-column:1/-1}
body #investmentSummary .investment-scope button{padding:0;border:0;border-bottom:1px dotted currentColor;background:transparent;color:inherit;font:inherit;cursor:pointer}
body #investmentSummary .investment-scope button[aria-pressed=true]{color:var(--lime)}
@media(max-width:1100px){body #investmentSummary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body #investmentSummary{grid-template-columns:1fr}body #investmentSummary>.research-stat>.research-stat-button{min-height:140px;padding:18px}body #investmentSummary .revision-filters button{padding:9px 10px;font-size:13px}}

/* Clickable TA summaries are information cards; center the content vertically. */
body #panel-ta .summary .stat{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;align-content:center}
body #panel-ta .summary .stat>.stat-label,
body #panel-ta .summary .stat>.count-value-line{width:100%;min-width:0}

/* Rank numbers share the TA lime accent in tables and stock-list dialogs. */
body :is(.rank,.investment-stock-rank,.gate-stock-rank,.triple-rank){color:var(--lime);font-weight:600;font-variant-numeric:tabular-nums}

/* Important declarations in this named layer outrank legacy component rules.
   Stock-name actions read as table content, not ordinary control labels. */
@layer button-alignment {
 /* The alpha brand mark is centered within its square on every screen size. */
 body .brandmark{text-align:center!important}
 body button,body button *,body button::before,body button::after,
 body button *::before,body button *::after,
 body input:is([type="button"],[type="submit"],[type="reset"]){text-align:center!important}
 body button{justify-content:center!important;justify-items:center!important;align-items:center!important}
 body button :is(.stat-label,.count-value-line){justify-content:center!important}
 body #panel-ta .summary .stat,
 body #panel-ta .summary .stat *,
 body #panel-ta .summary .stat *::before,
 body #panel-ta .summary .stat *::after{text-align:left!important}
 body #panel-ta .summary .stat{justify-content:center!important;align-items:flex-start!important;justify-items:start!important}
 body #panel-ta .summary .stat :is(.stat-label,.count-value-line){justify-content:flex-start!important}
 body :is(.stock-button,.triple-stock-button,.gt-stock-button,[data-gate-stock],[data-news-stock]),
 body :is(.stock-button,.triple-stock-button,.gt-stock-button,[data-gate-stock],[data-news-stock]) *{text-align:left!important}
 body button:is(.stock-button,.triple-stock-button,.gt-stock-button,[data-gate-stock],[data-news-stock]){justify-content:flex-start!important;justify-items:start!important}
 body button.triple-stock-button{align-items:flex-start!important}
 /* News headings are reading content even when they open a detail dialog. */
 body :is(.news-title,.news-sector-heading),
 body :is(.news-title,.news-sector-heading) *{text-align:left!important}
 body button:is(.news-title,.news-sector-heading){justify-content:flex-start!important;justify-items:start!important}
 body :is(table,[role="table"],[role="grid"]),
 body :is(table,[role="table"],[role="grid"]) *,
 body :is(table,[role="table"],[role="grid"]) *::before,
 body :is(table,[role="table"],[role="grid"]) *::after{text-align:left!important}
 body :is(table,[role="table"],[role="grid"]) button{justify-content:flex-start!important;justify-items:start!important}
 body .rule-symbol,body :is(table,[role="table"],[role="grid"]) .rule-symbol{text-align:center!important;justify-content:center!important;align-items:center!important}
 body :is(.rank,.investment-stock-rank,.gate-stock-rank,.triple-rank),
 body :is(table,[role="table"],[role="grid"]) :is(.rank,.investment-stock-rank,.gate-stock-rank,.triple-rank){text-align:center!important;justify-content:center!important;align-items:center!important}
}

/* Funnel cards share one left reading edge, including their button contents. */
@layer button-alignment {
 body .triple-funnel .triple-step,
 body .triple-funnel .triple-step *{text-align:left!important}
 body .triple-funnel .triple-step{align-items:flex-start!important;justify-items:start!important;justify-content:flex-start!important}
}
@media(max-width:520px){
 body .triple-funnel .triple-step{display:flex;flex-direction:column;gap:5px}
 body .triple-funnel .triple-step-count{align-self:flex-start}
}
/* Keep the six-column earnings table compact while retaining both flow units. */
@media(min-width:1100px){
 body #panel-invest .investment-scroll th:nth-child(3),body #panel-invest .investment-scroll th:nth-child(4){width:130px}
 body #panel-invest .investment-scroll th:nth-child(5){width:300px}
 body #panel-invest .investment-scroll .investment-flow{grid-template-columns:3em minmax(7em,1fr) auto;gap:2px 6px;line-height:1.45}
 body #panel-invest .investment-scroll .investment-flow>.quantity-money>small{grid-column:auto;width:11em;white-space:nowrap;font-size:11px}
 body #panel-invest .investment-scroll .investment-flow+.investment-flow{margin-top:3px;padding-top:0;border-top:0}
}
@container (max-width:64rem){
 body #panel-invest .investment-scroll .responsive-cards .responsive-row>.investment-detail-cell{grid-column:1/-1;width:auto}
}
