/* Page content responds to its reading frame, independently of the screen rails. */
html.ds-theme body.sd-focused-body .ds-content-frame > :is(section, article, main) { min-width:0; width:100%; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-blog-page__container,.sd-news-page__container,.sd-futures__container,.sd-member-shell,.sd-investment-shell,.sd-about-page__container,.sd-privacy-page__container,.sd-terms-page__container,.sd-cookie-page__container) { width:100%; max-width:none; margin-inline:0; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-about-page,.sd-privacy-page,.sd-terms-page,.sd-cookie-page) { padding:4px 0 32px; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-about-page__container,.sd-privacy-page__container,.sd-terms-page__container,.sd-cookie-page__container) { padding-inline:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-hero__banner { min-height:0 !important; padding:20px !important; margin-bottom:16px; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-hero__banner h1 { font-size:26px !important; line-height:1.35; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-stock-heading h1,.sd-stock-hero h1) { font-size:26px; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-news__row,.sd-news-archive-list,.sd-insight-archive) { min-width:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-news__row { padding-block:14px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-news__title { font-size:15px; line-height:1.6; }

/* Lists stay readable; article side material follows the main text. */
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-news-detail__row,.sd-blog-layout--article,.sd-blog-detail-top,.sd-blog-layout--reports,.sd-v2-insight-layout) { display:grid; grid-template-columns:minmax(0,1fr) !important; gap:16px; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-blog-sidebar,.sd-v2-insight-sidebar) { position:static; width:100%; min-width:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-v2-insight-toc.ds-card { position:static; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-news-featured { grid-template-columns:160px minmax(0,1fr) !important; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-news-featured__quote { grid-column:1/-1; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-detail__hero { grid-template-columns:minmax(0,1fr) !important; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-report-hero-visual { min-height:180px; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-article.sd-blog-article { grid-template-columns:minmax(0,1fr) !important; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.ds-toc,.sd-blog-rail) { position:static; width:100%; grid-column:auto; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-toc { display:flex; flex-wrap:wrap; gap:4px 12px; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-toc strong { width:100%; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured { align-items:start; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured__recent { grid-template-columns:minmax(0,1fr); }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured__recent .sd-blog-pop { display:grid; grid-template-columns:76px minmax(0,1fr); gap:4px 12px; padding:10px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured__recent .sd-blog-pop :is(img,.sd-rd-report-tile) { grid-row:1/3; width:76px; height:70px; border-radius:6px; object-fit:cover; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured__recent .sd-blog-pop .ds-kicker { display:none; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured__recent .sd-blog-pop strong { font-size:14px; line-height:1.55; min-height:0; padding:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-featured__recent .sd-blog-pop .ds-lead { padding:0; font-size:11px; }
html.ds-theme body.sd-focused-body .ds-content-frame .hm-detail { grid-template-columns:minmax(0,1fr); }
html.ds-theme body.sd-focused-body .ds-content-frame .hm-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-page { min-height:0; padding:4px 0 32px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero { grid-template-columns:minmax(0,1fr) 300px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-guide-grid { grid-template-columns:minmax(0,1fr); }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-futures__grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-futures-card { min-height:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-chart-canvas-wrap { height:320px; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-focused-details > summary { cursor:pointer; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-focused-details > summary::after { content:'펼치기'; margin-left:auto; color:#61738b; font-size:12px; }
html.ds-theme body.sd-focused-body .ds-content-frame .ds-focused-details[open] > summary::after { content:'접기'; }

@container ds-focused-content (max-width:899px) {
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-futures__grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
html.ds-theme body.sd-focused-body .ds-content-frame :is(.ds-post-prose,.sd-market-insight__content) { font-size:16px; line-height:1.9; overflow-wrap:anywhere; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.ds-post-prose img,.sd-market-insight__content img) { max-width:100%; height:auto; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-blog-detail__title,.sd-market-insight__title) { font-size:26px; line-height:1.4; }

/* Stock/chart pages get the full task frame; secondary information stays below. */
html.ds-theme body.sd-focused-body .ds-content-frame .sd-stock-layout { grid-template-columns:minmax(0,1fr); gap:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-stock-secondary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-stock-secondary > .sd-stock-card { margin:0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-stock-help { grid-column:1/-1; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-stage.gn-trader-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-stage__chart { grid-column:1/-1; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-quote { grid-template-columns:minmax(0,1fr) auto; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-ohlc { grid-column:1/-1; padding:9px 0 0; border-left:0; border-top:1px solid #e5edf7; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-investment-workspace { grid-template-columns:minmax(0,1fr); }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-investment-aside { position:static; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-member-table-wrap,.sd-investment-portfolio-table,.sd-futures-table-wrap) { max-width:100%; overflow-x:auto; }
html.ds-theme body.sd-focused-body .ds-content-frame[data-content-kind=form] .sd-member-auth__wrap { width:100%; max-width:none; margin:0; }
html.ds-theme body.sd-focused-body .ds-content-frame[data-content-kind=form] .sd-member-auth__panel { width:100%; max-width:none; }

@container ds-focused-content (max-width:879px) {
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-stats { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-investment-layout,.sd-analysis-hero-split,.sd-watch-layout) { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-analysis-kpis,.sd-investment-status-strip,.sd-investment-watchlist,.sd-member-summary-grid) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-cta { min-height:0 !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-hero-banner { min-height:120px !important; }
}
@container ds-focused-content (max-width:759px) {
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero { grid-template-columns:minmax(0,1fr); }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-fg-strip,.sd-fg-factor-grid) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-stats { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .hm-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-member-two-col,.sd-blog-featured,.sd-blog-featured__cards,.sd-insight-featured,.sd-v2-news-related) { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-market-insight__mini-grid { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-news-hero,.sd-blog-hero,.sd-futures-hero) { padding:16px; }
}
@container ds-focused-content (max-width:599px) {
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-chart-canvas-wrap { height:250px; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-futures-card > svg { display:none; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-futures__grid { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-watch-summary { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-fg-factor-grid,.sd-fg-risk-links) { grid-template-columns:minmax(0,1fr); }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-blog-stats { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-stock-results,.sd-stock-secondary,.sd-analysis-stage.gn-trader-grid,.sd-analysis-stage .gn-plan-cols,.sd-investment-field-row,.sd-investment-search,.sd-investment-tabs,.sd-member-summary-grid,.sd-investment-market-list) { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-analysis-stage__chart { grid-column:auto; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-stock-metrics,.sd-analysis-ohlc,.sd-investment-summary-grid) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame .sd-news-featured { grid-template-columns:minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-news-row,.sd-insight-card) { grid-template-columns:88px minmax(0,1fr) !important; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-stock-section-head,.sd-investment-head__actions,.sd-rd-news-date) { flex-wrap:wrap; }
  html.ds-theme body.sd-focused-body .ds-content-frame .ds-hero__banner h1 { font-size:23px; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-blog-detail__title,.sd-market-insight__title) { font-size:23px; }
  html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-about-page__card,.sd-privacy-page__card,.sd-terms-page__card,.sd-cookie-page__card) { padding:18px; }
}
